//>>built
require({cache:{"dojox/mobile/app/_base":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_base,dijit/_WidgetBase,dojox/mobile,dojox/mobile/parser,dojox/mobile/Button,dojox/mobile/app/_event,dojox/mobile/app/_Widget,dojox/mobile/app/StageController,dojox/mobile/app/SceneController,dojox/mobile/app/SceneAssistant,dojox/mobile/app/AlertDialog,dojox/mobile/app/List,dojox/mobile/app/ListSelector,dojox/mobile/app/TextBox,dojox/mobile/app/ImageView,dojox/mobile/app/ImageThumbView"],function(c,
k,e){c.provide("dojox.mobile.app._base");c.experimental("dojox.mobile.app._base");c.require("dijit._base");c.require("dijit._WidgetBase");c.require("dojox.mobile");c.require("dojox.mobile.parser");c.require("dojox.mobile.Button");c.require("dojox.mobile.app._event");c.require("dojox.mobile.app._Widget");c.require("dojox.mobile.app.StageController");c.require("dojox.mobile.app.SceneController");c.require("dojox.mobile.app.SceneAssistant");c.require("dojox.mobile.app.AlertDialog");c.require("dojox.mobile.app.List");
c.require("dojox.mobile.app.ListSelector");c.require("dojox.mobile.app.TextBox");c.require("dojox.mobile.app.ImageView");c.require("dojox.mobile.app.ImageThumbView");(function(){function b(a,d){var h,g;do if(h=a.pop(),h.source)g=h.source;else if(h.module)g=c.moduleUrl(h.module)+".js";else{console.log("Error: invalid JavaScript resource "+c.toJson(h));return}while(0<a.length&&f[g]);1>a.length&&f[g]?d():c.xhrGet({url:g,sync:!1}).addCallbacks(function(h){c.eval(h);f[g]=!0;0<a.length?b(a,d):d()},function(){console.log("Failed to load resource "+
g)})}var a,d,f={},g,q=[],l=function(){a=new e.mobile.app.StageController(g);var b={id:"com.test.app",version:"1.0.0",initialScene:"main"};c.global.appInfo&&c.mixin(b,c.global.appInfo);d=e.mobile.app.info=b;d.title&&(c.query("head title")[0]||c.create("title",{},c.query("head")[0]),document.title=d.title);a.pushScene(d.initialScene)},h=function(){var a=!1;c.global.BackButton&&(BackButton.override(),c.connect(document,"backKeyDown",function(a){c.publish("/dojox/mobile/app/goback")}),a=!0);a&&c.addClass(c.body(),
"mblNativeBack")};c.mixin(e.mobile.app,{init:function(d){g=d||c.body();e.mobile.app.STAGE_CONTROLLER_ACTIVE=!0;c.subscribe("/dojox/mobile/app/goback",function(){a.popScene()});c.subscribe("/dojox/mobile/app/alert",function(a){e.mobile.app.getActiveSceneController().showAlertDialog(a)});c.subscribe("/dojox/mobile/app/pushScene",function(b,d){a.pushScene(b,d||{})});c.xhrGet({url:"view-resources.json",load:function(a){var d=[];if(a){q=a=c.fromJson(a);for(var h=0;h<a.length;h++)a[h].scene||d.push(a[h])}0<
d.length?b(d,l):l()},error:l});h()},getActiveSceneController:function(){return a.getActiveSceneController()},getStageController:function(){return a},loadResources:function(a,d){b(a,d)},loadResourcesForScene:function(a,d){for(var h=[],c=0;c<q.length;c++)q[c].scene==a&&h.push(q[c]);0<h.length?b(h,d):d()},resolveTemplate:function(a){return"app/views/"+a+"/"+a+"-scene.html"},resolveAssistant:function(a){return"app/assistants/"+a+"-assistant.js"}})})()})},"dijit/main":function(){define(["dojo/_base/kernel"],
function(c){return c.dijit})},"dojox/main":function(){define(["dojo/_base/kernel"],function(c){return c.dojox})},"dijit/_base":function(){define("./main ./a11y ./WidgetSet ./_base/focus ./_base/manager ./_base/place ./_base/popup ./_base/scroll ./_base/sniff ./_base/typematic ./_base/wai ./_base/window".split(" "),function(c){return c._base})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(c,k,e,b,a,d,f){var g=
{_isElementShown:function(a){var d=b.get(a);return"hidden"!=d.visibility&&"collapsed"!=d.visibility&&"none"!=d.display&&"hidden"!=e.get(a,"type")},hasDefaultTabStop:function(a){switch(a.nodeName.toLowerCase()){case "a":return e.has(a,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var b;try{var d=a.contentDocument;if("designMode"in d&&"on"==d.designMode)return!0;b=d.body}catch(r){try{b=a.contentWindow.document.body}catch(n){return!1}}return b&&
("true"==b.contentEditable||b.firstChild&&"true"==b.firstChild.contentEditable);default:return"true"==a.contentEditable}},effectiveTabIndex:function(a){if(!e.get(a,"disabled"))return e.has(a,"tabIndex")?+e.get(a,"tabIndex"):g.hasDefaultTabStop(a)?0:void 0},isTabNavigable:function(a){return 0<=g.effectiveTabIndex(a)},isFocusable:function(a){return-1<=g.effectiveTabIndex(a)},_getTabNavigable:function(a){function b(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
a.name&&a.name.toLowerCase()}function h(a){return x[b(a)]||a}var c,f,q,m,p,u,x={},y=g._isElementShown,w=g.effectiveTabIndex,k=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(!(1!=a.nodeType||9>=d("ie")&&"HTML"!==a.scopeName)&&y(a)){var h=w(a);if(0<=h){if(0==h)c||(c=a),f=a;else if(0<h){if(!q||h<m)m=h,q=a;if(!p||h>=u)u=h,p=a}h=b(a);e.get(a,"checked")&&h&&(x[h]=a)}"SELECT"!=a.nodeName.toUpperCase()&&k(a)}};y(a)&&k(a);return{first:h(c),last:h(f),lowest:h(q),highest:h(p)}},getFirstInTabbingOrder:function(a,
b){var d=g._getTabNavigable(k.byId(a,b));return d.lowest?d.lowest:d.first},getLastInTabbingOrder:function(a,b){var d=g._getTabNavigable(k.byId(a,b));return d.last?d.last:d.highest}};a.mixin(f,g);return g})},"dijit/WidgetSet":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(c,k,e,b){var a=k("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw Error("Tried to register widget with id\x3d\x3d"+
a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){this._hash[a]&&(delete this._hash[a],this.length--)},forEach:function(a,b){b=b||e.global;var d=0,c;for(c in this._hash)a.call(b,this._hash[c],d++,this._hash);return this},filter:function(b,c){c=c||e.global;var d=new a,f=0,l;for(l in this._hash){var h=this._hash[l];b.call(c,h,f++,this._hash)&&d.add(h)}return d},byId:function(a){return this._hash[a]},byClass:function(b){var d=new a,c,e;for(c in this._hash)e=
this._hash[c],e.declaredClass==b&&d.add(e);return d},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,b){return c.map(this.toArray(),a,b)},every:function(a,b){b=b||e.global;var d=0,c;for(c in this._hash)if(!a.call(b,this._hash[c],d++,this._hash))return!1;return!0},some:function(a,b){b=b||e.global;var d=0,c;for(c in this._hash)if(a.call(b,this._hash[c],d++,this._hash))return!0;return!1}});c.forEach("forEach filter byClass map every some".split(" "),function(d){b[d]=
a.prototype[d]});return a})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(c,k,e){var b={},a={},d={length:0,add:function(b){if(a[b.id])throw Error("Tried to register widget with id\x3d\x3d"+b.id+" but that id is already registered");a[b.id]=b;this.length++},remove:function(b){a[b]&&(delete a[b],this.length--)},byId:function(b){return"string"==typeof b?a[b]:b},byNode:function(b){return a[b.getAttribute("widgetId")]},toArray:function(){var b=[],d;for(d in a)b.push(a[d]);
return b},getUniqueId:function(d){var c;do c=d+"_"+(d in b?++b[d]:b[d]=0);while(a[c]);return"dijit"==e._scopeName?c:e._scopeName+"_"+c},findWidgets:function(b,d){function c(b){for(b=b.firstChild;b;b=b.nextSibling)if(1==b.nodeType){var h=b.getAttribute("widgetId");h?(h=a[h])&&f.push(h):b!==d&&c(b)}}var f=[];c(b);return f},_destroyAll:function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];c.forEach(d.findWidgets(k.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&
a.destroy())})},getEnclosingWidget:function(b){for(;b;){var d=1==b.nodeType&&b.getAttribute("widgetId");if(d)return a[d];b=b.parentNode}return null},_hash:a};return e.registry=d})},"dijit/_base/focus":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ../selection ../main".split(" "),function(c,k,e,b,a,d,f,g){d.focus=function(b){if(b){var c="node"in b?b.node:b,h=b.bookmark;b=b.openedForWindow;var f=h?h.isCollapsed:!1;if(c){var e="iframe"==c.tagName.toLowerCase()?
c.contentWindow:c;if(e&&e.focus)try{e.focus()}catch(t){}d._onFocusNode(c)}if(h&&a.withGlobal(b||a.global,g.isCollapsed)&&!f){b&&b.focus();try{a.withGlobal(b||a.global,g.moveToBookmark,null,[h])}catch(t){}}}};d.watch("curNode",function(a,d,c){g._curFocus=c;g._prevFocus=d;c&&b.publish("focusNode",c)});d.watch("activeStack",function(a,b,d){g._activeStack=d});d.on("widget-blur",function(a,d){b.publish("widgetBlur",a,d)});d.on("widget-focus",function(a,d){b.publish("widgetFocus",a,d)});e.mixin(g,{_curFocus:null,
_prevFocus:null,isCollapsed:function(){return g.getBookmark().isCollapsed},getBookmark:function(){return(a.global==window?f:new f.SelectionManager(a.global)).getBookmark()},moveToBookmark:function(b){return(a.global==window?f:new f.SelectionManager(a.global)).moveToBookmark(b)},getFocus:function(b,c){var h=!d.curNode||b&&k.isDescendant(d.curNode,b.domNode)?g._prevFocus:d.curNode;return{node:h,bookmark:h&&h==d.curNode&&a.withGlobal(c||a.global,g.getBookmark),openedForWindow:c}},_activeStack:[],registerIframe:function(a){return d.registerIframe(a)},
unregisterIframe:function(a){a&&a.remove()},registerWin:function(a,b){return d.registerWin(a,b)},unregisterWin:function(a){a&&a.remove()}});return g})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p,u){var x,y,w=new (k([r,f],{curNode:null,activeStack:[],
constructor:function(){var a=g.hitch(this,function(a){e.isDescendant(this.curNode,a)&&this.set("curNode",null);e.isDescendant(this.prevNode,a)&&this.set("prevNode",null)});c.before(d,"empty",a);c.before(d,"destroy",a)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,b){var d=this,c=a.document&&a.document.body;if(c){var f=h("pointer-events")?"pointerdown":h("MSPointer")?"MSPointerDown":h("touch-events")?"mousedown, touchstart":"mousedown",g=q(a.document,
f,function(a){a&&a.target&&null==a.target.parentNode||d._onTouchNode(b||a.target,"mouse")}),e=q(c,"focusin",function(a){if(a.target.tagName){var c=a.target.tagName.toLowerCase();"#document"!=c&&"body"!=c&&(m.isFocusable(a.target)?d._onFocusNode(b||a.target):d._onTouchNode(b||a.target))}}),l=q(c,"focusout",function(a){d._onBlurNode(b||a.target)});return{remove:function(){g.remove();e.remove();l.remove();c=g=e=l=null}}}},_onBlurNode:function(a){a=(new Date).getTime();a<x+100||(this._clearFocusTimer&&
clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(g.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),a<y+100||(this._clearActiveWidgetsTimer=setTimeout(g.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(d,c){y=(new Date).getTime();this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);
a.contains(d,"dijitPopup")&&(d=d.firstChild);var h=[];try{for(;d;){var f=b.get(d,"dijitPopupParent");if(f)d=p.byId(f).domNode;else if(d.tagName&&"body"==d.tagName.toLowerCase()){if(d===n.body())break;d=t.get(d.ownerDocument).frameElement}else{var g=d.getAttribute&&d.getAttribute("widgetId"),e=g&&p.byId(g);!e||"mouse"==c&&e.get("disabled")||h.unshift(g);d=d.parentNode}}}catch(C){}this._setStack(h,c)},_onFocusNode:function(a){a&&9!=a.nodeType&&(x=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),
delete this._clearFocusTimer),this._onTouchNode(a),a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,b){var d=this.activeStack,c=d.length-1,h=a.length-1;if(a[h]!=d[c]){this.set("activeStack",a);var f;for(f=c;0<=f&&d[f]!=a[f];f--)if(c=p.byId(d[f]))c._hasBeenBlurred=!0,c.set("focused",!1),c._focusManager==this&&c._onBlur(b),this.emit("widget-blur",c,b);for(f++;f<=h;f++)if(c=p.byId(a[f]))c.set("focused",!0),c._focusManager==this&&c._onFocus(b),this.emit("widget-focus",
c,b)}},focus:function(a){if(a)try{a.focus()}catch(v){}}}));l(function(){var a=w.registerWin(t.get(document));h("ie")&&q(window,"unload",function(){a&&(a.remove(),a=null)})});u.focus=function(a){w.focus(a)};for(var A in w)/^_/.test(A)||(u.focus[A]="function"==typeof w[A]?g.hitch(w,A):w[A]);w.watch(function(a,b,d){u.focus[a]=d});return w})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(c,k,e,b){return c("dojo.Stateful",null,{_attrPairNames:{},
_getAttrNames:function(a){var b=this._attrPairNames;return b[a]?b[a]:b[a]={s:"_"+a+"Setter",g:"_"+a+"Getter"}},postscript:function(a){a&&this.set(a)},_get:function(a,b){return"function"===typeof this[b.g]?this[b.g]():this[a]},get:function(a){return this._get(a,this._getAttrNames(a))},set:function(a,d){if("object"===typeof a){for(var c in a)a.hasOwnProperty(c)&&"_watchCallbacks"!=c&&this.set(c,a[c]);return this}c=this._getAttrNames(a);var g=this._get(a,c);c=this[c.s];var e;"function"===typeof c?e=
c.apply(this,Array.prototype.slice.call(arguments,1)):this[a]=d;if(this._watchCallbacks){var l=this;b(e,function(){l._watchCallbacks(a,g,d)})}return this},_changeAttrValue:function(a,b){var d=this.get(a);this[a]=b;this._watchCallbacks&&this._watchCallbacks(a,d,b);return this},watch:function(a,b){var d=this._watchCallbacks;if(!d)var c=this,d=this._watchCallbacks=function(a,b,f,g){var h=function(d){if(d){d=d.slice();for(var h=0,g=d.length;h<g;h++)d[h].call(c,a,b,f)}};h(d["_"+a]);g||h(d["*"])};b||"function"!==
typeof a?a="_"+a:(b=a,a="*");var q=d[a];"object"!==typeof q&&(q=d[a]=[]);q.push(b);var l={};l.unwatch=l.remove=function(){var a=e.indexOf(q,b);-1<a&&q.splice(a,1)};return l}})})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(c,k,e,b,a,d,f){k.add("rtl-adjust-position-for-verticalScrollBar",function(b,d){var c=e.body(d),g=f.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",
position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},c,"last"),l=f.create("div",{style:{overflow:"hidden",direction:"ltr"}},g,"last"),q=0!=a.position(l).x;g.removeChild(l);c.removeChild(g);return q});k.add("position-fixed-support",function(b,d){var c=e.body(d),g=f.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},c,"last"),l=f.create("span",{style:{position:"fixed",left:"0",top:"0"}},g,"last"),q=a.position(l).x!=a.position(g).x;g.removeChild(l);c.removeChild(g);
return q});var g={getBox:function(b){b=b||e.doc;var d="BackCompat"==b.compatMode?e.body(b):b.documentElement,c=a.docScroll(b);if(k("touch")){var f=g.get(b);b=f.innerWidth||d.clientWidth;d=f.innerHeight||d.clientHeight}else b=d.clientWidth,d=d.clientHeight;return{l:c.x,t:c.y,w:b,h:d}},get:function(a){if(k("ie")&&g!==document.parentWindow){a.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var b=a._parentWindow;a._parentWindow=null;return b}return a.parentWindow||a.defaultView},
scrollIntoView:function(c,f){try{c=b.byId(c);var h=c.ownerDocument||e.doc,g=e.body(h),l=h.documentElement||g.parentNode,t=k("ie")||k("trident"),m=k("webkit");if(c!=g&&c!=l)if(!(k("mozilla")||t||m||k("opera")||k("trident")||k("edge"))&&"scrollIntoView"in c)c.scrollIntoView(!1);else{var p="BackCompat"==h.compatMode,u=Math.min(g.clientWidth||l.clientWidth,l.clientWidth||g.clientWidth),x=Math.min(g.clientHeight||l.clientHeight,l.clientHeight||g.clientHeight),h=m||p?g:l,q=f||a.position(c),w=c.parentNode,
m=function(a){return 6>=t||7==t&&p?!1:k("position-fixed-support")&&"fixed"==d.get(a,"position").toLowerCase()},A=this,z=function(a,b,d){"BODY"==a.tagName||"HTML"==a.tagName?A.get(a.ownerDocument).scrollBy(b,d):(b&&(a.scrollLeft+=b),d&&(a.scrollTop+=d))};if(!m(c))for(;w;){w==g&&(w=h);var v=a.position(w),F=m(w),E="rtl"==d.getComputedStyle(w).direction.toLowerCase();if(w==h)v.w=u,v.h=x,h==l&&(t||k("trident"))&&E&&(v.x+=h.offsetWidth-v.w),v.x=0,v.y=0;else{var D=a.getPadBorderExtents(w);v.w-=D.w;v.h-=
D.h;v.x+=D.l;v.y+=D.t;var B=w.clientWidth,C=v.w-B;0<B&&0<C&&(E&&k("rtl-adjust-position-for-verticalScrollBar")&&(v.x+=C),v.w=B);B=w.clientHeight;C=v.h-B;0<B&&0<C&&(v.h=B)}F&&(0>v.y&&(v.h+=v.y,v.y=0),0>v.x&&(v.w+=v.x,v.x=0),v.y+v.h>x&&(v.h=x-v.y),v.x+v.w>u&&(v.w=u-v.x));var H=q.x-v.x,I=q.y-v.y,K=H+q.w-v.w,L=I+q.h-v.h,G,J;0<K*H&&(w.scrollLeft||w==h||w.scrollWidth>w.offsetHeight)&&(G=Math[0>H?"max":"min"](H,K),E&&(8==t&&!p||5<=k("trident"))&&(G=-G),J=w.scrollLeft,z(w,G,0),G=w.scrollLeft-J,q.x-=G);0<
L*I&&(w.scrollTop||w==h||w.scrollHeight>w.offsetHeight)&&(G=Math.ceil(Math[0>I?"max":"min"](I,L)),J=w.scrollTop,z(w,0,G),G=w.scrollTop-J,q.y-=G);w=w!=h&&!F&&w.parentNode}}}catch(M){console.error("scrollIntoView: "+M),c.scrollIntoView(!1)}}};c.setObject("dojo.window",g);return g})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),function(c,k,e,b,a,d){var f=function(g){var f=g.document;this.getType=function(){if(f.getSelection){var a=
"text",b;try{b=g.getSelection()}catch(n){}b&&1==b.rangeCount&&(b=b.getRangeAt(0),b.startContainer==b.endContainer&&1==b.endOffset-b.startOffset&&3!=b.startContainer.nodeType&&(a="control"));return a}return f.selection.type.toLowerCase()};this.getSelectedText=function(){if(f.getSelection){var a=g.getSelection();return a?a.toString():""}return"control"==this.getType()?null:f.selection.createRange().text};this.getSelectedHtml=function(){if(f.getSelection){var a=g.getSelection();if(a&&a.rangeCount){var b,
d="";for(b=0;b<a.rangeCount;b++){var c=a.getRangeAt(b).cloneContents(),e=f.createElement("div");e.appendChild(c);d+=e.innerHTML}return d}return null}return"control"==this.getType()?null:f.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(f.getSelection){var a=g.getSelection();return a.anchorNode.childNodes[a.anchorOffset]}if((a=f.selection.createRange())&&a.item)return f.selection.createRange().item(0)}return null};this.getParentElement=function(){if("control"==
this.getType()){var a=this.getSelectedElement();if(a)return a.parentNode}else if(f.getSelection){if(a=f.getSelection()){for(a=a.anchorNode;a&&1!=a.nodeType;)a=a.parentNode;return a}}else return a=f.selection.createRange(),a.collapse(!0),a.parentElement();return null};this.hasAncestorElement=function(a){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(a){var b=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(b,arguments)};this.isTag=
function(a,b){if(a&&a.tagName)for(var d=a.tagName.toLowerCase(),c=0;c<b.length;c++){var h=String(b[c]).toLowerCase();if(d==h)return h}return""};this.getParentOfType=function(a,b){for(;a;){if(this.isTag(a,b).length)return a;a=a.parentNode}return null};this.collapse=function(a){if(f.getSelection){var b=g.getSelection();b.removeAllRanges?a?b.collapseToStart():b.collapseToEnd():b.collapse(a)}else b=f.selection.createRange(),b.collapse(a),b.select()};this.remove=function(){var a=f.selection;f.getSelection?
(a=g.getSelection(),a.deleteFromDocument()):"none"!=a.type.toLowerCase()&&a.clear();return a};this.selectElementChildren=function(a,d){var c;a=k.byId(a);if(f.getSelection){var h=g.getSelection();b("opera")?(c=h.rangeCount?h.getRangeAt(0):f.createRange(),c.setStart(a,0),c.setEnd(a,3==a.nodeType?a.length:a.childNodes.length),h.addRange(c)):h.selectAllChildren(a)}else if(c=a.ownerDocument.body.createTextRange(),c.moveToElementText(a),!d)try{c.select()}catch(m){}};this.selectElement=function(d,c){var h;
d=k.byId(d);if(f.getSelection){var g=f.getSelection();h=f.createRange();g.removeAllRanges&&(b("opera")&&g.getRangeAt(0)&&(h=g.getRangeAt(0)),h.selectNode(d),g.removeAllRanges(),g.addRange(h))}else try{g=d.tagName?d.tagName.toLowerCase():"",h="img"===g||"table"===g?a.body(f).createControlRange():a.body(f).createRange(),h.addElement(d),c||h.select()}catch(m){this.selectElementChildren(d,c)}};this.inSelection=function(a){if(a){var b,d;if(f.getSelection){var c=g.getSelection();c&&0<c.rangeCount&&(d=c.getRangeAt(0));
if(d&&d.compareBoundaryPoints&&f.createRange)try{if(b=f.createRange(),b.setStart(a,0),1===d.compareBoundaryPoints(d.START_TO_END,b))return!0}catch(m){}}else{d=f.selection.createRange();try{b=a.ownerDocument.body.createTextRange(),b.moveToElementText(a)}catch(m){}if(d&&b&&1===d.compareEndPoints("EndToStart",b))return!0}}return!1};this.getBookmark=function(){var a,b,c=f.selection,e=d.curNode;if(f.getSelection){if(c=g.getSelection())if(c.isCollapsed){if(a=e?e.tagName:"")if(a=a.toLowerCase(),"textarea"==
a||"input"==a&&(!e.type||"text"==e.type.toLowerCase()))return c={start:e.selectionStart,end:e.selectionEnd,node:e,pRange:!0},{isCollapsed:c.end<=c.start,mark:c};a={isCollapsed:!0};c.rangeCount&&(a.mark=c.getRangeAt(0).cloneRange())}else b=c.getRangeAt(0),a={isCollapsed:!1,mark:b.cloneRange()}}else if(c){a=e?e.tagName:"";a=a.toLowerCase();if(e&&a&&("button"==a||"textarea"==a||"input"==a)){if(c.type&&"none"==c.type.toLowerCase())return{isCollapsed:!0,mark:null};b=c.createRange();return{isCollapsed:b.text&&
b.text.length?!1:!0,mark:{range:b,pRange:!0}}}a={};try{b=c.createRange(),a.isCollapsed=!("Text"==c.type?b.htmlText.length:b.length)}catch(m){return a.isCollapsed=!0,a}if("CONTROL"==c.type.toUpperCase())if(b.length)for(a.mark=[],c=0,e=b.length;c<e;)a.mark.push(b.item(c++));else a.isCollapsed=!0,a.mark=null;else a.mark=b.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a};this.moveToBookmark=function(a){if(a=a.mark)if(f.getSelection){var b=g.getSelection();
b&&b.removeAllRanges?a.pRange?(b=a.node,b.selectionStart=a.start,b.selectionEnd=a.end):(b.removeAllRanges(),b.addRange(a)):console.warn("No idea how to restore selection for this browser!")}else if(f.selection&&a){var d;a.pRange?d=a.range:e.isArray(a)?(d=f.body.createControlRange(),c.forEach(a,function(a){d.addElement(a)})):(d=f.body.createTextRange(),d.moveToBookmark(a));d.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},g=new f(window);g.SelectionManager=f;return g})},
"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(c,k,e,b,a){var d={};c.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(a){d[a]=b[a]});e.mixin(d,{defaultDuration:k.defaultDuration||200});e.mixin(a,d);return a})},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(c,k,e,b,a){var d={getViewport:function(){return e.getBox()}};
d.placeOnScreen=b.at;d.placeOnScreenAroundElement=function(a,d,c,e){var f;if(k.isArray(c))f=c;else{f=[];for(var g in c)f.push({aroundCorner:g,corner:c[g]})}return b.around(a,d,f,!0,e)};d.placeOnScreenAroundNode=d.placeOnScreenAroundElement;d.placeOnScreenAroundRectangle=d.placeOnScreenAroundElement;d.getPopupAroundAlignment=function(a,b){var d={};c.forEach(a,function(a){var c=b;switch(a){case "after":d[b?"BR":"BL"]=b?"BL":"BR";break;case "before":d[b?"BL":"BR"]=b?"BR":"BL";break;case "below-alt":c=
!c;case "below":d[c?"BL":"BR"]=c?"TL":"TR";d[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:d[c?"TL":"TR"]=c?"BL":"BR",d[c?"TR":"TL"]=c?"BR":"BL"}});return d};k.mixin(a,d);return a})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(c,k,e,b,a,d,f){function g(b,f,g,q){var h=d.getEffectiveBox(b.ownerDocument);b.parentNode&&"body"==String(b.parentNode.tagName).toLowerCase()||a.body(b.ownerDocument).appendChild(b);
var m=null;c.some(f,function(a){var c=a.corner,d=a.pos,f=0,e={w:{L:h.l+h.w-d.x,R:d.x-h.l,M:h.w}[c.charAt(1)],h:{T:h.t+h.h-d.y,B:d.y-h.t,M:h.h}[c.charAt(0)]},p=b.style;p.left=p.right="auto";g&&(f=g(b,a.aroundCorner,c,e,q),f="undefined"==typeof f?0:f);var l=b.style,u=l.display,x=l.visibility;"none"==l.display&&(l.visibility="hidden",l.display="");p=k.position(b);l.display=u;l.visibility=x;u={L:d.x,R:d.x-p.w,M:Math.max(h.l,Math.min(h.l+h.w,d.x+(p.w>>1))-p.w)}[c.charAt(1)];x={T:d.y,B:d.y-p.h,M:Math.max(h.t,
Math.min(h.t+h.h,d.y+(p.h>>1))-p.h)}[c.charAt(0)];d=Math.max(h.l,u);l=Math.max(h.t,x);u=Math.min(h.l+h.w,u+p.w)-d;x=Math.min(h.t+h.h,x+p.h)-l;f+=p.w-u+(p.h-x);if(null==m||f<m.overflow)m={corner:c,aroundCorner:a.aroundCorner,x:d,y:l,w:u,h:x,overflow:f,spaceAvailable:e};return!f});m.overflow&&g&&g(b,m.aroundCorner,m.corner,m.spaceAvailable,q);f=m.y;var p=m.x,l=a.body(b.ownerDocument);/relative|absolute/.test(e.get(l,"position"))&&(f-=e.get(l,"marginTop"),p-=e.get(l,"marginLeft"));l=b.style;l.top=f+
"px";l.left=p+"px";l.right="auto";return m}var q={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return f.place={at:function(a,b,d,f,e){d=c.map(d,function(a){var d={corner:a,aroundCorner:q[a],pos:{x:b.x,y:b.y}};f&&(d.pos.x+="L"==a.charAt(1)?f.x:-f.x,d.pos.y+="T"==a.charAt(0)?f.y:-f.y);return d});return g(a,d,e)},around:function(a,d,f,q,t){function m(a,b){D.push({aroundCorner:a,corner:b,pos:{x:{L:z,R:z+F,M:z+(F>>1)}[a.charAt(1)],y:{T:v,B:v+E,M:v+(E>>1)}[a.charAt(0)]}})}var h;if("string"==typeof d||"offsetWidth"in
d||"ownerSVGElement"in d){if(h=k.position(d,!0),/^(above|below)/.test(f[0])){var l=k.getBorderExtents(d),x=d.firstChild?k.getBorderExtents(d.firstChild):{t:0,l:0,b:0,r:0},r=k.getBorderExtents(a),w=a.firstChild?k.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};h.y+=Math.min(l.t+x.t,r.t+w.t);h.h-=Math.min(l.t+x.t,r.t+w.t)+Math.min(l.b+x.b,r.b+w.b)}}else h=d;if(d.parentNode)for(l="absolute"==e.getComputedStyle(d).position,d=d.parentNode;d&&1==d.nodeType&&"BODY"!=d.nodeName;){x=k.position(d,!0);r=e.getComputedStyle(d);
/relative|absolute/.test(r.position)&&(l=!1);if(!l&&/hidden|auto|scroll/.test(r.overflow)){var w=Math.min(h.y+h.h,x.y+x.h),n=Math.min(h.x+h.w,x.x+x.w);h.x=Math.max(h.x,x.x);h.y=Math.max(h.y,x.y);h.h=w-h.y;h.w=n-h.x}"absolute"==r.position&&(l=!0);d=d.parentNode}var z=h.x,v=h.y,F="w"in h?h.w:h.w=h.width,E="h"in h?h.h:(b.deprecated("place.around: dijit/place.__Rectangle: { x:"+z+", y:"+v+", height:"+h.height+", width:"+F+" } has been deprecated.  Please use { x:"+z+", y:"+v+", h:"+h.height+", w:"+F+
" }","","2.0"),h.h=h.height),D=[];c.forEach(f,function(a){var b=q;switch(a){case "above-centered":m("TM","BM");break;case "below-centered":m("BM","TM");break;case "after-centered":b=!b;case "before-centered":m(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":m(b?"TL":"TR",b?"TR":"TL");m(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":m(b?"BL":"BR",b?"TL":"TR");m(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":m(b?"TL":"TR",b?"BL":"BR");m(b?"TR":"TL",
b?"BR":"BL");break;default:m(a.aroundCorner,a.corner)}});a=g(a,D,t,{w:F,h:E});a.aroundNodePos=h;return a}}})},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(c,k,e,b,a){var d=new c,f;e(function(){var c=a.getBox();d._rlh=k(window,"resize",function(){var b=a.getBox();if(c.h!=b.h||c.w!=b.w)c=b,d.emit("resize")});if(8==b("ie")){var e=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=e&&(e=screen.deviceXDPI,d.emit("resize"))},
500)}b("ios")&&(k(document,"focusin",function(a){f=a.target}),k(document,"focusout",function(a){f=null}))});d.getEffectiveBox=function(d){d=a.getBox(d);var c=f&&f.tagName&&f.tagName.toLowerCase();b("ios")&&f&&!f.readOnly&&("textarea"==c||"input"==c&&/^(color|email|number|password|search|tel|text|url)$/.test(f.type))&&(d.h*=0==orientation||180==orientation?.66:.4,c=f.getBoundingClientRect(),d.h=Math.max(d.h,c.top+c.height));return d};return d})},"dijit/_base/popup":function(){define(["dojo/dom-class",
"dojo/_base/window","../popup","../BackgroundIframe"],function(c,k,e){var b=e._createWrapper;e._createWrapper=function(a){a.declaredClass||(a={_popupWrapper:a.parentNode&&c.contains(a.parentNode,"dijitPopup")?a.parentNode:null,domNode:a,destroy:function(){},ownerDocument:a.ownerDocument,ownerDocumentBody:k.body(a.ownerDocument)});return b.call(this,a)};var a=e.open;e.open=function(b){if(b.orient&&"string"!=typeof b.orient&&!("length"in b.orient)){var d=[],c;for(c in b.orient)d.push({aroundCorner:c,
corner:b.orient[c]});b.orient=d}return a.call(this,b)};return e})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main dojo/touch".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p){function u(){this._popupWrapper&&(d.destroy(this._popupWrapper),delete this._popupWrapper)}e=e(null,{_stack:[],_beginZIndex:1E3,
_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var a=this._firstAroundPosition,b=f.position(this._firstAroundNode,!0),d=b.x-a.x,a=b.y-a.y;if(d||a)for(this._firstAroundPosition=b,b=0;b<this._stack.length;b++){var c=this._stack[b].wrapper.style;c.top=parseFloat(c.top)+a+"px";"auto"==c.right?c.left=parseFloat(c.left)+d+"px":c.right=parseFloat(c.right)-d+"px"}this._aroundMoveListener=setTimeout(h.hitch(this,"_repositionAll"),d||a?10:50)}},_createWrapper:function(a){var b=a._popupWrapper,
c=a.domNode;b||(b=d.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":a["aria-label"]||a.label||a.name||a.id},a.ownerDocumentBody),b.appendChild(c),c=c.style,c.display="",c.visibility="",c.position="",c.top="0px",a._popupWrapper=b,k.after(a,"destroy",u,!0),"ontouchend"in document&&r(b,"touchend",function(a){/^(input|button|textarea)$/i.test(a.target.tagName)||a.preventDefault()}),b.dojoClick=!0);return b},moveOffScreen:function(a){var b=this._createWrapper(a);a=
f.isBodyLtr(a.ownerDocument);var d={visibility:"hidden",top:"-9999px",display:""};d[a?"left":"right"]="-9999px";d[a?"right":"left"]="auto";g.set(b,d);return b},hide:function(a){var b=this._createWrapper(a);g.set(b,{display:"none",height:"auto",overflowY:"visible",border:""});a=a.domNode;"_originalStyle"in a&&(a.style.cssText=a._originalStyle)},getTopPopup:function(){for(var a=this._stack,b=a.length-1;0<b&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(d){for(var c=this._stack,e=d.popup,
p=e.domNode,u=d.orient||["below","below-alt","above","above-alt"],x=d.parent?d.parent.isLeftToRight():f.isBodyLtr(e.ownerDocument),k=d.around,E=d.around&&d.around.id?d.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&(!d.parent||!b.isDescendant(d.parent.domNode,c[c.length-1].widget.domNode));)this.close(c[c.length-1].widget);var D=this.moveOffScreen(e);e.startup&&!e._started&&e.startup();var B,C=f.position(p);if("maxHeight"in d&&-1!=d.maxHeight)B=d.maxHeight||Infinity;else{B=m.getEffectiveBox(this.ownerDocument);
var H=k?f.position(k,!1):{y:d.y-(d.padding||0),h:2*(d.padding||0)};B=Math.floor(Math.max(H.y,B.h-(H.y+H.h)))}C.h>B&&(C=g.getComputedStyle(p),g.set(D,{overflowY:"scroll",height:B+"px",border:C.borderLeftWidth+" "+C.borderLeftStyle+" "+C.borderLeftColor}),p._originalStyle=p.style.cssText,p.style.border="none");a.set(D,{id:E,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:d.parent?d.parent.id:""});0==c.length&&k&&(this._firstAroundNode=
k,this._firstAroundPosition=f.position(k,!0),this._aroundMoveListener=setTimeout(h.hitch(this,"_repositionAll"),50));q("config-bgIframe")&&!e.bgIframe&&(e.bgIframe=new t(D));E=e.orient?h.hitch(e,"orient"):null;u=k?n.around(D,k,u,x,E):n.at(D,d,"R"==u?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],d.padding,E);D.style.visibility="visible";p.style.visibility="visible";p=[];p.push(r(D,"keydown",h.hitch(this,function(a){if(a.keyCode==l.ESCAPE&&d.onCancel)a.stopPropagation(),a.preventDefault(),d.onCancel();
else if(a.keyCode==l.TAB&&(a.stopPropagation(),a.preventDefault(),(a=this.getTopPopup())&&a.onCancel))a.onCancel()})));e.onCancel&&d.onCancel&&p.push(e.on("cancel",d.onCancel));p.push(e.on(e.onExecute?"execute":"change",h.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));c.push({widget:e,wrapper:D,parent:d.parent,onExecute:d.onExecute,onCancel:d.onCancel,onClose:d.onClose,handlers:p});if(e.onOpen)e.onOpen(u);return u},close:function(a){for(var b=this._stack;a&&c.some(b,
function(b){return b.widget==a})||!a&&b.length;){var d=b.pop(),f=d.widget,e=d.onClose;f.bgIframe&&(f.bgIframe.destroy(),delete f.bgIframe);if(f.onClose)f.onClose();for(var g;g=d.handlers.pop();)g.remove();f&&f.domNode&&this.hide(f);e&&e()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return p.popup=new e})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),
function(c,k,e,b,a,d,f,g){g.add("config-bgIframe",(g("ie")||g("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var q=new function(){var d=[];this.pop=function(){var f;d.length?(f=d.pop(),f.style.display=""):(9>g("ie")?(f=e.dojoBlankHtmlUrl||c.toUrl("dojo/resources/blank.html")||'javascript:""',f=document.createElement("\x3ciframe src\x3d'"+f+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e")):(f=b.create("iframe"),
f.src='javascript:""',f.className="dijitBackgroundIframe",f.setAttribute("role","presentation"),a.set(f,"opacity",.1)),f.tabIndex=-1);return f};this.push=function(a){a.style.display="none";d.push(a)}};k.BackgroundIframe=function(b){if(!b.id)throw Error("no id");if(g("config-bgIframe")){var c=this.iframe=q.pop();b.appendChild(c);7>g("ie")||g("quirks")?(this.resize(b),this._conn=f(b,"resize",d.hitch(this,"resize",b))):a.set(c,{width:"100%",height:"100%"})}};d.extend(k.BackgroundIframe,{resize:function(b){this.iframe&&
a.set(this.iframe,{width:b.offsetWidth+"px",height:b.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),q.push(this.iframe),delete this.iframe)}});return k.BackgroundIframe})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(c,k,e,b,a,d,f,g,q,l){function h(a,b,c){return m&&c?function(a,b){return d(a,
c,b)}:u?function(c,f){var e=d(c,b,function(a){f.call(this,a);B=(new Date).getTime()}),g=d(c,a,function(a){(!B||(new Date).getTime()>B+1E3)&&f.call(this,a)});return{remove:function(){e.remove();g.remove()}}}:function(b,c){return d(b,a,c)}}function r(a){do if(void 0!==a.dojoClick)return a;while(a=a.parentNode)}function n(a,c,f){if(!g.isRight(a)){var h=r(a.target);if(y=!a.target.disabled&&h&&h.dojoClick)if(A=(w="useTarget"==y)?h:a.target,w&&a.preventDefault(),z=a.changedTouches?a.changedTouches[0].pageX-
l.global.pageXOffset:a.clientX,v=a.changedTouches?a.changedTouches[0].pageY-l.global.pageYOffset:a.clientY,F=("object"==typeof y?y.x:"number"==typeof y?y:0)||4,E=("object"==typeof y?y.y:"number"==typeof y?y:0)||4,!x){a=function(a){l.doc.addEventListener(a,function(d){var c=d.target;y&&!d._dojo_click&&(new Date).getTime()<=D+1E3&&("INPUT"!=c.tagName||!b.contains(c,"dijitOffScreen"))&&(d.stopPropagation(),d.stopImmediatePropagation&&d.stopImmediatePropagation(),"click"==a&&("INPUT"!=c.tagName||"radio"==
c.type&&(b.contains(c,"dijitCheckBoxInput")||b.contains(c,"mblRadioButton"))||"checkbox"==c.type&&(b.contains(c,"dijitCheckBoxInput")||b.contains(c,"mblCheckBox")))&&"TEXTAREA"!=c.tagName&&"AUDIO"!=c.tagName&&"VIDEO"!=c.tagName&&d.preventDefault())},!0)};var m=function(a){y=w?e.isDescendant(l.doc.elementFromPoint(a.changedTouches?a.changedTouches[0].pageX-l.global.pageXOffset:a.clientX,a.changedTouches?a.changedTouches[0].pageY-l.global.pageYOffset:a.clientY),A):y&&(a.changedTouches?a.changedTouches[0].target:
a.target)==A&&Math.abs((a.changedTouches?a.changedTouches[0].pageX-l.global.pageXOffset:a.clientX)-z)<=F&&Math.abs((a.changedTouches?a.changedTouches[0].pageY-l.global.pageYOffset:a.clientY)-v)<=E};x=!0;l.doc.addEventListener(c,function(a){g.isRight(a)||(m(a),w&&a.preventDefault())},!0);l.doc.addEventListener(f,function(a){if(!g.isRight(a)&&(m(a),y)){var b=function(b){var d=document.createEvent("MouseEvents");d._dojo_click=!0;d.initMouseEvent(b,!0,!0,a.view,a.detail,f.screenX,f.screenY,f.clientX,
f.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);return d};D=(new Date).getTime();var c=w?A:a.target;"LABEL"===c.tagName&&(c=e.byId(c.getAttribute("for"))||c);var f=a.changedTouches?a.changedTouches[0]:a,h=b("mousedown"),p=b("mouseup"),l=b("click");setTimeout(function(){d.emit(c,"mousedown",h);d.emit(c,"mouseup",p);d.emit(c,"click",l);D=(new Date).getTime()},0)}},!0);a("click");a("mousedown");a("mouseup")}}}var t=5>f("ios"),m=f("pointer-events")||f("MSPointer"),p=function(){var a={},b;for(b in{down:1,
move:1,up:1,cancel:1,over:1,out:1})a[b]=f("MSPointer")?"MSPointer"+b.charAt(0).toUpperCase()+b.slice(1):"pointer"+b;return a}(),u=f("touch-events"),x,y,w=!1,A,z,v,F,E,D,B,C;f("touch")&&(m?q(function(){l.doc.addEventListener(p.down,function(a){n(a,p.move,p.up)},!0)}):q(function(){function b(b){var d=a.delegate(b,{bubbles:!0});6<=f("ios")&&(d.touches=b.touches,d.altKey=b.altKey,d.changedTouches=b.changedTouches,d.ctrlKey=b.ctrlKey,d.metaKey=b.metaKey,d.shiftKey=b.shiftKey,d.targetTouches=b.targetTouches);
return d}C=l.body();l.doc.addEventListener("touchstart",function(a){B=(new Date).getTime();var b=C;C=a.target;d.emit(b,"dojotouchout",{relatedTarget:C,bubbles:!0});d.emit(C,"dojotouchover",{relatedTarget:b,bubbles:!0});n(a,"touchmove","touchend")},!0);d(l.doc,"touchmove",function(a){B=(new Date).getTime();var c=l.doc.elementFromPoint(a.pageX-(t?0:l.global.pageXOffset),a.pageY-(t?0:l.global.pageYOffset));c&&(C!==c&&(d.emit(C,"dojotouchout",{relatedTarget:c,bubbles:!0}),d.emit(c,"dojotouchover",{relatedTarget:C,
bubbles:!0}),C=c),d.emit(c,"dojotouchmove",b(a))||a.preventDefault())});d(l.doc,"touchend",function(a){B=(new Date).getTime();var c=l.doc.elementFromPoint(a.pageX-(t?0:l.global.pageXOffset),a.pageY-(t?0:l.global.pageYOffset))||l.body();d.emit(c,"dojotouchend",b(a))})}));k={press:h("mousedown","touchstart",p.down),move:h("mousemove","dojotouchmove",p.move),release:h("mouseup","dojotouchend",p.up),cancel:h(g.leave,"touchcancel",m?p.cancel:null),over:h("mouseover","dojotouchover",p.over),out:h("mouseout",
"dojotouchout",p.out),enter:g._eventHandler(h("mouseover","dojotouchover",p.over)),leave:g._eventHandler(h("mouseout","dojotouchout",p.out))};return c.touch=k})},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(c,k){k.scrollIntoView=function(e,b){c.scrollIntoView(e,b)}})},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(c,k,e,b,a){var d=a.doc.documentElement;
a=b("ie");var f=b("trident"),g=b("opera"),q=Math.floor,l=b("ff"),h=c.boxModel.replace(/-/,""),g={dj_quirks:b("quirks"),dj_opera:g,dj_khtml:b("khtml"),dj_webkit:b("webkit"),dj_safari:b("safari"),dj_chrome:b("chrome"),dj_edge:b("edge"),dj_gecko:b("mozilla"),dj_ios:b("ios"),dj_android:b("android")};a&&(g.dj_ie=!0,g["dj_ie"+q(a)]=!0,g.dj_iequirks=b("quirks"));f&&(g.dj_trident=!0,g["dj_trident"+q(f)]=!0);l&&(g["dj_ff"+q(l)]=!0);g["dj_"+h]=!0;var r="",n;for(n in g)g[n]&&(r+=n+" ");d.className=k.trim(d.className+
" "+r);e(function(){if(!c.isBodyLtr()){var a="dj_rtl dijitRtl "+r.replace(/ /g,"-rtl ");d.className=k.trim(d.className+" "+a+"dj_rtl dijitRtl "+r.replace(/ /g,"-rtl "))}});return b})},"dijit/_base/typematic":function(){define(["../typematic"],function(){})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),function(c,k,e,b,a,d){var f=d.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,
this._node,this._evt);this._currentTimeout=Math.max(0>this._currentTimeout?this._initialDelay:1<this._subsequentDelay?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(e.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,b,d,c,f,k,t,m){if(f!=this._obj){this.stop();this._initialDelay=t||500;this._subsequentDelay=k||.9;this._minDelay=m||10;this._obj=f;this._node=d;this._count=this._currentTimeout=-1;this._callback=
e.hitch(b,c);this._evt={faux:!0};for(var g in a)"layerX"!=g&&"layerY"!=g&&(b=a[g],"function"!=typeof b&&"undefined"!=typeof b&&(this._evt[g]=b));this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(a,d,l,h,r,n,t){var g="keyCode"in d?"keyCode":"charCode"in d?"charCode":"charOrCode",p=[b(a,"keyCode"in d?"keydown":"charCode"in d?"keypress":k._keypress,e.hitch(this,
function(b){b[g]!=d[g]||void 0!==d.ctrlKey&&d.ctrlKey!=b.ctrlKey||void 0!==d.altKey&&d.altKey!=b.altKey||void 0!==d.metaKey&&d.metaKey!=(b.metaKey||!1)||void 0!==d.shiftKey&&d.shiftKey!=b.shiftKey?f._obj==d&&f.stop():(b.stopPropagation(),b.preventDefault(),f.trigger(b,l,a,h,d,r,n,t))})),b(a,"keyup",e.hitch(this,function(){f._obj==d&&f.stop()}))];return{remove:function(){c.forEach(p,function(a){a.remove()})}}},addMouseListener:function(d,q,l,h,k,n){var g=[b(d,"mousedown",e.hitch(this,function(a){a.preventDefault();
f.trigger(a,q,d,l,d,h,k,n)})),b(d,"mouseup",e.hitch(this,function(a){this._obj&&a.preventDefault();f.stop()})),b(d,"mouseout",e.hitch(this,function(a){this._obj&&a.preventDefault();f.stop()})),b(d,"dblclick",e.hitch(this,function(b){b.preventDefault();9>a("ie")&&(f.trigger(b,q,d,l,d,h,k,n),setTimeout(e.hitch(this,f.stop),50))}))];return{remove:function(){c.forEach(g,function(a){a.remove()})}}},addListener:function(a,b,d,f,e,k,t,m){var g=[this.addKeyListener(b,d,f,e,k,t,m),this.addMouseListener(a,
f,e,k,t,m)];return{remove:function(){c.forEach(g,function(a){a.remove()})}}}};return f})},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(c,k,e){k.mixin(e,{hasWaiRole:function(b,a){var d=this.getWaiRole(b);return a?-1<d.indexOf(a):0<d.length},getWaiRole:function(b){return k.trim((c.get(b,"role")||"").replace("wairole:",""))},setWaiRole:function(b,a){c.set(b,"role",a)},removeWaiRole:function(b,a){var d=c.get(b,"role");d&&(a?(d=k.trim((" "+d+" ").replace(" "+
a+" "," ")),c.set(b,"role",d)):b.removeAttribute("role"))},hasWaiState:function(b,a){return b.hasAttribute?b.hasAttribute("aria-"+a):!!b.getAttribute("aria-"+a)},getWaiState:function(b,a){return b.getAttribute("aria-"+a)||""},setWaiState:function(b,a,d){b.setAttribute("aria-"+a,d)},removeWaiState:function(b,a){b.removeAttribute("aria-"+a)}});return e})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(c,k,e,b){e(function(){k("highcontrast")&&
c.add(b.body(),"dijit_a11y")});return k})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(c,k,e,b,a,d,f){a.add("highcontrast",function(){var d=f.doc.createElement("div");try{d.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(k.blankGif||c.toUrl("./resources/blank.gif"))+'");';f.body().appendChild(d);var e=b.getComputedStyle(d),l=e.backgroundImage;
return e.borderTopColor==e.borderRightColor||l&&("none"==l||"url(invalid-url:)"==l)}catch(h){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+h.toString()),!1}finally{8>=a("ie")?d.outerHTML="":f.body().removeChild(d)}});d(function(){a("highcontrast")&&e.add(f.body(),"dj_a11y")});return a})},"dijit/_base/window":function(){define(["dojo/window","../main"],function(c,k){k.getDocumentWindow=function(e){return c.get(e)}})},"dijit/_WidgetBase":function(){define("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 dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),
function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p,u,x,y,w,A,z,v){function F(a){return function(b){g[b?"set":"remove"](this.domNode,a,b);this._set(a,b)}}n.add("dijit-legacy-requires",!t.isAsync);n.add("dojo-bidi",!1);n("dijit-legacy-requires")&&u(0,function(){c(["dijit/_base/manager"])});var E={};b=d("dijit._WidgetBase",[x,A],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:F("lang"),dir:"",_setDirAttr:F("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",
baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",a)},attributeMap:{},_blankGif:b.blankGif||c.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,d=a._setterAttrs=[],a=a._onMap={},c;for(c in b.attributeMap)d.push(c);for(c in b)/^on/.test(c)&&(a[c.substring(2).toLowerCase()]=c),/^_set[A-Z](.*)Attr$/.test(c)&&(c=c.charAt(4).toLowerCase()+
c.substr(5,c.length-9),b.attributeMap&&c in b.attributeMap||d.push(c))}},postscript:function(a,b){this.create(a,b)},create:function(a,b){this._introspect();this.srcNodeRef=f.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,m.mixin(this,a));this.postMixInProperties();this.id||(this.id=v.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=
this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=w.body(this.ownerDocument);v.add(this);this.buildRendering();var d;if(this.domNode){this._applyAttributes();var c=this.srcNodeRef;c&&c.parentNode&&this.domNode!==c&&(c.parentNode.replaceChild(this.domNode,c),d=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();d&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);
k.forEach(this.constructor._setterAttrs,function(b){if(!(b in a)){var d=this._get(b);d&&this.set(b,d)}},this);for(b in a)this.set(b,a[b])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(k.map(a,function(a){return a+"Rtl"})));q.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=
!0,k.forEach(this.getChildren(),function(a){a._started||a._destroyed||!m.isFunction(a.startup)||(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a)}this._beingDestroyed=!0;this.uninitialize();k.forEach(this._connects,m.hitch(this,"disconnect"));k.forEach(this._supportingWidgets,b);this.domNode&&k.forEach(v.findWidgets(this.domNode,
this.containerNode),b);this.destroyRendering(a);v.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?g.remove(this.domNode,"widgetId"):l.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||l.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){k.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=
this.domNode;m.isObject(a)?r.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,b,d){d=3<=arguments.length?d:this.attributeMap[a];k.forEach(m.isArray(d)?d:[d],function(d){var c=this[d.node||d||"domNode"];switch(d.type||"attribute"){case "attribute":m.isFunction(b)&&(b=m.hitch(this,b));d=d.attribute?d.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;c.tagName?g.set(c,d,b):c.set(d,b);break;case "innerText":c.innerHTML="";c.appendChild(this.ownerDocument.createTextNode(b));
break;case "innerHTML":c.innerHTML=b;break;case "class":q.replace(c,b,this[a]);break;case "toggleClass":q.toggle(c,d.className||a,b)}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);var c=this[d.s];if(m.isFunction(c))var f=c.apply(this,Array.prototype.slice.call(arguments,1));else{var c=this.focusNode&&!m.isFunction(this.focusNode)?"focusNode":
"domNode",e=this[c]&&this[c].tagName,g;if((g=e)&&!(g=E[e])){g=this[c];var h={},p;for(p in g)h[p.toLowerCase()]=!0;g=E[e]=h}p=g;d=a in this.attributeMap?this.attributeMap[a]:d.s in this?this[d.s]:p&&d.l in p&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?c:null;null!=d&&this._attrToDom(a,b,d);this._set(a,b)}return f||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var d=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});
return b[a]={n:a+"Node",s:"_set"+d+"Attr",g:"_get"+d+"Attr",l:d.toLowerCase()}},_set:function(a,b){var d=this[a];this[a]=b;!this._created||d===b||d!==d&&b!==b||(this._watchCallbacks&&this._watchCallbacks(a,d,b),this.emit("attrmodified-"+a,{detail:{prevValue:d,newValue:b}}))},_get:function(a){return this[a]},emit:function(a,b,d){b=b||{};void 0===b.bubbles&&(b.bubbles=!0);void 0===b.cancelable&&(b.cancelable=!0);b.detail||(b.detail={});b.detail.widget=this;var c,f=this["on"+a];f&&(c=f.apply(this,d?
d:[b]));this._started&&!this._beingDestroyed&&p.emit(this.domNode,a.toLowerCase(),b);return c},on:function(a,b){var d=this._onMap(a);return d?e.after(this,d,b,!0):this.own(p(this.domNode,a,b))[0]},_onMap:function(a){var b=this.constructor,d=b._onMap;if(!d){var d=b._onMap={},c;for(c in b.prototype)/^on/.test(c)&&(d[c.replace(/^on/,"").toLowerCase()]=c)}return d["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?
v.findWidgets(this.containerNode):[]},getParent:function(){return v.getEnclosingWidget(this.domNode.parentNode)},connect:function(b,d,c){return this.own(a.connect(b,d,this,c))[0]},disconnect:function(a){a.remove()},subscribe:function(a,b){return this.own(y.subscribe(a,m.hitch(this,b)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():h.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=r.get(this.domNode,"display")},
placeAt:function(a,b){var d=!a.tagName&&v.byId(a);!d||!d.addChild||b&&"number"!==typeof b?(d=d&&"domNode"in d?d.containerNode&&!/after|before|replace/.test(b||"")?d.containerNode:d.domNode:f.byId(a,this.ownerDocument),l.place(this.domNode,d,b),!this._started&&(this.getParent()||{})._started&&this.startup()):d.addChild(this,b);return this},defer:function(a,b){var d=setTimeout(m.hitch(this,function(){d&&(d=null,this._destroyed||m.hitch(this,a)())}),b||0);return{remove:function(){d&&(clearTimeout(d),
d=null);return null}}}});n("dojo-bidi")&&b.extend(z);return b})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(c,k,e){return e("dijit.Destroyable",null,{destroy:function(b){this._destroyed=!0},own:function(){var b=["destroyRecursive","destroy","remove"];c.forEach(arguments,function(a){function d(){e.remove();c.forEach(q,function(a){a.remove()})}var f,e=k.before(this,"destroy",function(b){a[f](b)}),q=[];a.then?(f="cancel",a.then(d,d)):c.forEach(b,
function(b){"function"===typeof a[b]&&(f||(f=b),q.push(k.after(a,b,d,!0)))})},this);return arguments}})})},"dojox/mobile":function(){define([".","dojo/_base/lang","dojox/mobile/_base"],function(c,k,e){k.getObject("mobile",!0,c);return c.mobile})},"dojox/mobile/_base":function(){define("./common ./View ./Heading ./RoundRect ./RoundRectCategory ./EdgeToEdgeCategory ./RoundRectList ./EdgeToEdgeList ./ListItem ./Container ./Pane ./Switch ./ToolBarButton ./ProgressIndicator".split(" "),function(c,k,e,
b,a,d,f,g,q,l,h,r){return c})},"dojox/mobile/common":function(){define("dojo/_base/array dojo/_base/config dojo/_base/connect dojo/_base/lang dojo/_base/window dojo/_base/kernel dojo/dom dojo/dom-class dojo/dom-construct dojo/domReady dojo/ready dojo/touch dijit/registry ./sniff ./uacss".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t){var m=b.getObject("dojox.mobile",!0);a.doc.dojoClick=!0;t("touch")&&(t.add("clicks-prevented",!(4.1<=t("android")||10===t("ie")||!t("ie")&&6<t("trident"))),t("clicks-prevented")&&
(m._sendClick=function(b,d){for(var c=b;c;c=c.parentNode)if(c.dojoClick)return;c=a.doc.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,a.global,1,d.screenX,d.screenY,d.clientX,d.clientY);b.dispatchEvent(c)}));m.getScreenSize=function(){return{h:a.global.innerHeight||a.doc.documentElement.clientHeight,w:a.global.innerWidth||a.doc.documentElement.clientWidth}};m.updateOrient=function(){var b=m.getScreenSize();g.replace(a.doc.documentElement,b.h>b.w?"dj_portrait":"dj_landscape",b.h>b.w?"dj_landscape":
"dj_portrait")};m.updateOrient();m.tabletSize=500;m.detectScreenSize=function(b){var d=m.getScreenSize(),c=Math.min(d.w,d.h),f,h;c>=m.tabletSize&&(b||!this._sz||this._sz<m.tabletSize)?(f="phone",h="tablet"):c<m.tabletSize&&(b||!this._sz||this._sz>=m.tabletSize)&&(f="tablet",h="phone");h&&(g.replace(a.doc.documentElement,"dj_"+h,"dj_"+f),e.publish("/dojox/mobile/screenSize/"+h,[d]));this._sz=c};m.detectScreenSize();m.hideAddressBarWait="number"===typeof k.mblHideAddressBarWait?k.mblHideAddressBarWait:
1500;m.hide_1=function(){scrollTo(0,1);m._hidingTimer=0==m._hidingTimer?200:2*m._hidingTimer;setTimeout(function(){m.isAddressBarHidden()||m._hidingTimer>m.hideAddressBarWait?(m.resizeAll(),m._hiding=!1):setTimeout(m.hide_1,m._hidingTimer)},50)};m.hideAddressBar=function(b){m.disableHideAddressBar||m._hiding||(m._hiding=!0,m._hidingTimer=t("ios")?200:0,b=screen.availHeight,t("android")&&(b=outerHeight/devicePixelRatio,0==b&&(m._hiding=!1,setTimeout(function(){m.hideAddressBar()},200)),b<=innerHeight&&
(b=outerHeight),3>t("android")&&(a.doc.documentElement.style.overflow=a.body().style.overflow="visible")),a.body().offsetHeight<b&&(a.body().style.minHeight=b+"px",m._resetMinHeight=!0),setTimeout(m.hide_1,m._hidingTimer))};m.isAddressBarHidden=function(){return 1===pageYOffset};m.resizeAll=function(b,d){if(!m.disableResizeAll){e.publish("/dojox/mobile/resizeAll",[b,d]);e.publish("/dojox/mobile/beforeResizeAll",[b,d]);m._resetMinHeight&&(a.body().style.minHeight=m.getScreenSize().h+"px");m.updateOrient();
m.detectScreenSize();var f=function(a){var b=a.getParent&&a.getParent();return!(b&&b.resize||!a.resize)},g=function(a){c.forEach(a.getChildren(),function(a){f(a)&&a.resize();g(a)})};d?(d.resize&&d.resize(),g(d)):c.forEach(c.filter(n.toArray(),f),function(a){a.resize()});e.publish("/dojox/mobile/afterResizeAll",[b,d])}};m.openWindow=function(b,d){a.global.open(b,d||"_blank")};m._detectWindowsTheme=function(){navigator.userAgent.match(/IEMobile\/10\.0/)&&q.create("style",{innerHTML:"@-ms-viewport {width: auto !important}"},
a.doc.head);var b=function(){g.add(a.doc.documentElement,"windows_theme");d.experimental("Dojo Mobile Windows theme","Behavior and appearance of the Windows theme are experimental.")},c=t("windows-theme");if(void 0!==c)c&&b();else{for(var f,e=function(a){return a&&-1!==a.indexOf("/windows/")?(t.add("windows-theme",!0),b(),!0):!1},h=a.doc.styleSheets,c=0;c<h.length;c++)if(!h[c].href){var m=h[c].cssRules||h[c].imports;if(m)for(f=0;f<m.length;f++)if(e(m[f].href))return}f=a.doc.getElementsByTagName("link");
for(c=0;c<f.length&&!e(f[c].href);c++);}};!1!==k.mblApplyPageStyles&&g.add(a.doc.documentElement,"mobile");t("chrome")&&g.add(a.doc.documentElement,"dj_chrome");if(a.global._no_dojo_dm){b=a.global._no_dojo_dm;for(var p in b)m[p]=b[p];m.deviceTheme.setDm(m)}t.add("mblAndroidWorkaround",!1!==k.mblAndroidWorkaround&&3>t("android"),void 0,!0);t.add("mblAndroid3Workaround",!1!==k.mblAndroid3Workaround&&3<=t("android"),void 0,!0);m._detectWindowsTheme();m.setSelectable=function(a,b){var d,c;a=f.byId(a);
if(9>=t("ie"))if(d=a.getElementsByTagName("*"),c=d.length,b)for(a.removeAttribute("unselectable");c--;)d[c].removeAttribute("unselectable");else for(a.setAttribute("unselectable","on");c--;)"INPUT"!==d[c].tagName&&d[c].setAttribute("unselectable","on");else g.toggle(a,"unselectable",!b)};var u=t("pointer-events")?"touchAction":t("MSPointer")?"msTouchAction":null;m._setTouchAction=u?function(a,b){a.style[u]=b}:function(){};l(function(){!1!==k.mblApplyPageStyles&&g.add(a.body(),"mblBackground")});h(function(){m.detectScreenSize(!0);
!1!==k.mblAndroidWorkaroundButtonStyle&&t("android")&&q.create("style",{innerHTML:"BUTTON,INPUT[type\x3d'button'],INPUT[type\x3d'submit'],INPUT[type\x3d'reset'],INPUT[type\x3d'file']::-webkit-file-upload-button{-webkit-appearance:none;} audio::-webkit-media-controls-play-button,video::-webkit-media-controls-play-button{-webkit-appearance:media-play-button;} video::-webkit-media-controls-fullscreen-button{-webkit-appearance:media-fullscreen-button;}"},a.doc.head,"first");t("mblAndroidWorkaround")&&
q.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},a.doc.head,"last");var b=m.resizeAll,d=-1!=navigator.appVersion.indexOf("Mobile")&&!(7<=t("ios"));if(!1!==k.mblHideAddressBar&&d||!0===k.mblForceHideAddressBar)m.hideAddressBar(),!0===k.mblAlwaysHideAddressBar&&(b=m.hideAddressBar);var c=6<=t("ios");if((t("android")||c)&&void 0!==a.global.onorientationchange){var f=b,g,h,p;c?(h=a.doc.documentElement.clientWidth,p=a.doc.documentElement.clientHeight):
(b=function(a){var b=e.connect(null,"onresize",null,function(a){e.disconnect(b);f(a)})},g=m.getScreenSize());e.connect(null,"onresize",null,function(b){if(c){var d=a.doc.documentElement.clientWidth,e=a.doc.documentElement.clientHeight;d==h&&e!=p&&f(b);h=d;p=e}else d=m.getScreenSize(),d.w==g.w&&100<=Math.abs(d.h-g.h)&&f(b),g=d})}e.connect(null,void 0!==a.global.onorientationchange?"onorientationchange":"onresize",null,b);a.body().style.visibility="visible"});return m})},"dojox/mobile/sniff":function(){define(["dojo/_base/kernel",
"dojo/sniff"],function(c,k){c.deprecated("dojox/mobile/sniff","Use dojo/sniff instead","2.0");k.add("iphone",k("ios"));return k})},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(c,k,e,b){e=e.doc.documentElement;e.className=k.trim(e.className+" "+[b("bb")?"dj_bb":"",b("android")?"dj_android":"",b("ios")?"dj_ios":"",6<=b("ios")?"dj_ios6":"",b("ios")?"dj_iphone":"",b("ipod")?"dj_ipod":"",b("ipad")?"dj_ipad":"",b("ie")?"dj_ie":""].join(" ").replace(/ +/g,
" "));return c})},"dojox/mobile/View":function(){define("dojo/_base/array dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/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 ./_css3".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p,u,x,y,w,A,z){a.getObject("dojox.mobile",!0);return b("dojox.mobile.View",
[u,p,m],{selected:!1,keepScrollPos:!0,tag:"div",baseClass:"mblView",constructor:function(a,b){b&&(q.byId(b).style.visibility="hidden")},destroy:function(){A.remove(this.id);this.inherited(arguments)},buildRendering:function(){this.templateString||(this.domNode=this.containerNode=this.srcNodeRef||h.create(this.tag));this._animEndHandle=this.connect(this.domNode,z.name("animationEnd"),"onAnimationEnd");this._animStartHandle=this.connect(this.domNode,z.name("animationStart"),"onAnimationStart");k.mblCSS3Transition||
(this._transEndHandle=this.connect(this.domNode,z.name("transitionEnd"),"onAnimationEnd"));d("mblAndroid3Workaround")&&n.set(this.domNode,z.name("transformStyle"),"preserve-3d");A.add(this);this.inherited(arguments)},startup:function(){if(!this._started){if(void 0===this._visible){var a=this.getSiblingViews(),b=location.hash&&location.hash.substring(1).split(/,/),d,f,g;c.forEach(a,function(a,e){-1!==c.indexOf(b,a.id)&&(d=a);0==e&&(g=a);a.selected&&(f=a);a._visible=!1},this);(d||f||g)._visible=!0}this._visible&&
(this.show(!0,!0),this.defer(function(){this.onStartView();e.publish("/dojox/mobile/startView",[this])}));"hidden"===this.domNode.style.visibility&&(this.domNode.style.visibility="inherit");this.inherited(arguments);(a=this.getParent())&&a.resize||this.resize();this._visible||this.hide()}},resize:function(){c.forEach(this.getChildren(),function(a){a.resize&&a.resize()})},onStartView:function(){},onBeforeTransitionIn:function(a,b,d,c,f){},onAfterTransitionIn:function(a,b,d,c,f){},onBeforeTransitionOut:function(a,
b,d,c,f){},onAfterTransitionOut:function(a,b,d,c,f){},_clearClasses:function(b){if(b){var d=[];c.forEach(a.trim(b.className||"").split(/\s+/),function(a){(a.match(/^mbl\w*View$/)||-1===a.indexOf("mbl"))&&d.push(a)},this);b.className=d.join(" ")}},_fixViewState:function(a){for(var b=this.domNode.parentNode.childNodes,d=0;d<b.length;d++){var c=b[d];1===c.nodeType&&l.contains(c,"mblView")&&this._clearClasses(c)}this._clearClasses(a);if(a=t.byNode(a))a._inProgress=!1},convertToId:function(a){return"string"==
typeof a?a.replace(/^#?([^&?]+).*/,"$1"):a},_isBookmarkable:function(a){return a.moveTo&&(k.mblForceBookmarkable||"#"===a.moveTo.charAt(0))&&!a.hashchange},performTransition:function(b,c,g,h,m){if(!this._inProgress){this._inProgress=!0;var p,u;if(b&&"object"===typeof b)p=b,u=c;else{p={moveTo:b,transitionDir:c,transition:g,context:h,method:m};u=[];for(var r=5;r<arguments.length;r++)u.push(arguments[r])}this._detail=p;this._optArgs=u;this._arguments=[p.moveTo,p.transitionDir,p.transition,p.context,
p.method];if("#"!==p.moveTo){p.moveTo?u=this.convertToId(p.moveTo):(this._dummyNode||(this._dummyNode=f.doc.createElement("div"),f.body().appendChild(this._dummyNode)),u=this._dummyNode);this.addTransitionInfo&&"string"==typeof p.moveTo&&this._isBookmarkable(p)&&this.addTransitionInfo(this.id,p.moveTo,{transitionDir:p.transitionDir,transition:p.transition});var r=this.domNode,x=r.offsetTop;if(u=this.toNode=q.byId(u)){u.style.visibility="hidden";u.style.display="";this._fixViewState(u);var w=t.byNode(u);
if(w){if(k.mblAlwaysResizeOnTransition||!w._resized)y.resizeAll(null,w),w._resized=!0;p.transition&&"none"!=p.transition&&w._addTransitionPaddingTop(x);w.load&&w.load();w.movedFrom=r.id}d("mblAndroidWorkaround")&&!k.mblCSS3Transition&&p.transition&&"none"!=p.transition&&(n.set(u,z.name("transformStyle"),"preserve-3d"),n.set(r,z.name("transformStyle"),"preserve-3d"),l.add(u,"mblAndroidWorkaround"));this.onBeforeTransitionOut.apply(this,this._arguments);e.publish("/dojox/mobile/beforeTransitionOut",
[this].concat(a._toArray(this._arguments)));if(w){if(this.keepScrollPos&&!this.getParent()){x=f.body().scrollTop||f.doc.documentElement.scrollTop||f.global.pageYOffset||0;r._scrollTop=x;var v=1==p.transitionDir?0:u._scrollTop||0;u.style.top="0px";if(1<x||0!==v)r.style.top=v-x+"px",7<=d("ios")||!1===k.mblHideAddressBar||this.defer(function(){f.global.scrollTo(0,v||1)})}else u.style.top="0px";w.onBeforeTransitionIn.apply(w,this._arguments);e.publish("/dojox/mobile/beforeTransitionIn",[w].concat(a._toArray(this._arguments)))}u.style.display=
"none";u.style.visibility="inherit";y.fromView=this;y.toView=w;this._doTransition(r,u,p.transition,p.transitionDir)}else console.log("dojox/mobile/View.performTransition: destination view not found: "+p.moveTo)}}},_addTransitionPaddingTop:function(a){this.containerNode.style.paddingTop=a+"px"},_removeTransitionPaddingTop:function(){this.containerNode.style.paddingTop=""},_toCls:function(a){return"mbl"+a.charAt(0).toUpperCase()+a.substring(1)},_doTransition:function(b,c,e,h){var m=-1==h?" mblReverse":
"";c.style.display="";if(e&&"none"!=e)if(k.mblCSS3Transition)g.when(w,a.hitch(this,function(d){var f=n.get(c,"position");n.set(c,"position","absolute");g.when(d(b,c,{transition:e,reverse:-1===h?!0:!1}),a.hitch(this,function(){n.set(c,"position",f);c.style.paddingTop="";this.invokeCallback()}))}));else{-1!=e.indexOf("cube")&&(d("ipad")?n.set(c.parentNode,{webkitPerspective:1600}):d("ios")&&n.set(c.parentNode,{webkitPerspective:800}));var p=this._toCls(e);if(d("mblAndroidWorkaround")){var u=this;u.defer(function(){l.add(b,
p+" mblOut"+m);l.add(c,p+" mblIn"+m);l.remove(c,"mblAndroidWorkaround");u.defer(function(){l.add(b,"mblTransition");l.add(c,"mblTransition")},30)},70)}else l.add(b,p+" mblOut"+m),l.add(c,p+" mblIn"+m),this.defer(function(){l.add(b,"mblTransition");l.add(c,"mblTransition")},100);var t="50% 50%",q="50% 50%",x;-1!=e.indexOf("swirl")||-1!=e.indexOf("zoom")?(t=this.keepScrollPos&&!this.getParent()?f.body().scrollTop||f.doc.documentElement.scrollTop||f.global.pageYOffset||0:-r.position(b,!0).y,x=f.global.innerHeight/
2+t,t="50% "+x+"px",q="50% "+x+"px"):-1!=e.indexOf("scale")&&(t=r.position(b,!0),q=(void 0!==this.clickedPosX?this.clickedPosX:f.global.innerWidth/2)-t.x,t=this.keepScrollPos&&!this.getParent()?f.body().scrollTop||f.doc.documentElement.scrollTop||f.global.pageYOffset||0:-t.y,x=(void 0!==this.clickedPosY?this.clickedPosY:f.global.innerHeight/2)+t,t=q+"px "+x+"px",q=q+"px "+x+"px");n.set(b,z.add({},{transformOrigin:t}));n.set(c,z.add({},{transformOrigin:q}))}else this.domNode.style.display="none",this.invokeCallback()},
onAnimationStart:function(a){},onAnimationEnd:function(a){var b=a.animationName||a.target.className;if(-1!==b.indexOf("Out")||-1!==b.indexOf("In")||-1!==b.indexOf("Shrink")){var c=!1;l.contains(this.domNode,"mblOut")?(c=!0,this.domNode.style.display="none",l.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"])):this._removeTransitionPaddingTop();n.set(this.domNode,z.add({},{transformOrigin:""}));-1!==b.indexOf("Shrink")&&(a=a.target,a.style.display="none",l.remove(a,
"mblCloseContent"),(a=A.getEnclosingScrollable(this.domNode))&&a.onTouchEnd());c&&this.invokeCallback();this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=void 0;-1!==b.indexOf("Cube")&&-1!==b.indexOf("In")&&d("ios")&&(this.domNode.parentNode.style[z.name("perspective")]="")}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);e.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var a=t.byNode(this.toNode);a&&(a.onAfterTransitionIn.apply(a,
this._arguments),e.publish("/dojox/mobile/afterTransitionIn",[a].concat(this._arguments)),a.movedFrom=void 0,this.setFragIds&&this._isBookmarkable(this._detail)&&this.setFragIds(a));d("mblAndroidWorkaround")&&this.defer(function(){a&&n.set(this.toNode,z.name("transformStyle"),"");n.set(this.domNode,z.name("transformStyle"),"")});var b=this._detail.context,c=this._detail.method;if(b||c)c||(c=b,b=null),b=b||f.global,"string"==typeof c?b[c].apply(b,this._optArgs):"function"==typeof c&&c.apply(b,this._optArgs);
this._detail=this._optArgs=this._arguments=void 0;this._inProgress=!1},isVisible:function(a){if(a){for(a=this.domNode;"BODY"!==a.tagName;a=a.parentNode)if("none"===n.get(a,"display"))return!1;return!0}return"none"!==n.get(this.domNode,"display")},getShowingView:function(){for(var a=this.domNode.parentNode.childNodes,b=0;b<a.length;b++){var d=a[b];if(1===d.nodeType&&l.contains(d,"mblView")&&"none"!==d.style.display)return t.byNode(d)}return null},getSiblingViews:function(){return this.domNode.parentNode?
c.map(c.filter(this.domNode.parentNode.childNodes,function(a){return 1===a.nodeType&&l.contains(a,"mblView")}),function(a){return t.byNode(a)}):[this]},show:function(a,b){var d=this.getShowingView();a||(d&&(d.onBeforeTransitionOut(d.id),e.publish("/dojox/mobile/beforeTransitionOut",[d,d.id])),this.onBeforeTransitionIn(this.id),e.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]));b?this.domNode.style.display="":c.forEach(this.getSiblingViews(),function(a){a.domNode.style.display=a===this?
"":"none"},this);this.load&&this.load();a||(d&&(d.onAfterTransitionOut(d.id),e.publish("/dojox/mobile/afterTransitionOut",[d,d.id])),this.onAfterTransitionIn(this.id),e.publish("/dojox/mobile/afterTransitionIn",[this,this.id]))},hide:function(){this.domNode.style.display="none"}})})},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(c,k){return c("dijit._Contained",null,{_getSibling:function(c){var b=this.getParent();return b&&b._getSiblingOfChild&&b._getSiblingOfChild(this,
"previous"==c?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var c=this.getParent();return c&&c.getIndexOfChild?c.getIndexOfChild(this):-1}})})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(c,k,e,b){return k("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||
(this.containerNode=this.domNode)},addChild:function(a,b){var d=this.containerNode;if(0<b){for(d=d.firstChild;0<b;)1==d.nodeType&&b--,d=d.nextSibling;d?b="before":(d=this.containerNode,b="last")}e.place(a.domNode,d,b);this._started&&!a._started&&a.startup()},removeChild:function(a){"number"==typeof a&&(a=this.getChildren()[a]);a&&(a=a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return 0<this.getChildren().length},_getSiblingOfChild:function(a,b){var d=this.getChildren(),
e=c.indexOf(d,a);return d[e+b]},getIndexOfChild:function(a){return c.indexOf(this.getChildren(),a)}})})},"dojox/mobile/ViewController":function(){define("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".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p){var u=b("dojox.mobile.ViewController",
null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};r(a.hitch(this,function(){h(d.body(),"startTransition",a.hitch(this,"onStartTransition"))}))},findTransitionViews:function(a){if(!a)return[];a.match(/^#?([^&?]+)(.*)/);a=RegExp.$2;var b=n.byId(RegExp.$1);if(!b)return[];for(var d=b.getParent();d;d=d.getParent())if(d.isVisible&&!d.isVisible()){var c=b.getShowingView();
c&&c.id!==b.id&&b.show();b=d}return[b.getShowingView(),b,a]},openExternalView:function(b,c){var e=new f,g=this.viewMap[b.url];if(g)return b.moveTo=g,b.noTransition?n.byId(g).hide():(new m(d.body(),b)).dispatch(),e.resolve(!0),e;for(var h=null,g=c.childNodes.length-1;0<=g;g--){var p=c.childNodes[g];if(1===p.nodeType&&"bottom"===(p.getAttribute("fixed")||p.getAttribute("data-mobile-fixed")||n.byNode(p)&&n.byNode(p).fixed)){h=p;break}}require([b.dataHandlerClass||this.dataHandlerClass,b.dataSourceClass||
this.dataSourceClass,b.fileTypeMapClass||this.fileTypeMapClass],a.hitch(this,function(f,g,p){f=new f(new g(b.data||b.url),c,h);p=b.contentType||p.getContentType(b.url)||"html";f.processData(p,a.hitch(this,function(a){a?(this.viewMap[b.url]=b.moveTo=a,b.noTransition?n.byId(a).hide():(new m(d.body(),b)).dispatch(),e.resolve(!0)):e.reject("Failed to load "+b.url)}))}));return e},onStartTransition:function(a){a.preventDefault();if(a.detail){var b=a.detail;if(b.moveTo||b.href||b.url||b.scene)if(b.url&&
!b.moveTo){var c=b.urlTarget,f=n.byId(c),c=f&&f.containerNode||g.byId(c);c||(c=(f=p.getEnclosingView(a.target))&&f.domNode.parentNode||d.body());(a=n.getEnclosingWidget(a.target))&&a.callback&&(b.context=a,b.method=a.callback);this.openExternalView(b,c)}else if(b.href)if(b.hrefTarget&&"_self"!=b.hrefTarget)d.global.open(b.href,b.hrefTarget);else{for(f=p.getEnclosingView(a.target);f;f=p.getParentView(f))c=f;c&&c.performTransition(null,b.transitionDir,b.transition,a.target,function(){location.href=
b.href})}else if(b.scene)e.publish("/dojox/mobile/app/pushScene",[b.scene]);else{var h=this.findTransitionViews(b.moveTo),c=h[0],f=h[1],h=h[2];location.hash||b.hashchange||(p.initialView=c);b.moveTo&&f&&(b.moveTo=("#"===b.moveTo.charAt(0)?"#"+f.id:f.id)+h);!c||b.moveTo&&c===n.byId(b.moveTo.replace(/^#?([^&?]+).*/,"$1"))||((a=n.getEnclosingWidget(a.target))&&a.callback&&(b.context=a,b.method=a.callback),c.performTransition(b))}}}});u._instance=new u;u.getInstance=function(){return u._instance};return u})},
"dojox/mobile/ProgressIndicator":function(){define("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 ./_css3 dojo/has!dojo-bidi?dojox/mobile/bidi/ProgressIndicator".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r){var n=k("dojox.mobile.ProgressIndicator",[l,q],{interval:100,size:40,removeOnStop:!0,startSpinning:!1,center:!0,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=
[];this._bars=[]},buildRendering:function(){this.inherited(arguments);this.center&&b.add(this.domNode,"mblProgressIndicatorCenter");this.containerNode=a.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=a.create("div",null,this.containerNode);for(var d=0;12>d;d++){var c=a.create("div",{className:"mblProg mblProg"+d},this.spinnerNode);this._bars.push(c)}this.scale(this.size);this.startSpinning&&this.start()},scale:function(a){var b=a/40;f.set(this.containerNode,h.add({},{transform:"scale("+
b+")",transformOrigin:"0 0"}));d.setMarginBox(this.domNode,{w:a,h:a});d.setMarginBox(this.containerNode,{w:a/b,h:a/b})},start:function(){if(this.imageNode){var a=this.imageNode;a.style.margin=Math.round((this.containerNode.offsetHeight-a.offsetHeight)/2)+"px "+Math.round((this.containerNode.offsetWidth-a.offsetWidth)/2)+"px"}else{var d=0,c=this;this.timer=setInterval(function(){d--;d=0>d?11:d;for(var a=c.colors,f=0;12>f;f++){var e=(d+f)%12;a[e]?c._bars[f].style.backgroundColor=a[e]:b.replace(c._bars[f],
"mblProg"+e+"Color","mblProg"+(11===e?0:e+1)+"Color")}},this.interval)}},stop:function(){this.timer&&clearInterval(this.timer);this.timer=null;this.removeOnStop&&this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode)},setImage:function(b){b?(this.imageNode=a.create("img",{src:b},this.containerNode),this.spinnerNode.style.display="none"):(this.imageNode&&(this.containerNode.removeChild(this.imageNode),this.imageNode=null),this.spinnerNode.style.display="")},destroy:function(){this.inherited(arguments);
this===n._instance&&(n._instance=null)}}),n=g("dojo-bidi")?k("dojox.mobile.ProgressIndicator",[n,r]):n;n._instance=null;n.getInstance=function(a){n._instance||(n._instance=new n(a));return n._instance};return n})},"dojox/mobile/_css3":function(){define(["dojo/_base/window","dojo/_base/array","dojo/has"],function(c,k,e){var b=[],a=[],d=c.doc.createElement("div").style,f=["webkit"];e.add("css3-animations",function(a,b,d){var c=d.style;return void 0!==c.animation&&void 0!==c.transition||k.some(f,function(a){return void 0!==
c[a+"Animation"]&&void 0!==c[a+"Transition"]})});e.add("t17164",function(a,b,d){return void 0!==d.style.transition&&!("TransitionEvent"in window)});var g={name:function(c,g){var h=(g?a:b)[c];if(!h){if(/End|Start/.test(c))var l=c.length-(c.match(/End/)?3:5),q=c.substr(0,l),t=this.name(q),h=t==q?c.toLowerCase():t+c.substr(l);else if("keyframes"==c)l=this.name("animation",g),h="animation"==l?c:g?l.replace(/animation/,"keyframes"):l.replace(/Animation/,"Keyframes");else{var m=g?c.replace(/-(.)/g,function(a,
b){return b.toUpperCase()}):c;void 0===d[m]||e("t17164")?(m=m.charAt(0).toUpperCase()+m.slice(1),k.some(f,function(a){void 0!==d[a+m]&&(h=g?"-"+a+"-"+c:a+m)})):h=c}h||(h=c);(g?a:b)[c]=h}return h},add:function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[g.name(d)]=b[d]);return a}};return g})},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/on"],function(c,k){return c("dojox.mobile.TransitionEvent",null,{constructor:function(c,b,a){this.transitionOptions=b;this.target=c;
this.triggerEvent=a||null},dispatch:function(){k.emit(this.target,"startTransition",{bubbles:!0,cancelable:!0,detail:this.transitionOptions,triggerEvent:this.triggerEvent})}})})},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(c,k,e){return{length:0,hash:{},initialView:null,add:function(b){this.hash[b.id]=b;this.length++},remove:function(b){this.hash[b]&&(delete this.hash[b],this.length--)},getViews:function(){var b=[],a;for(a in this.hash)b.push(this.hash[a]);
return b},getParentView:function(b){for(b=b.getParent();b;b=b.getParent())if(k.contains(b.domNode,"mblView"))return b;return null},getChildViews:function(b){return c.filter(this.getViews(),function(a){return this.getParentView(a)===b},this)},getEnclosingView:function(b){for(;b&&"BODY"!==b.tagName;b=b.parentNode)if(1===b.nodeType&&k.contains(b,"mblView"))return e.byNode(b);return null},getEnclosingScrollable:function(b){for(b=e.getEnclosingWidget(b);b;b=b.getParent())if(b.scrollableParams&&b._v)return b;
return null}}})},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(c,k){if(k.mblCSS3Transition){var e=new c;require([k.mblCSS3Transition],function(b){e.resolve(b)});return e}return null})},"dojox/mobile/Heading":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/_base/window dojo/dom-class dojo/dom-construct dojo/dom-style dojo/dom-attr dijit/registry ./common dijit/_Contained dijit/_Container dijit/_WidgetBase ./ProgressIndicator ./ToolBarButton ./View dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/Heading".split(" "),
function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p,u,x,y){b.getObject("dojox.mobile",!0);k=e(x("dojo-bidi")?"dojox.mobile.NonBidiHeading":"dojox.mobile.Heading",[t,n,r],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:!1,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){this.templateString||(this.domNode=this.containerNode=this.srcNodeRef||a.doc.createElement(this.tag));this.inherited(arguments);this.templateString||(this.label||c.forEach(this.domNode.childNodes,
function(a){if(3==a.nodeType){var d=b.trim(a.nodeValue);d&&(this.label=d,this.labelNode=f.create("span",{innerHTML:d},a,"replace"))}},this),this.labelNode||(this.labelNode=f.create("span",null,this.domNode)),this.labelNode.className="mblHeadingSpanTitle",this.labelDivNode=f.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode));this.labelDivNode&&(q.set(this.labelDivNode,"role","heading"),q.set(this.labelDivNode,"aria-level","1"));h.setSelectable(this.domNode,
!1)},startup:function(){if(!this._started){var a=this.getParent&&this.getParent();if(!a||!a.resize){var b=this;b.defer(function(){b.resize()})}this.inherited(arguments)}},resize:function(){if(this.labelNode){for(var a,b,f=this.containerNode.childNodes,e=f.length-1;0<=e;e--){var h=f[e];1===h.nodeType&&"none"!==g.get(h,"display")&&(b||"right"!==g.get(h,"float")||(b=h),a||"left"!==g.get(h,"float")||(a=h))}!this.labelNodeLen&&this.label&&(this.labelNode.style.display="inline",this.labelNodeLen=this.labelNode.offsetWidth,
this.labelNode.style.display="");f=this.domNode.offsetWidth;d[f-2*Math.max(b?f-b.offsetLeft+5:0,a?a.offsetLeft+a.offsetWidth+5:0)>(this.labelNodeLen||0)?"add":"remove"](this.domNode,"mblHeadingCenterTitle")}c.forEach(this.getChildren(),function(a){a.resize&&a.resize()})},_setBackAttr:function(a){this._set("back",a);this.backButton?this.backButton.set("label",a):(this.backButton=new p({arrow:"left",label:a,moveTo:this.moveTo,back:!this.moveTo&&!this.href,href:this.href,transition:this.transition,transitionDir:-1,
dir:this.isLeftToRight()?"ltr":"rtl"}),this.backButton.placeAt(this.domNode,"first"));this.resize()},_setMoveToAttr:function(a){this._set("moveTo",a);this.backButton&&(this.backButton.set("moveTo",a),this.backButton.set("back",!a&&!this.href))},_setHrefAttr:function(a){this._set("href",a);this.backButton&&(this.backButton.set("href",a),this.backButton.set("back",!this.moveTo&&!a))},_setTransitionAttr:function(a){this._set("transition",a);this.backButton&&this.backButton.set("transition",a)},_setLabelAttr:function(a){this._set("label",
a);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(a):a;delete this.labelNodeLen},_setBusyAttr:function(a){var b=this._prog;a?(b||(b=this._prog=new m({size:30,center:!1}),d.add(b.domNode,this.progStyle)),f.place(b.domNode,this.domNode,"first"),b.start()):b&&b.stop();this._set("busy",a)}});return x("dojo-bidi")?e("dojox.mobile.Heading",[k,y]):k})},"dojox/mobile/ToolBarButton":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/window dojo/dom-class dojo/dom-construct dojo/dom-style dojo/dom-attr ./sniff ./_ItemBase dojo/has!dojo-bidi?dojox/mobile/bidi/ToolBarButton".split(" "),
function(c,k,e,b,a,d,f,g,q,l){e=c(g("dojo-bidi")?"dojox.mobile.NonBidiToolBarButton":"dojox.mobile.ToolBarButton",q,{selected:!1,arrow:"",light:!0,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){!this.label&&this.srcNodeRef&&(this.label=this.srcNodeRef.innerHTML);this.label=k.trim(this.label);this.domNode=this.srcNodeRef&&"SPAN"===this.srcNodeRef.tagName?this.srcNodeRef:a.create("span");
f.set(this.domNode,"role","button");this.inherited(arguments);if(!this.light||this.arrow||this.icon&&this.label){this.domNode.innerHTML="";if("left"===this.arrow||"right"===this.arrow)this.arrowNode=a.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+("left"===this.arrow?"Left":"Right")+"Arrow "+(10>g("ie")?"":this.defaultColor+" "+this.defaultColor+"45")},this.domNode),b.add(this.domNode,"mblToolBarButtonHas"+("left"===this.arrow?"Left":"Right")+"Arrow");this.bodyNode=a.create("span",
{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=a.create("table",{cellPadding:"0",cellSpacing:"0",border:"0",role:"presentation"},this.bodyNode);!this.label&&this.arrow&&(this.tableNode.className="mblToolBarButtonText");var d=this.tableNode.insertRow(-1);this.iconParentNode=d.insertCell(-1);this.labelNode=d.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";this.icon&&"none"!==this.icon&&this.label&&(b.add(this.domNode,
"mblToolBarButtonHasIcon"),b.add(this.bodyNode,"mblToolBarButtonLabeledIcon"));b.add(this.bodyNode,this.defaultColor)}else this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode,b.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"))},startup:function(){this._started||(this.connect(this.domNode,"onkeydown","_onClick"),this.inherited(arguments),this._isOnLine||(this._isOnLine=!0,this.set("icon",void 0!==
this._pendingIcon?this._pendingIcon:this.icon),delete this._pendingIcon))},_onClick:function(a){a&&"keydown"===a.type&&13!==a.keyCode||!1!==this.onClick(a)&&this.defaultClickAction(a)},onClick:function(){},_setLabelAttr:function(a){this.inherited(arguments);b.toggle(this.tableNode,"mblToolBarButtonText",a||this.arrow)},_setSelectedAttr:function(a){this.inherited(arguments);if(a){if(b.replace(this.bodyNode,this.selColor,this.defaultColor),!(10>g("ie"))&&this.arrowNode){var d=this.selColor,c=this.defaultColor;
b.replace(this.arrowNode,d+" "+d+"45",c+" "+c+"45")}}else b.replace(this.bodyNode,this.defaultColor,this.selColor),10>g("ie")||!this.arrowNode||(d=this.defaultColor,c=this.selColor,b.replace(this.arrowNode,d+" "+d+"45",c+" "+c+"45"));b.toggle(this.domNode,"mblToolBarButtonSelected",a);b.toggle(this.bodyNode,"mblToolBarButtonBodySelected",a)}});return g("dojo-bidi")?c("dojox.mobile.ToolBarButton",[e,l]):e})},"dojox/mobile/_ItemBase":function(){define("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 ./viewRegistry dojo/has!dojo-bidi?dojox/mobile/bidi/_ItemBase".split(" "),
function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m){e=k(n("dojo-bidi")?"dojox.mobile._NonBidiItemBase":"dojox.mobile._ItemBase",[l,q,g],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:!1,url:"",urlTarget:"",back:!1,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:!1,selected:!1,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:!1,_duration:800,_handleClick:!0,buildRendering:function(){this.inherited(arguments);
this._isOnLine=this.inheritParams()},startup:function(){this._started||(this._isOnLine||this.inheritParams(),this._updateHandles(),this.inherited(arguments))},inheritParams:function(){var a=this.getParent();a&&c.forEach(this.paramsToInherit.split(/,/),function(b){if(b.match(/icon/i)){var d=b+"Base",c=b+"Pos";this[b]&&a[d]&&"/"===a[d].charAt(a[d].length-1)&&(this[b]=a[d]+this[b]);this[b]||(this[b]=a[d]);this[c]||(this[c]=a[c])}this[b]||(this[b]=a[b])},this);return!!a},_updateHandles:function(){this._handleClick&&
"touch"===this._selStartMethod?this._onTouchStartHandle||(this._onTouchStartHandle=this.connect(this.domNode,d.press,"_onTouchStart")):this._onTouchStartHandle&&(this.disconnect(this._onTouchStartHandle),this._onTouchStartHandle=null)},getTransOpts:function(){var a=this.transitionOptions||{};c.forEach("moveTo href hrefTarget url target urlTarget scene transition transitionDir".split(" "),function(b){a[b]=a[b]||this[b]},this);return a},userClickAction:function(){},defaultClickAction:function(a){this.handleSelection(a);
!1!==this.userClickAction(a)&&this.makeTransition(a)},handleSelection:function(a){this._delayedSelection&&this.set("selected",!0);this._onTouchEndHandle&&(this.disconnect(this._onTouchEndHandle),this._onTouchEndHandle=null);a=this.getParent();this.toggle?this.set("selected",!this._currentSel):a&&a.selectOne?this.set("selected",!0):"touch"===this._selEndMethod?this.set("selected",!1):"timer"===this._selEndMethod&&this.defer(function(){this.set("selected",!1)},this._duration)},makeTransition:function(a){if(this.back&&
history)history.back();else if(this.href&&this.hrefTarget&&"_self"!=this.hrefTarget)b.global.open(this.href,this.hrefTarget||"_blank"),this._onNewWindowOpened(a);else{var d=this.getTransOpts(),c=!!(d.moveTo||d.href||d.url||d.target||d.scene);!1!==this._prepareForTransition(a,c?d:null)&&c&&(this.setTransitionPos(a),(new h(this.domNode,d,a)).dispatch())}},_onNewWindowOpened:function(){},_prepareForTransition:function(a,b){},_onTouchStart:function(c){if(!this.getParent().isEditing&&!1!==this.onTouchStart(c)){var f=
t.getEnclosingScrollable(this.domNode);f&&a.contains(f.containerNode,"mblScrollableScrollTo2")||(this._onTouchEndHandle||"touch"!==this._selStartMethod||(this._onTouchMoveHandle=this.connect(b.body(),d.move,"_onTouchMove"),this._onTouchEndHandle=this.connect(b.body(),d.release,"_onTouchEnd")),this.touchStartX=c.touches?c.touches[0].pageX:c.clientX,this.touchStartY=c.touches?c.touches[0].pageY:c.clientY,this._currentSel=this.selected,this._delayedSelection?this._selTimer=this.defer(function(){this.set("selected",
!0)},100):this.set("selected",!0))}},onTouchStart:function(){},_onTouchMove:function(a){var b=a.touches?a.touches[0].pageY:a.clientY;if(4<=Math.abs((a.touches?a.touches[0].pageX:a.clientX)-this.touchStartX)||4<=Math.abs(b-this.touchStartY))this.cancel(),(a=this.getParent())&&a.selectOne?this._prevSel&&this._prevSel.set("selected",!0):this.set("selected",!1)},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=
null},cancel:function(){this._selTimer&&(this._selTimer.remove(),this._selTimer=null);this._disconnect()},_onTouchEnd:function(a){if(this._selTimer||!this._delayedSelection)this.cancel(),this._onClick(a)},setTransitionPos:function(b){for(var d=this;d=d.getParent(),d&&!a.contains(d.domNode,"mblView"););d&&(d.clickedPosX=b.clientX,d.clickedPosY=b.clientY)},transitionTo:function(a,b,d,c){(new h(this.domNode,a&&"object"===typeof a?a:{moveTo:a,href:b,url:d,scene:c,transition:this.transition,transitionDir:this.transitionDir})).dispatch()},
_setIconAttr:function(a){this._isOnLine?(this._set("icon",a),this.iconNode=r.setIcon(a,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position)):this._pendingIcon=a},_setLabelAttr:function(a){this._set("label",a);this.labelNode.innerHTML=this._cv?this._cv(a):a},_setSelectedAttr:function(a){if(a){var b=this.getParent();b&&b.selectOne&&(b=c.filter(b.getChildren(),function(a){return a.selected}),c.forEach(b,function(a){this._prevSel=a;a.set("selected",!1)},this))}this._set("selected",
a)}});return n("dojo-bidi")?k("dojox.mobile._ItemBase",[e,m]):e})},"dojox/mobile/iconUtils":function(){define("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".split(" "),function(c,k,e,b,a,d,f,g,q,l){var h=a.getObject("dojox.mobile",!0);return new function(){this.setupSpriteIcon=function(a,b){if(a&&b){var d=c.map(b.split(/[ ,]/),function(a){return a-0}),e=d[0],g=d[1];q.set(a,{position:"absolute",
clip:"rect("+e+"px "+(d[1]+d[2])+"px "+(d[0]+d[3])+"px "+g+"px)",top:(a.parentNode?q.get(a,"top"):0)-e+"px",left:-g+"px"});f.add(a,"mblSpriteIcon")}};this.createDomButton=function(a,b,c){if(!this._domButtons)if(l("webkit")){var e=function(a,b){var c,f;if(!a){var g={};f=d.doc.styleSheets;for(c=0;c<f.length;c++)f[c]&&e(f[c],g);return g}g=a.cssRules||[];for(c=0;c<g.length;c++)if(f=g[c],f.href&&f.styleSheet)e(f.styleSheet,b);else if(f.selectorText){var h=f.selectorText.split(/,/);for(f=0;f<h.length;f++){var m=
h[f],l=m.split(/>/).length-1;m.match(/(mblDomButton\w+)/)&&(m=RegExp.$1,!b[m]||l>b[m])&&(b[m]=l)}}return b};this._domButtons=e()}else this._domButtons={};var h=a.className,u=c||a;if(h.match(/(mblDomButton\w+)/)&&-1===h.indexOf("/")){var t=RegExp.$1,r=4;h.match(/(mblDomButton\w+_(\d+))/)?r=RegExp.$2-0:void 0!==this._domButtons[t]&&(r=this._domButtons[t]);h=null;l("bb")&&!1!==k.mblBBBoxShadowWorkaround&&(h={style:"-webkit-box-shadow:none"});for(var n=0,A=u;n<r;n++)A=A.firstChild||g.create("div",h,A);
c&&(setTimeout(function(){f.remove(a,t)},0),f.add(c,t))}else if(-1!==h.indexOf("."))g.create("img",{src:h},u);else return null;f.add(u,"mblDomButton");b&&q.set(u,b);return u};this.createIcon=function(a,d,c,m,l,u,k){m=m||"";a&&0===a.indexOf("mblDomButton")?(c?c.className.match(/(mblDomButton\w+)/)&&f.remove(c,RegExp.$1):c=g.create("div",null,u||l,k),c.title=m,f.add(c,a),this.createDomButton(c)):a&&"none"!==a&&(c&&"IMG"===c.nodeName||(c=g.create("img",{alt:m},u||l,k)),c.src=(a||"").replace("${theme}",
h.currentTheme),this.setupSpriteIcon(c,d),d&&l&&(a=d.split(/[ ,]/),q.set(l,{position:"relative",width:a[2]+"px",height:a[3]+"px"}),f.add(l,"mblSpriteIconParent")),e.connect(c,"ondragstart",b,"stop"));return c};this.iconWrapper=!1;this.setIcon=function(a,b,d,c,e,h,l){if(!e||!a&&!d)return null;if(a&&"none"!==a)return this.iconWrapper||0===a.indexOf("mblDomButton")||b?(d&&"IMG"===d.tagName&&(g.destroy(d),d=null),d&&g.empty(d),d||(d=g.create("div",null,h||e,l)),this.createIcon(a,b,null,null,d),c&&(d.title=
c)):(d&&"DIV"===d.tagName&&(g.destroy(d),d=null),d=this.createIcon(a,null,d,c,e,h,l),f.add(d,"mblImageIcon")),f.remove(e,"mblNoIcon"),d;g.destroy(d);f.add(e,"mblNoIcon");return null}}})},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(c,k,e){return c("dojox.mobile.RoundRect",e,{shadow:!1,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);this.shadow&&k.add(this.domNode,"mblShadow")}})})},"dojox/mobile/Container":function(){define(["dojo/_base/declare",
"dijit/_Container","./Pane"],function(c,k,e){return c("dojox.mobile.Container",[e,k],{baseClass:"mblContainer"})})},"dojox/mobile/Pane":function(){define(["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(c,k,e,b){return k("dojox.mobile.Pane",[b,e],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},resize:function(){c.forEach(this.getChildren(),function(a){a.resize&&a.resize()})}})})},
"dojox/mobile/RoundRectCategory":function(){define("dojo/_base/declare dojo/_base/window dojo/dom-construct dijit/_Contained dijit/_WidgetBase dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/RoundRectCategory".split(" "),function(c,k,e,b,a,d,f){k=c(d("dojo-bidi")?"dojox.mobile.NonBidiRoundRectCategory":"dojox.mobile.RoundRectCategory",[a,b],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var a=this.domNode=this.containerNode=this.srcNodeRef||e.create(this.tag);this.inherited(arguments);
this.label||1!==a.childNodes.length||3!==a.firstChild.nodeType||(this.label=a.firstChild.nodeValue)},_setLabelAttr:function(a){this.label=a;this.domNode.innerHTML=this._cv?this._cv(a):a}});return d("dojo-bidi")?c("dojox.mobile.RoundRectCategory",[k,f]):k})},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(c,k){return c("dojox.mobile.EdgeToEdgeCategory",k,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";
this.type&&"long"==this.type&&(this.domNode.className+=" mblEdgeToEdgeCategoryLong")}})})},"dojox/mobile/RoundRectList":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/event dojo/_base/lang dojo/_base/window dojo/dom-construct dojo/dom-attr dijit/_Contained dijit/_Container dijit/_WidgetBase".split(" "),function(c,k,e,b,a,d,f,g,q,l){return k("dojox.mobile.RoundRectList",[l,q,g],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:!1,syncWithViews:!1,editable:!1,tag:"ul",
editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",filterBoxClass:"mblFilteredRoundRectListSearchBox",buildRendering:function(){this.domNode=this.srcNodeRef||d.create(this.tag);this.select&&(f.set(this.domNode,"role","listbox"),"multiple"===this.select&&f.set(this.domNode,"aria-multiselectable","true"));this.inherited(arguments)},postCreate:function(){this.editable&&require([this.editableMixinClass],b.hitch(this,function(a){k.safeMixin(this,new a)}));this.connect(this.domNode,
"onselectstart",e.stop);if(this.syncWithViews){var a=function(a,b,d,f,e,g){(b=c.filter(this.getChildren(),function(b){return b.moveTo==="#"+a.id||b.moveTo===a.id})[0])&&b.set("selected",!0)};this.subscribe("/dojox/mobile/afterTransitionIn",a);this.subscribe("/dojox/mobile/startView",a)}},resize:function(){c.forEach(this.getChildren(),function(a){a.resize&&a.resize()})},onCheckStateChanged:function(){},_setStatefulAttr:function(a){this._set("stateful",a);this.selectOne=a;c.forEach(this.getChildren(),
function(a){a.setArrow&&a.setArrow()})},deselectItem:function(a){a.set("selected",!1)},deselectAll:function(){c.forEach(this.getChildren(),function(a){a.set("selected",!1)})},selectItem:function(a){a.set("selected",!0)}})})},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(c,k){return c("dojox.mobile.EdgeToEdgeList",k,{filterBoxClass:"mblFilteredEdgeToEdgeListSearchBox",buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList"}})})},
"dojox/mobile/ListItem":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-style dojo/dom-attr dijit/registry dijit/_WidgetBase ./iconUtils ./_ItemBase ./ProgressIndicator dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/ListItem".split(" "),function(c,k,e,b,a,d,f,g,q,l,h,r,n,t){h=k(n("dojo-bidi")?"dojox.mobile.NonBidiListItem":"dojox.mobile.ListItem",h,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:!1,noArrow:!1,checked:!1,
arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:!1,rightIconTitle:"",rightIcon2Title:"",header:!1,tag:"li",busy:!1,progStyle:"",layoutOnResize:!1,paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:!0,_selClass:"mblListItemSelected",buildRendering:function(){this._templated=!!this.templateString;
this._templated||(this.domNode=this.containerNode=this.srcNodeRef||a.create(this.tag));this.inherited(arguments);this.selected&&b.add(this.domNode,this._selClass);this.header&&b.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);if(!this._templated){this.labelNode=a.create("div",{className:"mblListItemLabel"});var d=this.srcNodeRef;d&&1===d.childNodes.length&&3===d.firstChild.nodeType&&this.labelNode.appendChild(d.firstChild);this.domNode.appendChild(this.labelNode)}this._layoutChildren=
[]},startup:function(){if(!this._started){var a=this.getParent();this.getTransOpts();this._templated&&!this.labelNode||!this.anchorLabel||(this.labelNode.style.display="inline",this.labelNode.style.cursor="pointer",this.connect(this.labelNode,"onclick","_onClick"),this.onTouchStart=function(a){return a.target!==this.labelNode});this.inherited(arguments);b.contains(this.domNode,"mblVariableHeight")&&(this.variableHeight=!0);this.variableHeight&&(b.add(this.domNode,"mblVariableHeight"),this.defer("layoutVariableHeight"));
this._isOnLine||(this._isOnLine=!0,this.set({icon:void 0!==this._pending_icon?this._pending_icon:this.icon,deleteIcon:void 0!==this._pending_deleteIcon?this._pending_deleteIcon:this.deleteIcon,rightIcon:void 0!==this._pending_rightIcon?this._pending_rightIcon:this.rightIcon,rightIcon2:void 0!==this._pending_rightIcon2?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:void 0!==this._pending_uncheckIcon?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);a&&a.select&&(this.set("checked",void 0!==this._pendingChecked?this._pendingChecked:this.checked),f.set(this.domNode,"role","option"),(this._pendingChecked||this.checked)&&f.set(this.domNode,"aria-selected","true"),delete this._pendingChecked);this.setArrow();this.layoutChildren()}},_updateHandles:function(){var a=this.getParent(),b=this.getTransOpts();b.moveTo||b.href||b.url||this.clickable||a&&a.select?
(this._keydownHandle||(this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick")),this._handleClick=!0):(this._keydownHandle&&(this.disconnect(this._keydownHandle),this._keydownHandle=null),this._handleClick=!1);this.inherited(arguments)},layoutChildren:function(){var a;c.forEach(this.domNode.childNodes,function(d){if(1===d.nodeType){var c=d.getAttribute("layout")||d.getAttribute("data-mobile-layout")||(g.byNode(d)||{}).layout;c&&(b.add(d,"mblListItemLayout"+c.charAt(0).toUpperCase()+
c.substring(1)),this._layoutChildren.push(d),"center"===c&&(a=d))}},this);a&&this.domNode.insertBefore(a,this.domNode.firstChild)},resize:function(){this.layoutOnResize&&this.variableHeight&&this.layoutVariableHeight();if(!this._templated||this.labelNode)this.labelNode.style.display=this.labelNode.firstChild?"block":"inline"},_onTouchStart:function(a){a.target.getAttribute("preventTouch")||a.target.getAttribute("data-mobile-prevent-touch")||(g.getEnclosingWidget(a.target)||{}).preventTouch||this.inherited(arguments)},
_onClick:function(a){if(!(this.getParent().isEditing||a&&"keydown"===a.type&&13!==a.keyCode)&&!1!==this.onClick(a)){var d=this.labelNode;if((this._templated||d)&&this.anchorLabel&&a.currentTarget===d)b.add(d,"mblListItemLabelSelected"),this.defer(function(){b.remove(d,"mblListItemLabelSelected")},this._duration),this.onAnchorLabelClicked(a);else{var c=this.getParent();c.select&&("single"===c.select?this.checked||this.set("checked",!0):"multiple"===c.select&&this.set("checked",!this.checked));this.defaultClickAction(a)}}},
onClick:function(){},onAnchorLabelClicked:function(a){},layoutVariableHeight:function(){var a=this.domNode.offsetHeight;a!==this.domNodeHeight&&(this.domNodeHeight=a,c.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(a){if(a){var b=this.domNode,c=function(){var c=Math.round((b.offsetHeight-a.offsetHeight)/2)-d.get(b,"paddingTop");a.style.marginTop=c+"px"};0===a.offsetHeight&&
"IMG"===a.tagName?a.onload=c:c()}},this))},setArrow:function(){if(!this.checked){var a="",b=this.getParent(),d=this.getTransOpts();!(d.moveTo||d.href||d.url||this.clickable)||this.noArrow||b&&b.selectOne||(a=this.arrowClass||"mblDomButtonArrow",f.set(this.domNode,"role","button"));a&&this._setRightIconAttr(a)}},_findRef:function(a){var b,d="deleteIcon icon rightIcon uncheckIcon rightIcon2 rightText".split(" ");for(a=c.indexOf(d,a)+1;a<d.length;a++)if(b=this[d[a]+"Node"])return b;for(a=d.length-1;0<=
a;a--)if(b=this[d[a]+"Node"])return b.nextSibling;return this.domNode.firstChild},_setIcon:function(a,d){if(this._isOnLine){this._set(d,a);this[d+"Node"]=l.setIcon(a,this[d+"Pos"],this[d+"Node"],this[d+"Title"]||this.alt,this.domNode,this._findRef(d),"before");if(this[d+"Node"]){var c=d.charAt(0).toUpperCase()+d.substring(1);b.add(this[d+"Node"],"mblListItem"+c)}(c=this[d+"Role"])&&this[d+"Node"].setAttribute("role",c)}else this["_pending_"+d]=a},_setDeleteIconAttr:function(a){this._setIcon(a,"deleteIcon")},
_setIconAttr:function(a){this._setIcon(a,"icon")},_setRightTextAttr:function(b){this._templated||this.rightTextNode||(this.rightTextNode=a.create("div",{className:"mblListItemRightText"},this.labelNode,"before"));this.rightText=b;this.rightTextNode.innerHTML=this._cv?this._cv(b):b},_setRightIconAttr:function(a){this._setIcon(a,"rightIcon")},_setUncheckIconAttr:function(a){this._setIcon(a,"uncheckIcon")},_setRightIcon2Attr:function(a){this._setIcon(a,"rightIcon2")},_setCheckedAttr:function(a){if(this._isOnLine){var d=
this.getParent();d&&"single"===d.select&&a&&c.forEach(d.getChildren(),function(a){a!==this&&a.checked&&a.set("checked",!1)&&f.set(a.domNode,"aria-selected","false")},this);this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);b.toggle(this.domNode,"mblListItemChecked",a);b.toggle(this.domNode,"mblListItemUnchecked",!a);b.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=this.uncheckIconNode&&!a?
"absolute":"";if(d&&this.checked!==a)d.onCheckStateChanged(this,a);this._set("checked",a);f.set(this.domNode,"aria-selected",a?"true":"false")}else this._pendingChecked=a},_setBusyAttr:function(d){var c=this._prog;d?(this._progNode||(this._progNode=a.create("div",{className:"mblListItemIcon"}),c=this._prog=new r({size:25,center:!1,removeOnStop:!1}),b.add(c.domNode,this.progStyle),this._progNode.appendChild(c.domNode)),this.iconNode?this.domNode.replaceChild(this._progNode,this.iconNode):a.place(this._progNode,
this._findRef("icon"),"before"),c.start()):this._progNode&&(this.iconNode?this.domNode.replaceChild(this.iconNode,this._progNode):this.domNode.removeChild(this._progNode),c.stop());this._set("busy",d)},_setSelectedAttr:function(a){this.inherited(arguments);b.toggle(this.domNode,this._selClass,a)},_setClickableAttr:function(a){this._set("clickable",a);this._updateHandles()},_setMoveToAttr:function(a){this._set("moveTo",a);this._updateHandles()},_setHrefAttr:function(a){this._set("href",a);this._updateHandles()},
_setUrlAttr:function(a){this._set("url",a);this._updateHandles()}});h.ChildWidgetProperties={layout:"",preventTouch:!1};e.extend(q,h.ChildWidgetProperties);return n("dojo-bidi")?k("dojox.mobile.ListItem",[h,t]):h})},"dojox/mobile/Switch":function(){define("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/dom-attr dojo/touch dijit/_Contained dijit/_WidgetBase ./sniff ./_maskUtils ./common dojo/has!dojo-bidi?dojox/mobile/bidi/Switch".split(" "),
function(c,k,e,b,a,d,f,g,q,l,h,r,n,t,m,p){h=e(n("dojo-bidi")?"dojox.mobile.NonBidiSwitch":"dojox.mobile.Switch",[r,h],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",buildRendering:function(){this.templateString||(this.domNode=this.srcNodeRef&&"SPAN"===this.srcNodeRef.tagName?this.srcNodeRef:f.create("span"));m._setTouchAction(this.domNode,"none");this.inherited(arguments);if(!this.templateString){var a=this.srcNodeRef&&
this.srcNodeRef.className||this.className||this["class"];if(a=a.match(/mblSw.*Shape\d*/))this.shape=a;d.add(this.domNode,this.shape);this.domNode.innerHTML='\x3cdiv class\x3d"mblSwitchInner"\x3e\x3cdiv class\x3d"mblSwitchBg mblSwitchBgLeft"\x3e\x3cdiv class\x3d"mblSwitchText mblSwitchTextLeft"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"mblSwitchBg mblSwitchBgRight"\x3e\x3cdiv class\x3d"mblSwitchText mblSwitchTextRight"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"mblSwitchKnob"\x3e\x3c/div\x3e\x3cinput type\x3d"hidden"'+
(this.name?' name\x3d"'+this.name+'"':"")+' value\x3d"'+this.value+'"\x3e\x3c/div\x3e\x3c/div\x3e';a=this.inner=this.domNode.firstChild;this.left=a.childNodes[0];this.right=a.childNodes[1];this.knob=a.childNodes[2];this.input=a.childNodes[3]}q.set(this.domNode,"role","checkbox");q.set(this.domNode,"aria-checked","on"===this.value?"true":"false");this.switchNode=this.domNode;n("windows-theme")&&(a=f.create("div",{className:"mblSwitchContainer"}),this.labelNode=f.create("label",{"class":"mblSwitchLabel",
"for":this.id},a),a.appendChild(this.domNode.cloneNode(!0)),this.domNode=a,this.focusNode=a.childNodes[1],this.labelNode.innerHTML="off"==this.value?this.rightLabel:this.leftLabel,this.switchNode=this.domNode.childNodes[1],a=this.inner=this.domNode.childNodes[1].firstChild,this.left=a.childNodes[0],this.right=a.childNodes[1],this.knob=a.childNodes[2],this.input=a.childNodes[3])},postCreate:function(){this.connect(this.switchNode,"onclick","_onClick");this.connect(this.switchNode,"onkeydown","_onClick");
this._startHandle=this.connect(this.switchNode,l.press,"onTouchStart");this._initialValue=this.value},startup:function(){var a=this._started;this.inherited(arguments);a||this.resize()},resize:function(){if(n("windows-theme"))g.set(this.domNode,"width","100%");else{var a=g.get(this.domNode,"width"),b=a+"px",a=a-g.get(this.knob,"width")+"px";g.set(this.left,"width",b);g.set(this.right,this.isLeftToRight()?{width:b,left:a}:{width:b});g.set(this.left.firstChild,"width",a);g.set(this.right.firstChild,
"width",a);g.set(this.knob,"left",a);"off"==this.value&&g.set(this.inner,"left",this.isLeftToRight()?"-"+a:0);this._hasMaskImage=!1;this._createMaskImage()}},_changeState:function(a,b){var c="on"===a;this.left.style.display="";this.right.style.display="";this.inner.style.left="";b&&d.add(this.switchNode,"mblSwitchAnimation");d.remove(this.switchNode,c?"mblSwitchOff":"mblSwitchOn");d.add(this.switchNode,c?"mblSwitchOn":"mblSwitchOff");q.set(this.switchNode,"aria-checked",c?"true":"false");c||n("windows-theme")||
(this.inner.style.left=(this.isLeftToRight()?-(g.get(this.domNode,"width")-g.get(this.knob,"width")):0)+"px");var f=this;f.defer(function(){f.left.style.display=c?"":"none";f.right.style.display=c?"none":"";d.remove(f.switchNode,"mblSwitchAnimation")},b?300:0)},_createMaskImage:function(){this._timer&&(this._timer.remove(),delete this._timer);if(!this._hasMaskImage){var a=g.get(this.domNode,"width"),b=g.get(this.domNode,"height");this._width=a-g.get(this.knob,"width");this._hasMaskImage=!0;if(n("mask-image")){var d=
g.get(this.left,"borderTopLeftRadius");if("0px"!=d){var c=d.split(" "),d=parseFloat(c[0]),c=1==c.length?d:parseFloat(c[1]);(this.shape+"Mask"+a+b+d+c).replace(/\./,"_");t.createRoundMask(this.switchNode,0,0,0,0,a,b,d,c,1)}}}},_onClick:function(a){a&&"keydown"===a.type&&13!==a.keyCode||!1===this.onClick(a)||this._moved||(this._set("value",this.input.value="on"==this.value?"off":"on"),this._changeState(this.value,!0),this.onStateChanged(this.value))},onClick:function(){},onTouchStart:function(d){this._moved=
!1;this.innerStartX=this.inner.offsetLeft;this._conn||(this._conn=[this.connect(this.inner,l.move,"onTouchMove"),this.connect(a.doc,l.release,"onTouchEnd")],n("windows-theme")&&this._conn.push(this.connect(a.doc,"MSPointerCancel","onTouchEnd")));this.touchStartX=d.touches?d.touches[0].pageX:d.clientX;this.left.style.display="";this.right.style.display="";b.stop(d);this._createMaskImage()},onTouchMove:function(a){a.preventDefault();if(a.targetTouches){if(1!=a.targetTouches.length)return;a=a.targetTouches[0].clientX-
this.touchStartX}else a=a.clientX-this.touchStartX;var b=this.innerStartX+a;b<=-(this._width-10)&&(b=-this._width);-10<=b&&(b=0);this.inner.style.left=b+"px";10<Math.abs(a)&&(this._moved=!0)},onTouchEnd:function(a){c.forEach(this._conn,k.disconnect);this._conn=null;this.innerStartX==this.inner.offsetLeft?n("touch")&&n("clicks-prevented")&&m._sendClick(this.inner,a):(a=this.inner.offsetLeft<-(this._width/2)?"off":"on",a=this._newState(a),this._changeState(a,!0),a!=this.value&&(this._set("value",this.input.value=
a),this.onStateChanged(a)))},_newState:function(a){return a},onStateChanged:function(a){this.labelNode&&(this.labelNode.innerHTML="off"==a?this.rightLabel:this.leftLabel)},_setValueAttr:function(a){this._changeState(a,!1);this.value!=a&&(this._set("value",this.input.value=a),this.onStateChanged(a))},_setLeftLabelAttr:function(a){this.leftLabel=a;this.left.firstChild.innerHTML=this._cv?this._cv(a):a},_setRightLabelAttr:function(a){this.rightLabel=a;this.right.firstChild.innerHTML=this._cv?this._cv(a):
a},reset:function(){this.set("value",this._initialValue)}});return n("dojo-bidi")?e("dojox.mobile.Switch",[h,p]):h})},"dojox/mobile/_maskUtils":function(){define(["dojo/_base/window","dojo/dom-style","./sniff"],function(c,k,e){e.add("mask-image-css",function(a,b,c){return"function"===typeof b.getCSSCanvasContext&&"undefined"!==typeof c.style.webkitMaskImage});e.add("mask-image",function(){return e("mask-image-css")||e("svg")});var b={};return{createRoundMask:function(a,d,f,g,q,l,h,r,n,t){g=d+l+g;
var m=f+h+q;if(e("mask-image-css"))q=("DojoMobileMask"+d+f+l+h+r+n).replace(/\./g,"_"),b[q]||(b[q]=1,g=c.doc.getCSSCanvasContext("2d",q,g,m),g.beginPath(),r==n?2==r&&5==l?(g.fillStyle="rgba(0,0,0,0.5)",g.fillRect(1,0,3,2),g.fillRect(0,1,5,1),g.fillRect(0,h-2,5,1),g.fillRect(1,h-1,3,2),g.fillStyle="rgb(0,0,0)",g.fillRect(0,2,5,h-4)):2==r&&5==h?(g.fillStyle="rgba(0,0,0,0.5)",g.fillRect(0,1,2,3),g.fillRect(1,0,1,5),g.fillRect(l-2,0,1,5),g.fillRect(l-1,1,2,3),g.fillStyle="rgb(0,0,0)",g.fillRect(2,0,l-
4,5)):(g.fillStyle="#000000",g.moveTo(d+r,f),g.arcTo(d,f,d,f+r,r),g.lineTo(d,f+h-r),g.arcTo(d,f+h,d+r,f+h,r),g.lineTo(d+l-r,f+h),g.arcTo(d+l,f+h,d+l,f+r,r),g.lineTo(d+l,f+r),g.arcTo(d+l,f,d+l-r,f,r)):(h=Math.PI,g.scale(1,n/r),g.moveTo(d+r,f),g.arc(d+r,f+r,r,1.5*h,.5*h,!0),g.lineTo(d+l-r,f+2*r),g.arc(d+l-r,f+r,r,.5*h,1.5*h,!0)),g.closePath(),g.fill()),a.style.webkitMaskImage="-webkit-canvas("+q+")";else if(e("svg")){a._svgMask&&a.removeChild(a._svgMask);for(var p=null,u=a.parentNode;u&&(!(p=k.getComputedStyle(u).backgroundColor)||
"transparent"==p||p.match(/rgba\(.*,\s*0\s*\)/));u=u.parentNode);u=c.doc.createElementNS("http://www.w3.org/2000/svg","svg");u.setAttribute("width",g);u.setAttribute("height",m);u.style.position="absolute";u.style.pointerEvents="none";u.style.opacity="1";u.style.zIndex="2147483647";m=c.doc.createElementNS("http://www.w3.org/2000/svg","path");t=t||0;r+=t;n+=t;d=" M"+(d+r-t)+","+(f-t)+" a"+r+","+n+" 0 0,0 "+-r+","+n+" v"+-n+" h"+r+" Z M"+(d-t)+","+(f+h-n+t)+" a"+r+","+n+" 0 0,0 "+r+","+n+" h"+-r+" v"+
-n+" z M"+(d+l-r+t)+","+(f+h+t)+" a"+r+","+n+" 0 0,0 "+r+","+-n+" v"+n+" h"+-r+" z M"+(d+l+t)+","+(f+n-t)+" a"+r+","+n+" 0 0,0 "+-r+","+-n+" h"+r+" v"+n+" z";0<f&&(d+=" M0,0 h"+g+" v"+f+" h"+-g+" z");0<q&&(d+=" M0,"+(f+h)+" h"+g+" v"+q+" h"+-g+" z");m.setAttribute("d",d);m.setAttribute("fill",p);m.setAttribute("stroke",p);m.style.opacity="1";u.appendChild(m);a._svgMask=u;a.appendChild(u)}}}})},"dojox/mobile/parser":function(){define("dojo/_base/kernel dojo/_base/array dojo/_base/config dojo/_base/lang dojo/_base/window dojo/ready".split(" "),
function(c,k,e,b,a,d){var f=b.getObject("dojox.mobile",!0),g=new function(){var d={},c=function(a,f){if("string"===typeof f){var e=a+":"+f.replace(/ /g,"");return d[e]||(d[e]=c(a).createSubclass(k.map(f.split(/, */),c)))}return d[a]||(d[a]=b.getObject(a)||require(a))},f=function(a){return eval(a)};this.instantiate=function(a,d,e){d=d||{};e=e||{};var g,h=[];if(a){for(g=0;g<a.length;g++){var l=a[g],k=c(l._type,l.getAttribute("data-dojo-mixins")),q=k.prototype,t={},r,n,v;b.mixin(t,f.call(e.propsThis,
"({"+(l.getAttribute("data-dojo-props")||"")+"})"));b.mixin(t,e.defaults);b.mixin(t,d);for(r in q)if(n=(n=l.getAttributeNode(r))&&n.nodeValue,v=typeof q[r],n||"boolean"===v&&""===n)b.isArray(q[r])?t[r]=n.split(/\s*,\s*/):"string"===v?t[r]=n:"number"===v?t[r]=n-0:"boolean"===v?t[r]="false"!==n:"object"===v?t[r]=eval("("+n+")"):"function"===v&&(t[r]=b.getObject(n,!1)||new Function(n),l.removeAttribute(r));t["class"]=l.className;t.style||(t.style=l.style.cssText);if(n=l.getAttribute("data-dojo-attach-point"))t.dojoAttachPoint=
n;if(n=l.getAttribute("data-dojo-attach-event"))t.dojoAttachEvent=n;k=new k(t,l);h.push(k);(l=l.getAttribute("jsId")||l.getAttribute("data-dojo-id"))&&b.setObject(l,k)}for(g=0;g<h.length;g++)a=h[g],!e.noStart&&a.startup&&!a._started&&a.startup()}return h};this.parse=function(b,d){b?!d&&b.rootNode&&(d=b,b=b.rootNode):b=a.body();var f=b.getElementsByTagName("*"),e,g,h=[];for(e=0;e<f.length;e++){var l=f[e];if(g=l._type=l.getAttribute("dojoType")||l.getAttribute("data-dojo-type"))if(l._skip)l._skip="";
else{if(c(g).prototype.stopParser&&(!d||!d.template)){var k=l.getElementsByTagName("*");for(g=0;g<k.length;g++)k[g]._skip="1"}h.push(l)}}return this.instantiate(h,d&&d.template?{template:!0}:null,d)}};e.parseOnLoad&&d(100,function(){try{require("dojo/parser")||g.parse()}catch(q){g.parse()}});f.parser=g;c.parser=c.parser||g;return g})},"dojox/mobile/Button":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/window dojo/dom dojo/dom-class dojo/dom-construct dojo/touch dojo/on ./common dijit/_WidgetBase dijit/form/_ButtonMixin dijit/form/_FormWidgetMixin dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/Button".split(" "),
function(c,k,e,b,a,d,f,g,q,l,h,r,n,t){l=k(n("dojo-bidi")?"dojox.mobile.NonBidiButton":"dojox.mobile.Button",[l,r,h],{baseClass:"mblButton",_setTypeAttr:null,isFocusable:function(){return!1},buildRendering:function(){if(!this.srcNodeRef)this.srcNodeRef=d.create("button",{type:this.type});else if(this._cv){var a=this.srcNodeRef.firstChild;a&&3===a.nodeType&&(a.nodeValue=this._cv(a.nodeValue))}this.inherited(arguments);this.focusNode=this.domNode},postCreate:function(){this.inherited(arguments);this.domNode.dojoClick=
"useTarget";var a=this;this.on(f.press,function(d){d.preventDefault();if(!a.domNode.disabled){a._press(!0);var c=!1;a._moveh=g(e.doc,f.move,function(d){c||(d.preventDefault(),c=!0);a._press(b.isDescendant(d.target,a.domNode))});a._endh=g(e.doc,f.release,function(b){a._press(!1);a._moveh.remove();a._endh.remove()})}});q.setSelectable(this.focusNode,!1);this.connect(this.domNode,"onclick","_onClick")},_press:function(b){if(b!=this._pressed){this._pressed=b;var d=this.focusNode||this.domNode,f=(this.baseClass+
" "+this["class"]).split(" "),f=c.map(f,function(a){return a+"Selected"});a.toggle(d,f,b)}},_setLabelAttr:function(a){this.inherited(arguments,[this._cv?this._cv(a):a])}});return n("dojo-bidi")?k("dojox.mobile.Button",[l,t]):l})},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom","dojo/has","../registry"],function(c,k,e,b){var a=c("dijit.form._ButtonMixin"+(e("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(a){a.stopPropagation();a.preventDefault();
this.disabled||this.valueNode.click(a);return!1},_onClick:function(a){if(this.disabled)return a.stopPropagation(),a.preventDefault(),!1;!1===this.onClick(a)&&a.preventDefault();var d=a.defaultPrevented;if(!d&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var c=this.domNode;c.parentNode;c=c.parentNode){var e=b.byNode(c);if(e&&"function"==typeof e._onSubmit){e._onSubmit(a);a.preventDefault();d=!0;break}}return!d},postCreate:function(){this.inherited(arguments);k.setSelectable(this.focusNode,
!1)},onClick:function(){return!0},_setLabelAttr:function(a){this._set("label",a);(this.containerNode||this.focusNode).innerHTML=a;this.onLabelSet()},onLabelSet:function(){}});e("dojo-bidi")&&(a=c("dijit.form._ButtonMixin",a,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return a})},"dijit/form/_FormWidgetMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),
function(c,k,e,b,a,d,f,g,q,l){return k("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(b){this._set("disabled",b);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?e.set(this.focusNode,"disabled",b):this.focusNode.setAttribute("aria-disabled",b?"true":"false");this.valueNode&&
e.set(this.valueNode,"disabled",b);b?(this._set("hovering",!1),this._set("active",!1),b="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",c.forEach(a.isArray(b)?b:[b],function(a){a=this[a];g("webkit")||l.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(b){if("mouse"==b&&this.isFocusable())var d=this.own(f(this.focusNode,
"focus",function(){e.remove();d.remove()}))[0],c=g("pointer-events")?"pointerup":g("MSPointer")?"MSPointerUp":g("touch-events")?"touchend, mouseup":"mouseup",e=this.own(f(this.ownerDocumentBody,c,a.hitch(this,function(a){e.remove();d.remove();this.focused&&("touchend"==a.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){q.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=b.get(this.domNode,
"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(h){}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,b){void 0!=this._lastValueReported||null!==b&&this._onChangeActive||(this._resetValue=this._lastValueReported=a);this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,
this._lastValueReported);(this.intermediateChanges||b||void 0===b)&&this._pendingOnChange&&(this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(a)})))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},
"dojox/mobile/app/_event":function(){define(["dojo","dijit","dojox"],function(c,k,e){c.provide("dojox.mobile.app._event");c.experimental("dojox.mobile.app._event.js");c.mixin(e.mobile.app,{eventMap:{},connectFlick:function(b,a,d){var f,e,k=!1,l,h,r,n,t,m;c.connect("onmousedown",b,function(a){k=!1;f=a.targetTouches?a.targetTouches[0].clientX:a.clientX;e=a.targetTouches?a.targetTouches[0].clientY:a.clientY;m=(new Date).getTime();r=c.connect(b,"onmousemove",p);n=c.connect(b,"onmouseup",u)});var p=function(a){c.stopEvent(a);
l=a.targetTouches?a.targetTouches[0].clientX:a.clientX;h=a.targetTouches?a.targetTouches[0].clientY:a.clientY;15<Math.abs(Math.abs(l)-Math.abs(f))?(k=!0,t=l>f?"ltr":"rtl"):15<Math.abs(Math.abs(h)-Math.abs(e))&&(k=!0,t=h>e?"ttb":"btt")},u=function(f){c.stopEvent(f);r&&c.disconnect(r);n&&c.disconnect(n);if(k)if(f={target:b,direction:t,duration:(new Date).getTime()-m},a&&d)a[d](f);else d(f)}}});e.mobile.app.isIPhone=c.isSafari&&(-1<navigator.userAgent.indexOf("iPhone")||-1<navigator.userAgent.indexOf("iPod"));
e.mobile.app.isWebOS=-1<navigator.userAgent.indexOf("webOS");e.mobile.app.isAndroid=-1<navigator.userAgent.toLowerCase().indexOf("android");if(e.mobile.app.isIPhone||e.mobile.app.isAndroid)e.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};c._oldConnect=c._connect;c._connect=function(b,a,d,f,g){a=e.mobile.app.eventMap[a]||a;if("flick"==a||"onflick"==a)if(c.global.Mojo)a=Mojo.Event.flick;
else return e.mobile.app.connectFlick(b,d,f);return c._oldConnect(b,a,d,f,g)}})},"dojox/mobile/app/_Widget":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase"],function(c,k,e){c.provide("dojox.mobile.app._Widget");c.experimental("dojox.mobile.app._Widget");c.require("dijit._WidgetBase");c.declare("dojox.mobile.app._Widget",k._WidgetBase,{getScroll:function(){return{x:c.global.scrollX,y:c.global.scrollY}},connect:function(b,a,d){return"dblclick"!=a.toLowerCase()&&"ondblclick"!=
a.toLowerCase()||!c.global.Mojo?this.inherited(arguments):this.connect(b,Mojo.Event.tap,d)}})})},"dojox/mobile/app/StageController":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/SceneController"],function(c,k,e){c.provide("dojox.mobile.app.StageController");c.experimental("dojox.mobile.app.StageController");c.require("dojox.mobile.app.SceneController");c.declare("dojox.mobile.app.StageController",null,{scenes:null,effect:"fade",constructor:function(b){this.domNode=b;this.scenes=
[];c.config.mobileAnim&&(this.effect=c.config.mobileAnim)},getActiveSceneController:function(){return this.scenes[this.scenes.length-1]},pushScene:function(b,a){if(!this._opInProgress){this._opInProgress=!0;var d=c.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode),f=new e.mobile.app.SceneController({},d);0<this.scenes.length&&this.scenes[this.scenes.length-1].assistant.deactivate();this.scenes.push(f);var g=this;c.forEach(this.scenes,this.setZIndex);f.stageController=
this;f.init(b,a).addCallback(function(){1==g.scenes.length?(f.domNode.style.visibility="visible",g.scenes[g.scenes.length-1].assistant.activate(a),g._opInProgress=!1):g.scenes[g.scenes.length-2].performTransition(g.scenes[g.scenes.length-1].domNode,1,g.effect,null,function(){g.scenes[g.scenes.length-1].assistant.activate(a);g._opInProgress=!1})})}},setZIndex:function(b,a){c.style(b.domNode,"zIndex",a+1)},popScene:function(b){if(!this._opInProgress){var a=this;1<this.scenes.length?(this._opInProgress=
!0,this.scenes[a.scenes.length-2].assistant.activate(b),this.scenes[a.scenes.length-1].performTransition(a.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){a._destroyScene(a.scenes[a.scenes.length-1]);a.scenes.splice(a.scenes.length-1,1);a._opInProgress=!1})):console.log("cannot pop the scene if there is just one")}},popScenesTo:function(b,a){if(!this._opInProgress){for(;2<this.scenes.length&&this.scenes[this.scenes.length-2].sceneName!=b;)this._destroyScene(this.scenes[this.scenes.length-
2]),this.scenes.splice(this.scenes.length-2,1);this.popScene(a)}},_destroyScene:function(b){b.assistant.deactivate();b.assistant.destroy();b.destroyRecursive()}})})},"dojox/mobile/app/SceneController":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/_base"],function(c,k,e){c.provide("dojox.mobile.app.SceneController");c.experimental("dojox.mobile.app.SceneController");c.require("dojox.mobile._base");(function(){var b=e.mobile.app,a={};c.declare("dojox.mobile.app.SceneController",
e.mobile.View,{stageController:null,keepScrollPos:!1,init:function(d,f){this.sceneName=d;this.params=f;var e=b.resolveTemplate(d);this._deferredInit=new c.Deferred;a[d]?this._setContents(a[d]):c.xhrGet({url:e,handleAs:"text"}).addCallback(c.hitch(this,this._setContents));return this._deferredInit},_setContents:function(d){a[this.sceneName]=d;this.domNode.innerHTML="\x3cdiv\x3e"+d+"\x3c/div\x3e";var f="";d=this.sceneName.split("-");for(var g=0;g<d.length;g++)f+=d[g].substring(0,1).toUpperCase()+d[g].substring(1);
this.sceneAssistantName=f+="Assistant";var k=this;e.mobile.app.loadResourcesForScene(this.sceneName,function(){console.log("All resources for ",k.sceneName," loaded");if("undefined"!=typeof c.global[f])k._initAssistant();else{var a=b.resolveAssistant(k.sceneName);c.xhrGet({url:a,handleAs:"text"}).addCallback(function(a){try{c.eval(a)}catch(r){throw console.log("Error initializing code for scene "+k.sceneName+". Please check for syntax errors"),r;}k._initAssistant()})}})},_initAssistant:function(){console.log("Instantiating the scene assistant "+
this.sceneAssistantName);var a=c.getObject(this.sceneAssistantName);if(!a)throw Error("Unable to resolve scene assistant "+this.sceneAssistantName);this.assistant=new a(this.params);this.assistant.controller=this;this.assistant.domNode=this.domNode.firstChild;this.assistant.setup();this._deferredInit.callback()},query:function(a,b){return c.query(a,b||this.domNode)},parse:function(a){a=this._widgets=e.mobile.parser.parse(a||this.domNode,{controller:this});for(var b=0;b<a.length;b++)a[b].set("controller",
this)},getWindowSize:function(){return{w:c.global.innerWidth,h:c.global.innerHeight}},showAlertDialog:function(a){c.marginBox(this.assistant.domNode);a=new e.mobile.app.AlertDialog(c.mixin(a,{controller:this}));this.assistant.domNode.appendChild(a.domNode);console.log("Appended ",a.domNode," to ",this.assistant.domNode);a.show()},popupSubMenu:function(a){var b=new e.mobile.app.ListSelector({controller:this,destroyOnHide:!0,onChoose:a.onChoose});this.assistant.domNode.appendChild(b.domNode);b.set("data",
a.choices);b.show(a.fromNode)}})})()})},"dojox/mobile/app/SceneAssistant":function(){define(["dojo","dijit","dojox"],function(c,k,e){c.provide("dojox.mobile.app.SceneAssistant");c.experimental("dojox.mobile.app.SceneAssistant");c.declare("dojox.mobile.app.SceneAssistant",null,{constructor:function(){},setup:function(){},activate:function(b){},deactivate:function(){},destroy:function(){var b=c.query("\x3e [widgetId]",this.containerNode).map(k.byNode);c.forEach(b,function(a){a.destroyRecursive()});
this.disconnect()},connect:function(b,a,d){this._connects||(this._connects=[]);this._connects.push(c.connect(b,a,d))},disconnect:function(){c.forEach(this._connects,c.disconnect);this._connects=[]}})})},"dojox/mobile/app/AlertDialog":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase"],function(c,k,e){c.provide("dojox.mobile.app.AlertDialog");c.experimental("dojox.mobile.app.AlertDialog");c.require("dijit._WidgetBase");c.declare("dojox.mobile.app.AlertDialog",k._WidgetBase,
{title:"",text:"",controller:null,buttons:null,defaultButtonLabel:"OK",onChoose:null,constructor:function(){this.onClick=c.hitch(this,this.onClick);this._handleSelect=c.hitch(this,this._handleSelect)},buildRendering:function(){this.domNode=c.create("div",{"class":"alertDialog"});var b=c.create("div",{"class":"alertDialogBody"},this.domNode);c.create("div",{"class":"alertTitle",innerHTML:this.title||""},b);c.create("div",{"class":"alertText",innerHTML:this.text||""},b);var a=c.create("div",{"class":"alertBtns"},
b);this.buttons&&0!=this.buttons.length||(this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}]);var d=this;c.forEach(this.buttons,function(b){var f=new e.mobile.Button({btnClass:b["class"]||"",label:b.label});f._dialogValue=b.value;c.place(f.domNode,a);d.connect(f,"onClick",d._handleSelect)});b=this.controller.getWindowSize();this.mask=c.create("div",{"class":"dialogUnderlayWrapper",innerHTML:'\x3cdiv class\x3d"dialogUnderlay"\x3e\x3c/div\x3e',style:{width:b.w+"px",height:b.h+
"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){d.onChoose&&d.onChoose();d.hide()})},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect)},_handleSelect:function(b){var a;console.log("handleSelect");if(b&&b.target)for(a=b.target;!k.byNode(a);)a=a.parentNode;if(this.onChoose)this.onChoose(a?k.byNode(a)._dialogValue:void 0);this.hide()},show:function(){this._doTransition(1)},hide:function(){this._doTransition(-1)},_doTransition:function(b){var a,
d=c.marginBox(this.domNode.firstChild).h;a=this.controller.getWindowSize().h;console.log("dialog height \x3d "+d," body height \x3d "+a);d=a-d;a=c.fx.slideTo({node:this.domNode,duration:400,top:{start:0>b?d:a,end:0>b?a:d}});d=c[0>b?"fadeOut":"fadeIn"]({node:this.mask,duration:400});a=c.fx.combine([a,d]);var f=this;c.connect(a,"onEnd",this,function(){0>b&&(f.domNode.style.display="none",c.destroy(f.domNode),c.destroy(f.mask))});a.play()},destroy:function(){this.inherited(arguments);c.destroy(this.mask)},
onClick:function(){}})})},"dojox/mobile/app/List":function(){define(["dojo","dijit","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(c,k,e){c.provide("dojox.mobile.app.List");c.experimental("dojox.mobile.app.List");c.require("dojo.string");c.require("dijit._WidgetBase");(function(){var b={};c.declare("dojox.mobile.app.List",k._WidgetBase,{items:null,itemTemplate:"",emptyTemplate:"",dividerTemplate:"",dividerFunction:null,labelDelete:"Delete",labelCancel:"Cancel",controller:null,autoDelete:!0,
enableDelete:!0,enableHold:!0,formatters:null,_templateLoadCount:0,_mouseDownPos:null,baseClass:"list",constructor:function(){this._checkLoadComplete=c.hitch(this,this._checkLoadComplete);this._replaceToken=c.hitch(this,this._replaceToken);this._postDeleteAnim=c.hitch(this,this._postDeleteAnim)},postCreate:function(){var a=this;this.emptyTemplate&&this._templateLoadCount++;this.itemTemplate&&this._templateLoadCount++;this.dividerTemplate&&this._templateLoadCount++;this.connect(this.domNode,"onmousedown",
function(b){var d=b;b.targetTouches&&0<b.targetTouches.length&&(d=b.targetTouches[0]);var c=a._getRowNode(b.target);c&&(a._setDataInfo(c,b),a._selectRow(c),a._mouseDownPos={x:d.pageX,y:d.pageY},a._dragThreshold=null)});this.connect(this.domNode,"onmouseup",function(b){b.targetTouches&&0<b.targetTouches.length&&(b=b.targetTouches[0]);var d=a._getRowNode(b.target);if(d){a._setDataInfo(d,b);if(a._selectedRow)a.onSelect(d._data,d._idx,d);this._deselectRow()}});this.enableDelete&&this.connect(this.domNode,
"mousemove",function(b){c.stopEvent(b);if(a._selectedRow){var d=a._getRowNode(b.target);a.enableDelete&&d&&!a._deleting&&a.handleDrag(b)}});this.connect(this.domNode,"onclick",function(b){b.touches&&0<b.touches.length&&(b=b.touches[0]);var d=a._getRowNode(b.target,!0);d&&a._setDataInfo(d,b)});this.connect(this.domNode,"mouseout",function(b){b.touches&&0<b.touches.length&&(b=b.touches[0]);b.target==a._selectedRow&&a._deselectRow()});if(!this.itemTemplate)throw Error("An item template must be provided to "+
this.declaredClass);this._loadTemplate(this.itemTemplate,"itemTemplate",this._checkLoadComplete);this.emptyTemplate&&this._loadTemplate(this.emptyTemplate,"emptyTemplate",this._checkLoadComplete);this.dividerTemplate&&this._loadTemplate(this.dividerTemplate,"dividerTemplate",this._checkLoadComplete)},handleDrag:function(a){var b=a;a.targetTouches&&0<a.targetTouches.length&&(b=a.targetTouches[0]);a=b.pageX-this._mouseDownPos.x;b=Math.abs(a);10<b&&!this._dragThreshold&&(this._dragThreshold=.6*c.marginBox(this._selectedRow).w,
this.autoDelete||this.createDeleteButtons(this._selectedRow));this._selectedRow.style.left=(10<b?a:0)+"px";this._dragThreshold&&this._dragThreshold<b&&this.preDelete(a)},handleDragCancel:function(){this._deleting||(c.removeClass(this._selectedRow,"hold"),this._selectedRow.style.left=0,this._dragThreshold=this._mouseDownPos=null,this._deleteBtns&&c.style(this._deleteBtns,"display","none"))},preDelete:function(a){this._deleting=!0;c.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:a+
(0<a?1:-1)*this._dragThreshold*.8}},onEnd:c.hitch(this,function(){this.autoDelete&&this.deleteRow(this._selectedRow)})}).play()},deleteRow:function(a){c.style(a,{visibility:"hidden",minHeight:"0px"});c.removeClass(a,"hold");this._deleteAnimConn=this.connect(a,"webkitAnimationEnd",this._postDeleteAnim);c.addClass(a,"collapsed")},_postDeleteAnim:function(a){this._deleteAnimConn&&(this.disconnect(this._deleteAnimConn),this._deleteAnimConn=null);a=this._selectedRow;var b=a.nextSibling,f=a.previousSibling;
f&&f._isDivider&&(b&&!b._isDivider||f.parentNode.removeChild(f));a.parentNode.removeChild(a);for(this.onDelete(a._data,a._idx,this.items);b;)b._idx&&b._idx--,b=b.nextSibling;c.destroy(a);c.query("\x3e *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=!1;this._deselectRow()},createDeleteButtons:function(a){var b=c.marginBox(a);c._abs(a,!0);this._deleteBtns||(this._deleteBtns=c.create("div",{"class":"buttons"},this.domNode),this.buttons=[],this.buttons.push(new e.mobile.Button({btnClass:"mblRedButton",
label:this.labelDelete})),this.buttons.push(new e.mobile.Button({btnClass:"mblBlueButton",label:this.labelCancel})),c.place(this.buttons[0].domNode,this._deleteBtns),c.place(this.buttons[1].domNode,this._deleteBtns),c.addClass(this.buttons[0].domNode,"deleteBtn"),c.addClass(this.buttons[1].domNode,"cancelBtn"),this._handleButtonClick=c.hitch(this._handleButtonClick),this.connect(this._deleteBtns,"onclick",this._handleButtonClick));c.removeClass(this._deleteBtns,"fade out fast");c.style(this._deleteBtns,
{display:"",width:b.w+"px",height:b.h+"px",top:a.offsetTop+"px",left:"0px"})},onDelete:function(a,b,c){c.splice(b,1);1>c.length&&this.render()},cancelDelete:function(){this._deleting=!1;this.handleDragCancel()},_handleButtonClick:function(a){a.touches&&0<a.touches.length&&(a=a.touches[0]);a=a.target;if(c.hasClass(a,"deleteBtn"))this.deleteRow(this._selectedRow);else if(c.hasClass(a,"cancelBtn"))this.cancelDelete();else return;c.addClass(this._deleteBtns,"fade out")},applyClass:function(a,b,f){c.removeClass(a,
"first last");0==b&&c.addClass(a,"first");b==f.length-1&&c.addClass(a,"last")},_setDataInfo:function(a,b){b.item=a._data;b.index=a._idx},onSelect:function(a,b,c){},_selectRow:function(a){this._deleting&&this._selectedRow&&a!=this._selectedRow&&this.cancelDelete();c.hasClass(a,"row")&&((this.enableHold||this.enableDelete)&&c.addClass(a,"hold"),this._selectedRow=a)},_deselectRow:function(){this._selectedRow&&!this._deleting&&(this.handleDragCancel(),c.removeClass(this._selectedRow,"hold"),this._selectedRow=
null)},_getRowNode:function(a,b){for(;a&&!a._data&&a!=this.domNode;){if(!b&&c.hasClass(a,"noclick"))return null;a=a.parentNode}return a==this.domNode?null:a},applyTemplate:function(a,b){return c._toDom(c.string.substitute(a,b,this._replaceToken,this.formatters||this))},render:function(){c.query("\x3e *:not(.buttons)",this.domNode).forEach(c.destroy);1>this.items.length&&this.emptyTemplate?c.place(c._toDom(this.emptyTemplate),this.domNode,"first"):this.domNode.appendChild(this._renderRange(0,this.items.length));
c.hasClass(this.domNode.parentNode,"mblRoundRect")&&c.addClass(this.domNode.parentNode,"mblRoundRectList");var a=c.query("\x3e .row",this.domNode);0<a.length&&(c.addClass(a[0],"first"),c.addClass(a[a.length-1],"last"))},_renderRange:function(a,b){var d=[],e,k,l=document.createDocumentFragment();a=Math.max(0,a);b=Math.min(b,this.items.length);for(k=a;k<b;k++)e=this.applyTemplate(this.itemTemplate,this.items[k]),c.addClass(e,"row"),e._data=this.items[k],e._idx=k,d.push(e);if(this.dividerFunction&&this.dividerTemplate){var h=
null;for(k=a;k<b;k++)d[k]._data=this.items[k],d[k]._idx=k,(e=this.dividerFunction(this.items[k]))&&e!=h&&(h=this.applyTemplate(this.dividerTemplate,{label:e,item:this.items[k]}),h._isDivider=!0,l.appendChild(h),h=e),l.appendChild(d[k])}else for(k=a;k<b;k++)d[k]._data=this.items[k],d[k]._idx=k,l.appendChild(d[k]);return l},_replaceToken:function(a,b){"!"==b.charAt(0)&&(a=c.getObject(b.substr(1),!1,_this));return"undefined"==typeof a||null==a?"":"!"==b.charAt(0)?a:a.toString().replace(/"/g,"\x26quot;")},
_checkLoadComplete:function(){this._templateLoadCount--;1>this._templateLoadCount&&this.get("items")&&this.render()},_loadTemplate:function(a,d,f){if(a)if(b[a])this.set(d,b[a]),f();else{var e=this;c.xhrGet({url:a,sync:!1,handleAs:"text",load:function(g){b[a]=c.trim(g);e.set(d,b[a]);f()}})}else f()},_setFormattersAttr:function(a){this.formatters=a},_setItemsAttr:function(a){this.items=a||[];1>this._templateLoadCount&&a&&this.render()},destroy:function(){this.buttons&&(c.forEach(this.buttons,function(a){a.destroy()}),
this.buttons=null);this.inherited(arguments)}})})()})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(c,k){var e=/[&<>'"\/]/g,b={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},a={};k.setObject("dojo.string",a);a.escape=function(a){return a?a.replace(e,function(a){return b[a]}):""};a.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];;){b&1&&c.push(a);if(!(b>>=1))break;a+=a}return c.join("")};a.pad=function(b,c,e,k){e||
(e="0");b=String(b);c=a.rep(e,Math.ceil((c-b.length)/e.length));return k?b+c:c+b};a.substitute=function(a,b,e,q){q=q||c.global;e=e?k.hitch(q,e):function(a){return a};return a.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,c,d){if(""==c)return"$";a=k.getObject(c,!1,b);d&&(a=k.getObject(d,!1,q).call(q,a,c));d=e(a,c);if("undefined"===typeof d)throw Error('string.substitute could not find key "'+c+'" in template');return d.toString()})};a.trim=String.prototype.trim?k.trim:function(a){a=a.replace(/^\s+/,
"");for(var b=a.length-1;0<=b;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a};return a})},"dojox/mobile/app/ListSelector":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(c,k,e){c.provide("dojox.mobile.app.ListSelector");c.experimental("dojox.mobile.app.ListSelector");c.require("dojox.mobile.app._Widget");c.require("dojo.fx");c.declare("dojox.mobile.app.ListSelector",e.mobile.app._Widget,{data:null,controller:null,onChoose:null,
destroyOnHide:!1,_setDataAttr:function(b){(this.data=b)&&this.render()},postCreate:function(){c.addClass(this.domNode,"listSelector");var b=this;this.connect(this.domNode,"onclick",function(a){if(c.hasClass(a.target,"listSelectorRow")){if(b.onChoose)b.onChoose(b.data[a.target._idx].value);b.hide()}});this.connect(this.domNode,"onmousedown",function(a){c.hasClass(a.target,"listSelectorRow")&&c.addClass(a.target,"listSelectorRow-selected")});this.connect(this.domNode,"onmouseup",function(a){c.hasClass(a.target,
"listSelectorRow")&&c.removeClass(a.target,"listSelectorRow-selected")});this.connect(this.domNode,"onmouseout",function(a){c.hasClass(a.target,"listSelectorRow")&&c.removeClass(a.target,"listSelectorRow-selected")});this.controller.getWindowSize();this.mask=c.create("div",{"class":"dialogUnderlayWrapper",innerHTML:'\x3cdiv class\x3d"dialogUnderlay"\x3e\x3c/div\x3e'},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){b.onChoose&&b.onChoose();b.hide()})},show:function(b){var a,
d=this.controller.getWindowSize(),e;b?a=e=c._abs(b):(a.x=d.w/2,a.y=200);console.log("startPos \x3d ",a);c.style(this.domNode,{opacity:0,display:"",width:Math.floor(.8*d.w)+"px"});var g=0;c.query("\x3e",this.domNode).forEach(function(a){c.style(a,{"float":"left"});g=Math.max(g,c.marginBox(a).w);c.style(a,{"float":"none"})});g=Math.min(g,Math.round(.8*d.w))+c.style(this.domNode,"paddingLeft")+c.style(this.domNode,"paddingRight")+1;c.style(this.domNode,"width",g+"px");b=c.marginBox(this.domNode).h;var k=
this,l=e?Math.max(30,e.y-b-10):this.getScroll().y+30;console.log("fromNodePos \x3d ",e," targetHeight \x3d ",b," targetY \x3d "+l," startPos ",a);a=c.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:g},height:{start:1,end:b},top:{start:a.y,end:l},left:{start:a.x,end:d.w/2-g/2},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){c.style(k.domNode,"width","inherit")}});d=c.fadeIn({node:this.mask,duration:400});c.fx.combine([a,d]).play()},hide:function(){var b=
this,a=c.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){b.get("destroyOnHide")&&b.destroy()}}),d=c.fadeOut({node:this.mask,duration:400});c.fx.combine([a,d]).play()},render:function(){c.empty(this.domNode);c.style(this.domNode,"opacity",0);for(var b,a=0;a<this.data.length;a++)b=c.create("div",{"class":"listSelectorRow "+(this.data[a].className||""),innerHTML:this.data[a].label},this.domNode),b._idx=a,0==a&&
c.addClass(b,"first"),a==this.data.length-1&&c.addClass(b,"last")},destroy:function(){this.inherited(arguments);c.destroy(this.mask)}})})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(c,k,e,b,a,d,f,g,q,l,h){e.isAsync||l(0,function(){h(["./fx/Toggler"])});e=e.fx={};l={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var r=function(a){this._index=-1;this._animations=
a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(a){a&&("undefined"!=typeof a.duration&&(this.duration+=a.duration),a.delay&&(this.duration+=a.delay))},this)};r.prototype=new k;c.extend(r,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],
this._onAnimateCtx=a.after(this._current,"onAnimate",c.hitch(this,"_onAnimate"),!0),this._onEndCtx=a.after(this._current,"onEnd",c.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(b,d){this._current||(this._current=this._animations[this._index=0]);if(!d&&"playing"==this._current.status())return this;var e=a.after(this._current,"beforeBegin",c.hitch(this,function(){this._fire("beforeBegin")}),!0),f=a.after(this._current,"onBegin",c.hitch(this,function(a){this._fire("onBegin",arguments)}),
!0),g=a.after(this._current,"onPlay",c.hitch(this,function(a){this._fire("onPlay",arguments);e.remove();f.remove();g.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=a.after(this._current,"onAnimate",c.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=a.after(this._current,"onEnd",c.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var b=a.after(this._current,"onPause",
c.hitch(this,function(a){this._fire("onPause",arguments);b.remove()}),!0);this._current.pause()}return this},gotoPercent:function(a,c){this.pause();var d=this.duration*a;this._current=null;b.some(this._animations,function(a,b){if(d<=a.duration)return this._current=a,this._index=b,!0;d-=a.duration;return!1},this);this._current&&this._current.gotoPercent(d/this._current.duration);c&&this.play();return this},stop:function(b){if(this._current){if(b){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);
this._current=this._animations[this._index]}var d=a.after(this._current,"onStop",c.hitch(this,function(a){this._fire("onStop",arguments);d.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop();this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});c.extend(r,l);e.chain=function(a){return new r(c.isArray(a)?a:Array.prototype.slice.call(a,0))};var n=function(e){this._animations=
e||[];this._connects=[];this.duration=this._finished=0;b.forEach(e,function(b){var d=b.duration;b.delay&&(d+=b.delay);this.duration<d&&(this.duration=d);this._connects.push(a.after(b,"onEnd",c.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var f=this;b.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(b){f._connects.push(a.after(f._pseudoAnimation,b,function(){f._fire(b,arguments)},!0))})};c.extend(n,
{_doAction:function(a,c){b.forEach(this._animations,function(b){b[a].apply(b,c)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,c){var d=this.duration*a;b.forEach(this._animations,
function(a){a.gotoPercent(a.duration<d?1:d/a.duration,c)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();b.forEach(this._connects,function(a){a.remove()})}});c.extend(n,l);e.combine=function(a){return new n(c.isArray(a)?a:Array.prototype.slice.call(a,0))};e.wipeIn=function(b){var e=b.node=f.byId(b.node),h=e.style,l;b=
d.animateProperty(c.mixin({properties:{height:{start:function(){l=h.overflow;h.overflow="hidden";if("hidden"==h.visibility||"none"==h.display)return h.height="1px",h.display="",h.visibility="",1;var a=g.get(e,"height");return Math.max(a,1)},end:function(){return e.scrollHeight}}}},b));var k=function(){h.height="auto";h.overflow=l};a.after(b,"onStop",k,!0);a.after(b,"onEnd",k,!0);return b};e.wipeOut=function(b){var e=(b.node=f.byId(b.node)).style,g;b=d.animateProperty(c.mixin({properties:{height:{end:1}}},
b));a.after(b,"beforeBegin",function(){g=e.overflow;e.overflow="hidden";e.display=""},!0);var h=function(){e.overflow=g;e.height="auto";e.display="none"};a.after(b,"onStop",h,!0);a.after(b,"onEnd",h,!0);return b};e.slideTo=function(b){var e=null,h=null,l=function(a){return function(){var b=g.getComputedStyle(a),c=b.position;e="absolute"==c?a.offsetTop:parseInt(b.top)||0;h="absolute"==c?a.offsetLeft:parseInt(b.left)||0;"absolute"!=c&&"relative"!=c&&(b=q.position(a,!0),e=b.y,h=b.x,a.style.position=
"absolute",a.style.top=e+"px",a.style.left=h+"px")}}(b.node=f.byId(b.node));l();b=d.animateProperty(c.mixin({properties:{top:b.top||0,left:b.left||0}},b));a.after(b,"beforeBegin",l,!0);return b};return e})},"dojox/mobile/app/TextBox":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/TextBox"],function(c,k,e){c.provide("dojox.mobile.app.TextBox");c.deprecated("dojox.mobile.app.TextBox is deprecated","dojox.mobile.app.TextBox moved to dojox.mobile.TextBox",1.8);c.require("dojox.mobile.TextBox");
e.mobile.app.TextBox=e.mobile.TextBox})},"dojox/mobile/TextBox":function(){define("dojo/_base/declare dojo/dom-construct dijit/_WidgetBase dijit/form/_FormValueMixin dijit/form/_TextBoxMixin dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/TextBox".split(" "),function(c,k,e,b,a,d,f){e=c(d("dojo-bidi")?"dojox.mobile.NonBidiTextBox":"dojox.mobile.TextBox",[e,b,a],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:function(a){a=this._cv?this._cv(a):a;this._set("placeHolder",a);this.textbox.setAttribute("placeholder",
a)},buildRendering:function(){this.srcNodeRef||(this.srcNodeRef=k.create("input",{type:this.type}));this.inherited(arguments);this.textbox=this.focusNode=this.domNode},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onmouseup",function(){this._mouseIsDown=!1});this.connect(this.textbox,"onmousedown",function(){this._mouseIsDown=!0});this.connect(this.textbox,"onfocus",function(a){this._onFocus(this._mouseIsDown?"mouse":a);this._mouseIsDown=!1});this.connect(this.textbox,
"onblur","_onBlur")}});return d("dojo-bidi")?c("dojox.mobile.TextBox",[e,f]):e})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on ./_FormWidgetMixin".split(" "),function(c,k,e,b,a,d){return c("dijit.form._FormValueMixin",d,{readOnly:!1,_setReadOnlyAttr:function(a){k.set(this.focusNode,"readOnly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=
this.value)},_setValueAttr:function(a,b){this._handleOnChange(a,b)},_handleOnChange:function(a,b){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/sniff dojo/keys dojo/_base/lang dojo/on ../main".split(" "),function(c,k,e,b,a,d,f,g){var q=k("dijit.form._TextBoxMixin"+
(b("dojo-bidi")?"_NoBidi":""),null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,c){var d;void 0!==a&&(d=this.filter(a),"string"!=typeof c&&(c=null===d||"number"==typeof d&&isNaN(d)?"":this.filter(this.format(d,this.constraints)),0!=this.compare(d,this.filter(this.parse(c,this.constraints)))&&(c=null)));null==c||"number"==typeof c&&isNaN(c)||
this.textbox.value==c||(this.textbox.value=c,this._set("displayedValue",this.get("displayedValue")));this.inherited(arguments,[d,b])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(a){return null==a?"":a.toString?a.toString():a},parse:function(a){return a},
_refreshState:function(){},onInput:function(){},_onInput:function(a){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||a);delete this._lastInputProducingEvent;this.intermediateChanges&&this._handleOnChange(this.get("value"),!1)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this.own(f(this.textbox,
"keydown, keypress, paste, cut, compositionend",d.hitch(this,function(c){var e;if("keydown"==c.type&&229!=c.keyCode){e=c.keyCode;switch(e){case a.SHIFT:case a.ALT:case a.CTRL:case a.META:case a.CAPS_LOCK:case a.NUM_LOCK:case a.SCROLL_LOCK:return}if(!c.ctrlKey&&!c.metaKey&&!c.altKey){switch(e){case a.NUMPAD_0:case a.NUMPAD_1:case a.NUMPAD_2:case a.NUMPAD_3:case a.NUMPAD_4:case a.NUMPAD_5:case a.NUMPAD_6:case a.NUMPAD_7:case a.NUMPAD_8:case a.NUMPAD_9:case a.NUMPAD_MULTIPLY:case a.NUMPAD_PLUS:case a.NUMPAD_ENTER:case a.NUMPAD_MINUS:case a.NUMPAD_PERIOD:case a.NUMPAD_DIVIDE:return}if(65<=
e&&90>=e||48<=e&&57>=e||e==a.SPACE)return;e=!1;for(var g in a)if(a[g]===c.keyCode){e=!0;break}if(!e)return}}(e=32<=c.charCode?String.fromCharCode(c.charCode):c.charCode)||(e=65<=c.keyCode&&90>=c.keyCode||48<=c.keyCode&&57>=c.keyCode||c.keyCode==a.SPACE?String.fromCharCode(c.keyCode):c.keyCode);e||(e=229);if("keypress"==c.type){if("string"!=typeof e)return;if("a"<=e&&"z">=e||"A"<=e&&"Z">=e||"0"<=e&&"9">=e||" "===e)if(c.ctrlKey||c.metaKey||c.altKey)return}var k={faux:!0},l;for(l in c)/^(layer[XY]|returnValue|keyLocation)$/.test(l)||
(g=c[l],"function"!=typeof g&&"undefined"!=typeof g&&(k[l]=g));d.mixin(k,{charOrCode:e,_wasConsumed:!1,preventDefault:function(){k._wasConsumed=!0;c.preventDefault()},stopPropagation:function(){c.stopPropagation()}});this._lastInputProducingEvent=k;!1===this.onInput(k)&&(k.preventDefault(),k.stopPropagation());if(!k._wasConsumed&&9>=b("ie"))switch(c.keyCode){case a.TAB:case a.ESCAPE:case a.DOWN_ARROW:case a.UP_ARROW:case a.LEFT_ARROW:case a.RIGHT_ARROW:break;default:c.keyCode==a.ENTER&&"textarea"!=
this.textbox.tagName.toLowerCase()||this.defer(function(){this.textbox.value!==this._lastInputEventValue&&f.emit(this.textbox,"input",{bubbles:!0})})}})),f(this.textbox,"input",d.hitch(this,"_onInput")),f(this.domNode,"keypress",function(a){a.stopPropagation()}))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=d.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,
function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=f.once(this.domNode,"mouseup, touchend",d.hitch(this,function(a){this._isTextSelected()||
q.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});b("dojo-bidi")&&(q=k("dijit.form._TextBoxMixin",q,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments);
this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode);this.inherited(arguments)}}));q._setSelectionRange=g._setSelectionRange=function(a,b,c){a.setSelectionRange&&a.setSelectionRange(b,c)};q.selectInputText=g.selectInputText=function(a,b,c){a=e.byId(a);isNaN(b)&&(b=0);isNaN(c)&&(c=a.value?a.value.length:0);try{a.focus(),q._setSelectionRange(a,b,c)}catch(n){}};return q})},"dojox/mobile/app/ImageView":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],
function(c,k,e){c.provide("dojox.mobile.app.ImageView");c.experimental("dojox.mobile.app.ImageView");c.require("dojox.mobile.app._Widget");c.require("dojo.fx.easing");c.declare("dojox.mobile.app.ImageView",e.mobile.app._Widget,{zoom:1,zoomCenterX:0,zoomCenterY:0,maxZoom:5,autoZoomLevel:3,disableAutoZoom:!1,disableSwipe:!1,autoZoomEvent:null,_leftImg:null,_centerImg:null,_rightImg:null,_leftSmallImg:null,_centerSmallImg:null,_rightSmallImg:null,constructor:function(){this.panY=this.panX=0;this.handleLoad=
c.hitch(this,this.handleLoad);this._updateAnimatedZoom=c.hitch(this,this._updateAnimatedZoom);this._updateAnimatedPan=c.hitch(this,this._updateAnimatedPan);this._onAnimPanEnd=c.hitch(this,this._onAnimPanEnd)},buildRendering:function(){this.inherited(arguments);this.canvas=c.create("canvas",{},this.domNode);c.addClass(this.domNode,"mblImageView")},postCreate:function(){this.inherited(arguments);this.size=c.marginBox(this.domNode);c.style(this.canvas,{width:this.size.w+"px",height:this.size.h+"px"});
this.canvas.height=this.size.h;this.canvas.width=this.size.w;var b=this;this.connect(this.domNode,"onmousedown",function(a){b.isAnimating()||(b.panX&&b.handleDragEnd(),b.downX=a.targetTouches?a.targetTouches[0].clientX:a.clientX,b.downY=a.targetTouches?a.targetTouches[0].clientY:a.clientY)});this.connect(this.domNode,"onmousemove",function(a){if(!b.isAnimating()&&(b.downX||0===b.downX)&&(b.downY||0===b.downY)&&(!b.disableSwipe&&1==b.zoom||!b.disableAutoZoom&&1!=b.zoom)){var c=a.targetTouches?a.targetTouches[0].clientY:
a.pageY;b.panX=(a.targetTouches?a.targetTouches[0].clientX:a.pageX)-b.downX;b.panY=c-b.downY;1==b.zoom?10<Math.abs(b.panX)&&b.render():(10<Math.abs(b.panX)||10<Math.abs(b.panY))&&b.render()}});this.connect(this.domNode,"onmouseout",function(a){!b.isAnimating()&&b.panX&&b.handleDragEnd()});this.connect(this.domNode,"onmouseover",function(a){b.downX=b.downY=null});this.connect(this.domNode,"onclick",function(a){if(!b.isAnimating()&&null!=b.downX&&null!=b.downY){var d=a.targetTouches?a.targetTouches[0].clientX:
a.pageX;a=a.targetTouches?a.targetTouches[0].clientY:a.pageY;if(14<Math.abs(b.panX)||14<Math.abs(b.panY))b.downX=b.downY=null,b.handleDragEnd();else if(b.downX=b.downY=null,!b.disableAutoZoom&&b._centerImg&&b._centerImg._loaded)if(1!=b.zoom)b.set("animatedZoom",1);else{var e=c._abs(b.domNode);b.zoomTo((d-e.x)/(b.size.w/b._centerImg.width)-b.panX,(a-e.y)/(b.size.h/b._centerImg.height)-b.panY,b.autoZoomLevel)}}});c.connect(this.domNode,"flick",this,"handleFlick")},isAnimating:function(){return this._anim&&
"playing"==this._anim.status()},handleDragEnd:function(){this.downX=this.downY=null;console.log("handleDragEnd");if(1==this.zoom){if(this.panX){var b=this._leftImg&&this._leftImg._loaded||this._leftSmallImg&&this._leftSmallImg._loaded,a=this._rightImg&&this._rightImg._loaded||this._rightSmallImg&&this._rightSmallImg._loaded;Math.abs(this.panX)<this._centerImg._baseWidth/2||!(0<this.panX&&b||0>this.panX&&a)?this._animPanTo(0,c.fx.easing.expoOut,700):this.moveTo(this.panX)}}else if(this.panX||this.panY)this.zoomCenterX-=
this.panX/this.zoom,this.zoomCenterY-=this.panY/this.zoom,this.panX=this.panY=0},handleFlick:function(b){1==this.zoom&&500>b.duration&&("ltr"==b.direction?this.moveTo(1):"rtl"==b.direction&&this.moveTo(-1),this.downX=this.downY=null)},moveTo:function(b){b=0<b?1:-1;var a;1>b?this._rightImg&&this._rightImg._loaded?a=this._rightImg:this._rightSmallImg&&this._rightSmallImg._loaded&&(a=this._rightSmallImg):this._leftImg&&this._leftImg._loaded?a=this._leftImg:this._leftSmallImg&&this._leftSmallImg._loaded&&
(a=this._leftSmallImg);this._moveDir=b;var d=this;a&&a._loaded?this._animPanTo(this.size.w*b,null,500,function(){d.panX=0;d.panY=0;0>b?d._switchImage("left","right"):d._switchImage("right","left");d.render();d.onChange(-1*b)}):(console.log("moveTo image not loaded!",a),this._animPanTo(0,c.fx.easing.expoOut,700))},_switchImage:function(b,a){var c="_"+b+"SmallImg",e="_"+b+"Img",g="_"+a+"SmallImg",k="_"+a+"Img";this[e]=this._centerImg;this[c]=this._centerSmallImg;this[e]._type=b;this[c]&&(this[c]._type=
b);this._centerImg=this[k];this._centerSmallImg=this[g];this._centerImg._type="center";this._centerSmallImg&&(this._centerSmallImg._type="center");this[k]=this[g]=null},_animPanTo:function(b,a,d,e){this._animCallback=e;this._anim=new c.Animation({curve:[this.panX,b],onAnimate:this._updateAnimatedPan,duration:d||500,easing:a,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim},onChange:function(b){},_updateAnimatedPan:function(b){this.panX=b;this.render()},_onAnimPanEnd:function(){this.panX=
this.panY=0;this._animCallback&&this._animCallback()},zoomTo:function(b,a,c){this.set("zoomCenterX",b);this.set("zoomCenterY",a);this.set("animatedZoom",c)},render:function(){this.canvas.getContext("2d").clearRect(0,0,this.canvas.width,this.canvas.height);this._renderImg(this._centerSmallImg,this._centerImg,1==this.zoom?0>this.panX?1:0<this.panX?-1:0:0);1==this.zoom&&0!=this.panX&&(0<this.panX?this._renderImg(this._leftSmallImg,this._leftImg,1):this._renderImg(this._rightSmallImg,this._rightImg,-1))},
_renderImg:function(b,a,c){if((b=a&&a._loaded?a:b)&&b._loaded){a=this.canvas.getContext("2d");var d=b._baseWidth*this.zoom,e=b._baseHeight*this.zoom,k=Math.min(this.size.w,d),l=Math.min(this.size.h,e),d=this.dispWidth=k/d*b.width,e=this.dispHeight=l/e*b.height,h=Math.max(0,Math.round((b.width-d)/2+(Math.floor(Math.max(d/2,Math.min(b.width-d/2,this.zoomCenterX-this.panX/this.zoom)))-b._centerX))),r=Math.max(0,Math.round((b.height-e)/2+(Math.floor(Math.max(e/2,Math.min(b.height-e/2,this.zoomCenterY-
this.panY/this.zoom)))-b._centerY))),n=Math.round(Math.max(0,this.canvas.width-k)/2),t=Math.round(Math.max(0,this.canvas.height-l)/2),m=k,p=d;1==this.zoom&&c&&this.panX&&(0>this.panX?0<c?(k-=Math.abs(this.panX),n=0):0>c&&(k=Math.max(1,Math.abs(this.panX)-5),n=this.size.w-k):0<c?(k=Math.max(1,Math.abs(this.panX)-5),n=0):0>c&&(k-=Math.abs(this.panX),n=this.size.w-k),d=Math.max(1,Math.floor(k/m*d)),0<c&&(h=h+p-d),h=Math.floor(h));try{a.drawImage(b,Math.max(0,h),r,Math.min(p,d),e,n,t,Math.min(m,k),l)}catch(u){console.log("Caught Error",
u,"type\x3d",b._type,"oldDestWidth \x3d ",m,"destWidth",k,"destX",n,"oldSourceWidth\x3d",p,"sourceWidth\x3d",d,"sourceX \x3d "+h)}}},_setZoomAttr:function(b){this.zoom=Math.min(this.maxZoom,Math.max(1,b));1==this.zoom&&this._centerImg&&this._centerImg._loaded&&(this.isAnimating()||(this.zoomCenterX=this._centerImg.width/2,this.zoomCenterY=this._centerImg.height/2),this.panX=this.panY=0);this.render()},_setZoomCenterXAttr:function(b){b!=this.zoomCenterX&&(this._centerImg&&this._centerImg._loaded&&
(b=Math.min(this._centerImg.width,b)),this.zoomCenterX=Math.max(0,Math.round(b)))},_setZoomCenterYAttr:function(b){b!=this.zoomCenterY&&(this._centerImg&&this._centerImg._loaded&&(b=Math.min(this._centerImg.height,b)),this.zoomCenterY=Math.max(0,Math.round(b)))},_setZoomCenterAttr:function(b){if(b.x!=this.zoomCenterX||b.y!=this.zoomCenterY)this.set("zoomCenterX",b.x),this.set("zoomCenterY",b.y),this.render()},_setAnimatedZoomAttr:function(b){this._anim&&"playing"==this._anim.status()||(this._anim=
new c.Animation({curve:[this.zoom,b],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd}),this._anim.play())},_updateAnimatedZoom:function(b){this._setZoomAttr(b)},_setCenterUrlAttr:function(b){this._setImage("center",b)},_setLeftUrlAttr:function(b){this._setImage("left",b)},_setRightUrlAttr:function(b){this._setImage("right",b)},_setImage:function(b,a){var d=null,e=null;c.isString(a)?e=a:(e=a.large,d=a.small);if(!this["_"+b+"Img"]||this["_"+b+"Img"]._src!=e){var g=this["_"+b+"Img"]=new Image;
g._type=b;g._loaded=!1;g._src=e;g._conn=c.connect(g,"onload",this.handleLoad);if(d){var k=this["_"+b+"SmallImg"]=new Image;k._type=b;k._loaded=!1;k._conn=c.connect(k,"onload",this.handleLoad);k._isSmall=!0;k._src=d;k.src=d}g.src=e}},handleLoad:function(b){b=b.target;b._loaded=!0;c.disconnect(b._conn);switch(b._type){case "center":this.zoomCenterX=b.width/2,this.zoomCenterY=b.height/2}var a=b.height,d=b.width;d/this.size.w<a/this.size.h?(b._baseHeight=this.canvas.height,b._baseWidth=d/(a/this.size.h)):
(b._baseWidth=this.canvas.width,b._baseHeight=a/(d/this.size.w));b._centerX=d/2;b._centerY=a/2;this.render();this.onLoad(b._type,b._src,b._isSmall)},onLoad:function(b,a,c){}})})},"dojo/fx/easing":function(){define(["../_base/lang"],function(c){var k={linear:function(c){return c},quadIn:function(c){return Math.pow(c,2)},quadOut:function(c){return c*(c-2)*-1},quadInOut:function(c){c*=2;return 1>c?Math.pow(c,2)/2:-1*(--c*(c-2)-1)/2},cubicIn:function(c){return Math.pow(c,3)},cubicOut:function(c){return Math.pow(c-
1,3)+1},cubicInOut:function(c){c*=2;return 1>c?Math.pow(c,3)/2:(Math.pow(c-2,3)+2)/2},quartIn:function(c){return Math.pow(c,4)},quartOut:function(c){return-1*(Math.pow(c-1,4)-1)},quartInOut:function(c){c*=2;return 1>c?Math.pow(c,4)/2:-.5*(Math.pow(c-2,4)-2)},quintIn:function(c){return Math.pow(c,5)},quintOut:function(c){return Math.pow(c-1,5)+1},quintInOut:function(c){c*=2;return 1>c?Math.pow(c,5)/2:(Math.pow(c-2,5)+2)/2},sineIn:function(c){return-1*Math.cos(Math.PI/2*c)+1},sineOut:function(c){return Math.sin(Math.PI/
2*c)},sineInOut:function(c){return-1*(Math.cos(Math.PI*c)-1)/2},expoIn:function(c){return 0==c?0:Math.pow(2,10*(c-1))},expoOut:function(c){return 1==c?1:-1*Math.pow(2,-10*c)+1},expoInOut:function(c){if(0==c)return 0;if(1==c)return 1;c*=2;if(1>c)return Math.pow(2,10*(c-1))/2;--c;return(-1*Math.pow(2,-10*c)+2)/2},circIn:function(c){return-1*(Math.sqrt(1-Math.pow(c,2))-1)},circOut:function(c){return Math.sqrt(1-Math.pow(c-1,2))},circInOut:function(c){c*=2;return 1>c?-.5*(Math.sqrt(1-Math.pow(c,2))-1):
.5*(Math.sqrt(1-Math.pow(c-2,2))+1)},backIn:function(c){return Math.pow(c,2)*(2.70158*c-1.70158)},backOut:function(c){--c;return Math.pow(c,2)*(2.70158*c+1.70158)+1},backInOut:function(c){c*=2;if(1>c)return Math.pow(c,2)*(3.5949095*c-2.5949095)/2;c-=2;return(Math.pow(c,2)*(3.5949095*c+2.5949095)+2)/2},elasticIn:function(c){if(0==c||1==c)return c;--c;return-1*Math.pow(2,10*c)*Math.sin(2*(c-.075)*Math.PI/.3)},elasticOut:function(c){return 0==c||1==c?c:Math.pow(2,-10*c)*Math.sin(2*(c-.075)*Math.PI/.3)+
1},elasticInOut:function(c){if(0==c)return 0;c*=2;if(2==c)return 1;var b=.3*1.5,a=b/4;if(1>c)return--c,-.5*Math.pow(2,10*c)*Math.sin(2*(c-a)*Math.PI/b);--c;return.5*Math.pow(2,-10*c)*Math.sin(2*(c-a)*Math.PI/b)+1},bounceIn:function(c){return 1-k.bounceOut(1-c)},bounceOut:function(c){return c<1/2.75?7.5625*Math.pow(c,2):c<2/2.75?7.5625*Math.pow(c-1.5/2.75,2)+.75:c<2.5/2.75?7.5625*Math.pow(c-2.25/2.75,2)+.9375:7.5625*Math.pow(c-2.625/2.75,2)+.984375},bounceInOut:function(c){return.5>c?k.bounceIn(2*
c)/2:k.bounceOut(2*c-1)/2+.5}};c.setObject("dojo.fx.easing",k);return k})},"dojox/mobile/app/ImageThumbView":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase,dojo/string"],function(c,k,e){c.provide("dojox.mobile.app.ImageThumbView");c.experimental("dojox.mobile.app.ImageThumbView");c.require("dijit._WidgetBase");c.require("dojo.string");c.declare("dojox.mobile.app.ImageThumbView",k._WidgetBase,{items:[],urlParam:"url",labelParam:null,itemTemplate:'\x3cdiv class\x3d"mblThumbInner"\x3e\x3cdiv class\x3d"mblThumbOverlay"\x3e\x3c/div\x3e\x3cdiv class\x3d"mblThumbMask"\x3e\x3cdiv class\x3d"mblThumbSrc" style\x3d"background-image:url(${url})"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
minPadding:4,maxPerRow:3,maxRows:-1,baseClass:"mblImageThumbView",thumbSize:"medium",animationEnabled:!0,selectedIndex:-1,cache:null,cacheMustMatch:!1,clickEvent:"onclick",cacheBust:!1,disableHide:!1,constructor:function(b,a){},postCreate:function(){this.inherited(arguments);var b=this;this.addThumb=c.hitch(this,this.addThumb);this.handleImgLoad=c.hitch(this,this.handleImgLoad);this.hideCached=c.hitch(this,this.hideCached);this._onLoadImages={};this.cache=[];this.visibleImages=[];this._cacheCounter=
0;this.connect(this.domNode,this.clickEvent,function(a){(a=b._getItemNodeFromEvent(a))&&!a._cached&&(b.onSelect(a._item,a._index,b.items),c.query(".selected",this.domNode).removeClass("selected"),c.addClass(a,"selected"))});c.addClass(this.domNode,this.thumbSize);this.resize();this.render()},onSelect:function(b,a,c){},_setAnimationEnabledAttr:function(b){this.animationEnabled=b;c[b?"addClass":"removeClass"](this.domNode,"animated")},_setItemsAttr:function(b){this.items=b||[];b={};var a;for(a=0;a<
this.items.length;a++)b[this.items[a][this.urlParam]]=1;var d=[],f;for(f in this._onLoadImages)!b[f]&&this._onLoadImages[f]._conn&&(c.disconnect(this._onLoadImages[f]._conn),this._onLoadImages[f].src=null,d.push(f));for(a=0;a<d.length;a++)delete this._onLoadImages[f];this.render()},_getItemNode:function(b){for(;b&&!c.hasClass(b,"mblThumb")&&b!=this.domNode;)b=b.parentNode;return b==this.domNode?null:b},_getItemNodeFromEvent:function(b){b.touches&&0<b.touches.length&&(b=b.touches[0]);return this._getItemNode(b.target)},
resize:function(){this._thumbSize=null;this._size=c.contentBox(this.domNode);this.disableHide=!0;this.render();this.disableHide=!1},hideCached:function(){for(var b=0;b<this.cache.length;b++)this.cache[b]&&c.style(this.cache[b],"display","none")},render:function(){for(var b,a,d;this.visibleImages&&0<this.visibleImages.length;)b=this.visibleImages.pop(),this.cache.push(b),this.disableHide||c.addClass(b,"hidden"),b._cached=!0;this.cache&&0<this.cache.length&&setTimeout(this.hideCached,1E3);if(this.items&&
0!=this.items.length){for(b=0;b<this.items.length&&!(d=this.items[b],a=c.isString(d)?d:d[this.urlParam],this.addThumb(d,a,b),0<this.maxRows&&(b+1)/this.maxPerRow>=this.maxRows);b++);if(this._thumbSize){a=0;d=-1;var f=this._thumbSize.w+2*this.padding,e=this._thumbSize.h+2*this.padding,k=this.thumbNodes=c.query(".mblThumb",this.domNode),l=0,k=this.visibleImages;for(b=0;b<k.length;b++)if(!k[b]._cached){0==l%this.maxPerRow&&d++;a=l%this.maxPerRow;this.place(k[b],a*f+this.padding,d*e+this.padding);k[b]._loading||
c.removeClass(k[b],"hidden");if(l==this.selectedIndex)c[l==this.selectedIndex?"addClass":"removeClass"](k[b],"selected");l++}this._numRows=b=Math.ceil(l/this.maxPerRow);this.setContainerHeight(b*(this._thumbSize.h+2*this.padding))}}},setContainerHeight:function(b){c.style(this.domNode,"height",b+"px")},addThumb:function(b,a,d){var f,e=!1;if(0<this.cache.length){for(var k=0;k<this.cache.length;k++)if(this.cache[k]._url==a){f=this.cache.splice(k,1)[0];break}f||this.cacheMustMatch?e=!0:(f=this.cache.pop(),
c.removeClass(f,"selected"))}f||(f=c.create("div",{"class":"mblThumb hidden",innerHTML:c.string.substitute(this.itemTemplate,{url:a},null,this)},this.domNode));this.labelParam&&((k=c.query(".mblThumbLabel",f)[0])||(k=c.create("div",{"class":"mblThumbLabel"},f)),k.innerHTML=b[this.labelParam]||"");c.style(f,"display","");this.disableHide||c.addClass(f,"hidden");!e&&(e=c.create("img",{}),e._thumbDiv=f,e._conn=c.connect(e,"onload",this.handleImgLoad),e._url=a,f._loading=!0,this._onLoadImages[a]=e)&&
(e.src=a);this.visibleImages.push(f);f._index=d;f._item=b;f._url=a;f._cached=!1;this._thumbSize||(this._thumbSize=c.marginBox(f),0==this._thumbSize.h&&(this._thumbSize.h=100,this._thumbSize.w=100),this.labelParam&&(this._thumbSize.h+=8),this.calcPadding())},handleImgLoad:function(b){b=b.target;c.disconnect(b._conn);c.removeClass(b._thumbDiv,"hidden");b._thumbDiv._loading=!1;b._conn=null;var a=b._url;this.cacheBust&&(a+=(-1<a.indexOf("?")?"\x26":"?")+"cacheBust\x3d"+(new Date).getTime()+"_"+this._cacheCounter++);
c.query(".mblThumbSrc",b._thumbDiv).style("backgroundImage","url("+a+")");delete this._onLoadImages[b._url]},calcPadding:function(){var b=this._size.w,a=this._thumbSize.w;this.maxPerRow=Math.floor(b/(a+this.minPadding));this.padding=Math.floor((b-a*this.maxPerRow)/(2*this.maxPerRow))},place:function(b,a,d){c.style(b,{"-webkit-transform":"translate("+a+"px,"+d+"px)"})},destroy:function(){var b,a=0,c;for(c in this._onLoadImages)if(b=this._onLoadImages[c])b.src=null,a++;this.inherited(arguments)}})})},
"*noref":1}});define("dojox/mobile/app",["./app/_base"],function(c){return c});