/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>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(_1,_2,_3){_1.provide("dojox.mobile.app._base");_1.experimental("dojox.mobile.app._base");_1.require("dijit._base");_1.require("dijit._WidgetBase");_1.require("dojox.mobile");_1.require("dojox.mobile.parser");_1.require("dojox.mobile.Button");_1.require("dojox.mobile.app._event");_1.require("dojox.mobile.app._Widget");_1.require("dojox.mobile.app.StageController");_1.require("dojox.mobile.app.SceneController");_1.require("dojox.mobile.app.SceneAssistant");_1.require("dojox.mobile.app.AlertDialog");_1.require("dojox.mobile.app.List");_1.require("dojox.mobile.app.ListSelector");_1.require("dojox.mobile.app.TextBox");_1.require("dojox.mobile.app.ImageView");_1.require("dojox.mobile.app.ImageThumbView");(function(){var _4;var _5;var _6=["dojox.mobile","dojox.mobile.parser"];var _7={};var _8;var _9;var _a=[];function _b(_c,_d){var _e;var _f;do{_e=_c.pop();if(_e.source){_f=_e.source;}else{if(_e.module){_f=_1.moduleUrl(_e.module)+".js";}else{return;}}}while(_c.length>0&&_7[_f]);if(_c.length<1&&_7[_f]){_d();return;}_1.xhrGet({url:_f,sync:false}).addCallbacks(function(_10){_1["eval"](_10);_7[_f]=true;if(_c.length>0){_b(_c,_d);}else{_d();}},function(){});};var _11=function(){_4=new _3.mobile.app.StageController(_9);var _12={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(_1.global["appInfo"]){_1.mixin(_12,_1.global["appInfo"]);}_5=_3.mobile.app.info=_12;if(_5.title){var _13=_1.query("head title")[0]||_1.create("title",{},_1.query("head")[0]);document.title=_5.title;}_4.pushScene(_5.initialScene);};var _14=function(){var _15=false;if(_1.global.BackButton){BackButton.override();_1.connect(document,"backKeyDown",function(e){_1.publish("/dojox/mobile/app/goback");});_15=true;}else{if(_1.global.Mojo){}}if(_15){_1.addClass(_1.body(),"mblNativeBack");}};_1.mixin(_3.mobile.app,{init:function(_16){_9=_16||_1.body();_3.mobile.app.STAGE_CONTROLLER_ACTIVE=true;_1.subscribe("/dojox/mobile/app/goback",function(){_4.popScene();});_1.subscribe("/dojox/mobile/app/alert",function(_17){_3.mobile.app.getActiveSceneController().showAlertDialog(_17);});_1.subscribe("/dojox/mobile/app/pushScene",function(_18,_19){_4.pushScene(_18,_19||{});});_1.xhrGet({url:"view-resources.json",load:function(_1a){var _1b=[];if(_1a){_a=_1a=_1.fromJson(_1a);for(var i=0;i<_1a.length;i++){if(!_1a[i].scene){_1b.push(_1a[i]);}}}if(_1b.length>0){_b(_1b,_11);}else{_11();}},error:_11});_14();},getActiveSceneController:function(){return _4.getActiveSceneController();},getStageController:function(){return _4;},loadResources:function(_1c,_1d){_b(_1c,_1d);},loadResourcesForScene:function(_1e,_1f){var _20=[];for(var i=0;i<_a.length;i++){if(_a[i].scene==_1e){_20.push(_a[i]);}}if(_20.length>0){_b(_20,_1f);}else{_1f();}},resolveTemplate:function(_21){return "app/views/"+_21+"/"+_21+"-scene.html";},resolveAssistant:function(_22){return "app/assistants/"+_22+"-assistant.js";}});})();});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_23){return _23.dijit;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_24){return _24.dojox;});},"dojo/require":function(){define(["./_base/loader"],function(_25){return {dynamic:0,normalize:function(id){return id;},load:_25.require};});},"dijit/_base":function(){define("dijit/_base",["./main","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_26){return _26._base;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/sniff","./main"],function(_27,dom,_28,_29,_2a,has,_2b){var _2c;var _2d={_isElementShown:function(_2e){var s=_29.get(_2e);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_28.get(_2e,"type")!="hidden");},hasDefaultTabStop:function(_2f){switch(_2f.nodeName.toLowerCase()){case "a":return _28.has(_2f,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _30;try{var _31=_2f.contentDocument;if("designMode" in _31&&_31.designMode=="on"){return true;}_30=_31.body;}catch(e1){try{_30=_2f.contentWindow.document.body;}catch(e2){return false;}}return _30&&(_30.contentEditable=="true"||(_30.firstChild&&_30.firstChild.contentEditable=="true"));default:return _2f.contentEditable=="true";}},effectiveTabIndex:function(_32){if(_28.get(_32,"disabled")){return _2c;}else{if(_28.has(_32,"tabIndex")){return +_28.get(_32,"tabIndex");}else{return _2d.hasDefaultTabStop(_32)?0:_2c;}}},isTabNavigable:function(_33){return _2d.effectiveTabIndex(_33)>=0;},isFocusable:function(_34){return _2d.effectiveTabIndex(_34)>=-1;},_getTabNavigable:function(_35){var _36,_37,_38,_39,_3a,_3b,_3c={};function _3d(_3e){return _3e&&_3e.tagName.toLowerCase()=="input"&&_3e.type&&_3e.type.toLowerCase()=="radio"&&_3e.name&&_3e.name.toLowerCase();};var _3f=_2d._isElementShown,_40=_2d.effectiveTabIndex;var _41=function(_42){for(var _43=_42.firstChild;_43;_43=_43.nextSibling){if(_43.nodeType!=1||(has("ie")<=9&&_43.scopeName!=="HTML")||!_3f(_43)){continue;}var _44=_40(_43);if(_44>=0){if(_44==0){if(!_36){_36=_43;}_37=_43;}else{if(_44>0){if(!_38||_44<_39){_39=_44;_38=_43;}if(!_3a||_44>=_3b){_3b=_44;_3a=_43;}}}var rn=_3d(_43);if(_28.get(_43,"checked")&&rn){_3c[rn]=_43;}}if(_43.nodeName.toUpperCase()!="SELECT"){_41(_43);}}};if(_3f(_35)){_41(_35);}function rs(_45){return _3c[_3d(_45)]||_45;};return {first:rs(_36),last:rs(_37),lowest:rs(_38),highest:rs(_3a)};},getFirstInTabbingOrder:function(_46,doc){var _47=_2d._getTabNavigable(dom.byId(_46,doc));return _47.lowest?_47.lowest:_47.first;},getLastInTabbingOrder:function(_48,doc){var _49=_2d._getTabNavigable(dom.byId(_48,doc));return _49.last?_49.last:_49.highest;}};1&&_2a.mixin(_2b,_2d);return _2d;});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_4a,_4b,_4c,_4d){var _4e=_4b("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_4f){if(this._hash[_4f.id]){throw new Error("Tried to register widget with id=="+_4f.id+" but that id is already registered");}this._hash[_4f.id]=_4f;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_50,_51){_51=_51||_4c.global;var i=0,id;for(id in this._hash){_50.call(_51,this._hash[id],i++,this._hash);}return this;},filter:function(_52,_53){_53=_53||_4c.global;var res=new _4e(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_52.call(_53,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _4e(),id,_54;for(id in this._hash){_54=this._hash[id];if(_54.declaredClass==cls){res.add(_54);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_55,_56){return _4a.map(this.toArray(),_55,_56);},every:function(_57,_58){_58=_58||_4c.global;var x=0,i;for(i in this._hash){if(!_57.call(_58,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_59,_5a){_5a=_5a||_4c.global;var x=0,i;for(i in this._hash){if(_59.call(_5a,this._hash[i],x++,this._hash)){return true;}}return false;}});_4a.forEach(["forEach","filter","byClass","map","every","some"],function(_5b){_4d[_5b]=_4e.prototype[_5b];});return _4e;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_5c,has,_5d,win,_5e){var _5f={},_60={};var _61={length:0,add:function(_62){if(_60[_62.id]){throw new Error("Tried to register widget with id=="+_62.id+" but that id is already registered");}_60[_62.id]=_62;this.length++;},remove:function(id){if(_60[id]){delete _60[id];this.length--;}},byId:function(id){return typeof id=="string"?_60[id]:id;},byNode:function(_63){return _60[_63.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _60){ar.push(_60[id]);}return ar;},getUniqueId:function(_64){var id;do{id=_64+"_"+(_64 in _5f?++_5f[_64]:_5f[_64]=0);}while(_60[id]);return _5e._scopeName=="dijit"?id:_5e._scopeName+"_"+id;},findWidgets:function(_65,_66){var _67=[];function _68(_69){for(var _6a=_69.firstChild;_6a;_6a=_6a.nextSibling){if(_6a.nodeType==1){var _6b=_6a.getAttribute("widgetId");if(_6b){var _6c=_60[_6b];if(_6c){_67.push(_6c);}}else{if(_6a!==_66){_68(_6a);}}}}};_68(_65);return _67;},_destroyAll:function(){_5e._curFocus=null;_5e._prevFocus=null;_5e._activeStack=[];_5c.forEach(_61.findWidgets(win.body()),function(_6d){if(!_6d._destroyed){if(_6d.destroyRecursive){_6d.destroyRecursive();}else{if(_6d.destroy){_6d.destroy();}}}});},getEnclosingWidget:function(_6e){while(_6e){var id=_6e.nodeType==1&&_6e.getAttribute("widgetId");if(id){return _60[id];}_6e=_6e.parentNode;}return null;},_hash:_60};_5e.registry=_61;return _61;});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../main"],function(_6f,dom,_70,_71,win,_72,_73){var _74={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _73.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_72.curNode;if(win.global.getSelection){sel=win.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i=_ac;i--){_ad=_99.byId(_ab[i]);if(_ad){_ad._hasBeenBlurred=true;_ad.set("focused",false);if(_ad._focusManager==this){_ad._onBlur(by);}this.emit("widget-blur",_ad,by);}}for(i=_ac;i<_aa.length;i++){_ad=_99.byId(_aa[i]);if(_ad){_ad.set("focused",true);if(_ad._focusManager==this){_ad._onFocus(by);}this.emit("widget-focus",_ad,by);}}},focus:function(_ae){if(_ae){try{_ae.focus();}catch(e){}}}});var _af=new _9c();_94(function(){var _b0=_af.registerWin(_97.get(win.doc));if(has("ie")){_96.addOnWindowUnload(function(){if(_b0){_b0.remove();_b0=null;}});}});_9a.focus=function(_b1){_af.focus(_b1);};for(var _b2 in _af){if(!/^_/.test(_b2)){_9a.focus[_b2]=typeof _af[_b2]=="function"?_93.hitch(_af,_b2):_af[_b2];}}_af.watch(function(_b3,_b4,_b5){_9a.focus[_b3]=_b5;});return _af;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_b6,_b7,_b8,_b9){return _b6("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(_ba){var apn=this._attrPairNames;if(apn[_ba]){return apn[_ba];}return (apn[_ba]={s:"_"+_ba+"Setter",g:"_"+_ba+"Getter"});},postscript:function(_bb){if(_bb){this.set(_bb);}},_get:function(_bc,_bd){return typeof this[_bd.g]==="function"?this[_bd.g]():this[_bc];},get:function(_be){return this._get(_be,this._getAttrNames(_be));},set:function(_bf,_c0){if(typeof _bf==="object"){for(var x in _bf){if(_bf.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,_bf[x]);}}return this;}var _c1=this._getAttrNames(_bf),_c2=this._get(_bf,_c1),_c3=this[_c1.s],_c4;if(typeof _c3==="function"){_c4=_c3.apply(this,Array.prototype.slice.call(arguments,1));}else{this[_bf]=_c0;}if(this._watchCallbacks){var _c5=this;_b9(_c4,function(){_c5._watchCallbacks(_bf,_c2,_c0);});}return this;},_changeAttrValue:function(_c6,_c7){var _c8=this.get(_c6);this[_c6]=_c7;if(this._watchCallbacks){this._watchCallbacks(_c6,_c8,_c7);}return this;},watch:function(_c9,_ca){var _cb=this._watchCallbacks;if(!_cb){var _cc=this;_cb=this._watchCallbacks=function(_cd,_ce,_cf,_d0){var _d1=function(_d2){if(_d2){_d2=_d2.slice();for(var i=0,l=_d2.length;i-1){_d3.splice(_d5,1);}};return _d4;}});});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_d6,has,_d7,dom,_d8,_d9,_da){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var _db=_d7.body(doc),_dc=_da.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_db,"last"),div=_da.create("div",{style:{overflow:"hidden",direction:"ltr"}},_dc,"last"),ret=_d8.position(div).x!=0;_dc.removeChild(div);_db.removeChild(_dc);return ret;});has.add("position-fixed-support",function(win,doc){var _dd=_d7.body(doc),_de=_da.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_dd,"last"),_df=_da.create("span",{style:{position:"fixed",left:"0",top:"0"}},_de,"last"),ret=_d8.position(_df).x!=_d8.position(_de).x;_de.removeChild(_df);_dd.removeChild(_de);return ret;});var _e0={getBox:function(doc){doc=doc||_d7.doc;var _e1=(doc.compatMode=="BackCompat")?_d7.body(doc):doc.documentElement,_e2=_d8.docScroll(doc),w,h;if(has("touch")){var _e3=_e0.get(doc);w=_e3.innerWidth||_e1.clientWidth;h=_e3.innerHeight||_e1.clientHeight;}else{w=_e1.clientWidth;h=_e1.clientHeight;}return {l:_e2.x,t:_e2.y,w:w,h:h};},get:function(doc){if(has("ie")&&_e0!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(_e4,pos){try{_e4=dom.byId(_e4);var doc=_e4.ownerDocument||_d7.doc,_e5=_d7.body(doc),_e6=doc.documentElement||_e5.parentNode,_e7=has("ie"),_e8=has("webkit");if(_e4==_e5||_e4==_e6){return;}if(!(has("mozilla")||_e7||_e8||has("opera")||has("trident"))&&("scrollIntoView" in _e4)){_e4.scrollIntoView(false);return;}var _e9=doc.compatMode=="BackCompat",_ea=Math.min(_e5.clientWidth||_e6.clientWidth,_e6.clientWidth||_e5.clientWidth),_eb=Math.min(_e5.clientHeight||_e6.clientHeight,_e6.clientHeight||_e5.clientHeight),_ec=(_e8||_e9)?_e5:_e6,_ed=pos||_d8.position(_e4),el=_e4.parentNode,_ee=function(el){return (_e7<=6||(_e7==7&&_e9))?false:(has("position-fixed-support")&&(_d9.get(el,"position").toLowerCase()=="fixed"));},_ef=this,_f0=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){_ef.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_ee(_e4)){return;}while(el){if(el==_e5){el=_ec;}var _f1=_d8.position(el),_f2=_ee(el),rtl=_d9.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_ec){_f1.w=_ea;_f1.h=_eb;if(_ec==_e6&&(_e7||has("trident"))&&rtl){_f1.x+=_ec.offsetWidth-_f1.w;}_f1.x=0;_f1.y=0;}else{var pb=_d8.getPadBorderExtents(el);_f1.w-=pb.w;_f1.h-=pb.h;_f1.x+=pb.l;_f1.y+=pb.t;var _f3=el.clientWidth,_f4=_f1.w-_f3;if(_f3>0&&_f4>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_f1.x+=_f4;}_f1.w=_f3;}_f3=el.clientHeight;_f4=_f1.h-_f3;if(_f3>0&&_f4>0){_f1.h=_f3;}}if(_f2){if(_f1.y<0){_f1.h+=_f1.y;_f1.y=0;}if(_f1.x<0){_f1.w+=_f1.x;_f1.x=0;}if(_f1.y+_f1.h>_eb){_f1.h=_eb-_f1.y;}if(_f1.x+_f1.w>_ea){_f1.w=_ea-_f1.x;}}var l=_ed.x-_f1.x,t=_ed.y-_f1.y,r=l+_ed.w-_f1.w,bot=t+_ed.h-_f1.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_ec||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e7==8&&!_e9)||has("trident")>=5)){s=-s;}old=el.scrollLeft;_f0(el,s,0);s=el.scrollLeft-old;_ed.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_ec||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_f0(el,0,s);s=el.scrollTop-old;_ed.y-=s;}el=(el!=_ec)&&!_f2&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_e4.scrollIntoView(false);}}};1&&_d6.setObject("dojo.window",_e0);return _e0;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(_f5,_f6,_f7,_f8,_f9){var _fa={};_f5.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(_fb){_fa[_fb]=_f8[_fb];});_f7.mixin(_fa,{defaultDuration:_f6["defaultDuration"]||200});_f7.mixin(_f9,_fa);return _f9;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(_fc,_fd,_fe,_ff,_100){var _101={};_101.getViewport=function(){return _fe.getBox();};_101.placeOnScreen=_ff.at;_101.placeOnScreenAroundElement=function(node,_102,_103,_104){var _105;if(_fd.isArray(_103)){_105=_103;}else{_105=[];for(var key in _103){_105.push({aroundCorner:key,corner:_103[key]});}}return _ff.around(node,_102,_105,true,_104);};_101.placeOnScreenAroundNode=_101.placeOnScreenAroundElement;_101.placeOnScreenAroundRectangle=_101.placeOnScreenAroundElement;_101.getPopupAroundAlignment=function(_106,_107){var _108={};_fc.forEach(_106,function(pos){var ltr=_107;switch(pos){case "after":_108[_107?"BR":"BL"]=_107?"BL":"BR";break;case "before":_108[_107?"BL":"BR"]=_107?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_108[ltr?"BL":"BR"]=ltr?"TL":"TR";_108[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_108[ltr?"TL":"TR"]=ltr?"BL":"BR";_108[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _108;};_fd.mixin(_100,_101);return _100;});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","./Viewport","./main"],function(_109,_10a,_10b,_10c,win,_10d,_10e){function _10f(node,_110,_111,_112){var view=_10d.getEffectiveBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body(node.ownerDocument).appendChild(node);}var best=null;_109.some(_110,function(_113){var _114=_113.corner;var pos=_113.pos;var _115=0;var _116={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_114.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_114.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_111){var res=_111(node,_113.aroundCorner,_114,_116,_112);_115=typeof res=="undefined"?0:res;}var _117=node.style;var _118=_117.display;var _119=_117.visibility;if(_117.display=="none"){_117.visibility="hidden";_117.display="";}var bb=_10a.position(node);_117.display=_118;_117.visibility=_119;var _11a={"L":pos.x,"R":pos.x-bb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(bb.w>>1))-bb.w)}[_114.charAt(1)],_11b={"T":pos.y,"B":pos.y-bb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(bb.h>>1))-bb.h)}[_114.charAt(0)],_11c=Math.max(view.l,_11a),_11d=Math.max(view.t,_11b),endX=Math.min(view.l+view.w,_11a+bb.w),endY=Math.min(view.t+view.h,_11b+bb.h),_11e=endX-_11c,_11f=endY-_11d;_115+=(bb.w-_11e)+(bb.h-_11f);if(best==null||_115>1)}[_132.charAt(1)],y:{"T":y,"B":y+_130,"M":y+(_130>>1)}[_132.charAt(0)]}});};_109.forEach(_126,function(pos){var ltr=_127;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _134=_10f(node,_131,_128,{w:_12f,h:_130});_134.aroundNodePos=_129;return _134;}};return _10e.place=_120;});},"dijit/Viewport":function(){define("dijit/Viewport",["dojo/Evented","dojo/on","dojo/ready","dojo/sniff","dojo/_base/window","dojo/window"],function(_135,on,_136,has,win,_137){var _138=new _135();var _139;_136(200,function(){var _13a=_137.getBox();_138._rlh=on(win.global,"resize",function(){var _13b=_137.getBox();if(_13a.h==_13b.h&&_13a.w==_13b.w){return;}_13a=_13b;_138.emit("resize");});if(has("ie")==8){var _13c=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_13c){_13c=screen.deviceXDPI;_138.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_139=evt.target;});on(document,"focusout",function(evt){_139=null;});}});_138.getEffectiveBox=function(doc){var box=_137.getBox(doc);var tag=_139&&_139.tagName&&_139.tagName.toLowerCase();if(has("ios")&&_139&&!_139.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_139.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var rect=_139.getBoundingClientRect();box.h=Math.max(box.h,rect.top+rect.height);}return box;};return _138;});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_13d,win,_13e){var _13f=_13e._createWrapper;_13e._createWrapper=function(_140){if(!_140.declaredClass){_140={_popupWrapper:(_140.parentNode&&_13d.contains(_140.parentNode,"dijitPopup"))?_140.parentNode:null,domNode:_140,destroy:function(){},ownerDocument:_140.ownerDocument,ownerDocumentBody:win.body(_140.ownerDocument)};}return _13f.call(this,_140);};var _141=_13e.open;_13e.open=function(args){if(args.orient&&typeof args.orient!="string"&&!("length" in args.orient)){var ary=[];for(var key in args.orient){ary.push({aroundCorner:key,corner:args.orient[key]});}args.orient=ary;}return _141.call(this,args);};return _13e;});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","./place","./BackgroundIframe","./main"],function(_142,_143,_144,_145,dom,_146,_147,_148,_149,_14a,has,keys,lang,on,_14b,_14c,_14d){function _14e(){if(this._popupWrapper){_147.destroy(this._popupWrapper);delete this._popupWrapper;}};var _14f=_145(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_150){var _151=_150._popupWrapper,node=_150.domNode;if(!_151){_151=_147.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":_150["aria-label"]||_150.label||_150.name||_150.id},_150.ownerDocumentBody);_151.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_150._popupWrapper=_151;_143.after(_150,"destroy",_14e,true);}return _151;},moveOffScreen:function(_152){var _153=this._createWrapper(_152);_149.set(_153,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_154){var _155=this._createWrapper(_154);_149.set(_155,"display","none");},getTopPopup:function(){var _156=this._stack;for(var pi=_156.length-1;pi>0&&_156[pi].parent===_156[pi-1].widget;pi--){}return _156[pi];},open:function(args){var _157=this._stack,_158=args.popup,_159=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_148.isBodyLtr(_158.ownerDocument),_15a=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_157.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_157[_157.length-1].widget.domNode))){this.close(_157[_157.length-1].widget);}var _15b=this._createWrapper(_158);_146.set(_15b,{id:id,style:{zIndex:this._beginZIndex+_157.length},"class":"dijitPopup "+(_158.baseClass||_158["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("bgIframe")&&!_158.bgIframe){_158.bgIframe=new _14c(_15b);}var best=_15a?_14b.around(_15b,_15a,_159,ltr,_158.orient?lang.hitch(_158,"orient"):null):_14b.at(_15b,args,_159=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_15b.style.display="";_15b.style.visibility="visible";_158.domNode.style.visibility="visible";var _15c=[];_15c.push(on(_15b,_144._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_14a.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_14a.stop(evt);var _15d=this.getTopPopup();if(_15d&&_15d.onCancel){_15d.onCancel();}}}})));if(_158.onCancel&&args.onCancel){_15c.push(_158.on("cancel",args.onCancel));}_15c.push(_158.on(_158.onExecute?"execute":"change",lang.hitch(this,function(){var _15e=this.getTopPopup();if(_15e&&_15e.onExecute){_15e.onExecute();}})));_157.push({widget:_158,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_15c});if(_158.onOpen){_158.onOpen(best);}return best;},close:function(_15f){var _160=this._stack;while((_15f&&_142.some(_160,function(elem){return elem.widget==_15f;}))||(!_15f&&_160.length)){var top=_160.pop(),_161=top.widget,_162=top.onClose;if(_161.onClose){_161.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_161&&_161.domNode){this.hide(_161);}if(_162){_162();}}}});return (_14d.popup=new _14f());});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require","./main","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/sniff","dojo/_base/window"],function(_163,_164,_165,_166,_167,lang,on,has,win){has.add("bgIframe",has("ie")||has("mozilla"));var _168=new function(){var _169=[];this.pop=function(){var _16a;if(_169.length){_16a=_169.pop();_16a.style.display="";}else{if(has("ie")<9){var burl=_165["dojoBlankHtmlUrl"]||_163.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="