//>>built define("dojox/app/main",["dojo/_base/kernel","require","dojo/_base/lang","dojo/_base/declare","dojo/Deferred","dojo/when","dojo/has","dojo/_base/config","dojo/on","dojo/ready","dojo/_base/window","dojo/dom-construct","./model","./View","./controllers/Load","./controllers/Transition","./controllers/Layout"],function(_1,_2,_3,_4,_5,_6,_7,_8,on,_9,_a,_b,_c,_d,_e,_f,_10){ _1.experimental("dojox.app"); _7.add("app-log-api",(_8["app"]||{}).debugApp); var _11=_4(null,{constructor:function(_12,_13){ _3.mixin(this,_12); this.params=_12; this.id=_12.id; this.defaultView=_12.defaultView; this.widgetId=_12.id; this.controllers=[]; this.children={}; this.loadedModels={}; this.domNode=_b.create("div",{id:this.id+"_Root",style:"width:100%; height:100%; overflow-y:hidden; overflow-x:hidden;"}); _13.appendChild(this.domNode); },createDataStore:function(_14){ if(_14.stores){ for(var _15 in _14.stores){ if(_15.charAt(0)!=="_"){ var _16=_14.stores[_15].type?_14.stores[_15].type:"dojo/store/Memory"; var _17={}; if(_14.stores[_15].params){ _3.mixin(_17,_14.stores[_15].params); } var _18=_2(_16); if(_17.data&&_3.isString(_17.data)){ _17.data=_3.getObject(_17.data); } _14.stores[_15].store=new _18(_17); } } } },createControllers:function(_19){ if(_19){ var _1a=[]; for(var i=0;i<_19.length;i++){ _1a.push(_19[i]); } var def=new _5(); var _1b; try{ _1b=_2.on("error",function(_1c){ if(def.isResolved()||def.isRejected()){ return; } def.reject("load controllers error."); _1b.remove(); }); _2(_1a,function(){ def.resolve.call(def,arguments); _1b.remove(); }); } catch(ex){ def.reject("load controllers error."); _1b.remove(); } var _1d=new _5(); _6(def,_3.hitch(this,function(){ for(var i=0;i