/*
	Copyright (c) 2004-2007, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

dojo._xdResourceLoaded({depends:[["provide","dijit._base.focus"],["provide","dijit._base.manager"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dijit._base.sniff"],["provide","dijit._base.bidi"],["provide","dijit._base.typematic"],["provide","dijit._base.wai"],["provide","dijit._base"],["provide","dojo.date.stamp"],["provide","dojo.parser"],["provide","dijit._Widget"],["provide","dojo.string"],["provide","dijit._Templated"],["provide","dijit._Container"],["provide","dijit.layout._LayoutWidget"],["provide","dijit.form._FormWidget"],["provide","dijit.dijit"]],defineResource:function(_1){if(!_1._hasResource["dijit._base.focus"]){_1._hasResource["dijit._base.focus"]=true;_1.provide("dijit._base.focus");_1.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _2=_1.global;var _3=_1.doc;if(_3.selection){return !_3.selection.createRange().text;}else{if(_2.getSelection){var _4=_2.getSelection();if(_1.isString(_4)){return !_4;}else{return _4.isCollapsed||!_4.toString();}}}},getBookmark:function(){var _5,_6=_1.doc.selection;if(_6){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){_5=_7.length?_1._toArray(_7):null;}else{_5=_7.getBookmark();}}else{if(_1.global.getSelection){_6=_1.global.getSelection();if(_6){var _7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_8){var _9=_1.doc;if(_9.selection){var _a;if(_1.isArray(_8)){_a=_9.body.createControlRange();_1.forEach(_8,_a.addElement);}else{_a=_9.selection.createRange();_a.moveToBookmark(_8);}_a.select();}else{var _b=_1.global.getSelection&&_1.global.getSelection();if(_b&&_b.removeAllRanges){_b.removeAllRanges();_b.addRange(_8);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(_c,_d){return {node:_c&&_1.isDescendant(dijit._curFocus,_c.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!_1.withGlobal(_d||_1.global,dijit.isCollapsed)?_1.withGlobal(_d||_1.global,dijit.getBookmark):null,openedForWindow:_d};},focus:function(_e){if(!_e){return;}var _f="node" in _e?_e.node:_e,_10=_e.bookmark,_11=_e.openedForWindow;if(_f){var _12=(_f.tagName.toLowerCase()=="iframe")?_f.contentWindow:_f;if(_12&&_12.focus){try{_12.focus();}catch(e){}}dijit._onFocusNode(_f);}if(_10&&_1.withGlobal(_11||_1.global,dijit.isCollapsed)){if(_11){_11.focus();}try{_1.withGlobal(_11||_1.global,moveToBookmark,null,[_10]);}catch(e){}}},_activeStack:[],registerWin:function(_13){if(!_13){_13=window;}_1.connect(_13.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _15=_13.document.body||_13.document.getElementsByTagName("body")[0];if(_15){if(_1.isIE){_15.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_15.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_15.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_15.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_15=null;},_onBlurNode:function(_1a){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(_1a);if(w&&w._setStateClass){w._focused=false;w._setStateClass();}if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);},100);},_onTouchNode:function(_1c){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _1d=[];try{while(_1c){if(_1c.dijitPopupParent){_1c=dijit.byId(_1c.dijitPopupParent).domNode;}else{if(_1c.tagName&&_1c.tagName.toLowerCase()=="body"){if(_1c===_1.body()){break;}_1c=_1.query("iframe").filter(function(_1e){return _1e.contentDocument.body===_1c;})[0];}else{var id=_1c.getAttribute&&_1c.getAttribute("widgetId");if(id){_1d.unshift(id);}_1c=_1c.parentNode;}}}}catch(e){}dijit._setStack(_1d);},_onFocusNode:function(_20){if(_20&&_20.tagName&&_20.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_20);if(_20==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=_20;_1.publish("focusNode",[_20]);var w=dijit.getEnclosingWidget(_20);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_22){var _23=dijit._activeStack;dijit._activeStack=_22;for(var _24=0;_24<Math.min(_23.length,_22.length);_24++){if(_23[_24]!=_22[_24]){break;}}for(var i=_23.length-1;i>=_24;i--){var _26=dijit.byId(_23[i]);if(_26){_1.publish("widgetBlur",[_26]);if(_26._onBlur){_26._onBlur();}}}for(var i=_24;i<_22.length;i++){var _26=dijit.byId(_22[i]);if(_26){_1.publish("widgetFocus",[_26]);if(_26._onFocus){_26._onFocus();}}}}});_1.addOnLoad(dijit.registerWin);}if(!_1._hasResource["dijit._base.manager"]){_1._hasResource["dijit._base.manager"]=true;_1.provide("dijit._base.manager");_1.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_27){if(this._hash[_27.id]){throw new Error("Tried to register widget with id=="+_27.id+" but that id is already registered");}this._hash[_27.id]=_27;},remove:function(id){delete this._hash[id];},forEach:function(_29){for(var id in this._hash){_29(this._hash[id]);}},filter:function(_2b){var res=new dijit.WidgetSet();this.forEach(function(_2d){if(_2b(_2d)){res.add(_2d);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_30){return _30.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_31){var id;do{id=_31+"_"+(dijit._widgetTypeCtr[_31]!==undefined?++dijit._widgetTypeCtr[_31]:dijit._widgetTypeCtr[_31]=0);}while(dijit.byId(id));return id;};if(_1.isIE){_1.addOnUnload(function(){dijit.registry.forEach(function(_33){_33.destroy();});});}dijit.byId=function(id){return (_1.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_35){return dijit.registry.byId(_35.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_36){while(_36){if(_36.getAttribute&&_36.getAttribute("widgetId")){return dijit.registry.byId(_36.getAttribute("widgetId"));}_36=_36.parentNode;}return null;};}if(!_1._hasResource["dijit._base.place"]){_1._hasResource["dijit._base.place"]=true;_1.provide("dijit._base.place");dijit.getViewport=function(){var _37=_1.global;var _38=_1.doc;var w=0,h=0;if(_1.isMozilla){var _3b,_3c,_3d,_3e;if(_38.body.clientWidth>_38.documentElement.clientWidth){_3b=_38.documentElement.clientWidth;_3d=_38.body.clientWidth;}else{_3d=_38.documentElement.clientWidth;_3b=_38.body.clientWidth;}if(_38.body.clientHeight>_38.documentElement.clientHeight){_3c=_38.documentElement.clientHeight;_3e=_38.body.clientHeight;}else{_3e=_38.documentElement.clientHeight;_3c=_38.body.clientHeight;}w=(_3d>_37.innerWidth)?_3b:_3d;h=(_3e>_37.innerHeight)?_3c:_3e;}else{if(!_1.isOpera&&_37.innerWidth){w=_37.innerWidth;h=_37.innerHeight;}else{if(_1.isIE&&_38.documentElement&&_38.documentElement.clientHeight){w=_38.documentElement.clientWidth;h=_38.documentElement.clientHeight;}else{if(_1.body().clientWidth){w=_1.body().clientWidth;h=_1.body().clientHeight;}}}}var _3f=_1._docScroll();return {w:w,h:h,l:_3f.x,t:_3f.y};};dijit.placeOnScreen=function(_40,pos,_42,_43){var _44=_1.map(_42,function(_45){return {corner:_45,pos:pos};});return dijit._place(_40,_44);};dijit._place=function(_46,_47,_48){var _49=dijit.getViewport();if(!_46.parentNode||String(_46.parentNode.tagName).toLowerCase()!="body"){_1.body().appendChild(_46);}var _4a=null;for(var i=0;i<_47.length;i++){var _4c=_47[i].corner;var pos=_47[i].pos;if(_48){_48(_4c);}var _4e=_46.style.display;var _4f=_46.style.visibility;_46.style.visibility="hidden";_46.style.display="";var mb=_1.marginBox(_46);_46.style.display=_4e;_46.style.visibility=_4f;var _51=(_4c.charAt(1)=="L"?pos.x:Math.max(_49.l,pos.x-mb.w)),_52=(_4c.charAt(0)=="T"?pos.y:Math.max(_49.t,pos.y-mb.h)),_53=(_4c.charAt(1)=="L"?Math.min(_49.l+_49.w,_51+mb.w):pos.x),_54=(_4c.charAt(0)=="T"?Math.min(_49.t+_49.h,_52+mb.h):pos.y),_55=_53-_51,_56=_54-_52,_57=(mb.w-_55)+(mb.h-_56);if(_4a==null||_57<_4a.overflow){_4a={corner:_4c,aroundCorner:_47[i].aroundCorner,x:_51,y:_52,w:_55,h:_56,overflow:_57};}if(_57==0){break;}}_46.style.left=_4a.x+"px";_46.style.top=_4a.y+"px";return _4a;};dijit.placeOnScreenAroundElement=function(_58,_59,_5a,_5b){_59=_1.byId(_59);var _5c=_59.style.display;_59.style.display="";var _5d=_59.offsetWidth;var _5e=_59.offsetHeight;var _5f=_1.coords(_59,true);_59.style.display=_5c;var _60=[];for(var _61 in _5a){_60.push({aroundCorner:_61,corner:_5a[_61],pos:{x:_5f.x+(_61.charAt(1)=="L"?0:_5d),y:_5f.y+(_61.charAt(0)=="T"?0:_5e)}});}return dijit._place(_58,_60,_5b);};}if(!_1._hasResource["dijit._base.window"]){_1._hasResource["dijit._base.window"]=true;_1.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(_1.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(_1.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!_1._hasResource["dijit._base.popup"]){_1._hasResource["dijit._base.popup"]=true;_1.provide("dijit._base.popup");dijit.popup=new function(){var _67=[],_68=1000,_69=1;this.open=function(_6a){var _6b=_6a.popup,_6c=_6a.orient||{"BL":"TL","TL":"BL"},_6d=_6a.around,id=(_6a.around&&_6a.around.id)?(_6a.around.id+"_dropdown"):("popup_"+_69++);var _6f=_1.doc.createElement("div");_6f.id=id;_6f.className="dijitPopup";_6f.style.zIndex=_68+_67.length;_6f.style.visibility="hidden";if(_6a.parent){_6f.dijitPopupParent=_6a.parent.id;}_1.body().appendChild(_6f);_6b.domNode.style.display="";_6f.appendChild(_6b.domNode);var _70=new dijit.BackgroundIframe(_6f);var _71=_6d?dijit.placeOnScreenAroundElement(_6f,_6d,_6c,_6b.orient?_1.hitch(_6b,"orient"):null):dijit.placeOnScreen(_6f,_6a,_6c=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_6f.style.visibility="visible";var _72=[];function getTopPopup(){for(var pi=_67.length-1;pi>0&&_67[pi].parent===_67[pi-1].widget;pi--){}return _67[pi];};_72.push(_1.connect(_6f,"onkeypress",this,function(evt){if(evt.keyCode==_1.keys.ESCAPE&&_6a.onCancel){_6a.onCancel();}else{if(evt.keyCode==_1.keys.TAB){_1.stopEvent(evt);var _75=getTopPopup();if(_75&&_75.onCancel){_75.onCancel();}}}}));if(_6b.onCancel){_72.push(_1.connect(_6b,"onCancel",null,_6a.onCancel));}_72.push(_1.connect(_6b,_6b.onExecute?"onExecute":"onChange",null,function(){var _76=getTopPopup();if(_76&&_76.onExecute){_76.onExecute();}}));_67.push({wrapper:_6f,iframe:_70,widget:_6b,parent:_6a.parent,onExecute:_6a.onExecute,onCancel:_6a.onCancel,onClose:_6a.onClose,handlers:_72});if(_6b.onOpen){_6b.onOpen(_71);}return _71;};this.close=function(_77){while(_1.some(_67,function(_78){return _78.widget==_77;})){var top=_67.pop(),_7a=top.wrapper,_7b=top.iframe,_7c=top.widget,_7d=top.onClose;if(_7c.onClose){_7c.onClose();}_1.forEach(top.handlers,_1.disconnect);if(!_7c||!_7c.domNode){return;}_1.style(_7c.domNode,"display","none");_1.body().appendChild(_7c.domNode);_7b.destroy();_1._destroyElement(_7a);if(_7d){_7d();}}};}();dijit._frames=new function(){var _7e=[];this.pop=function(){var _7f;if(_7e.length){_7f=_7e.pop();_7f.style.display="";}else{if(_1.isIE){var _80="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_7f=_1.doc.createElement(_80);}else{var _7f=_1.doc.createElement("iframe");_7f.src="javascript:\"\"";_7f.className="dijitBackgroundIframe";}_7f.tabIndex=-1;_1.body().appendChild(_7f);}return _7f;};this.push=function(_81){_81.style.display="";if(_1.isIE){_81.style.removeExpression("width");_81.style.removeExpression("height");}_7e.push(_81);};}();if(_1.isIE&&_1.isIE<7){_1.addOnLoad(function(){var f=dijit._frames;_1.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_83){if(!_83.id){throw new Error("no id");}if((_1.isIE&&_1.isIE<7)||(_1.isFF&&_1.isFF<3&&_1.hasClass(_1.body(),"dijit_a11y"))){var _84=dijit._frames.pop();_83.appendChild(_84);if(_1.isIE){_84.style.setExpression("width","document.getElementById('"+_83.id+"').offsetWidth");_84.style.setExpression("height","document.getElementById('"+_83.id+"').offsetHeight");}this.iframe=_84;}};_1.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!_1._hasResource["dijit._base.scroll"]){_1._hasResource["dijit._base.scroll"]=true;_1.provide("dijit._base.scroll");dijit.scrollIntoView=function(_85){if(_1.isIE){if(_1.marginBox(_85.parentNode).h<=_85.parentNode.scrollHeight){_85.scrollIntoView(false);}}else{if(_1.isMozilla){_85.scrollIntoView(false);}else{var _86=_85.parentNode;var _87=_86.scrollTop+_1.marginBox(_86).h;var _88=_85.offsetTop+_1.marginBox(_85).h;if(_87<_88){_86.scrollTop+=(_88-_87);}else{if(_86.scrollTop>_85.offsetTop){_86.scrollTop-=(_86.scrollTop-_85.offsetTop);}}}}};}if(!_1._hasResource["dijit._base.sniff"]){_1._hasResource["dijit._base.sniff"]=true;_1.provide("dijit._base.sniff");(function(){var d=_1;var ie=d.isIE;var _8b=d.isOpera;var maj=Math.floor;var _8d={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_8b,dj_opera8:maj(_8b)==8,dj_opera9:maj(_8b)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _8d){if(_8d[p]){var _8f=_1.doc.documentElement;if(_8f.className){_8f.className+=" "+p;}else{_8f.className=p;}}}})();}if(!_1._hasResource["dijit._base.bidi"]){_1._hasResource["dijit._base.bidi"]=true;_1.provide("dijit._base.bidi");_1.addOnLoad(function(){if(!_1._isBodyLtr()){_1.addClass(_1.body(),"dijitRtl");}});}if(!_1._hasResource["dijit._base.typematic"]){_1._hasResource["dijit._base.typematic"]=true;_1.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(_1.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_91,_92,_93,obj,_95,_96){if(obj!=this._obj){this.stop();this._initialDelay=_96||500;this._subsequentDelay=_95||0.9;this._obj=obj;this._evt=evt;this._node=_92;this._currentTimeout=-1;this._count=-1;this._callback=_1.hitch(_91,_93);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_97,_98,_99,_9a,_9b,_9c){return [_1.connect(_97,"onkeypress",this,function(evt){if(evt.keyCode==_98.keyCode&&(!_98.charCode||_98.charCode==evt.charCode)&&(_98.ctrlKey===undefined||_98.ctrlKey==evt.ctrlKey)&&(_98.altKey===undefined||_98.altKey==evt.ctrlKey)&&(_98.shiftKey===undefined||_98.shiftKey==evt.ctrlKey)){_1.stopEvent(evt);dijit.typematic.trigger(_98,_99,_97,_9a,_98,_9b,_9c);}else{if(dijit.typematic._obj==_98){dijit.typematic.stop();}}}),_1.connect(_97,"onkeyup",this,function(evt){if(dijit.typematic._obj==_98){dijit.typematic.stop();}})];},addMouseListener:function(_9f,_a0,_a1,_a2,_a3){var dc=_1.connect;return [dc(_9f,"mousedown",this,function(evt){_1.stopEvent(evt);dijit.typematic.trigger(evt,_a0,_9f,_a1,_9f,_a2,_a3);}),dc(_9f,"mouseup",this,function(evt){_1.stopEvent(evt);dijit.typematic.stop();}),dc(_9f,"mouseout",this,function(evt){_1.stopEvent(evt);dijit.typematic.stop();}),dc(_9f,"mousemove",this,function(evt){_1.stopEvent(evt);}),dc(_9f,"dblclick",this,function(evt){_1.stopEvent(evt);if(_1.isIE){dijit.typematic.trigger(evt,_a0,_9f,_a1,_9f,_a2,_a3);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_aa,_ab,_ac,_ad,_ae,_af,_b0){return this.addKeyListener(_ab,_ac,_ad,_ae,_af,_b0).concat(this.addMouseListener(_aa,_ad,_ae,_af,_b0));}};}if(!_1._hasResource["dijit._base.wai"]){_1._hasResource["dijit._base.wai"]=true;_1.provide("dijit._base.wai");dijit.wai={onload:function(){var div=document.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+_1.moduleUrl("dijit","form/templates/blank.gif")+"\");";_1.body().appendChild(div);function check(){var cs=_1.getComputedStyle(div);if(cs){var _b3=cs.backgroundImage;var _b4=(cs.borderTopColor==cs.borderRightColor)||(_b3!=null&&(_b3=="none"||_b3=="url(invalid-url:)"));_1[_b4?"addClass":"removeClass"](_1.body(),"dijit_a11y");}};check();if(_1.isIE){setInterval(check,4000);}}};if(_1.isIE||_1.isMoz){_1._loaders.unshift(dijit.wai.onload);}_1.mixin(dijit,{hasWaiRole:function(_b5){if(_b5.hasAttribute){return _b5.hasAttribute("role");}else{return _b5.getAttribute("role")?true:false;}},getWaiRole:function(_b6){var _b7=_b6.getAttribute("role");if(_b7){var _b8=_b7.indexOf(":");return _b8==-1?_b7:_b7.substring(_b8+1);}else{return "";}},setWaiRole:function(_b9,_ba){if(_1.isFF&&_1.isFF<3){_b9.setAttribute("role","wairole:"+_ba);}else{_b9.setAttribute("role",_ba);}},removeWaiRole:function(_bb){_bb.removeAttribute("role");},hasWaiState:function(_bc,_bd){if(_1.isFF&&_1.isFF<3){return _bc.hasAttributeNS("http://www.w3.org/2005/07/aaa",_bd);}else{if(_bc.hasAttribute){return _bc.hasAttribute("aria-"+_bd);}else{return _bc.getAttribute("aria-"+_bd)?true:false;}}},getWaiState:function(_be,_bf){if(_1.isFF&&_1.isFF<3){return _be.getAttributeNS("http://www.w3.org/2005/07/aaa",_bf);}else{var _c0=_be.getAttribute("aria-"+_bf);return _c0?_c0:"";}},setWaiState:function(_c1,_c2,_c3){if(_1.isFF&&_1.isFF<3){_c1.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_c2,_c3);}else{_c1.setAttribute("aria-"+_c2,_c3);}},removeWaiState:function(_c4,_c5){if(_1.isFF&&_1.isFF<3){_c4.removeAttributeNS("http://www.w3.org/2005/07/aaa",_c5);}else{_c4.removeAttribute("aria-"+_c5);}}});}if(!_1._hasResource["dijit._base"]){_1._hasResource["dijit._base"]=true;_1.provide("dijit._base");}if(!_1._hasResource["dojo.date.stamp"]){_1._hasResource["dojo.date.stamp"]=true;_1.provide("dojo.date.stamp");_1.date.stamp.fromISOString=function(_c6,_c7){if(!_1.date.stamp._isoRegExp){_1.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _c8=_1.date.stamp._isoRegExp.exec(_c6);var _c9=null;if(_c8){_c8.shift();_c8[1]&&_c8[1]--;_c8[6]&&(_c8[6]*=1000);if(_c7){_c7=new Date(_c7);_1.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_ca){return _c7["get"+_ca]();}).forEach(function(_cb,_cc){if(_c8[_cc]===undefined){_c8[_cc]=_cb;}});}_c9=new Date(_c8[0]||1970,_c8[1]||0,_c8[2]||0,_c8[3]||0,_c8[4]||0,_c8[5]||0,_c8[6]||0);var _cd=0;var _ce=_c8[7]&&_c8[7].charAt(0);if(_ce!="Z"){_cd=((_c8[8]||0)*60)+(Number(_c8[9])||0);if(_ce!="-"){_cd*=-1;}}if(_ce){_cd-=_c9.getTimezoneOffset();}if(_cd){_c9.setTime(_c9.getTime()+_cd*60000);}}return _c9;};_1.date.stamp.toISOString=function(_cf,_d0){var _=function(n){return (n<10)?"0"+n:n;};_d0=_d0||{};var _d3=[];var _d4=_d0.zulu?"getUTC":"get";var _d5="";if(_d0.selector!="time"){_d5=[_cf[_d4+"FullYear"](),_(_cf[_d4+"Month"]()+1),_(_cf[_d4+"Date"]())].join("-");}_d3.push(_d5);if(_d0.selector!="date"){var _d6=[_(_cf[_d4+"Hours"]()),_(_cf[_d4+"Minutes"]()),_(_cf[_d4+"Seconds"]())].join(":");var _d7=_cf[_d4+"Milliseconds"]();if(_d0.milliseconds){_d6+="."+(_d7<100?"0":"")+_(_d7);}if(_d0.zulu){_d6+="Z";}else{if(_d0.selector!="time"){var _d8=_cf.getTimezoneOffset();var _d9=Math.abs(_d8);_d6+=(_d8>0?"-":"+")+_(Math.floor(_d9/60))+":"+_(_d9%60);}}_d3.push(_d6);}return _d3.join("T");};}if(!_1._hasResource["dojo.parser"]){_1._hasResource["dojo.parser"]=true;_1.provide("dojo.parser");_1.parser=new function(){var d=_1;function val2type(_db){if(d.isString(_db)){return "string";}if(typeof _db=="number"){return "number";}if(typeof _db=="boolean"){return "boolean";}if(d.isFunction(_db)){return "function";}if(d.isArray(_db)){return "array";}if(_db instanceof Date){return "date";}if(_db instanceof d._Url){return "url";}return "object";};function str2obj(_dc,_dd){switch(_dd){case "string":return _dc;case "number":return _dc.length?Number(_dc):NaN;case "boolean":return typeof _dc=="boolean"?_dc:!(_dc.toLowerCase()=="false");case "function":if(d.isFunction(_dc)){_dc=_dc.toString();_dc=d.trim(_dc.substring(_dc.indexOf("{")+1,_dc.length-1));}try{if(_dc.search(/[^\w\.]+/i)!=-1){_dc=d.parser._nameAnonFunc(new Function(_dc),this);}return d.getObject(_dc,false);}catch(e){return new Function();}case "array":return _dc.split(/\s*,\s*/);case "date":switch(_dc){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_dc);}case "url":return d.baseUrl+_dc;default:return d.fromJson(_dc);}};var _de={};function getClassInfo(_df){if(!_de[_df]){var cls=d.getObject(_df);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_df+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _e1=cls.prototype;var _e2={};for(var _e3 in _e1){if(_e3.charAt(0)=="_"){continue;}var _e4=_e1[_e3];_e2[_e3]=val2type(_e4);}_de[_df]={cls:cls,params:_e2};}return _de[_df];};this._functionFromScript=function(_e5){var _e6="";var _e7="";var _e8=_e5.getAttribute("args");if(_e8){d.forEach(_e8.split(/\s*,\s*/),function(_e9,idx){_e6+="var "+_e9+" = arguments["+idx+"]; ";});}var _eb=_e5.getAttribute("with");if(_eb&&_eb.length){d.forEach(_eb.split(/\s*,\s*/),function(_ec){_e6+="with("+_ec+"){";_e7+="}";});}return new Function(_e6+_e5.innerHTML+_e7);};this.instantiate=function(_ed){var _ee=[];d.forEach(_ed,function(_ef){if(!_ef){return;}var _f0=_ef.getAttribute("dojoType");if((!_f0)||(!_f0.length)){return;}var _f1=getClassInfo(_f0);var _f2=_f1.cls;var ps=_f2._noScript||_f2.prototype._noScript;var _f4={};var _f5=_ef.attributes;for(var _f6 in _f1.params){var _f7=_f5.getNamedItem(_f6);if(!_f7||(!_f7.specified&&(!_1.isIE||_f6.toLowerCase()!="value"))){continue;}var _f8=_f7.value;switch(_f6){case "class":_f8=_ef.className;break;case "style":_f8=_ef.style&&_ef.style.cssText;}var _f9=_f1.params[_f6];_f4[_f6]=str2obj(_f8,_f9);}if(!ps){var _fa=[],_fb=[];d.query("> script[type^='dojo/']",_ef).orphan().forEach(function(_fc){var _fd=_fc.getAttribute("event"),_f0=_fc.getAttribute("type"),nf=d.parser._functionFromScript(_fc);if(_fd){if(_f0=="dojo/connect"){_fa.push({event:_fd,func:nf});}else{_f4[_fd]=nf;}}else{_fb.push(nf);}});}var _ff=_f2["markupFactory"];if(!_ff&&_f2["prototype"]){_ff=_f2.prototype["markupFactory"];}var _100=_ff?_ff(_f4,_ef,_f2):new _f2(_f4,_ef);_ee.push(_100);var _101=_ef.getAttribute("jsId");if(_101){d.setObject(_101,_100);}if(!ps){_1.forEach(_fa,function(_102){_1.connect(_100,_102.event,null,_102.func);});_1.forEach(_fb,function(func){func.call(_100);});}});d.forEach(_ee,function(_104){if(_104&&(_104.startup)&&((!_104.getParent)||(!_104.getParent()))){_104.startup();}});return _ee;};this.parse=function(_105){var list=d.query("[dojoType]",_105);var _107=this.instantiate(list);return _107;};}();(function(){var _108=function(){if(djConfig["parseOnLoad"]==true){_1.parser.parse();}};if(_1.exists("dijit.wai.onload")&&(dijit.wai.onload===_1._loaders[0])){_1._loaders.splice(1,0,_108);}else{_1._loaders.unshift(_108);}})();_1.parser._anonCtr=0;_1.parser._anon={};_1.parser._nameAnonFunc=function(_109,_10a){var jpn="$joinpoint";var nso=(_10a||_1.parser._anon);if(_1.isIE){var cn=_109["__dojoNameCache"];if(cn&&nso[cn]===_109){return _109["__dojoNameCache"];}}var ret="__"+_1.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+_1.parser._anonCtr++;}nso[ret]=_109;return ret;};}if(!_1._hasResource["dijit._Widget"]){_1._hasResource["dijit._Widget"]=true;_1.provide("dijit._Widget");_1.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_10f,_110){this.create(_10f,_110);},create:function(_111,_112){this.srcNodeRef=_1.byId(_112);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_111){_1.mixin(this,_111);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _114=this[this.attributeMap[attr]||"domNode"];var _115=this[attr];if(typeof _115!="object"&&(_115!==""||(_111&&_111[attr]))){switch(attr){case "class":_1.addClass(_114,_115);break;case "style":if(_114.style.cssText){_114.style.cssText+="; "+_115;}else{_114.style.cssText=_115;}break;default:_114.setAttribute(attr,_115);}}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||_1.doc.createElement("div");},postCreate:function(){},startup:function(){},destroyRecursive:function(_116){this.destroyDescendants();this.destroy();},destroy:function(_117){this.uninitialize();_1.forEach(this._connects,function(_118){_1.forEach(_118,_1.disconnect);});this.destroyRendering(_117);dijit.registry.remove(this.id);},destroyRendering:function(_119){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){_1._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){_1._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){_1.forEach(this.getDescendants(),function(_11a){_11a.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var list=_1.query("[widgetId]",this.domNode);return list.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_11d,_11e){var _11f=[];if(_11d=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_11f.push(_1.connect(obj,"onkeydown",this,function(e){if(e.keyCode==_1.keys.ENTER){return (_1.isString(_11e))?w[_11e](e):_11e.call(w,e);}else{if(e.keyCode==_1.keys.SPACE){_1.stopEvent(e);}}}));_11f.push(_1.connect(obj,"onkeyup",this,function(e){if(e.keyCode==_1.keys.SPACE){return _1.isString(_11e)?w[_11e](e):_11e.call(w,e);}}));}_11d="onclick";}_11f.push(_1.connect(obj,_11d,this,_11e));this._connects.push(_11f);return _11f;},disconnect:function(_123){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_123){_1.forEach(_123,_1.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=_1.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(_1.style(this.domNode,"display")!="none");}});}if(!_1._hasResource["dojo.string"]){_1._hasResource["dojo.string"]=true;_1.provide("dojo.string");_1.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};_1.string.substitute=function(_12a,map,_12c,_12d){return _12a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_12e,key,_130){var _131=_1.getObject(key,false,map);if(_130){_131=_1.getObject(_130,false,_12d)(_131);}if(_12c){_131=_12c(_131,key);}return _131.toString();});};_1.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!_1._hasResource["dijit._Templated"]){_1._hasResource["dijit._Templated"]=true;_1.provide("dijit._Templated");_1.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,buildRendering:function(){var _134=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_1.isString(_134)){var _136=this.declaredClass,_137=this;var tstr=_1.string.substitute(_134,this,function(_139,key){if(key.charAt(0)=="!"){_139=_137[key.substr(1)];}if(typeof _139=="undefined"){throw new Error(_136+" template:"+key);}if(!_139){return "";}return key.charAt(0)=="!"?_139:_139.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_134.cloneNode(true);}this._attachTemplateNodes(node);var _13b=this.srcNodeRef;if(_13b&&_13b.parentNode){_13b.parentNode.replaceChild(node,_13b);}this.domNode=node;if(this.widgetsInTemplate){var _13c=_1.parser.parse(node);this._attachTemplateNodes(_13c,function(n,p){return n[p];});}this._fillContent(_13b);},_fillContent:function(_13f){var dest=this.containerNode;if(_13f&&dest){while(_13f.hasChildNodes()){dest.appendChild(_13f.firstChild);}}},_attachTemplateNodes:function(_141,_142){_142=_142||function(n,p){return n.getAttribute(p);};var _145=_1.isArray(_141)?_141:(_141.all||_141.getElementsByTagName("*"));var x=_1.isArray(_141)?0:-1;for(;x<_145.length;x++){var _147=(x==-1)?_141:_145[x];if(this.widgetsInTemplate&&_142(_147,"dojoType")){continue;}var _148=_142(_147,"dojoAttachPoint");if(_148){var _149,_14a=_148.split(/\s*,\s*/);while(_149=_14a.shift()){if(_1.isArray(this[_149])){this[_149].push(_147);}else{this[_149]=_147;}}}var _14b=_142(_147,"dojoAttachEvent");if(_14b){var _14c,_14d=_14b.split(/\s*,\s*/);var trim=_1.trim;while(_14c=_14d.shift()){if(_14c){var _14f=null;if(_14c.indexOf(":")!=-1){var _150=_14c.split(":");_14c=trim(_150[0]);_14f=trim(_150[1]);}else{_14c=trim(_14c);}if(!_14f){_14f=_14c;}this.connect(_147,_14c,_14f);}}}var role=_142(_147,"waiRole");if(role){dijit.setWaiRole(_147,role);}var _152=_142(_147,"waiState");if(_152){_1.forEach(_152.split(/\s*,\s*/),function(_153){if(_153.indexOf("-")!=-1){var pair=_153.split("-");dijit.setWaiState(_147,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_155,_156,_157){var _158=dijit._Templated._templateCache;var key=_156||_155;var _15a=_158[key];if(_15a){return _15a;}if(!_156){_156=dijit._Templated._sanitizeTemplateString(_1._getText(_155));}_156=_1.string.trim(_156);if(_156.match(/\$\{([^\}]+)\}/g)||_157){return (_158[key]=_156);}else{return (_158[key]=dijit._Templated._createNodesFromText(_156)[0]);}};dijit._Templated._sanitizeTemplateString=function(_15b){if(_15b){_15b=_15b.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _15c=_15b.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_15c){_15b=_15c[1];}}else{_15b="";}return _15b;};if(_1.isIE){_1.addOnUnload(function(){var _15d=dijit._Templated._templateCache;for(var key in _15d){var _15f=_15d[key];if(!isNaN(_15f.nodeType)){_1._destroyElement(_15f);}delete _15d[key];}});}(function(){var _160={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=_1.doc.createElement("div");tn.style.display="none";_1.body().appendChild(tn);}var _163="none";var _164=text.replace(/^\s+/,"");for(var type in _160){var map=_160[type];if(map.re.test(_164)){_163=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_163];var _168=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _169=[];while(_168.firstChild){_169.push(_168.removeChild(_168.firstChild));}tn.innerHTML="";return _169;};})();_1.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_1._hasResource["dijit._Container"]){_1._hasResource["dijit._Container"]=true;_1.provide("dijit._Container");_1.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _16c=dijit.byId(id);return _16c.isContainer?_16c:null;}}return null;},_getSibling:function(_16d){var node=this.domNode;do{node=node[_16d+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});_1.declare("dijit._Container",null,{isContainer:true,addChild:function(_170,_171){if(_171===undefined){_171="last";}var _172=this.containerNode||this.domNode;if(_171&&typeof _171=="number"){var _173=_1.query("> [widgetid]",_172);if(_173&&_173.length>=_171){_172=_173[_171-1];_171="after";}}_1.place(_170.domNode,_172,_171);if(this._started&&!_170._started){_170.startup();}},removeChild:function(_174){var node=_174.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return _1.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_179,dir){var node=_179.domNode;var _17c=(dir>0?"nextSibling":"previousSibling");do{node=node[_17c];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});_1.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_17d,_17e){var _17f=this._keyNavCodes={};var prev=_1.hitch(this,this.focusPrev);var next=_1.hitch(this,this.focusNext);_1.forEach(_17d,function(code){_17f[code]=prev;});_1.forEach(_17e,function(code){_17f[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");if(_1.isIE){this.connect(this.domNode,"onactivate","_onContainerFocus");this.connect(this.domNode,"ondeactivate","_onContainerBlur");}else{this.connect(this.domNode,"onfocus","_onContainerFocus");this.connect(this.domNode,"onblur","_onContainerBlur");}},startupKeyNavChildren:function(){_1.forEach(this.getChildren(),_1.hitch(this,"_setTabIndexMinusOne"));},addChild:function(_184,_185){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_184);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _186=this._getNextFocusableChild(this.focusedChild,1);if(_186.getFocalNodes){this.focusChild(_186,_186.getFocalNodes()[0]);}else{this.focusChild(_186);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _187=this._getNextFocusableChild(this.focusedChild,-1);if(_187.getFocalNodes){var _188=_187.getFocalNodes();this.focusChild(_187,_188[_188.length-1]);}else{this.focusChild(_187);}},focusChild:function(_189,node){if(_189){if(this.focusedChild&&_189!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_189;if(node&&_189.focusFocalNode){_189.focusFocalNode(node);}else{_189.focus();}}},_setTabIndexMinusOne:function(_18b){if(_18b.getFocalNodes){_1.forEach(_18b.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_18b.focusNode||_18b.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _18e=dijit.getEnclosingWidget(evt.target);if(_18e&&_18e.isFocusable()){this.focusedChild=_18e;}}},_onContainerBlur:function(evt){if(this.tabIndex){this.domNode.setAttribute("tabIndex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();_1.stopEvent(evt);}},_onChildBlur:function(_192){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_193,dir){if(_193){_193=this._getSiblingOfChild(_193,dir);}var _195=this.getChildren();for(var i=0;i<_195.length;i++){if(!_193){_193=_195[(dir>0)?0:(_195.length-1)];}if(_193.isFocusable()){return _193;}_193=this._getSiblingOfChild(_193,dir);}}});}if(!_1._hasResource["dijit.layout._LayoutWidget"]){_1._hasResource["dijit.layout._LayoutWidget"]=true;_1.provide("dijit.layout._LayoutWidget");_1.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){_1.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this._started=true;if(this.getChildren){_1.forEach(this.getChildren(),function(_197){_197.startup();});}if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}},resize:function(args){var node=this.domNode;if(args){_1.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=_1.mixin(_1.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=_1.getComputedStyle(node);var me=_1._getMarginExtents(node,cs);var pb=_1._getPadBorderExtents(node,cs);return {l:_1._toPixelValue(node,cs.paddingLeft),t:_1._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1a0=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1a3,dim){_1a3.resize?_1a3.resize(dim):_1.marginBox(_1a3.domNode,dim);_1.mixin(_1a3,_1.marginBox(_1a3.domNode));_1.mixin(_1a3,dim);};dijit.layout.layoutChildren=function(_1a5,dim,_1a7){dim=_1.mixin({},dim);_1.addClass(_1a5,"dijitLayoutContainer");_1a7=_1.filter(_1a7,function(item){return item.layoutAlign!="client";}).concat(_1.filter(_1a7,function(item){return item.layoutAlign=="client";}));_1.forEach(_1a7,function(_1aa){var elm=_1aa.domNode,pos=_1aa.layoutAlign;var _1ad=elm.style;_1ad.left=dim.l+"px";_1ad.top=dim.t+"px";_1ad.bottom=_1ad.right="auto";_1.addClass(elm,"dijitAlign"+_1a0(pos));if(pos=="top"||pos=="bottom"){size(_1aa,{w:dim.w});dim.h-=_1aa.h;if(pos=="top"){dim.t+=_1aa.h;}else{_1ad.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1aa,{h:dim.h});dim.w-=_1aa.w;if(pos=="left"){dim.l+=_1aa.w;}else{_1ad.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1aa,dim);}}}});};})();}if(!_1._hasResource["dijit.form._FormWidget"]){_1._hasResource["dijit.form._FormWidget"]=true;_1.provide("dijit.form._FormWidget");_1.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",value:"",name:"",id:"",alt:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,attributeMap:_1.mixin(_1.clone(dijit._Widget.prototype.attributeMap),{id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),setDisabled:function(_1ae){this.domNode.disabled=this.disabled=_1ae;if(this.focusNode){this.focusNode.disabled=_1ae;}if(_1ae){this._hovering=false;this._active=false;}dijit.setWaiState(this.focusNode||this.domNode,"disabled",_1ae);this._setStateClass();},_onMouse:function(_1af){var _1b0=_1af.target;if(_1b0&&_1b0.getAttribute){this.stateModifier=_1b0.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1af.type){case "mouseenter":case "mouseover":this._hovering=true;break;case "mouseout":case "mouseleave":this._hovering=false;break;case "mousedown":this._active=true;var self=this;var _1b2=this.connect(_1.body(),"onmouseup",function(){self._active=false;self._setStateClass();self.disconnect(_1b2);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&(_1.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){if(!("staticClass" in this)){this.staticClass=(this.stateNode||this.domNode).className;}var _1b3=[this.baseClass];function multiply(_1b4){_1b3=_1b3.concat(_1.map(_1b3,function(c){return c+_1b4;}));};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if((this.stateModifier||!this._focused)&&this._hovering){multiply(this.stateModifier+"Hover");}}}(this.stateNode||this.domNode).className=this.staticClass+" "+_1b3.join(" ");},onChange:function(_1b6){},postCreate:function(){this.setValue(this.value,null);this.setDisabled(this.disabled);this._setStateClass();},setValue:function(_1b7,_1b8){this._lastValue=_1b7;dijit.setWaiState(this.focusNode||this.domNode,"valuenow",this.forWaiValuenow());if(_1b8===undefined){_1b8=true;}if(this._lastValueReported==undefined&&_1b8===null){this._lastValueReported=_1b7;}if((this.intermediateChanges||_1b8)&&((_1b7&&_1b7.toString)?_1b7.toString():_1b7)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){this._lastValueReported=_1b7;this.onChange(_1b7);}},getValue:function(){return this._lastValue;},undo:function(){this.setValue(this._lastValueReported,false);},_onKeyPress:function(e){if(e.keyCode==_1.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){var v=this.getValue();var lv=this._lastValueReported;if((typeof lv!="undefined")&&((v!==null&&v.toString)?v.toString():null)!==lv.toString()){this.undo();_1.stopEvent(e);return false;}}return true;},forWaiValuenow:function(){return this.getValue();}});}if(!_1._hasResource["dijit.dijit"]){_1._hasResource["dijit.dijit"]=true;_1.provide("dijit.dijit");}}});
