/*
	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

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