/*
	Copyright (c) 2004-2011, 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
*/

window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojo.window"],["provide","dijit._base.manager"],["provide","dijit._base.focus"],["provide","dojo.AdapterRegistry"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dojo.uacss"],["provide","dijit._base.sniff"],["provide","dijit._base.typematic"],["provide","dijit._base.wai"],["provide","dijit._base"],["provide","dojo.date.stamp"],["provide","dojo.parser"],["provide","dojo.Stateful"],["provide","dijit._WidgetBase"],["provide","dijit._Widget"],["provide","dojo.string"],["provide","dojo.cache"],["provide","dijit._Templated"],["provide","dijit._Container"],["provide","dijit._Contained"],["provide","dijit.layout._LayoutWidget"],["provide","dijit._CssStateMixin"],["provide","dijit.form._FormWidget"],["provide","dijit.dijit"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojo.window"]){_4._hasResource["dojo.window"]=true;_4.provide("dojo.window");_4.getObject("window",true,_4);_4.window.getBox=function(){var _7=(_4.doc.compatMode=="BackCompat")?_4.body():_4.doc.documentElement;var _8=_4._docScroll();return {w:_7.clientWidth,h:_7.clientHeight,l:_8.x,t:_8.y};};_4.window.get=function(_9){if(_4.isIE&&window!==document.parentWindow){_9.parentWindow.execScript("document._parentWindow = window;","Javascript");var _a=_9._parentWindow;_9._parentWindow=null;return _a;}return _9.parentWindow||_9.defaultView;};_4.window.scrollIntoView=function(_b,_c){try{_b=_4.byId(_b);var _d=_b.ownerDocument||_4.doc,_e=_d.body||_4.body(),_f=_d.documentElement||_e.parentNode,_10=_4.isIE,_11=_4.isWebKit;if((!(_4.isMoz||_10||_11||_4.isOpera)||_b==_e||_b==_f)&&(typeof _b.scrollIntoView!="undefined")){_b.scrollIntoView(false);return;}var _12=_d.compatMode=="BackCompat",_13=(_10>=9&&_b.ownerDocument.parentWindow.frameElement)?((_f.clientHeight>0&&_f.clientWidth>0&&(_e.clientHeight==0||_e.clientWidth==0||_e.clientHeight>_f.clientHeight||_e.clientWidth>_f.clientWidth))?_f:_e):(_12?_e:_f),_14=_11?_e:_13,_15=_13.clientWidth,_16=_13.clientHeight,rtl=!_4._isBodyLtr(),_17=_c||_4.position(_b),el=_b.parentNode,_18=function(el){return ((_10<=6||(_10&&_12))?false:(_4.style(el,"position").toLowerCase()=="fixed"));};if(_18(_b)){return;}while(el){if(el==_e){el=_14;}var _19=_4.position(el),_1a=_18(el);if(el==_14){_19.w=_15;_19.h=_16;if(_14==_f&&_10&&rtl){_19.x+=_14.offsetWidth-_19.w;}if(_19.x<0||!_10){_19.x=0;}if(_19.y<0||!_10){_19.y=0;}}else{var pb=_4._getPadBorderExtents(el);_19.w-=pb.w;_19.h-=pb.h;_19.x+=pb.l;_19.y+=pb.t;var _1b=el.clientWidth,_1c=_19.w-_1b;if(_1b>0&&_1c>0){_19.w=_1b;_19.x+=(rtl&&(_10||el.clientLeft>pb.l))?_1c:0;}_1b=el.clientHeight;_1c=_19.h-_1b;if(_1b>0&&_1c>0){_19.h=_1b;}}if(_1a){if(_19.y<0){_19.h+=_19.y;_19.y=0;}if(_19.x<0){_19.w+=_19.x;_19.x=0;}if(_19.y+_19.h>_16){_19.h=_16-_19.y;}if(_19.x+_19.w>_15){_19.w=_15-_19.x;}}var l=_17.x-_19.x,t=_17.y-Math.max(_19.y,0),r=l+_17.w-_19.w,bot=t+_17.h-_19.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_10==8&&!_12)||_10>=9)){s=-s;}_17.x+=el.scrollLeft;el.scrollLeft+=s;_17.x-=el.scrollLeft;}if(bot*t>0){_17.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_17.y-=el.scrollTop;}el=(el!=_14)&&!_1a&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_b.scrollIntoView(false);}};}if(!_4._hasResource["dijit._base.manager"]){_4._hasResource["dijit._base.manager"]=true;_4.provide("dijit._base.manager");_4.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_1d){if(this._hash[_1d.id]){throw new Error("Tried to register widget with id=="+_1d.id+" but that id is already registered");}this._hash[_1d.id]=_1d;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_1e,_1f){_1f=_1f||_4.global;var i=0,id;for(id in this._hash){_1e.call(_1f,this._hash[id],i++,this._hash);}return this;},filter:function(_20,_21){_21=_21||_4.global;var res=new _5.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_20.call(_21,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _5.WidgetSet(),id,_22;for(id in this._hash){_22=this._hash[id];if(_22.declaredClass==cls){res.add(_22);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_23,_24){return _4.map(this.toArray(),_23,_24);},every:function(_25,_26){_26=_26||_4.global;var x=0,i;for(i in this._hash){if(!_25.call(_26,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_27,_28){_28=_28||_4.global;var x=0,i;for(i in this._hash){if(_27.call(_28,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){_5.registry=new _5.WidgetSet();var _29=_5.registry._hash,_2a=_4.attr,_2b=_4.hasAttr,_2c=_4.style;_5.byId=function(id){return typeof id=="string"?_29[id]:id;};var _2d={};_5.getUniqueId=function(_2e){var id;do{id=_2e+"_"+(_2e in _2d?++_2d[_2e]:_2d[_2e]=0);}while(_29[id]);return _5._scopeName=="dijit"?id:_5._scopeName+"_"+id;};_5.findWidgets=function(_2f){var _30=[];function _31(_32){for(var _33=_32.firstChild;_33;_33=_33.nextSibling){if(_33.nodeType==1){var _34=_33.getAttribute("widgetId");if(_34){var _35=_29[_34];if(_35){_30.push(_35);}}else{_31(_33);}}}};_31(_2f);return _30;};_5._destroyAll=function(){_5._curFocus=null;_5._prevFocus=null;_5._activeStack=[];_4.forEach(_5.findWidgets(_4.body()),function(_36){if(!_36._destroyed){if(_36.destroyRecursive){_36.destroyRecursive();}else{if(_36.destroy){_36.destroy();}}}});};if(_4.isIE){_4.addOnWindowUnload(function(){_5._destroyAll();});}_5.byNode=function(_37){return _29[_37.getAttribute("widgetId")];};_5.getEnclosingWidget=function(_38){while(_38){var id=_38.getAttribute&&_38.getAttribute("widgetId");if(id){return _29[id];}_38=_38.parentNode;}return null;};var _39=(_5._isElementShown=function(_3a){var s=_2c(_3a);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_2a(_3a,"type")!="hidden");});_5.hasDefaultTabStop=function(_3b){switch(_3b.nodeName.toLowerCase()){case "a":return _2b(_3b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _3c;try{var _3d=_3b.contentDocument;if("designMode" in _3d&&_3d.designMode=="on"){return true;}_3c=_3d.body;}catch(e1){try{_3c=_3b.contentWindow.document.body;}catch(e2){return false;}}return _3c.contentEditable=="true"||(_3c.firstChild&&_3c.firstChild.contentEditable=="true");default:return _3b.contentEditable=="true";}};var _3e=(_5.isTabNavigable=function(_3f){if(_2a(_3f,"disabled")){return false;}else{if(_2b(_3f,"tabIndex")){return _2a(_3f,"tabIndex")>=0;}else{return _5.hasDefaultTabStop(_3f);}}});_5._getTabNavigable=function(_40){var _41,_42,_43,_44,_45,_46,_47={};function _48(_49){return _49&&_49.tagName.toLowerCase()=="input"&&_49.type&&_49.type.toLowerCase()=="radio"&&_49.name&&_49.name.toLowerCase();};var _4a=function(_4b){_4.query("> *",_4b).forEach(function(_4c){if((_4.isIE&&_4c.scopeName!=="HTML")||!_39(_4c)){return;}if(_3e(_4c)){var _4d=_2a(_4c,"tabIndex");if(!_2b(_4c,"tabIndex")||_4d==0){if(!_41){_41=_4c;}_42=_4c;}else{if(_4d>0){if(!_43||_4d<_44){_44=_4d;_43=_4c;}if(!_45||_4d>=_46){_46=_4d;_45=_4c;}}}var rn=_48(_4c);if(_4.attr(_4c,"checked")&&rn){_47[rn]=_4c;}}if(_4c.nodeName.toUpperCase()!="SELECT"){_4a(_4c);}});};if(_39(_40)){_4a(_40);}function rs(_4e){return _47[_48(_4e)]||_4e;};return {first:rs(_41),last:rs(_42),lowest:rs(_43),highest:rs(_45)};};_5.getFirstInTabbingOrder=function(_4f){var _50=_5._getTabNavigable(_4.byId(_4f));return _50.lowest?_50.lowest:_50.first;};_5.getLastInTabbingOrder=function(_51){var _52=_5._getTabNavigable(_4.byId(_51));return _52.last?_52.last:_52.highest;};_5.defaultDuration=_4.config["defaultDuration"]||200;})();}if(!_4._hasResource["dijit._base.focus"]){_4._hasResource["dijit._base.focus"]=true;_4.provide("dijit._base.focus");_4.mixin(_5,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _5.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=_4.doc.selection,cf=_5._curFocus;if(_4.global.getSelection){sel=_4.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<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_53){var _54=_4.doc,_55=_53.mark;if(_55){if(_4.global.getSelection){var sel=_4.global.getSelection();if(sel&&sel.removeAllRanges){if(_55.pRange){var r=_55;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_55);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_54.selection&&_55){var rg;if(_55.pRange){rg=_55.range;}else{if(_4.isArray(_55)){rg=_54.body.createControlRange();_4.forEach(_55,function(n){rg.addElement(n);});}else{rg=_54.body.createTextRange();rg.moveToBookmark(_55);}}rg.select();}}}},getFocus:function(_56,_57){var _58=!_5._curFocus||(_56&&_4.isDescendant(_5._curFocus,_56.domNode))?_5._prevFocus:_5._curFocus;return {node:_58,bookmark:(_58==_5._curFocus)&&_4.withGlobal(_57||_4.global,_5.getBookmark),openedForWindow:_57};},focus:function(_59){if(!_59){return;}var _5a="node" in _59?_59.node:_59,_5b=_59.bookmark,_5c=_59.openedForWindow,_5d=_5b?_5b.isCollapsed:false;if(_5a){var _5e=(_5a.tagName.toLowerCase()=="iframe")?_5a.contentWindow:_5a;if(_5e&&_5e.focus){try{_5e.focus();}catch(e){}}_5._onFocusNode(_5a);}if(_5b&&_4.withGlobal(_5c||_4.global,_5.isCollapsed)&&!_5d){if(_5c){_5c.focus();}try{_4.withGlobal(_5c||_4.global,_5.moveToBookmark,null,[_5b]);}catch(e2){}}},_activeStack:[],registerIframe:function(_5f){return _5.registerWin(_5f.contentWindow,_5f);},unregisterIframe:function(_60){_5.unregisterWin(_60);},registerWin:function(_61,_62){var _63=function(evt){_5._justMouseDowned=true;setTimeout(function(){_5._justMouseDowned=false;},0);if(_4.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_5._onTouchNode(_62||evt.target||evt.srcElement,"mouse");};var doc=_4.isIE?_61.document.documentElement:_61.document;if(doc){if(_4.isIE){_61.document.body.attachEvent("onmousedown",_63);var _64=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&_5.isTabNavigable(evt.srcElement)){_5._onFocusNode(_62||evt.srcElement);}else{_5._onTouchNode(_62||evt.srcElement);}};doc.attachEvent("onactivate",_64);var _65=function(evt){_5._onBlurNode(_62||evt.srcElement);};doc.attachEvent("ondeactivate",_65);return function(){_61.document.detachEvent("onmousedown",_63);doc.detachEvent("onactivate",_64);doc.detachEvent("ondeactivate",_65);doc=null;};}else{doc.body.addEventListener("mousedown",_63,true);var _66=function(evt){_5._onFocusNode(_62||evt.target);};doc.addEventListener("focus",_66,true);var _67=function(evt){_5._onBlurNode(_62||evt.target);};doc.addEventListener("blur",_67,true);return function(){doc.body.removeEventListener("mousedown",_63,true);doc.removeEventListener("focus",_66,true);doc.removeEventListener("blur",_67,true);doc=null;};}}},unregisterWin:function(_68){_68&&_68();},_onBlurNode:function(_69){_5._prevFocus=_5._curFocus;_5._curFocus=null;if(_5._justMouseDowned){return;}if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);}_5._clearActiveWidgetsTimer=setTimeout(function(){delete _5._clearActiveWidgetsTimer;_5._setStack([]);_5._prevFocus=null;},100);},_onTouchNode:function(_6a,by){if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);delete _5._clearActiveWidgetsTimer;}var _6b=[];try{while(_6a){var _6c=_4.attr(_6a,"dijitPopupParent");if(_6c){_6a=_5.byId(_6c).domNode;}else{if(_6a.tagName&&_6a.tagName.toLowerCase()=="body"){if(_6a===_4.body()){break;}_6a=_4.window.get(_6a.ownerDocument).frameElement;}else{var id=_6a.getAttribute&&_6a.getAttribute("widgetId"),_6d=id&&_5.byId(id);if(_6d&&!(by=="mouse"&&_6d.get("disabled"))){_6b.unshift(id);}_6a=_6a.parentNode;}}}}catch(e){}_5._setStack(_6b,by);},_onFocusNode:function(_6e){if(!_6e){return;}if(_6e.nodeType==9){return;}_5._onTouchNode(_6e);if(_6e==_5._curFocus){return;}if(_5._curFocus){_5._prevFocus=_5._curFocus;}_5._curFocus=_6e;_4.publish("focusNode",[_6e]);},_setStack:function(_6f,by){var _70=_5._activeStack;_5._activeStack=_6f;for(var _71=0;_71<Math.min(_70.length,_6f.length);_71++){if(_70[_71]!=_6f[_71]){break;}}var _72;for(var i=_70.length-1;i>=_71;i--){_72=_5.byId(_70[i]);if(_72){_72._focused=false;_72.set("focused",false);_72._hasBeenBlurred=true;if(_72._onBlur){_72._onBlur(by);}_4.publish("widgetBlur",[_72,by]);}}for(i=_71;i<_6f.length;i++){_72=_5.byId(_6f[i]);if(_72){_72._focused=true;_72.set("focused",true);if(_72._onFocus){_72._onFocus(by);}_4.publish("widgetFocus",[_72,by]);}}}});_4.addOnLoad(function(){var _73=_5.registerWin(window);if(_4.isIE){_4.addOnWindowUnload(function(){_5.unregisterWin(_73);_73=null;});}});}if(!_4._hasResource["dojo.AdapterRegistry"]){_4._hasResource["dojo.AdapterRegistry"]=true;_4.provide("dojo.AdapterRegistry");_4.AdapterRegistry=function(_74){this.pairs=[];this.returnWrappers=_74||false;};_4.extend(_4.AdapterRegistry,{register:function(_75,_76,_77,_78,_79){this.pairs[((_79)?"unshift":"push")]([_75,_76,_77,_78]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _7a=this.pairs[i];if(_7a[1].apply(this,arguments)){if((_7a[3])||(this.returnWrappers)){return _7a[2];}else{return _7a[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_7b){for(var i=0;i<this.pairs.length;i++){var _7c=this.pairs[i];if(_7c[0]==_7b){this.pairs.splice(i,1);return true;}}return false;}});}if(!_4._hasResource["dijit._base.place"]){_4._hasResource["dijit._base.place"]=true;_4.provide("dijit._base.place");_5.getViewport=function(){return _4.window.getBox();};_5.placeOnScreen=function(_7d,pos,_7e,_7f){var _80=_4.map(_7e,function(_81){var c={corner:_81,pos:{x:pos.x,y:pos.y}};if(_7f){c.pos.x+=_81.charAt(1)=="L"?_7f.x:-_7f.x;c.pos.y+=_81.charAt(0)=="T"?_7f.y:-_7f.y;}return c;});return _5._place(_7d,_80);};_5._place=function(_82,_83,_84,_85){var _86=_4.window.getBox();if(!_82.parentNode||String(_82.parentNode.tagName).toLowerCase()!="body"){_4.body().appendChild(_82);}var _87=null;_4.some(_83,function(_88){var _89=_88.corner;var pos=_88.pos;var _8a=0;var _8b={w:_89.charAt(1)=="L"?(_86.l+_86.w)-pos.x:pos.x-_86.l,h:_89.charAt(1)=="T"?(_86.t+_86.h)-pos.y:pos.y-_86.t};if(_84){var res=_84(_82,_88.aroundCorner,_89,_8b,_85);_8a=typeof res=="undefined"?0:res;}var _8c=_82.style;var _8d=_8c.display;var _8e=_8c.visibility;_8c.visibility="hidden";_8c.display="";var mb=_4.marginBox(_82);_8c.display=_8d;_8c.visibility=_8e;var _8f=Math.max(_86.l,_89.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_90=Math.max(_86.t,_89.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_91=Math.min(_86.l+_86.w,_89.charAt(1)=="L"?(_8f+mb.w):pos.x),_92=Math.min(_86.t+_86.h,_89.charAt(0)=="T"?(_90+mb.h):pos.y),_93=_91-_8f,_94=_92-_90;_8a+=(mb.w-_93)+(mb.h-_94);if(_87==null||_8a<_87.overflow){_87={corner:_89,aroundCorner:_88.aroundCorner,x:_8f,y:_90,w:_93,h:_94,overflow:_8a,spaceAvailable:_8b};}return !_8a;});if(_87.overflow&&_84){_84(_82,_87.aroundCorner,_87.corner,_87.spaceAvailable,_85);}var l=_4._isBodyLtr(),s=_82.style;s.top=_87.y+"px";s[l?"left":"right"]=(l?_87.x:_86.w-_87.x-_87.w)+"px";return _87;};_5.placeOnScreenAroundNode=function(_95,_96,_97,_98){_96=_4.byId(_96);var _99=_4.position(_96,true);return _5._placeOnScreenAroundRect(_95,_99.x,_99.y,_99.w,_99.h,_97,_98);};_5.placeOnScreenAroundRectangle=function(_9a,_9b,_9c,_9d){return _5._placeOnScreenAroundRect(_9a,_9b.x,_9b.y,_9b.width,_9b.height,_9c,_9d);};_5._placeOnScreenAroundRect=function(_9e,x,y,_9f,_a0,_a1,_a2){var _a3=[];for(var _a4 in _a1){_a3.push({aroundCorner:_a4,corner:_a1[_a4],pos:{x:x+(_a4.charAt(1)=="L"?0:_9f),y:y+(_a4.charAt(0)=="T"?0:_a0)}});}return _5._place(_9e,_a3,_a2,{w:_9f,h:_a0});};_5.placementRegistry=new _4.AdapterRegistry();_5.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},_5.placeOnScreenAroundNode);_5.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},_5.placeOnScreenAroundRectangle);_5.placeOnScreenAroundElement=function(_a5,_a6,_a7,_a8){return _5.placementRegistry.match.apply(_5.placementRegistry,arguments);};_5.getPopupAroundAlignment=function(_a9,_aa){var _ab={};_4.forEach(_a9,function(pos){switch(pos){case "after":_ab[_aa?"BR":"BL"]=_aa?"BL":"BR";break;case "before":_ab[_aa?"BL":"BR"]=_aa?"BR":"BL";break;case "below-alt":_aa=!_aa;case "below":_ab[_aa?"BL":"BR"]=_aa?"TL":"TR";_ab[_aa?"BR":"BL"]=_aa?"TR":"TL";break;case "above-alt":_aa=!_aa;case "above":default:_ab[_aa?"TL":"TR"]=_aa?"BL":"BR";_ab[_aa?"TR":"TL"]=_aa?"BR":"BL";break;}});return _ab;};}if(!_4._hasResource["dijit._base.window"]){_4._hasResource["dijit._base.window"]=true;_4.provide("dijit._base.window");_5.getDocumentWindow=function(doc){return _4.window.get(doc);};}if(!_4._hasResource["dijit._base.popup"]){_4._hasResource["dijit._base.popup"]=true;_4.provide("dijit._base.popup");_5.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_ac){var _ad=_ac.declaredClass?_ac._popupWrapper:(_ac.parentNode&&_4.hasClass(_ac.parentNode,"dijitPopup")),_ae=_ac.domNode||_ac;if(!_ad){_ad=_4.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},_4.body());_ad.appendChild(_ae);var s=_ae.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_ac.declaredClass){_ac._popupWrapper=_ad;_4.connect(_ac,"destroy",function(){_4.destroy(_ad);delete _ac._popupWrapper;});}}return _ad;},moveOffScreen:function(_af){var _b0=this._createWrapper(_af);_4.style(_b0,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_b1){var _b2=this._createWrapper(_b1);_4.style(_b2,"display","none");},getTopPopup:function(){var _b3=this._stack;for(var pi=_b3.length-1;pi>0&&_b3[pi].parent===_b3[pi-1].widget;pi--){}return _b3[pi];},open:function(_b4){var _b5=this._stack,_b6=_b4.popup,_b7=_b4.orient||((_b4.parent?_b4.parent.isLeftToRight():_4._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_b8=_b4.around,id=(_b4.around&&_b4.around.id)?(_b4.around.id+"_dropdown"):("popup_"+this._idGen++);while(_b5.length&&(!_b4.parent||!_4.isDescendant(_b4.parent.domNode,_b5[_b5.length-1].widget.domNode))){_5.popup.close(_b5[_b5.length-1].widget);}var _b9=this._createWrapper(_b6);_4.attr(_b9,{id:id,style:{zIndex:this._beginZIndex+_b5.length},"class":"dijitPopup "+(_b6.baseClass||_b6["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_b4.parent?_b4.parent.id:""});if(_4.isIE||_4.isMoz){if(!_b6.bgIframe){_b6.bgIframe=new _5.BackgroundIframe(_b9);}}var _ba=_b8?_5.placeOnScreenAroundElement(_b9,_b8,_b7,_b6.orient?_4.hitch(_b6,"orient"):null):_5.placeOnScreen(_b9,_b4,_b7=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_b4.padding);_b9.style.display="";_b9.style.visibility="visible";_b6.domNode.style.visibility="visible";var _bb=[];_bb.push(_4.connect(_b9,"onkeypress",this,function(evt){if(evt.charOrCode==_4.keys.ESCAPE&&_b4.onCancel){_4.stopEvent(evt);_b4.onCancel();}else{if(evt.charOrCode===_4.keys.TAB){_4.stopEvent(evt);var _bc=this.getTopPopup();if(_bc&&_bc.onCancel){_bc.onCancel();}}}}));if(_b6.onCancel){_bb.push(_4.connect(_b6,"onCancel",_b4.onCancel));}_bb.push(_4.connect(_b6,_b6.onExecute?"onExecute":"onChange",this,function(){var _bd=this.getTopPopup();if(_bd&&_bd.onExecute){_bd.onExecute();}}));_b5.push({widget:_b6,parent:_b4.parent,onExecute:_b4.onExecute,onCancel:_b4.onCancel,onClose:_b4.onClose,handlers:_bb});if(_b6.onOpen){_b6.onOpen(_ba);}return _ba;},close:function(_be){var _bf=this._stack;while((_be&&_4.some(_bf,function(_c0){return _c0.widget==_be;}))||(!_be&&_bf.length)){var top=_bf.pop(),_c1=top.widget,_c2=top.onClose;if(_c1.onClose){_c1.onClose();}_4.forEach(top.handlers,_4.disconnect);if(_c1&&_c1.domNode){this.hide(_c1);}if(_c2){_c2();}}}};_5._frames=new function(){var _c3=[];this.pop=function(){var _c4;if(_c3.length){_c4=_c3.pop();_c4.style.display="";}else{if(_4.isIE<9){var _c5=_4.config["dojoBlankHtmlUrl"]||(_4.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _c6="<iframe src='"+_c5+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_c4=_4.doc.createElement(_c6);}else{_c4=_4.create("iframe");_c4.src="javascript:\"\"";_c4.className="dijitBackgroundIframe";_4.style(_c4,"opacity",0.1);}_c4.tabIndex=-1;_5.setWaiRole(_c4,"presentation");}return _c4;};this.push=function(_c7){_c7.style.display="none";_c3.push(_c7);};}();_5.BackgroundIframe=function(_c8){if(!_c8.id){throw new Error("no id");}if(_4.isIE||_4.isMoz){var _c9=(this.iframe=_5._frames.pop());_c8.appendChild(_c9);if(_4.isIE<7||_4.isQuirks){this.resize(_c8);this._conn=_4.connect(_c8,"onresize",this,function(){this.resize(_c8);});}else{_4.style(_c9,{width:"100%",height:"100%"});}}};_4.extend(_5.BackgroundIframe,{resize:function(_ca){if(this.iframe){_4.style(this.iframe,{width:_ca.offsetWidth+"px",height:_ca.offsetHeight+"px"});}},destroy:function(){if(this._conn){_4.disconnect(this._conn);this._conn=null;}if(this.iframe){_5._frames.push(this.iframe);delete this.iframe;}}});}if(!_4._hasResource["dijit._base.scroll"]){_4._hasResource["dijit._base.scroll"]=true;_4.provide("dijit._base.scroll");_5.scrollIntoView=function(_cb,pos){_4.window.scrollIntoView(_cb,pos);};}if(!_4._hasResource["dojo.uacss"]){_4._hasResource["dojo.uacss"]=true;_4.provide("dojo.uacss");(function(){var d=_4,_cc=d.doc.documentElement,ie=d.isIE,_cd=d.isOpera,maj=Math.floor,ff=d.isFF,_ce=d.boxModel.replace(/-/,""),_cf={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_cd,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_cf["dj_"+_ce]=true;var _d0="";for(var clz in _cf){if(_cf[clz]){_d0+=clz+" ";}}_cc.className=d.trim(_cc.className+" "+_d0);_4._loaders.unshift(function(){if(!_4._isBodyLtr()){var _d1="dj_rtl dijitRtl "+_d0.replace(/ /g,"-rtl ");_cc.className=d.trim(_cc.className+" "+_d1);}});})();}if(!_4._hasResource["dijit._base.sniff"]){_4._hasResource["dijit._base.sniff"]=true;_4.provide("dijit._base.sniff");}if(!_4._hasResource["dijit._base.typematic"]){_4._hasResource["dijit._base.typematic"]=true;_4.provide("dijit._base.typematic");_5.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(_4.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_d2,_d3,_d4,obj,_d5,_d6,_d7){if(obj!=this._obj){this.stop();this._initialDelay=_d6||500;this._subsequentDelay=_d5||0.9;this._minDelay=_d7||10;this._obj=obj;this._evt=evt;this._node=_d3;this._currentTimeout=-1;this._count=-1;this._callback=_4.hitch(_d2,_d4);this._fireEventAndReload();this._evt=_4.mixin({faux:true},evt);}},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(_d8,_d9,_da,_db,_dc,_dd,_de){if(_d9.keyCode){_d9.charOrCode=_d9.keyCode;_4.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_d9.charCode){_d9.charOrCode=String.fromCharCode(_d9.charCode);_4.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [_4.connect(_d8,"onkeypress",this,function(evt){if(evt.charOrCode==_d9.charOrCode&&(_d9.ctrlKey===undefined||_d9.ctrlKey==evt.ctrlKey)&&(_d9.altKey===undefined||_d9.altKey==evt.altKey)&&(_d9.metaKey===undefined||_d9.metaKey==(evt.metaKey||false))&&(_d9.shiftKey===undefined||_d9.shiftKey==evt.shiftKey)){_4.stopEvent(evt);_5.typematic.trigger(evt,_da,_d8,_db,_d9,_dc,_dd,_de);}else{if(_5.typematic._obj==_d9){_5.typematic.stop();}}}),_4.connect(_d8,"onkeyup",this,function(evt){if(_5.typematic._obj==_d9){_5.typematic.stop();}})];},addMouseListener:function(_df,_e0,_e1,_e2,_e3,_e4){var dc=_4.connect;return [dc(_df,"mousedown",this,function(evt){_4.stopEvent(evt);_5.typematic.trigger(evt,_e0,_df,_e1,_df,_e2,_e3,_e4);}),dc(_df,"mouseup",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(_df,"mouseout",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(_df,"mousemove",this,function(evt){evt.preventDefault();}),dc(_df,"dblclick",this,function(evt){_4.stopEvent(evt);if(_4.isIE){_5.typematic.trigger(evt,_e0,_df,_e1,_df,_e2,_e3,_e4);setTimeout(_4.hitch(this,_5.typematic.stop),50);}})];},addListener:function(_e5,_e6,_e7,_e8,_e9,_ea,_eb,_ec){return this.addKeyListener(_e6,_e7,_e8,_e9,_ea,_eb,_ec).concat(this.addMouseListener(_e5,_e8,_e9,_ea,_eb,_ec));}};}if(!_4._hasResource["dijit._base.wai"]){_4._hasResource["dijit._base.wai"]=true;_4.provide("dijit._base.wai");_5.wai={onload:function(){var div=_4.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif"))+"\");"}},_4.body());var cs=_4.getComputedStyle(div);if(cs){var _ed=cs.backgroundImage;var _ee=(cs.borderTopColor==cs.borderRightColor)||(_ed!=null&&(_ed=="none"||_ed=="url(invalid-url:)"));_4[_ee?"addClass":"removeClass"](_4.body(),"dijit_a11y");if(_4.isIE){div.outerHTML="";}else{_4.body().removeChild(div);}}}};if(_4.isIE||_4.isMoz){_4._loaders.unshift(_5.wai.onload);}_4.mixin(_5,{hasWaiRole:function(_ef,_f0){var _f1=this.getWaiRole(_ef);return _f0?(_f1.indexOf(_f0)>-1):(_f1.length>0);},getWaiRole:function(_f2){return _4.trim((_4.attr(_f2,"role")||"").replace("wairole:",""));},setWaiRole:function(_f3,_f4){_4.attr(_f3,"role",_f4);},removeWaiRole:function(_f5,_f6){var _f7=_4.attr(_f5,"role");if(!_f7){return;}if(_f6){var t=_4.trim((" "+_f7+" ").replace(" "+_f6+" "," "));_4.attr(_f5,"role",t);}else{_f5.removeAttribute("role");}},hasWaiState:function(_f8,_f9){return _f8.hasAttribute?_f8.hasAttribute("aria-"+_f9):!!_f8.getAttribute("aria-"+_f9);},getWaiState:function(_fa,_fb){return _fa.getAttribute("aria-"+_fb)||"";},setWaiState:function(_fc,_fd,_fe){_fc.setAttribute("aria-"+_fd,_fe);},removeWaiState:function(_ff,_100){_ff.removeAttribute("aria-"+_100);}});}if(!_4._hasResource["dijit._base"]){_4._hasResource["dijit._base"]=true;_4.provide("dijit._base");}if(!_4._hasResource["dojo.date.stamp"]){_4._hasResource["dojo.date.stamp"]=true;_4.provide("dojo.date.stamp");_4.getObject("date.stamp",true,_4);_4.date.stamp.fromISOString=function(_101,_102){if(!_4.date.stamp._isoRegExp){_4.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _103=_4.date.stamp._isoRegExp.exec(_101),_104=null;if(_103){_103.shift();if(_103[1]){_103[1]--;}if(_103[6]){_103[6]*=1000;}if(_102){_102=new Date(_102);_4.forEach(_4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _102["get"+prop]();}),function(_105,_106){_103[_106]=_103[_106]||_105;});}_104=new Date(_103[0]||1970,_103[1]||0,_103[2]||1,_103[3]||0,_103[4]||0,_103[5]||0,_103[6]||0);if(_103[0]<100){_104.setFullYear(_103[0]||1970);}var _107=0,_108=_103[7]&&_103[7].charAt(0);if(_108!="Z"){_107=((_103[8]||0)*60)+(Number(_103[9])||0);if(_108!="-"){_107*=-1;}}if(_108){_107-=_104.getTimezoneOffset();}if(_107){_104.setTime(_104.getTime()+_107*60000);}}return _104;};_4.date.stamp.toISOString=function(_109,_10a){var _10b=function(n){return (n<10)?"0"+n:n;};_10a=_10a||{};var _10c=[],_10d=_10a.zulu?"getUTC":"get",date="";if(_10a.selector!="time"){var year=_109[_10d+"FullYear"]();date=["0000".substr((year+"").length)+year,_10b(_109[_10d+"Month"]()+1),_10b(_109[_10d+"Date"]())].join("-");}_10c.push(date);if(_10a.selector!="date"){var time=[_10b(_109[_10d+"Hours"]()),_10b(_109[_10d+"Minutes"]()),_10b(_109[_10d+"Seconds"]())].join(":");var _10e=_109[_10d+"Milliseconds"]();if(_10a.milliseconds){time+="."+(_10e<100?"0":"")+_10b(_10e);}if(_10a.zulu){time+="Z";}else{if(_10a.selector!="time"){var _10f=_109.getTimezoneOffset();var _110=Math.abs(_10f);time+=(_10f>0?"-":"+")+_10b(Math.floor(_110/60))+":"+_10b(_110%60);}}_10c.push(time);}return _10c.join("T");};}if(!_4._hasResource["dojo.parser"]){_4._hasResource["dojo.parser"]=true;_4.provide("dojo.parser");new Date("X");_4.parser=new function(){var d=_4;function _111(_112){if(d.isString(_112)){return "string";}if(typeof _112=="number"){return "number";}if(typeof _112=="boolean"){return "boolean";}if(d.isFunction(_112)){return "function";}if(d.isArray(_112)){return "array";}if(_112 instanceof Date){return "date";}if(_112 instanceof d._Url){return "url";}return "object";};function _113(_114,type){switch(type){case "string":return _114;case "number":return _114.length?Number(_114):NaN;case "boolean":return typeof _114=="boolean"?_114:!(_114.toLowerCase()=="false");case "function":if(d.isFunction(_114)){_114=_114.toString();_114=d.trim(_114.substring(_114.indexOf("{")+1,_114.length-1));}try{if(_114===""||_114.search(/[^\w\.]+/i)!=-1){return new Function(_114);}else{return d.getObject(_114,false)||new Function(_114);}}catch(e){return new Function();}case "array":return _114?_114.split(/\s*,\s*/):[];case "date":switch(_114){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_114);}case "url":return d.baseUrl+_114;default:return d.fromJson(_114);}};var _115={},_116={};d.connect(d,"extend",function(){_116={};});function _117(cls,_118){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _115){continue;}_118[name]=_111(cls[name]);}return _118;};function _119(_11a,_11b){var c=_116[_11a];if(!c){var cls=d.getObject(_11a),_11c=null;if(!cls){return null;}if(!_11b){_11c=_117(cls.prototype,{});}c={cls:cls,params:_11c};}else{if(!_11b&&!c.params){c.params=_117(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_11d,_11e){var _11f="";var _120="";var _121=(_11d.getAttribute(_11e+"args")||_11d.getAttribute("args"));if(_121){d.forEach(_121.split(/\s*,\s*/),function(part,idx){_11f+="var "+part+" = arguments["+idx+"]; ";});}var _122=_11d.getAttribute("with");if(_122&&_122.length){d.forEach(_122.split(/\s*,\s*/),function(part){_11f+="with("+part+"){";_120+="}";});}return new Function(_11f+_11d.innerHTML+_120);};this.instantiate=function(_123,_124,args){var _125=[],_124=_124||{};args=args||{};var _126=(args.scope||d._scopeName)+"Type",_127="data-"+(args.scope||d._scopeName)+"-";d.forEach(_123,function(obj){if(!obj){return;}var node,type,_128,_129,_12a,_12b;if(obj.node){node=obj.node;type=obj.type;_12b=obj.fastpath;_128=obj.clsInfo||(type&&_119(type,_12b));_129=_128&&_128.cls;_12a=obj.scripts;}else{node=obj;type=_126 in _124?_124[_126]:node.getAttribute(_126);_128=type&&_119(type);_129=_128&&_128.cls;_12a=(_129&&(_129._noScript||_129.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_128){throw new Error("Could not load class '"+type);}var _12c={};if(args.defaults){d._mixin(_12c,args.defaults);}if(obj.inherited){d._mixin(_12c,obj.inherited);}if(_12b){var _12d=node.getAttribute(_127+"props");if(_12d&&_12d.length){try{_12d=d.fromJson.call(args.propsThis,"{"+_12d+"}");d._mixin(_12c,_12d);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_12d+"'");}}var _12e=node.getAttribute(_127+"attach-point");if(_12e){_12c.dojoAttachPoint=_12e;}var _12f=node.getAttribute(_127+"attach-event");if(_12f){_12c.dojoAttachEvent=_12f;}_4.mixin(_12c,_124);}else{var _130=node.attributes;for(var name in _128.params){var item=name in _124?{value:_124[name],specified:true}:_130.getNamedItem(name);if(!item||(!item.specified&&(!_4.isIE||name.toLowerCase()!="value"))){continue;}var _131=item.value;switch(name){case "class":_131="className" in _124?_124.className:node.className;break;case "style":_131="style" in _124?_124.style:(node.style&&node.style.cssText);}var _132=_128.params[name];if(typeof _131=="string"){_12c[name]=_113(_131,_132);}else{_12c[name]=_131;}}}var _133=[],_134=[];d.forEach(_12a,function(_135){node.removeChild(_135);var _136=(_135.getAttribute(_127+"event")||_135.getAttribute("event")),type=_135.getAttribute("type"),nf=d.parser._functionFromScript(_135,_127);if(_136){if(type=="dojo/connect"){_133.push({event:_136,func:nf});}else{_12c[_136]=nf;}}else{_134.push(nf);}});var _137=_129.markupFactory||_129.prototype&&_129.prototype.markupFactory;var _138=_137?_137(_12c,node,_129):new _129(_12c,node);_125.push(_138);var _139=(node.getAttribute(_127+"id")||node.getAttribute("jsId"));if(_139){d.setObject(_139,_138);}d.forEach(_133,function(_13a){d.connect(_138,_13a.event,null,_13a.func);});d.forEach(_134,function(func){func.call(_138);});});if(!_124._started){d.forEach(_125,function(_13b){if(!args.noStart&&_13b&&_4.isFunction(_13b.startup)&&!_13b._started&&(!_13b.getParent||!_13b.getParent())){_13b.startup();}});}return _125;};this.parse=function(_13c,args){var root;if(!args&&_13c&&_13c.rootNode){args=_13c;root=args.rootNode;}else{root=_13c;}root=root?_4.byId(root):_4.body();args=args||{};var _13d=(args.scope||d._scopeName)+"Type",_13e="data-"+(args.scope||d._scopeName)+"-";function scan(_13f,list){var _140=_4.clone(_13f.inherited);_4.forEach(["dir","lang"],function(name){var val=_13f.node.getAttribute(name);if(val){_140[name]=val;}});var _141=_13f.clsInfo&&!_13f.clsInfo.cls.prototype._noScript?_13f.scripts:null;var _142=(!_13f.clsInfo||!_13f.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _143=_13f.node.firstChild;_143;_143=_143.nextSibling){if(_143.nodeType==1){var type,_144=_142&&_143.getAttribute(_13e+"type");if(_144){type=_144;}else{type=_142&&_143.getAttribute(_13d);}var _145=_144==type;if(type){var _146={"type":type,fastpath:_145,clsInfo:_119(type,_145),node:_143,scripts:[],inherited:_140};list.push(_146);scan(_146,list);}else{if(_141&&_143.nodeName.toLowerCase()=="script"){type=_143.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_141.push(_143);}}else{if(_142){scan({node:_143,inherited:_140},list);}}}}}};var _147={};if(args&&args.inherited){for(var key in args.inherited){if(args.inherited[key]){_147[key]=args.inherited[key];}}}var list=[];scan({node:root,inherited:_147},list);var _148=args&&args.template?{template:true}:null;return this.instantiate(list,_148,args);};}();(function(){var _149=function(){if(_4.config.parseOnLoad){_4.parser.parse();}};if(_4.getObject("dijit.wai.onload")===_4._loaders[0]){_4._loaders.splice(1,0,_149);}else{_4._loaders.unshift(_149);}})();}if(!_4._hasResource["dojo.Stateful"]){_4._hasResource["dojo.Stateful"]=true;_4.provide("dojo.Stateful");_4.declare("dojo.Stateful",null,{postscript:function(_14a){if(_14a){_4.mixin(this,_14a);}},get:function(name){return this[name];},set:function(name,_14b){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _14c=this[name];this[name]=_14b;if(this._watchCallbacks){this._watchCallbacks(name,_14c,_14b);}return this;},watch:function(name,_14d){var _14e=this._watchCallbacks;if(!_14e){var self=this;_14e=this._watchCallbacks=function(name,_14f,_150,_151){var _152=function(_153){if(_153){_153=_153.slice();for(var i=0,l=_153.length;i<l;i++){try{_153[i].call(self,name,_14f,_150);}catch(e){console.error(e);}}}};_152(_14e["_"+name]);if(!_151){_152(_14e["*"]);}};}if(!_14d&&typeof name==="function"){_14d=name;name="*";}else{name="_"+name;}var _154=_14e[name];if(typeof _154!=="object"){_154=_14e[name]=[];}_154.push(_14d);return {unwatch:function(){_154.splice(_4.indexOf(_154,_14d),1);}};}});}if(!_4._hasResource["dijit._WidgetBase"]){_4._hasResource["dijit._WidgetBase"]=true;_4.provide("dijit._WidgetBase");(function(){_4.declare("dijit._WidgetBase",_4.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_155,_156){this.create(_155,_156);},create:function(_157,_158){this.srcNodeRef=_4.byId(_158);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_157){this.params=_157;_4._mixin(this,_157);}this.postMixInProperties();if(!this.id){this.id=_5.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_5.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _159=this.srcNodeRef;if(_159&&_159.parentNode&&this.domNode!==_159){_159.parentNode.replaceChild(this.domNode,_159);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _15a=function(attr,_15b){if((_15b.params&&attr in _15b.params)||_15b[attr]){_15b.set(attr,_15b[attr]);}};for(var attr in this.attributeMap){_15a(attr,this);}_4.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_15a(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_15c,_15d=ctor.prototype;for(var _15e in _15d){if(_4.isFunction(_15d[_15e])&&(_15c=_15e.match(/^_set([a-zA-Z]*)Attr$/))&&_15c[1]){r.push(_15c[1].charAt(0).toLowerCase()+_15c[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_4.create("div");}if(this.baseClass){var _15f=this.baseClass.split(" ");if(!this.isLeftToRight()){_15f=_15f.concat(_4.map(_15f,function(name){return name+"Rtl";}));}_4.addClass(this.domNode,_15f);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_160){this._beingDestroyed=true;this.destroyDescendants(_160);this.destroy(_160);},destroy:function(_161){this._beingDestroyed=true;this.uninitialize();var d=_4,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_162){dfe(_162,d.disconnect);});dfe(this._subscribes,function(_163){dun(_163);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_161);_5.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_164){if(this.bgIframe){this.bgIframe.destroy(_164);delete this.bgIframe;}if(this.domNode){if(_164){_4.removeAttr(this.domNode,"widgetId");}else{_4.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_164){_4.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_165){_4.forEach(this.getChildren(),function(_166){if(_166.destroyRecursive){_166.destroyRecursive(_165);}});},uninitialize:function(){return false;},_setClassAttr:function(_167){var _168=this[this.attributeMap["class"]||"domNode"];_4.replaceClass(_168,_167,this["class"]);this._set("class",_167);},_setStyleAttr:function(_169){var _16a=this[this.attributeMap.style||"domNode"];if(_4.isObject(_169)){_4.style(_16a,_169);}else{if(_16a.style.cssText){_16a.style.cssText+="; "+_169;}else{_16a.style.cssText=_169;}}this._set("style",_169);},_attrToDom:function(attr,_16b){var _16c=this.attributeMap[attr];_4.forEach(_4.isArray(_16c)?_16c:[_16c],function(_16d){var _16e=this[_16d.node||_16d||"domNode"];var type=_16d.type||"attribute";switch(type){case "attribute":if(_4.isFunction(_16b)){_16b=_4.hitch(this,_16b);}var _16f=_16d.attribute?_16d.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_4.attr(_16e,_16f,_16b);break;case "innerText":_16e.innerHTML="";_16e.appendChild(_4.doc.createTextNode(_16b));break;case "innerHTML":_16e.innerHTML=_16b;break;case "class":_4.replaceClass(_16e,_16b,this[attr]);break;}},this);},get:function(name){var _170=this._getAttrNames(name);return this[_170.g]?this[_170.g]():this[name];},set:function(name,_171){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _172=this._getAttrNames(name);if(this[_172.s]){var _173=this[_172.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_171);}this._set(name,_171);}return _173||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_174){var _175=this[name];this[name]=_174;if(this._watchCallbacks&&this._created&&_174!==_175){this._watchCallbacks(name,_175,_174);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?_4.query("[widgetId]",this.containerNode).map(_5.byNode):[];},getChildren:function(){return this.containerNode?_5.findWidgets(this.containerNode):[];},connect:function(obj,_176,_177){var _178=[_4._connect(obj,_176,this,_177)];this._connects.push(_178);return _178;},disconnect:function(_179){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_179){_4.forEach(_179,_4.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_17a,_17b){var _17c=_4.subscribe(_17a,this,_17b);this._subscribes.push(_17c);return _17c;},unsubscribe:function(_17d){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_17d){_4.unsubscribe(_17d);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4._isBodyLtr();},placeAt:function(_17e,_17f){if(_17e.declaredClass&&_17e.addChild){_17e.addChild(this,_17f);}else{_4.place(this.domNode,_17e,_17f);}return this;}});})();}if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.connect(_4,"_connect",function(_180,_181){if(_180&&_4.isFunction(_180._onConnect)){_180._onConnect(_181);}});_5._connectOnUseEventHandler=function(_182){};_5._lastKeyDownNode=null;if(_4.isIE){(function(){var _183=function(evt){_5._lastKeyDownNode=evt.srcElement;};_4.doc.attachEvent("onkeydown",_183);_4.addOnWindowUnload(function(){_4.doc.detachEvent("onkeydown",_183);});})();}else{_4.doc.addEventListener("keydown",function(evt){_5._lastKeyDownNode=evt.target;},true);}(function(){_4.declare("dijit._Widget",_5._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:_5._connectOnUseEventHandler,onDblClick:_5._connectOnUseEventHandler,onKeyDown:_5._connectOnUseEventHandler,onKeyPress:_5._connectOnUseEventHandler,onKeyUp:_5._connectOnUseEventHandler,onMouseDown:_5._connectOnUseEventHandler,onMouseMove:_5._connectOnUseEventHandler,onMouseOut:_5._connectOnUseEventHandler,onMouseOver:_5._connectOnUseEventHandler,onMouseLeave:_5._connectOnUseEventHandler,onMouseEnter:_5._connectOnUseEventHandler,onMouseUp:_5._connectOnUseEventHandler,create:function(_184,_185){this._deferredConnects=_4.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==_5._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_186){if(_186 in this._deferredConnects){var _187=this[this._deferredConnects[_186]||"domNode"];this.connect(_187,_186.toLowerCase(),_186);delete this._deferredConnects[_186];}},focused:false,isFocusable:function(){return this.focus&&(_4.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_188){_4.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_188);},attr:function(name,_189){if(_4.config.isDebug){var _18a=arguments.callee._ach||(arguments.callee._ach={}),_18b=(arguments.callee.caller||"unknown caller").toString();if(!_18a[_18b]){_4.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_18b,"","2.0");_18a[_18b]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_18c,_18d){var d=_4,dc=d._connect,_18e=this.inherited(arguments,[obj,_18c=="ondijitclick"?"onclick":_18c,_18d]);if(_18c=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_18d);_18e.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==_5._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=null;return m(e);}}));}}return _18e;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!_4._hasResource["dojo.string"]){_4._hasResource["dojo.string"]=true;_4.provide("dojo.string");_4.getObject("string",true,_4);_4.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};_4.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_4.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_4.string.substitute=function(_18f,map,_190,_191){_191=_191||_4.global;_190=_190?_4.hitch(_191,_190):function(v){return v;};return _18f.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_192,key,_193){var _194=_4.getObject(key,false,map);if(_193){_194=_4.getObject(_193,false,_191).call(_191,_194,key);}return _190(_194,key).toString();});};_4.string.trim=String.prototype.trim?_4.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(!_4._hasResource["dojo.cache"]){_4._hasResource["dojo.cache"]=true;_4.provide("dojo.cache");var _195={};_4.cache=function(_196,url,_197){if(typeof _196=="string"){var _198=_4.moduleUrl(_196,url);}else{_198=_196;_197=url;}var key=_198.toString();var val=_197;if(_197!=undefined&&!_4.isString(_197)){val=("value" in _197?_197.value:undefined);}var _199=_197&&_197.sanitize?true:false;if(typeof val=="string"){val=_195[key]=_199?_4.cache._sanitize(val):val;}else{if(val===null){delete _195[key];}else{if(!(key in _195)){val=_4._getText(key);_195[key]=_199?_4.cache._sanitize(val):val;}val=_195[key];}}return val;};_4.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _19a=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_19a){val=_19a[1];}}else{val="";}return val;};}if(!_4._hasResource["dijit._Templated"]){_4._hasResource["dijit._Templated"]=true;_4.provide("dijit._Templated");_4.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _19b=this.declaredClass,_19c=this;return _4.string.substitute(tmpl,this,function(_19d,key){if(key.charAt(0)=="!"){_19d=_4.getObject(key.substr(1),false,_19c);}if(typeof _19d=="undefined"){throw new Error(_19b+" template:"+key);}if(_19d==null){return "";}return key.charAt(0)=="!"?_19d:_19d.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _19e=_5._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_4.isString(_19e)){node=_4._toDom(this._stringRepl(_19e));if(node.nodeType!=1){throw new Error("Invalid template: "+_19e);}}else{node=_19e.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=_4.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=_5.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_19f){var dest=this.containerNode;if(_19f&&dest){while(_19f.hasChildNodes()){dest.appendChild(_19f.firstChild);}}},_attachTemplateNodes:function(_1a0,_1a1){_1a1=_1a1||function(n,p){return n.getAttribute(p);};var _1a2=_4.isArray(_1a0)?_1a0:(_1a0.all||_1a0.getElementsByTagName("*"));var x=_4.isArray(_1a0)?0:-1;for(;x<_1a2.length;x++){var _1a3=(x==-1)?_1a0:_1a2[x];if(this.widgetsInTemplate&&(_1a1(_1a3,"dojoType")||_1a1(_1a3,"data-dojo-type"))){continue;}var _1a4=_1a1(_1a3,"dojoAttachPoint")||_1a1(_1a3,"data-dojo-attach-point");if(_1a4){var _1a5,_1a6=_1a4.split(/\s*,\s*/);while((_1a5=_1a6.shift())){if(_4.isArray(this[_1a5])){this[_1a5].push(_1a3);}else{this[_1a5]=_1a3;}this._attachPoints.push(_1a5);}}var _1a7=_1a1(_1a3,"dojoAttachEvent")||_1a1(_1a3,"data-dojo-attach-event");if(_1a7){var _1a8,_1a9=_1a7.split(/\s*,\s*/);var trim=_4.trim;while((_1a8=_1a9.shift())){if(_1a8){var _1aa=null;if(_1a8.indexOf(":")!=-1){var _1ab=_1a8.split(":");_1a8=trim(_1ab[0]);_1aa=trim(_1ab[1]);}else{_1a8=trim(_1a8);}if(!_1aa){_1aa=_1a8;}this._attachEvents.push(this.connect(_1a3,_1a8,_1aa));}}}var role=_1a1(_1a3,"waiRole");if(role){_5.setWaiRole(_1a3,role);}var _1ac=_1a1(_1a3,"waiState");if(_1ac){_4.forEach(_1ac.split(/\s*,\s*/),function(_1ad){if(_1ad.indexOf("-")!=-1){var pair=_1ad.split("-");_5.setWaiState(_1a3,pair[0],pair[1]);}});}}},startup:function(){_4.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){_4.forEach(this._attachPoints,function(_1ae){delete this[_1ae];},this);this._attachPoints=[];_4.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_5._Templated._templateCache={};_5._Templated.getCachedTemplate=function(_1af,_1b0,_1b1){var _1b2=_5._Templated._templateCache;var key=_1b0||_1af;var _1b3=_1b2[key];if(_1b3){try{if(!_1b3.ownerDocument||_1b3.ownerDocument==_4.doc){return _1b3;}}catch(e){}_4.destroy(_1b3);}if(!_1b0){_1b0=_4.cache(_1af,{sanitize:true});}_1b0=_4.string.trim(_1b0);if(_1b1||_1b0.match(/\$\{([^\}]+)\}/g)){return (_1b2[key]=_1b0);}else{var node=_4._toDom(_1b0);if(node.nodeType!=1){throw new Error("Invalid template: "+_1b0);}return (_1b2[key]=node);}};if(_4.isIE){_4.addOnWindowUnload(function(){var _1b4=_5._Templated._templateCache;for(var key in _1b4){var _1b5=_1b4[key];if(typeof _1b5=="object"){_4.destroy(_1b5);}delete _1b4[key];}});}_4.extend(_5._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_4._hasResource["dijit._Container"]){_4._hasResource["dijit._Container"]=true;_4.provide("dijit._Container");_4.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1b6,_1b7){var _1b8=this.containerNode;if(_1b7&&typeof _1b7=="number"){var _1b9=this.getChildren();if(_1b9&&_1b9.length>=_1b7){_1b8=_1b9[_1b7-1].domNode;_1b7="after";}}_4.place(_1b6.domNode,_1b8,_1b7);if(this._started&&!_1b6._started){_1b6.startup();}},removeChild:function(_1ba){if(typeof _1ba=="number"){_1ba=this.getChildren()[_1ba];}if(_1ba){var node=_1ba.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1bb){_4.forEach(this.getChildren(),function(_1bc){_1bc.destroyRecursive(_1bb);});},_getSiblingOfChild:function(_1bd,dir){var node=_1bd.domNode,_1be=(dir>0?"nextSibling":"previousSibling");do{node=node[_1be];}while(node&&(node.nodeType!=1||!_5.byNode(node)));return node&&_5.byNode(node);},getIndexOfChild:function(_1bf){return _4.indexOf(this.getChildren(),_1bf);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_1c0){_1c0.startup();});this.inherited(arguments);}});}if(!_4._hasResource["dijit._Contained"]){_4._hasResource["dijit._Contained"]=true;_4.provide("dijit._Contained");_4.declare("dijit._Contained",null,{getParent:function(){var _1c1=_5.getEnclosingWidget(this.domNode.parentNode);return _1c1&&_1c1.isContainer?_1c1:null;},_getSibling:function(_1c2){var node=this.domNode;do{node=node[_1c2+"Sibling"];}while(node&&node.nodeType!=1);return node&&_5.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!_4._hasResource["dijit.layout._LayoutWidget"]){_4._hasResource["dijit.layout._LayoutWidget"]=true;_4.provide("dijit.layout._LayoutWidget");_4.declare("dijit.layout._LayoutWidget",[_5._Widget,_5._Container,_5._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _1c3=this.getParent&&this.getParent();if(!(_1c3&&_1c3.isLayoutContainer)){this.resize();this.connect(_4.isIE?this.domNode:_4.global,"onresize",function(){this.resize();});}},resize:function(_1c4,_1c5){var node=this.domNode;if(_1c4){_4.marginBox(node,_1c4);if(_1c4.t){node.style.top=_1c4.t+"px";}if(_1c4.l){node.style.left=_1c4.l+"px";}}var mb=_1c5||{};_4.mixin(mb,_1c4||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(node),mb);}var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var be=_4._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_4._getPadExtents(node,cs);this._contentBox={l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1c6){var cls=this.baseClass+"-child "+(_1c6.baseClass?this.baseClass+"-"+_1c6.baseClass:"");_4.addClass(_1c6.domNode,cls);},addChild:function(_1c7,_1c8){this.inherited(arguments);if(this._started){this._setupChild(_1c7);}},removeChild:function(_1c9){var cls=this.baseClass+"-child"+(_1c9.baseClass?" "+this.baseClass+"-"+_1c9.baseClass:"");_4.removeClass(_1c9.domNode,cls);this.inherited(arguments);}});_5.layout.marginBox2contentBox=function(node,mb){var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var pb=_4._getPadBorderExtents(node,cs);return {l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1ca=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1cb,dim){var _1cc=_1cb.resize?_1cb.resize(dim):_4.marginBox(_1cb.domNode,dim);if(_1cc){_4.mixin(_1cb,_1cc);}else{_4.mixin(_1cb,_4.marginBox(_1cb.domNode));_4.mixin(_1cb,dim);}};_5.layout.layoutChildren=function(_1cd,dim,_1ce,_1cf,_1d0){dim=_4.mixin({},dim);_4.addClass(_1cd,"dijitLayoutContainer");_1ce=_4.filter(_1ce,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(_4.filter(_1ce,function(item){return item.region=="center"||item.layoutAlign=="client";}));_4.forEach(_1ce,function(_1d1){var elm=_1d1.domNode,pos=(_1d1.region||_1d1.layoutAlign);var _1d2=elm.style;_1d2.left=dim.l+"px";_1d2.top=dim.t+"px";_1d2.position="absolute";_4.addClass(elm,"dijitAlign"+_1ca(pos));var _1d3={};if(_1cf&&_1cf==_1d1.id){_1d3[_1d1.region=="top"||_1d1.region=="bottom"?"h":"w"]=_1d0;}if(pos=="top"||pos=="bottom"){_1d3.w=dim.w;size(_1d1,_1d3);dim.h-=_1d1.h;if(pos=="top"){dim.t+=_1d1.h;}else{_1d2.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1d3.h=dim.h;size(_1d1,_1d3);dim.w-=_1d1.w;if(pos=="left"){dim.l+=_1d1.w;}else{_1d2.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1d1,dim);}}}});};})();}if(!_4._hasResource["dijit._CssStateMixin"]){_4._hasResource["dijit._CssStateMixin"]=true;_4.provide("dijit._CssStateMixin");_4.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_4.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);_4.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,_4.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1d4){if(!this.disabled){switch(_1d4.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _1d5=this.connect(_4.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1d5);});break;}}},_setStateClass:function(){var _1d6=this.baseClass.split(" ");function _1d7(_1d8){_1d6=_1d6.concat(_4.map(_1d6,function(c){return c+_1d8;}),"dijit"+_1d8);};if(!this.isLeftToRight()){_1d7("Rtl");}if(this.checked){_1d7("Checked");}if(this.state){_1d7(this.state);}if(this.selected){_1d7("Selected");}if(this.disabled){_1d7("Disabled");}else{if(this.readOnly){_1d7("ReadOnly");}else{if(this.active){_1d7("Active");}else{if(this.hovering){_1d7("Hover");}}}}if(this._focused){_1d7("Focused");}var tn=this.stateNode||this.domNode,_1d9={};_4.forEach(tn.className.split(" "),function(c){_1d9[c]=true;});if("_stateClasses" in this){_4.forEach(this._stateClasses,function(c){delete _1d9[c];});}_4.forEach(_1d6,function(c){_1d9[c]=true;});var _1da=[];for(var c in _1d9){_1da.push(c);}tn.className=_1da.join(" ");this._stateClasses=_1d6;},_trackMouseState:function(node,_1db){var _1dc=false,_1dd=false,_1de=false;var self=this,cn=_4.hitch(this,"connect",node);function _1df(){var _1e0=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);_4.toggleClass(node,_1db+"Hover",_1dc&&!_1dd&&!_1e0);_4.toggleClass(node,_1db+"Active",_1dd&&!_1e0);_4.toggleClass(node,_1db+"Focused",_1de&&!_1e0);};cn("onmouseenter",function(){_1dc=true;_1df();});cn("onmouseleave",function(){_1dc=false;_1dd=false;_1df();});cn("onmousedown",function(){_1dd=true;_1df();});cn("onmouseup",function(){_1dd=false;_1df();});cn("onfocus",function(){_1de=true;_1df();});cn("onblur",function(){_1de=false;_1df();});this.watch("disabled",_1df);this.watch("readOnly",_1df);}});}if(!_4._hasResource["dijit.form._FormWidget"]){_4._hasResource["dijit.form._FormWidget"]=true;_4.provide("dijit.form._FormWidget");_4.declare("dijit.form._FormWidget",[_5._Widget,_5._Templated,_5._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1e1){this._set("disabled",_1e1);_4.attr(this.focusNode,"disabled",_1e1);if(this.valueNode){_4.attr(this.valueNode,"disabled",_1e1);}_5.setWaiState(this.focusNode,"disabled",_1e1);if(_1e1){this._set("hovering",false);this._set("active",false);var _1e2="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";_4.forEach(_4.isArray(_1e2)?_1e2:[_1e2],function(_1e3){var node=this[_1e3];if(_4.isWebKit||_5.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_1e4){_4.deprecated("setDisabled("+_1e4+") is deprecated. Use set('disabled',"+_1e4+") instead.","","2.0");this.set("disabled",_1e4);},_onFocus:function(e){if(this.scrollOnFocus){_4.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_4.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){_5.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_1e5){},_onChangeActive:false,_handleOnChange:function(_1e6,_1e7){if(this._lastValueReported==undefined&&(_1e7===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e6;}this._pendingOnChange=this._pendingOnChange||(typeof _1e6!=typeof this._lastValueReported)||(this.compare(_1e6,this._lastValueReported)!=0);if((this.intermediateChanges||_1e7||_1e7===undefined)&&this._pendingOnChange){this._lastValueReported=_1e6;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(_4.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1e6);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_1e8){_4.deprecated("dijit.form._FormWidget:setValue("+_1e8+") is deprecated.  Use set('value',"+_1e8+") instead.","","2.0");this.set("value",_1e8);},getValue:function(){_4.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&_4.mouseButtons.isLeft(e)&&this.isFocusable()){var _1e9=this.connect(_4.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1e9);});}}});_4.declare("dijit.form._FormValueWidget",_5.form._FormWidget,{readOnly:false,attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1ea){_4.attr(this.focusNode,"readOnly",_1ea);_5.setWaiState(this.focusNode,"readonly",_1ea);this._set("readOnly",_1ea);},postCreate:function(){this.inherited(arguments);if(_4.isIE<9||(_4.isIE&&_4.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_1eb,_1ec){this._handleOnChange(_1eb,_1ec);},_handleOnChange:function(_1ed,_1ee){this._set("value",_1ed);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==_4.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(_4.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=_4.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(_4.isIE==7){var _1ef=this.domNode;var _1f0=_1ef.parentNode;var _1f1=_1ef.firstChild||_1ef;var _1f2=_1f1.style.filter;var _1f3=this;while(_1f0&&_1f0.clientHeight==0){(function ping(){var _1f4=_1f3.connect(_1f0,"onscroll",function(e){_1f3.disconnect(_1f4);_1f1.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1f1.style.filter=_1f2;},0);});})();_1f0=_1f0.parentNode;}}}});}if(!_4._hasResource["dijit.dijit"]){_4._hasResource["dijit.dijit"]=true;_4.provide("dijit.dijit");}}};});
