vendor/assets/javascripts/dojox/mobile.js in dojox-rails-0.13.0 vs vendor/assets/javascripts/dojox/mobile.js in dojox-rails-0.14.0

- old
+ new

@@ -1,7 +1,7 @@ /* - Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. + Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* @@ -10,6 +10,6 @@ http://dojotoolkit.org */ //>>built -require({cache:{"dojox/mobile/ViewController":function(){define("dojox/mobile/ViewController",["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,on,_b,_c,_d,_e,_f){var _10=_4("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_b(_5.hitch(this,function(){on(_6.body(),"startTransition",_5.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_11){if(!_11){return [];}_11.match(/^#?([^&?]+)(.*)/);var _12=RegExp.$2;var _13=_c.byId(RegExp.$1);if(!_13){return [];}for(var v=_13.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=_13.getShowingView();if(sv&&sv.id!==_13.id){_13.show();}_13=v;}}return [_13.getShowingView(),_13,_12];},openExternalView:function(_14,_15){var d=new _7();var id=this.viewMap[_14.url];if(id){_14.moveTo=id;if(_14.noTransition){_c.byId(id).hide();}else{new _e(_6.body(),_14).dispatch();}d.resolve(true);return d;}var _16=null;for(var i=_15.childNodes.length-1;i>=0;i--){var c=_15.childNodes[i];if(c.nodeType===1){var _17=c.getAttribute("fixed")||(_c.byNode(c)&&_c.byNode(c).fixed);if(_17==="bottom"){_16=c;break;}}}var dh=_14.dataHandlerClass||this.dataHandlerClass;var ds=_14.dataSourceClass||this.dataSourceClass;var ft=_14.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],_5.hitch(this,function(_18,_19,_1a){var _1b=new _18(new _19(_14.data||_14.url),_15,_16);var _1c=_14.contentType||_1a.getContentType(_14.url)||"html";_1b.processData(_1c,_5.hitch(this,function(id){if(id){this.viewMap[_14.url]=_14.moveTo=id;if(_14.noTransition){_c.byId(id).hide();}else{new _e(_6.body(),_14).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_14.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _1d=evt.detail;if(!_1d.moveTo&&!_1d.href&&!_1d.url&&!_1d.scene){return;}if(_1d.url&&!_1d.moveTo){var _1e=_1d.urlTarget;var w=_c.byId(_1e);var _1f=w&&w.containerNode||_8.byId(_1e);if(!_1f){w=_f.getEnclosingView(evt.target);_1f=w&&w.domNode.parentNode||_6.body();}this.openExternalView(_1d,_1f);return;}else{if(_1d.href){if(_1d.hrefTarget){_6.global.open(_1d.href,_1d.hrefTarget);}else{var _20;for(var v=_f.getEnclosingView(evt.target);v;v=_f.getParentView(v)){_20=v;}if(_20){_20.performTransition(null,_1d.transitionDir,_1d.transition,evt.target,function(){location.href=_1d.href;});}}return;}else{if(_1d.scene){_3.publish("/dojox/mobile/app/pushScene",[_1d.scene]);return;}}}var arr=this.findTransitionViews(_1d.moveTo),_21=arr[0],_22=arr[1],_23=arr[2];if(!location.hash&&!_1d.hashchange){_f.initialView=_21;}if(_1d.moveTo&&_22){_1d.moveTo=(_1d.moveTo.charAt(0)==="#"?"#"+_22.id:_22.id)+_23;}if(!_21||(_1d.moveTo&&_21===_c.byId(_1d.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}var src=_c.getEnclosingWidget(evt.target);if(src&&src.callback){_1d.context=src;_1d.method=src.callback;}_21.performTransition(_1d);}});_10._instance=new _10();_10.getInstance=function(){return _10._instance;};return _10;});},"dojox/mobile/RoundRect":function(){define("dojox/mobile/RoundRect",["dojo/_base/declare","dojo/dom-class","./Container"],function(_24,_25,_26){return _24("dojox.mobile.RoundRect",_26,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_25.add(this.domNode,"mblShadow");}}});});},"dojox/mobile/RoundRectList":function(){define("dojox/mobile/RoundRectList",["dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_27,_28,_29,_2a,win,_2b,_2c,_2d,_2e){return _28("dojox.mobile.RoundRectList",[_2e,_2d,_2c],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,syncWithViews:false,editable:false,tag:"ul",editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",buildRendering:function(){this.domNode=this.srcNodeRef||_2b.create(this.tag);this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],_2a.hitch(this,function(_2f){_2a.mixin(this,new _2f());}));}this.connect(this.domNode,"onselectstart",_29.stop);if(this.syncWithViews){var f=function(_30,_31,dir,_32,_33,_34){var _35=_27.filter(this.getChildren(),function(w){return w.moveTo==="#"+_30.id||w.moveTo===_30.id;})[0];if(_35){_35.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_27.forEach(this.getChildren(),function(_36){if(_36.resize){_36.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_37){this._set("stateful",_37);this.selectOne=_37;_27.forEach(this.getChildren(),function(_38){_38.setArrow&&_38.setArrow();});},deselectItem:function(_39){_39.set("selected",false);},deselectAll:function(){_27.forEach(this.getChildren(),function(_3a){_3a.set("selected",false);});},selectItem:function(_3b){_3b.set("selected",true);}});});},"dojox/mobile/sniff":function(){define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/viewRegistry":function(){define("dojox/mobile/viewRegistry",["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_3c,_3d,_3e){var _3f={length:0,hash:{},initialView:null,add:function(_40){this.hash[_40.id]=_40;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(_41){for(var v=_41.getParent();v;v=v.getParent()){if(_3d.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_42){return _3c.filter(this.getViews(),function(v){return this.getParentView(v)===_42;},this);},getEnclosingView:function(_43){for(var n=_43;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_3d.contains(n,"mblView")){return _3e.byNode(n);}}return null;},getEnclosingScrollable:function(_44){for(var w=_3e.getEnclosingWidget(_44);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _3f;});},"dojox/mobile/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_45,_46,_47,on,_48){return _45("dojox.mobile.TransitionEvent",null,{constructor:function(_49,_4a,_4b){this.transitionOptions=_4a;this.target=_49;this.triggerEvent=_4b||null;},dispatch:function(){var _4c={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",_4c);if(evt){_46.when(_48,_47.hitch(this,function(_4d){_46.when(_4d.call(this,evt),_47.hitch(this,function(_4e){this.endTransition(_4e);}));}));}},endTransition:function(_4f){on.emit(this.target,"endTransition",{detail:_4f.transitionOptions});}});});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_50,_51,_52,_53,_54,_55,dom,_56,_57,_58,_59,_5a,has,_5b,_5c,on,_5d,_5e,_5f,win,_60,_61){has.add("dijit-legacy-requires",!_5b.isAsync);if(has("dijit-legacy-requires")){_5d(0,function(){var _62=["dijit/_base/manager"];_50(_62);});}var _63={};function _64(obj){var ret={};for(var _65 in obj){ret[_65.toLowerCase()]=true;}return ret;};function _66(_67){return function(val){_56[val?"set":"remove"](this.domNode,_67,val);this._set(_67,val);};};return _55("dijit._WidgetBase",[_5e,_60],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_66("lang"),dir:"",_setDirAttr:_66("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_53.blankGif||_50.toUrl("dojo/resources/blank.gif"),postscript:function(_68,_69){this.create(_68,_69);},create:function(_6a,_6b){this.srcNodeRef=dom.byId(_6b);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_6a){this.params=_6a;_5c.mixin(this,_6a);}this.postMixInProperties();if(!this.id){this.id=_61.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_61.add(this);this.buildRendering();var _6c;if(this.domNode){this._applyAttributes();var _6d=this.srcNodeRef;if(_6d&&_6d.parentNode&&this.domNode!==_6d){_6d.parentNode.replaceChild(this.domNode,_6d);_6c=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_6c){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _6e=this.constructor,_6f=_6e._setterAttrs;if(!_6f){_6f=(_6e._setterAttrs=[]);for(var _70 in this.attributeMap){_6f.push(_70);}var _71=_6e.prototype;for(var _72 in _71){if(_72 in this.attributeMap){continue;}var _73="_set"+_72.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_73 in _71){_6f.push(_72);}}}_51.forEach(_6f,function(_74){if(this.params&&_74 in this.params){}else{if(this[_74]){this.set(_74,this[_74]);}}},this);for(var _75 in this.params){this.set(_75,this.params[_75]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _76=this.baseClass.split(" ");if(!this.isLeftToRight()){_76=_76.concat(_51.map(_76,function(_77){return _77+"Rtl";}));}_57.add(this.domNode,_76);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_51.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_5c.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_78){this._beingDestroyed=true;this.destroyDescendants(_78);this.destroy(_78);},destroy:function(_79){this._beingDestroyed=true;this.uninitialize();function _7a(w){if(w.destroyRecursive){w.destroyRecursive(_79);}else{if(w.destroy){w.destroy(_79);}}};_51.forEach(this._connects,_5c.hitch(this,"disconnect"));_51.forEach(this._supportingWidgets,_7a);if(this.domNode){_51.forEach(_61.findWidgets(this.domNode,this.containerNode),_7a);}this.destroyRendering(_79);_61.remove(this.id);this._destroyed=true;},destroyRendering:function(_7b){if(this.bgIframe){this.bgIframe.destroy(_7b);delete this.bgIframe;}if(this.domNode){if(_7b){_56.remove(this.domNode,"widgetId");}else{_58.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_7b){_58.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_7c){_51.forEach(this.getChildren(),function(_7d){if(_7d.destroyRecursive){_7d.destroyRecursive(_7c);}});},uninitialize:function(){return false;},_setStyleAttr:function(_7e){var _7f=this.domNode;if(_5c.isObject(_7e)){_5a.set(_7f,_7e);}else{if(_7f.style.cssText){_7f.style.cssText+="; "+_7e;}else{_7f.style.cssText=_7e;}}this._set("style",_7e);},_attrToDom:function(_80,_81,_82){_82=arguments.length>=3?_82:this.attributeMap[_80];_51.forEach(_5c.isArray(_82)?_82:[_82],function(_83){var _84=this[_83.node||_83||"domNode"];var _85=_83.type||"attribute";switch(_85){case "attribute":if(_5c.isFunction(_81)){_81=_5c.hitch(this,_81);}var _86=_83.attribute?_83.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_80)?_80.toLowerCase():_80);if(_84.tagName){_56.set(_84,_86,_81);}else{_84.set(_86,_81);}break;case "innerText":_84.innerHTML="";_84.appendChild(this.ownerDocument.createTextNode(_81));break;case "innerHTML":_84.innerHTML=_81;break;case "class":_57.replace(_84,_81,this[_80]);break;}},this);},get:function(_87){var _88=this._getAttrNames(_87);return this[_88.g]?this[_88.g]():this[_87];},set:function(_89,_8a){if(typeof _89==="object"){for(var x in _89){this.set(x,_89[x]);}return this;}var _8b=this._getAttrNames(_89),_8c=this[_8b.s];if(_5c.isFunction(_8c)){var _8d=_8c.apply(this,Array.prototype.slice.call(arguments,1));}else{var _8e=this.focusNode&&!_5c.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_8e].tagName,_8f=_63[tag]||(_63[tag]=_64(this[_8e])),map=_89 in this.attributeMap?this.attributeMap[_89]:_8b.s in this?this[_8b.s]:((_8b.l in _8f&&typeof _8a!="function")||/^aria-|^data-|^role$/.test(_89))?_8e:null;if(map!=null){this._attrToDom(_89,_8a,map);}this._set(_89,_8a);}return _8d||this;},_attrPairNames:{},_getAttrNames:function(_90){var apn=this._attrPairNames;if(apn[_90]){return apn[_90];}var uc=_90.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_90]={n:_90+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_91,_92){var _93=this[_91];this[_91]=_92;if(this._created&&_92!==_93){if(this._watchCallbacks){this._watchCallbacks(_91,_93,_92);}this.emit("attrmodified-"+_91,{detail:{prevValue:_93,newValue:_92}});}},emit:function(_94,_95,_96){_95=_95||{};if(_95.bubbles===undefined){_95.bubbles=true;}if(_95.cancelable===undefined){_95.cancelable=true;}if(!_95.detail){_95.detail={};}_95.detail.widget=this;var ret,_97=this["on"+_94];if(_97){ret=_97.apply(this,_96?_96:[_95]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,_94.toLowerCase(),_95);}return ret;},on:function(_98,_99){var _9a=this._onMap(_98);if(_9a){return _52.after(this,_9a,_99,true);}return this.own(on(this.domNode,_98,_99))[0];},_onMap:function(_9b){var _9c=this.constructor,map=_9c._onMap;if(!map){map=(_9c._onMap={});for(var _9d in _9c.prototype){if(/^on/.test(_9d)){map[_9d.replace(/^on/,"").toLowerCase()]=_9d;}}}return map[typeof _9b=="string"&&_9b.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_61.findWidgets(this.containerNode):[];},getParent:function(){return _61.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_9e,_9f){return this.own(_54.connect(obj,_9e,this,_9f))[0];},disconnect:function(_a0){_a0.remove();},subscribe:function(t,_a1){return this.own(_5f.subscribe(t,_5c.hitch(this,_a1)))[0];},unsubscribe:function(_a2){_a2.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_59.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_5a.get(this.domNode,"display")!="none");},placeAt:function(_a3,_a4){var _a5=!_a3.tagName&&_61.byId(_a3);if(_a5&&_a5.addChild&&(!_a4||typeof _a4==="number")){_a5.addChild(this,_a4);}else{var ref=_a5?(_a5.containerNode&&!/after|before|replace/.test(_a4||"")?_a5.containerNode:_a5.domNode):dom.byId(_a3,this.ownerDocument);_58.place(this.domNode,ref,_a4);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(_a6,_a7){return _a7;},applyTextDir:function(){},defer:function(fcn,_a8){var _a9=setTimeout(_5c.hitch(this,function(){_a9=null;if(!this._destroyed){_5c.hitch(this,fcn)();}}),_a8||0);return {remove:function(){if(_a9){clearTimeout(_a9);_a9=null;}return null;}};}});});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry"],function(_aa,_ab,_ac,_ad,_ae,has,win,_af,dom,_b0,_b1,_b2,_b3,_b4,_b5,_b6,_b7,_b8,_b9,_ba,_bb){var dm=_ae.getObject("dojox.mobile",true);return _ad("dojox.mobile.View",[_b7,_b6,_b5],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_bc,_bd){if(_bd){dom.byId(_bd).style.visibility="hidden";}},destroy:function(){_bb.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_b1.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_ab["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_b3.set(this.domNode,"webkitTransformStyle","preserve-3d");}_bb.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _be=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _bf,_c0,_c1;_aa.forEach(_be,function(v,i){if(_aa.indexOf(ids,v.id)!==-1){_bf=v;}if(i==0){_c1=v;}if(v.selected){_c0=v;}v._visible=false;},this);(_bf||_c0||_c1)._visible=true;}if(this._visible){this.show(true,true);this.onStartView();_ac.publish("/dojox/mobile/startView",[this]);}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _c2=this.getParent();if(!_c2||!_c2.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_aa.forEach(this.getChildren(),function(_c3){if(_c3.resize){_c3.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_c4,dir,_c5,_c6,_c7){},onAfterTransitionIn:function(_c8,dir,_c9,_ca,_cb){},onBeforeTransitionOut:function(_cc,dir,_cd,_ce,_cf){},onAfterTransitionOut:function(_d0,dir,_d1,_d2,_d3){},_clearClasses:function(_d4){if(!_d4){return;}var _d5=[];_aa.forEach(_ae.trim(_d4.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_d5.push(c);}},this);_d4.className=_d5.join(" ");},_fixViewState:function(_d6){var _d7=this.domNode.parentNode.childNodes;for(var i=0;i<_d7.length;i++){var n=_d7[i];if(n.nodeType===1&&_b0.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_d6);},convertToId:function(_d8){if(typeof (_d8)=="string"){return _d8.replace(/^#?([^&?]+).*/,"$1");}return _d8;},_isBookmarkable:function(_d9){return _d9.moveTo&&(_ab["mblForceBookmarkable"]||_d9.moveTo.charAt(0)==="#")&&!_d9.hashchange;},performTransition:function(_da,_db,_dc,_dd,_de){var _df,_e0;if(_da&&typeof (_da)==="object"){_df=_da;_e0=_db;}else{_df={moveTo:_da,transitionDir:_db,transition:_dc,context:_dd,method:_de};_e0=[];for(var i=5;i<arguments.length;i++){_e0.push(arguments[i]);}}this._detail=_df;this._optArgs=_e0;this._arguments=[_df.moveTo,_df.transitionDir,_df.transition,_df.context,_df.method];if(_df.moveTo==="#"){return;}var _e1;if(_df.moveTo){_e1=this.convertToId(_df.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_e1=this._dummyNode;}if(this.addTransitionInfo&&typeof (_df.moveTo)=="string"&&this._isBookmarkable(_df)){this.addTransitionInfo(this.id,_df.moveTo,{transitionDir:_df.transitionDir,transition:_df.transition});}var _e2=this.domNode;var _e3=_e2.offsetTop;_e1=this.toNode=dom.byId(_e1);if(!_e1){return;}_e1.style.visibility="hidden";_e1.style.display="";this._fixViewState(_e1);var _e4=_b4.byNode(_e1);if(_e4){if(_ab["mblAlwaysResizeOnTransition"]||!_e4._resized){_b9.resizeAll(null,_e4);_e4._resized=true;}if(_df.transition&&_df.transition!="none"){_e4.containerNode.style.paddingTop=_e3+"px";}_e4.load&&_e4.load();_e4.movedFrom=_e2.id;}if(has("mblAndroidWorkaround")&&!_ab["mblCSS3Transition"]&&_df.transition&&_df.transition!="none"){_b3.set(_e1,"webkitTransformStyle","preserve-3d");_b3.set(_e2,"webkitTransformStyle","preserve-3d");_b0.add(_e1,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_ac.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_ae._toArray(this._arguments)));if(_e4){if(this.keepScrollPos&&!this.getParent()){var _e5=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_e2._scrollTop=_e5;var _e6=(_df.transitionDir==1)?0:(_e1._scrollTop||0);_e1.style.top="0px";if(_e5>1||_e6!==0){_e2.style.top=_e6-_e5+"px";if(_ab["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_e6||1));},0);}}}else{_e1.style.top="0px";}_e4.onBeforeTransitionIn.apply(_e4,this._arguments);_ac.publish("/dojox/mobile/beforeTransitionIn",[_e4].concat(_ae._toArray(this._arguments)));}_e1.style.display="none";_e1.style.visibility="visible";_b9.fromView=this;_b9.toView=_e4;this._doTransition(_e2,_e1,_df.transition,_df.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_e7,_e8,_e9,_ea){var rev=(_ea==-1)?" mblReverse":"";_e8.style.display="";if(!_e9||_e9=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_ab["mblCSS3Transition"]){_af.when(_ba,_ae.hitch(this,function(_eb){var _ec=_b3.get(_e8,"position");_b3.set(_e8,"position","absolute");_af.when(_eb(_e7,_e8,{transition:_e9,reverse:(_ea===-1)?true:false}),_ae.hitch(this,function(){_b3.set(_e8,"position",_ec);this.invokeCallback();}));}));}else{if(_e9.indexOf("cube")!=-1){if(has("ipad")){_b3.set(_e8.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_b3.set(_e8.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_e9);if(has("mblAndroidWorkaround")){setTimeout(function(){_b0.add(_e7,s+" mblOut"+rev);_b0.add(_e8,s+" mblIn"+rev);_b0.remove(_e8,"mblAndroidWorkaround");setTimeout(function(){_b0.add(_e7,"mblTransition");_b0.add(_e8,"mblTransition");},30);},70);}else{_b0.add(_e7,s+" mblOut"+rev);_b0.add(_e8,s+" mblIn"+rev);setTimeout(function(){_b0.add(_e7,"mblTransition");_b0.add(_e8,"mblTransition");},100);}var _ed="50% 50%";var _ee="50% 50%";var _ef,_f0,_f1;if(_e9.indexOf("swirl")!=-1||_e9.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_ef=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_ef=-_b2.position(_e7,true).y;}_f1=win.global.innerHeight/2+_ef;_ed="50% "+_f1+"px";_ee="50% "+_f1+"px";}else{if(_e9.indexOf("scale")!=-1){var _f2=_b2.position(_e7,true);_f0=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_f2.x;if(this.keepScrollPos&&!this.getParent()){_ef=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_ef=-_f2.y;}_f1=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_ef;_ed=_f0+"px "+_f1+"px";_ee=_f0+"px "+_f1+"px";}}_b3.set(_e7,{webkitTransformOrigin:_ed});_b3.set(_e8,{webkitTransformOrigin:_ee});}}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _f3=e.animationName||e.target.className;if(_f3.indexOf("Out")===-1&&_f3.indexOf("In")===-1&&_f3.indexOf("Shrink")===-1){return;}var _f4=false;if(_b0.contains(this.domNode,"mblOut")){_f4=true;this.domNode.style.display="none";_b0.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_b3.set(this.domNode,{webkitTransformOrigin:""});if(_f3.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_b0.remove(li,"mblCloseContent");var p=_bb.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_f4){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(_f3.indexOf("Cube")!==-1&&_f3.indexOf("In")!==-1&&has("iphone")){this.domNode.parentNode.style.webkitPerspective="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_ac.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _f5=_b4.byNode(this.toNode);if(_f5){_f5.onAfterTransitionIn.apply(_f5,this._arguments);_ac.publish("/dojox/mobile/afterTransitionIn",[_f5].concat(this._arguments));_f5.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_f5);}}if(has("mblAndroidWorkaround")){setTimeout(_ae.hitch(this,function(){if(_f5){_b3.set(this.toNode,"webkitTransformStyle","");}_b3.set(this.domNode,"webkitTransformStyle","");}),0);}var c=this._detail.context,m=this._detail.method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}},isVisible:function(_f6){var _f7=function(_f8){return _b3.get(_f8,"display")!=="none";};if(_f6){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_f7(n)){return false;}}return true;}else{return _f7(this.domNode);}},getShowingView:function(){var _f9=this.domNode.parentNode.childNodes;for(var i=0;i<_f9.length;i++){var n=_f9[i];if(n.nodeType===1&&_b0.contains(n,"mblView")&&n.style.display!=="none"){return _b4.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _aa.map(_aa.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_b0.contains(n,"mblView");}),function(n){return _b4.byNode(n);});},show:function(_fa,_fb){var out=this.getShowingView();if(!_fa){if(out){out.onBeforeTransitionOut(out.id);_ac.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_ac.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_fb){this.domNode.style.display="";}else{_aa.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_fa){if(out){out.onAfterTransitionOut(out.id);_ac.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_ac.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_fc){return _fc.dojox;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_fd,_fe){if(_fe["mblCSS3Transition"]){var _ff=new _fd();require([_fe["mblCSS3Transition"]],function(_100){_ff.resolve(_100);});return _ff;}return null;});},"dojo/touch":function(){define(["./_base/kernel","./_base/lang","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,lang,_101,dom,on,has,_102,_103,win){var _104=has("touch");var _105,_106;if(_104){_103(function(){_106=win.body();win.doc.addEventListener("touchstart",function(evt){var _107=_106;_106=evt.target;on.emit(_107,"dojotouchout",{target:_107,relatedTarget:_106,bubbles:true});on.emit(_106,"dojotouchover",{target:_106,relatedTarget:_107,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _108=win.doc.elementFromPoint(evt.pageX-win.global.pageXOffset,evt.pageY-win.global.pageYOffset);if(_108&&_106!==_108){on.emit(_106,"dojotouchout",{target:_106,relatedTarget:_108,bubbles:true});on.emit(_108,"dojotouchover",{target:_108,relatedTarget:_106,bubbles:true});_106=_108;}});});_105=function(node,_109){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_106,node)){_109.call(this,lang.mixin({},evt,{target:_106}));}});};}function _10a(type){return function(node,_10b){return on(node,type,_10b);};};var _10c={press:_10a(_104?"touchstart":"mousedown"),move:_104?_105:_10a("mousemove"),release:_10a(_104?"touchend":"mouseup"),cancel:_104?_10a("touchcancel"):_102.leave,over:_10a(_104?"dojotouchover":"mouseover"),out:_10a(_104?"dojotouchout":"mouseout"),enter:_102._eventHandler(_104?"dojotouchover":"mouseover"),leave:_102._eventHandler(_104?"dojotouchout":"mouseout")};1&&(dojo.touch=_10c);return _10c;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_10d,lang,_10e,when){return _10d("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_10f){if(_10f){this.set(_10f);}},_get:function(name,_110){return typeof this[_110.g]==="function"?this[_110.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_111){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _112=this._getAttrNames(name),_113=this._get(name,_112),_114=this[_112.s],_115;if(typeof _114==="function"){_115=_114.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_111;}if(this._watchCallbacks){var self=this;when(_115,function(){self._watchCallbacks(name,_113,_111);});}return this;},_changeAttrValue:function(name,_116){var _117=this.get(name);this[name]=_116;if(this._watchCallbacks){this._watchCallbacks(name,_117,_116);}return this;},watch:function(name,_118){var _119=this._watchCallbacks;if(!_119){var self=this;_119=this._watchCallbacks=function(name,_11a,_11b,_11c){var _11d=function(_11e){if(_11e){_11e=_11e.slice();for(var i=0,l=_11e.length;i<l;i++){_11e[i].call(self,name,_11a,_11b);}}};_11d(_119["_"+name]);if(!_11c){_11d(_119["*"]);}};}if(!_118&&typeof name==="function"){_118=name;name="*";}else{name="_"+name;}var _11f=_119[name];if(typeof _11f!=="object"){_11f=_119[name]=[];}_11f.push(_118);var _120={};_120.unwatch=_120.remove=function(){var _121=_10e.indexOf(_11f,_118);if(_121>-1){_11f.splice(_121,1);}};return _120;}});});},"dojox/mobile/Heading":function(){define("dojox/mobile/Heading",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View"],function(_122,_123,_124,lang,win,dom,_125,_126,_127,_128,_129,_12a,_12b,_12c,_12d,View){var dm=lang.getObject("dojox.mobile",true);return _124("dojox.mobile.Heading",[_12b,_12a,_129],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.inherited(arguments);if(!this.label){_122.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_126.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_126.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_126.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _12e=this.getParent&&this.getParent();if(!_12e||!_12e.resize){var _12f=this;setTimeout(function(){_12f.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _130,_131;var _132=this.containerNode.childNodes;for(var i=_132.length-1;i>=0;i--){var c=_132[i];if(c.nodeType===1&&_127.get(c,"display")!=="none"){if(!_131&&_127.get(c,"float")==="right"){_131=c;}if(!_130&&_127.get(c,"float")==="left"){_130=c;}}}if(!this.labelNodeLen&&this.label){this.labelNode.style.display="inline";this.labelNodeLen=this.labelNode.offsetWidth;this.labelNode.style.display="";}var bw=this.domNode.offsetWidth;var rw=_131?bw-_131.offsetLeft+5:0;var lw=_130?_130.offsetLeft+_130.offsetWidth+5:0;var tw=this.labelNodeLen||0;_125[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_122.forEach(this.getChildren(),function(_133){if(_133.resize){_133.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _12d({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo,href:this.href,transition:this.transition,transitionDir:-1});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setLabelAttr:function(_134){this._set("label",_134);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_134):_134;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _12c({size:30,center:false});_125.add(prog.domNode,this.progStyle);}_126.place(prog.domNode,this.domNode,"first");prog.start();}else{prog.stop();}this._set("busy",busy);}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_135,_136,_137,_138,win,_139,_13a,_13b,_13c,_13d,_13e,has){return _137("dojox.mobile.Switch",[_13e,_13d],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",_createdMasks:[],buildRendering:function(){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_13a.create("span");this.inherited(arguments);var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_139.add(this.domNode,this.shape);var _13f=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\"></div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\"></div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"<input type=\"hidden\""+_13f+"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];},postCreate:function(){this._clickHandle=this.connect(this.domNode,"onclick","_onClick");this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this._startHandle=this.connect(this.domNode,_13c.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_140,anim){var on=(_140==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_139.add(this.domNode,"mblSwitchAnimation");}_139.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_139.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _141=this;setTimeout(function(){_141.left.style.display=on?"":"none";_141.right.style.display=!on?"":"none";_139.remove(_141.domNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._hasMaskImage){return;}this._width=this.domNode.offsetWidth-this.knob.offsetWidth;this._hasMaskImage=true;if(!has("webkit")){return;}var rDef=_13b.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _142=rDef.split(" ");var rx=parseFloat(_142[0]),ry=(_142.length==1)?rx:parseFloat(_142[1]);var w=this.domNode.offsetWidth,h=this.domNode.offsetHeight;var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");if(!this._createdMasks[id]){this._createdMasks[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,w,h);ctx.fillStyle="#000000";ctx.beginPath();if(rx==ry){ctx.moveTo(rx,0);ctx.arcTo(0,0,0,rx,rx);ctx.lineTo(0,h-rx);ctx.arcTo(0,h,rx,h,rx);ctx.lineTo(w-rx,h);ctx.arcTo(w,h,w,rx,rx);ctx.lineTo(w,rx);ctx.arcTo(w,0,w-rx,0,rx);}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(rx,0);ctx.arc(rx,rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(w-rx,2*rx);ctx.arc(w-rx,rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}this.domNode.style.webkitMaskImage="-webkit-canvas("+id+")";},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_13c.move,"onTouchMove"),this.connect(this.inner,_13c.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_138.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_135.forEach(this._conn,_136.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _143=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_143,true);if(_143!=this.value){this.value=this.input.value=_143;this.onStateChanged(_143);}},onStateChanged:function(_144){},_setValueAttr:function(_145){this._changeState(_145,false);if(this.value!=_145){this.onStateChanged(_145);}this.value=this.input.value=_145;},_setLeftLabelAttr:function(_146){this.leftLabel=_146;this.left.firstChild.innerHTML=this._cv?this._cv(_146):_146;},_setRightLabelAttr:function(_147){this.rightLabel=_147;this.right.firstChild.innerHTML=this._cv?this._cv(_147):_147;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator"],function(_148,_149,lang,_14a,_14b,_14c,_14d,_14e,_14f,_150,_151){var _152=_149("dojox.mobile.ListItem",_150,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_14b.create(this.tag);this.inherited(arguments);if(this.selected){_14a.add(this.domNode,this._selClass);}if(this.header){_14a.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_14b.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);if(this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this._anchorClickHandle=this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _153=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_153&&_153.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_14a.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_14a.add(this.domNode,"mblVariableHeight");this.defer(lang.hitch(this,"layoutVariableHeight"),0);}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this.icon,deleteIcon:this.deleteIcon,rightIcon:this.rightIcon,rightIcon2:this.rightIcon2});}if(_153&&_153.select){this.set("checked",this.checked);}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _154;_148.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _155=n.getAttribute("layout")||(_14d.byNode(n)||{}).layout;if(_155){_14a.add(n,"mblListItemLayout"+_155.charAt(0).toUpperCase()+_155.substring(1));this._layoutChildren.push(n);if(_155==="center"){_154=n;}}},this);if(_154){this.domNode.insertBefore(_154,this.domNode.firstChild);}},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||(_14d.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if(this.anchorLabel&&e.currentTarget===n){_14a.add(n,"mblListItemLabelSelected");setTimeout(function(){_14a.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _156=this.getParent();if(_156.select){if(_156.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_156.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_148.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _157=this.domNode;var f=function(){var t=Math.round((_157.offsetHeight-n.offsetHeight)/2)-_14c.get(_157,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _158=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_158&&_158.selectOne)){c=this.arrowClass||"mblDomButtonArrow";}}if(c){this._setRightIconAttr(c);}},_findRef:function(type){var i,node,list=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_148.indexOf(list,type)+1;i<list.length;i++){node=this[list[i]+"Node"];if(node){return node;}}for(i=list.length-1;i>=0;i--){node=this[list[i]+"Node"];if(node){return node.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(icon,type){if(!this._isOnLine){return;}this._set(type,icon);this[type+"Node"]=_14f.setIcon(icon,this[type+"Pos"],this[type+"Node"],this[type+"Title"]||this.alt,this.domNode,this._findRef(type),"before");if(this[type+"Node"]){var cap=type.charAt(0).toUpperCase()+type.substring(1);_14a.add(this[type+"Node"],"mblListItem"+cap);}var role=this[type+"Role"];if(role){this[type+"Node"].setAttribute("role",role);}},_setDeleteIconAttr:function(icon){this._setIcon(icon,"deleteIcon");},_setIconAttr:function(icon){this._setIcon(icon,"icon");},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_14b.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){this._setIcon(icon,"rightIcon");},_setUncheckIconAttr:function(icon){this._setIcon(icon,"uncheckIcon");},_setRightIcon2Attr:function(icon){this._setIcon(icon,"rightIcon2");},_setCheckedAttr:function(_159){if(!this._isOnLine){return;}var _15a=this.getParent();if(_15a&&_15a.select==="single"&&_159){_148.forEach(_15a.getChildren(),function(_15b){_15b!==this&&_15b.checked&&_15b.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_14a.toggle(this.domNode,"mblListItemChecked",_159);_14a.toggle(this.domNode,"mblListItemUnchecked",!_159);_14a.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_159)?"absolute":"";if(_15a&&this.checked!==_159){_15a.onCheckStateChanged(this,_159);}this._set("checked",_159);},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_14b.create("div",{className:"mblListItemIcon"});prog=this._prog=new _151({size:25,center:false});_14a.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_14b.place(this._progNode,this._findRef("icon"),"before");}prog.start();}else{if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}prog.stop();}this._set("busy",busy);},_setSelectedAttr:function(_15c){this.inherited(arguments);_14a.toggle(this.domNode,this._selClass,_15c);}});_152.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_14e,_152.ChildWidgetProperties);return _152;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_15d,has,_15e,win,_15f){var _160={},hash={};var _161={length:0,add:function(_162){if(hash[_162.id]){throw new Error("Tried to register widget with id=="+_162.id+" but that id is already registered");}hash[_162.id]=_162;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_163){var id;do{id=_163+"_"+(_163 in _160?++_160[_163]:_160[_163]=0);}while(hash[id]);return _15f._scopeName=="dijit"?id:_15f._scopeName+"_"+id;},findWidgets:function(root,_164){var _165=[];function _166(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _167=node.getAttribute("widgetId");if(_167){var _168=hash[_167];if(_168){_165.push(_168);}}else{if(node!==_164){_166(node);}}}}};_166(root);return _165;},_destroyAll:function(){_15f._curFocus=null;_15f._prevFocus=null;_15f._activeStack=[];_15d.forEach(_161.findWidgets(win.body()),function(_169){if(!_169._destroyed){if(_169.destroyRecursive){_169.destroyRecursive();}else{if(_169.destroy){_169.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_15f.registry=_161;return _161;});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_16a,_16b,_16c,_16d){return _16b("dojox.mobile.Pane",[_16d,_16c],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_16a.forEach(this.getChildren(),function(_16e){if(_16e.resize){_16e.resize();}});}});});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/ready","dijit/registry","./sniff","./uacss"],function(_16f,_170,_171,lang,win,_172,_173,_174,_175,has){var dm=lang.getObject("dojox.mobile",true);dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_172.replace(win.doc.documentElement,dim.h>dim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_176){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_176||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_176||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_172.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_171.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_170["mblHideAddressBarWait"])==="number"?_170["mblHideAddressBarWait"]:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("iphone")?200:0;var minH=screen.availHeight;if(has("android")){minH=outerHeight/devicePixelRatio;if(minH==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(minH<=innerHeight){minH=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight<minH){win.body().style.minHeight=minH+"px";dm._resetMinHeight=true;}setTimeout(dm.hide_1,dm._hidingTimer);};dm.isAddressBarHidden=function(){return pageYOffset===1;};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_171.publish("/dojox/mobile/resizeAll",[evt,root]);_171.publish("/dojox/mobile/beforeResizeAll",[evt,root]);if(dm._resetMinHeight){win.body().style.minHeight=dm.getScreenSize().h+"px";}dm.updateOrient();dm.detectScreenSize();var _177=function(w){var _178=w.getParent&&w.getParent();return !!((!_178||!_178.resize)&&w.resize);};var _179=function(w){_16f.forEach(w.getChildren(),function(_17a){if(_177(_17a)){_17a.resize();}_179(_17a);});};if(root){if(root.resize){root.resize();}_179(root);}else{_16f.forEach(_16f.filter(_175.toArray(),_177),function(w){w.resize();});}_171.publish("/dojox/mobile/afterResizeAll",[evt,root]);};dm.openWindow=function(url,_17b){win.global.open(url,_17b||"_blank");};if(_170["mblApplyPageStyles"]!==false){_172.add(win.doc.documentElement,"mobile");}if(has("chrome")){_172.add(win.doc.documentElement,"dj_chrome");}if(win.global._no_dojo_dm){var _17c=win.global._no_dojo_dm;for(var i in _17c){dm[i]=_17c[i];}dm.deviceTheme.setDm(dm);}has.add("mblAndroidWorkaround",_170["mblAndroidWorkaround"]!==false&&has("android")<3,undefined,true);has.add("mblAndroid3Workaround",_170["mblAndroid3Workaround"]!==false&&has("android")>=3,undefined,true);_174(function(){dm.detectScreenSize(true);if(_170["mblAndroidWorkaroundButtonStyle"]!==false&&has("android")){_173.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("mblAndroidWorkaround")){_173.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;if(_170["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_170["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_170["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}if(has("android")&&win.global.onorientationchange!==undefined){var _17d=f;f=function(evt){var _17e=_171.connect(null,"onresize",null,function(e){_171.disconnect(_17e);_17d(e);});};var _17f=dm.getScreenSize();_171.connect(null,"onresize",null,function(e){var _180=dm.getScreenSize();if(_180.w==_17f.w&&Math.abs(_180.h-_17f.h)>=100){_17d(e);}_17f=_180;});}_171.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojox/mobile/iconUtils":function(){define("dojox/mobile/iconUtils",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_181,_182,_183,_184,lang,win,_185,_186,_187,has){var dm=lang.getObject("dojox.mobile",true);var _188=function(){this.setupSpriteIcon=function(_189,_18a){if(_189&&_18a){var arr=_181.map(_18a.split(/[ ,]/),function(item){return item-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_187.set(_189,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_189.parentNode?_187.get(_189,"top"):0)-t+"px",left:-l+"px"});_185.add(_189,"mblSpriteIcon");}};this.createDomButton=function(_18b,_18c,_18d){if(!this._domButtons){if(has("webkit")){var _18e=function(_18f,dic){var i,j;if(!_18f){var _190={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_18e(ss[i],_190);}return _190;}var _191=_18f.cssRules||[];for(i=0;i<_191.length;i++){var rule=_191[i];if(rule.href&&rule.styleSheet){_18e(rule.styleSheet,dic);}else{if(rule.selectorText){var sels=rule.selectorText.split(/,/);for(j=0;j<sels.length;j++){var sel=sels[j];var n=sel.split(/>/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}return dic;};this._domButtons=_18e();}else{this._domButtons={};}}var s=_18b.className;var node=_18d||_18b;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _192=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_192]!==undefined){nDiv=this._domButtons[_192];}}var _193=null;if(has("bb")&&_182["mblBBBoxShadowWorkaround"]!==false){_193={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_186.create("div",_193,p);}if(_18d){setTimeout(function(){_185.remove(_18b,_192);},0);_185.add(_18d,_192);}}else{if(s.indexOf(".")!==-1){_186.create("img",{src:s},node);}else{return null;}}_185.add(node,"mblDomButton");!!_18c&&_187.set(node,_18c);return node;};this.createIcon=function(icon,_194,node,_195,_196,_197,pos){_195=_195||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_186.create("div",null,_197||_196,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_185.remove(node,RegExp.$1);}}node.title=_195;_185.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_186.create("img",{alt:_195},_197||_196,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_194);if(_194&&_196){var arr=_194.split(/[ ,]/);_187.set(_196,{width:arr[2]+"px",height:arr[3]+"px"});_185.add(_196,"mblSpriteIconParent");}_183.connect(node,"ondragstart",_184,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_198,_199,alt,_19a,_19b,pos){if(!_19a||!icon&&!_199){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_198){if(_199&&_199.tagName==="DIV"){_186.destroy(_199);_199=null;}_199=this.createIcon(icon,null,_199,alt,_19a,_19b,pos);_185.add(_199,"mblImageIcon");}else{if(_199&&_199.tagName==="IMG"){_186.destroy(_199);_199=null;}_199&&_186.empty(_199);if(!_199){_199=_186.create("div",null,_19b||_19a,pos);}this.createIcon(icon,_198,null,null,_199);if(alt){_199.title=alt;}}_185.remove(_19a,"mblNoIcon");return _199;}else{_186.destroy(_199);_185.add(_19a,"mblNoIcon");return null;}};};return new _188();});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(dojo,lang,win,has){var html=win.doc.documentElement;html.className=lang.trim(html.className+" "+[has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return dojo;});},"dojox/mobile/RoundRectCategory":function(){define("dojox/mobile/RoundRectCategory",["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_19c,win,_19d,_19e,_19f){return _19c("dojox.mobile.RoundRectCategory",[_19f,_19e],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _1a0=this.domNode=this.containerNode=this.srcNodeRef||_19d.create(this.tag);this.inherited(arguments);if(!this.label&&_1a0.childNodes.length===1&&_1a0.firstChild.nodeType===3){this.label=_1a0.firstChild.nodeValue;}},_setLabelAttr:function(_1a1){this.label=_1a1;this.domNode.innerHTML=this._cv?this._cv(_1a1):_1a1;}});});},"dojox/mobile/ProgressIndicator":function(){define("dojox/mobile/ProgressIndicator",["dojo/_base/config","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase"],function(_1a2,_1a3,lang,_1a4,_1a5,_1a6,_1a7,has,_1a8,_1a9){var cls=_1a3("dojox.mobile.ProgressIndicator",[_1a9,_1a8],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_1a4.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_1a5.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_1a5.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_1a5.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _1aa=size/40;_1a7.set(this.containerNode,{webkitTransform:"scale("+_1aa+")",webkitTransformOrigin:"0 0"});_1a6.setMarginBox(this.domNode,{w:size,h:size});_1a6.setMarginBox(this.containerNode,{w:size/_1aa,h:size/_1aa});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _1ab=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_1ab.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;if(c[idx]){_1ab._bars[i].style.backgroundColor=c[idx];}else{_1a4.replace(_1ab._bars[i],"mblProg"+idx+"Color","mblProg"+(idx===n-1?0:idx+1)+"Color");}}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.removeOnStop&&this.domNode&&this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_1a5.create("img",{src:file},this.containerNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.containerNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(_1ac){if(!cls._instance){cls._instance=new cls(_1ac);}return cls._instance;};return cls;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_1ad,_1ae){return _1ad("dojox.mobile.EdgeToEdgeList",_1ae,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_1af,_1b0){return _1af("dojox.mobile.EdgeToEdgeCategory",_1b0,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/Container":function(){define("dojox/mobile/Container",["dojo/_base/declare","dijit/_Container","./Pane"],function(_1b1,_1b2,Pane){return _1b1("dojox.mobile.Container",[Pane,_1b2],{baseClass:"mblContainer"});});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff","./_ItemBase"],function(_1b3,lang,win,_1b4,_1b5,_1b6,has,_1b7){return _1b3("dojox.mobile.ToolBarButton",_1b7,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=lang.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_1b5.create("span");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_1b4.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_1b5.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_1b4.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_1b5.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_1b5.create("table",{cellPadding:"0",cellSpacing:"0",border:"0"},this.bodyNode);var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_1b4.add(this.domNode,"mblToolBarButtonHasIcon");_1b4.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_1b4.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this.icon);}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(text){this.inherited(arguments);_1b4.toggle(this.tableNode,"mblToolBarButtonText",text);},_setSelectedAttr:function(_1b8){var _1b9=function(node,a,b){_1b4.replace(node,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_1b8){_1b4.replace(this.bodyNode,this.selColor,this.defaultColor);if(!has("ie")&&this.arrowNode){_1b9(this.arrowNode,this.selColor,this.defaultColor);}}else{_1b4.replace(this.bodyNode,this.defaultColor,this.selColor);if(!has("ie")&&this.arrowNode){_1b9(this.arrowNode,this.defaultColor,this.selColor);}}_1b4.toggle(this.domNode,"mblToolBarButtonSelected",_1b8);_1b4.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_1b8);}});});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils"],function(_1ba,_1bb,lang,win,_1bc,_1bd,_1be,_1bf,_1c0,_1c1,_1c2,_1c3){return _1bb("dojox.mobile._ItemBase",[_1c1,_1c0,_1bf],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}if(this._handleClick&&this._selStartMethod==="touch"){this._onTouchStartHandle=this.connect(this.domNode,_1bd.press,"_onTouchStart");}this.inherited(arguments);},inheritParams:function(){var _1c4=this.getParent();if(_1c4){_1ba.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var base=p+"Base",pos=p+"Pos";if(this[p]&&_1c4[base]&&_1c4[base].charAt(_1c4[base].length-1)==="/"){this[p]=_1c4[base]+this[p];}if(!this[p]){this[p]=_1c4[base];}if(!this[pos]){this[pos]=_1c4[pos];}}if(!this[p]){this[p]=_1c4[p];}},this);}return !!_1c4;},getTransOpts:function(){var opts=this.transitionOptions||{};_1ba.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){opts[p]=opts[p]||this[p];},this);return opts;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){var _1c5=this;this.defer(function(){_1c5.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var opts=this.getTransOpts();var _1c6=!!(opts.moveTo||opts.href||opts.url||opts.target||opts.scene);if(this._prepareForTransition(e,_1c6?opts:null)===false){return;}if(_1c6){this.setTransitionPos(e);new _1c2(this.domNode,opts,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_1c7){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_1bd.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_1bd.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=setTimeout(lang.hitch(this,function(){this.set("selected",true);}),100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){clearTimeout(this._selTimer);this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_1bc.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_1c8,href,url,_1c9){var opts=(_1c8&&typeof (_1c8)==="object")?_1c8:{moveTo:_1c8,href:href,url:url,scene:_1c9,transition:this.transition,transitionDir:this.transitionDir};new _1c2(this.domNode,opts).dispatch();},_setIconAttr:function(icon){if(!this._isOnLine){return;}this._set("icon",icon);this.iconNode=_1c3.setIcon(icon,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(text){this._set("label",text);this.labelNode.innerHTML=this._cv?this._cv(text):text;},_setSelectedAttr:function(_1ca){if(_1ca){var p=this.getParent();if(p&&p.selectOne){var arr=_1ba.filter(p.getChildren(),function(w){return w.selected;});_1ba.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_1ca);}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_1cb,_1cc){return _1cb("dijit._Contained",null,{_getSibling:function(_1cd){var node=this.domNode;do{node=node[_1cd+"Sibling"];}while(node&&node.nodeType!=1);return node&&_1cc.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_1ce,View,_1cf,_1d0,_1d1,_1d2,_1d3,_1d4,_1d5,_1d6,_1d7,_1d8){return _1ce;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_1d9,_1da,_1db){return _1db("dijit.Destroyable",null,{destroy:function(_1dc){this._destroyed=true;},own:function(){_1d9.forEach(arguments,function(_1dd){var _1de="destroyRecursive" in _1dd?"destroyRecursive":"destroy" in _1dd?"destroy":"remove";_1dd._odh=_1da.before(this,"destroy",function(_1df){_1dd._odh.remove();_1dd[_1de](_1df);});_1da.after(_1dd,_1de,function(){_1dd._odh.remove();});},this);return arguments;}});});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct"],function(_1e0,_1e1,_1e2){return _1e1("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1e3,_1e4){var _1e5=this.containerNode;if(_1e4&&typeof _1e4=="number"){var _1e6=this.getChildren();if(_1e6&&_1e6.length>=_1e4){_1e5=_1e6[_1e4-1].domNode;_1e4="after";}}_1e2.place(_1e3.domNode,_1e5,_1e4);if(this._started&&!_1e3._started){_1e3.startup();}},removeChild:function(_1e7){if(typeof _1e7=="number"){_1e7=this.getChildren()[_1e7];}if(_1e7){var node=_1e7.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_1e8,dir){var _1e9=this.getChildren(),idx=_1e0.indexOf(this.getChildren(),_1e8);return _1e9[idx+dir];},getIndexOfChild:function(_1ea){return _1e0.indexOf(this.getChildren(),_1ea);}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_1eb,lang,base){lang.getObject("mobile",true,_1eb);return _1eb.mobile;}); +require({cache:{"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_1,_2){return _1("dojox.mobile.EdgeToEdgeList",_2,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(_3,_4,_5,on,_6,_7,_8,_9){var _a=_6("touch");var _b=false;if(_6("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));_b=os<5;}var _c;function _d(_e,_f){if(_a){return function(_10,_11){var _12=on(_10,_f,_11),_13=on(_10,_e,function(evt){if(!_c||(new Date()).getTime()>_c+1000){_11.call(this,evt);}});return {remove:function(){_12.remove();_13.remove();}};};}else{return function(_14,_15){return on(_14,_e,_15);};}};var _16,_17;if(_a){_8(function(){_17=_9.body();_9.doc.addEventListener("touchstart",function(evt){_c=(new Date()).getTime();var _18=_17;_17=evt.target;on.emit(_18,"dojotouchout",{target:_18,relatedTarget:_17,bubbles:true});on.emit(_17,"dojotouchover",{target:_17,relatedTarget:_18,bubbles:true});},true);on(_9.doc,"touchmove",function(evt){_c=(new Date()).getTime();var _19=_9.doc.elementFromPoint(evt.pageX-(_b?0:_9.global.pageXOffset),evt.pageY-(_b?0:_9.global.pageYOffset));if(_19&&_17!==_19){on.emit(_17,"dojotouchout",{target:_17,relatedTarget:_19,bubbles:true});on.emit(_19,"dojotouchover",{target:_19,relatedTarget:_17,bubbles:true});_17=_19;}});});_16=function(_1a,_1b){return on(_9.doc,"touchmove",function(evt){if(_1a===_9.doc||_5.isDescendant(_17,_1a)){evt.target=_17;_1b.call(this,evt);}});};}var _1c={press:_d("mousedown","touchstart"),move:_d("mousemove",_16),release:_d("mouseup","touchend"),cancel:_d(_7.leave,"touchcancel"),over:_d("mouseover","dojotouchover"),out:_d("mouseout","dojotouchout"),enter:_7._eventHandler(_d("mouseover","dojotouchover")),leave:_7._eventHandler(_d("mouseout","dojotouchout"))};1&&(_3.touch=_1c);return _1c;});},"dojox/mobile/iconUtils":function(){define("dojox/mobile/iconUtils",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_1d,_1e,_1f,_20,_21,win,_22,_23,_24,has){var dm=_21.getObject("dojox.mobile",true);var _25=function(){this.setupSpriteIcon=function(_26,_27){if(_26&&_27){var arr=_1d.map(_27.split(/[ ,]/),function(_28){return _28-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_24.set(_26,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_26.parentNode?_24.get(_26,"top"):0)-t+"px",left:-l+"px"});_22.add(_26,"mblSpriteIcon");}};this.createDomButton=function(_29,_2a,_2b){if(!this._domButtons){if(has("webkit")){var _2c=function(_2d,dic){var i,j;if(!_2d){var _2e={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_2c(ss[i],_2e);}return _2e;}var _2f=_2d.cssRules||[];for(i=0;i<_2f.length;i++){var _30=_2f[i];if(_30.href&&_30.styleSheet){_2c(_30.styleSheet,dic);}else{if(_30.selectorText){var _31=_30.selectorText.split(/,/);for(j=0;j<_31.length;j++){var sel=_31[j];var n=sel.split(/>/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}return dic;};this._domButtons=_2c();}else{this._domButtons={};}}var s=_29.className;var _32=_2b||_29;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _33=RegExp.$1;var _34=4;if(s.match(/(mblDomButton\w+_(\d+))/)){_34=RegExp.$2-0;}else{if(this._domButtons[_33]!==undefined){_34=this._domButtons[_33];}}var _35=null;if(has("bb")&&_1e["mblBBBoxShadowWorkaround"]!==false){_35={style:"-webkit-box-shadow:none"};}for(var i=0,p=_32;i<_34;i++){p=p.firstChild||_23.create("div",_35,p);}if(_2b){setTimeout(function(){_22.remove(_29,_33);},0);_22.add(_2b,_33);}}else{if(s.indexOf(".")!==-1){_23.create("img",{src:s},_32);}else{return null;}}_22.add(_32,"mblDomButton");!!_2a&&_24.set(_32,_2a);return _32;};this.createIcon=function(_36,_37,_38,_39,_3a,_3b,pos){_39=_39||"";if(_36&&_36.indexOf("mblDomButton")===0){if(!_38){_38=_23.create("div",null,_3b||_3a,pos);}else{if(_38.className.match(/(mblDomButton\w+)/)){_22.remove(_38,RegExp.$1);}}_38.title=_39;_22.add(_38,_36);this.createDomButton(_38);}else{if(_36&&_36!=="none"){if(!_38||_38.nodeName!=="IMG"){_38=_23.create("img",{alt:_39},_3b||_3a,pos);}_38.src=(_36||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(_38,_37);if(_37&&_3a){var arr=_37.split(/[ ,]/);_24.set(_3a,{width:arr[2]+"px",height:arr[3]+"px"});_22.add(_3a,"mblSpriteIconParent");}_1f.connect(_38,"ondragstart",_20,"stop");}}return _38;};this.iconWrapper=false;this.setIcon=function(_3c,_3d,_3e,alt,_3f,_40,pos){if(!_3f||!_3c&&!_3e){return null;}if(_3c&&_3c!=="none"){if(!this.iconWrapper&&_3c.indexOf("mblDomButton")!==0&&!_3d){if(_3e&&_3e.tagName==="DIV"){_23.destroy(_3e);_3e=null;}_3e=this.createIcon(_3c,null,_3e,alt,_3f,_40,pos);_22.add(_3e,"mblImageIcon");}else{if(_3e&&_3e.tagName==="IMG"){_23.destroy(_3e);_3e=null;}_3e&&_23.empty(_3e);if(!_3e){_3e=_23.create("div",null,_40||_3f,pos);}this.createIcon(_3c,_3d,null,null,_3e);if(alt){_3e.title=alt;}}_22.remove(_3f,"mblNoIcon");return _3e;}else{_23.destroy(_3e);_22.add(_3f,"mblNoIcon");return null;}};};return new _25();});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(_41,_42,win,has){var _43=win.doc.documentElement;_43.className=_42.trim(_43.className+" "+[has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return _41;});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_44,_45,_46,_47){return _45("dojox.mobile.Pane",[_47,_46],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_44.forEach(this.getChildren(),function(_48){if(_48.resize){_48.resize();}});}});});},"dojox/mobile/RoundRect":function(){define("dojox/mobile/RoundRect",["dojo/_base/declare","dojo/dom-class","./Container"],function(_49,_4a,_4b){return _49("dojox.mobile.RoundRect",_4b,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_4a.add(this.domNode,"mblShadow");}}});});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator"],function(_4c,_4d,_4e,_4f,_50,_51,_52,_53,_54,_55,_56){var _57=_4d("dojox.mobile.ListItem",_55,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_50.create(this.tag);this.inherited(arguments);if(this.selected){_4f.add(this.domNode,this._selClass);}if(this.header){_4f.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_50.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);if(this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this._anchorClickHandle=this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _58=this.getParent();var _59=this.getTransOpts();if(_59.moveTo||_59.href||_59.url||this.clickable||(_58&&_58.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_4f.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_4f.add(this.domNode,"mblVariableHeight");this.defer(_4e.hitch(this,"layoutVariableHeight"),0);}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this._pending_icon!==undefined?this._pending_icon:this.icon,deleteIcon:this._pending_deleteIcon!==undefined?this._pending_deleteIcon:this.deleteIcon,rightIcon:this._pending_rightIcon!==undefined?this._pending_rightIcon:this.rightIcon,rightIcon2:this._pending_rightIcon2!==undefined?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:this._pending_uncheckIcon!==undefined?this._pending_uncheckIcon:this.uncheckIcon});delete this._pending_icon;delete this._pending_deleteIcon;delete this._pending_rightIcon;delete this._pending_rightIcon2;delete this._pending_uncheckIcon;}if(_58&&_58.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);delete this._pendingChecked;}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _5a;_4c.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _5b=n.getAttribute("layout")||(_52.byNode(n)||{}).layout;if(_5b){_4f.add(n,"mblListItemLayout"+_5b.charAt(0).toUpperCase()+_5b.substring(1));this._layoutChildren.push(n);if(_5b==="center"){_5a=n;}}},this);if(_5a){this.domNode.insertBefore(_5a,this.domNode.firstChild);}},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||(_52.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if(this.anchorLabel&&e.currentTarget===n){_4f.add(n,"mblListItemLabelSelected");setTimeout(function(){_4f.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _5c=this.getParent();if(_5c.select){if(_5c.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_5c.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_4c.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _5d=this.domNode;var f=function(){var t=Math.round((_5d.offsetHeight-n.offsetHeight)/2)-_51.get(_5d,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _5e=this.getParent();var _5f=this.getTransOpts();if(_5f.moveTo||_5f.href||_5f.url||this.clickable){if(!this.noArrow&&!(_5e&&_5e.selectOne)){c=this.arrowClass||"mblDomButtonArrow";}}if(c){this._setRightIconAttr(c);}},_findRef:function(_60){var i,_61,_62=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_4c.indexOf(_62,_60)+1;i<_62.length;i++){_61=this[_62[i]+"Node"];if(_61){return _61;}}for(i=_62.length-1;i>=0;i--){_61=this[_62[i]+"Node"];if(_61){return _61.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(_63,_64){if(!this._isOnLine){this["_pending_"+_64]=_63;return;}this._set(_64,_63);this[_64+"Node"]=_54.setIcon(_63,this[_64+"Pos"],this[_64+"Node"],this[_64+"Title"]||this.alt,this.domNode,this._findRef(_64),"before");if(this[_64+"Node"]){var cap=_64.charAt(0).toUpperCase()+_64.substring(1);_4f.add(this[_64+"Node"],"mblListItem"+cap);}var _65=this[_64+"Role"];if(_65){this[_64+"Node"].setAttribute("role",_65);}},_setDeleteIconAttr:function(_66){this._setIcon(_66,"deleteIcon");},_setIconAttr:function(_67){this._setIcon(_67,"icon");},_setRightTextAttr:function(_68){if(!this.rightTextNode){this.rightTextNode=_50.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=_68;this.rightTextNode.innerHTML=this._cv?this._cv(_68):_68;},_setRightIconAttr:function(_69){this._setIcon(_69,"rightIcon");},_setUncheckIconAttr:function(_6a){this._setIcon(_6a,"uncheckIcon");},_setRightIcon2Attr:function(_6b){this._setIcon(_6b,"rightIcon2");},_setCheckedAttr:function(_6c){if(!this._isOnLine){this._pendingChecked=_6c;return;}var _6d=this.getParent();if(_6d&&_6d.select==="single"&&_6c){_4c.forEach(_6d.getChildren(),function(_6e){_6e!==this&&_6e.checked&&_6e.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_4f.toggle(this.domNode,"mblListItemChecked",_6c);_4f.toggle(this.domNode,"mblListItemUnchecked",!_6c);_4f.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_6c)?"absolute":"";if(_6d&&this.checked!==_6c){_6d.onCheckStateChanged(this,_6c);}this._set("checked",_6c);},_setBusyAttr:function(_6f){var _70=this._prog;if(_6f){if(!this._progNode){this._progNode=_50.create("div",{className:"mblListItemIcon"});_70=this._prog=new _56({size:25,center:false});_4f.add(_70.domNode,this.progStyle);this._progNode.appendChild(_70.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_50.place(this._progNode,this._findRef("icon"),"before");}_70.start();}else{if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}_70.stop();}this._set("busy",_6f);},_setSelectedAttr:function(_71){this.inherited(arguments);_4f.toggle(this.domNode,this._selClass,_71);}});_57.ChildWidgetProperties={layout:"",preventTouch:false};_4e.extend(_53,_57.ChildWidgetProperties);return _57;});},"dojox/mobile/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_72,_73,_74,on,_75){return _72("dojox.mobile.TransitionEvent",null,{constructor:function(_76,_77,_78){this.transitionOptions=_77;this.target=_76;this.triggerEvent=_78||null;},dispatch:function(){var _79={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",_79);if(evt){_73.when(_75,_74.hitch(this,function(_7a){_73.when(_7a.call(this,evt),_74.hitch(this,function(_7b){this.endTransition(_7b);}));}));}},endTransition:function(_7c){on.emit(this.target,"endTransition",{detail:_7c.transitionOptions});}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_7d,_7e){return _7d("dijit._Contained",null,{_getSibling:function(_7f){var _80=this.domNode;do{_80=_80[_7f+"Sibling"];}while(_80&&_80.nodeType!=1);return _80&&_7e.byNode(_80);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojox/mobile/sniff":function(){define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",(ua.indexOf("BlackBerry")>=0||ua.indexOf("BB10")>=0)&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils","./sniff"],function(_81,_82,_83,win,_84,_85,_86,_87,_88,_89,_8a,_8b,has){return _82("dojox.mobile._ItemBase",[_89,_88,_87],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}if(this._handleClick&&this._selStartMethod==="touch"){this._onTouchStartHandle=this.connect(this.domNode,_85.press,"_onTouchStart");}this.inherited(arguments);},inheritParams:function(){var _8c=this.getParent();if(_8c){_81.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var _8d=p+"Base",pos=p+"Pos";if(this[p]&&_8c[_8d]&&_8c[_8d].charAt(_8c[_8d].length-1)==="/"){this[p]=_8c[_8d]+this[p];}if(!this[p]){this[p]=_8c[_8d];}if(!this[pos]){this[pos]=_8c[pos];}}if(!this[p]){this[p]=_8c[p];}},this);}return !!_8c;},getTransOpts:function(){var _8e=this.transitionOptions||{};_81.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){_8e[p]=_8e[p]||this[p];},this);return _8e;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._delayedSelection){this.set("selected",true);}if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){var _8f=this;this.defer(function(){_8f.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var _90=this.getTransOpts();var _91=!!(_90.moveTo||_90.href||_90.url||_90.target||_90.scene);if(this._prepareForTransition(e,_91?_90:null)===false){return;}if(_91){this.setTransitionPos(e);new _8a(this.domNode,_90,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_92){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_85.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_85.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=setTimeout(_83.hitch(this,function(){this.set("selected",true);}),100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){clearTimeout(this._selTimer);this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_84.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_93,_94,url,_95){var _96=(_93&&typeof (_93)==="object")?_93:{moveTo:_93,href:_94,url:url,scene:_95,transition:this.transition,transitionDir:this.transitionDir};new _8a(this.domNode,_96).dispatch();},_setIconAttr:function(_97){if(!this._isOnLine){this._pendingIcon=_97;return;}this._set("icon",_97);this.iconNode=_8b.setIcon(_97,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(_98){this._set("label",_98);this.labelNode.innerHTML=this._cv?this._cv(_98):_98;},_setSelectedAttr:function(_99){if(_99){var p=this.getParent();if(p&&p.selectOne){var arr=_81.filter(p.getChildren(),function(w){return w.selected;});_81.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_99);}});});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_9a,_9b,_9c){return _9c("dijit.Destroyable",null,{destroy:function(_9d){this._destroyed=true;},own:function(){_9a.forEach(arguments,function(_9e){var _9f="destroyRecursive" in _9e?"destroyRecursive":"destroy" in _9e?"destroy":"remove";var odh=_9b.before(this,"destroy",function(_a0){_9e[_9f](_a0);});var hdh=_9b.after(_9e,_9f,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry"],function(_a1,_a2,_a3,_a4,_a5,has,win,_a6,dom,_a7,_a8,_a9,_aa,_ab,_ac,_ad,_ae,_af,_b0,_b1,_b2){var dm=_a5.getObject("dojox.mobile",true);return _a4("dojox.mobile.View",[_ae,_ad,_ac],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_b3,_b4){if(_b4){dom.byId(_b4).style.visibility="hidden";}},destroy:function(){_b2.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_a8.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_a2["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_aa.set(this.domNode,"webkitTransformStyle","preserve-3d");}_b2.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _b5=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _b6,_b7,_b8;_a1.forEach(_b5,function(v,i){if(_a1.indexOf(ids,v.id)!==-1){_b6=v;}if(i==0){_b8=v;}if(v.selected){_b7=v;}v._visible=false;},this);(_b6||_b7||_b8)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_a3.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _b9=this.getParent();if(!_b9||!_b9.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_a1.forEach(this.getChildren(),function(_ba){if(_ba.resize){_ba.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_bb,dir,_bc,_bd,_be){},onAfterTransitionIn:function(_bf,dir,_c0,_c1,_c2){},onBeforeTransitionOut:function(_c3,dir,_c4,_c5,_c6){},onAfterTransitionOut:function(_c7,dir,_c8,_c9,_ca){},_clearClasses:function(_cb){if(!_cb){return;}var _cc=[];_a1.forEach(_a5.trim(_cb.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_cc.push(c);}},this);_cb.className=_cc.join(" ");},_fixViewState:function(_cd){var _ce=this.domNode.parentNode.childNodes;for(var i=0;i<_ce.length;i++){var n=_ce[i];if(n.nodeType===1&&_a7.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_cd);var _cf=_ab.byNode(_cd);if(_cf){_cf._inProgress=false;}},convertToId:function(_d0){if(typeof (_d0)=="string"){return _d0.replace(/^#?([^&?]+).*/,"$1");}return _d0;},_isBookmarkable:function(_d1){return _d1.moveTo&&(_a2["mblForceBookmarkable"]||_d1.moveTo.charAt(0)==="#")&&!_d1.hashchange;},performTransition:function(_d2,_d3,_d4,_d5,_d6){if(this._inProgress){return;}this._inProgress=true;var _d7,_d8;if(_d2&&typeof (_d2)==="object"){_d7=_d2;_d8=_d3;}else{_d7={moveTo:_d2,transitionDir:_d3,transition:_d4,context:_d5,method:_d6};_d8=[];for(var i=5;i<arguments.length;i++){_d8.push(arguments[i]);}}this._detail=_d7;this._optArgs=_d8;this._arguments=[_d7.moveTo,_d7.transitionDir,_d7.transition,_d7.context,_d7.method];if(_d7.moveTo==="#"){return;}var _d9;if(_d7.moveTo){_d9=this.convertToId(_d7.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_d9=this._dummyNode;}if(this.addTransitionInfo&&typeof (_d7.moveTo)=="string"&&this._isBookmarkable(_d7)){this.addTransitionInfo(this.id,_d7.moveTo,{transitionDir:_d7.transitionDir,transition:_d7.transition});}var _da=this.domNode;var _db=_da.offsetTop;_d9=this.toNode=dom.byId(_d9);if(!_d9){return;}_d9.style.visibility="hidden";_d9.style.display="";this._fixViewState(_d9);var _dc=_ab.byNode(_d9);if(_dc){if(_a2["mblAlwaysResizeOnTransition"]||!_dc._resized){_b0.resizeAll(null,_dc);_dc._resized=true;}if(_d7.transition&&_d7.transition!="none"){_dc.containerNode.style.paddingTop=_db+"px";}_dc.load&&_dc.load();_dc.movedFrom=_da.id;}if(has("mblAndroidWorkaround")&&!_a2["mblCSS3Transition"]&&_d7.transition&&_d7.transition!="none"){_aa.set(_d9,"webkitTransformStyle","preserve-3d");_aa.set(_da,"webkitTransformStyle","preserve-3d");_a7.add(_d9,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_a3.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_a5._toArray(this._arguments)));if(_dc){if(this.keepScrollPos&&!this.getParent()){var _dd=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_da._scrollTop=_dd;var _de=(_d7.transitionDir==1)?0:(_d9._scrollTop||0);_d9.style.top="0px";if(_dd>1||_de!==0){_da.style.top=_de-_dd+"px";if(_a2["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_de||1));},0);}}}else{_d9.style.top="0px";}_dc.onBeforeTransitionIn.apply(_dc,this._arguments);_a3.publish("/dojox/mobile/beforeTransitionIn",[_dc].concat(_a5._toArray(this._arguments)));}_d9.style.display="none";_d9.style.visibility="visible";_b0.fromView=this;_b0.toView=_dc;this._doTransition(_da,_d9,_d7.transition,_d7.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_df,_e0,_e1,_e2){var rev=(_e2==-1)?" mblReverse":"";_e0.style.display="";if(!_e1||_e1=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_a2["mblCSS3Transition"]){_a6.when(_b1,_a5.hitch(this,function(_e3){var _e4=_aa.get(_e0,"position");_aa.set(_e0,"position","absolute");_a6.when(_e3(_df,_e0,{transition:_e1,reverse:(_e2===-1)?true:false}),_a5.hitch(this,function(){_aa.set(_e0,"position",_e4);this.invokeCallback();}));}));}else{if(_e1.indexOf("cube")!=-1){if(has("ipad")){_aa.set(_e0.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_aa.set(_e0.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_e1);if(has("mblAndroidWorkaround")){setTimeout(function(){_a7.add(_df,s+" mblOut"+rev);_a7.add(_e0,s+" mblIn"+rev);_a7.remove(_e0,"mblAndroidWorkaround");setTimeout(function(){_a7.add(_df,"mblTransition");_a7.add(_e0,"mblTransition");},30);},70);}else{_a7.add(_df,s+" mblOut"+rev);_a7.add(_e0,s+" mblIn"+rev);setTimeout(function(){_a7.add(_df,"mblTransition");_a7.add(_e0,"mblTransition");},100);}var _e5="50% 50%";var _e6="50% 50%";var _e7,_e8,_e9;if(_e1.indexOf("swirl")!=-1||_e1.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_e7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_e7=-_a9.position(_df,true).y;}_e9=win.global.innerHeight/2+_e7;_e5="50% "+_e9+"px";_e6="50% "+_e9+"px";}else{if(_e1.indexOf("scale")!=-1){var _ea=_a9.position(_df,true);_e8=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_ea.x;if(this.keepScrollPos&&!this.getParent()){_e7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_e7=-_ea.y;}_e9=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_e7;_e5=_e8+"px "+_e9+"px";_e6=_e8+"px "+_e9+"px";}}_aa.set(_df,{webkitTransformOrigin:_e5});_aa.set(_e0,{webkitTransformOrigin:_e6});}}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _eb=e.animationName||e.target.className;if(_eb.indexOf("Out")===-1&&_eb.indexOf("In")===-1&&_eb.indexOf("Shrink")===-1){return;}var _ec=false;if(_a7.contains(this.domNode,"mblOut")){_ec=true;this.domNode.style.display="none";_a7.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_aa.set(this.domNode,{webkitTransformOrigin:""});if(_eb.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_a7.remove(li,"mblCloseContent");var p=_b2.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_ec){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(_eb.indexOf("Cube")!==-1&&_eb.indexOf("In")!==-1&&has("iphone")){this.domNode.parentNode.style.webkitPerspective="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_a3.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _ed=_ab.byNode(this.toNode);if(_ed){_ed.onAfterTransitionIn.apply(_ed,this._arguments);_a3.publish("/dojox/mobile/afterTransitionIn",[_ed].concat(this._arguments));_ed.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_ed);}}if(has("mblAndroidWorkaround")){setTimeout(_a5.hitch(this,function(){if(_ed){_aa.set(this.toNode,"webkitTransformStyle","");}_aa.set(this.domNode,"webkitTransformStyle","");}),0);}var c=this._detail.context,m=this._detail.method;if(c||m){if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}}this._detail=this._optArgs=this._arguments=undefined;this._inProgress=false;},isVisible:function(_ee){var _ef=function(_f0){return _aa.get(_f0,"display")!=="none";};if(_ee){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_ef(n)){return false;}}return true;}else{return _ef(this.domNode);}},getShowingView:function(){var _f1=this.domNode.parentNode.childNodes;for(var i=0;i<_f1.length;i++){var n=_f1[i];if(n.nodeType===1&&_a7.contains(n,"mblView")&&n.style.display!=="none"){return _ab.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _a1.map(_a1.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_a7.contains(n,"mblView");}),function(n){return _ab.byNode(n);});},show:function(_f2,_f3){var out=this.getShowingView();if(!_f2){if(out){out.onBeforeTransitionOut(out.id);_a3.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_a3.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_f3){this.domNode.style.display="";}else{_a1.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_f2){if(out){out.onAfterTransitionOut(out.id);_a3.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_a3.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_f4,_f5,_f6,_f7,_f8,_f9,_fa,_fb,_fc,_fd,_fe,_ff){return _f4;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_100,has,_101,win,_102){var _103={},hash={};var _104={length:0,add:function(_105){if(hash[_105.id]){throw new Error("Tried to register widget with id=="+_105.id+" but that id is already registered");}hash[_105.id]=_105;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_106){var id;do{id=_106+"_"+(_106 in _103?++_103[_106]:_103[_106]=0);}while(hash[id]);return _102._scopeName=="dijit"?id:_102._scopeName+"_"+id;},findWidgets:function(root,_107){var _108=[];function _109(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _10a=node.getAttribute("widgetId");if(_10a){var _10b=hash[_10a];if(_10b){_108.push(_10b);}}else{if(node!==_107){_109(node);}}}}};_109(root);return _108;},_destroyAll:function(){_102._curFocus=null;_102._prevFocus=null;_102._activeStack=[];_100.forEach(_104.findWidgets(win.body()),function(_10c){if(!_10c._destroyed){if(_10c.destroyRecursive){_10c.destroyRecursive();}else{if(_10c.destroy){_10c.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_102.registry=_104;return _104;});},"dojox/mobile/viewRegistry":function(){define("dojox/mobile/viewRegistry",["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_10d,_10e,_10f){var _110={length:0,hash:{},initialView:null,add:function(view){this.hash[view.id]=view;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(view){for(var v=view.getParent();v;v=v.getParent()){if(_10e.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_111){return _10d.filter(this.getViews(),function(v){return this.getParentView(v)===_111;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_10e.contains(n,"mblView")){return _10f.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_10f.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _110;});},"dojox/mobile/Heading":function(){define("dojox/mobile/Heading",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View"],function(_112,_113,_114,lang,win,dom,_115,_116,_117,_118,_119,_11a,_11b,_11c,_11d,View){var dm=lang.getObject("dojox.mobile",true);return _114("dojox.mobile.Heading",[_11b,_11a,_119],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.inherited(arguments);if(!this.label){_112.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_116.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_116.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_116.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _11e=this.getParent&&this.getParent();if(!_11e||!_11e.resize){var _11f=this;setTimeout(function(){_11f.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _120,_121;var _122=this.containerNode.childNodes;for(var i=_122.length-1;i>=0;i--){var c=_122[i];if(c.nodeType===1&&_117.get(c,"display")!=="none"){if(!_121&&_117.get(c,"float")==="right"){_121=c;}if(!_120&&_117.get(c,"float")==="left"){_120=c;}}}if(!this.labelNodeLen&&this.label){this.labelNode.style.display="inline";this.labelNodeLen=this.labelNode.offsetWidth;this.labelNode.style.display="";}var bw=this.domNode.offsetWidth;var rw=_121?bw-_121.offsetLeft+5:0;var lw=_120?_120.offsetLeft+_120.offsetWidth+5:0;var tw=this.labelNodeLen||0;_115[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_112.forEach(this.getChildren(),function(_123){if(_123.resize){_123.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _11d({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo,href:this.href,transition:this.transition,transitionDir:-1});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setMoveToAttr:function(_124){this._set("moveTo",_124);if(this.backButton){this.backButton.set("moveTo",_124);}},_setHrefAttr:function(href){this._set("href",href);if(this.backButton){this.backButton.set("href",href);}},_setTransitionAttr:function(_125){this._set("transition",_125);if(this.backButton){this.backButton.set("transition",_125);}},_setLabelAttr:function(_126){this._set("label",_126);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_126):_126;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _11c({size:30,center:false});_115.add(prog.domNode,this.progStyle);}_116.place(prog.domNode,this.domNode,"first");prog.start();}else{prog.stop();}this._set("busy",busy);}});});},"dojox/mobile/ProgressIndicator":function(){define("dojox/mobile/ProgressIndicator",["dojo/_base/config","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase"],function(_127,_128,lang,_129,_12a,_12b,_12c,has,_12d,_12e){var cls=_128("dojox.mobile.ProgressIndicator",[_12e,_12d],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_129.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_12a.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_12a.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_12a.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _12f=size/40;_12c.set(this.containerNode,{webkitTransform:"scale("+_12f+")",webkitTransformOrigin:"0 0"});_12b.setMarginBox(this.domNode,{w:size,h:size});_12b.setMarginBox(this.containerNode,{w:size/_12f,h:size/_12f});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _130=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_130.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;if(c[idx]){_130._bars[i].style.backgroundColor=c[idx];}else{_129.replace(_130._bars[i],"mblProg"+idx+"Color","mblProg"+(idx===n-1?0:idx+1)+"Color");}}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.removeOnStop&&this.domNode&&this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_12a.create("img",{src:file},this.containerNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.containerNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}},destroy:function(){this.inherited(arguments);if(this===cls._instance){cls._instance=null;}}});cls._instance=null;cls.getInstance=function(_131){if(!cls._instance){cls._instance=new cls(_131);}return cls._instance;};return cls;});},"dojox/mobile/Container":function(){define("dojox/mobile/Container",["dojo/_base/declare","dijit/_Container","./Pane"],function(_132,_133,Pane){return _132("dojox.mobile.Container",[Pane,_133],{baseClass:"mblContainer"});});},"dojox/mobile/RoundRectList":function(){define("dojox/mobile/RoundRectList",["dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_134,_135,_136,lang,win,_137,_138,_139,_13a){return _135("dojox.mobile.RoundRectList",[_13a,_139,_138],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,syncWithViews:false,editable:false,tag:"ul",editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",buildRendering:function(){this.domNode=this.srcNodeRef||_137.create(this.tag);this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_13b){_135.safeMixin(this,new _13b());}));}this.connect(this.domNode,"onselectstart",_136.stop);if(this.syncWithViews){var f=function(view,_13c,dir,_13d,_13e,_13f){var _140=_134.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_140){_140.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_134.forEach(this.getChildren(),function(_141){if(_141.resize){_141.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_142){this._set("stateful",_142);this.selectOne=_142;_134.forEach(this.getChildren(),function(_143){_143.setArrow&&_143.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_134.forEach(this.getChildren(),function(_144){_144.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct"],function(_145,_146,_147){return _146("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_148,_149){var _14a=this.containerNode;if(_149&&typeof _149=="number"){var _14b=this.getChildren();if(_14b&&_14b.length>=_149){_14a=_14b[_149-1].domNode;_149="after";}}_147.place(_148.domNode,_14a,_149);if(this._started&&!_148._started){_148.startup();}},removeChild:function(_14c){if(typeof _14c=="number"){_14c=this.getChildren()[_14c];}if(_14c){var node=_14c.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_14d,dir){var _14e=this.getChildren(),idx=_145.indexOf(this.getChildren(),_14d);return _14e[idx+dir];},getIndexOfChild:function(_14f){return _145.indexOf(this.getChildren(),_14f);}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_150,_151,_152,_153,win,_154,_155,_156,_157,_158,_159,has){return _152("dojox.mobile.Switch",[_159,_158],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",_createdMasks:[],buildRendering:function(){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_155.create("span");this.inherited(arguments);var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_154.add(this.domNode,this.shape);var _15a=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\"></div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\"></div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"<input type=\"hidden\""+_15a+"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];},postCreate:function(){this._clickHandle=this.connect(this.domNode,"onclick","_onClick");this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this._startHandle=this.connect(this.domNode,_157.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_15b,anim){var on=(_15b==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_154.add(this.domNode,"mblSwitchAnimation");}_154.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_154.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _15c=this;setTimeout(function(){_15c.left.style.display=on?"":"none";_15c.right.style.display=!on?"":"none";_154.remove(_15c.domNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._hasMaskImage){return;}this._width=this.domNode.offsetWidth-this.knob.offsetWidth;this._hasMaskImage=true;if(!has("webkit")){return;}var rDef=_156.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _15d=rDef.split(" ");var rx=parseFloat(_15d[0]),ry=(_15d.length==1)?rx:parseFloat(_15d[1]);var w=this.domNode.offsetWidth,h=this.domNode.offsetHeight;var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");if(!this._createdMasks[id]){this._createdMasks[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,w,h);ctx.fillStyle="#000000";ctx.beginPath();if(rx==ry){ctx.moveTo(rx,0);ctx.arcTo(0,0,0,rx,rx);ctx.lineTo(0,h-rx);ctx.arcTo(0,h,rx,h,rx);ctx.lineTo(w-rx,h);ctx.arcTo(w,h,w,rx,rx);ctx.lineTo(w,rx);ctx.arcTo(w,0,w-rx,0,rx);}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(rx,0);ctx.arc(rx,rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(w-rx,2*rx);ctx.arc(w-rx,rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}this.domNode.style.webkitMaskImage="-webkit-canvas("+id+")";},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_157.move,"onTouchMove"),this.connect(this.inner,_157.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_153.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_150.forEach(this._conn,_151.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")&&!(has("android")>=4.1)){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _15e=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_15e,true);if(_15e!=this.value){this.value=this.input.value=_15e;this.onStateChanged(_15e);}},onStateChanged:function(_15f){},_setValueAttr:function(_160){this._changeState(_160,false);if(this.value!=_160){this.onStateChanged(_160);}this.value=this.input.value=_160;},_setLeftLabelAttr:function(_161){this.leftLabel=_161;this.left.firstChild.innerHTML=this._cv?this._cv(_161):_161;},_setRightLabelAttr:function(_162){this.rightLabel=_162;this.right.firstChild.innerHTML=this._cv?this._cv(_162):_162;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_163,_164){return _163("dojox.mobile.EdgeToEdgeCategory",_164,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_165,_166){if(_166["mblCSS3Transition"]){var _167=new _165();require([_166["mblCSS3Transition"]],function(_168){_167.resolve(_168);});return _167;}return null;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_169,_16a,_16b,_16c,_16d,_16e,dom,_16f,_170,_171,_172,_173,has,_174,lang,on,_175,_176,_177,win,_178,_179){has.add("dijit-legacy-requires",!_174.isAsync);if(has("dijit-legacy-requires")){_175(0,function(){var _17a=["dijit/_base/manager"];_169(_17a);});}var _17b={};function _17c(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _17d(attr){return function(val){_16f[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _16e("dijit._WidgetBase",[_176,_178],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_17d("lang"),dir:"",_setDirAttr:_17d("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_16c.blankGif||_169.toUrl("dojo/resources/blank.gif"),postscript:function(_17e,_17f){this.create(_17e,_17f);},create:function(_180,_181){this.srcNodeRef=dom.byId(_181);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_180){this.params=_180;lang.mixin(this,_180);}this.postMixInProperties();if(!this.id){this.id=_179.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_179.add(this);this.buildRendering();var _182;if(this.domNode){this._applyAttributes();var _183=this.srcNodeRef;if(_183&&_183.parentNode&&this.domNode!==_183){_183.parentNode.replaceChild(this.domNode,_183);_182=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_182){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _184=ctor.prototype;for(var _185 in _184){if(_185 in this.attributeMap){continue;}var _186="_set"+_185.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_186 in _184){list.push(_185);}}}var _187={};for(var key in this.params||{}){_187[key]=this[key];}_16a.forEach(list,function(attr){if(attr in _187){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(key in _187){this.set(key,_187[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _188=this.baseClass.split(" ");if(!this.isLeftToRight()){_188=_188.concat(_16a.map(_188,function(name){return name+"Rtl";}));}_170.add(this.domNode,_188);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_16a.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_189){this._beingDestroyed=true;this.destroyDescendants(_189);this.destroy(_189);},destroy:function(_18a){this._beingDestroyed=true;this.uninitialize();function _18b(w){if(w.destroyRecursive){w.destroyRecursive(_18a);}else{if(w.destroy){w.destroy(_18a);}}};_16a.forEach(this._connects,lang.hitch(this,"disconnect"));_16a.forEach(this._supportingWidgets,_18b);if(this.domNode){_16a.forEach(_179.findWidgets(this.domNode,this.containerNode),_18b);}this.destroyRendering(_18a);_179.remove(this.id);this._destroyed=true;},destroyRendering:function(_18c){if(this.bgIframe){this.bgIframe.destroy(_18c);delete this.bgIframe;}if(this.domNode){if(_18c){_16f.remove(this.domNode,"widgetId");}else{_171.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_18c){_171.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_18d){_16a.forEach(this.getChildren(),function(_18e){if(_18e.destroyRecursive){_18e.destroyRecursive(_18d);}});},uninitialize:function(){return false;},_setStyleAttr:function(_18f){var _190=this.domNode;if(lang.isObject(_18f)){_173.set(_190,_18f);}else{if(_190.style.cssText){_190.style.cssText+="; "+_18f;}else{_190.style.cssText=_18f;}}this._set("style",_18f);},_attrToDom:function(attr,_191,_192){_192=arguments.length>=3?_192:this.attributeMap[attr];_16a.forEach(lang.isArray(_192)?_192:[_192],function(_193){var _194=this[_193.node||_193||"domNode"];var type=_193.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_191)){_191=lang.hitch(this,_191);}var _195=_193.attribute?_193.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_194.tagName){_16f.set(_194,_195,_191);}else{_194.set(_195,_191);}break;case "innerText":_194.innerHTML="";_194.appendChild(this.ownerDocument.createTextNode(_191));break;case "innerHTML":_194.innerHTML=_191;break;case "class":_170.replace(_194,_191,this[attr]);break;}},this);},get:function(name){var _196=this._getAttrNames(name);return this[_196.g]?this[_196.g]():this[name];},set:function(name,_197){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _198=this._getAttrNames(name),_199=this[_198.s];if(lang.isFunction(_199)){var _19a=_199.apply(this,Array.prototype.slice.call(arguments,1));}else{var _19b=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_19b].tagName,_19c=_17b[tag]||(_17b[tag]=_17c(this[_19b])),map=name in this.attributeMap?this.attributeMap[name]:_198.s in this?this[_198.s]:((_198.l in _19c&&typeof _197!="function")||/^aria-|^data-|^role$/.test(name))?_19b:null;if(map!=null){this._attrToDom(name,_197,map);}this._set(name,_197);}return _19a||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_19d){var _19e=this[name];this[name]=_19d;if(this._created&&_19d!==_19e){if(this._watchCallbacks){this._watchCallbacks(name,_19e,_19d);}this.emit("attrmodified-"+name,{detail:{prevValue:_19e,newValue:_19d}});}},emit:function(type,_19f,_1a0){_19f=_19f||{};if(_19f.bubbles===undefined){_19f.bubbles=true;}if(_19f.cancelable===undefined){_19f.cancelable=true;}if(!_19f.detail){_19f.detail={};}_19f.detail.widget=this;var ret,_1a1=this["on"+type];if(_1a1){ret=_1a1.apply(this,_1a0?_1a0:[_19f]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_19f);}return ret;},on:function(type,func){var _1a2=this._onMap(type);if(_1a2){return _16b.after(this,_1a2,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_179.findWidgets(this.containerNode):[];},getParent:function(){return _179.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_1a3,_1a4){return this.own(_16d.connect(obj,_1a3,this,_1a4))[0];},disconnect:function(_1a5){_1a5.remove();},subscribe:function(t,_1a6){return this.own(_177.subscribe(t,lang.hitch(this,_1a6)))[0];},unsubscribe:function(_1a7){_1a7.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_172.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_173.get(this.domNode,"display")!="none");},placeAt:function(_1a8,_1a9){var _1aa=!_1a8.tagName&&_179.byId(_1a8);if(_1aa&&_1aa.addChild&&(!_1a9||typeof _1a9==="number")){_1aa.addChild(this,_1a9);}else{var ref=_1aa?(_1aa.containerNode&&!/after|before|replace/.test(_1a9||"")?_1aa.containerNode:_1aa.domNode):dom.byId(_1a8,this.ownerDocument);_171.place(this.domNode,ref,_1a9);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_1ab){return _1ab;},applyTextDir:function(){},defer:function(fcn,_1ac){var _1ad=setTimeout(lang.hitch(this,function(){_1ad=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_1ac||0);return {remove:function(){if(_1ad){clearTimeout(_1ad);_1ad=null;}return null;}};}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/ready","dijit/registry","./sniff","./uacss"],function(_1ae,_1af,_1b0,lang,win,_1b1,_1b2,_1b3,_1b4,has){var dm=lang.getObject("dojox.mobile",true);dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_1b1.replace(win.doc.documentElement,dim.h>dim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_1b5){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_1b5||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_1b5||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_1b1.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_1b0.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_1af["mblHideAddressBarWait"])==="number"?_1af["mblHideAddressBarWait"]:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("iphone")?200:0;var minH=screen.availHeight;if(has("android")){minH=outerHeight/devicePixelRatio;if(minH==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(minH<=innerHeight){minH=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight<minH){win.body().style.minHeight=minH+"px";dm._resetMinHeight=true;}setTimeout(dm.hide_1,dm._hidingTimer);};dm.isAddressBarHidden=function(){return pageYOffset===1;};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_1b0.publish("/dojox/mobile/resizeAll",[evt,root]);_1b0.publish("/dojox/mobile/beforeResizeAll",[evt,root]);if(dm._resetMinHeight){win.body().style.minHeight=dm.getScreenSize().h+"px";}dm.updateOrient();dm.detectScreenSize();var _1b6=function(w){var _1b7=w.getParent&&w.getParent();return !!((!_1b7||!_1b7.resize)&&w.resize);};var _1b8=function(w){_1ae.forEach(w.getChildren(),function(_1b9){if(_1b6(_1b9)){_1b9.resize();}_1b8(_1b9);});};if(root){if(root.resize){root.resize();}_1b8(root);}else{_1ae.forEach(_1ae.filter(_1b4.toArray(),_1b6),function(w){w.resize();});}_1b0.publish("/dojox/mobile/afterResizeAll",[evt,root]);};dm.openWindow=function(url,_1ba){win.global.open(url,_1ba||"_blank");};if(_1af["mblApplyPageStyles"]!==false){_1b1.add(win.doc.documentElement,"mobile");}if(has("chrome")){_1b1.add(win.doc.documentElement,"dj_chrome");}if(win.global._no_dojo_dm){var _1bb=win.global._no_dojo_dm;for(var i in _1bb){dm[i]=_1bb[i];}dm.deviceTheme.setDm(dm);}has.add("mblAndroidWorkaround",_1af["mblAndroidWorkaround"]!==false&&has("android")<3,undefined,true);has.add("mblAndroid3Workaround",_1af["mblAndroid3Workaround"]!==false&&has("android")>=3,undefined,true);_1b3(function(){dm.detectScreenSize(true);if(_1af["mblAndroidWorkaroundButtonStyle"]!==false&&has("android")){_1b2.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("mblAndroidWorkaround")){_1b2.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;if(_1af["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_1af["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_1af["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}var ios6=has("iphone")>=6;if((has("android")||ios6)&&win.global.onorientationchange!==undefined){var _1bc=f;var _1bd,_1be,_1bf;if(ios6){_1be=win.doc.documentElement.clientWidth;_1bf=win.doc.documentElement.clientHeight;}else{f=function(evt){var _1c0=_1b0.connect(null,"onresize",null,function(e){_1b0.disconnect(_1c0);_1bc(e);});};_1bd=dm.getScreenSize();}_1b0.connect(null,"onresize",null,function(e){if(ios6){var _1c1=win.doc.documentElement.clientWidth,_1c2=win.doc.documentElement.clientHeight;if(_1c1==_1be&&_1c2!=_1bf){_1bc(e);}_1be=_1c1;_1bf=_1c2;}else{var _1c3=dm.getScreenSize();if(_1c3.w==_1bd.w&&Math.abs(_1c3.h-_1bd.h)>=100){_1bc(e);}_1bd=_1c3;}});}_1b0.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojox/mobile/ViewController":function(){define("dojox/mobile/ViewController",["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(dojo,_1c4,_1c5,_1c6,lang,win,_1c7,dom,_1c8,_1c9,on,_1ca,_1cb,_1cc,_1cd,_1ce){var _1cf=_1c6("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_1ca(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_1d0){if(!_1d0){return [];}_1d0.match(/^#?([^&?]+)(.*)/);var _1d1=RegExp.$2;var view=_1cb.byId(RegExp.$1);if(!view){return [];}for(var v=view.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=view.getShowingView();if(sv&&sv.id!==view.id){view.show();}view=v;}}return [view.getShowingView(),view,_1d1];},openExternalView:function(_1d2,_1d3){var d=new _1c7();var id=this.viewMap[_1d2.url];if(id){_1d2.moveTo=id;if(_1d2.noTransition){_1cb.byId(id).hide();}else{new _1cd(win.body(),_1d2).dispatch();}d.resolve(true);return d;}var _1d4=null;for(var i=_1d3.childNodes.length-1;i>=0;i--){var c=_1d3.childNodes[i];if(c.nodeType===1){var _1d5=c.getAttribute("fixed")||(_1cb.byNode(c)&&_1cb.byNode(c).fixed);if(_1d5==="bottom"){_1d4=c;break;}}}var dh=_1d2.dataHandlerClass||this.dataHandlerClass;var ds=_1d2.dataSourceClass||this.dataSourceClass;var ft=_1d2.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],lang.hitch(this,function(_1d6,_1d7,_1d8){var _1d9=new _1d6(new _1d7(_1d2.data||_1d2.url),_1d3,_1d4);var _1da=_1d2.contentType||_1d8.getContentType(_1d2.url)||"html";_1d9.processData(_1da,lang.hitch(this,function(id){if(id){this.viewMap[_1d2.url]=_1d2.moveTo=id;if(_1d2.noTransition){_1cb.byId(id).hide();}else{new _1cd(win.body(),_1d2).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_1d2.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _1db=evt.detail;if(!_1db.moveTo&&!_1db.href&&!_1db.url&&!_1db.scene){return;}if(_1db.url&&!_1db.moveTo){var _1dc=_1db.urlTarget;var w=_1cb.byId(_1dc);var _1dd=w&&w.containerNode||dom.byId(_1dc);if(!_1dd){w=_1ce.getEnclosingView(evt.target);_1dd=w&&w.domNode.parentNode||win.body();}this.openExternalView(_1db,_1dd);return;}else{if(_1db.href){if(_1db.hrefTarget){win.global.open(_1db.href,_1db.hrefTarget);}else{var view;for(var v=_1ce.getEnclosingView(evt.target);v;v=_1ce.getParentView(v)){view=v;}if(view){view.performTransition(null,_1db.transitionDir,_1db.transition,evt.target,function(){location.href=_1db.href;});}}return;}else{if(_1db.scene){_1c5.publish("/dojox/mobile/app/pushScene",[_1db.scene]);return;}}}var arr=this.findTransitionViews(_1db.moveTo),_1de=arr[0],_1df=arr[1],_1e0=arr[2];if(!location.hash&&!_1db.hashchange){_1ce.initialView=_1de;}if(_1db.moveTo&&_1df){_1db.moveTo=(_1db.moveTo.charAt(0)==="#"?"#"+_1df.id:_1df.id)+_1e0;}if(!_1de||(_1db.moveTo&&_1de===_1cb.byId(_1db.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}var src=_1cb.getEnclosingWidget(evt.target);if(src&&src.callback){_1db.context=src;_1db.method=src.callback;}_1de.performTransition(_1db);}});_1cf._instance=new _1cf();_1cf.getInstance=function(){return _1cf._instance;};return _1cf;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_1e1,lang,_1e2,when){return _1e1("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_1e3){if(_1e3){this.set(_1e3);}},_get:function(name,_1e4){return typeof this[_1e4.g]==="function"?this[_1e4.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1e5){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1e6=this._getAttrNames(name),_1e7=this._get(name,_1e6),_1e8=this[_1e6.s],_1e9;if(typeof _1e8==="function"){_1e9=_1e8.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1e5;}if(this._watchCallbacks){var self=this;when(_1e9,function(){self._watchCallbacks(name,_1e7,_1e5);});}return this;},_changeAttrValue:function(name,_1ea){var _1eb=this.get(name);this[name]=_1ea;if(this._watchCallbacks){this._watchCallbacks(name,_1eb,_1ea);}return this;},watch:function(name,_1ec){var _1ed=this._watchCallbacks;if(!_1ed){var self=this;_1ed=this._watchCallbacks=function(name,_1ee,_1ef,_1f0){var _1f1=function(_1f2){if(_1f2){_1f2=_1f2.slice();for(var i=0,l=_1f2.length;i<l;i++){_1f2[i].call(self,name,_1ee,_1ef);}}};_1f1(_1ed["_"+name]);if(!_1f0){_1f1(_1ed["*"]);}};}if(!_1ec&&typeof name==="function"){_1ec=name;name="*";}else{name="_"+name;}var _1f3=_1ed[name];if(typeof _1f3!=="object"){_1f3=_1ed[name]=[];}_1f3.push(_1ec);var _1f4={};_1f4.unwatch=_1f4.remove=function(){var _1f5=_1e2.indexOf(_1f3,_1ec);if(_1f5>-1){_1f3.splice(_1f5,1);}};return _1f4;}});});},"dojox/mobile/RoundRectCategory":function(){define("dojox/mobile/RoundRectCategory",["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_1f6,win,_1f7,_1f8,_1f9){return _1f6("dojox.mobile.RoundRectCategory",[_1f9,_1f8],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _1fa=this.domNode=this.containerNode=this.srcNodeRef||_1f7.create(this.tag);this.inherited(arguments);if(!this.label&&_1fa.childNodes.length===1&&_1fa.firstChild.nodeType===3){this.label=_1fa.firstChild.nodeValue;}},_setLabelAttr:function(_1fb){this.label=_1fb;this.domNode.innerHTML=this._cv?this._cv(_1fb):_1fb;}});});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff","./_ItemBase"],function(_1fc,lang,win,_1fd,_1fe,_1ff,has,_200){return _1fc("dojox.mobile.ToolBarButton",_200,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=lang.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_1fe.create("span");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_1fd.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_1fe.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_1fd.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_1fe.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_1fe.create("table",{cellPadding:"0",cellSpacing:"0",border:"0"},this.bodyNode);if(!this.label&&this.arrow){this.tableNode.className="mblToolBarButtonText";}var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_1fd.add(this.domNode,"mblToolBarButtonHasIcon");_1fd.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_1fd.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this._pendingIcon!==undefined?this._pendingIcon:this.icon);delete this._pendingIcon;}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(text){this.inherited(arguments);_1fd.toggle(this.tableNode,"mblToolBarButtonText",text||this.arrow);},_setSelectedAttr:function(_201){var _202=function(node,a,b){_1fd.replace(node,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_201){_1fd.replace(this.bodyNode,this.selColor,this.defaultColor);if(!has("ie")&&this.arrowNode){_202(this.arrowNode,this.selColor,this.defaultColor);}}else{_1fd.replace(this.bodyNode,this.defaultColor,this.selColor);if(!has("ie")&&this.arrowNode){_202(this.arrowNode,this.defaultColor,this.selColor);}}_1fd.toggle(this.domNode,"mblToolBarButtonSelected",_201);_1fd.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_201);}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_203,lang,base){lang.getObject("mobile",true,_203);return _203.mobile;}); \ No newline at end of file