1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/*
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
*/
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=_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;}if(el!=_14){var _1b=el.clientWidth,_1c=_19.w-_1b;if(_1b>0&&_1c>0){_19.w=_1b;if(_10&&rtl){_19.x+=_1c;}}_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);_17.x+=el.scrollLeft;el.scrollLeft+=(_10>=8&&!_12&&rtl)?-s: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};}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:(_4.hasClass(_ac.parentNode,"dijitPopup")&&_ac.parentNode),_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;}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 list=[];scan({node:root?_4.byId(root):_4.body(),inherited:(args&&args.inherited)||{dir:_4._isBodyLtr()?"ltr":"rtl"}},list);var _147=args&&args.template?{template:true}:null;return this.instantiate(list,_147,args);};}();(function(){var _148=function(){if(_4.config.parseOnLoad){_4.parser.parse();}};if(_4.getObject("dijit.wai.onload")===_4._loaders[0]){_4._loaders.splice(1,0,_148);}else{_4._loaders.unshift(_148);}})();}if(!_4._hasResource["dojo.Stateful"]){_4._hasResource["dojo.Stateful"]=true;_4.provide("dojo.Stateful");_4.declare("dojo.Stateful",null,{postscript:function(_149){if(_149){_4.mixin(this,_149);}},get:function(name){return this[name];},set:function(name,_14a){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _14b=this[name];this[name]=_14a;if(this._watchCallbacks){this._watchCallbacks(name,_14b,_14a);}return this;},watch:function(name,_14c){var _14d=this._watchCallbacks;if(!_14d){var self=this;_14d=this._watchCallbacks=function(name,_14e,_14f,_150){var _151=function(_152){if(_152){_152=_152.slice();for(var i=0,l=_152.length;i<l;i++){try{_152[i].call(self,name,_14e,_14f);}catch(e){console.error(e);}}}};_151(_14d["_"+name]);if(!_150){_151(_14d["*"]);}};}if(!_14c&&typeof name==="function"){_14c=name;name="*";}else{name="_"+name;}var _153=_14d[name];if(typeof _153!=="object"){_153=_14d[name]=[];}_153.push(_14c);return {unwatch:function(){_153.splice(_4.indexOf(_153,_14c),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(_154,_155){this.create(_154,_155);},create:function(_156,_157){this.srcNodeRef=_4.byId(_157);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_156){this.params=_156;_4._mixin(this,_156);}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 _158=this.srcNodeRef;if(_158&&_158.parentNode&&this.domNode!==_158){_158.parentNode.replaceChild(this.domNode,_158);}}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 _159=function(attr,_15a){if((_15a.params&&attr in _15a.params)||_15a[attr]){_15a.set(attr,_15a[attr]);}};for(var attr in this.attributeMap){_159(attr,this);}_4.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_159(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_15b,_15c=ctor.prototype;for(var _15d in _15c){if(_4.isFunction(_15c[_15d])&&(_15b=_15d.match(/^_set([a-zA-Z]*)Attr$/))&&_15b[1]){r.push(_15b[1].charAt(0).toLowerCase()+_15b[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_4.create("div");}if(this.baseClass){var _15e=this.baseClass.split(" ");if(!this.isLeftToRight()){_15e=_15e.concat(_4.map(_15e,function(name){return name+"Rtl";}));}_4.addClass(this.domNode,_15e);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_15f){this._beingDestroyed=true;this.destroyDescendants(_15f);this.destroy(_15f);},destroy:function(_160){this._beingDestroyed=true;this.uninitialize();var d=_4,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_161){dfe(_161,d.disconnect);});dfe(this._subscribes,function(_162){dun(_162);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_160);_5.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_163){if(this.bgIframe){this.bgIframe.destroy(_163);delete this.bgIframe;}if(this.domNode){if(_163){_4.removeAttr(this.domNode,"widgetId");}else{_4.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_163){_4.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_164){_4.forEach(this.getChildren(),function(_165){if(_165.destroyRecursive){_165.destroyRecursive(_164);}});},uninitialize:function(){return false;},_setClassAttr:function(_166){var _167=this[this.attributeMap["class"]||"domNode"];_4.replaceClass(_167,_166,this["class"]);this._set("class",_166);},_setStyleAttr:function(_168){var _169=this[this.attributeMap.style||"domNode"];if(_4.isObject(_168)){_4.style(_169,_168);}else{if(_169.style.cssText){_169.style.cssText+="; "+_168;}else{_169.style.cssText=_168;}}this._set("style",_168);},_attrToDom:function(attr,_16a){var _16b=this.attributeMap[attr];_4.forEach(_4.isArray(_16b)?_16b:[_16b],function(_16c){var _16d=this[_16c.node||_16c||"domNode"];var type=_16c.type||"attribute";switch(type){case "attribute":if(_4.isFunction(_16a)){_16a=_4.hitch(this,_16a);}var _16e=_16c.attribute?_16c.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_4.attr(_16d,_16e,_16a);break;case "innerText":_16d.innerHTML="";_16d.appendChild(_4.doc.createTextNode(_16a));break;case "innerHTML":_16d.innerHTML=_16a;break;case "class":_4.replaceClass(_16d,_16a,this[attr]);break;}},this);},get:function(name){var _16f=this._getAttrNames(name);return this[_16f.g]?this[_16f.g]():this[name];},set:function(name,_170){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _171=this._getAttrNames(name);if(this[_171.s]){var _172=this[_171.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_170);}this._set(name,_170);}return _172||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,_173){var _174=this[name];this[name]=_173;if(this._watchCallbacks&&this._created&&_173!==_174){this._watchCallbacks(name,_174,_173);}},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,_175,_176){var _177=[_4._connect(obj,_175,this,_176)];this._connects.push(_177);return _177;},disconnect:function(_178){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_178){_4.forEach(_178,_4.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_179,_17a){var _17b=_4.subscribe(_179,this,_17a);this._subscribes.push(_17b);return _17b;},unsubscribe:function(_17c){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_17c){_4.unsubscribe(_17c);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4._isBodyLtr();},placeAt:function(_17d,_17e){if(_17d.declaredClass&&_17d.addChild){_17d.addChild(this,_17e);}else{_4.place(this.domNode,_17d,_17e);}return this;}});})();}if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.connect(_4,"_connect",function(_17f,_180){if(_17f&&_4.isFunction(_17f._onConnect)){_17f._onConnect(_180);}});_5._connectOnUseEventHandler=function(_181){};_5._lastKeyDownNode=null;if(_4.isIE){(function(){var _182=function(evt){_5._lastKeyDownNode=evt.srcElement;};_4.doc.attachEvent("onkeydown",_182);_4.addOnWindowUnload(function(){_4.doc.detachEvent("onkeydown",_182);});})();}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(_183,_184){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(_185){if(_185 in this._deferredConnects){var _186=this[this._deferredConnects[_185]||"domNode"];this.connect(_186,_185.toLowerCase(),_185);delete this._deferredConnects[_185];}},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,_187){_4.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_187);},attr:function(name,_188){if(_4.config.isDebug){var _189=arguments.callee._ach||(arguments.callee._ach={}),_18a=(arguments.callee.caller||"unknown caller").toString();if(!_189[_18a]){_4.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_18a,"","2.0");_189[_18a]=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,_18b,_18c){var d=_4,dc=d._connect,_18d=this.inherited(arguments,[obj,_18b=="ondijitclick"?"onclick":_18b,_18c]);if(_18b=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_18c);_18d.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 _18d;},_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(_18e,map,_18f,_190){_190=_190||_4.global;_18f=_18f?_4.hitch(_190,_18f):function(v){return v;};return _18e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_191,key,_192){var _193=_4.getObject(key,false,map);if(_192){_193=_4.getObject(_192,false,_190).call(_190,_193,key);}return _18f(_193,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 _194={};_4.cache=function(_195,url,_196){if(typeof _195=="string"){var _197=_4.moduleUrl(_195,url);}else{_197=_195;_196=url;}var key=_197.toString();var val=_196;if(_196!=undefined&&!_4.isString(_196)){val=("value" in _196?_196.value:undefined);}var _198=_196&&_196.sanitize?true:false;if(typeof val=="string"){val=_194[key]=_198?_4.cache._sanitize(val):val;}else{if(val===null){delete _194[key];}else{if(!(key in _194)){val=_4._getText(key);_194[key]=_198?_4.cache._sanitize(val):val;}val=_194[key];}}return val;};_4.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _199=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_199){val=_199[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 _19a=this.declaredClass,_19b=this;return _4.string.substitute(tmpl,this,function(_19c,key){if(key.charAt(0)=="!"){_19c=_4.getObject(key.substr(1),false,_19b);}if(typeof _19c=="undefined"){throw new Error(_19a+" template:"+key);}if(_19c==null){return "";}return key.charAt(0)=="!"?_19c:_19c.toString().replace(/"/g,""");},this);},buildRendering:function(){var _19d=_5._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_4.isString(_19d)){node=_4._toDom(this._stringRepl(_19d));if(node.nodeType!=1){throw new Error("Invalid template: "+_19d);}}else{node=_19d.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(_19e){var dest=this.containerNode;if(_19e&&dest){while(_19e.hasChildNodes()){dest.appendChild(_19e.firstChild);}}},_attachTemplateNodes:function(_19f,_1a0){_1a0=_1a0||function(n,p){return n.getAttribute(p);};var _1a1=_4.isArray(_19f)?_19f:(_19f.all||_19f.getElementsByTagName("*"));var x=_4.isArray(_19f)?0:-1;for(;x<_1a1.length;x++){var _1a2=(x==-1)?_19f:_1a1[x];if(this.widgetsInTemplate&&(_1a0(_1a2,"dojoType")||_1a0(_1a2,"data-dojo-type"))){continue;}var _1a3=_1a0(_1a2,"dojoAttachPoint")||_1a0(_1a2,"data-dojo-attach-point");if(_1a3){var _1a4,_1a5=_1a3.split(/\s*,\s*/);while((_1a4=_1a5.shift())){if(_4.isArray(this[_1a4])){this[_1a4].push(_1a2);}else{this[_1a4]=_1a2;}this._attachPoints.push(_1a4);}}var _1a6=_1a0(_1a2,"dojoAttachEvent")||_1a0(_1a2,"data-dojo-attach-event");if(_1a6){var _1a7,_1a8=_1a6.split(/\s*,\s*/);var trim=_4.trim;while((_1a7=_1a8.shift())){if(_1a7){var _1a9=null;if(_1a7.indexOf(":")!=-1){var _1aa=_1a7.split(":");_1a7=trim(_1aa[0]);_1a9=trim(_1aa[1]);}else{_1a7=trim(_1a7);}if(!_1a9){_1a9=_1a7;}this._attachEvents.push(this.connect(_1a2,_1a7,_1a9));}}}var role=_1a0(_1a2,"waiRole");if(role){_5.setWaiRole(_1a2,role);}var _1ab=_1a0(_1a2,"waiState");if(_1ab){_4.forEach(_1ab.split(/\s*,\s*/),function(_1ac){if(_1ac.indexOf("-")!=-1){var pair=_1ac.split("-");_5.setWaiState(_1a2,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(_1ad){delete this[_1ad];},this);this._attachPoints=[];_4.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_5._Templated._templateCache={};_5._Templated.getCachedTemplate=function(_1ae,_1af,_1b0){var _1b1=_5._Templated._templateCache;var key=_1af||_1ae;var _1b2=_1b1[key];if(_1b2){try{if(!_1b2.ownerDocument||_1b2.ownerDocument==_4.doc){return _1b2;}}catch(e){}_4.destroy(_1b2);}if(!_1af){_1af=_4.cache(_1ae,{sanitize:true});}_1af=_4.string.trim(_1af);if(_1b0||_1af.match(/\$\{([^\}]+)\}/g)){return (_1b1[key]=_1af);}else{var node=_4._toDom(_1af);if(node.nodeType!=1){throw new Error("Invalid template: "+_1af);}return (_1b1[key]=node);}};if(_4.isIE){_4.addOnWindowUnload(function(){var _1b3=_5._Templated._templateCache;for(var key in _1b3){var _1b4=_1b3[key];if(typeof _1b4=="object"){_4.destroy(_1b4);}delete _1b3[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(_1b5,_1b6){var _1b7=this.containerNode;if(_1b6&&typeof _1b6=="number"){var _1b8=this.getChildren();if(_1b8&&_1b8.length>=_1b6){_1b7=_1b8[_1b6-1].domNode;_1b6="after";}}_4.place(_1b5.domNode,_1b7,_1b6);if(this._started&&!_1b5._started){_1b5.startup();}},removeChild:function(_1b9){if(typeof _1b9=="number"){_1b9=this.getChildren()[_1b9];}if(_1b9){var node=_1b9.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1ba){_4.forEach(this.getChildren(),function(_1bb){_1bb.destroyRecursive(_1ba);});},_getSiblingOfChild:function(_1bc,dir){var node=_1bc.domNode,_1bd=(dir>0?"nextSibling":"previousSibling");do{node=node[_1bd];}while(node&&(node.nodeType!=1||!_5.byNode(node)));return node&&_5.byNode(node);},getIndexOfChild:function(_1be){return _4.indexOf(this.getChildren(),_1be);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_1bf){_1bf.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 _1c0=_5.getEnclosingWidget(this.domNode.parentNode);return _1c0&&_1c0.isContainer?_1c0:null;},_getSibling:function(_1c1){var node=this.domNode;do{node=node[_1c1+"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 _1c2=this.getParent&&this.getParent();if(!(_1c2&&_1c2.isLayoutContainer)){this.resize();this.connect(_4.isIE?this.domNode:_4.global,"onresize",function(){this.resize();});}},resize:function(_1c3,_1c4){var node=this.domNode;if(_1c3){_4.marginBox(node,_1c3);if(_1c3.t){node.style.top=_1c3.t+"px";}if(_1c3.l){node.style.left=_1c3.l+"px";}}var mb=_1c4||{};_4.mixin(mb,_1c3||{});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(_1c5){var cls=this.baseClass+"-child "+(_1c5.baseClass?this.baseClass+"-"+_1c5.baseClass:"");_4.addClass(_1c5.domNode,cls);},addChild:function(_1c6,_1c7){this.inherited(arguments);if(this._started){this._setupChild(_1c6);}},removeChild:function(_1c8){var cls=this.baseClass+"-child"+(_1c8.baseClass?" "+this.baseClass+"-"+_1c8.baseClass:"");_4.removeClass(_1c8.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 _1c9=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1ca,dim){_1ca.resize?_1ca.resize(dim):_4.marginBox(_1ca.domNode,dim);_4.mixin(_1ca,_4.marginBox(_1ca.domNode));_4.mixin(_1ca,dim);};_5.layout.layoutChildren=function(_1cb,dim,_1cc,_1cd,_1ce){dim=_4.mixin({},dim);_4.addClass(_1cb,"dijitLayoutContainer");_1cc=_4.filter(_1cc,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(_4.filter(_1cc,function(item){return item.region=="center"||item.layoutAlign=="client";}));_4.forEach(_1cc,function(_1cf){var elm=_1cf.domNode,pos=(_1cf.region||_1cf.layoutAlign);var _1d0=elm.style;_1d0.left=dim.l+"px";_1d0.top=dim.t+"px";_1d0.bottom=_1d0.right="auto";_4.addClass(elm,"dijitAlign"+_1c9(pos));var _1d1={};if(_1cd&&_1cd==_1cf.id){_1d1[_1cf.region=="top"||_1cf.region=="bottom"?"h":"w"]=_1ce;}if(pos=="top"||pos=="bottom"){_1d1.w=dim.w;size(_1cf,_1d1);dim.h-=_1cf.h;if(pos=="top"){dim.t+=_1cf.h;}else{_1d0.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1d1.h=dim.h;size(_1cf,_1d1);dim.w-=_1cf.w;if(pos=="left"){dim.l+=_1cf.w;}else{_1d0.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1cf,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(_1d2){if(!this.disabled){switch(_1d2.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 _1d3=this.connect(_4.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1d3);});break;}}},_setStateClass:function(){var _1d4=this.baseClass.split(" ");function _1d5(_1d6){_1d4=_1d4.concat(_4.map(_1d4,function(c){return c+_1d6;}),"dijit"+_1d6);};if(!this.isLeftToRight()){_1d5("Rtl");}if(this.checked){_1d5("Checked");}if(this.state){_1d5(this.state);}if(this.selected){_1d5("Selected");}if(this.disabled){_1d5("Disabled");}else{if(this.readOnly){_1d5("ReadOnly");}else{if(this.active){_1d5("Active");}else{if(this.hovering){_1d5("Hover");}}}}if(this._focused){_1d5("Focused");}var tn=this.stateNode||this.domNode,_1d7={};_4.forEach(tn.className.split(" "),function(c){_1d7[c]=true;});if("_stateClasses" in this){_4.forEach(this._stateClasses,function(c){delete _1d7[c];});}_4.forEach(_1d4,function(c){_1d7[c]=true;});var _1d8=[];for(var c in _1d7){_1d8.push(c);}tn.className=_1d8.join(" ");this._stateClasses=_1d4;},_trackMouseState:function(node,_1d9){var _1da=false,_1db=false,_1dc=false;var self=this,cn=_4.hitch(this,"connect",node);function _1dd(){var _1de=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);_4.toggleClass(node,_1d9+"Hover",_1da&&!_1db&&!_1de);_4.toggleClass(node,_1d9+"Active",_1db&&!_1de);_4.toggleClass(node,_1d9+"Focused",_1dc&&!_1de);};cn("onmouseenter",function(){_1da=true;_1dd();});cn("onmouseleave",function(){_1da=false;_1db=false;_1dd();});cn("onmousedown",function(){_1db=true;_1dd();});cn("onmouseup",function(){_1db=false;_1dd();});cn("onfocus",function(){_1dc=true;_1dd();});cn("onblur",function(){_1dc=false;_1dd();});this.watch("disabled",_1dd);this.watch("readOnly",_1dd);}});}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,""")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1df){this._set("disabled",_1df);_4.attr(this.focusNode,"disabled",_1df);if(this.valueNode){_4.attr(this.valueNode,"disabled",_1df);}_5.setWaiState(this.focusNode,"disabled",_1df);if(_1df){this._set("hovering",false);this._set("active",false);var _1e0="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";_4.forEach(_4.isArray(_1e0)?_1e0:[_1e0],function(_1e1){var node=this[_1e1];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(_1e2){_4.deprecated("setDisabled("+_1e2+") is deprecated. Use set('disabled',"+_1e2+") instead.","","2.0");this.set("disabled",_1e2);},_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(_1e3){},_onChangeActive:false,_handleOnChange:function(_1e4,_1e5){if(this._lastValueReported==undefined&&(_1e5===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e4;}this._pendingOnChange=this._pendingOnChange||(typeof _1e4!=typeof this._lastValueReported)||(this.compare(_1e4,this._lastValueReported)!=0);if((this.intermediateChanges||_1e5||_1e5===undefined)&&this._pendingOnChange){this._lastValueReported=_1e4;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(_4.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1e4);}),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(_1e6){_4.deprecated("dijit.form._FormWidget:setValue("+_1e6+") is deprecated. Use set('value',"+_1e6+") instead.","","2.0");this.set("value",_1e6);},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 _1e7=this.connect(_4.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1e7);});}}});_4.declare("dijit.form._FormValueWidget",_5.form._FormWidget,{readOnly:false,attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1e8){_4.attr(this.focusNode,"readOnly",_1e8);_5.setWaiState(this.focusNode,"readonly",_1e8);this._set("readOnly",_1e8);},postCreate:function(){this.inherited(arguments);if(_4.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_1e9,_1ea){this._handleOnChange(_1e9,_1ea);},_handleOnChange:function(_1eb,_1ec){this._set("value",_1eb);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 _1ed=this.domNode;var _1ee=_1ed.parentNode;var _1ef=_1ed.firstChild||_1ed;var _1f0=_1ef.style.filter;var _1f1=this;while(_1ee&&_1ee.clientHeight==0){(function ping(){var _1f2=_1f1.connect(_1ee,"onscroll",function(e){_1f1.disconnect(_1f2);_1ef.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1ef.style.filter=_1f0;},0);});})();_1ee=_1ee.parentNode;}}}});}if(!_4._hasResource["dijit.dijit"]){_4._hasResource["dijit.dijit"]=true;_4.provide("dijit.dijit");}}};});
|