/*
	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._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1cb,_1cc){var _1cd=this.containerNode;if(_1cc&&typeof _1cc=="number"){var _1ce=this.getChildren();if(_1ce&&_1ce.length>=_1cc){_1cd=_1ce[_1cc-1].domNode;_1cc="after";}}dojo.place(_1cb.domNode,_1cd,_1cc);if(this._started&&!_1cb._started){_1cb.startup();}},removeChild:function(_1cf){if(typeof _1cf=="number"){_1cf=this.getChildren()[_1cf];}if(_1cf){var node=_1cf.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1d0){dojo.forEach(this.getChildren(),function(_1d1){_1d1.destroyRecursive(_1d0);});},_getSiblingOfChild:function(_1d2,dir){var node=_1d2.domNode,_1d3=(dir>0?"nextSibling":"previousSibling");do{node=node[_1d3];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1d4){return dojo.indexOf(this.getChildren(),_1d4);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1d5){_1d5.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _1d6=this.dropDown,_1d7=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_1d7){if(dojo.hasClass(t,"dijitPopup")){_1d7=true;}else{t=t.parentNode;}}if(_1d7){t=e.target;if(_1d6.onItemClick){var _1d8;while(t&&!(_1d8=dijit.byNode(t))){t=t.parentNode;}if(_1d8&&_1d8.onClick&&_1d8.getParent){_1d8.getParent().onItemClick(_1d8,e);}}return;}}}if(this._opened&&_1d6.focus&&_1d6.autoFocus!==false){window.setTimeout(dojo.hitch(_1d6,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _1d9={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_1d9+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_1da=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_1da.tagName||"").toLowerCase()!=="input"||(_1da.type&&_1da.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _1db=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_1db);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1dc){_1dc();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _1dd=this.dropDown,_1de=_1dd.domNode,_1df=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1de.style.width){this._explicitDDWidth=true;}if(_1de.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1e0={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1e0.width="";}if(!this._explicitDDHeight){_1e0.height="";}dojo.style(_1de,_1e0);var _1e1=this.maxHeight;if(_1e1==-1){var _1e2=dojo.window.getBox(),_1e3=dojo.position(_1df,false);_1e1=Math.floor(Math.max(_1e3.y,_1e2.h-(_1e3.y+_1e3.h)));}if(_1dd.startup&&!_1dd._started){_1dd.startup();}dijit.popup.moveOffScreen(_1dd);var mb=dojo._getMarginSize(_1de);var _1e4=(_1e1&&mb.h>_1e1);dojo.style(_1de,{overflowX:"hidden",overflowY:_1e4?"auto":"hidden"});if(_1e4){mb.h=_1e1;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1df.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1df.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_1dd.resize)){_1dd.resize(mb);}else{dojo.marginBox(_1de,mb);}}var _1e5=dijit.popup.open({parent:this,popup:_1dd,around:_1df,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _1e5;},closeDropDown:function(_1e6){if(this._opened){if(_1e6){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _1e7=dijit.byNode(node);if(_1e7&&typeof _1e7._onSubmit=="function"){_1e7._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_1e8){if(_1e8&&(!this.params||!("label" in this.params))){this.set("label",_1e8.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_1e9){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_1e9);},_setLabelAttr:function(_1ea){this._set("label",_1ea);this.containerNode.innerHTML=_1ea;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _1eb=this.iconClass||"dijitNoIcon",_1ec=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_1ec,_1eb);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _1ed=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_1ed[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _1ee=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_1ee);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _1ef=this.dropDown;return (!!_1ef&&(!_1ef.href||_1ef.isLoaded));},loadDropDown:function(){var _1f0=this.dropDown;if(!_1f0){return;}if(!this.isLoaded()){var _1f1=dojo.connect(_1f0,"onLoad",this,function(){dojo.disconnect(_1f1);this.openDropDown();});_1f0.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_1f2){if(!this.disabled){dijit.focus(_1f2=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_1f3,_1f4){this._set("checked",_1f3);dojo.attr(this.focusNode||this.domNode,"checked",_1f3);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_1f3);this._handleOnChange(_1f3,_1f4);},setChecked:function(_1f5){dojo.deprecated("setChecked("+_1f5+") is deprecated. Use set('checked',"+_1f5+") instead.","","2.0");this.set("checked",_1f5);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_1f6,_1f7,_1f8){_1f8=dojo.i18n.normalizeLocale(_1f8);var _1f9=_1f8.split("-");var _1fa=[_1f6,"nls",_1f7].join(".");var _1fb=dojo._loadedModules[_1fa];if(_1fb){var _1fc;for(var i=_1f9.length;i>0;i--){var loc=_1f9.slice(0,i).join("_");if(_1fb[loc]){_1fc=_1fb[loc];break;}}if(!_1fc){_1fc=_1fb.ROOT;}if(_1fc){var _1fd=function(){};_1fd.prototype=_1fc;return new _1fd();}}throw new Error("Bundle not found: "+_1f7+" in "+_1f6+" , locale="+_1f8);};dojo.i18n.normalizeLocale=function(_1fe){var _1ff=(_1fe?_1fe:dojo.locale).toLowerCase();if(_1ff=="root"){_1ff="ROOT";}return _1ff;};dojo.i18n._requireLocalization=function(_200,_201,_202,_203){var _204=dojo.i18n.normalizeLocale(_202);var _205=[_200,"nls",_201].join(".");var _206="";if(_203){var _207=_203.split(",");for(var i=0;i<_207.length;i++){if(_204["indexOf"](_207[i])==0){if(_207[i].length>_206.length){_206=_207[i];}}}if(!_206){_206="ROOT";}}var _208=_203?_206:_204;var _209=dojo._loadedModules[_205];var _20a=null;if(_209){if(dojo.config.localizationComplete&&_209._built){return;}var _20b=_208.replace(/-/g,"_");var _20c=_205+"."+_20b;_20a=dojo._loadedModules[_20c];}if(!_20a){_209=dojo["provide"](_205);var syms=dojo._getModuleSymbols(_200);var _20d=syms.concat("nls").join("/");var _20e;dojo.i18n._searchLocalePath(_208,_203,function(loc){var _20f=loc.replace(/-/g,"_");var _210=_205+"."+_20f;var _211=false;if(!dojo._loadedModules[_210]){dojo["provide"](_210);var _212=[_20d];if(loc!="ROOT"){_212.push(loc);}_212.push(_201);var _213=_212.join("/")+".js";_211=dojo._loadPath(_213,null,function(hash){hash=hash.root||hash;var _214=function(){};_214.prototype=_20e;_209[_20f]=new _214();for(var j in hash){_209[_20f][j]=hash[j];}});}else{_211=true;}if(_211&&_209[_20f]){_20e=_209[_20f];}else{_209[_20f]=_20e;}if(_203){return true;}});}if(_203&&_204!=_206){_209[_204.replace(/-/g,"_")]=_209[_206.replace(/-/g,"_")];}};(function(){var _215=dojo.config.extraLocale;if(_215){if(!_215 instanceof Array){_215=[_215];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_216,_217){req(m,b,_216,_217);if(_216){return;}for(var i=0;i<_215.length;i++){req(m,b,_215[i],_217);}};}})();dojo.i18n._searchLocalePath=function(_218,down,_219){_218=dojo.i18n.normalizeLocale(_218);var _21a=_218.split("-");var _21b=[];for(var i=_21a.length;i>0;i--){_21b.push(_21a.slice(0,i).join("-"));}_21b.push(false);if(down){_21b.reverse();}for(var j=_21b.length-1;j>=0;j--){var loc=_21b[j]||"ROOT";var stop=_219(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_21c,_21d){function _21e(_21f){_21f=dojo.i18n.normalizeLocale(_21f);dojo.i18n._searchLocalePath(_21f,true,function(loc){for(var i=0;i<_21d.length;i++){if(_21d[i]==loc){dojo["require"](_21c+"_"+loc);return true;}}return false;});};_21e();var _220=dojo.config.extraLocale||[];for(var i=0;i<_220.length;i++){_21e(_220[i]);}};}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(_221,_222,_223){var _224;if(_221!==undefined){_224=this.filter(_221);if(typeof _223!="string"){if(_224!==null&&((typeof _224!="number")||!isNaN(_224))){_223=this.filter(this.format(_224,this.constraints));}else{_223="";}}}if(_223!=null&&_223!=undefined&&((typeof _223)!="number"||!isNaN(_223))&&this.textbox.value!=_223){this.textbox.value=_223;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_224,_222]);},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(_225){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_225);},_setDisplayedValueAttr:function(_226){if(_226===null||_226===undefined){_226="";}else{if(typeof _226!="string"){_226=String(_226);}}this.textbox.value=_226;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_227,_228){return ((_227==null||_227==undefined)?"":(_227.toString?_227.toString():_227));},parse:function(_229,_22a){return _229;},_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 _22b=this;setTimeout(function(){_22b._handleOnChange(_22b.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 _22c=this.domNode.getElementsByTagName("INPUT");if(_22c){for(var i=0;i<_22c.length;i++){_22c[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 _22d;if(dojo.isIE){var _22e=dojo.doc.selection.createRange();var _22f=_22e.parentElement();_22d=_22f==this.textbox&&_22e.text.length==0;}else{_22d=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_22d){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_230,_231,stop){var _232=dojo.global;var _233=dojo.doc;_230=dojo.byId(_230);if(isNaN(_231)){_231=0;}if(isNaN(stop)){stop=_230.value?_230.value.length:0;}dijit.focus(_230);if(_233["selection"]&&dojo.body()["createTextRange"]){if(_230.createTextRange){var r=_230.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_231);r.moveEnd("character",stop-_231);r.select();}}else{if(_232["getSelection"]){if(_230.setSelectionRange){_230.setSelectionRange(_231,stop);}}}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_234,_235,_236,rtl){if(this.aroundNode&&this.aroundNode===_235){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_234;var pos=dijit.placeOnScreenAroundElement(this.domNode,_235,dijit.getPopupAroundAlignment((_236&&_236.length)?_236:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_235;},orient:function(node,_237,_238,_239,_23a){this.connectorNode.style.top="";var _23b=_239.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_237+"-"+_238];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _23c=Math.min((Math.max(_23b,1)),size.w);var _23d=_23c<size.w;this.domNode.style.width=_23c+"px";if(_23d){this.containerNode.style.overflow="auto";var _23e=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_23e>_23c){_23e=_23e+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_23e+"px";}}if(_238.charAt(0)=="B"&&_237.charAt(0)=="B"){var mb=dojo.marginBox(node);var _23f=this.connectorNode.offsetHeight;if(mb.h>_239.h){var _240=_239.h-(_23a.h/2)-(_23f/2);this.connectorNode.style.top=_240+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_23a.h/2-_23f/2,0),mb.h-_23f)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_23b);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_241){if(this._onDeck&&this._onDeck[1]==_241){this._onDeck=null;}else{if(this.aroundNode===_241){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_242,_243,_244,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_242,_243,_244,rtl);};dijit.hideTooltip=function(_245){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_245);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_246){dojo.forEach(this._connections||[],function(_247){dojo.forEach(_247,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_246)?_246:(_246?[_246]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_246);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _248=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_248);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_249){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_249,this.position,!this.isLeftToRight());this._connectNode=_249;this.onShow(_249,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_24a,_24b){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\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"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_24c){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_24d,_24e){return (new RegExp("^(?:"+this.regExpGen(_24e)+")"+(this.required?"":"?")+"$")).test(_24d)&&(!this.required||!this._isEmpty(_24d))&&(this._isEmpty(_24d)||this.parse(_24d,_24e)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_24f){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_250){return (this.trim?/^\s*$/:/^$/).test(_250);},getErrorMessage:function(_251){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_252){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_253){var _254="";var _255=this.disabled||this.isValid(_253);if(_255){this._maskValidSubsetError=true;}var _256=this._isEmpty(this.textbox.value);var _257=!_255&&_253&&this._isValidSubset();this._set("state",_255?"":(((((!this._hasBeenBlurred||_253)&&_256)||_257)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_255?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_253&&_257;_254=this.getErrorMessage(_253);}else{if(this.state=="Incomplete"){_254=this.getPromptMessage(_253);this._maskValidSubsetError=!this._hasBeenBlurred||_253;}else{if(_256){_254=this.getPromptMessage(_253);}}}this.set("message",_254);return _255;},displayMessage:function(_258){dijit.hideTooltip(this.domNode);if(_258&&this._focused){dijit.showTooltip(_258,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_259){if(!_259.locale&&this.lang){_259.locale=this.lang;}this._set("constraints",_259);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _25a="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_25a+=re;break;case ")":_25a+="|$)";break;default:_25a+="(?:"+re+"|$)";break;}});}try{"".search(_25a);}catch(e){_25a=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_25a+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_25b){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_25c){this._set("required",_25c);dijit.setWaiState(this.focusNode,"required",_25c);this._refreshState();},_setMessageAttr:function(_25d){this._set("message",_25d);this.displayMessage(_25d);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_25e){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_25f,_260){return ("min" in _260?(this.compare(_25f,_260.min)>=0):true)&&("max" in _260?(this.compare(_25f,_260.max)<=0):true);},isInRange:function(_261){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _262=false;var _263=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_262=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_263=(typeof max=="number")&&max>0;}return _262||_263;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_264){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_264));},getErrorMessage:function(_265){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_265)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_266){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_267,_268){dijit.setWaiState(this.focusNode,"valuenow",_267);this.inherited(arguments);}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_269){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_269&&_269.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_26a){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_26a);};dojo.regexp.group=function(_26b,_26c){return "("+(_26c?"?:":"")+_26b+")";};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_26d,_26e){var _26f=[];function _270(attr,dir,comp,s){return function(_271,_272){var a=s.getValue(_271,attr);var b=s.getValue(_272,attr);return dir*comp(a,b);};};var _273;var map=_26e.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_26d.length;i++){_273=_26d[i];var attr=_273.attribute;if(attr){var dir=(_273.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_26f.push(_270(attr,dir,comp,_26e));}}return function(rowA,rowB){var i=0;while(i<_26f.length){var ret=_26f[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_274){_274=_274||{};if(!_274.store){_274.store=this;}var self=this;var _275=function(_276,_277){if(_277.onError){var _278=_277.scope||dojo.global;_277.onError.call(_278,_276,_277);}};var _279=function(_27a,_27b){var _27c=_27b.abort||null;var _27d=false;var _27e=_27b.start?_27b.start:0;var _27f=(_27b.count&&(_27b.count!==Infinity))?(_27e+_27b.count):_27a.length;_27b.abort=function(){_27d=true;if(_27c){_27c.call(_27b);}};var _280=_27b.scope||dojo.global;if(!_27b.store){_27b.store=self;}if(_27b.onBegin){_27b.onBegin.call(_280,_27a.length,_27b);}if(_27b.sort){_27a.sort(dojo.data.util.sorter.createSortFunction(_27b.sort,self));}if(_27b.onItem){for(var i=_27e;(i<_27a.length)&&(i<_27f);++i){var item=_27a[i];if(!_27d){_27b.onItem.call(_280,item,_27b);}}}if(_27b.onComplete&&!_27d){var _281=null;if(!_27b.onItem){_281=_27a.slice(_27e,_27f);}_27b.onComplete.call(_280,_281,_27b);}};this._fetchItems(_274,_279,_275);return _274;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_282,_283){var rxp="^";var c=null;for(var i=0;i<_282.length;i++){c=_282.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_282.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_283){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_284){var pos=0;if(typeof (_284.selectionStart)=="number"){pos=_284.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_284.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_285,_286){_286=parseInt(_286);dijit.selectInputText(_285,_286,_286);},_setDisabledAttr:function(_287){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_287);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _288=false;var pw=this.dropDown;var dk=dojo.keys;var _289=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_289=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_289);}dojo.stopEvent(evt);break;case dk.ENTER:if(_289){if(_289==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_289==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _28a=this.get("displayedValue");if(pw&&(_28a==pw._messages["previousMessage"]||_28a==pw._messages["nextMessage"])){break;}if(_289){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_289){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_288=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_288=true;break;default:_288=typeof key=="string"||key==229;}if(_288){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _28b=this.ignoreCase?"toLowerCase":"substr";if(text[_28b](0).indexOf(this.focusNode.value[_28b](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_28c,_28d){this._fetchHandle=null;if(this.disabled||this.readOnly||(_28d.query[this.searchAttr]!=this._lastQuery)){return;}var _28e=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_28c.length&&!this._maxOptions){this.closeDropDown();return;}_28d._maxOptions=this._maxOptions;var _28f=this.dropDown.createOptions(_28c,_28d,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_28d.direction){if(1==_28d.direction){this.dropDown.highlightFirstOption();}else{if(-1==_28d.direction){this.dropDown.highlightLastOption();}}if(_28e){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_28d.query[this.searchAttr])){this._announceOption(_28f[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_290){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _291=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_291==pw._messages["previousMessage"]||_291==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_291);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_292,_293){if(!_293){_293=this.store.getValue(item,this.searchAttr);}var _294=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_293;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_294,_292,_293);},_announceOption:function(node){if(!node){return;}var _295;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_295=node.innerHTML;this.item=undefined;this.value="";}else{_295=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_295);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_295);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _296=this.id+"_popup",_297=dojo.getObject(this.dropDownClass,false);this.dropDown=new _297({onChange:dojo.hitch(this,this._selectOption),id:_296,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_296);}var _298=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_298[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_299,_29a){this.searchTimer=null;var _29b={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_299,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_29c){_29a._fetchHandle=null;console.error("dijit.form.ComboBox: "+_29c);_29a.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_29b,_29a.fetchProperties);this._fetchHandle=_29a.store.fetch(_29b);var _29d=function(_29e,_29f){_29e.start+=_29e.count*_29f;_29e.direction=_29f;this._fetchHandle=this.store.fetch(_29e);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_29d,this._fetchHandle);},_298,this),this.searchDelay);},_setMaxOptions:function(size,_2a0){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _2a1=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_2a1);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _2a2=this._getValueField();this.value=this.store.getValue(item,_2a2);}}}this.inherited(arguments);},postCreate:function(){var _2a3=dojo.query("label[for=\""+this.id+"\"]");if(_2a3.length){_2a3[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_2a3[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _2a4=this.labelFunc(item,this.store),_2a5=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_2a4=this.doHighlight(_2a4,this._escapeHtml(this._lastInput));_2a5="html";}return {html:_2a5=="html",label:_2a4};},doHighlight:function(_2a6,find){var _2a7=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_2a6).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_2a7),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_2a8){return _2a8.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_2a9){this.value=_2a9;this.onChange(_2a9);},onChange:function(_2aa){},onPage:function(_2ab){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_2ac){var _2ad=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _2ae=_2ac(item);if(_2ae.html){_2ad.innerHTML=_2ae.label;}else{_2ad.appendChild(dojo.doc.createTextNode(_2ae.label));}if(_2ad.innerHTML==""){_2ad.innerHTML="&nbsp;";}_2ad.item=item;return _2ad;},createOptions:function(_2af,_2b0,_2b1){this.previousButton.style.display=(_2b0.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_2af,function(item,i){var _2b2=this._createOption(item,_2b1);dojo.attr(_2b2,"id",this.id+i);this.domNode.insertBefore(_2b2,this.nextButton);},this);var _2b3=false;if(_2b0._maxOptions&&_2b0._maxOptions!=-1){if((_2b0.start+_2b0.count)<_2b0._maxOptions){_2b3=true;}else{if((_2b0.start+_2b0.count)>_2b0._maxOptions&&_2b0.count==_2af.length){_2b3=true;}}}else{if(_2b0.count==_2af.length){_2b3=true;}}this.nextButton.style.display=_2b3?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _2b4=this.domNode.firstChild;var _2b5=_2b4.nextSibling;this._focusOptionNode(_2b5.style.display=="none"?_2b4:_2b5);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _2b6=0;var _2b7=this.domNode.scrollTop;var _2b8=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_2b6<_2b8){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _2b9=this.domNode.scrollTop;_2b6+=(_2b9-_2b7)*(up?-1:1);_2b7=_2b9;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_2ba,_2bb,_2bc){this._set("item",null);if(!_2ba){_2ba="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_2ba,_2bb,_2bc);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_2bd,_2be){return (_2bd=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_2bf){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_2c0,_2c1){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _2c2=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_2c3=dojo.query("> option",this.root).filter(function(_2c4){return (_2c4.innerText||_2c4.textContent||"").match(_2c2);});if(args.sort){_2c3.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_2c0(_2c3,args);},close:function(_2c5){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_2c6,_2c7,_2c8){if((_2c7&&_2c7.query[this.searchAttr]!=this._lastQuery)||(!_2c7&&_2c6.length&&this.store.getIdentity(_2c6[0])!=this._lastQuery)){return;}if(!_2c6.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_2c8||(_2c8===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_2c6[0],_2c8);}},_openResultList:function(_2c9,_2ca){if(_2ca.query[this.searchAttr]!=this._lastQuery){return;}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_2cb,_2cc){if(!this._onChangeActive){_2cc=null;}this._lastQuery=_2cb;if(_2cb===null||_2cb===""){this._setDisplayedValueAttr("",_2cc);return;}var self=this;this.store.fetchItemByIdentity({identity:_2cb,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_2cc);}});},_setItemAttr:function(item,_2cd,_2ce){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_2cf,_2d0){if(_2cf==null){_2cf="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_2d0=false;}if(this.store){this.closeDropDown();var _2d1=dojo.clone(this.query);this._lastQuery=_2d1[this.searchAttr]=this._getDisplayQueryString(_2cf);this.textbox.value=_2cf;this._lastDisplayedValue=_2cf;this._set("displayedValue",_2cf);var _2d2=this;var _2d3={query:_2d1,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_2d4,_2d5){_2d2._fetchHandle=null;dojo.hitch(_2d2,"_callbackSetLabel")(_2d4,_2d5,_2d0);},onError:function(_2d6){_2d2._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_2d6);dojo.hitch(_2d2,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_2d3,this.fetchProperties);this._fetchHandle=this.store.fetch(_2d3);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}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(_2d7){if(_2d7){_2d7=_2d7.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _2d8=parseInt(this.maxLength);var _2d9=this.textbox.value.replace(/\r/g,"");var _2da=_2d9.length-_2d8;if(_2da>0){if(e){dojo.stopEvent(e);}var _2db=this.textbox;if(_2db.selectionStart){var pos=_2db.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_2d9.substring(0,pos-_2da-cr)+_2d9.substring(pos-cr);_2db.setSelectionRange(pos-_2da,pos-_2da);}else{if(dojo.doc.selection){_2db.focus();var _2dc=dojo.doc.selection.createRange();_2dc.moveStart("character",-_2da);_2dc.text="";_2dc.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 _2dd=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(_2dd,"onresize","_resizeLater");this.connect(_2dd,"onfocus","_resizeLater");_2dd.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _2de=this.textbox;_2de.rows=(_2de.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _2df=this.textbox;function _2e0(){var _2e1=false;if(_2df.value===""){_2df.value=" ";_2e1=true;}var sh=_2df.scrollHeight;if(_2e1){_2df.value="";}return sh;};if(_2df.style.overflowY=="hidden"){_2df.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_2e0()||_2df.offsetHeight){var newH=_2e0()+Math.max(_2df.offsetHeight-_2df.clientHeight,0);var _2e2=newH+"px";if(_2e2!=_2df.style.height){_2df.style.height=_2e2;_2df.rows=1;}if(needsHelpShrinking){var _2e3=_2e0(),_2e4=_2e3,_2e5=_2df.style.minHeight,_2e6=4,_2e7,_2e8=_2df.scrollTop;_2df.style.minHeight=_2e2;_2df.style.height="auto";while(newH>0){_2df.style.minHeight=Math.max(newH-_2e6,4)+"px";_2e7=_2e0();var _2e9=_2e4-_2e7;newH-=_2e9;if(_2e9<_2e6){break;}_2e4=_2e7;_2e6<<=1;}_2df.style.height=newH+"px";_2df.style.minHeight=_2e5;_2df.scrollTop=_2e8;}_2df.style.overflowY=_2e0()>_2df.clientHeight?"auto":"hidden";if(_2df.style.overflowY=="hidden"){_2df.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"});}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _2ea=dijit.getEnclosingWidget(this.domNode.parentNode);return _2ea&&_2ea.isContainer?_2ea:null;},_getSibling:function(_2eb){var node=this.domNode;do{node=node[_2eb+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.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(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _2ec=this.getParent&&this.getParent();if(!(_2ec&&_2ec.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_2ed,_2ee){var node=this.domNode;if(_2ed){dojo.marginBox(node,_2ed);if(_2ed.t){node.style.top=_2ed.t+"px";}if(_2ed.l){node.style.left=_2ed.l+"px";}}var mb=_2ee||{};dojo.mixin(mb,_2ed||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_2ef){var cls=this.baseClass+"-child "+(_2ef.baseClass?this.baseClass+"-"+_2ef.baseClass:"");dojo.addClass(_2ef.domNode,cls);},addChild:function(_2f0,_2f1){this.inherited(arguments);if(this._started){this._setupChild(_2f0);}},removeChild:function(_2f2){var cls=this.baseClass+"-child"+(_2f2.baseClass?" "+this.baseClass+"-"+_2f2.baseClass:"");dojo.removeClass(_2f2.domNode,cls);this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _2f3=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_2f4,dim){var _2f5=_2f4.resize?_2f4.resize(dim):dojo.marginBox(_2f4.domNode,dim);if(_2f5){dojo.mixin(_2f4,_2f5);}else{dojo.mixin(_2f4,dojo.marginBox(_2f4.domNode));dojo.mixin(_2f4,dim);}};dijit.layout.layoutChildren=function(_2f6,dim,_2f7,_2f8,_2f9){dim=dojo.mixin({},dim);dojo.addClass(_2f6,"dijitLayoutContainer");_2f7=dojo.filter(_2f7,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_2f7,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_2f7,function(_2fa){var elm=_2fa.domNode,pos=(_2fa.region||_2fa.layoutAlign);var _2fb=elm.style;_2fb.left=dim.l+"px";_2fb.top=dim.t+"px";_2fb.position="absolute";dojo.addClass(elm,"dijitAlign"+_2f3(pos));var _2fc={};if(_2f8&&_2f8==_2fa.id){_2fc[_2fa.region=="top"||_2fa.region=="bottom"?"h":"w"]=_2f9;}if(pos=="top"||pos=="bottom"){_2fc.w=dim.w;size(_2fa,_2fc);dim.h-=_2fa.h;if(pos=="top"){dim.t+=_2fa.h;}else{_2fb.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_2fc.h=dim.h;size(_2fa,_2fc);dim.w-=_2fa.w;if(pos=="left"){dim.l+=_2fa.w;}else{_2fb.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_2fa,dim);}}}});};})();}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_2fd,_2fe){var _2ff=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_2fd,function(code){_2ff[code]=prev;});dojo.forEach(_2fe,function(code){_2ff[code]=next;});_2ff[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_2ff[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_300,_301){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_300);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _302=this._getFirstFocusableChild();if(_302){this.focusChild(_302);}},focusLastChild:function(){var _303=this._getLastFocusableChild();if(_303){this.focusChild(_303);}},focusNext:function(){var _304=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_304);},focusPrev:function(){var _305=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_305,true);},focusChild:function(_306,last){if(this.focusedChild&&_306!==this.focusedChild){this._onChildBlur(this.focusedChild);}_306.set("tabIndex",this.tabIndex);_306.focus(last?"end":"start");this._set("focusedChild",_306);},_startupChild:function(_307){_307.set("tabIndex","-1");this.connect(_307,"_onFocus",function(){_307.set("tabIndex",this.tabIndex);});this.connect(_307,"_onBlur",function(){_307.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_308){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_309,dir){if(_309){_309=this._getSiblingOfChild(_309,dir);}var _30a=this.getChildren();for(var i=0;i<_30a.length;i++){if(!_309){_309=_30a[(dir>0)?0:(_30a.length-1)];}if(_309.isFocusable()){return _309;}_309=this._getSiblingOfChild(_309,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_30b){if(_30b&&!("label" in this.params)){this.set("label",_30b.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _30c=this.id+"_text";dojo.attr(this.containerNode,"id",_30c);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_30c+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_30c);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_30d){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_30d);},setLabel:function(_30e){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_30e);},setDisabled:function(_30f){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_30f);},_setDisabledAttr:function(_310){dijit.setWaiState(this.focusNode,"disabled",_310?"true":"false");this._set("disabled",_310);},_setAccelKeyAttr:function(_311){this.accelKeyNode.style.display=_311?"":"none";this.accelKeyNode.innerHTML=_311;dojo.attr(this.containerNode,"colSpan",_311?"1":"2");this._set("accelKey",_311);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _312=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_312[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_313){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_313);dijit.setWaiState(this.domNode,"checked",_313);this._set("checked",_313);},onChange:function(_314){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_315){_315.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_316){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _317=this._getTopMenu();if(_317&&_317._isMenuBar){_317.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _318=this.currentPopup.parentMenu;if(_318.focusedChild){_318.focusedChild._setSelected(false);}_318.focusedChild=this.currentPopup.from_item;_318.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _319=item.popup;if(_319){this._stopPendingCloseTimer(_319);_319._pendingClose_timer=setTimeout(function(){_319._pendingClose_timer=null;if(_319.parentMenu){_319.parentMenu.currentPopup=null;}dijit.popup.close(_319);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_31a){if(_31a._pendingClose_timer){clearTimeout(_31a._pendingClose_timer);_31a._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _31b=this.focusedChild;if(!_31b){return;}var _31c=_31b.popup;if(_31c.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_31c.parentMenu=this;_31c.from_item=_31b;var self=this;dijit.popup.open({parent:this,popup:_31c,around:_31b.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_31b);self._cleanUp();_31b._setSelected(true);self.focusedChild=_31b;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_31c;_31c.connect(_31c.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_31c.focus){_31c._focus_timer=setTimeout(dojo.hitch(_31c,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _31d=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_31e){var win=dojo.window.get(this._iframeContentDocument(_31e))||this._iframeContentDocument(_31e)["__parent__"]||(_31e.name&&dojo.doc.frames[_31e.name])||null;return win;},_iframeContentDocument:function(_31f){var doc=_31f.contentDocument||(_31f.contentWindow&&_31f.contentWindow.document)||(_31f.name&&dojo.doc.frames[_31f.name]&&dojo.doc.frames[_31f.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _320=node,win=this._iframeContentWindow(_320);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _321={node:node,iframe:_320};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_321));var _322=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_320,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_320);}})];});_321.connects=cn?_322(cn):[];if(_320){_321.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_320);cn=dojo.withGlobal(win,dojo.body);_321.connects=_322(cn);});if(_320.addEventListener){_320.addEventListener("load",_321.onloadHandler,false);}else{_320.attachEvent("onload",_321.onloadHandler);}}},unBindDomNode:function(_323){var node;try{node=dojo.byId(_323);}catch(e){return;}var _324="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_324)){var bid=dojo.attr(node,_324)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _325=b.iframe;if(_325){if(_325.removeEventListener){_325.removeEventListener("load",b.onloadHandler,false);}else{_325.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_324);delete this._bindings[bid];}},_scheduleOpen:function(_326,_327,_328){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_326,iframe:_327,coords:_328});}),1);}},_openMyself:function(args){var _329=args.target,_32a=args.iframe,_32b=args.coords;if(_32b){if(_32a){var od=_329.ownerDocument,ifc=dojo.position(_32a,true),win=this._iframeContentWindow(_32a),_32c=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_32a),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_32a,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_32a,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_32a,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_32a,cs.borderTopWidth):0);_32b.x+=ifc.x+left-_32c.x;_32b.y+=ifc.y+top-_32c.y;}}else{_32b=dojo.position(_329,true);_32b.x+=10;_32b.y+=10;}var self=this;var _32d=dijit.getFocus(this);function _32e(){if(self.refocus){dijit.focus(_32d);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_32b.x,y:_32b.y,onExecute:_32e,onCancel:_32e,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _32f={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _32f){ds.fontSize=p;_32f[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _32f;};var _330=null;dhm.getCachedFontMeasurements=function(_331){if(_331||!_330){_330=dhm.getFontMeasurements();}return _330;};var _332=null,_333={};dhm.getTextBox=function(text,_334,_335){var m,s;if(!_332){m=_332=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_332;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_334){for(var i in _334){if(i in _333){continue;}s[i]=_334[i];}}if(arguments.length>2&&_335){m.className=_335;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _336={w:16,h:16};dhm.getScrollbar=function(){return {w:_336.w,h:_336.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_337){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_336.w=n.offsetWidth-n.clientWidth;_336.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_338,_339){if(_339>=0){var s=_338.style;var v=_339+"px";if(_338&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_33a,_33b,_33c,_33d){var evts=(_33d?_33d:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_33b.connect(_33a,"on"+evts[i],_33c);}};dgu.removeNode=function(_33e){_33e=dojo.byId(_33e);_33e&&_33e.parentNode&&_33e.parentNode.removeChild(_33e);return _33e;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_33f,_340,_341){if(_33f.length<=_340){_33f[_340]=_341;}else{_33f.splice(_340,0,_341);}};dgu.arrayRemove=function(_342,_343){_342.splice(_343,1);};dgu.arraySwap=function(_344,inI,inJ){var _345=_344[inI];_344[inI]=_344[inJ];_344[inJ]=_345;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _346=function(_347){var i=0,n,p=_347.parentNode;while((n=p.childNodes[i++])){if(n==_347){return i-1;}}return -1;};var _348=function(_349){if(!_349){return;}var _34a=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_349,true);};var ws=dijit.registry.filter(_34a);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _34b=function(_34c){var node=dojo.byId(_34c);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _34d=function(_34e,_34f){var _350=[];var i=0,n;while((n=_34e.childNodes[i])){i++;if(_34b(n)==_34f){_350.push(n);}}return _350;};var _351=function(_352){return _34d(_352,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_353){this.setContentNodes(_353);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_354,_355,_356){switch(arguments.length){case 3:this.rowsPerPage=_356;case 2:this.keepRows=_355;case 1:this.rowCount=_354;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_357,_358){return _357?(Math.ceil(_357/_358)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_359){this.keepRows=_359;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_35a){this.contentNodes=_35a;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_35b){this.invalidateNodes();this.rowCount=_35b;var _35c=this.pageCount;if(_35c===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_35c){for(var i=_35c-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_35c){this.height+=this.defaultPageHeight*(this.pageCount-_35c-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_35d){return Boolean(this.getDefaultPageNode(_35d));},measurePage:function(_35e){if(this.grid.rowHeight){var _35f=this.grid.rowHeight+1;return ((_35e+1)*this.rowsPerPage>this.rowCount?this.rowCount-_35e*this.rowsPerPage:this.rowsPerPage)*_35f;}var n=this.getDefaultPageNode(_35e);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_360,_361){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_360].style.top=_361+"px";}},repositionPages:function(_362){var _363=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_363[_362];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_362):0);for(var p=_362+1;p<=last;p++){n=_363[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_364){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_364]);}},preparePage:function(_365,_366){var p=(_366?this.popPage():null);for(var i=0;i<this.colCount;i++){var _367=this.pageNodes[i];var _368=(p===null?this.createPageNode():this.invalidatePageNode(p,_367));_368.pageIndex=_365;_367[_365]=_368;}},renderPage:function(_369){var _36a=[];var i,j;for(i=0;i<this.colCount;i++){_36a[i]=this.pageNodes[i][_369];}for(i=0,j=_369*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_36a);}},removePage:function(_36b){for(var i=0,j=_36b*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_36c){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_36c,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_36d){},pacifying:false,pacifyTicks:200,setPacifying:function(_36e){if(this.pacifying!=_36e){this.pacifying=_36e;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _36f=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _36f;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _370=(!this._invalidating);if(!_370){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_370=true;}}if(_370){this.needPage(this.page,this.pageTop);}var _371=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _372=this.getPageHeight(this.page);this.averageRowHeight=(_372>0&&_371>0)?(_372/_371):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _373=this.pageCount-1;var _374=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_373]=_374;return _374;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_375,_376,_377){if(this.pageExists(_375)){var oh=this.getPageHeight(_375);var h=(this.measurePage(_375));if(h===undefined){h=oh;}this.pageHeights[_375]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_376)){if(!_377){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_375);}}else{this.repositionPages(_375);}}return h;}return 0;},rowHeightChanged:function(_378,_379){this.updatePageHeight(Math.floor(_378/this.rowsPerPage),false,_379);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_37a){var ph=this.pageHeights[_37a];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_37b){return this.stack.push(_37b);},popPage:function(){return this.stack.shift();},findPage:function(_37c){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_37c){break;}}this.page=i;this.pageTop=h;},buildPage:function(_37d,_37e,_37f){this.preparePage(_37d,_37e);this.positionPage(_37d,_37f);this.installPage(_37d);this.renderPage(_37d);this.pushPage(_37d);},needPage:function(_380,_381){var h=this.getPageHeight(_380),oh=h;if(!this.pageExists(_380)){this.buildPage(_380,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_381);h=this.updatePageHeight(_380,true);}else{this.positionPage(_380,_381);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_382){this.grid.scrollTop=_382;if(this.colCount){this.startPacify();this.findPage(_382);var h=this.height;var b=this.getScrollBottom(_382);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_382);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_383){return (this.windowHeight>=0?_383+this.windowHeight:-1);},processNodeEvent:function(e,_384){var t=e.target;while(t&&(t!=_384)&&t.parentNode&&(t.parentNode.parentNode!=_384)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_384)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_346(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_385,_386){},removeRow:function(_387){},getDefaultPageNode:function(_388){return this.getDefaultNodes()[_388];},positionPageNode:function(_389,_38a){},getPageNodePosition:function(_38b){return _38b.offsetTop;},invalidatePageNode:function(_38c,_38d){var p=_38d[_38c];if(p){delete _38d[_38c];this.removePage(_38c,p);_348(p);p.innerHTML="";}return p;},getPageRow:function(_38e){return _38e*this.rowsPerPage;},getLastPageRow:function(_38f){return Math.min(this.rowCount,this.getPageRow(_38f+1))-1;},getFirstVisibleRow:function(_390,_391,_392){if(!this.pageExists(_390)){return 0;}var row=this.getPageRow(_390);var _393=this.getDefaultNodes();var rows=_351(_393[_390]);for(var i=0,l=rows.length;i<l&&_391<_392;i++,row++){_391+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_394,_395,_396){if(!this.pageExists(_394)){return 0;}var _397=this.getDefaultNodes();var row=this.getLastPageRow(_394);var rows=_351(_397[_394]);for(var i=rows.length-1;i>=0&&_395>_396;i--,row--){_395-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_398){var _399=this.getDefaultNodes();var rows=_351(_399[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_398){this.offset=h-(t-_398);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_39a){var _39b=Math.floor(_39a/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_39b;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_39b;this.needPage(_39b,this.pageTop);var _39c=this.getDefaultNodes();var rows=_351(_39c[_39b]);var r=_39a-this.rowsPerPage*_39b;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _39d=function(_39e){try{dojox.grid.util.fire(_39e,"focus");dojox.grid.util.fire(_39e,"select");}catch(e){}};var _39f=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_3a0){this._props=_3a0||{};dojo.mixin(this,_3a0);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_3a1,_3a2){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_3a1!=this.defaultValue&&f)?f.apply(s,_3a2):_3a1;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_3a3,_3a4){var f,i=this.grid.edit.info,d=this.get?this.get(_3a3,_3a4):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_3a3&&i.cell==this))){return this.formatEditing(d,_3a3);}else{return this._defaultFormat(d,[d,_3a3,this]);}},formatEditing:function(_3a5,_3a6){},getNode:function(_3a7){return this.view.getCellNode(_3a7,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_3a8){return (this.getNode(_3a8)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_3a9,_3aa){this.grid.edit.applyCellEdit(_3a9,this,_3aa);},cancelEdit:function(_3ab){this.grid.doCancelEdit(_3ab);},_onEditBlur:function(_3ac){if(this.grid.edit.isEditCell(_3ac,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_3ad,_3ae){if(this.commitOnBlur){dojo.connect(_3ad,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_3ae),250);});}},needFormatNode:function(_3af,_3b0){this._formatPending=true;_39f(this,"_formatNode",_3af,_3b0);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_3b1,_3b2){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_3b2),_3b1,_3b2);}},formatNode:function(_3b3,_3b4,_3b5){if(dojo.isIE){_39f(this,"focus",_3b5,_3b3);}else{this.focus(_3b5,_3b3);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_3b6){return this.getEditNode(_3b6)[this._valueProp];},setValue:function(_3b7,_3b8){var n=this.getEditNode(_3b7);if(n){n[this._valueProp]=_3b8;}},focus:function(_3b9,_3ba){_39d(_3ba||this.getEditNode(_3b9));},save:function(_3bb){this.value=this.value||this.getValue(_3bb);},restore:function(_3bc){this.setValue(_3bc,this.value);},_finish:function(_3bd){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_3be){this.applyEdit(this.getValue(_3be),_3be);this._finish(_3be);},cancel:function(_3bf){this.cancelEdit(_3bf);this._finish(_3bf);}});dgc._Base.markupFactory=function(node,_3c0){var d=dojo;var _3c1=d.trim(d.attr(node,"formatter")||"");if(_3c1){_3c0.formatter=dojo.getObject(_3c1)||_3c1;}var get=d.trim(d.attr(node,"get")||"");if(get){_3c0.get=dojo.getObject(get);}var _3c2=function(attr,cell,_3c3){var _3c4=d.trim(d.attr(node,attr)||"");if(_3c4){cell[_3c3||attr]=!(_3c4.toLowerCase()=="false");}};_3c2("sortDesc",_3c0);_3c2("editable",_3c0);_3c2("alwaysEditing",_3c0);_3c2("noresize",_3c0);_3c2("draggable",_3c0);var _3c5=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_3c5){_3c0.defaultValue=_3c5;}var _3c6=function(attr,cell,_3c7){var _3c8=d.trim(d.attr(node,attr)||"")||undefined;if(_3c8){cell[_3c7||attr]=_3c8;}};_3c6("styles",_3c0);_3c6("headerStyles",_3c0);_3c6("cellStyles",_3c0);_3c6("classes",_3c0);_3c6("headerClasses",_3c0);_3c6("cellClasses",_3c0);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_3c9,_3ca){this.needFormatNode(_3c9,_3ca);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_3c9+"\">";},formatNode:function(_3cb,_3cc,_3cd){this.inherited(arguments);this.registerOnBlur(_3cb,_3cd);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_3ce){this.inherited(arguments);var n=this.getEditNode(_3ce);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_3cf){dgc._Base.markupFactory(node,_3cf);var d=dojo;var _3d0=d.trim(d.attr(node,"keyFilter")||"");if(_3d0){_3cf.keyFilter=new RegExp(_3d0);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_3d1){return _3d1+1;}});dgc.RowIndex.markupFactory=function(node,_3d2){dgc.Cell.markupFactory(node,_3d2);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_3d3){this.values=this.values||this.options;},formatEditing:function(_3d4,_3d5){this.needFormatNode(_3d4,_3d5);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_3d4==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_3d6){var n=this.getEditNode(_3d6);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _3d7=d.trim(d.attr(node,"options")||"");if(_3d7){var o=_3d7.split(",");if(o[0]!=_3d7){cell.options=o;}}var _3d8=d.trim(d.attr(node,"values")||"");if(_3d8){var v=_3d8.split(",");if(v[0]!=_3d8){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_3d9,_3da){this.formatNode(this.getEditNode(_3da),_3d9,_3da);},applyStaticValue:function(_3db){var e=this.grid.edit;e.applyCellEdit(this.getValue(_3db),this,_3db);e.start(this,_3db,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_3dc,_3dd){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_3dc?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _3de=n.scrollLeft,_3df=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_3de!=n.scrollLeft||_3df!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_3e0){this.node=dojo.byId(node);if(!_3e0){_3e0={};}this.handle=_3e0.handle?dojo.byId(_3e0.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_3e0.delay>0?_3e0.delay:0;this.skip=_3e0.skip;this.mover=_3e0.mover?_3e0.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_3e1,node){return new dojo.dnd.Moveable(node,_3e1);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_3e2){dojo.publish("/dnd/move/start",[_3e2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3e3){dojo.publish("/dnd/move/stop",[_3e3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3e4,e){},onMove:function(_3e5,_3e6,e){this.onMoving(_3e5,_3e6);var s=_3e5.node.style;s.left=_3e6.l+"px";s.top=_3e6.t+"px";this.onMoved(_3e5,_3e6);},onMoving:function(_3e7,_3e8){},onMoved:function(_3e9,_3ea){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _3eb=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _3ec=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _3ed=function(_3ee,_3ef){return _3ee&&((_3ee.rows||0)[_3ef]||_3ee.childNodes[_3ef]);};var _3f0=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _3f1=function(_3f2,_3f3){for(var n=_3f2;n&&_3f3(n);n=n.parentNode){}return n;};var _3f4=function(_3f5){var name=_3f5.toUpperCase();return function(node){return node.tagName!=name;};};var _3f6=dojox.grid.util.rowIndexTag;var _3f7=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_3f8,_3f9,_3fa,_3fb){var _3fc=[],html;if(_3fb){var _3fd=_3f8.index!=_3f8.grid.getSortIndex()?"":_3f8.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_3f8.id){_3f8.id=this.grid.id+"Hdr"+_3f8.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_3fd,"id=\"",_3f8.id,"\""];}else{var _3fe=this.grid.editable&&!_3f8.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_3fe];}if(_3f8.colSpan){html.push(" colspan=\"",_3f8.colSpan,"\"");}if(_3f8.rowSpan){html.push(" rowspan=\"",_3f8.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_3f8.classes){html.push(_3f8.classes," ");}if(_3fa){html.push(_3fa," ");}_3fc.push(html.join(""));_3fc.push("");html=["\" idx=\"",_3f8.index,"\" style=\""];if(_3f9&&_3f9[_3f9.length-1]!=";"){_3f9+=";";}html.push(_3f8.styles,_3f9||"",_3f8.hidden?"display:none;":"");if(_3f8.unitWidth){html.push("width:",_3f8.unitWidth,";");}_3fc.push(html.join(""));_3fc.push("");html=["\""];if(_3f8.attrs){html.push(" ",_3f8.attrs);}html.push(">");_3fc.push(html.join(""));_3fc.push("");_3fc.push(_3fb?"</th>":"</td>");return _3fc;},isCellNode:function(_3ff){return Boolean(_3ff&&_3ff!=dojo.doc&&dojo.attr(_3ff,"idx"));},getCellNodeIndex:function(_400){return _400?Number(dojo.attr(_400,"idx")):-1;},getCellNode:function(_401,_402){for(var i=0,row;((row=_3ed(_401.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_402){return cell;}}}return null;},findCellTarget:function(_403,_404){var n=_403;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_3f7 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_3f7]!=this.view.id))&&(n!=_404)){n=n.parentNode;}return n!=_404?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_405,_406){var n=_405;while(n&&(n!=this.domNode)&&(!(_406 in n)||(_3f7 in n&&n[_3f7]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_407){return this.findTarget(_407,_3f6);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _408=this.grid.get,_409=this.view.structure.cells;for(var j=0,row;(row=_409[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_408;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_40a,_40b){var html=this.getTableArray(),v=this.view,_40c=v.structure.cells,item=this.grid.getItem(_40b);dojox.grid.util.fire(this.view,"onBeforeRow",[_40b,_40c]);for(var j=0,row;(row=_40c[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_40b,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_3f6];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_40d,_40e){var html=this.getTableArray(),_40f=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_40f]);for(var j=0,row;(row=_40f[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_410;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_410=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_410[5]=(_40e!=undefined?_40e:_40d(cell));_410[3]=cell.customStyles.join(";");_410[1]=cell.customClasses.join(" ");html.push(_410.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_3f1(e.target,_3f4("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_3f1(n,_3f4("table"));x-=(table&&table.offsetLeft)||0;}}n=_3f1(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_3eb(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_411){var _412=dojo.contentBox(e.sourceView.headerNode);if(_411){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _413=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_413.h+_412.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _414=[],_415=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_415[i]);i++){_414.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _416=e.grid.views.views;var _417=[];for(var j=view.idx+adj,_418;(_418=_416[j]);j=j+adj){_417.push({node:_418.headerNode,left:window.parseInt(_418.headerNode.style.left)});}var _419=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_412.w,table:_419,tw:dojo.contentBox(_419).w,spanners:_414,followers:_417};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_41a,_41b,_41c){var _41d=_41c.l;var data={deltaX:_41d,w:_41a.w+(dojo._isBodyLtr()?_41d:-_41d),vw:_41a.vw+_41d,tw:_41a.tw+_41d};this.dragRecord={inDrag:_41a,mover:_41b,leftTop:_41c};if(data.w>=this.minColWidth){if(!_41b){this.doResizeNow(_41a,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_41e){if(this.dragRecord){var _41f=this.dragRecord.leftTop;var _420=dojo._isBodyLtr()?_41f.l:-_41f.l;_420+=Math.max(_41e.w+_420,this.minColWidth)-(_41e.w+_420);if(dojo.isWebKit&&_41e.spanners.length){_420+=dojo._getPadBorderExtents(_41e.spanners[0].node).w;}var data={deltaX:_420,w:_41e.w+_420,vw:_41e.vw+_420,tw:_41e.tw+_420};this.doResizeNow(_41e,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_41e.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_41e.index);},doResizeNow:function(_421,data){_421.view.convertColPctToFixed();if(_421.view.flexCells&&!_421.view.testFlexCells()){var t=_3f0(_421.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_421.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_421.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_421.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_421.node.style.width=data.w+"px";_421.view.setColWidth(_421.index,data.w);_421.view.headerNode.style.width=data.vw+"px";_421.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_421.view.headerNode.scrollLeft=_421.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_422){var _423=_422.length;if(!_423){return;}this.map=[];var row;for(var k=0;(row=_422[k]);k++){this.map[k]=[];}for(var j=0;(row=_422[j]);j++){for(var i=0,x=0,cell,_424,_425;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_425=cell.rowSpan||1;_424=cell.colSpan||1;for(var y=0;y<_425;y++){for(var s=0;s<_424;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_424;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_426,_427){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_427&&cell.r==_426){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_428,_429,_42a){var row=_428&&_428.rows[_429];return row&&row.cells[_42a];},_findOverlappingNodes:function(_42b,_42c,_42d){var _42e=[];var m=this.getMapCoords(_42c,_42d);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_42b,rw.r,rw.c):null);if(n){_42e.push(n);}}return _42e;},findOverlappingNodes:function(_42f){return this._findOverlappingNodes(_3f0(_42f),_3ec(_42f.parentNode),_3eb(_42f));}});})();}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_430){this.node=dojo.byId(node);if(!_430){_430={};}this.creator=_430.creator||null;this.skipForm=_430.skipForm;this.parent=_430.dropParent&&dojo.byId(_430.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_430&&_430._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_431,_432){if(!this.parent.firstChild){_432=null;}else{if(_431){if(!_432){_432=this.parent.firstChild;}}else{if(_432){_432=_432.nextSibling;}}}if(_432){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_432);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_433,node){_433._skipStartup=true;return new dojo.dnd.Container(node,_433);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_434){var _435="dojoDnd"+type;var _436=type.toLowerCase()+"State";dojo.replaceClass(this.node,_435+_434,_435+this[_436]);this[_436]=_434;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _437=node.parentNode;_437;node=_437,_437=node.parentNode){if(_437==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _438=item&&dojo.isObject(item),data,type,n;if(_438&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_438&&item.data)?item.data:item;type=(_438&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_439){if(!_439){_439={};}this.singular=_439.singular;this.autoSync=_439.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_43a,data,_43b,_43c){var _43d=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_43d.call(this,item,hint);if(_43a){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_43b,_43c);this._normalizedCreator=_43d;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_43e,node){_43e._skipStartup=true;return new dojo.dnd.Selector(node,_43e);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_43f){this.manager=_43f;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_440=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_440.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_440.creator){node=_440._normalizedCreator(_440.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _441=dojo.create("table"),_442=dojo.create("tbody",null,_441);_442.appendChild(node);node=_441;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_443){if(this.avatar){this.target=(_443&&_443.targetState!="Disabled")?_443:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_443]);},outSource:function(_444){if(this.avatar){if(this.target==_444){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_445,_446,copy){this.source=_445;this.nodes=_446;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_445,_446,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _447=Boolean(this.target&&flag);if(this.canDropFlag!=_447){this.canDropFlag=_447;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_448=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_448);dojo.publish("/dnd/drop",_448);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_449){dojo.mixin(this,dojo.mixin({},_449));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_44a,_44b){if(this==_44a){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_44b.length;++i){var type=_44a.getItem(_44b[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_44c,self){if(_44c){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_44d,node){_44d._skipStartup=true;return new dojo.dnd.Source(node,_44d);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _44e=this.getSelectedNodes();if(_44e.length){m.startDrag(this,_44e,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _44f=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_44f=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_44f=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_44f!=this.before){this._markTargetAnchor(_44f);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_450){if(this!=_450){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_451,_452,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_451?(copy?"Copied":"Moved"):"");}var _453=this.accept&&this.checkAcceptance(_451,_452);this._changeState("Target",_453?"":"Disabled");if(this==_451){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_454,_455,copy,_456){if(this==_456){this.onDrop(_454,_455,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_457,_458,copy){if(this!=_457){this.onDropExternal(_457,_458,copy);}else{this.onDropInternal(_458,copy);}},onDropExternal:function(_459,_45a,copy){var _45b=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _45b.call(this,_459.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_459.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_459.getItem(node.id);_459.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_459.selectNone();}this.insertNodes(true,_45a,this.before,this.current);if(!copy&&this.creator){_459.deleteSelectedNodes();}this._normalizedCreator=_45b;},onDropInternal:function(_45c,copy){var _45d=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _45d.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_45c,this.before,this.current);this._normalizedCreator=_45d;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_45e){if(this.current==this.targetAnchor&&this.before==_45e){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_45e;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_45f){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_460,node){_460._skipStartup=true;return new dojo.dnd.Target(node,_460);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_461){this.autoSync=true;},markupFactory:function(_462,node){_462._skipStartup=true;return new dojo.dnd.AutoSource(node,_462);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _463=function(_464,_465){return _464.style.cssText==undefined?_464.getAttribute("style"):_464.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_466){var vs=(this.structure=_466);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_467){if(_467){dojo.forEach(dojo.query("[widgetId]",_467).map(dijit.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_468,_469){this._onBeforeRow(_468,_469);if(_468>=0){this._cleanupRowWidgets(this.getRowNode(_468));}},onAfterRow:function(_46a,_46b,_46c){this._onAfterRow(_46a,_46b,_46c);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_46c),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _46d=window.parseInt(dojo.attr(n,"cellIdx"),10);var _46e=g.getCell(_46d);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _46f=this.hasVScrollbar();var _470=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_470||_470=="hidden"){_46f=false;}else{if(_470=="scroll"){_46f=true;}}return (_46f?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_471){this.headerContentNode.firstChild.style.width=_471+"px";if(this.viewWidth){this.viewWidth=_471+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _472=this.grid.layout.cells;var _473=dojo.hitch(this,function(node,_474){!dojo._isBodyLtr()&&(_474=!_474);var inc=_474?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_472[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_472[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _475="dojoxGrid_bottomMarker";var _476="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_475);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_476);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_475,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_476,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _477=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE<9?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_478){var src=this.source;if(src.current==src.targetAnchor&&src.before==_478){return;}if(src.targetAnchor&&_473(src.targetAnchor,src.before)){src._removeItemClass(_473(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_478);var _479=_478?src.targetAnchor:_473(src.targetAnchor,src.before);var _47a=0;if(!_479){_479=src.targetAnchor;_47a=dojo.contentBox(_479).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_479,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_47a);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_477+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_473(src.targetAnchor,src.before)){src._addItemClass(_473(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_473(src.targetAnchor,src.before)){src._removeItemClass(_473(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_47b,_47c,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _47d=this.grid.views.views;var _47e=_47d[_47b.viewIndex];var _47f=_47d[this.index];if(_47f!=_47e){_47e.convertColPctToFixed();_47f.convertColPctToFixed();}},_onDndDrop:function(_480,_481,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _482=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_481[0]).w;if(_480.viewIndex!==this.index){var _483=this.grid.views.views;var _484=_483[_480.viewIndex];var _485=_483[this.index];if(_484.viewWidth&&_484.viewWidth!="auto"){_484.setColumnsWidth(_484.getColumnsWidth()-w);}if(_485.viewWidth&&_485.viewWidth!="auto"){_485.setColumnsWidth(_485.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _486=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_486.moveColumn(_480.viewIndex,idx,_482(_481[0]),_482(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_487){var n=_487.name||_487.grid.getCellName(_487);var ret=["<div class=\"dojoxGridSortNode"];if(_487.index!=_487.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_487.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_487.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_488){var _489=this._hasHScroll||false;if(this._hasHScroll==undefined||_488){if(this.noscroll){this._hasHScroll=false;}else{var _48a=dojo.style(this.scrollboxNode,"overflow");if(_48a=="hidden"){this._hasHScroll=false;}else{if(_48a=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_489!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_48b){var _48c=this._hasVScroll||false;if(this._hasVScroll==undefined||_48b){if(this.noscroll){this._hasVScroll=false;}else{var _48d=dojo.style(this.scrollboxNode,"overflow");if(_48d=="hidden"){this._hasVScroll=false;}else{if(_48d=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_48c!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _48e=false;this.grid.initialWidth="";var _48f=dojo.query("th",this.headerContentNode);var _490=dojo.map(_48f,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_48e=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_48e){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _491=cell.view.getHeaderCellNode(cell.index);if(_491&&dojo.hasAttr(_491,"vIdx")){var vIdx=window.parseInt(dojo.attr(_491,"vIdx"));this.setColWidth(idx,_490[vIdx]);dojo.removeAttr(_491,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_492){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _493=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_492||(this.noscroll&&_493())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_494){var _495=this.createRowNode(_494);this.buildRow(_494,_495);return _495;},createRowNode:function(_496){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_496;this.rowNodes[_496]=node;return node;},buildRow:function(_497,_498){this.buildRowContent(_497,_498);this.styleRow(_497,_498);},buildRowContent:function(_499,_49a){_49a.innerHTML=this.content.generateHtml(_499,_499);if(this.flexCells&&this.contentWidth){_49a.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_499,this.structure.cells,_49a]);},rowRemoved:function(_49b){if(_49b>=0){this._cleanupRowWidgets(this.getRowNode(_49b));}this.grid.edit.save(this,_49b);delete this.rowNodes[_49b];},getRowNode:function(_49c){return this.rowNodes[_49c];},getCellNode:function(_49d,_49e){var row=this.getRowNode(_49d);if(row){return this.content.getCellNode(row,_49e);}},getHeaderCellNode:function(_49f){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_49f);}},styleRow:function(_4a0,_4a1){_4a1._style=_463(_4a1);this.styleRowNode(_4a0,_4a1);},styleRowNode:function(_4a2,_4a3){if(_4a3){this.doStyleRowNode(_4a2,_4a3);}},doStyleRowNode:function(_4a4,_4a5){this.grid.styleRowNode(_4a4,_4a5);},updateRow:function(_4a6){var _4a7=this.getRowNode(_4a6);if(_4a7){_4a7.style.height="";this.buildRow(_4a6,_4a7);}return _4a7;},updateRowStyles:function(_4a8){this.styleRowNode(_4a8,this.getRowNode(_4a8));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_4a9){if(dojo.isFF>=13){this._nativeScroll=true;}var _4aa=dojo._isBodyLtr();if(this.firstScroll<2){if((!_4aa&&this.firstScroll==1)||(_4aa&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_4aa?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_4ab){this.lastTop=_4ab;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_4ab;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_4ac,_4ad){this.grid.setCellWidth(_4ac,_4ad+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _4ae=this.manager.source,node;if(_4ae.creator){node=_4ae._normalizedCreator(_4ae.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _4af,_4b0;if(node.tagName.toLowerCase()=="tr"){_4af=dd.createElement("table");_4b0=dd.createElement("tbody");_4b0.appendChild(node);_4af.appendChild(_4b0);node=_4af;}else{if(node.tagName.toLowerCase()=="th"){_4af=dd.createElement("table");_4b0=dd.createElement("tbody");var r=dd.createElement("tr");_4af.cellPadding=_4af.cellSpacing="0";r.appendChild(node);_4b0.appendChild(r);_4af.appendChild(_4b0);node=_4af;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _4b1=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _4b1.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_4b2,_4b3){var w=this.contentWidth||0;_4b3.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_4b4,_4b5){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_4b4)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_4b4)){n.push("dojoxGridRowbarSelected");}_4b5.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_4b6){this.grid=_4b6;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_4b7,_4b8,_4b9,_4ba,_4bb){var _4bc=this.structure[_4b7].cells[0];var _4bd=this.structure[_4b8].cells[0];var cell=null;var _4be=0;var _4bf=0;for(var i=0,c;c=_4bc[i];i++){if(c.index==_4b9){_4be=i;break;}}cell=_4bc.splice(_4be,1)[0];cell.view=this.grid.views.views[_4b8];for(i=0,c=null;c=_4bd[i];i++){if(c.index==_4ba){_4bf=i;break;}}if(!_4bb){_4bf+=1;}_4bd.splice(_4bf,0,cell);var _4c0=this.grid.getCell(this.grid.getSortIndex());if(_4c0){_4c0._currentlySorted=this.grid.getSortAsc();}this.cells=[];_4b9=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_4b9;this.cells.push(c);if("_currentlySorted" in c){var si=_4b9+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_4b9++;}}}dojo.forEach(this.cells,function(c){var _4c1=c.markup[2].split(" ");var _4c2=parseInt(_4c1[1].substring(5));if(_4c2!=c.index){_4c1[1]="idx=\""+c.index+"\"";c.markup[2]=_4c1.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_4c3,_4c4){var cell=this.cells[_4c3];if(cell.hidden==_4c4){cell.hidden=!_4c4;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_4c5,_4c6,_4c7){var self=this;var _4c8=function(_4c9){var w=0;if(_4c9.colSpan>1){w=0;}else{w=_4c9.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _4ca={grid:this.grid,subrow:_4c5,layoutIndex:_4c6,index:this.cells.length};if(_4c7&&_4c7 instanceof dojox.grid.cells._Base){var _4cb=dojo.clone(_4c7);_4ca.unitWidth=_4c8(_4cb._props);_4cb=dojo.mixin(_4cb,this._defaultCellProps,_4c7._props,_4ca);return _4cb;}var _4cc=_4c7.type||_4c7.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_4cc)){_4cc=dojo.getObject(_4cc);}_4ca.unitWidth=_4c8(_4c7);return new _4cc(dojo.mixin({},this._defaultCellProps,_4c7,_4ca));},addRowDef:function(_4cd,_4ce){var _4cf=[];var _4d0=0,_4d1=0,_4d2=true;for(var i=0,def,cell;(def=_4ce[i]);i++){cell=this.addCellDef(_4cd,i,def);_4cf.push(cell);this.cells.push(cell);if(_4d2&&cell.relWidth){_4d0+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_4d1+=window.parseInt(w,10);}else{if(w=="auto"){_4d2=false;}}}}}if(_4d0&&_4d2){dojo.forEach(_4cf,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_4d0)*(100-_4d1))+"%";}});}return _4cf;},addRowsDef:function(_4d3){var _4d4=[];if(dojo.isArray(_4d3)){if(dojo.isArray(_4d3[0])){for(var i=0,row;_4d3&&(row=_4d3[i]);i++){_4d4.push(this.addRowDef(i,row));}}else{_4d4.push(this.addRowDef(0,_4d3));}}return _4d4;},addViewDef:function(_4d5){this._defaultCellProps=_4d5.defaultCell||{};if(_4d5.width&&_4d5.width=="auto"){delete _4d5.width;}return dojo.mixin({},_4d5,{cells:this.addRowsDef(_4d5.rows||_4d5.cells)});},setStructure:function(_4d6){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _4d7=this.grid.rowSelector;if(_4d7=="false"){sel=null;}else{if(_4d7!="true"){sel["width"]=_4d7;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _4d8=function(def){return ("name" in def||"field" in def||"get" in def);};var _4d9=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_4d8(def[0])){return true;}}return false;};var _4da=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_4d8(def))));};if(dojo.isArray(_4d6)){var _4db=false;for(var i=0,st;(st=_4d6[i]);i++){if(_4da(st)){_4db=true;break;}}if(!_4db){s.push(this.addViewDef({cells:_4d6}));}else{for(i=0;(st=_4d6[i]);i++){if(_4d9(st)){s.push(this.addViewDef({cells:st}));}else{if(_4da(st)){s.push(this.addViewDef(st));}}}}}else{if(_4da(_4d6)){s.push(this.addViewDef(_4d6));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_4dc){this.grid=_4dc;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_4dd){_4dd.idx=this.views.length;this.views.push(_4dd);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _4de=[];for(var i=0,v;v=this.views[i];i++){_4de.push(v.contentNode);}return _4de;},forEach:function(_4df){for(var i=0,v;v=this.views[i];i++){_4df(v,i);}},onEach:function(_4e0,_4e1){_4e1=_4e1||[];for(var i=0,v;v=this.views[i];i++){if(_4e0 in v){v[_4e0].apply(v,_4e1);}}},normalizeHeaderNodeHeight:function(){var _4e2=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_4e2.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_4e2);},normalizeRowNodeHeights:function(_4e3){var h=0;var _4e4=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_4e3.length<=1){return;}for(var i=0,n;(n=_4e3[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_4e4[i]=n.firstChild.offsetHeight;h=Math.max(h,_4e4[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_4e3[i]);i++){if(_4e4[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_4e5){var _4e6=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_4e5));i++){n.firstChild.style.height="";_4e6.push(n);}this.normalizeRowNodeHeights(_4e6);},getViewWidth:function(_4e7){return this.views[_4e7].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_4e8){_4e8.headerContentNode.style.height="";});var h=0;this.forEach(function(_4e9){h=Math.max(_4e9.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_4ea){h=Math.max(_4ea.domNode.offsetHeight,h);});return h;},findClient:function(_4eb){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length;var c=(w<=0?len:this.findClient());var _4ec=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_4ec(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_4ec(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_4ec(v,l);}return l;},renderRow:function(_4ed,_4ee,_4ef){var _4f0=[];for(var i=0,v,n,_4f1;(v=this.views[i])&&(n=_4ee[i]);i++){_4f1=v.renderRow(_4ed);n.appendChild(_4f1);_4f0.push(_4f1);}if(!_4ef){this.normalizeRowNodeHeights(_4f0);}},rowRemoved:function(_4f2){this.onEach("rowRemoved",[_4f2]);},updateRow:function(_4f3,_4f4){for(var i=0,v;v=this.views[i];i++){v.updateRow(_4f3);}if(!_4f4){this.renormalizeRow(_4f3);}},updateRowStyles:function(_4f5){this.onEach("updateRowStyles",[_4f5]);},setScrollTop:function(_4f6){var top=_4f6;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_4f6);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _4f7=function(_4f8,_4f9){if(_4f8.style.cssText==undefined){_4f8.setAttribute("style",_4f9);}else{_4f8.style.cssText=_4f9;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_4fa){this.grid=_4fa;},linesToEms:2,overRow:-2,prepareStylingRow:function(_4fb,_4fc){return {index:_4fb,node:_4fc,odd:Boolean(_4fb&1),selected:!!this.grid.selection.isSelected(_4fb),over:this.isOver(_4fb),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_4fd,_4fe){var row=this.prepareStylingRow(_4fd,_4fe);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_4ff){var i=_4ff;i.node.className=i.customClasses;var h=i.node.style.height;_4f7(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_500){this.grid.updateRowStyles(_500);},setOverRow:function(_501){var last=this.overRow;this.overRow=_501;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_502){return (this.overRow==_502&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_503){this.grid=_503;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_504,_505){return (this.cell==_504)&&(this.rowIndex==_505);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_506){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_506);if(_506){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _507=this._findHeaderCells();for(var i=0;i<_507.length;i++){this._headerConnects.push(dojo.connect(_507[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_507[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _508=dojo.query("th",this.grid.viewsHeaderNode);var _509=[];for(var i=0;i<_508.length;i++){var _50a=_508[i];var _50b=dojo.hasAttr(_50a,"tabIndex");var _50c=dojo.attr(_50a,"tabIndex");if(_50b&&_50c<0){_509.push(_50a);}}return _509;},_setActiveColHeader:function(_50d,_50e,_50f){dojo.attr(this.grid.domNode,"aria-activedescendant",_50d.id);if(_50f!=null&&_50f>=0&&_50f!=_50e){dojo.toggleClass(this._findHeaderCells()[_50f],this.focusClass,false);}dojo.toggleClass(_50d,this.focusClass,true);this._colHeadNode=_50d;this._colHeadFocusIdx=_50e;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_510){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_510?_510:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_511){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_511);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _512=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_512){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _513=this.focusView;if(!_513){for(var i=0,_514;(_514=this.grid.views.views[i]);i++){if(_514.headerNode){_513=_514;break;}}}return (_513&&dojo.getComputedStyle(_513.headerNode).display=="none");},colSizeAdjust:function(e,_515,_516){var _517=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_518;(_518=this.grid.views.views[i]);i++){if(_518.header.tableMap.map){view=_518;break;}}}var _519=_517[_515];if(!view||(_515==_517.length-1&&_515===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_519;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _51a={l:_516};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_51a);view.update();}},styleRow:function(_51b){return;},setFocusIndex:function(_51c,_51d){this.setFocusCell(this.grid.getCell(_51d),_51c);},setFocusCell:function(_51e,_51f){if(_51e&&!this.isFocusCell(_51e,_51f)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_51e;this.rowIndex=_51f;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _520=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_520.editable||this.grid.canEdit&&!this.grid.canEdit(_520,row))){this.cell=_520;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _521=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_521.editable){this.cell=_521;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_522,_523){var _524=_523<0?-1:1;if(this.isNavHeader()){var _525=this._findHeaderCells();var _526=currentIdx=dojo.indexOf(_525,this._colHeadNode);currentIdx+=_523;while(currentIdx>=0&&currentIdx<_525.length&&_525[currentIdx].style.display=="none"){currentIdx+=_524;}if((currentIdx>=0)&&(currentIdx<_525.length)){this._setActiveColHeader(_525[currentIdx],currentIdx,_526);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_522));if(_522){if(_522>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_522<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_523));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_524;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_522){if((row+_522)>=0&&(row+_522)<=rc){this.move(_522>0?++_522:--_522,_523);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_523){if((col+_523)>=0&&(col+_523)<=cc){this.move(_522,_523>0?++_523:--_523);}return;}}this.setFocusIndex(row,col);if(_522){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _527=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_528){this.tabbingOut=true;_528.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_529){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _52a=true;var _52b=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_52b){var _52c=0;var cell=this.grid.getCell(_52c);if(cell.hidden){_52c=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_52c);}else{if(this.cell&&!_52b){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_52a=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _52a;},focusHeader:function(){var _52d=this._findHeaderCells();var _52e=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_52d[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_52d.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_52d[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_52e);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _52f=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_52f);this._contextMenuBindNode=_52f;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_530){this.grid=_530;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_531,_532){if(this.grid.singleClickEdit||this.isEditRow(_532)){this.setEditCell(_531,_532);}else{this.apply();}if(this.isEditing()||(_531&&_531.editable&&_531.alwaysEditing)){this._focusEditor(_531,_532);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_533){if(_533.index==this.info.rowIndex){_533.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_534,_535){return (this.info.rowIndex===_534)&&(this.info.cell.index==_535);},isEditRow:function(_536){return this.info.rowIndex===_536;},setEditCell:function(_537,_538){if(!this.isEditCell(_538,_537.index)&&this.grid.canEdit&&this.grid.canEdit(_537,_538)){this.start(_537,_538,this.isEditRow(_538)||_537.editable);}},_focusEditor:function(_539,_53a){dojox.grid.util.fire(_539,"focus",[_53a]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_53b,_53c,_53d){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_53c)){this.applyRowEdit();this.grid.updateRow(_53c);}if(_53d){this.info={cell:_53b,rowIndex:_53c};this.grid.doStartEdit(_53b,_53c);this.grid.updateRow(_53c);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_53b,_53c);this._doCatchBoomerang();},_editorDo:function(_53e){var c=this.info.cell;if(c&&c.editable){c[_53e](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_53f,_540,_541){if(this.grid.canEdit(_540,_541)){this.grid.doApplyCellEdit(_53f,_541,_540.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_542,_543){var c=this.info.cell;if(this.isEditRow(_542)&&(!_543||c.view==_543)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_544,_545){var c=this.info.cell;if(this.isEditRow(_545)&&c.view==_544&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_546){this.grid=_546;this.selected=[];this.setMode(_546.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_547){return this.grid.onCanSelect(_547);},onCanDeselect:function(_548){return this.grid.onCanDeselect(_548);},onSelected:function(_549){},onDeselected:function(_54a){},onChanging:function(){},onChanged:function(){},isSelected:function(_54b){if(this.mode=="none"){return false;}return this.selected[_54b];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_54c){if(this.mode=="none"){return -1;}for(var i=_54c+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _54d=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_54d.push(i);}}return _54d;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_54e){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_54e);this.addToSelection(_54e);}else{this.toggleSelect(_54e);}},addToSelection:function(_54f){if(this.mode=="none"){return;}if(dojo.isArray(_54f)){dojo.forEach(_54f,this.addToSelection,this);return;}_54f=Number(_54f);if(this.selected[_54f]){this.selectedIndex=_54f;}else{if(this.onCanSelect(_54f)!==false){this.selectedIndex=_54f;var _550=this.grid.getRowNode(_54f);if(_550){dojo.attr(_550,"aria-selected","true");}this._beginUpdate();this.selected[_54f]=true;this.onSelected(_54f);this._endUpdate();}}},deselect:function(_551){if(this.mode=="none"){return;}if(dojo.isArray(_551)){dojo.forEach(_551,this.deselect,this);return;}_551=Number(_551);if(this.selectedIndex==_551){this.selectedIndex=-1;}if(this.selected[_551]){if(this.onCanDeselect(_551)===false){return;}var _552=this.grid.getRowNode(_551);if(_552){dojo.attr(_552,"aria-selected","false");}this._beginUpdate();delete this.selected[_551];this.onDeselected(_551);this._endUpdate();}},setSelected:function(_553,_554){this[(_554?"addToSelection":"deselect")](_553);},toggleSelect:function(_555){if(dojo.isArray(_555)){dojo.forEach(_555,this.toggleSelect,this);return;}this.setSelected(_555,!this.selected[_555]);},_range:function(_556,inTo,func){var s=(_556>=0?_556:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_557,inTo){this._range(_557,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_558,inTo){this._range(_558,inTo,dojo.hitch(this,"deselect"));},insert:function(_559){this.selected.splice(_559,0,false);if(this.selectedIndex>=_559){this.selectedIndex++;}},remove:function(_55a){this.selected.splice(_55a,1);if(this.selectedIndex>=_55a){this.selectedIndex--;}},deselectAll:function(_55b){for(var i in this.selected){if((i!=_55b)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_55c,_55d,_55e){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_55c);}else{if(!_55e||this.rangeStartIndex<0){this.rangeStartIndex=_55c;}if(!_55d){this.deselectAll(_55c);}if(_55e){this.selectRange(this.rangeStartIndex,_55c);}else{if(_55d){this.toggleSelect(_55c);}else{this.addToSelection(_55c);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_55f){var i=_55f;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_55f);this.edit.styleRow(_55f);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _560;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_560=this.focus.getHeaderIndex();if(_560>=0){this.setSortIndex(_560);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _561=this.edit.isEditing();this.edit.apply();if(!_561){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _562=this.focus.focusView||this.views.views[0];_562.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_560=this.focus.getHeaderIndex();if(_560>=0){this.setSortIndex(_560);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _563=e.keyCode;dojo.stopEvent(e);_560=this.focus.getHeaderIndex();if(_560>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_560,(_563==dk.LEFT_ARROW?-1:1)*5);}else{var _564=(_563==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_564*=-1;}this.focus.move(0,_564);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _565;if(this._click.length>1&&dojo.isIE){_565=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_565=this._click[0];}else{_565=e;}}this.focus.setFocusCell(_565.cell,_565.rowIndex);this.edit.setEditCell(_565.cell,_565.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_566,_567){this.edit.cellFocus(_566,_567);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},onStartEdit:function(_568,_569){},onApplyCellEdit:function(_56a,_56b,_56c){},onCancelEdit:function(_56d){},onApplyEdit:function(_56e){},onCanSelect:function(_56f){return true;},onCanDeselect:function(_570){return true;},onSelected:function(_571){this.updateRowStyles(_571);},onDeselected:function(_572){this.updateRowStyles(_572);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _573=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_573);this.errorMessage=dojo.string.substitute(this.errorMessage,_573);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_574){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_574){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_575){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_576,idx){var c=dojo.getObject(_576);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_577){var s=_577;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_578){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_578);},getColumnTogglingItems:function(){var _579,_57a=[];_579=dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_57b){if(self.layout.setColumnVisibility(this._gridCell.index,_57b)){var _57c=this._gridCell.menuItems;if(_57c.length>1){dojo.forEach(_57c,function(item){if(item!==this){item.setAttribute("checked",_57b);}},this);}_57b=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_57b.length==1){dojo.forEach(_57b[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _57d=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_57d,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_57a.push(item);}return item;},this);if(_57a.length==1){_57a[0].set("disabled",true);}return _579;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_57e){this.setScrollTop(0);},getItem:function(_57f){return null;},showMessage:function(_580){if(_580){this.messagesNode.innerHTML=_580;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_581,_582){this._pendingChangeSize=_581;this._pendingResultSize=_582;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_583,_584){_583=_583||this._pendingChangeSize;_584=_584||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _585=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_585.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_584){_583=_584;}if(!this._autoHeight&&_583){dojo.marginBox(this.domNode,_583);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _586=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_586&&hh===undefined){hh=this._getHeaderHeight();}}if(_586){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _587=(!this.initialWidth&&this.autoWidth);var w=_587?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_587){this.domNode.style.width=vw+"px";}},adaptHeight:function(_588){var t=_588===undefined?this._getHeaderHeight():_588;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _589=0,_58a=0;var _58b=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_589++;}else{_58a++;}return (!has);});if(_589>0&&_58a>0){dojo.forEach(_58b,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();dojo.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_58c,_58d){this.views.renderRow(_58c,_58d,this._skipRowRenormalize);},rowRemoved:function(_58e){this.views.rowRemoved(_58e);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode||this.edit._noUpdate){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_58f){_58f=Number(_58f);if(this.updating){this.invalidated[_58f]=true;}else{this.views.updateRow(_58f);this.scroller.rowHeightChanged(_58f);}},updateRows:function(_590,_591){_590=Number(_590);_591=Number(_591);var i;if(this.updating){for(i=0;i<_591;i++){this.invalidated[i+_590]=true;}}else{for(i=0;i<_591;i++){this.views.updateRow(i+_590,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_590);}},updateRowCount:function(_592){if(this.updating){this.invalidated.rowCount=_592;}else{this.rowCount=_592;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_592);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_593){this.views.updateRowStyles(_593);},getRowNode:function(_594){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_594];}else{for(var i=0,_595;(_595=this.views.views[i]);i++){if(!(_595 instanceof dojox.grid._RowSelector)){return _595.rowNodes[_594];}}}return null;},rowHeightChanged:function(_596){this.views.renormalizeRow(_596);this.scroller.rowHeightChanged(_596);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_597){if(!this.fastScroll){this.setScrollTop(_597);return;}var _598=Math.abs(this.lastScrollTop-_597);this.lastScrollTop=_597;if(_598>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_597;this.views.setScrollTop(_597);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _599=this;this._pendingScroll=window.setTimeout(function(){delete _599._pendingScroll;_599.finishScrollJob();},200);}else{this.setScrollTop(_597);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_59a){this.scroller.scroll(this.views.setScrollTop(_59a));},scrollToRow:function(_59b){this.setScrollTop(this.scroller.findScrollTop(_59b)+1);},styleRowNode:function(_59c,_59d){if(_59d){this.rows.styleRowNode(_59c,_59d);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_59e){return this.layout.cells[_59e];},setCellWidth:function(_59f,_5a0){this.getCell(_59f).unitWidth=_5a0;},getCellName:function(_5a1){return "Cell "+_5a1.index;},canSort:function(_5a2){},sort:function(){},getSortAsc:function(_5a3){_5a3=_5a3==undefined?this.sortInfo:_5a3;return Boolean(_5a3>0);},getSortIndex:function(_5a4){_5a4=_5a4==undefined?this.sortInfo:_5a4;return Math.abs(_5a4)-1;},setSortIndex:function(_5a5,_5a6){var si=_5a5+1;if(_5a6!=undefined){si*=(_5a6?1:-1);}else{if(this.getSortIndex()==_5a5){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_5a7){if(this.canSort(_5a7)){this.sortInfo=_5a7;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_5a8,_5a9){this.onStartEdit(_5a8,_5a9);},doApplyCellEdit:function(_5aa,_5ab,_5ac){this.onApplyCellEdit(_5aa,_5ab,_5ac);},doCancelEdit:function(_5ad){this.onCancelEdit(_5ad);},doApplyEdit:function(_5ae){this.onApplyEdit(_5ae);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});dojox.grid._Grid.markupFactory=function(_5af,node,ctor,_5b0){var d=dojo;var _5b1=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_5af.structure&&node.nodeName.toLowerCase()=="table"){_5af.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_5b1(cg);}return v;});if(!_5af.structure.length){_5af.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_5b2){var _5b3=0;var _5b4=0;var _5b5;var _5b6=null;d.query("> th",tr).map(function(th){if(!_5b6){_5b5=0;_5b6=_5af.structure[0];}else{if(_5b3>=(_5b5+_5b6.__span)){_5b4++;_5b5+=_5b6.__span;var _5b7=_5b6;_5b6=_5af.structure[_5b4];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_5b3+=cell.colSpan;var _5b8=d.attr(th,"rowspan");if(_5b8){cell.rowSpan=_5b8;}if(d.hasAttr(th,"width")){cell.width=_5b1(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_5b0){_5b0(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_5b6.cells[_5b2]){_5b6.cells[_5b2]=[];}_5b6.cells[_5b2].push(cell);});});}return new ctor(_5af,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_5b9){var _5ba=this.grid.getItemIndex(_5b9);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_5ba);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _5bb=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_5bb.push(this.grid.getItem(i));}}return _5bb;},addToSelection:function(_5bc){if(this.mode=="none"){return;}var idx=null;if(typeof _5bc=="number"||typeof _5bc=="string"){idx=_5bc;}else{idx=this.grid.getItemIndex(_5bc);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_5bd){if(this.mode=="none"){return;}var idx=null;if(typeof _5bd=="number"||typeof _5bd=="string"){idx=_5bd;}else{idx=this.grid.getItemIndex(_5bd);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_5be){var idx=null;if(_5be||typeof _5be=="number"){if(typeof _5be=="number"||typeof _5be=="string"){idx=_5be;}else{idx=this.grid.getItemIndex(_5be);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_5bf,_5c0){if(_5c0&&this.field=="_item"&&!this.fields){return _5c0;}else{if(_5c0&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_5c0,f));});return ret;}else{if(!_5c0&&typeof _5bf==="string"){return this.inherited(arguments);}}}return (!_5c0?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_5c0:this.grid.store.getValue(_5c0,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _5c1=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_5c1=true;}if(!this.updating){this.beginUpdate();_5c1=true;}if(_5c1){var _5c2=this;this._endUpdateDelay=setTimeout(function(){delete _5c2._endUpdateDelay;_5c2.endUpdate();},this.updateDelay);}}},_onSet:function(item,_5c3,_5c4,_5c5){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_5c6){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_5c6+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_5c7,_5c8){this._by_idx[_5c7]=this._createItem(item,_5c7);if(!_5c8){this.updateRow(_5c7);}},_onNew:function(item,_5c9){this._checkUpdateStatus();var _5ca=this.get("rowCount");this._addingItem=true;this.updateRowCount(_5ca+1);this._addingItem=false;this._addItem(item,_5ca);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}},_onRevert:function(){this._refresh();},setStore:function(_5cb,_5cc,_5cd){this._setQuery(_5cc,_5cd);this._setStore(_5cb);this._refresh(true);},setQuery:function(_5ce,_5cf){this._setQuery(_5ce,_5cf);this._refresh(true);},setItems:function(_5d0){this.items=_5d0;this._setStore(this.store);this._refresh(true);},_setQuery:function(_5d1,_5d2){this.query=_5d1;this.queryOptions=_5d2||this.queryOptions;},_setStore:function(_5d3){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_5d3;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_5d4,req){if(!this.scroller){return;}if(_5d4&&_5d4.length>0){dojo.forEach(_5d4,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_5d4.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_5d5,_5d6){_5d5=_5d5||0;if(this.store&&!this._pending_requests[_5d5]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_5d5]=true;try{if(this.items){var _5d7=this.items;var _5d8=this.store;this.rowsPerPage=_5d7.length;var req={start:_5d5,count:this.rowsPerPage,isRender:_5d6};this._onFetchBegin(_5d7.length,req);var _5d9=0;dojo.forEach(_5d7,function(i){if(!_5d8.isItemLoaded(i)){_5d9++;}});if(_5d9===0){this._onFetchComplete(_5d7,req);}else{var _5da=function(item){_5d9--;if(_5d9===0){this._onFetchComplete(_5d7,req);}};dojo.forEach(_5d7,function(i){if(!_5d8.isItemLoaded(i)){_5d8.loadItem({item:i,onItem:_5da,scope:this});}},this);}}else{this.store.fetch({start:_5d5,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_5d6,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_5d5,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_5db){if(!_5db&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_5dc,_5dd){this.query=_5dc;if(_5dd){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_5de){return this._pending_requests[_5de];},_rowToPage:function(_5df){return (this.rowsPerPage?Math.floor(_5df/this.rowsPerPage):_5df);},_pageToRow:function(_5e0){return (this.rowsPerPage?this.rowsPerPage*_5e0:_5e0);},_preparePage:function(_5e1){if((_5e1<this._bop||_5e1>=this._eop)&&!this._addingItem){var _5e2=this._rowToPage(_5e1);this._needPage(_5e2);this._bop=_5e2*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_5e3){if(!this._pages[_5e3]){this._pages[_5e3]=true;this._requestPage(_5e3);}},_requestPage:function(_5e4){var row=this._pageToRow(_5e4);var _5e5=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_5e5>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_5e6){return _5e6.field;},_refresh:function(_5e7){this._clearData();this._fetch(0,_5e7);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_5e8){if(this.store&&this.store.getState){var _5e9=this.store.getState(_5e8.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_5e9[s]){c=" dojoxGridRow-"+s;break;}}_5e8.customClasses+=c;}},onStyleRow:function(_5ea){this.styleRowState(_5ea);this.inherited(arguments);},canEdit:function(_5eb,_5ec){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _5ed={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_5ee,_5ef){if(!this._cache[_5ef]){this._cache[_5ef]=this._copyAttr(_5ef,_5ee.field);}this.onStartEdit(_5ee,_5ef);},doApplyCellEdit:function(_5f0,_5f1,_5f2){this.store.fetchItemByIdentity({identity:this._by_idx[_5f1].idty,onItem:dojo.hitch(this,function(item){var _5f3=this.store.getValue(item,_5f2);if(typeof _5f3=="number"){_5f0=isNaN(_5f0)?_5f0:parseFloat(_5f0);}else{if(typeof _5f3=="boolean"){_5f0=_5f0=="true"?true:_5f0=="false"?false:_5f0;}else{if(_5f3 instanceof Date){var _5f4=new Date(_5f0);_5f0=isNaN(_5f4.getTime())?_5f0:_5f4;}}}this.store.setValue(item,_5f2,_5f0);this.onApplyCellEdit(_5f0,_5f1,_5f2);})});},doCancelEdit:function(_5f5){var _5f6=this._cache[_5f5];if(_5f6){this.updateRow(_5f5);delete this._cache[_5f5];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_5f7,_5f8){var _5f9=this._cache[_5f7];this.onApplyEdit(_5f7);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_5fa){if(_5fa.length){dojo.forEach(_5fa,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_5fb,node,_5fc){var _5fd=dojo.trim(dojo.attr(node,"field")||"");if(_5fd){_5fc.field=_5fd;}_5fc.field=_5fc.field||_5fc.name;var _5fe=dojo.trim(dojo.attr(node,"fields")||"");if(_5fe){_5fc.fields=_5fe.split(",");}if(_5fb){_5fb(node,_5fc);}};dojox.grid.DataGrid.markupFactory=function(_5ff,node,ctor,_600){return dojox.grid._Grid.markupFactory(_5ff,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_600));};}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_601,node){return new dojo.dnd.move.constrainedMoveable(node,_601);},constructor:function(node,_602){if(!_602){_602={};}this.constraints=_602.constraints;this.within=_602.within;},onFirstMove:function(_603){var c=this.constraintBox=this.constraints.call(this,_603);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_603.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_604,_605){var c=this.constraintBox,s=_604.node.style;this.onMoving(_604,_605);_605.l=_605.l<c.l?c.l:c.r<_605.l?c.r:_605.l;_605.t=_605.t<c.t?c.t:c.b<_605.t?c.b:_605.t;s.left=_605.l+"px";s.top=_605.t+"px";this.onMoved(_604,_605);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_606,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_606);},constructor:function(node,_607){var box=_607&&_607.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_608,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_608);},constructor:function(node,_609){var area=_609&&_609.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _60a=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_60b){if(!_60b){_60b={};}if(_60b.timeout&&typeof _60b.timeout=="number"&&_60b.timeout>=0){this.timeout=_60b.timeout;}},markupFactory:function(_60c,node){return new dojo.dnd.TimedMoveable(node,_60c);},onMoveStop:function(_60d){if(_60d._timer){clearTimeout(_60d._timer);_60a.call(this,_60d,_60d._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_60e,_60f){_60e._leftTop=_60f;if(!_60e._timer){var _610=this;_60e._timer=setTimeout(function(){_60e._timer=null;_60a.call(_610,_60e,_60e._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _611=this;dojo.mixin(_611,args);_611.node=args.node;_611._showArgs=dojo.mixin({},args);_611._showArgs.node=_611.node;_611._showArgs.duration=_611.showDuration;_611.showAnim=_611.showFunc(_611._showArgs);_611._hideArgs=dojo.mixin({},args);_611._hideArgs.node=_611.node;_611._hideArgs.duration=_611.hideDuration;_611.hideAnim=_611.hideFunc(_611._hideArgs);dojo.connect(_611.showAnim,"beforeBegin",dojo.hitch(_611.hideAnim,"stop",true));dojo.connect(_611.hideAnim,"beforeBegin",dojo.hitch(_611.showAnim,"stop",true));},show:function(_612){return this.showAnim.play(_612||0);},hide:function(_613){return this.hideAnim.play(_613||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_614={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _615=function(_616){this._index=-1;this._animations=_616||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_615,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_617,_618){if(!this._current){this._current=this._animations[this._index=0];}if(!_618&&this._current.status()=="playing"){return this;}var _619=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_61a=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_61b=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_619);d.disconnect(_61a);d.disconnect(_61b);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_61c,_61d){this.pause();var _61e=this.duration*_61c;this._current=null;d.some(this._animations,function(a){if(a.duration<=_61e){this._current=a;return true;}_61e-=a.duration;return false;});if(this._current){this._current.gotoPercent(_61e/this._current.duration,_61d);}return this;},stop:function(_61f){if(this._current){if(_61f){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_615,_614);dojo.fx.chain=function(_620){return new _615(_620);};var _621=function(_622){this._animations=_622||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_622,function(a){var _623=a.duration;if(a.delay){_623+=a.delay;}if(this.duration<_623){this.duration=_623;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_621,{_doAction:function(_624,args){d.forEach(this._animations,function(a){a[_624].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_625,args){var t=this._pseudoAnimation;t[_625].apply(t,args);},play:function(_626,_627){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_628,_629){var ms=this.duration*_628;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_629);});this._call("gotoPercent",arguments);return this;},stop:function(_62a){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_621,_614);dojo.fx.combine=function(_62b){return new _621(_62b);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _62c=d.style(node,"height");return Math.max(_62c,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_62d){if(_62d.reset){_62d.reset();}});},validate:function(){var _62e=false;return dojo.every(dojo.map(this.getDescendants(),function(_62f){_62f._hasBeenBlurred=true;var _630=_62f.disabled||!_62f.validate||_62f.validate();if(!_630&&!_62e){dojo.window.scrollIntoView(_62f.containerNode||_62f.domNode);_62f.focus();_62e=true;}return _630;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_631){if(!_631.name){return;}var _632=map[_631.name]||(map[_631.name]=[]);_632.push(_631);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _633=map[name],_634=dojo.getObject(name,false,obj);if(_634===undefined){continue;}if(!dojo.isArray(_634)){_634=[_634];}if(typeof _633[0].checked=="boolean"){dojo.forEach(_633,function(w,i){w.set("value",dojo.indexOf(_634,w.value)!=-1);});}else{if(_633[0].multiple){_633[0].set("value",_634);}else{dojo.forEach(_633,function(w,i){w.set("value",_634[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_635){var name=_635.name;if(!name||_635.disabled){return;}var _636=_635.get("value");if(typeof _635.checked=="boolean"){if(/Radio/.test(_635.declaredClass)){if(_636!==false){dojo.setObject(name,_636,obj);}else{_636=dojo.getObject(name,false,obj);if(_636===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_636!==false){ary.push(_636);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_636);}else{dojo.setObject(name,[prev,_636],obj);}}else{dojo.setObject(name,_636,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_637){},_getState:function(){var _638=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_638,"Error")>=0?"Error":dojo.indexOf(_638,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_639){var _63a=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_639?function(name,val){_63a[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _63b=(this._childConnections=[]),_63c=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_63d){dojo.forEach(["state","disabled"],function(attr){_63c.push(_63d.watch(attr,function(attr,_63e,_63f){_63a.set("state",_63a._getState());}));});});var _640=function(){if(_63a._onChangeDelayTimer){clearTimeout(_63a._onChangeDelayTimer);}_63a._onChangeDelayTimer=setTimeout(function(){delete _63a._onChangeDelayTimer;_63a._set("value",_63a.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_641){_63b.push(_63a.connect(_641,"onChange",_640));_63c.push(_641.watch("disabled",_640));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_642,_643){this.onValidStateChange(_643=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_644){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _645=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_645.lowest||_645.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_645.last||_645.highest||this._firstFocusItem;}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_646){this.node.className="dijitDialogUnderlay "+_646;this._set("class",_646);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _647=dojo.window.getBox();os.top=_647.t+"px";os.left=_647.l+"px";is.width=_647.w+"px";is.height=_647.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_648){_648.startup();_648._started=true;});},startup:function(){if(this._started){return;}var _649=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_649&&_649.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _64a=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_64b=_64a.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_64c=dojo.filter(_64b.map(dijit.byNode),function(_64d){return _64d&&_64d.domNode&&_64d.resize;});if(_64a.length==_64b.length&&_64c.length==1){this._singleChild=_64c[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_64e,_64f){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_64e,_64f);},_scheduleLayout:function(_650,_651){if(this._isShown()){this._layout(_650,_651);}else{this._needLayout=true;this._changeSize=_650;this._resultSize=_651;}},_layout:function(_652,_653){if(_652){dojo.marginBox(this.domNode,_652);}var cn=this.containerNode;if(cn===this.domNode){var mb=_653||{};dojo.mixin(mb,_652||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_654){if(_654.resize){_654.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_655=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_655&&_655.style&&(_655.style.display!="none");}}},_onShow:function(){this._wasShown=true;if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _656=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _657=cont.length,i=0;i<cont.length;i=_657==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_658,node){dojo.mixin(this,_658||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_656++].join("_");}},set:function(cont,_659){if(undefined!==cont){this.content=cont;}if(_659){this._mixin(_659);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _65a=this.onContentError(e);try{node.innerHTML=_65a;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _65b=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_65b){cont=_65b[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_65c){var _65d={},key;for(key in _65c){if(key in _65d){continue;}this[key]=_65c[key];}},_parse:function(){var _65e=this.node;try{var _65f={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_65f[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_65e,noStart:!this.startup,inherited:_65f,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_660){var _661=this["on"+type+"Error"].call(this,err);if(_660){console.error(_660,err);}else{if(_661){dojo.html._setNodeContent(this.node,_661,true);}}}});dojo.html.set=function(node,cont,_662){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_662){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_662,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_663,_664){if((!_663||!_663.template)&&_664&&!("href" in _663)&&!("content" in _663)){var df=dojo.doc.createDocumentFragment();_664=dojo.byId(_664);while(_664.firstChild){df.appendChild(_664.firstChild);}_663=dojo.delegate(_663,{content:df});}this.inherited(arguments,[_663,_664]);},postMixInProperties:function(){this.inherited(arguments);var _665=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_665);this.errorMessage=dojo.string.substitute(this.errorMessage,_665);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_666){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _667={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_667,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_667));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _668=this._contentSetter;dojo.forEach(this.getChildren(),function(_669){if(_669.destroyRecursive){_669.destroyRecursive();}});if(_668){dojo.forEach(_668.parseResults,function(_66a){if(_66a.destroyRecursive&&_66a.domNode&&_66a.domNode.parentNode==dojo.body()){_66a.destroyRecursive();}});delete _668.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_66b){this.destroyDescendants();var _66c=this._contentSetter;if(!(_66c&&_66c instanceof dojo.html._ContentSetter)){_66c=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _66d=this.onContentError(e);try{this.containerNode.innerHTML=_66d;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _66e=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_66c.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_66e);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_66b){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_66f){this.onLoadDeferred.errback(err);var _670=this["on"+type+"Error"].call(this,err);if(_66f){console.error(_66f,err);}else{if(_670){this._setContent(_670,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_671){},onDownloadError:function(_672){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_673){this.containerNode.title=_673;this._set("title",_673);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_674,_675){var newC="dijitTooltipAB"+(_675.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_675.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _676=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_676){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_676){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _677=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_677);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo._getMarginSize(this.domNode);var _678=dojo.window.getBox();if(mb.w>=_678.w||mb.h>=_678.h){var w=Math.min(mb.w,Math.floor(_678.w*0.75)),h=Math.min(mb.h,Math.floor(_678.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_679=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_679.l+(p?p.x:(_679.w-bb.w)/2)),t=Math.floor(_679.t+(p?p.y:(_679.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _67a=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_67a){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_67a){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();dijit._DialogLevelManager.hide(this);}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _67b=dojo.window.getBox();if(!this._oldViewport||_67b.h!=this._oldViewport.h||_67b.w!=this._oldViewport.w){this.layout();this._oldViewport=_67b;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _67c;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_67c.stop();delete this._fadeInDeferred;}));_67c=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized||!this.open){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _67d;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_67d.stop();delete this._fadeOutDeferred;}));_67d=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_67e,_67f){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_67e);var _680=dijit._underlay;if(!_680||_680._destroyed){_680=dijit._underlay=new dijit.DialogUnderlay(_67f);}else{_680.set(_67e.underlayAttrs);}var _681=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_680.show();}dojo.style(dijit._underlay.domNode,"zIndex",_681-1);dojo.style(_67e.domNode,"zIndex",_681);ds.push({dialog:_67e,underlayAttrs:_67f,zIndex:_681});},hide:function(_682){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_682){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_682.refocus){var _683=pd.focus;if(!_683||(pd.dialog&&!dojo.isDescendant(_683.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_683=pd.dialog._firstFocusItem;}try{dijit.focus(_683);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_682);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_684){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_684;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_685,_686){var _687=[];var _688,_689,_68a=0;while(_688=re.exec(str)){_689=str.slice(_68a,re.lastIndex-_688[0].length);if(_689.length){_687.push(_689);}if(_685){if(dojo.isOpera){var copy=_688.slice(0);while(copy.length<_688.length){copy.push(null);}_688=copy;}var _68b=_685.apply(_686,_688.slice(1).concat(_687.length));if(typeof _68b!="undefined"){_687.push(_68b);}}_68a=re.lastIndex;}_689=str.slice(_68a);if(_689.length){_687.push(_689);}return _687;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_68c,_68d){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _68e=new dojox.string.sprintf.Formatter(_68c);return _68e.format.apply(_68e,args);};dojox.string.sprintf.Formatter=function(_68f){var _690=[];this._mapped=false;this._format=_68f;this._tokens=dojox.string.tokenize(_68f,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_691,_692,_693,_694,_695,_696,_697){if(_691){this._mapped=true;}return {mapping:_691,intmapping:_692,flags:_693,_minWidth:_694,period:_695,_precision:_696,specifier:_697};},_specifiers:{b:{base:2,isInt:true},o:{base:8,isInt:true},x:{base:16,isInt:true},X:{extend:["x"],toUpper:true},d:{base:10,isInt:true},i:{extend:["d"]},u:{extend:["d"],isUnsigned:true},c:{setArg:function(_698){if(!isNaN(_698.arg)){var num=parseInt(_698.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_698.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_699){_699.maxWidth=(_699.period==".")?_699.precision:-1;}},e:{isDouble:true,doubleNotation:"e"},E:{extend:["e"],toUpper:true},f:{isDouble:true,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:true,doubleNotation:"g"},G:{extend:["g"],toUpper:true}},format:function(_69a){if(this._mapped&&typeof _69a!="object"){throw new Error("format requires a mapping");}var str="";var _69b=0;for(var i=0,_69c;i<this._tokens.length;i++){_69c=this._tokens[i];if(typeof _69c=="string"){str+=_69c;}else{if(this._mapped){if(typeof _69a[_69c.mapping]=="undefined"){throw new Error("missing key "+_69c.mapping);}_69c.arg=_69a[_69c.mapping];}else{if(_69c.intmapping){var _69b=parseInt(_69c.intmapping)-1;}if(_69b>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_69c.arg=arguments[_69b++];}if(!_69c.compiled){_69c.compiled=true;_69c.sign="";_69c.zeroPad=false;_69c.rightJustify=false;_69c.alternative=false;var _69d={};for(var fi=_69c.flags.length;fi--;){var flag=_69c.flags.charAt(fi);_69d[flag]=true;switch(flag){case " ":_69c.sign=" ";break;case "+":_69c.sign="+";break;case "0":_69c.zeroPad=(_69d["-"])?false:true;break;case "-":_69c.rightJustify=true;_69c.zeroPad=false;break;case "#":_69c.alternative=true;break;default:throw Error("bad formatting flag '"+_69c.flags.charAt(fi)+"'");}}_69c.minWidth=(_69c._minWidth)?parseInt(_69c._minWidth):0;_69c.maxWidth=-1;_69c.toUpper=false;_69c.isUnsigned=false;_69c.isInt=false;_69c.isDouble=false;_69c.precision=1;if(_69c.period=="."){if(_69c._precision){_69c.precision=parseInt(_69c._precision);}else{_69c.precision=0;}}var _69e=this._specifiers[_69c.specifier];if(typeof _69e=="undefined"){throw new Error("unexpected specifier '"+_69c.specifier+"'");}if(_69e.extend){dojo.mixin(_69e,this._specifiers[_69e.extend]);delete _69e.extend;}dojo.mixin(_69c,_69e);}if(typeof _69c.setArg=="function"){_69c.setArg(_69c);}if(typeof _69c.setMaxWidth=="function"){_69c.setMaxWidth(_69c);}if(_69c._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_69c.minWidth=parseInt(arguments[_69b++]);if(isNaN(_69c.minWidth)){throw new Error("the argument for * width at position "+_69b+" is not a number in "+this._format);}if(_69c.minWidth<0){_69c.rightJustify=true;_69c.minWidth=-_69c.minWidth;}}if(_69c._precision=="*"&&_69c.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_69c.precision=parseInt(arguments[_69b++]);if(isNaN(_69c.precision)){throw Error("the argument for * precision at position "+_69b+" is not a number in "+this._format);}if(_69c.precision<0){_69c.precision=1;_69c.period="";}}if(_69c.isInt){if(_69c.period=="."){_69c.zeroPad=false;}this.formatInt(_69c);}else{if(_69c.isDouble){if(_69c.period!="."){_69c.precision=6;}this.formatDouble(_69c);}}this.fitField(_69c);str+=""+_69c.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_69f){var i=parseInt(_69f.arg);if(!isFinite(i)){if(typeof _69f.arg!="number"){throw new Error("format argument '"+_69f.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_69f.isUnsigned||_69f.base!=10)){i=4294967295+i+1;}if(i<0){_69f.arg=(-i).toString(_69f.base);this.zeroPad(_69f);_69f.arg="-"+_69f.arg;}else{_69f.arg=i.toString(_69f.base);if(!i&&!_69f.precision){_69f.arg="";}else{this.zeroPad(_69f);}if(_69f.sign){_69f.arg=_69f.sign+_69f.arg;}}if(_69f.base==16){if(_69f.alternative){_69f.arg="0x"+_69f.arg;}_69f.arg=_69f.toUpper?_69f.arg.toUpperCase():_69f.arg.toLowerCase();}if(_69f.base==8){if(_69f.alternative&&_69f.arg.charAt(0)!="0"){_69f.arg="0"+_69f.arg;}}},formatDouble:function(_6a0){var f=parseFloat(_6a0.arg);if(!isFinite(f)){if(typeof _6a0.arg!="number"){throw new Error("format argument '"+_6a0.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_6a0.doubleNotation){case "e":_6a0.arg=f.toExponential(_6a0.precision);break;case "f":_6a0.arg=f.toFixed(_6a0.precision);break;case "g":if(Math.abs(f)<0.0001){_6a0.arg=f.toExponential(_6a0.precision>0?_6a0.precision-1:_6a0.precision);}else{_6a0.arg=f.toPrecision(_6a0.precision);}if(!_6a0.alternative){_6a0.arg=_6a0.arg.replace(/(\..*[^0])0*/,"$1");_6a0.arg=_6a0.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_6a0.doubleNotation+"'");}_6a0.arg=_6a0.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_6a0.arg=_6a0.arg.replace(/^\./,"0.");}if(_6a0.alternative){_6a0.arg=_6a0.arg.replace(/^(\d+)$/,"$1.");_6a0.arg=_6a0.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_6a0.sign){_6a0.arg=_6a0.sign+_6a0.arg;}_6a0.arg=_6a0.toUpper?_6a0.arg.toUpperCase():_6a0.arg.toLowerCase();},zeroPad:function(_6a1,_6a2){_6a2=(arguments.length==2)?_6a2:_6a1.precision;if(typeof _6a1.arg!="string"){_6a1.arg=""+_6a1.arg;}var _6a3=_6a2-10;while(_6a1.arg.length<_6a3){_6a1.arg=(_6a1.rightJustify)?_6a1.arg+this._zeros10:this._zeros10+_6a1.arg;}var pad=_6a2-_6a1.arg.length;_6a1.arg=(_6a1.rightJustify)?_6a1.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_6a1.arg;},fitField:function(_6a4){if(_6a4.maxWidth>=0&&_6a4.arg.length>_6a4.maxWidth){return _6a4.arg.substring(0,_6a4.maxWidth);}if(_6a4.zeroPad){this.zeroPad(_6a4,_6a4.minWidth);return;}this.spacePad(_6a4);},spacePad:function(_6a5,_6a6){_6a6=(arguments.length==2)?_6a6:_6a5.minWidth;if(typeof _6a5.arg!="string"){_6a5.arg=""+_6a5.arg;}var _6a7=_6a6-10;while(_6a5.arg.length<_6a7){_6a5.arg=(_6a5.rightJustify)?_6a5.arg+this._spaces10:this._spaces10+_6a5.arg;}var pad=_6a6-_6a5.arg.length;_6a5.arg=(_6a5.rightJustify)?_6a5.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_6a5.arg;}});}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_6a8){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_6a8.url;this._ccUrl=_6a8.url;this.url=_6a8.url;this._jsonData=_6a8.data;this.data=null;this._datatypeMap=_6a8.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_6a9){return dojo.date.stamp.fromISOString(_6a9);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_6a8.urlPreventCache!==undefined){this.urlPreventCache=_6a8.urlPreventCache?true:false;}if(_6a8.hierarchical!==undefined){this.hierarchical=_6a8.hierarchical?true:false;}if(_6a8.clearOnClose){this.clearOnClose=true;}if("failOk" in _6a8){this.failOk=_6a8.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_6aa){if(typeof _6aa!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_6ab,_6ac){var _6ad=this.getValues(item,_6ab);return (_6ad.length>0)?_6ad[0]:_6ac;},getValues:function(item,_6ae){this._assertIsItem(item);this._assertIsAttribute(_6ae);return (item[_6ae]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _6af=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_6af.push(key);}}return _6af;},hasAttribute:function(item,_6b0){this._assertIsItem(item);this._assertIsAttribute(_6b0);return (_6b0 in item);},containsValue:function(item,_6b1,_6b2){var _6b3=undefined;if(typeof _6b2==="string"){_6b3=dojo.data.util.filter.patternToRegExp(_6b2,false);}return this._containsValue(item,_6b1,_6b2,_6b3);},_containsValue:function(item,_6b4,_6b5,_6b6){return dojo.some(this.getValues(item,_6b4),function(_6b7){if(_6b7!==null&&!dojo.isObject(_6b7)&&_6b6){if(_6b7.toString().match(_6b6)){return true;}}else{if(_6b5===_6b7){return true;}}});},isItem:function(_6b8){if(_6b8&&_6b8[this._storeRefPropName]===this){if(this._arrayOfAllItems[_6b8[this._itemNumPropName]]===_6b8){return true;}}return false;},isItemLoaded:function(_6b9){return this.isItem(_6b9);},loadItem:function(_6ba){this._assertIsItem(_6ba.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_6bb,_6bc,_6bd){var self=this,_6be=function(_6bf,_6c0){var _6c1=[],i,key;if(_6bf.query){var _6c2,_6c3=_6bf.queryOptions?_6bf.queryOptions.ignoreCase:false;var _6c4={};for(key in _6bf.query){_6c2=_6bf.query[key];if(typeof _6c2==="string"){_6c4[key]=dojo.data.util.filter.patternToRegExp(_6c2,_6c3);}else{if(_6c2 instanceof RegExp){_6c4[key]=_6c2;}}}for(i=0;i<_6c0.length;++i){var _6c5=true;var _6c6=_6c0[i];if(_6c6===null){_6c5=false;}else{for(key in _6bf.query){_6c2=_6bf.query[key];if(!self._containsValue(_6c6,key,_6c2,_6c4[key])){_6c5=false;}}}if(_6c5){_6c1.push(_6c6);}}_6bc(_6c1,_6bf);}else{for(i=0;i<_6c0.length;++i){var item=_6c0[i];if(item!==null){_6c1.push(item);}}_6bc(_6c1,_6bf);}};if(this._loadFinished){_6be(_6bb,this._getItemsArray(_6bb.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_6bb,filter:_6be});}else{this._loadInProgress=true;var _6c7={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _6c8=dojo.xhrGet(_6c7);_6c8.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_6be(_6bb,self._getItemsArray(_6bb.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_6bd(e,_6bb);}});_6c8.addErrback(function(_6c9){self._loadInProgress=false;_6bd(_6c9,_6bb);});var _6ca=null;if(_6bb.abort){_6ca=_6bb.abort;}_6bb.abort=function(){var df=_6c8;if(df&&df.fired===-1){df.cancel();df=null;}if(_6ca){_6ca.call(_6bb);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_6be(_6bb,this._getItemsArray(_6bb.queryOptions));}catch(e){_6bd(e,_6bb);}}else{_6bd(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_6bb);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _6cb=this._queuedFetches[i],_6cc=_6cb.args,_6cd=_6cb.filter;if(_6cd){_6cd(_6cc,this._getItemsArray(_6cc.queryOptions));}else{this.fetchItemByIdentity(_6cc);}}this._queuedFetches=[];}},_getItemsArray:function(_6ce){if(_6ce&&_6ce.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_6cf){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_6d0){var _6d1=false,self=this;function _6d2(_6d3){var _6d4=((_6d3!==null)&&(typeof _6d3==="object")&&(!dojo.isArray(_6d3)||_6d1)&&(!dojo.isFunction(_6d3))&&(_6d3.constructor==Object||dojo.isArray(_6d3))&&(typeof _6d3._reference==="undefined")&&(typeof _6d3._type==="undefined")&&(typeof _6d3._value==="undefined")&&self.hierarchical);return _6d4;};function _6d5(_6d6){self._arrayOfAllItems.push(_6d6);for(var _6d7 in _6d6){var _6d8=_6d6[_6d7];if(_6d8){if(dojo.isArray(_6d8)){var _6d9=_6d8;for(var k=0;k<_6d9.length;++k){var _6da=_6d9[k];if(_6d2(_6da)){_6d5(_6da);}}}else{if(_6d2(_6d8)){_6d5(_6d8);}}}}};this._labelAttr=_6d0.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_6d0.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_6d1=true;}_6d5(item);item[this._rootItemPropName]=true;}var _6db={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _6dc=item[key];if(_6dc!==null){if(!dojo.isArray(_6dc)){item[key]=[_6dc];}}else{item[key]=[null];}}_6db[key]=key;}}while(_6db[this._storeRefPropName]){this._storeRefPropName+="_";}while(_6db[this._itemNumPropName]){this._itemNumPropName+="_";}while(_6db[this._reverseRefMap]){this._reverseRefMap+="_";}var _6dd;var _6de=_6d0.identifier;if(_6de){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_6de;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_6dd=item[_6de];var _6df=_6dd[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_6df)){this._itemsByIdentity[_6df]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_6de+"].  Value collided: ["+_6df+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_6de+"].  Value collided: ["+_6df+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_6dd=item[key];for(var j=0;j<_6dd.length;++j){_6dc=_6dd[j];if(_6dc!==null&&typeof _6dc=="object"){if(("_type" in _6dc)&&("_value" in _6dc)){var type=_6dc._type;var _6e0=this._datatypeMap[type];if(!_6e0){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_6e0)){_6dd[j]=new _6e0(_6dc._value);}else{if(dojo.isFunction(_6e0.deserialize)){_6dd[j]=_6e0.deserialize(_6dc._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_6dc._reference){var _6e1=_6dc._reference;if(!dojo.isObject(_6e1)){_6dd[j]=this._getItemByIdentity(_6e1);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _6e2=this._arrayOfAllItems[k],_6e3=true;for(var _6e4 in _6e1){if(_6e2[_6e4]!=_6e1[_6e4]){_6e3=false;}}if(_6e3){_6dd[j]=_6e2;}}}if(this.referenceIntegrity){var _6e5=_6dd[j];if(this.isItem(_6e5)){this._addReferenceToMap(_6e5,item,key);}}}else{if(this.isItem(_6dc)){if(this.referenceIntegrity){this._addReferenceToMap(_6dc,item,key);}}}}}}}},_addReferenceToMap:function(_6e6,_6e7,_6e8){},getIdentity:function(item){var _6e9=this._features["dojo.data.api.Identity"];if(_6e9===Number){return item[this._itemNumPropName];}else{var _6ea=item[_6e9];if(_6ea){return _6ea[0];}}return null;},fetchItemByIdentity:function(_6eb){var item,_6ec;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_6eb});}else{this._loadInProgress=true;var _6ed={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _6ee=dojo.xhrGet(_6ed);_6ee.addCallback(function(data){var _6ef=_6eb.scope?_6eb.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_6eb.identity);if(_6eb.onItem){_6eb.onItem.call(_6ef,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_6eb.onError){_6eb.onError.call(_6ef,error);}}});_6ee.addErrback(function(_6f0){self._loadInProgress=false;if(_6eb.onError){var _6f1=_6eb.scope?_6eb.scope:dojo.global;_6eb.onError.call(_6f1,_6f0);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_6eb.identity);if(_6eb.onItem){_6ec=_6eb.scope?_6eb.scope:dojo.global;_6eb.onItem.call(_6ec,item);}}}}else{item=this._getItemByIdentity(_6eb.identity);if(_6eb.onItem){_6ec=_6eb.scope?_6eb.scope:dojo.global;_6eb.onItem.call(_6ec,item);}}},_getItemByIdentity:function(_6f2){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_6f2)){item=this._itemsByIdentity[_6f2];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_6f2)){item=this._arrayOfAllItems[_6f2];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _6f3=this._features["dojo.data.api.Identity"];if(_6f3===Number){return null;}else{return [_6f3];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _6f4={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _6f5=dojo.xhrGet(_6f4);_6f5.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){throw e;}});_6f5.addErrback(function(_6f6){throw _6f6;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;dojo.provide("dojo.data.ItemFileWriteStore");dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_6f7){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return dojo.date.stamp.toISOString(obj,{zulu:true});};}if(_6f7&&(_6f7.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_6f8){if(!_6f8){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _6f9=this.getFeatures()["dojo.data.api.Identity"];return _6f9;},newItem:function(_6fa,_6fb){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _6fa!="object"&&typeof _6fa!="undefined"){throw new Error("newItem() was passed something other than an object");}var _6fc=null;var _6fd=this._getIdentifierAttribute();if(_6fd===Number){_6fc=this._arrayOfAllItems.length;}else{_6fc=_6fa[_6fd];if(typeof _6fc==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_6fc)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_6fc]==="undefined");}this._assert(typeof this._pending._newItems[_6fc]==="undefined");this._assert(typeof this._pending._deletedItems[_6fc]==="undefined");var _6fe={};_6fe[this._storeRefPropName]=this;_6fe[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_6fc]=_6fe;_6fe[_6fd]=[_6fc];}this._arrayOfAllItems.push(_6fe);var _6ff=null;if(_6fb&&_6fb.parent&&_6fb.attribute){_6ff={item:_6fb.parent,attribute:_6fb.attribute,oldValue:undefined};var _700=this.getValues(_6fb.parent,_6fb.attribute);if(_700&&_700.length>0){var _701=_700.slice(0,_700.length);if(_700.length===1){_6ff.oldValue=_700[0];}else{_6ff.oldValue=_700.slice(0,_700.length);}_701.push(_6fe);this._setValueOrValues(_6fb.parent,_6fb.attribute,_701,false);_6ff.newValue=this.getValues(_6fb.parent,_6fb.attribute);}else{this._setValueOrValues(_6fb.parent,_6fb.attribute,_6fe,false);_6ff.newValue=_6fe;}}else{_6fe[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_6fe);}this._pending._newItems[_6fc]=_6fe;for(var key in _6fa){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _702=_6fa[key];if(!dojo.isArray(_702)){_702=[_702];}_6fe[key]=_702;if(this.referenceIntegrity){for(var i=0;i<_702.length;i++){var val=_702[i];if(this.isItem(val)){this._addReferenceToMap(val,_6fe,key);}}}}this.onNew(_6fe,_6ff);return _6fe;},_removeArrayElement:function(_703,_704){var _705=dojo.indexOf(_703,_704);if(_705!=-1){_703.splice(_705,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _706=item[this._itemNumPropName];var _707=this.getIdentity(item);if(this.referenceIntegrity){var _708=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_708,function(_709){dojo.forEach(this.getValues(item,_709),function(_70a){if(this.isItem(_70a)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_70a),attr:_709});this._removeReferenceFromMap(_70a,item,_709);}},this);},this);var _70b=item[this._reverseRefMap];if(_70b){for(var _70c in _70b){var _70d=null;if(this._itemsByIdentity){_70d=this._itemsByIdentity[_70c];}else{_70d=this._arrayOfAllItems[_70c];}if(_70d){for(var _70e in _70b[_70c]){var _70f=this.getValues(_70d,_70e)||[];var _710=dojo.filter(_70f,function(_711){return !(this.isItem(_711)&&this.getIdentity(_711)==_707);},this);this._removeReferenceFromMap(item,_70d,_70e);if(_710.length<_70f.length){this._setValueOrValues(_70d,_70e,_710,true);}}}}}}this._arrayOfAllItems[_706]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_707];}this._pending._deletedItems[_707]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_712,_713){return this._setValueOrValues(item,_712,_713,true);},setValues:function(item,_714,_715){return this._setValueOrValues(item,_714,_715,true);},unsetAttribute:function(item,_716){return this._setValueOrValues(item,_716,[],true);},_setValueOrValues:function(item,_717,_718,_719){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_717));this._assert(typeof _718!=="undefined");var _71a=this._getIdentifierAttribute();if(_717==_71a){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _71b=this._getValueOrValues(item,_717);var _71c=this.getIdentity(item);if(!this._pending._modifiedItems[_71c]){var _71d={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_71d[key]=item[key];}else{if(key===this._reverseRefMap){_71d[key]=dojo.clone(item[key]);}else{_71d[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_71c]=_71d;}var _71e=false;if(dojo.isArray(_718)&&_718.length===0){_71e=delete item[_717];_718=undefined;if(this.referenceIntegrity&&_71b){var _71f=_71b;if(!dojo.isArray(_71f)){_71f=[_71f];}for(var i=0;i<_71f.length;i++){var _720=_71f[i];if(this.isItem(_720)){this._removeReferenceFromMap(_720,item,_717);}}}}else{var _721;if(dojo.isArray(_718)){var _722=_718;_721=_718.slice(0,_718.length);}else{_721=[_718];}if(this.referenceIntegrity){if(_71b){var _71f=_71b;if(!dojo.isArray(_71f)){_71f=[_71f];}var map={};dojo.forEach(_71f,function(_723){if(this.isItem(_723)){var id=this.getIdentity(_723);map[id.toString()]=true;}},this);dojo.forEach(_721,function(_724){if(this.isItem(_724)){var id=this.getIdentity(_724);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_724,item,_717);}}},this);for(var rId in map){var _725;if(this._itemsByIdentity){_725=this._itemsByIdentity[rId];}else{_725=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_725,item,_717);}}else{for(var i=0;i<_721.length;i++){var _720=_721[i];if(this.isItem(_720)){this._addReferenceToMap(_720,item,_717);}}}}item[_717]=_721;_71e=true;}if(_719){this.onSet(item,_717,_71b,_718);}return _71e;},_addReferenceToMap:function(_726,_727,_728){var _729=this.getIdentity(_727);var _72a=_726[this._reverseRefMap];if(!_72a){_72a=_726[this._reverseRefMap]={};}var _72b=_72a[_729];if(!_72b){_72b=_72a[_729]={};}_72b[_728]=true;},_removeReferenceFromMap:function(_72c,_72d,_72e){var _72f=this.getIdentity(_72d);var _730=_72c[this._reverseRefMap];var _731;if(_730){for(_731 in _730){if(_731==_72f){delete _730[_731][_72e];if(this._isEmpty(_730[_731])){delete _730[_731];}}}if(this._isEmpty(_730)){delete _72c[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){}}},_getValueOrValues:function(item,_732){var _733=undefined;if(this.hasAttribute(item,_732)){var _734=this.getValues(item,_732);if(_734.length==1){_733=_734[0];}else{_733=_734;}}return _733;},_flatten:function(_735){if(this.isItem(_735)){var item=_735;var _736=this.getIdentity(item);var _737={_reference:_736};return _737;}else{if(typeof _735==="object"){for(var type in this._datatypeMap){var _738=this._datatypeMap[type];if(dojo.isObject(_738)&&!dojo.isFunction(_738)){if(_735 instanceof _738.type){if(!_738.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_738.serialize(_735)};}}else{if(_735 instanceof _738){return {_type:type,_value:_735.toString()};}}}}return _735;}},_getNewFileContentString:function(){var _739={};var _73a=this._getIdentifierAttribute();if(_73a!==Number){_739.identifier=_73a;}if(this._labelAttr){_739.label=this._labelAttr;}_739.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _73b={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _73c=key;var _73d=this.getValues(item,_73c);if(_73d.length==1){_73b[_73c]=this._flatten(_73d[0]);}else{var _73e=[];for(var j=0;j<_73d.length;++j){_73e.push(this._flatten(_73d[j]));_73b[_73c]=_73e;}}}}_739.items.push(_73b);}}var _73f=true;return dojo.toJson(_739,_73f);},_isEmpty:function(_740){var _741=true;if(dojo.isObject(_740)){var i;for(i in _740){_741=false;break;}}else{if(dojo.isArray(_740)){if(_740.length>0){_741=false;}}}return _741;},save:function(_742){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _743=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_742&&_742.onComplete){var _744=_742.scope||dojo.global;_742.onComplete.call(_744);}};var _745=function(err){self._saveInProgress=false;if(_742&&_742.onError){var _746=_742.scope||dojo.global;_742.onError.call(_746,err);}};if(this._saveEverything){var _747=this._getNewFileContentString();this._saveEverything(_743,_745,_747);}if(this._saveCustom){this._saveCustom(_743,_745);}if(!this._saveEverything&&!this._saveCustom){_743();}},revert:function(){this._assert(!this._saveInProgress);var _748;for(_748 in this._pending._modifiedItems){var _749=this._pending._modifiedItems[_748];var _74a=null;if(this._itemsByIdentity){_74a=this._itemsByIdentity[_748];}else{_74a=this._arrayOfAllItems[_748];}_749[this._storeRefPropName]=this;for(key in _74a){delete _74a[key];}dojo.mixin(_74a,_749);}var _74b;for(_748 in this._pending._deletedItems){_74b=this._pending._deletedItems[_748];_74b[this._storeRefPropName]=this;var _74c=_74b[this._itemNumPropName];if(_74b["backup_"+this._reverseRefMap]){_74b[this._reverseRefMap]=_74b["backup_"+this._reverseRefMap];delete _74b["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_74c]=_74b;if(this._itemsByIdentity){this._itemsByIdentity[_748]=_74b;}if(_74b[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_74b);}}for(_748 in this._pending._deletedItems){_74b=this._pending._deletedItems[_748];if(_74b["backupRefs_"+this._reverseRefMap]){dojo.forEach(_74b["backupRefs_"+this._reverseRefMap],function(_74d){var _74e;if(this._itemsByIdentity){_74e=this._itemsByIdentity[_74d.id];}else{_74e=this._arrayOfAllItems[_74d.id];}this._addReferenceToMap(_74e,_74b,_74d.attr);},this);delete _74b["backupRefs_"+this._reverseRefMap];}}for(_748 in this._pending._newItems){var _74f=this._pending._newItems[_748];_74f[this._storeRefPropName]=null;this._arrayOfAllItems[_74f[this._itemNumPropName]]=null;if(_74f[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_74f);}if(this._itemsByIdentity){delete this._itemsByIdentity[_748];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _750=this.getIdentity(item);return new Boolean(this._pending._newItems[_750]||this._pending._modifiedItems[_750]||this._pending._deletedItems[_750]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_751,_752,_753){},onNew:function(_754,_755){},onDelete:function(_756){},close:function(_757){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _758={};m._degToRad=function(_759){return _758[_759]||(_758[_759]=(Math.PI*_759/180));};m._radToDeg=function(_75a){return _75a/Math.PI*180;};m.Matrix2D=function(arg){if(arg){if(typeof arg=="number"){this.xx=this.yy=arg;}else{if(arg instanceof Array){if(arg.length>0){var _75b=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_75b,r=dojox.gfx.matrix.normalize(arg[i]);_75b=new m.Matrix2D();_75b.xx=l.xx*r.xx+l.xy*r.yx;_75b.xy=l.xx*r.xy+l.xy*r.yy;_75b.yx=l.yx*r.xx+l.yy*r.yx;_75b.yy=l.yx*r.xy+l.yy*r.yy;_75b.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_75b.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_75b);}}else{dojo.mixin(this,arg);}}}};dojo.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});dojo.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){if(arguments.length>1){return new m.Matrix2D({dx:a,dy:b});}return new m.Matrix2D({dx:a.x,dy:a.y});},scale:function(a,b){if(arguments.length>1){return new m.Matrix2D({xx:a,yy:b});}if(typeof a=="number"){return new m.Matrix2D({xx:a,yy:a});}return new m.Matrix2D({xx:a.x,yy:a.y});},rotate:function(_75c){var c=Math.cos(_75c);var s=Math.sin(_75c);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_75d){return m.rotate(m._degToRad(_75d));},skewX:function(_75e){return new m.Matrix2D({xy:Math.tan(_75e)});},skewXg:function(_75f){return m.skewX(m._degToRad(_75f));},skewY:function(_760){return new m.Matrix2D({yx:Math.tan(_760)});},skewYg:function(_761){return m.skewY(m._degToRad(_761));},reflect:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});},project:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});},normalize:function(_762){return (_762 instanceof m.Matrix2D)?_762:new m.Matrix2D(_762);},clone:function(_763){var obj=new m.Matrix2D();for(var i in _763){if(typeof (_763[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_763[i]){obj[i]=_763[i];}}return obj;},invert:function(_764){var M=m.normalize(_764),D=M.xx*M.yy-M.xy*M.yx,M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});return M;},_multiplyPoint:function(_765,x,y){return {x:_765.xx*x+_765.xy*y+_765.dx,y:_765.yx*x+_765.yy*y+_765.dy};},multiplyPoint:function(_766,a,b){var M=m.normalize(_766);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_767){var M=m.normalize(_767);for(var i=1;i<arguments.length;++i){var l=M,r=m.normalize(arguments[i]);M=new m.Matrix2D();M.xx=l.xx*r.xx+l.xy*r.yx;M.xy=l.xx*r.xy+l.xy*r.yy;M.yx=l.yx*r.xx+l.yy*r.yx;M.yy=l.yx*r.xy+l.yy*r.yy;M.dx=l.xx*r.dx+l.xy*r.dy+l.dx;M.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}return M;},_sandwich:function(_768,x,y){return m.multiply(m.translate(x,y),_768,m.translate(-x,-y));},scaleAt:function(a,b,c,d){switch(arguments.length){case 4:return m._sandwich(m.scale(a,b),c,d);case 3:if(typeof c=="number"){return m._sandwich(m.scale(a),b,c);}return m._sandwich(m.scale(a,b),c.x,c.y);}return m._sandwich(m.scale(a),b.x,b.y);},rotateAt:function(_769,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_769),a,b);}return m._sandwich(m.rotate(_769),a.x,a.y);},rotategAt:function(_76a,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_76a),a,b);}return m._sandwich(m.rotateg(_76a),a.x,a.y);},skewXAt:function(_76b,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_76b),a,b);}return m._sandwich(m.skewX(_76b),a.x,a.y);},skewXgAt:function(_76c,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_76c),a,b);}return m._sandwich(m.skewXg(_76c),a.x,a.y);},skewYAt:function(_76d,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_76d),a,b);}return m._sandwich(m.skewY(_76d),a.x,a.y);},skewYgAt:function(_76e,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_76e),a,b);}return m._sandwich(m.skewYg(_76e),a.x,a.y);}});})();dojox.gfx.Matrix2D=dojox.gfx.matrix.Matrix2D;}if(!dojo._hasResource["dojox.gfx._base"]){dojo._hasResource["dojox.gfx._base"]=true;dojo.provide("dojox.gfx._base");(function(){var g=dojox.gfx,b=g._base;g._hasClass=function(node,_76f){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_76f+" ")>=0;};g._addClass=function(node,_770){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_770+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_770);}};g._removeClass=function(node,_771){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_771+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _772={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},dojo.body());for(var p in _772){div.style.fontSize=p;_772[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);return _772;};var _773=null;b._getCachedFontMeasurements=function(_774){if(_774||!_773){_773=b._getFontMeasurements();}return _773;};var _775=null,_776={};b._getTextBox=function(text,_777,_778){var m,s,al=arguments.length;if(!_775){_775=dojo.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},dojo.body());}m=_775;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_777){for(var i in _777){if(i in _776){continue;}s[i]=_777[i];}}if(al>2&&_778){m.className=_778;}m.innerHTML=text;if(m["getBoundingClientRect"]){var bcr=m.getBoundingClientRect();return {l:bcr.left,t:bcr.top,w:bcr.width||(bcr.right-bcr.left),h:bcr.height||(bcr.bottom-bcr.top)};}else{return dojo.marginBox(m);}};var _779=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_779);}while(dojo.byId(id));return id;};})();dojo.mixin(dojox.gfx,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:(function(){var _77a={};return function(type){var t=_77a[type];if(t){return new t();}t=_77a[type]=new Function;t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_77b){return (_77b instanceof dojo.Color)?_77b:new dojo.Color(_77b);},normalizeParameters:function(_77c,_77d){if(_77d){var _77e={};for(var x in _77c){if(x in _77d&&!(x in _77e)){_77c[x]=_77d[x];}}}return _77c;},makeParameters:function(_77f,_780){if(!_780){return dojo.delegate(_77f);}var _781={};for(var i in _77f){if(!(i in _781)){_781[i]=dojo.clone((i in _780)?_780[i]:_77f[i]);}}return _781;},formatNumber:function(x,_782){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _783=val.indexOf(".");if(_783>=0&&val.length-_783>5){val=x.toFixed(4);}}if(x<0){return val;}return _782?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=dojox.gfx.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}font.style=t[0];font.variant=t[1];font.weight=t[2];var i=t[3].indexOf("/");font.size=i<0?t[3]:t[3].substring(0,i);var j=4;if(i<0){if(t[4]=="/"){j=6;}else{if(t[4].charAt(0)=="/"){j=5;}}}if(j<t.length){font.family=t.slice(j).join(" ");}}while(false);return font;},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return dojox.gfx._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*dojox.gfx.px_in_pt();},px2pt:function(len){return len/dojox.gfx.px_in_pt();},normalizedLength:function(len){if(len.length==0){return 0;}if(len.length>2){var _784=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_784;case "in":return val*72*_784;case "pc":return val*12*_784;case "mm":return val*dojox.gfx.mm_in_pt*_784;case "cm":return val*dojox.gfx.cm_in_pt*_784;}}return parseFloat(len);},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){return a&&b&&a==b;},switchTo:function(_785){var ns=dojox.gfx[_785];if(ns){dojo.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface"],function(name){dojox.gfx[name]=ns[name];});}}});}if(!dojo._hasResource["dojox.gfx"]){dojo._hasResource["dojox.gfx"]=true;dojo.provide("dojox.gfx");dojo.loadInit(function(){var gfx=dojo.getObject("dojox.gfx",true),sl,flag,_786;while(!gfx.renderer){if(dojo.config.forceGfxRenderer){dojox.gfx.renderer=dojo.config.forceGfxRenderer;break;}var _787=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var i=0;i<_787.length;++i){switch(_787[i]){case "svg":if("SVGAngle" in dojo.global){dojox.gfx.renderer="svg";}break;case "vml":if(dojo.isIE){dojox.gfx.renderer="vml";}break;case "silverlight":try{if(dojo.isIE){sl=new ActiveXObject("AgControl.AgControl");if(sl&&sl.IsVersionSupported("1.0")){flag=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){flag=true;}}}catch(e){flag=false;}finally{sl=null;}if(flag){dojox.gfx.renderer="silverlight";}break;case "canvas":if(dojo.global.CanvasRenderingContext2D){dojox.gfx.renderer="canvas";}break;}if(gfx.renderer){break;}}break;}if(dojo.config.isDebug){}if(gfx[gfx.renderer]){gfx.switchTo(gfx.renderer);}else{gfx.loadAndSwitch=gfx.renderer;dojo["require"]("dojox.gfx."+gfx.renderer);}});}if(!dojo._hasResource["dojox.lang.functional.lambda"]){dojo._hasResource["dojox.lang.functional.lambda"]=true;dojo.provide("dojox.lang.functional.lambda");(function(){var df=dojox.lang.functional,_788={};var _789="ab".split(/a*/).length>1?String.prototype.split:function(sep){var r=this.split.call(this,sep),m=sep.exec(this);if(m&&m.index==0){r.unshift("");}return r;};var _78a=function(s){var args=[],_78b=_789.call(s,/\s*->\s*/m);if(_78b.length>1){while(_78b.length){s=_78b.pop();args=_78b.pop().split(/\s*,\s*|\s+/m);if(_78b.length){_78b.push("(function("+args+"){return ("+s+")})");}}}else{if(s.match(/\b_\b/)){args=["_"];}else{var l=s.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),r=s.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(l||r){if(l){args.push("$1");s="$1"+s;}if(r){args.push("$2");s=s+"$2";}}else{var vars=s.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],t={};dojo.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _78c=function(a){return a.length?function(){var i=a.length-1,x=df.lambda(a[i]).apply(this,arguments);for(--i;i>=0;--i){x=df.lambda(a[i]).call(this,x);}return x;}:function(x){return x;};};dojo.mixin(df,{rawLambda:function(s){return _78a(s);},buildLambda:function(s){s=_78a(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _78c(s);}if(s in _788){return _788[s];}s=_78a(s);return _788[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_788={};}});})();}if(!dojo._hasResource["dojox.lang.functional.array"]){dojo._hasResource["dojox.lang.functional.array"]=true;dojo.provide("dojox.lang.functional.array");(function(){var d=dojo,df=dojox.lang.functional,_78d={};d.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){v=a.next();if(f.call(o,v,i++,a)){t.push(v);}}}else{for(i in a){if(!(i in _78d)){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}}}return t;},forEach:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();f.call(o,a.next(),i++,a)){}}else{for(i in a){if(!(i in _78d)){f.call(o,a[i],i,a);}}}}return o;},map:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array(n=a.length);for(i=0;i<n;t[i]=f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[];for(i=0;a.hasNext();t.push(f.call(o,a.next(),i++,a))){}}else{t=[];for(i in a){if(!(i in _78d)){t.push(f.call(o,a[i],i,a));}}}}return t;},every:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(!f.call(o,a[i],i,a)){return false;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(!f.call(o,a.next(),i++,a)){return false;}}}else{for(i in a){if(!(i in _78d)){if(!f.call(o,a[i],i,a)){return false;}}}}}return true;},some:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(f.call(o,a[i],i,a)){return true;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(f.call(o,a.next(),i++,a)){return true;}}}else{for(i in a){if(!(i in _78d)){if(f.call(o,a[i],i,a)){return true;}}}}}return false;}});})();}if(!dojo._hasResource["dojox.lang.functional.object"]){dojo._hasResource["dojox.lang.functional.object"]=true;dojo.provide("dojox.lang.functional.object");(function(){var d=dojo,df=dojox.lang.functional,_78e={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _78e)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _78e)){t.push(obj[i]);}}return t;},filterIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},v,i;for(i in obj){if(!(i in _78e)){v=obj[i];if(f.call(o,v,i,obj)){t[i]=v;}}}return t;},forIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);for(var i in obj){if(!(i in _78e)){f.call(o,obj[i],i,obj);}}return o;},mapIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},i;for(i in obj){if(!(i in _78e)){t[i]=f.call(o,obj[i],i,obj);}}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional"]){dojo._hasResource["dojox.lang.functional"]=true;dojo.provide("dojox.lang.functional");}if(!dojo._hasResource["dojox.lang.functional.fold"]){dojo._hasResource["dojox.lang.functional.fold"]=true;dojo.provide("dojox.lang.functional.fold");(function(){var d=dojo,df=dojox.lang.functional,_78f={};d.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}else{for(i in a){if(!(i in _78f)){z=f.call(o,z,a[i],i,a);}}}}return z;},foldl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var z,i,n;if(d.isArray(a)){z=a[0];for(i=1,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){z=a.next();for(i=1;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}}else{var _790=true;for(i in a){if(!(i in _78f)){if(_790){z=a[i];_790=false;}else{z=f.call(o,z,a[i],i,a);}}}}}return z;},foldr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},foldr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,z=a[n-1],i=n-1;for(;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},reduce:function(a,f,z){return arguments.length<3?df.foldl1(a,f):df.foldl(a,f,z);},reduceRight:function(a,f,z){return arguments.length<3?df.foldr1(a,f):df.foldr(a,f,z);},unfold:function(pr,f,g,z,o){o=o||d.global;f=df.lambda(f);g=df.lambda(g);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(f.call(o,z)),z=g.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional.reversed"]){dojo._hasResource["dojox.lang.functional.reversed"]=true;dojo.provide("dojox.lang.functional.reversed");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i=a.length-1;for(;i>=0;--i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}return t;},forEachRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;f.call(o,a[i],i,a),--i){}},mapRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),i=n-1,j=0;for(;i>=0;t[j++]=f.call(o,a[i],i,a),--i){}return t;},everyRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(!f.call(o,a[i],i,a)){return false;}}return true;},someRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(f.call(o,a[i],i,a)){return true;}}return false;}});})();}if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_791){this.chart=_791;this.group=null;this.htmlElements=[];this.dirty=true;this.trailingSymbol="...";this._events=[];},createGroup:function(_792){if(!_792){_792=this.chart.surface;}if(!this.group){this.group=_792.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;if(this._events.length){dojo.forEach(this._events,function(item){item.shape.disconnect(item.handle);});this._events=[];}return this;},cleanGroup:function(_793){this.destroyHtmlElements();if(!_793){_793=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_793.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();},getTextWidth:function(s,font){return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},getTextWithLimitLength:function(s,font,_794,_795){if(!s||s.length<=0){return {text:"",truncated:_795||false};}if(!_794||_794<=0){return {text:s,truncated:_795||false};}var _796=2,_797=0.618,_798=s.substring(0,1)+this.trailingSymbol,_799=this.getTextWidth(_798,font);if(_794<=_799){return {text:_798,truncated:true};}var _79a=this.getTextWidth(s,font);if(_79a<=_794){return {text:s,truncated:_795||false};}else{var _79b=0,end=s.length;while(_79b<end){if(end-_79b<=_796){while(this.getTextWidth(s.substring(0,_79b)+this.trailingSymbol,font)>_794){_79b-=1;}return {text:(s.substring(0,_79b)+this.trailingSymbol),truncated:true};}var _79c=_79b+Math.round((end-_79b)*_797),_79d=this.getTextWidth(s.substring(0,_79c),font);if(_79d<_794){_79b=_79c;end=end;}else{_79b=_79b;end=_79c;}}}},getTextWithLimitCharCount:function(s,font,_79e,_79f){if(!s||s.length<=0){return {text:"",truncated:_79f||false};}if(!_79e||_79e<=0||s.length<=_79e){return {text:s,truncated:_79f||false};}return {text:s.substring(0,_79e)+this.trailingSymbol,truncated:true};},_plotFill:function(fill,dim,_7a0){if(!fill||!fill.type||!fill.space){return fill;}var _7a1=fill.space;switch(fill.type){case "linear":if(_7a1==="plot"||_7a1==="shapeX"||_7a1==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_7a1;if(_7a1==="plot"||_7a1==="shapeX"){var span=dim.height-_7a0.t-_7a0.b;fill.y1=_7a0.t+span*fill.y1/100;fill.y2=_7a0.t+span*fill.y2/100;}if(_7a1==="plot"||_7a1==="shapeY"){var span=dim.width-_7a0.l-_7a0.r;fill.x1=_7a0.l+span*fill.x1/100;fill.x2=_7a0.l+span*fill.x2/100;}}break;case "radial":if(_7a1==="plot"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_7a1;var _7a2=dim.width-_7a0.l-_7a0.r,_7a3=dim.height-_7a0.t-_7a0.b;fill.cx=_7a0.l+_7a2*fill.cx/100;fill.cy=_7a0.t+_7a3*fill.cy/100;fill.r=fill.r*Math.sqrt(_7a2*_7a2+_7a3*_7a3)/200;}break;case "pattern":if(_7a1==="plot"||_7a1==="shapeX"||_7a1==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_7a1;if(_7a1==="plot"||_7a1==="shapeX"){var span=dim.height-_7a0.t-_7a0.b;fill.y=_7a0.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_7a1==="plot"||_7a1==="shapeY"){var span=dim.width-_7a0.l-_7a0.r;fill.x=_7a0.l+span*fill.x/100;fill.width=span*fill.width/100;}}break;}return fill;},_shapeFill:function(fill,bbox){if(!fill||!fill.space){return fill;}var _7a4=fill.space;switch(fill.type){case "linear":if(_7a4==="shape"||_7a4==="shapeX"||_7a4==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_7a4;if(_7a4==="shape"||_7a4==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_7a4==="shape"||_7a4==="shapeY"){var span=bbox.height;fill.y1=bbox.y+span*fill.y1/100;fill.y2=bbox.y+span*fill.y2/100;}}break;case "radial":if(_7a4==="shape"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_7a4;fill.cx=bbox.x+bbox.width/2;fill.cy=bbox.y+bbox.height/2;fill.r=fill.r*bbox.width/200;}break;case "pattern":if(_7a4==="shape"||_7a4==="shapeX"||_7a4==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_7a4;if(_7a4==="shape"||_7a4==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_7a4==="shape"||_7a4==="shapeY"){var span=bbox.height;fill.y=bbox.y+span*fill.y/100;fill.height=span*fill.height/100;}}break;}return fill;},_pseudoRadialFill:function(fill,_7a5,_7a6,_7a7,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _7a8=fill.space;fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_7a8;if(arguments.length<4){fill.cx=_7a5.x;fill.cy=_7a5.y;fill.r=fill.r*_7a6/100;return fill;}var _7a9=arguments.length<5?_7a7:(end+_7a7)/2;return {type:"linear",x1:_7a5.x,y1:_7a5.y,x2:_7a5.x+fill.r*_7a6*Math.cos(_7a9)/100,y2:_7a5.y+fill.r*_7a6*Math.sin(_7a9)/100,colors:fill.colors};return fill;}});}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");dojo.getObject("colors",true,dojo);(function(){var _7aa=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_7ab,obj){var m=_7ab.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_7aa(m1,m2,H+1/3)*256,_7aa(m1,m2,H)*256,_7aa(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _7ac=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_7ac(t.r,0,255));t.g=Math.round(_7ac(t.g,0,255));t.b=Math.round(_7ac(t.b,0,255));t.a=_7ac(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojox.color._base"]){dojo._hasResource["dojox.color._base"]=true;dojo.provide("dojox.color._base");dojox.color.Color=dojo.Color;dojox.color.blend=dojo.blendColors;dojox.color.fromRgb=dojo.colorFromRgb;dojox.color.fromHex=dojo.colorFromHex;dojox.color.fromArray=dojo.colorFromArray;dojox.color.fromString=dojo.colorFromString;dojox.color.greyscale=dojo.colors.makeGrey;dojo.mixin(dojox.color,{fromCmy:function(cyan,_7ad,_7ae){if(dojo.isArray(cyan)){_7ad=cyan[1],_7ae=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_7ad=cyan.m,_7ae=cyan.y,cyan=cyan.c;}}cyan/=100,_7ad/=100,_7ae/=100;var r=1-cyan,g=1-_7ad,b=1-_7ae;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_7af,_7b0,_7b1){if(dojo.isArray(cyan)){_7af=cyan[1],_7b0=cyan[2],_7b1=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_7af=cyan.m,_7b0=cyan.y,_7b1=cyan.b,cyan=cyan.c;}}cyan/=100,_7af/=100,_7b0/=100,_7b1/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_7b1)+_7b1);g=1-Math.min(1,_7af*(1-_7b1)+_7b1);b=1-Math.min(1,_7b0*(1-_7b1)+_7b1);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_7b2,_7b3){if(dojo.isArray(hue)){_7b2=hue[1],_7b3=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_7b2=hue.s,_7b3=hue.l,hue=hue.h;}}_7b2/=100;_7b3/=100;while(hue<0){hue+=360;}while(hue>=360){hue-=360;}var r,g,b;if(hue<120){r=(120-hue)/60,g=hue/60,b=0;}else{if(hue<240){r=0,g=(240-hue)/60,b=(hue-120)/60;}else{r=(hue-240)/60,g=0,b=(360-hue)/60;}}r=2*_7b2*Math.min(r,1)+(1-_7b2);g=2*_7b2*Math.min(g,1)+(1-_7b2);b=2*_7b2*Math.min(b,1)+(1-_7b2);if(_7b3<0.5){r*=_7b3,g*=_7b3,b*=_7b3;}else{r=(1-_7b3)*r+2*_7b3-1;g=(1-_7b3)*g+2*_7b3-1;b=(1-_7b3)*b+2*_7b3-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_7b4,_7b5){if(dojo.isArray(hue)){_7b4=hue[1],_7b5=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_7b4=hue.s,_7b5=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_7b4/=100;_7b5/=100;var r,g,b;if(_7b4==0){r=_7b5,b=_7b5,g=_7b5;}else{var _7b6=hue/60,i=Math.floor(_7b6),f=_7b6-i;var p=_7b5*(1-_7b4);var q=_7b5*(1-(_7b4*f));var t=_7b5*(1-(_7b4*(1-f)));switch(i){case 0:r=_7b5,g=t,b=p;break;case 1:r=q,g=_7b5,b=p;break;case 2:r=p,g=_7b5,b=t;break;case 3:r=p,g=q,b=_7b5;break;case 4:r=t,g=p,b=_7b5;break;case 5:r=_7b5,g=p,b=q;break;}}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});dojo.extend(dojox.color.Color,{toCmy:function(){var cyan=1-(this.r/255),_7b7=1-(this.g/255),_7b8=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_7b7*100),y:Math.round(_7b8*100)};},toCmyk:function(){var cyan,_7b9,_7ba,_7bb;var r=this.r/255,g=this.g/255,b=this.b/255;_7bb=Math.min(1-r,1-g,1-b);cyan=(1-r-_7bb)/(1-_7bb);_7b9=(1-g-_7bb)/(1-_7bb);_7ba=(1-b-_7bb)/(1-_7bb);return {c:Math.round(cyan*100),m:Math.round(_7b9*100),y:Math.round(_7ba*100),b:Math.round(_7bb*100)};},toHsl:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _7bc=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_7bc/((l<0.5)?(2*l):(2-2*l));}if(_7bc>0){if(max==r&&max!=g){h+=(g-b)/_7bc;}if(max==g&&max!=b){h+=(2+(b-r)/_7bc);}if(max==b&&max!=r){h+=(4+(r-g)/_7bc);}h*=60;}return {h:h,s:Math.round(s*100),l:Math.round(l*100)};},toHsv:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _7bd=max-min;var h=null,s=(max==0)?0:(_7bd/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_7bd;}else{if(g==max){h=120+60*(b-r)/_7bd;}else{h=240+60*(r-g)/_7bd;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});}if(!dojo._hasResource["dojox.color"]){dojo._hasResource["dojox.color"]=true;dojo.provide("dojox.color");}if(!dojo._hasResource["dojox.color.Palette"]){dojo._hasResource["dojox.color.Palette"]=true;dojo.provide("dojox.color.Palette");(function(){var dxc=dojox.color;dxc.Palette=function(base){this.colors=[];if(base instanceof dojox.color.Palette){this.colors=base.colors.slice(0);}else{if(base instanceof dojox.color.Color){this.colors=[null,null,base,null,null];}else{if(dojo.isArray(base)){this.colors=dojo.map(base.slice(0),function(item){if(dojo.isString(item)){return new dojox.color.Color(item);}return item;});}else{if(dojo.isString(base)){this.colors=[null,null,new dojox.color.Color(base),null,null];}}}}};function _7be(p,_7bf,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_7bf=="dr")?item.r+val:item.r,g=(_7bf=="dg")?item.g+val:item.g,b=(_7bf=="db")?item.b+val:item.b,a=(_7bf=="da")?item.a+val:item.a;ret.colors.push(new dojox.color.Color({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,g)),b:Math.min(255,Math.max(0,b)),a:Math.min(1,Math.max(0,a))}));});return ret;};function tCMY(p,_7c0,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_7c0=="dc")?o.c+val:o.c,m=(_7c0=="dm")?o.m+val:o.m,y=(_7c0=="dy")?o.y+val:o.y;ret.colors.push(dojox.color.fromCmy(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y))));});return ret;};function _7c1(p,_7c2,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_7c2=="dc")?o.c+val:o.c,m=(_7c2=="dm")?o.m+val:o.m,y=(_7c2=="dy")?o.y+val:o.y,k=(_7c2=="dk")?o.b+val:o.b;ret.colors.push(dojox.color.fromCmyk(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y)),Math.min(100,Math.max(0,k))));});return ret;};function tHSL(p,_7c3,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_7c3=="dh")?o.h+val:o.h,s=(_7c3=="ds")?o.s+val:o.s,l=(_7c3=="dl")?o.l+val:o.l;ret.colors.push(dojox.color.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_7c4,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_7c4=="dh")?o.h+val:o.h,s=(_7c4=="ds")?o.s+val:o.s,v=(_7c4=="dv")?o.v+val:o.v;ret.colors.push(dojox.color.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _7c5(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_7c6){var fn=_7be;if(_7c6.use){var use=_7c6.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=tHSL;}else{fn=tHSV;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_7c1;}else{fn=tCMY;}}}}else{if("dc" in _7c6||"dm" in _7c6||"dy" in _7c6){if("dk" in _7c6){fn=_7c1;}else{fn=tCMY;}}else{if("dh" in _7c6||"ds" in _7c6){if("dv" in _7c6){fn=tHSV;}else{fn=tHSL;}}}}var _7c7=this;for(var p in _7c6){if(p=="use"){continue;}_7c7=fn(_7c7,p,_7c6[p]);}return _7c7;},clone:function(){return new dxc.Palette(this);}});dojo.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h=[(hsv.h+low+360)%360,(hsv.h+Math.round(low/2)+360)%360,hsv.h,(hsv.h-Math.round(high/2)+360)%360,(hsv.h-high+360)%360];var s1=Math.max(10,(hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),s2=(hsv.s>1)?hsv.s-1:21-hsv.s,v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9,20),v2=(hsv.v<=90)?Math.max(hsv.v+5,20):(95+Math.ceil((hsv.v-90)/2)),s=[s1,s2,hsv.s,s1,s1],v=[v1,v2,hsv.v,v1,v2];return new dxc.Palette(dojo.map(h,function(hue,i){return dojox.color.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_7c5(hsv.v,20,100),v2=(hsv.v-20>20)?hsv.v-20:hsv.v+60,v3=(hsv.v-50>20)?hsv.v-50:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v3),base,dojox.color.fromHsv(hsv.h,s1,v3),dojox.color.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=(hsv.h+57+360)%360,h2=(hsv.h-157+360)%360,s1=(hsv.s>20)?hsv.s-10:hsv.s+10,s2=(hsv.s>90)?hsv.s-10:hsv.s+10,s3=(hsv.s>95)?hsv.s-5:hsv.s+5,v1=(hsv.v-20>20)?hsv.v-20:hsv.v+20,v2=(hsv.v-30>20)?hsv.v-30:hsv.v+30,v3=(hsv.v-30>70)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,hsv.v),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h2,s2,v1),dojox.color.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,s1=Math.max(hsv.s-10,0),s2=_7c5(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h1,s3,v2),dojox.color.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,_7c8=args.da||30,hsv=base.toHsv();var _7c9=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_7c9-_7c8+360)%360,h2=(_7c9+_7c8)%360,s1=Math.max(hsv.s-10,0),s2=_7c5(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v2),dojox.color.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,h2=((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,h3=((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,s1=(hsv.s-40>10)?hsv.s-40:hsv.s+40,s2=(hsv.s-10>80)?hsv.s-10:hsv.s+10,s3=(hsv.s-25>10)?hsv.s-25:hsv.s+25,v1=(hsv.v-40>10)?hsv.v-40:hsv.v+40,v2=(hsv.v-20>80)?hsv.v-20:hsv.v+20,v3=Math.max(hsv.v,20);return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v3),dojox.color.fromHsv(h3,s2,v2)]);},shades:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s=(hsv.s==100&&hsv.v==0)?0:hsv.s,v1=(hsv.v-50>20)?hsv.v-50:hsv.v+30,v2=(hsv.v-25>=20)?hsv.v-25:hsv.v+55,v3=(hsv.v-75>=20)?hsv.v-75:hsv.v+5,v4=Math.max(hsv.v-10,20);return new dxc.Palette([new dojox.color.fromHsv(hsv.h,s,v1),new dojox.color.fromHsv(hsv.h,s,v2),base,new dojox.color.fromHsv(hsv.h,s,v3),new dojox.color.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(dojo.isFunction(type)){return type({base:base});}else{if(dxc.Palette.generators[type]){return dxc.Palette.generators[type]({base:base});}}throw new Error("dojox.color.Palette.generate: the specified generator ('"+type+"') does not exist.");}});})();}if(!dojo._hasResource["dojox.lang.utils"]){dojo._hasResource["dojox.lang.utils"]=true;dojo.provide("dojox.lang.utils");(function(){var _7ca={},du=dojox.lang.utils,opts=Object.prototype.toString;var _7cb=function(o){if(o){switch(opts.call(o)){case "[object Array]":return o.slice(0);case "[object Object]":return dojo.delegate(o);}}return o;};dojo.mixin(du,{coerceType:function(_7cc,_7cd){switch(typeof _7cc){case "number":return Number(eval("("+_7cd+")"));case "string":return String(_7cd);case "boolean":return Boolean(eval("("+_7cd+")"));}return eval("("+_7cd+")");},updateWithObject:function(_7ce,_7cf,conv){if(!_7cf){return _7ce;}for(var x in _7ce){if(x in _7cf&&!(x in _7ca)){var t=_7ce[x];if(t&&typeof t=="object"){du.updateWithObject(t,_7cf[x],conv);}else{_7ce[x]=conv?du.coerceType(t,_7cf[x]):_7cb(_7cf[x]);}}}return _7ce;},updateWithPattern:function(_7d0,_7d1,_7d2,conv){if(!_7d1||!_7d2){return _7d0;}for(var x in _7d2){if(x in _7d1&&!(x in _7ca)){_7d0[x]=conv?du.coerceType(_7d2[x],_7d1[x]):_7cb(_7d1[x]);}}return _7d0;},merge:function(_7d3,_7d4){if(_7d4){var _7d5=opts.call(_7d3),_7d6=opts.call(_7d4),t,i,l,m;switch(_7d6){case "[object Array]":if(_7d6==_7d5){t=new Array(Math.max(_7d3.length,_7d4.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_7d3[i],_7d4[i]);}return t;}return _7d4.slice(0);case "[object Object]":if(_7d6==_7d5&&_7d3){t=dojo.delegate(_7d3);for(i in _7d4){if(i in _7d3){l=_7d3[i];m=_7d4[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=dojo.clone(_7d4[i]);}}return t;}return dojo.clone(_7d4);}}return _7d4;}});})();}if(!dojo._hasResource["dojox.gfx.gradutils"]){dojo._hasResource["dojox.gfx.gradutils"]=true;dojo.provide("dojox.gfx.gradutils");(function(){var d=dojo,m=dojox.gfx.matrix,C=d.Color;function _7d7(o,c){if(o<=0){return c[0].color;}var len=c.length;if(o>=1){return c[len-1].color;}for(var i=0;i<len;++i){var stop=c[i];if(stop.offset>=o){if(i){var prev=c[i-1];return d.blendColors(new C(prev.color),new C(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};dojox.gfx.gradutils.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _7d8=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_7d9=m.rotate(-_7d8),_7da=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_7da,pt),pf1=m.multiplyPoint(_7da,fill.x1,fill.y1),pf2=m.multiplyPoint(_7da,fill.x2,fill.y2),_7db=m.multiplyPoint(_7d9,pf2.x-pf1.x,pf2.y-pf1.y).x,o=m.multiplyPoint(_7d9,p.x-pf1.x,p.y-pf1.y).x/_7db;break;case "radial":var dx=pt.x-fill.cx,dy=pt.y-fill.cy,o=Math.sqrt(dx*dx+dy*dy)/fill.r;break;}return _7d7(o,fill.colors);}return new C(fill||[0,0,0,0]);};dojox.gfx.gradutils.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=dojo.delegate(fill);if(fill.colors){var c=fill.colors,l=c.length,i=0,stop,n=fill.colors=new Array(c.length);for(;i<l;++i){stop=c[i];n[i]={offset:1-stop.offset,color:stop.color};}n.sort(function(a,b){return a.offset-b.offset;});}break;}}return fill;};})();}if(!dojo._hasResource["dojox.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");dojo.declare("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_7dc){_7dc=_7dc||{};var def=dojox.charting.Theme.defaultTheme;dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){this[name]=dojo.delegate(def[name],_7dc[name]);},this);if(_7dc.seriesThemes&&_7dc.seriesThemes.length){this.colors=null;this.seriesThemes=_7dc.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_7dc.colors||dojox.charting.Theme.defaultColors).slice(0);}this.markerThemes=null;if(_7dc.markerThemes&&_7dc.markerThemes.length){this.markerThemes=_7dc.markerThemes.slice(0);}this.markers=_7dc.markers?dojo.clone(_7dc.markers):dojo.delegate(dojox.charting.Theme.defaultMarkers);this.noGradConv=_7dc.noGradConv;this.noRadialConv=_7dc.noRadialConv;if(_7dc.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _7dd=new dojox.charting.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});dojo.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_7dd[name]=this[name];}},this);return _7dd;},clear:function(){this._current=0;},next:function(_7de,_7df,_7e0){var _7e1=dojox.lang.utils.merge,_7e2,_7e3;if(this.colors){_7e2=dojo.delegate(this.series);_7e3=dojo.delegate(this.marker);var _7e4=new dojo.Color(this.colors[this._current%this.colors.length]),old;if(_7e2.stroke&&_7e2.stroke.color){_7e2.stroke=dojo.delegate(_7e2.stroke);old=new dojo.Color(_7e2.stroke.color);_7e2.stroke.color=new dojo.Color(_7e4);_7e2.stroke.color.a=old.a;}else{_7e2.stroke={color:_7e4};}if(_7e3.stroke&&_7e3.stroke.color){_7e3.stroke=dojo.delegate(_7e3.stroke);old=new dojo.Color(_7e3.stroke.color);_7e3.stroke.color=new dojo.Color(_7e4);_7e3.stroke.color.a=old.a;}else{_7e3.stroke={color:_7e4};}if(!_7e2.fill||_7e2.fill.type){_7e2.fill=_7e4;}else{old=new dojo.Color(_7e2.fill);_7e2.fill=new dojo.Color(_7e4);_7e2.fill.a=old.a;}if(!_7e3.fill||_7e3.fill.type){_7e3.fill=_7e4;}else{old=new dojo.Color(_7e3.fill);_7e3.fill=new dojo.Color(_7e4);_7e3.fill.a=old.a;}}else{_7e2=this.seriesThemes?_7e1(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_7e3=this.markerThemes?_7e1(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_7e2;}var _7e5=_7e3&&_7e3.symbol||this._markers[this._current%this._markers.length];var _7e6={series:_7e2,marker:_7e3,symbol:_7e5};++this._current;if(_7df){_7e6=this.addMixin(_7e6,_7de,_7df);}if(_7e0){_7e6=this.post(_7e6,_7de);}return _7e6;},skip:function(){++this._current;},addMixin:function(_7e7,_7e8,_7e9,_7ea){if(dojo.isArray(_7e9)){dojo.forEach(_7e9,function(m){_7e7=this.addMixin(_7e7,_7e8,m);},this);}else{var t={};if("color" in _7e9){if(_7e8=="line"||_7e8=="area"){dojo.setObject("series.stroke.color",_7e9.color,t);dojo.setObject("marker.stroke.color",_7e9.color,t);}else{dojo.setObject("series.fill",_7e9.color,t);}}dojo.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _7eb="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_7eb in _7e9;if(name in _7e9){dojo.setObject("series."+name,_7e9[name],t);if(!b){dojo.setObject("marker."+name,_7e9[name],t);}}if(b){dojo.setObject("marker."+name,_7e9[_7eb],t);}});if("marker" in _7e9){t.symbol=_7e9.marker;}_7e7=dojox.lang.utils.merge(_7e7,t);}if(_7ea){_7e7=this.post(_7e7,_7e8);}return _7e7;},post:function(_7ec,_7ed){var fill=_7ec.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_7ed=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_7ed=="slice"||_7ed=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dojox.lang.utils.merge(_7ec,{series:{fill:t}});}}return _7ec;},getTick:function(name,_7ee){var tick=this.axis.tick,_7ef=name+"Tick";merge=dojox.lang.utils.merge;if(tick){if(this.axis[_7ef]){tick=merge(tick,this.axis[_7ef]);}}else{tick=this.axis[_7ef];}if(_7ee){if(tick){if(_7ee[_7ef]){tick=merge(tick,_7ee[_7ef]);}}else{tick=_7ee[_7ef];}}return tick;},inspectObjects:function(f){dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){f(this[name]);},this);if(this.seriesThemes){dojo.forEach(this.seriesThemes,f);}if(this.markerThemes){dojo.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dojox.gfx.gradutils.reverse(o.fill);}});},addMarker:function(name,_7f0){this.markers[name]=_7f0;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}}});dojo.mixin(dojox.charting.Theme,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",titleGap:15,titleFont:"normal normal normal 11pt Tahoma",titleFontColor:"#333",titleOrientation:"axis"},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"}},defineColors:function(_7f1){_7f1=_7f1||{};var c=[],n=_7f1.num||5;if(_7f1.colors){var l=_7f1.colors.length;for(var i=0;i<n;i++){c.push(_7f1.colors[i%l]);}return c;}if(_7f1.hue){var s=_7f1.saturation||100;var st=_7f1.low||30;var end=_7f1.high||90;var l=(end+st)/2;return dojox.color.Palette.generate(dojox.color.fromHsv(_7f1.hue,s,l),"monochromatic").colors;}if(_7f1.generator){return dojox.color.Palette.generate(_7f1.base,_7f1.generator).colors;}return c;},generateGradient:function(_7f2,_7f3,_7f4){var fill=dojo.delegate(_7f2);fill.colors=[{offset:0,color:_7f3},{offset:1,color:_7f4}];return fill;},generateHslColor:function(_7f5,_7f6){_7f5=new dojox.color.Color(_7f5);var hsl=_7f5.toHsl(),_7f7=dojox.color.fromHsl(hsl.h,hsl.s,_7f6);_7f7.a=_7f5.a;return _7f7;},generateHslGradient:function(_7f8,_7f9,_7fa,_7fb){_7f8=new dojox.color.Color(_7f8);var hsl=_7f8.toHsl(),_7fc=dojox.color.fromHsl(hsl.h,hsl.s,_7fa),_7fd=dojox.color.fromHsl(hsl.h,hsl.s,_7fb);_7fc.a=_7fd.a=_7f8.a;return dojox.charting.Theme.generateGradient(_7f9,_7fc,_7fd);}});}if(!dojo._hasResource["dojox.charting.Series"]){dojo._hasResource["dojox.charting.Series"]=true;dojo.provide("dojox.charting.Series");dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_7fe,data,_7ff){dojo.mixin(this,_7ff);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(dojo.isArray(data)){this.data=data;}else{this.source=data;this.data=this.source.data;if(this.source.setSeriesObject){this.source.setSeriesObject(this);}}this.dirty=true;this.clear();}});}if(!dojo._hasResource["dojox.charting.axis2d.common"]){dojo._hasResource["dojox.charting.axis2d.common"]=true;dojo.provide("dojox.charting.axis2d.common");(function(){var g=dojox.gfx;var _800=function(s){s.marginLeft="0px";s.marginTop="0px";s.marginRight="0px";s.marginBottom="0px";s.paddingLeft="0px";s.paddingTop="0px";s.paddingRight="0px";s.paddingBottom="0px";s.borderLeftWidth="0px";s.borderTopWidth="0px";s.borderRightWidth="0px";s.borderBottomWidth="0px";};var _801=function(n){if(n["getBoundingClientRect"]){var bcr=n.getBoundingClientRect();return bcr.width||(bcr.right-bcr.left);}else{return dojo.marginBox(n).w;}};dojo.mixin(dojox.charting.axis2d.common,{createText:{gfx:function(_802,_803,x,y,_804,text,font,_805){return _803.createText({x:x,y:y,text:text,align:_804}).setFont(font).setFill(_805);},html:function(_806,_807,x,y,_808,text,font,_809,_80a){var p=dojo.doc.createElement("div"),s=p.style,_80b;_800(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_809;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_80a){_80b=_801(p);}dojo.body().removeChild(p);s.position="relative";if(_80a){s.width=_80a+"px";switch(_808){case "middle":s.textAlign="center";s.left=(x-_80a/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_80a)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_808){case "middle":s.left=Math.floor(x-_80b/2)+"px";break;case "end":s.left=Math.floor(x-_80b)+"px";break;default:s.left=Math.floor(x)+"px";break;}}s.top=Math.floor(y-size)+"px";s.whiteSpace="nowrap";var wrap=dojo.doc.createElement("div"),w=wrap.style;_800(w);w.width="0px";w.height="0px";wrap.appendChild(p);_806.node.insertBefore(wrap,_806.node.firstChild);return wrap;}}});})();}if(!dojo._hasResource["dojox.charting.Chart"]){dojo._hasResource["dojox.charting.Chart"]=true;dojo.provide("dojox.charting.Chart");(function(){var df=dojox.lang.functional,dc=dojox.charting,g=dojox.gfx,_80c=df.lambda("item.clear()"),_80d=df.lambda("item.purgeGroup()"),_80e=df.lambda("item.destroy()"),_80f=df.lambda("item.dirty = false"),_810=df.lambda("item.dirty = true"),_811=df.lambda("item.name");dojo.declare("dojox.charting.Chart",null,{constructor:function(node,_812){if(!_812){_812={};}this.margins=_812.margins?_812.margins:{l:10,t:10,r:10,b:10};this.stroke=_812.stroke;this.fill=_812.fill;this.delayInMs=_812.delayInMs||200;this.title=_812.title;this.titleGap=_812.titleGap;this.titlePos=_812.titlePos;this.titleFont=_812.titleFont;this.titleFontColor=_812.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this.node=dojo.byId(node);var box=dojo.marginBox(node);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){dojo.forEach(this.series,_80e);dojo.forEach(this.stack,_80e);df.forIn(this.axes,_80e);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.destroy();},getCoords:function(){if(!this.coords){this.coords=dojo.coords(this.node,true);}return this.coords;},setTheme:function(_813){this.theme=_813.clone();this.dirty=true;return this;},addAxis:function(name,_814){var axis,_815=_814&&_814.type||"Default";if(typeof _815=="string"){if(!dc.axis2d||!dc.axis2d[_815]){throw Error("Can't find axis: "+_815+" - didn't you forget to dojo"+".require() it?");}axis=new dc.axis2d[_815](this,_814);}else{axis=new _815(this,_814);}axis.name=name;axis.dirty=true;if(name in this.axes){this.axes[name].destroy();}this.axes[name]=axis;this.dirty=true;return this;},getAxis:function(name){return this.axes[name];},removeAxis:function(name){if(name in this.axes){this.axes[name].destroy();delete this.axes[name];this.dirty=true;}return this;},addPlot:function(name,_816){var plot,_817=_816&&_816.type||"Default";if(typeof _817=="string"){if(!dc.plot2d||!dc.plot2d[_817]){throw Error("Can't find plot: "+_817+" - didn't you forget to dojo"+".require() it?");}plot=new dc.plot2d[_817](this,_816);}else{plot=new _817(this,_816);}plot.name=name;plot.dirty=true;if(name in this.plots){this.stack[this.plots[name]].destroy();this.stack[this.plots[name]]=plot;}else{this.plots[name]=this.stack.length;this.stack.push(plot);}this.dirty=true;return this;},removePlot:function(name){if(name in this.plots){var _818=this.plots[name];delete this.plots[name];this.stack[_818].destroy();this.stack.splice(_818,1);df.forIn(this.plots,function(idx,name,_819){if(idx>_818){_819[name]=idx-1;}});var ns=dojo.filter(this.series,function(run){return run.plot!=name;});if(ns.length<this.series.length){dojo.forEach(this.series,function(run){if(run.plot==name){run.destroy();}});this.runs={};dojo.forEach(ns,function(run,_81a){this.runs[run.plot]=_81a;},this);this.series=ns;}this.dirty=true;}return this;},getPlotOrder:function(){return df.map(this.stack,_811);},setPlotOrder:function(_81b){var _81c={},_81d=df.filter(_81b,function(name){if(!(name in this.plots)||(name in _81c)){return false;}_81c[name]=1;return true;},this);if(_81d.length<this.stack.length){df.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _81c)){_81d.push(name);}});}var _81e=df.map(_81d,function(name){return this.stack[this.plots[name]];},this);df.forEach(_81e,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_81e;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _81f=this.plots[name];if(_81f){var _820=this.getPlotOrder();_820.splice(_81f,1);_820.unshift(name);return this.setPlotOrder(_820);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _821=this.plots[name];if(_821<this.stack.length-1){var _822=this.getPlotOrder();_822.splice(_821,1);_822.push(name);return this.setPlotOrder(_822);}}return this;},addSeries:function(name,data,_823){var run=new dc.Series(this,data,_823);run.name=name;if(name in this.runs){this.series[this.runs[name]].destroy();this.series[this.runs[name]]=run;}else{this.runs[name]=this.series.length;this.series.push(run);}this.dirty=true;if(!("ymin" in run)&&"min" in run){run.ymin=run.min;}if(!("ymax" in run)&&"max" in run){run.ymax=run.max;}return this;},removeSeries:function(name){if(name in this.runs){var _824=this.runs[name];delete this.runs[name];this.series[_824].destroy();this.series.splice(_824,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_824){runs[name]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(name,data){if(name in this.runs){var run=this.series[this.runs[name]];run.update(data);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_825){return df.map(df.filter(this.series,function(run){return run.plot==_825;}),_811);},setSeriesOrder:function(_826){var _827,_828={},_829=df.filter(_826,function(name){if(!(name in this.runs)||(name in _828)){return false;}var run=this.series[this.runs[name]];if(_827){if(run.plot!=_827){return false;}}else{_827=run.plot;}_828[name]=1;return true;},this);df.forEach(this.series,function(run){var name=run.name;if(!(name in _828)&&run.plot==_827){_829.push(name);}});var _82a=df.map(_829,function(name){return this.series[this.runs[name]];},this);this.series=_82a.concat(df.filter(this.series,function(run){return run.plot!=_827;}));df.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(name){if(name in this.runs){var _82b=this.runs[name],_82c=this.getSeriesOrder(this.series[_82b].plot);if(name!=_82c[0]){_82c.splice(_82b,1);_82c.unshift(name);return this.setSeriesOrder(_82c);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _82d=this.runs[name],_82e=this.getSeriesOrder(this.series[_82d].plot);if(name!=_82e[_82e.length-1]){_82e.splice(_82d,1);_82e.push(name);return this.setSeriesOrder(_82e);}}return this;},resize:function(_82f,_830){var box;switch(arguments.length){case 1:box=dojo.mixin({},_82f);dojo.marginBox(this.node,box);break;case 2:box={w:_82f,h:_830};dojo.marginBox(this.node,box);break;}box=dojo.marginBox(this.node);this.surface.setDimensions(box.w,box.h);this.dirty=true;this.coords=null;return this.render();},getGeometry:function(){var ret={};df.forIn(this.axes,function(axis){if(axis.initialized()){ret[axis.name]={name:axis.name,vertical:axis.vertical,scaler:axis.scaler,ticks:axis.ticks};}});return ret;},setAxisWindow:function(name,_831,_832,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_831,_832);dojo.forEach(this.stack,function(plot){if(plot.hAxis==name||plot.vAxis==name){plot.zoom=zoom;}});}return this;},setWindow:function(sx,sy,dx,dy,zoom){if(!("plotArea" in this)){this.calculateGeometry();}df.forIn(this.axes,function(axis){var _833,_834,_835=axis.getScaler().bounds,s=_835.span/(_835.upper-_835.lower);if(axis.vertical){_833=sy;_834=dy/s/_833;}else{_833=sx;_834=dx/s/_833;}axis.setWindow(_833,_834);});dojo.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_836){var axis=this.axes[name];if(axis){var _837,_838,_839=axis.getScaler().bounds;var _83a=Math.min(_836[0],_836[1]);var _83b=Math.max(_836[0],_836[1]);_83a=_836[0]<_839.lower?_839.lower:_83a;_83b=_836[1]>_839.upper?_839.upper:_83b;_837=(_839.upper-_839.lower)/(_83b-_83a);_838=_83a-_839.lower;this.setAxisWindow(name,_837,_838);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _83c=dojo.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_83d(_83c,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_80c);if(!this.theme){this.setTheme(new dojox.charting.Theme(dojox.charting._def));}dojo.forEach(this.series,function(run){if(!(run.plot in this.plots)){if(!dc.plot2d||!dc.plot2d.Default){throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");}var plot=new dc.plot2d.Default(this,{});plot.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(plot);}this.stack[this.plots[run.plot]].addSeries(run);},this);dojo.forEach(this.stack,function(plot){if(plot.hAxis){plot.setAxis(this.axes[plot.hAxis]);}if(plot.vAxis){plot.setAxis(this.axes[plot.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);df.forIn(this.axes,_80c);_83d(this.stack,dim);var _83e=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_83e[i]+=o;});});if(this.title){this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var _83f=g.normalizedLength(g.splitFontString(this.titleFont).size);_83e[this.titlePos=="top"?"t":"b"]+=(_83f+this.titleGap);}df.forIn(this.margins,function(o,i){_83e[i]+=o;});this.plotArea={width:dim.width-_83e.l-_83e.r,height:dim.height-_83e.t-_83e.b};df.forIn(this.axes,_80c);_83d(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();df.forEachRev(this.stack,function(plot){plot.render(this.dim,this.offsets);},this);df.forIn(this.axes,function(axis){axis.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _840=this.offsets,dim=this.dim,rect;dojo.forEach(this.series,_80d);df.forIn(this.axes,_80d);dojo.forEach(this.stack,_80d);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_841=t.plotarea&&t.plotarea.stroke,rect={x:_840.l-1,y:_840.t-1,width:dim.width-_840.l-_840.r+2,height:dim.height-_840.t-_840.b+2};if(fill){fill=dc.Element.prototype._shapeFill(dc.Element.prototype._plotFill(fill,dim,_840),rect);this.surface.createRect(rect).setFill(fill);}if(_841){this.surface.createRect({x:_840.l,y:_840.t,width:dim.width-_840.l-_840.r+1,height:dim.height-_840.t-_840.b+1}).setStroke(_841);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_840),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_841=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(fill=="inherit"){var node=this.node,fill=new dojo.Color(dojo.style(node,"backgroundColor"));while(fill.a==0&&node!=document.documentElement){fill=new dojo.Color(dojo.style(node,"backgroundColor"));node=node.parentNode;}}if(fill){fill=dc.Element.prototype._plotFill(fill,dim,_840);if(_840.l){rect={width:_840.l,height:dim.height+1};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_840.r){rect={x:dim.width-_840.r,width:_840.r+1,height:dim.height+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_840.t){rect={width:dim.width+1,height:_840.t};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_840.b){rect={y:dim.height-_840.b,width:dim.width+1,height:_840.b+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}}if(_841){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_841);}if(this.title){var _842=(g.renderer=="canvas"),_843=_842||!dojo.isIE&&!dojo.isOpera?"html":"gfx",_844=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=dc.axis2d.common.createText[_843](this,this.surface,dim.width/2,this.titlePos=="top"?_844+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}df.forIn(this.axes,function(axis){axis.render(dim,_840);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(dojo.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(name,_845,_846){return name in this.plots?this.stack[this.plots[name]].connect(_845,_846):null;},fireEvent:function(_847,_848,_849){if(_847 in this.runs){var _84a=this.series[this.runs[_847]].plot;if(_84a in this.plots){var plot=this.stack[this.plots[_84a]];if(plot){plot.fireEvent(_847,_848,_849);}}}return this;},_makeClean:function(){dojo.forEach(this.axes,_80f);dojo.forEach(this.stack,_80f);dojo.forEach(this.series,_80f);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_810);dojo.forEach(this.stack,_810);dojo.forEach(this.series,_810);this.dirty=true;},_invalidateDependentPlots:function(_84b,_84c){if(_84b in this.plots){var plot=this.stack[this.plots[_84b]],axis,_84d=_84c?"vAxis":"hAxis";if(plot[_84d]){axis=this.axes[plot[_84d]];if(axis&&axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_84d]&&p[_84d]==plot[_84d]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _84e(_84f){return {min:_84f.hmin,max:_84f.hmax};};function _850(_851){return {min:_851.vmin,max:_851.vmax};};function _852(_853,h){_853.hmin=h.min;_853.hmax=h.max;};function _854(_855,v){_855.vmin=v.min;_855.vmax=v.max;};function _856(_857,_858){if(_857&&_858){_857.min=Math.min(_857.min,_858.min);_857.max=Math.max(_857.max,_858.max);}return _857||_858;};function _83d(_859,_85a){var _85b={},axes={};dojo.forEach(_859,function(plot){var _85c=_85b[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_856(axes[plot.hAxis],_84e(_85c));}if(plot.vAxis){axes[plot.vAxis]=_856(axes[plot.vAxis],_850(_85c));}});dojo.forEach(_859,function(plot){var _85d=_85b[plot.name];if(plot.hAxis){_852(_85d,axes[plot.hAxis]);}if(plot.vAxis){_854(_85d,axes[plot.vAxis]);}plot.initializeScalers(_85a,_85d);});};})();}if(!dojo._hasResource["dojox.charting.widget.Chart"]){dojo._hasResource["dojox.charting.widget.Chart"]=true;dojo.provide("dojox.charting.widget.Chart");(function(){var _85e,_85f,_860,_861,_862,_863=function(o){return o;},df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting,d=dojo;dojo.declare("dojox.charting.widget.Chart",dijit._Widget,{theme:null,margins:null,stroke:null,fill:null,buildRendering:function(){var n=this.domNode=this.srcNodeRef;var axes=d.query("> .axis",n).map(_85f).filter(_863),_864=d.query("> .plot",n).map(_860).filter(_863),_865=d.query("> .action",n).map(_861).filter(_863),_866=d.query("> .series",n).map(_862).filter(_863);n.innerHTML="";var c=this.chart=new dc.Chart(n,{margins:this.margins,stroke:this.stroke,fill:this.fill});if(this.theme){c.setTheme(this.theme);}axes.forEach(function(axis){c.addAxis(axis.name,axis.kwArgs);});_864.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_865.map(function(_867){return new _867.action(c,_867.plot,_867.kwArgs);});var _868=df.foldl(_866,function(_869,_86a){if(_86a.type=="data"){c.addSeries(_86a.name,_86a.data,_86a.kwArgs);_869=true;}else{c.addSeries(_86a.name,[0],_86a.kwArgs);var kw={};du.updateWithPattern(kw,_86a.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_86a.kwArgs.sort){kw.sort=dojo.clone(_86a.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _86b;if("valueFn" in _86a.kwArgs){var fn=_86a.kwArgs.valueFn;_86b=d.map(data,function(x){return fn(_86a.data.getValue(x,_86a.field,0));});}else{_86b=d.map(data,function(x){return _86a.data.getValue(x,_86a.field,0);});}c.addSeries(_86a.name,_86b,_86a.kwArgs).render();}});_86a.data.fetch(kw);}return _869;},false);if(_868){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){this.chart.resize(box);}});_85e=function(node,type,kw){var dp=eval("("+type+".prototype.defaultParams)");var x,attr;for(x in dp){if(x in kw){continue;}attr=node.getAttribute(x);kw[x]=du.coerceType(dp[x],attr==null||typeof attr=="undefined"?dp[x]:attr);}var op=eval("("+type+".prototype.optionalParams)");for(x in op){if(x in kw){continue;}attr=node.getAttribute(x);if(attr!=null){kw[x]=du.coerceType(op[x],attr);}}};_85f=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.axis2d[type]){type=dojox._scopeName+".charting.axis2d."+type;}var axis=eval("("+type+")");if(axis){kw.type=axis;}}else{type=dojox._scopeName+".charting.axis2d.Default";}_85e(node,type,kw);if(kw.font||kw.fontColor){if(!kw.tick){kw.tick={};}if(kw.font){kw.tick.font=kw.font;}if(kw.fontColor){kw.tick.fontColor=kw.fontColor;}}return o;};_860=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.plot2d&&dc.plot2d[type]){type=dojox._scopeName+".charting.plot2d."+type;}var plot=eval("("+type+")");if(plot){kw.type=plot;}}else{type=dojox._scopeName+".charting.plot2d.Default";}_85e(node,type,kw);return o;};_861=function(node){var plot=node.getAttribute("plot"),type=node.getAttribute("type");if(!plot){plot="default";}var o={plot:plot,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.action2d[type]){type=dojox._scopeName+".charting.action2d."+type;}var _86c=eval("("+type+")");if(!_86c){return null;}o.action=_86c;}else{return null;}_85e(node,type,kw);return o;};_862=function(node){var ga=d.partial(d.attr,node);var name=ga("name");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs,t;t=ga("plot");if(t!=null){kw.plot=t;}t=ga("marker");if(t!=null){kw.marker=t;}t=ga("stroke");if(t!=null){kw.stroke=eval("("+t+")");}t=ga("outline");if(t!=null){kw.outline=eval("("+t+")");}t=ga("shadow");if(t!=null){kw.shadow=eval("("+t+")");}t=ga("fill");if(t!=null){kw.fill=eval("("+t+")");}t=ga("font");if(t!=null){kw.font=t;}t=ga("fontColor");if(t!=null){kw.fontColor=eval("("+t+")");}t=ga("legend");if(t!=null){kw.legend=t;}t=ga("data");if(t!=null){o.type="data";o.data=t?dojo.map(String(t).split(","),Number):[];return o;}t=ga("array");if(t!=null){o.type="data";o.data=eval("("+t+")");return o;}t=ga("store");if(t!=null){o.type="store";o.data=eval("("+t+")");t=ga("field");o.field=t!=null?t:"value";t=ga("query");if(!!t){kw.query=t;}t=ga("queryOptions");if(!!t){kw.queryOptions=eval("("+t+")");}t=ga("start");if(!!t){kw.start=Number(t);}t=ga("count");if(!!t){kw.count=Number(t);}t=ga("sort");if(!!t){kw.sort=eval("("+t+")");}t=ga("valueFn");if(!!t){kw.valueFn=df.lambda(t);}return o;}return null;};})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.getObject("fx.easing",true,dojo);dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.gfx.fx"]){dojo._hasResource["dojox.gfx.fx"]=true;dojo.provide("dojox.gfx.fx");(function(){var d=dojo,g=dojox.gfx,m=g.matrix;function _86d(_86e,end){this.start=_86e,this.end=end;};_86d.prototype.getValue=function(r){return (this.end-this.start)*r+this.start;};function _86f(_870,end,_871){this.start=_870,this.end=end;this.units=_871;};_86f.prototype.getValue=function(r){return (this.end-this.start)*r+this.start+this.units;};function _872(_873,end){this.start=_873,this.end=end;this.temp=new dojo.Color();};_872.prototype.getValue=function(r){return d.blendColors(this.start,this.end,r,this.temp);};function _874(_875){this.values=_875;this.length=_875.length;};_874.prototype.getValue=function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];};function _876(_877,def){this.values=_877;this.def=def?def:{};};_876.prototype.getValue=function(r){var ret=dojo.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;};function _878(_879,_87a){this.stack=_879;this.original=_87a;};_878.prototype.getValue=function(r){var ret=[];dojo.forEach(this.stack,function(t){if(t instanceof m.Matrix2D){ret.push(t);return;}if(t.name=="original"&&this.original){ret.push(this.original);return;}if(!(t.name in m)){return;}var f=m[t.name];if(typeof f!="function"){ret.push(f);return;}var val=dojo.map(t.start,function(v,i){return (t.end[i]-v)*r+v;}),_87b=f.apply(m,val);if(_87b instanceof m.Matrix2D){ret.push(_87b);}},this);return ret;};var _87c=new d.Color(0,0,0,0);function _87d(prop,obj,name,def){if(prop.values){return new _874(prop.values);}var _87e,_87f,end;if(prop.start){_87f=g.normalizeColor(prop.start);}else{_87f=_87e=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_87e){_87e=obj?(name?obj[name]:obj):def;}end=_87e;}return new _872(_87f,end);};function _880(prop,obj,name,def){if(prop.values){return new _874(prop.values);}var _881,_882,end;if(prop.start){_882=prop.start;}else{_882=_881=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _881!="number"){_881=obj?obj[name]:def;}end=_881;}return new _86d(_882,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_883=args.shape,_884;d.connect(anim,"beforeBegin",anim,function(){_884=_883.getStroke();var prop=args.color,_885={},_886,_887,end;if(prop){_885.color=_87d(prop,_884,"color",_87c);}prop=args.style;if(prop&&prop.values){_885.style=new _874(prop.values);}prop=args.width;if(prop){_885.width=_880(prop,_884,"width",1);}prop=args.cap;if(prop&&prop.values){_885.cap=new _874(prop.values);}prop=args.join;if(prop){if(prop.values){_885.join=new _874(prop.values);}else{_887=prop.start?prop.start:(_884&&_884.join||0);end=prop.end?prop.end:(_884&&_884.join||0);if(typeof _887=="number"&&typeof end=="number"){_885.join=new _86d(_887,end);}}}this.curve=new _876(_885,_884);});d.connect(anim,"onAnimate",_883,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_888=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_888.getFill();var prop=args.color,_889={};if(prop){this.curve=_87d(prop,fill,"",_87c);}});d.connect(anim,"onAnimate",_888,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_88a=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_88a.getFont();var prop=args.style,_88b={},_88c,_88d,end;if(prop&&prop.values){_88b.style=new _874(prop.values);}prop=args.variant;if(prop&&prop.values){_88b.variant=new _874(prop.values);}prop=args.weight;if(prop&&prop.values){_88b.weight=new _874(prop.values);}prop=args.family;if(prop&&prop.values){_88b.family=new _874(prop.values);}prop=args.size;if(prop&&prop.units){_88d=parseFloat(prop.start?prop.start:(_88a.font&&_88a.font.size||"0"));end=parseFloat(prop.end?prop.end:(_88a.font&&_88a.font.size||"0"));_88b.size=new _86f(_88d,end,prop.units);}this.curve=new _876(_88b,font);});d.connect(anim,"onAnimate",_88a,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_88e=args.shape,_88f;d.connect(anim,"beforeBegin",anim,function(){_88f=_88e.getTransform();this.curve=new _878(args.transform,_88f);});d.connect(anim,"onAnimate",_88e,"setTransform");return anim;};})();}if(!dojo._hasResource["dojox.charting.action2d.Base"]){dojo._hasResource["dojox.charting.action2d.Base"]=true;dojo.provide("dojox.charting.action2d.Base");(function(){var _890=400,_891=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_892,plot,_893){this.chart=_892;this.plot=plot||"default";this.anim={};if(!_893){_893={};}this.duration=_893.duration?_893.duration:_890;this.easing=_893.easing?_893.easing:_891;},connect:function(){this.handle=this.chart.connectToPlot(this.plot,this,"process");},disconnect:function(){if(this.handle){dojo.disconnect(this.handle);this.handle=null;}},reset:function(){},destroy:function(){this.disconnect();df.forIn(this.anim,function(o){df.forIn(o,function(anim){anim.action.stop(true);});});this.anim={};}});})();}if(!dojo._hasResource["dojox.charting.action2d.Highlight"]){dojo._hasResource["dojox.charting.action2d.Highlight"]=true;dojo.provide("dojox.charting.action2d.Highlight");(function(){var _894=100,_895=75,_896=50,c=dojox.color,cc=function(_897){return function(){return _897;};},hl=function(_898){var a=new c.Color(_898),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_894;if(x.l<_896){x.l=_895;}else{if(x.l>_895){x.l=_896;}else{x.l=x.l-_896>_895-x.l?_896:_895;}}}return c.fromHsl(x);};dojo.declare("dojox.charting.action2d.Highlight",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut},optionalParams:{highlight:"red"},constructor:function(_899,plot,_89a){var a=_89a&&_89a.highlight;this.colorFun=a?(dojo.isFunction(a)?a:cc(a)):hl;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _89b=o.run.name,_89c=o.index,anim,_89d,_89e;if(_89b in this.anim){anim=this.anim[_89b][_89c];}else{this.anim[_89b]={};}if(anim){anim.action.stop(true);}else{var _89f=o.shape.getFill();if(!_89f||!(_89f instanceof dojo.Color)){return;}this.anim[_89b][_89c]=anim={start:_89f,end:this.colorFun(_89f)};}var _8a0=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_8a0;_8a0=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_8a0,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_89b]){delete this.anim[_89b][_89c];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.charting.action2d.Magnify"]){dojo._hasResource["dojox.charting.action2d.Magnify"]=true;dojo.provide("dojox.charting.action2d.Magnify");(function(){var _8a1=2,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Magnify",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_8a1},optionalParams:{},constructor:function(_8a2,plot,_8a3){this.scale=_8a3&&typeof _8a3.scale=="number"?_8a3.scale:_8a1;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _8a4=o.run.name,_8a5=o.index,_8a6=[],anim,init,_8a7;if(_8a4 in this.anim){anim=this.anim[_8a4][_8a5];}else{this.anim[_8a4]={};}if(anim){anim.action.stop(true);}else{this.anim[_8a4][_8a5]=anim={};}if(o.type=="onmouseover"){init=m.identity;_8a7=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_8a7=1/this.scale;}var _8a8={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_8a7,o.cx,o.cy]},init]};if(o.shape){_8a6.push(gf.animateTransform(_8a8));}if(o.oultine){_8a8.shape=o.outline;_8a6.push(gf.animateTransform(_8a8));}if(o.shadow){_8a8.shape=o.shadow;_8a6.push(gf.animateTransform(_8a8));}if(!_8a6.length){delete this.anim[_8a4][_8a5];return;}anim.action=dojo.fx.combine(_8a6);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_8a4]){delete this.anim[_8a4][_8a5];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.lang.functional.scan"]){dojo._hasResource["dojox.lang.functional.scan"]=true;dojo.provide("dojox.lang.functional.scan");(function(){var d=dojo,df=dojox.lang.functional,_8a9={};d.mixin(df,{scanl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array((n=a.length)+1);t[0]=z;for(i=0;i<n;z=f.call(o,z,a[i],i,a),t[++i]=z){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[z];for(i=0;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}else{t=[z];for(i in a){if(!(i in _8a9)){t.push(z=f.call(o,z,a[i],i,a));}}}}return t;},scanl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,z,_8aa=true;if(d.isArray(a)){t=new Array(n=a.length);t[0]=z=a[0];for(var i=1;i<n;t[i]=z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){t=[z=a.next()];for(var i=1;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}}else{for(var i in a){if(!(i in _8a9)){if(_8aa){t=[z=a[i]];_8aa=false;}else{t.push(z=f.call(o,z,a[i],i,a));}}}}}return t;},scanr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n+1),i=n;t[n]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;},scanr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),z=a[n-1],i=n-1;t[i]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;}});})();}if(!dojo._hasResource["dojox.charting.action2d.MoveSlice"]){dojo._hasResource["dojox.charting.action2d.MoveSlice"]=true;dojo.provide("dojox.charting.action2d.MoveSlice");(function(){var _8ab=1.05,_8ac=7,m=dojox.gfx.matrix,gf=dojox.gfx.fx,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.MoveSlice",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_8ab,shift:_8ac},optionalParams:{},constructor:function(_8ad,plot,_8ae){if(!_8ae){_8ae={};}this.scale=typeof _8ae.scale=="number"?_8ae.scale:_8ab;this.shift=typeof _8ae.shift=="number"?_8ae.shift:_8ac;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _8af=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_8af),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_8af),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _8b0=o.index,anim,_8b1,_8b2,_8b3,_8b4,_8b5=(this.angles[_8b0]+this.angles[_8b0+1])/2,_8b6=m.rotateAt(-_8b5,o.cx,o.cy),_8b7=m.rotateAt(_8b5,o.cx,o.cy);anim=this.anim[_8b0];if(anim){anim.action.stop(true);}else{this.anim[_8b0]=anim={};}if(o.type=="onmouseover"){_8b3=0;_8b4=this.shift;_8b1=1;_8b2=this.scale;}else{_8b3=this.shift;_8b4=0;_8b1=this.scale;_8b2=1;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_8b7,{name:"translate",start:[_8b3,0],end:[_8b4,0]},{name:"scaleAt",start:[_8b1,o.cx,o.cy],end:[_8b2,o.cx,o.cy]},_8b6]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_8b0];});}anim.action.play();},reset:function(){delete this.angles;}});})();}if(!dojo._hasResource["dojox.charting.action2d.Shake"]){dojo._hasResource["dojox.charting.action2d.Shake"]=true;dojo.provide("dojox.charting.action2d.Shake");(function(){var _8b8=3,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Shake",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,shiftX:_8b8,shiftY:_8b8},optionalParams:{},constructor:function(_8b9,plot,_8ba){if(!_8ba){_8ba={};}this.shiftX=typeof _8ba.shiftX=="number"?_8ba.shiftX:_8b8;this.shiftY=typeof _8ba.shiftY=="number"?_8ba.shiftY:_8b8;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _8bb=o.run.name,_8bc=o.index,_8bd=[],anim,_8be=o.type=="onmouseover"?this.shiftX:-this.shiftX,_8bf=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_8bb in this.anim){anim=this.anim[_8bb][_8bc];}else{this.anim[_8bb]={};}if(anim){anim.action.stop(true);}else{this.anim[_8bb][_8bc]=anim={};}var _8c0={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"translate",start:[this.shiftX,this.shiftY],end:[0,0]},m.identity]};if(o.shape){_8bd.push(gf.animateTransform(_8c0));}if(o.oultine){_8c0.shape=o.outline;_8bd.push(gf.animateTransform(_8c0));}if(o.shadow){_8c0.shape=o.shadow;_8bd.push(gf.animateTransform(_8c0));}if(!_8bd.length){delete this.anim[_8bb][_8bc];return;}anim.action=dojo.fx.combine(_8bd);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_8bb]){delete this.anim[_8bb][_8bc];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _8c1=function(o){var t=o.run&&o.run.data&&o.run.data[o.index];if(t&&typeof t!="number"&&(t.tooltip||t.text)){return t.tooltip||t.text;}if(o.element=="candlestick"){return "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" style=\"font-size:0.9em;\">"+"<tr><td>Open:</td><td align=\"right\"><strong>"+o.data.open+"</strong></td></tr>"+"<tr><td>High:</td><td align=\"right\"><strong>"+o.data.high+"</strong></td></tr>"+"<tr><td>Low:</td><td align=\"right\"><strong>"+o.data.low+"</strong></td></tr>"+"<tr><td>Close:</td><td align=\"right\"><strong>"+o.data.close+"</strong></td></tr>"+(o.data.mid!==undefined?"<tr><td>Mid:</td><td align=\"right\"><strong>"+o.data.mid+"</strong></td></tr>":"")+"</table>";}return o.element=="bar"?o.x:o.y;};var df=dojox.lang.functional,m=dojox.gfx.matrix,pi4=Math.PI/4,pi2=Math.PI/2;dojo.declare("dojox.charting.action2d.Tooltip",dojox.charting.action2d.Base,{defaultParams:{text:_8c1},optionalParams:{},constructor:function(_8c2,plot,_8c3){this.text=_8c3&&_8c3.text?_8c3.text:_8c1;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){dijit.hideTooltip(this.aroundRect);this.aroundRect=null;if(o.type==="onplotreset"){delete this.angles;}return;}if(!o.shape||o.type!=="onmouseover"){return;}var _8c4={type:"rect"},_8c5=["after","before"];switch(o.element){case "marker":_8c4.x=o.cx;_8c4.y=o.cy;_8c4.width=_8c4.height=1;break;case "circle":_8c4.x=o.cx-o.cr;_8c4.y=o.cy-o.cr;_8c4.width=_8c4.height=2*o.cr;break;case "column":_8c5=["above","below"];case "bar":_8c4=dojo.clone(o.shape.getShape());break;case "candlestick":_8c4.x=o.x;_8c4.y=o.y;_8c4.width=o.width;_8c4.height=o.height;break;default:if(!this.angles){if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _8c6=m._degToRad(o.plot.opt.startAngle),_8c7=(this.angles[o.index]+this.angles[o.index+1])/2+_8c6;_8c4.x=o.cx+o.cr*Math.cos(_8c7);_8c4.y=o.cy+o.cr*Math.sin(_8c7);_8c4.width=_8c4.height=1;if(_8c7<pi4){}else{if(_8c7<pi2+pi4){_8c5=["below","above"];}else{if(_8c7<Math.PI+pi4){_8c5=["before","after"];}else{if(_8c7<2*Math.PI-pi4){_8c5=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_8c4.x+=lt.x;_8c4.y+=lt.y;_8c4.x=Math.round(_8c4.x);_8c4.y=Math.round(_8c4.y);_8c4.width=Math.ceil(_8c4.width);_8c4.height=Math.ceil(_8c4.height);this.aroundRect=_8c4;var _8c8=this.text(o);if(_8c8){dijit.showTooltip(_8c8,this.aroundRect,_8c5);}}});})();}if(!dojo._hasResource["dojox.charting.scaler.common"]){dojo._hasResource["dojox.charting.scaler.common"]=true;dojo.provide("dojox.charting.scaler.common");(function(){var eq=function(a,b){return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b));};dojo.mixin(dojox.charting.scaler.common,{findString:function(val,text){val=val.toLowerCase();for(var i=0;i<text.length;++i){if(val==text[i]){return true;}}return false;},getNumericLabel:function(_8c9,_8ca,_8cb){var def="";if(dojo.number){def=(_8cb.fixed?dojo.number.format(_8c9,{places:_8ca<0?-_8ca:0}):dojo.number.format(_8c9))||"";}else{def=_8cb.fixed?_8c9.toFixed(_8ca<0?-_8ca:0):_8c9.toString();}if(_8cb.labelFunc){var r=_8cb.labelFunc(def,_8c9,_8ca);if(r){return r;}}if(_8cb.labels){var l=_8cb.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_8c9){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_8c9)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_8c9)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_8c9)){return l[lo].text;}}return def;}});})();}if(!dojo._hasResource["dojox.charting.scaler.linear"]){dojo._hasResource["dojox.charting.scaler.linear"]=true;dojo.provide("dojox.charting.scaler.linear");(function(){var _8cc=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_8cd=dcsc.findString,_8ce=dcsc.getNumericLabel;var _8cf=function(min,max,_8d0,_8d1,_8d2,_8d3,span){_8d0=dojo.delegate(_8d0);if(!_8d1){if(_8d0.fixUpper=="major"){_8d0.fixUpper="minor";}if(_8d0.fixLower=="major"){_8d0.fixLower="minor";}}if(!_8d2){if(_8d0.fixUpper=="minor"){_8d0.fixUpper="micro";}if(_8d0.fixLower=="minor"){_8d0.fixLower="micro";}}if(!_8d3){if(_8d0.fixUpper=="micro"){_8d0.fixUpper="none";}if(_8d0.fixLower=="micro"){_8d0.fixLower="none";}}var _8d4=_8cd(_8d0.fixLower,["major"])?Math.floor(_8d0.min/_8d1)*_8d1:_8cd(_8d0.fixLower,["minor"])?Math.floor(_8d0.min/_8d2)*_8d2:_8cd(_8d0.fixLower,["micro"])?Math.floor(_8d0.min/_8d3)*_8d3:_8d0.min,_8d5=_8cd(_8d0.fixUpper,["major"])?Math.ceil(_8d0.max/_8d1)*_8d1:_8cd(_8d0.fixUpper,["minor"])?Math.ceil(_8d0.max/_8d2)*_8d2:_8cd(_8d0.fixUpper,["micro"])?Math.ceil(_8d0.max/_8d3)*_8d3:_8d0.max;if(_8d0.useMin){min=_8d4;}if(_8d0.useMax){max=_8d5;}var _8d6=(!_8d1||_8d0.useMin&&_8cd(_8d0.fixLower,["major"]))?min:Math.ceil(min/_8d1)*_8d1,_8d7=(!_8d2||_8d0.useMin&&_8cd(_8d0.fixLower,["major","minor"]))?min:Math.ceil(min/_8d2)*_8d2,_8d8=(!_8d3||_8d0.useMin&&_8cd(_8d0.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_8d3)*_8d3,_8d9=!_8d1?0:(_8d0.useMax&&_8cd(_8d0.fixUpper,["major"])?Math.round((max-_8d6)/_8d1):Math.floor((max-_8d6)/_8d1))+1,_8da=!_8d2?0:(_8d0.useMax&&_8cd(_8d0.fixUpper,["major","minor"])?Math.round((max-_8d7)/_8d2):Math.floor((max-_8d7)/_8d2))+1,_8db=!_8d3?0:(_8d0.useMax&&_8cd(_8d0.fixUpper,["major","minor","micro"])?Math.round((max-_8d8)/_8d3):Math.floor((max-_8d8)/_8d3))+1,_8dc=_8d2?Math.round(_8d1/_8d2):0,_8dd=_8d3?Math.round(_8d2/_8d3):0,_8de=_8d1?Math.floor(Math.log(_8d1)/Math.LN10):0,_8df=_8d2?Math.floor(Math.log(_8d2)/Math.LN10):0,_8e0=span/(max-min);if(!isFinite(_8e0)){_8e0=1;}return {bounds:{lower:_8d4,upper:_8d5,from:min,to:max,scale:_8e0,span:span},major:{tick:_8d1,start:_8d6,count:_8d9,prec:_8de},minor:{tick:_8d2,start:_8d7,count:_8da,prec:_8df},micro:{tick:_8d3,start:_8d8,count:_8db,prec:0},minorPerMajor:_8dc,microPerMinor:_8dd,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_8e1){var h={fixUpper:"none",fixLower:"none",natural:false};if(_8e1){if("fixUpper" in _8e1){h.fixUpper=String(_8e1.fixUpper);}if("fixLower" in _8e1){h.fixLower=String(_8e1.fixLower);}if("natural" in _8e1){h.natural=Boolean(_8e1.natural);}}if("min" in _8e1){min=_8e1.min;}if("max" in _8e1){max=_8e1.max;}if(_8e1.includeZero){if(min>0){min=0;}if(max<0){max=0;}}h.min=min;h.useMin=true;h.max=max;h.useMax=true;if("from" in _8e1){min=_8e1.from;h.useMin=false;}if("to" in _8e1){max=_8e1.to;h.useMax=false;}if(max<=min){return _8cf(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_8e2=_8e1&&("majorTickStep" in _8e1)?_8e1.majorTickStep:Math.pow(10,mag),_8e3=0,_8e4=0,_8e5;if(_8e1&&("minorTickStep" in _8e1)){_8e3=_8e1.minorTickStep;}else{do{_8e3=_8e2/10;if(!h.natural||_8e3>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,0,span);if(_8e5.bounds.scale*_8e5.minor.tick>_8cc){break;}}_8e3=_8e2/5;if(!h.natural||_8e3>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,0,span);if(_8e5.bounds.scale*_8e5.minor.tick>_8cc){break;}}_8e3=_8e2/2;if(!h.natural||_8e3>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,0,span);if(_8e5.bounds.scale*_8e5.minor.tick>_8cc){break;}}return _8cf(min,max,h,_8e2,0,0,span);}while(false);}if(_8e1&&("microTickStep" in _8e1)){_8e4=_8e1.microTickStep;_8e5=_8cf(min,max,h,_8e2,_8e3,_8e4,span);}else{do{_8e4=_8e3/10;if(!h.natural||_8e4>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,_8e4,span);if(_8e5.bounds.scale*_8e5.micro.tick>_8cc){break;}}_8e4=_8e3/5;if(!h.natural||_8e4>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,_8e4,span);if(_8e5.bounds.scale*_8e5.micro.tick>_8cc){break;}}_8e4=_8e3/2;if(!h.natural||_8e4>0.9){_8e5=_8cf(min,max,h,_8e2,_8e3,_8e4,span);if(_8e5.bounds.scale*_8e5.micro.tick>_8cc){break;}}_8e4=0;}while(false);}return _8e4?_8e5:_8cf(min,max,h,_8e2,_8e3,0,span);},buildTicks:function(_8e6,_8e7){var step,next,tick,_8e8=_8e6.major.start,_8e9=_8e6.minor.start,_8ea=_8e6.micro.start;if(_8e7.microTicks&&_8e6.micro.tick){step=_8e6.micro.tick,next=_8ea;}else{if(_8e7.minorTicks&&_8e6.minor.tick){step=_8e6.minor.tick,next=_8e9;}else{if(_8e6.major.tick){step=_8e6.major.tick,next=_8e8;}else{return null;}}}var _8eb=1/_8e6.bounds.scale;if(_8e6.bounds.to<=_8e6.bounds.from||isNaN(_8eb)||!isFinite(_8eb)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _8ec=[],_8ed=[],_8ee=[];while(next<=_8e6.bounds.to+_8eb){if(Math.abs(_8e8-next)<step/2){tick={value:_8e8};if(_8e7.majorLabels){tick.label=_8ce(_8e8,_8e6.major.prec,_8e7);}_8ec.push(tick);_8e8+=_8e6.major.tick;_8e9+=_8e6.minor.tick;_8ea+=_8e6.micro.tick;}else{if(Math.abs(_8e9-next)<step/2){if(_8e7.minorTicks){tick={value:_8e9};if(_8e7.minorLabels&&(_8e6.minMinorStep<=_8e6.minor.tick*_8e6.bounds.scale)){tick.label=_8ce(_8e9,_8e6.minor.prec,_8e7);}_8ed.push(tick);}_8e9+=_8e6.minor.tick;_8ea+=_8e6.micro.tick;}else{if(_8e7.microTicks){_8ee.push({value:_8ea});}_8ea+=_8e6.micro.tick;}}next+=step;}return {major:_8ec,minor:_8ed,micro:_8ee};},getTransformerFromModel:function(_8ef){var _8f0=_8ef.bounds.from,_8f1=_8ef.bounds.scale;return function(x){return (x-_8f0)*_8f1;};},getTransformerFromPlot:function(_8f2){var _8f3=_8f2.bounds.from,_8f4=_8f2.bounds.scale;return function(x){return x/_8f4+_8f3;};}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Base"]){dojo._hasResource["dojox.charting.axis2d.Base"]=true;dojo.provide("dojox.charting.axis2d.Base");dojo.declare("dojox.charting.axis2d.Base",dojox.charting.Element,{constructor:function(_8f5,_8f6){this.vertical=_8f6&&_8f6.vertical;},clear:function(){return this;},initialized:function(){return false;},calculate:function(min,max,span){return this;},getScaler:function(){return null;},getTicks:function(){return null;},getOffsets:function(){return {l:0,r:0,t:0,b:0};},render:function(dim,_8f7){this.dirty=false;return this;}});}if(!dojo._hasResource["dojox.charting.axis2d.Invisible"]){dojo._hasResource["dojox.charting.axis2d.Invisible"]=true;dojo.provide("dojox.charting.axis2d.Invisible");(function(){var dc=dojox.charting,df=dojox.lang.functional,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_8f8=du.merge,_8f9=4,_8fa=45;dojo.declare("dojox.charting.axis2d.Invisible",dojox.charting.axis2d.Base,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null},constructor:function(_8fb,_8fc){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_8fc);du.updateWithPattern(this.opt,_8fc,this.optionalParams);},dependOnData:function(){return !("min" in this.opt)||!("max" in this.opt);},clear:function(){delete this.scaler;delete this.ticks;this.dirty=true;return this;},initialized:function(){return "scaler" in this&&!(this.dirty&&this.dependOnData());},setWindow:function(_8fd,_8fe){this.scale=_8fd;this.offset=_8fe;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_8ff,font,_900){if(!_8ff.length){return 0;}if(dojo.isObject(_8ff[0])){_8ff=df.map(_8ff,function(_901){return _901.text;});}if(_900){_8ff=df.map(_8ff,function(_902){return dojo.trim(_902).length==0?"":_902.substring(0,_900)+this.trailingSymbol;},this);}var s=_8ff.join("<br>");return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_903){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_903;this.scaler=lin.buildScaler(min,max,span,o);var tsb=this.scaler.bounds;if("scale" in this){o.from=tsb.lower+this.offset;o.to=(tsb.upper-tsb.lower)/this.scale+o.from;if(!isFinite(o.from)||isNaN(o.from)||!isFinite(o.to)||isNaN(o.to)||o.to-o.from>=tsb.upper-tsb.lower){delete o.from;delete o.to;delete this.scale;delete this.offset;}else{if(o.from<tsb.lower){o.to+=tsb.lower-o.from;o.from=tsb.lower;}else{if(o.to>tsb.upper){o.from+=tsb.upper-o.to;o.to=tsb.upper;}}this.offset=o.from-tsb.lower;}this.scaler=lin.buildScaler(min,max,span,o);tsb=this.scaler.bounds;if(this.scale==1&&this.offset==0){delete this.scale;delete this.offset;}}var ta=this.chart.theme.axis,_904=0,_905=o.rotation%360,_906=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_906?g.normalizedLength(g.splitFontString(_906).size):0,cosr=Math.abs(Math.cos(_905*Math.PI/180)),sinr=Math.abs(Math.sin(_905*Math.PI/180));if(_905<0){_905+=360;}if(size){if(this.vertical?_905!=0&&_905!=180:_905!=90&&_905!=270){if(this.labels){_904=this._groupLabelWidth(this.labels,_906,o.maxLabelCharCount);}else{var _907=Math.ceil(Math.log(Math.max(Math.abs(tsb.from),Math.abs(tsb.to)))/Math.LN10),t=[];if(tsb.from<0||tsb.to<0){t.push("-");}t.push(dojo.string.rep("9",_907));var _908=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_908>0){t.push(".");t.push(dojo.string.rep("9",_908));}_904=dojox.gfx._base._getTextBox(t.join(""),{font:_906}).w;}_904=o.maxLabelSize?Math.min(o.maxLabelSize,_904):_904;}else{_904=size;}switch(_905){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_904*_904+size*size),gap2=this.vertical?size*cosr+_904*sinr:_904*cosr+size*sinr;_904=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_904+_8f9;this.ticks=lin.buildTicks(this.scaler,o);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Default"]){dojo._hasResource["dojox.charting.axis2d.Default"]=true;dojo.provide("dojox.charting.axis2d.Default");(function(){var dc=dojox.charting,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_909=4,_90a=45;dojo.declare("dojox.charting.axis2d.Default",dojox.charting.axis2d.Invisible,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_90b,_90c){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_90c);du.updateWithPattern(this.opt,_90c,this.optionalParams);},getOffsets:function(){var s=this.scaler,_90d={l:0,r:0,t:0,b:0};if(!s){return _90d;}var o=this.opt,_90e=0,a,b,c,d,gl=dc.scaler.common.getNumericLabel,_90f=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_910=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_911=o.titleFont||(ta.tick&&ta.tick.titleFont),_912=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_913=this.chart.theme.getTick("major",o),_914=this.chart.theme.getTick("minor",o),size=_910?g.normalizedLength(g.splitFontString(_910).size):0,_915=_911?g.normalizedLength(g.splitFontString(_911).size):0,_916=o.rotation%360,_917=o.leftBottom,cosr=Math.abs(Math.cos(_916*Math.PI/180)),sinr=Math.abs(Math.sin(_916*Math.PI/180));this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;if(_916<0){_916+=360;}if(size){if(this.labels){_90e=this._groupLabelWidth(this.labels,_910,o.maxLabelCharCount);}else{_90e=this._groupLabelWidth([gl(ma.start,ma.prec,o),gl(ma.start+ma.count*ma.tick,ma.prec,o),gl(mi.start,mi.prec,o),gl(mi.start+mi.count*mi.tick,mi.prec,o)],_910,o.maxLabelCharCount);}_90e=o.maxLabelSize?Math.min(o.maxLabelSize,_90e):_90e;if(this.vertical){var side=_917?"l":"r";switch(_916){case 0:case 180:_90d[side]=_90e;_90d.t=_90d.b=size/2;break;case 90:case 270:_90d[side]=size;_90d.t=_90d.b=_90e/2;break;default:if(_916<=_90a||(180<_916&&_916<=(180+_90a))){_90d[side]=size*sinr/2+_90e*cosr;_90d[_917?"t":"b"]=size*cosr/2+_90e*sinr;_90d[_917?"b":"t"]=size*cosr/2;}else{if(_916>(360-_90a)||(180>_916&&_916>(180-_90a))){_90d[side]=size*sinr/2+_90e*cosr;_90d[_917?"b":"t"]=size*cosr/2+_90e*sinr;_90d[_917?"t":"b"]=size*cosr/2;}else{if(_916<90||(180<_916&&_916<270)){_90d[side]=size*sinr+_90e*cosr;_90d[_917?"t":"b"]=size*cosr+_90e*sinr;}else{_90d[side]=size*sinr+_90e*cosr;_90d[_917?"b":"t"]=size*cosr+_90e*sinr;}}}break;}_90d[side]+=_909+Math.max(_913.length,_914.length)+(o.title?(_915+_912):0);}else{var side=_917?"b":"t";switch(_916){case 0:case 180:_90d[side]=size;_90d.l=_90d.r=_90e/2;break;case 90:case 270:_90d[side]=_90e;_90d.l=_90d.r=size/2;break;default:if((90-_90a)<=_916&&_916<=90||(270-_90a)<=_916&&_916<=270){_90d[side]=size*sinr/2+_90e*cosr;_90d[_917?"r":"l"]=size*cosr/2+_90e*sinr;_90d[_917?"l":"r"]=size*cosr/2;}else{if(90<=_916&&_916<=(90+_90a)||270<=_916&&_916<=(270+_90a)){_90d[side]=size*sinr/2+_90e*cosr;_90d[_917?"l":"r"]=size*cosr/2+_90e*sinr;_90d[_917?"r":"l"]=size*cosr/2;}else{if(_916<_90a||(180<_916&&_916<(180-_90a))){_90d[side]=size*sinr+_90e*cosr;_90d[_917?"r":"l"]=size*cosr+_90e*sinr;}else{_90d[side]=size*sinr+_90e*cosr;_90d[_917?"l":"r"]=size*cosr+_90e*sinr;}}}break;}_90d[side]+=_909+Math.max(_913.length,_914.length)+(o.title?(_915+_912):0);}}if(_90e){this._cachedLabelWidth=_90e;}return _90d;},render:function(dim,_918){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_919=o.leftBottom,_91a=o.rotation%360,_91b,stop,_91c,_91d=0,_91e,_91f,_920,_921,_922,_923,_924=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_925=o.titleFont||(ta.tick&&ta.tick.titleFont),_926=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_927=o.titleFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_928=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_929=o.titleOrientation||(ta.tick&&ta.tick.titleOrientation)||"axis",_92a=this.chart.theme.getTick("major",o),_92b=this.chart.theme.getTick("minor",o),_92c=this.chart.theme.getTick("micro",o),_92d=Math.max(_92a.length,_92b.length,_92c.length),_92e="stroke" in o?o.stroke:ta.stroke,size=_924?g.normalizedLength(g.splitFontString(_924).size):0,cosr=Math.abs(Math.cos(_91a*Math.PI/180)),sinr=Math.abs(Math.sin(_91a*Math.PI/180)),_92f=_925?g.normalizedLength(g.splitFontString(_925).size):0;if(_91a<0){_91a+=360;}if(this.vertical){_91b={y:dim.height-_918.b};stop={y:_918.t};_91c={y:(dim.height-_918.b+_918.t)/2};_91e=size*sinr+(this._cachedLabelWidth||0)*cosr+_909+Math.max(_92a.length,_92b.length)+_92f+_928;_91f={x:0,y:-1};_922={x:0,y:0};_920={x:1,y:0};_921={x:_909,y:0};switch(_91a){case 0:_923="end";_922.y=size*0.4;break;case 90:_923="middle";_922.x=-size;break;case 180:_923="start";_922.y=-size*0.4;break;case 270:_923="middle";break;default:if(_91a<_90a){_923="end";_922.y=size*0.4;}else{if(_91a<90){_923="end";_922.y=size*0.4;}else{if(_91a<(180-_90a)){_923="start";}else{if(_91a<(180+_90a)){_923="start";_922.y=-size*0.4;}else{if(_91a<270){_923="start";_922.x=_919?0:size*0.4;}else{if(_91a<(360-_90a)){_923="end";_922.x=_919?0:size*0.4;}else{_923="end";_922.y=size*0.4;}}}}}}}if(_919){_91b.x=stop.x=_918.l;_91d=(_929&&_929=="away")?90:270;_91c.x=_918.l-_91e+(_91d==270?_92f:0);_920.x=-1;_921.x=-_921.x;}else{_91b.x=stop.x=dim.width-_918.r;_91d=(_929&&_929=="axis")?90:270;_91c.x=dim.width-_918.r+_91e-(_91d==270?0:_92f);switch(_923){case "start":_923="end";break;case "end":_923="start";break;case "middle":_922.x+=size;break;}}}else{_91b={x:_918.l};stop={x:dim.width-_918.r};_91c={x:(dim.width-_918.r+_918.l)/2};_91e=size*cosr+(this._cachedLabelWidth||0)*sinr+_909+Math.max(_92a.length,_92b.length)+_92f+_928;_91f={x:1,y:0};_922={x:0,y:0};_920={x:0,y:1};_921={x:0,y:_909};switch(_91a){case 0:_923="middle";_922.y=size;break;case 90:_923="start";_922.x=-size*0.4;break;case 180:_923="middle";break;case 270:_923="end";_922.x=size*0.4;break;default:if(_91a<(90-_90a)){_923="start";_922.y=_919?size:0;}else{if(_91a<(90+_90a)){_923="start";_922.x=-size*0.4;}else{if(_91a<180){_923="start";_922.y=_919?0:-size;}else{if(_91a<(270-_90a)){_923="end";_922.y=_919?0:-size;}else{if(_91a<(270+_90a)){_923="end";_922.y=_919?size*0.4:0;}else{_923="end";_922.y=_919?size:0;}}}}}}if(_919){_91b.y=stop.y=dim.height-_918.b;_91d=(_929&&_929=="axis")?180:0;_91c.y=dim.height-_918.b+_91e-(_91d?_92f:0);}else{_91b.y=stop.y=_918.t;_91d=(_929&&_929=="away")?180:0;_91c.y=_918.t-_91e+(_91d?0:_92f);_920.y=-1;_921.y=-_921.y;switch(_923){case "start":_923="end";break;case "end":_923="start";break;case "middle":_922.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_930,f=lin.getTransformerFromModel(this.scaler),_931=!_91d&&!_91a&&this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_920.x*_92a.length,dy=_920.y*_92a.length;s.createLine({x1:_91b.x,y1:_91b.y,x2:stop.x,y2:stop.y}).setStroke(_92e);if(o.title){var _932=dc.axis2d.common.createText[_931](this.chart,s,_91c.x,_91c.y,"middle",o.title,_925,_927);if(_931=="html"){this.htmlElements.push(_932);}else{_932.setTransform(g.matrix.rotategAt(_91d,_91c.x,_91c.y));}}dojo.forEach(t.major,function(tick){var _933=f(tick.value),elem,x=_91b.x+_91f.x*_933,y=_91b.y+_91f.y*_933;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_92a);if(tick.label){var _934=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_924,o.maxLabelCharCount):{text:tick.label,truncated:false};_934=o.maxLabelSize?this.getTextWithLimitLength(_934.text,_924,o.maxLabelSize,_934.truncated):_934;elem=dc.axis2d.common.createText[_931](this.chart,s,x+dx+_921.x+(_91a?0:_922.x),y+dy+_921.y+(_91a?0:_922.y),_923,_934.text,_924,_926);_934.truncated&&this.labelTooltip(elem,this.chart,tick.label,_934.text,_924,_931);if(_931=="html"){this.htmlElements.push(elem);}else{if(_91a){elem.setTransform([{dx:_922.x,dy:_922.y},g.matrix.rotategAt(_91a,x+dx+_921.x,y+dy+_921.y)]);}}}},this);dx=_920.x*_92b.length;dy=_920.y*_92b.length;_930=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _935=f(tick.value),elem,x=_91b.x+_91f.x*_935,y=_91b.y+_91f.y*_935;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_92b);if(_930&&tick.label){var _936=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_924,o.maxLabelCharCount):{text:tick.label,truncated:false};_936=o.maxLabelSize?this.getTextWithLimitLength(_936.text,_924,o.maxLabelSize,_936.truncated):_936;elem=dc.axis2d.common.createText[_931](this.chart,s,x+dx+_921.x+(_91a?0:_922.x),y+dy+_921.y+(_91a?0:_922.y),_923,_936.text,_924,_926);_936.truncated&&this.labelTooltip(elem,this.chart,tick.label,_936.text,_924,_931);if(_931=="html"){this.htmlElements.push(elem);}else{if(_91a){elem.setTransform([{dx:_922.x,dy:_922.y},g.matrix.rotategAt(_91a,x+dx+_921.x,y+dy+_921.y)]);}}}},this);dx=_920.x*_92c.length;dy=_920.y*_92c.length;dojo.forEach(t.micro,function(tick){var _937=f(tick.value),elem,x=_91b.x+_91f.x*_937,y=_91b.y+_91f.y*_937;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_92c);},this);}catch(e){}this.dirty=false;return this;},labelTooltip:function(elem,_938,_939,_93a,font,_93b){if(!dijit||!dijit.Tooltip){return;}var _93c={type:"rect"},_93d=["above","below"],_93e=dojox.gfx._base._getTextBox(_93a,{font:font}).w||0;fontHeight=font?g.normalizedLength(g.splitFontString(font).size):0;if(_93b=="html"){dojo.mixin(_93c,dojo.coords(elem.firstChild,true));_93c.width=Math.ceil(_93e);_93c.height=Math.ceil(fontHeight);this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseover",this,function(e){dijit.showTooltip(_939,_93c,_93d);})});this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseout",this,function(e){dijit.hideTooltip(_93c);})});}else{var shp=elem.getShape(),lt=dojo.coords(_938.node,true);_93c=dojo.mixin(_93c,{x:shp.x-_93e/2,y:shp.y});_93c.x+=lt.x;_93c.y+=lt.y;_93c.x=Math.round(_93c.x);_93c.y=Math.round(_93c.y);_93c.width=Math.ceil(_93e);_93c.height=Math.ceil(fontHeight);this._events.push({shape:elem,handle:elem.connect("onmouseenter",this,function(e){dijit.showTooltip(_939,_93c,_93d);})});this._events.push({shape:elem,handle:elem.connect("onmouseleave",this,function(e){dijit.hideTooltip(_93c);})});}}});})();}if(!dojo._hasResource["dojox.charting.plot2d.common"]){dojo._hasResource["dojox.charting.plot2d.common"]=true;dojo.provide("dojox.charting.plot2d.common");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common;dojo.mixin(dojox.charting.plot2d.common,{makeStroke:function(_93f){if(!_93f){return _93f;}if(typeof _93f=="string"||_93f instanceof dojo.Color){_93f={color:_93f};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_93f);},augmentColor:function(_940,_941){var t=new dojo.Color(_940),c=new dojo.Color(_941);c.a=t.a;return c;},augmentStroke:function(_942,_943){var s=dc.makeStroke(_942);if(s){s.color=dc.augmentColor(s.color,_943);}return s;},augmentFill:function(fill,_944){var fc,c=new dojo.Color(_944);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_944);}return fill;},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_945){var _946=dojo.delegate(dc.defaultStats);for(var i=0;i<_945.length;++i){var run=_945[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _947=_946.vmin,_948=_946.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x=i+1,y=val;if(isNaN(y)){y=0;}_946.hmin=Math.min(_946.hmin,x);_946.hmax=Math.max(_946.hmax,x);_946.vmin=Math.min(_946.vmin,y);_946.vmax=Math.max(_946.vmax,y);}});}if("ymin" in run){_946.vmin=Math.min(_947,run.ymin);}if("ymax" in run){_946.vmax=Math.max(_948,run.ymax);}}else{var _949=_946.hmin,_94a=_946.hmax,_947=_946.vmin,_948=_946.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x="x" in val?val.x:i+1,y=val.y;if(isNaN(x)){x=0;}if(isNaN(y)){y=0;}_946.hmin=Math.min(_946.hmin,x);_946.hmax=Math.max(_946.hmax,x);_946.vmin=Math.min(_946.vmin,y);_946.vmax=Math.max(_946.vmax,y);}});}if("xmin" in run){_946.hmin=Math.min(_949,run.xmin);}if("xmax" in run){_946.hmax=Math.max(_94a,run.xmax);}if("ymin" in run){_946.vmin=Math.min(_947,run.ymin);}if("ymax" in run){_946.vmax=Math.max(_948,run.ymax);}}break;}}}return _946;},calculateBarSize:function(_94b,opt,_94c){if(!_94c){_94c=1;}var gap=opt.gap,size=(_94b-2*gap)/_94c;if("minBarSize" in opt){size=Math.max(size,opt.minBarSize);}if("maxBarSize" in opt){size=Math.min(size,opt.maxBarSize);}size=Math.max(size,1);gap=(_94b-size*_94c)/2;return {size:size,gap:gap};},collectStackedStats:function(_94d){var _94e=dojo.clone(dc.defaultStats);if(_94d.length){_94e.hmin=Math.min(_94e.hmin,1);_94e.hmax=df.foldl(_94d,"seed, run -> Math.max(seed, run.data.length)",_94e.hmax);for(var i=0;i<_94e.hmax;++i){var v=_94d[0].data[i];v=v&&(typeof v=="number"?v:v.y);if(isNaN(v)){v=0;}_94e.vmin=Math.min(_94e.vmin,v);for(var j=1;j<_94d.length;++j){var t=_94d[j].data[i];t=t&&(typeof t=="number"?t:t.y);if(isNaN(t)){t=0;}v+=t;}_94e.vmax=Math.max(_94e.vmax,v);}}return _94e;},curve:function(a,_94f){var arr=a.slice(0);if(_94f=="x"){arr[arr.length]=arr[0];}var p=dojo.map(arr,function(item,i){if(i==0){return "M"+item.x+","+item.y;}if(!isNaN(_94f)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_94f-1)*(dx/_94f))+","+dy+" "+(item.x-(dx/_94f))+","+item.y+" "+item.x+","+item.y;}else{if(_94f=="X"||_94f=="x"||_94f=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_94f=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_94f=="x"){p3=arr[1];}else{p3=p2;}f=1/3;}else{p3=arr[i+1];}var p1p2=Math.sqrt((p2.x-p1.x)*(p2.x-p1.x)+(p2.y-p1.y)*(p2.y-p1.y));var p0p2=Math.sqrt((p2.x-p0.x)*(p2.x-p0.x)+(p2.y-p0.y)*(p2.y-p0.y));var p1p3=Math.sqrt((p3.x-p1.x)*(p3.x-p1.x)+(p3.y-p1.y)*(p3.y-p1.y));var _950=p0p2*f;var _951=p1p3*f;if(_950>p1p2/2&&_951>p1p2/2){_950=p1p2/2;_951=p1p2/2;}else{if(_950>p1p2/2){_950=p1p2/2;_951=p1p2/2*p1p3/p0p2;}else{if(_951>p1p2/2){_951=p1p2/2;_950=p1p2/2*p0p2/p1p3;}}}if(_94f=="S"){if(p0==p1){_950=0;}if(p2==p3){_951=0;}}bz1x=p1.x+_950*(p2.x-p0.x)/p0p2;bz1y=p1.y+_950*(p2.y-p0.y)/p0p2;bz2x=p2.x-_951*(p3.x-p1.x)/p1p3;bz2y=p2.y-_951*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");},getLabel:function(_952,_953,_954){if(dojo.number){return (_953?dojo.number.format(_952,{places:_954}):dojo.number.format(_952))||"";}return _953?_952.toFixed(_954):_952.toString();}});})();}if(!dojo._hasResource["dojox.charting.scaler.primitive"]){dojo._hasResource["dojox.charting.scaler.primitive"]=true;dojo.provide("dojox.charting.scaler.primitive");dojox.charting.scaler.primitive={buildScaler:function(min,max,span,_955){if(min==max){min-=0.5;max+=0.5;}return {bounds:{lower:min,upper:max,from:min,to:max,scale:span/(max-min),span:span},scaler:dojox.charting.scaler.primitive};},buildTicks:function(_956,_957){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_958){var _959=_958.bounds.from,_95a=_958.bounds.scale;return function(x){return (x-_959)*_95a;};},getTransformerFromPlot:function(_95b){var _95c=_95b.bounds.from,_95d=_95b.bounds.scale;return function(x){return x/_95d+_95c;};}};}if(!dojo._hasResource["dojox.charting.plot2d._PlotEvents"]){dojo._hasResource["dojox.charting.plot2d._PlotEvents"]=true;dojo.provide("dojox.charting.plot2d._PlotEvents");dojo.declare("dojox.charting.plot2d._PlotEvents",null,{constructor:function(){this._shapeEvents=[];this._eventSeries={};},destroy:function(){this.resetEvents();this.inherited(arguments);},plotEvent:function(o){},raiseEvent:function(o){this.plotEvent(o);var t=dojo.delegate(o);t.originalEvent=o.type;t.originalPlot=o.plot;t.type="onindirect";dojo.forEach(this.chart.stack,function(plot){if(plot!==this&&plot.plotEvent){t.plot=plot;plot.plotEvent(t);}},this);},connect:function(_95e,_95f){this.dirty=true;return dojo.connect(this,"plotEvent",_95e,_95f);},events:function(){var ls=this.plotEvent._listeners;if(!ls||!ls.length){return false;}for(var i in ls){if(!(i in Array.prototype)){return true;}}return false;},resetEvents:function(){if(this._shapeEvents.length){dojo.forEach(this._shapeEvents,function(item){item.shape.disconnect(item.handle);});this._shapeEvents=[];}this.raiseEvent({type:"onplotreset",plot:this});},_connectSingleEvent:function(o,_960){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_960,this,function(e){o.type=_960;o.event=e;this.raiseEvent(o);o.event=null;})});},_connectEvents:function(o){if(o){o.chart=this.chart;o.plot=this;o.hAxis=this.hAxis||null;o.vAxis=this.vAxis||null;o.eventMask=o.eventMask||o.shape;this._connectSingleEvent(o,"onmouseover");this._connectSingleEvent(o,"onmouseout");this._connectSingleEvent(o,"onclick");}},_reconnectEvents:function(_961){var a=this._eventSeries[_961];if(a){dojo.forEach(a,this._connectEvents,this);}},fireEvent:function(_962,_963,_964,_965){var s=this._eventSeries[_962];if(s&&s.length&&_964<s.length){var o=s[_964];o.type=_963;o.event=_965||null;this.raiseEvent(o);o.event=null;}}});}if(!dojo._hasResource["dojox.charting.plot2d.Base"]){dojo._hasResource["dojox.charting.plot2d.Base"]=true;dojo.provide("dojox.charting.plot2d.Base");dojo.declare("dojox.charting.plot2d.Base",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{constructor:function(_966,_967){this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this.series=[];this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){this.series.push(run);return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},isDataDirty:function(){return dojo.some(this.series,function(item){return item.dirty;});},performZoom:function(dim,_968){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_969=dim.height-_968.b,_96a=this._hScaler.bounds,_96b=(_96a.from-_96a.lower)*_96a.scale,_96c=this._vScaler.bounds,_96d=(_96c.from-_96c.lower)*_96c.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_96b)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_96d-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_968.l*(1-rHScale),_969*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_96b,yoffset:_96d});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},render:function(dim,_96e){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_96f){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_96f.hmin,_96f.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_96f.hmin,_96f.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_96f.vmin,_96f.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_96f.vmin,_96f.vmax,dim.height);}return this;}});}if(!dojo._hasResource["dojox.charting.plot2d.Default"]){dojo._hasResource["dojox.charting.plot2d.Default"]=true;dojo.provide("dojox.charting.plot2d.Default");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_970=df.lambda("item.purgeGroup()");var _971=1200;dojo.declare("dojox.charting.plot2d.Default",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,tension:"",animate:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_972,_973){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_973);du.updateWithPattern(this.opt,_973,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_974){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_974);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_970);this._eventSeries={};this.cleanGroup();this.group.setTransform(null);var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_975,_976,_977,_978=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _979=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_97a=[],_97b=[],rseg=null,_97c,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_97d=this._eventSeries[run.name]=new Array(run.data.length);for(var j=0;j<run.data.length;j++){if(run.data[j]!=null){if(!rseg){rseg=[];_97b.push(j);_97a.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_97a.length;seg++){if(typeof _97a[seg][0]=="number"){_97c=dojo.map(_97a[seg],function(v,i){return {x:ht(i+_97b[seg]+1)+_974.l,y:dim.height-_974.b-vt(v)};},this);}else{_97c=dojo.map(_97a[seg],function(v,i){return {x:ht(v.x)+_974.l,y:dim.height-_974.b-vt(v.y)};},this);}var _97e=this.opt.tension?dc.curve(_97c,this.opt.tension):"";if(this.opt.areas&&_97c.length>1){var fill=_979.series.fill;var _97f=dojo.clone(_97c);if(this.opt.tension){var _980="L"+_97f[_97f.length-1].x+","+(dim.height-_974.b)+" L"+_97f[0].x+","+(dim.height-_974.b)+" L"+_97f[0].x+","+_97f[0].y;run.dyn.fill=s.createPath(_97e+" "+_980).setFill(fill).getFill();}else{_97f.push({x:_97c[_97c.length-1].x,y:dim.height-_974.b});_97f.push({x:_97c[0].x,y:dim.height-_974.b});_97f.push(_97c[0]);run.dyn.fill=s.createPolyline(_97f).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_975=_979.series.stroke;if(_979.series.outline){_976=run.dyn.outline=dc.makeStroke(_979.series.outline);_976.width=2*_976.width+_975.width;}}if(this.opt.markers){run.dyn.marker=_979.symbol;}var _981=null,_982=null,_983=null;if(_975&&_979.series.shadow&&_97c.length>1){var _984=_979.series.shadow,_985=dojo.map(_97c,function(c){return {x:c.x+_984.dx,y:c.y+_984.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_985,this.opt.tension)).setStroke(_984).getStroke();}else{run.dyn.shadow=s.createPolyline(_985).setStroke(_984).getStroke();}}if(this.opt.markers&&_979.marker.shadow){_984=_979.marker.shadow;_983=dojo.map(_985,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_979.symbol).setStroke(_984).setFill(_984.color);},this);}}if(this.opt.lines&&_97c.length>1){if(_976){if(this.opt.tension){run.dyn.outline=s.createPath(_97e).setStroke(_976).getStroke();}else{run.dyn.outline=s.createPolyline(_97c).setStroke(_976).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_97e).setStroke(_975).getStroke();}else{run.dyn.stroke=s.createPolyline(_97c).setStroke(_975).getStroke();}}if(this.opt.markers){_981=new Array(_97c.length);_982=new Array(_97c.length);_976=null;if(_979.marker.outline){_976=dc.makeStroke(_979.marker.outline);_976.width=2*_976.width+(_979.marker.stroke?_979.marker.stroke.width:0);}dojo.forEach(_97c,function(c,i){var path="M"+c.x+" "+c.y+" "+_979.symbol;if(_976){_982[i]=s.createPath(path).setStroke(_976);}_981[i]=s.createPath(path).setStroke(_979.marker.stroke).setFill(_979.marker.fill);},this);run.dyn.markerFill=_979.marker.fill;run.dyn.markerStroke=_979.marker.stroke;if(_978){dojo.forEach(_981,function(s,i){var o={element:"marker",index:i+_97b[seg],run:run,shape:s,outline:_982[i]||null,shadow:_983&&_983[i]||null,cx:_97c[i].x,cy:_97c[i].y};if(typeof _97a[seg][0]=="number"){o.x=i+_97b[seg]+1;o.y=_97a[seg][i];}else{o.x=_97a[seg][i].x;o.y=_97a[seg][i].y;}this._connectEvents(o);_97d[i+_97b[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _986=this.group;dojox.gfx.fx.animateTransform(dojo.delegate({shape:_986,duration:_971,transform:[{name:"translate",start:[0,dim.height-_974.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Lines"]){dojo._hasResource["dojox.charting.plot2d.Lines"]=true;dojo.provide("dojox.charting.plot2d.Lines");dojo.declare("dojox.charting.plot2d.Lines",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Areas"]){dojo._hasResource["dojox.charting.plot2d.Areas"]=true;dojo.provide("dojox.charting.plot2d.Areas");dojo.declare("dojox.charting.plot2d.Areas",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Markers"]){dojo._hasResource["dojox.charting.plot2d.Markers"]=true;dojo.provide("dojox.charting.plot2d.Markers");dojo.declare("dojox.charting.plot2d.Markers",dojox.charting.plot2d.Default,{constructor:function(){this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]){dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]=true;dojo.provide("dojox.charting.plot2d.MarkersOnly");dojo.declare("dojox.charting.plot2d.MarkersOnly",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Scatter"]){dojo._hasResource["dojox.charting.plot2d.Scatter"]=true;dojo.provide("dojox.charting.plot2d.Scatter");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_987=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Scatter",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_988,_989){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_989);du.updateWithPattern(this.opt,_989,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_98a){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_98a);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_987);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_98b=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _98c=t.next("marker",[this.opt,run]),s=run.group,_98d,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_98d=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_98a.l,y:dim.height-_98a.b-vt(v)};},this);}else{_98d=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_98a.l,y:dim.height-_98a.b-vt(v.y)};},this);}var _98e=new Array(_98d.length),_98f=new Array(_98d.length),_990=new Array(_98d.length);dojo.forEach(_98d,function(c,i){var _991=typeof run.data[i]=="number"?t.post(_98c,"marker"):t.addMixin(_98c,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_991.symbol;if(_991.marker.shadow){_98e[i]=s.createPath("M"+(c.x+_991.marker.shadow.dx)+" "+(c.y+_991.marker.shadow.dy)+" "+_991.symbol).setStroke(_991.marker.shadow).setFill(_991.marker.shadow.color);if(this.animate){this._animateScatter(_98e[i],dim.height-_98a.b);}}if(_991.marker.outline){var _992=dc.makeStroke(_991.marker.outline);_992.width=2*_992.width+_991.marker.stroke.width;_990[i]=s.createPath(path).setStroke(_992);if(this.animate){this._animateScatter(_990[i],dim.height-_98a.b);}}var _993=dc.makeStroke(_991.marker.stroke),fill=this._plotFill(_991.marker.fill,dim,_98a);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _994=dojox.gfx.gradutils.getColor(fill,{x:c.x,y:c.y});if(_993){_993.color=_994;}_98f[i]=s.createPath(path).setStroke(_993).setFill(_994);}else{_98f[i]=s.createPath(path).setStroke(_993).setFill(fill);}if(this.animate){this._animateScatter(_98f[i],dim.height-_98a.b);}},this);if(_98f.length){run.dyn.stroke=_98f[_98f.length-1].getStroke();run.dyn.fill=_98f[_98f.length-1].getFill();}if(_98b){var _995=new Array(_98f.length);dojo.forEach(_98f,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_990&&_990[i]||null,shadow:_98e&&_98e[i]||null,cx:_98d[i].x,cy:_98d[i].y};if(typeof run.data[0]=="number"){o.x=i+1;o.y=run.data[i];}else{o.x=run.data[i].x;o.y=run.data[i].y;}this._connectEvents(o);_995[i]=o;},this);this._eventSeries[run.name]=_995;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_996,_997){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_996,duration:1200,transform:[{name:"translate",start:[0,_997],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.lang.functional.sequence"]){dojo._hasResource["dojox.lang.functional.sequence"]=true;dojo.provide("dojox.lang.functional.sequence");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{repeat:function(n,f,z,o){o=o||d.global;f=df.lambda(f);var t=new Array(n),i=1;t[0]=z;for(;i<n;t[i]=z=f.call(o,z),++i){}return t;},until:function(pr,f,z,o){o=o||d.global;f=df.lambda(f);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(z),z=f.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Stacked"]){dojo._hasResource["dojox.charting.plot2d.Stacked"]=true;dojo.provide("dojox.charting.plot2d.Stacked");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_998=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{getSeriesStats:function(){var _999=dc.collectStackedStats(this.series);this._maxRunLength=_999.hmax;return _999;},render:function(dim,_99a){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_99a);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_998);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_99b=this.events(),ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _99c=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_99d,_99e=dojo.map(acc,function(v,i){return {x:ht(i+1)+_99a.l,y:dim.height-_99a.b-vt(v)};},this);var _99f=this.opt.tension?dc.curve(_99e,this.opt.tension):"";if(this.opt.areas){var _9a0=dojo.clone(_99e);if(this.opt.tension){var p=dc.curve(_9a0,this.opt.tension);p+=" L"+_99e[_99e.length-1].x+","+(dim.height-_99a.b)+" L"+_99e[0].x+","+(dim.height-_99a.b)+" L"+_99e[0].x+","+_99e[0].y;run.dyn.fill=s.createPath(p).setFill(_99c.series.fill).getFill();}else{_9a0.push({x:_99e[_99e.length-1].x,y:dim.height-_99a.b});_9a0.push({x:_99e[0].x,y:dim.height-_99a.b});_9a0.push(_99e[0]);run.dyn.fill=s.createPolyline(_9a0).setFill(_99c.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_99c.series.outline){_99d=dc.makeStroke(_99c.series.outline);_99d.width=2*_99d.width+_99c.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_99c.symbol;}var _9a1,_9a2,_9a3;if(_99c.series.shadow&&_99c.series.stroke){var _9a4=_99c.series.shadow,_9a5=dojo.map(_99e,function(c){return {x:c.x+_9a4.dx,y:c.y+_9a4.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_9a5,this.opt.tension)).setStroke(_9a4).getStroke();}else{run.dyn.shadow=s.createPolyline(_9a5).setStroke(_9a4).getStroke();}}if(this.opt.markers){_9a4=_99c.marker.shadow;_9a3=dojo.map(_9a5,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_99c.symbol).setStroke(_9a4).setFill(_9a4.color);},this);}}if(this.opt.lines){if(_99d){if(this.opt.tension){run.dyn.outline=s.createPath(_99f).setStroke(_99d).getStroke();}else{run.dyn.outline=s.createPolyline(_99e).setStroke(_99d).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_99f).setStroke(_99c.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_99e).setStroke(_99c.series.stroke).getStroke();}}if(this.opt.markers){_9a1=new Array(_99e.length);_9a2=new Array(_99e.length);_99d=null;if(_99c.marker.outline){_99d=dc.makeStroke(_99c.marker.outline);_99d.width=2*_99d.width+(_99c.marker.stroke?_99c.marker.stroke.width:0);}dojo.forEach(_99e,function(c,i){var path="M"+c.x+" "+c.y+" "+_99c.symbol;if(_99d){_9a2[i]=s.createPath(path).setStroke(_99d);}_9a1[i]=s.createPath(path).setStroke(_99c.marker.stroke).setFill(_99c.marker.fill);},this);if(_99b){var _9a6=new Array(_9a1.length);dojo.forEach(_9a1,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_9a2[i]||null,shadow:_9a3&&_9a3[i]||null,cx:_99e[i].x,cy:_99e[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_9a6[i]=o;},this);this._eventSeries[run.name]=_9a6;}else{delete this._eventSeries[run.name];}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedLines"]){dojo._hasResource["dojox.charting.plot2d.StackedLines"]=true;dojo.provide("dojox.charting.plot2d.StackedLines");dojo.declare("dojox.charting.plot2d.StackedLines",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.StackedAreas"]){dojo._hasResource["dojox.charting.plot2d.StackedAreas"]=true;dojo.provide("dojox.charting.plot2d.StackedAreas");dojo.declare("dojox.charting.plot2d.StackedAreas",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Columns"]){dojo._hasResource["dojox.charting.plot2d.Columns"]=true;dojo.provide("dojox.charting.plot2d.Columns");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_9a7=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Columns",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_9a8,_9a9){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_9a9);du.updateWithPattern(this.opt,_9a9,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _9aa=dc.collectSimpleStats(this.series);_9aa.hmin-=0.5;_9aa.hmax+=0.5;return _9aa;},render:function(dim,_9ab){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9ab);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_9a7);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9ac,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9ad=Math.max(0,this._vScaler.bounds.lower),_9ae=vt(_9ad),_9af=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_9ac=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9b0=t.next("column",[this.opt,run]),s=run.group,_9b1=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _9b2=run.data[j];if(_9b2!==null){var v=typeof _9b2=="number"?_9b2:_9b2.y,vv=vt(v),_9b3=vv-_9ae,h=Math.abs(_9b3),_9b4=typeof _9b2!="number"?t.addMixin(_9b0,"column",_9b2,true):t.post(_9b0,"column");if(_9ac>=1&&h>=1){var rect={x:_9ab.l+ht(j+0.5)+gap,y:dim.height-_9ab.b-(v>_9ad?vv:_9ae),width:_9ac,height:h};var _9b5=this._plotFill(_9b4.series.fill,dim,_9ab);_9b5=this._shapeFill(_9b5,rect);var _9b6=s.createRect(rect).setFill(_9b5).setStroke(_9b4.series.stroke);run.dyn.fill=_9b6.getFill();run.dyn.stroke=_9b6.getStroke();if(_9af){var o={element:"column",index:j,run:run,shape:_9b6,x:j+0.5,y:v};this._connectEvents(o);_9b1[j]=o;}if(this.animate){this._animateColumn(_9b6,dim.height-_9ab.b-_9ae,h);}}}}this._eventSeries[run.name]=_9b1;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_9b7,_9b8,_9b9){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_9b7,duration:1200,transform:[{name:"translate",start:[0,_9b8-(_9b8/_9b9)],end:[0,0]},{name:"scale",start:[1,1/_9b9],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedColumns"]){dojo._hasResource["dojox.charting.plot2d.StackedColumns"]=true;dojo.provide("dojox.charting.plot2d.StackedColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_9ba=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{getSeriesStats:function(){var _9bb=dc.collectStackedStats(this.series);this._maxRunLength=_9bb.hmax;_9bb.hmin-=0.5;_9bb.hmax+=0.5;return _9bb;},render:function(dim,_9bc){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _9bd=run.data[j];if(_9bd!==null){var v=typeof _9bd=="number"?_9bd:_9bd.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9bc);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_9ba);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9be,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9bf=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_9be=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9c0=t.next("column",[this.opt,run]),s=run.group,_9c1=new Array(acc.length);for(var j=0;j<acc.length;++j){var _9bd=run.data[j];if(_9bd!==null){var v=acc[j],_9c2=vt(v),_9c3=typeof _9bd!="number"?t.addMixin(_9c0,"column",_9bd,true):t.post(_9c0,"column");if(_9be>=1&&_9c2>=1){var rect={x:_9bc.l+ht(j+0.5)+gap,y:dim.height-_9bc.b-vt(v),width:_9be,height:_9c2};var _9c4=this._plotFill(_9c3.series.fill,dim,_9bc);_9c4=this._shapeFill(_9c4,rect);var _9c5=s.createRect(rect).setFill(_9c4).setStroke(_9c3.series.stroke);run.dyn.fill=_9c5.getFill();run.dyn.stroke=_9c5.getStroke();if(_9bf){var o={element:"column",index:j,run:run,shape:_9c5,x:j+0.5,y:v};this._connectEvents(o);_9c1[j]=o;}if(this.animate){this._animateColumn(_9c5,dim.height-_9bc.b,_9c2);}}}}this._eventSeries[run.name]=_9c1;run.dirty=false;for(var j=0;j<run.data.length;++j){var _9bd=run.data[j];if(_9bd!==null){var v=typeof _9bd=="number"?_9bd:_9bd.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]){dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]=true;dojo.provide("dojox.charting.plot2d.ClusteredColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_9c6=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_9c7){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9c7);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_9c6);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9c8,_9c9,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9ca=Math.max(0,this._vScaler.bounds.lower),_9cb=vt(_9ca),_9cc=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_9c8=_9c9=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_9cd=_9c9*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9ce=t.next("column",[this.opt,run]),s=run.group,_9cf=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _9d0=run.data[j];if(_9d0!==null){var v=typeof _9d0=="number"?_9d0:_9d0.y,vv=vt(v),_9d1=vv-_9cb,h=Math.abs(_9d1),_9d2=typeof _9d0!="number"?t.addMixin(_9ce,"column",_9d0,true):t.post(_9ce,"column");if(_9c8>=1&&h>=1){var rect={x:_9c7.l+ht(j+0.5)+gap+_9cd,y:dim.height-_9c7.b-(v>_9ca?vv:_9cb),width:_9c8,height:h};var _9d3=this._plotFill(_9d2.series.fill,dim,_9c7);_9d3=this._shapeFill(_9d3,rect);var _9d4=s.createRect(rect).setFill(_9d3).setStroke(_9d2.series.stroke);run.dyn.fill=_9d4.getFill();run.dyn.stroke=_9d4.getStroke();if(_9cc){var o={element:"column",index:j,run:run,shape:_9d4,x:j+0.5,y:v};this._connectEvents(o);_9cf[j]=o;}if(this.animate){this._animateColumn(_9d4,dim.height-_9c7.b-_9cb,h);}}}}this._eventSeries[run.name]=_9cf;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bars"]){dojo._hasResource["dojox.charting.plot2d.Bars"]=true;dojo.provide("dojox.charting.plot2d.Bars");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_9d5=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bars",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_9d6,_9d7){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_9d7);du.updateWithPattern(this.opt,_9d7,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _9d8=dc.collectSimpleStats(this.series),t;_9d8.hmin-=0.5;_9d8.hmax+=0.5;t=_9d8.hmin,_9d8.hmin=_9d8.vmin,_9d8.vmin=t;t=_9d8.hmax,_9d8.hmax=_9d8.vmax,_9d8.vmax=t;return _9d8;},render:function(dim,_9d9){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9d9);}this.dirty=this.isDirty();this.resetEvents();if(this.dirty){dojo.forEach(this.series,_9d5);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9da,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9db=Math.max(0,this._hScaler.bounds.lower),_9dc=ht(_9db),_9dd=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_9da=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9de=t.next("bar",[this.opt,run]),s=run.group,_9df=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _9e0=run.data[j];if(_9e0!==null){var v=typeof _9e0=="number"?_9e0:_9e0.y,hv=ht(v),_9e1=hv-_9dc,w=Math.abs(_9e1),_9e2=typeof _9e0!="number"?t.addMixin(_9de,"bar",_9e0,true):t.post(_9de,"bar");if(w>=1&&_9da>=1){var rect={x:_9d9.l+(v<_9db?hv:_9dc),y:dim.height-_9d9.b-vt(j+1.5)+gap,width:w,height:_9da};var _9e3=this._plotFill(_9e2.series.fill,dim,_9d9);_9e3=this._shapeFill(_9e3,rect);var _9e4=s.createRect(rect).setFill(_9e3).setStroke(_9e2.series.stroke);run.dyn.fill=_9e4.getFill();run.dyn.stroke=_9e4.getStroke();if(_9dd){var o={element:"bar",index:j,run:run,shape:_9e4,x:v,y:j+1.5};this._connectEvents(o);_9df[j]=o;}if(this.animate){this._animateBar(_9e4,_9d9.l+_9dc,-w);}}}}this._eventSeries[run.name]=_9df;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_9e5,_9e6,_9e7){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_9e5,duration:1200,transform:[{name:"translate",start:[_9e6-(_9e6/_9e7),0],end:[0,0]},{name:"scale",start:[1/_9e7,1],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedBars"]){dojo._hasResource["dojox.charting.plot2d.StackedBars"]=true;dojo.provide("dojox.charting.plot2d.StackedBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_9e8=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{getSeriesStats:function(){var _9e9=dc.collectStackedStats(this.series),t;this._maxRunLength=_9e9.hmax;_9e9.hmin-=0.5;_9e9.hmax+=0.5;t=_9e9.hmin,_9e9.hmin=_9e9.vmin,_9e9.vmin=t;t=_9e9.hmax,_9e9.hmax=_9e9.vmax,_9e9.vmax=t;return _9e9;},render:function(dim,_9ea){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _9eb=run.data[j];if(_9eb!==null){var v=typeof _9eb=="number"?_9eb:_9eb.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9ea);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_9e8);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9ec,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9ed=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_9ec=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9ee=t.next("bar",[this.opt,run]),s=run.group,_9ef=new Array(acc.length);for(var j=0;j<acc.length;++j){var _9eb=run.data[j];if(_9eb!==null){var v=acc[j],_9f0=ht(v),_9f1=typeof _9eb!="number"?t.addMixin(_9ee,"bar",_9eb,true):t.post(_9ee,"bar");if(_9f0>=1&&_9ec>=1){var rect={x:_9ea.l,y:dim.height-_9ea.b-vt(j+1.5)+gap,width:_9f0,height:_9ec};var _9f2=this._plotFill(_9f1.series.fill,dim,_9ea);_9f2=this._shapeFill(_9f2,rect);var _9f3=s.createRect(rect).setFill(_9f2).setStroke(_9f1.series.stroke);run.dyn.fill=_9f3.getFill();run.dyn.stroke=_9f3.getStroke();if(_9ed){var o={element:"bar",index:j,run:run,shape:_9f3,x:v,y:j+1.5};this._connectEvents(o);_9ef[j]=o;}if(this.animate){this._animateBar(_9f3,_9ea.l,-_9f0);}}}}this._eventSeries[run.name]=_9ef;run.dirty=false;for(var j=0;j<run.data.length;++j){var _9eb=run.data[j];if(_9eb!==null){var v=typeof _9eb=="number"?_9eb:_9eb.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]){dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]=true;dojo.provide("dojox.charting.plot2d.ClusteredBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_9f4=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_9f5){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_9f5);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_9f4);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_9f6,_9f7,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_9f8=Math.max(0,this._hScaler.bounds.lower),_9f9=ht(_9f8),_9fa=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_9f6=_9f7=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_9fb=_9f7*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _9fc=t.next("bar",[this.opt,run]),s=run.group,_9fd=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _9fe=run.data[j];if(_9fe!==null){var v=typeof _9fe=="number"?_9fe:_9fe.y,hv=ht(v),_9ff=hv-_9f9,w=Math.abs(_9ff),_a00=typeof _9fe!="number"?t.addMixin(_9fc,"bar",_9fe,true):t.post(_9fc,"bar");if(w>=1&&_9f6>=1){var rect={x:_9f5.l+(v<_9f8?hv:_9f9),y:dim.height-_9f5.b-vt(j+1.5)+gap+_9fb,width:w,height:_9f6};var _a01=this._plotFill(_a00.series.fill,dim,_9f5);_a01=this._shapeFill(_a01,rect);var _a02=s.createRect(rect).setFill(_a01).setStroke(_a00.series.stroke);run.dyn.fill=_a02.getFill();run.dyn.stroke=_a02.getStroke();if(_9fa){var o={element:"bar",index:j,run:run,shape:_a02,x:v,y:j+1.5};this._connectEvents(o);_9fd[j]=o;}if(this.animate){this._animateBar(_a02,_9f5.l+_9f9,-_9ff);}}}}this._eventSeries[run.name]=_9fd;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Grid"]){dojo._hasResource["dojox.charting.plot2d.Grid"]=true;dojo.provide("dojox.charting.plot2d.Grid");(function(){var du=dojox.lang.utils,dc=dojox.charting.plot2d.common;dojo.declare("dojox.charting.plot2d.Grid",dojox.charting.Element,{defaultParams:{hAxis:"x",vAxis:"y",hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:"none",vStripes:"none",animate:null},optionalParams:{},constructor:function(_a03,_a04){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a04);this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.dirty=true;this.animate=this.opt.animate;this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},performZoom:function(dim,_a05){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_a06=dim.height-_a05.b,_a07=this._hAxis.getScaler().bounds,_a08=(_a07.from-_a07.lower)*_a07.scale,_a09=this._vAxis.getScaler().bounds,_a0a=(_a09.from-_a09.lower)*_a09.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_a08)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_a0a-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_a05.l*(1-rHScale),_a06*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_a08,yoffset:_a0a});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},getRequiredColors:function(){return 0;},render:function(dim,_a0b){if(this.zoom){return this.performZoom(dim,_a0b);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _a0c=this._vAxis.getScaler(),vt=_a0c.scaler.getTransformerFromModel(_a0c),_a0d=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_a0d.minor,function(tick){var y=dim.height-_a0b.b-vt(tick.value);var _a0e=s.createLine({x1:_a0b.l,y1:y,x2:dim.width-_a0b.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_a0e,"h",_a0b.l,_a0b.r+_a0b.l-dim.width);}},this);}if(this.opt.hMajorLines){dojo.forEach(_a0d.major,function(tick){var y=dim.height-_a0b.b-vt(tick.value);var _a0f=s.createLine({x1:_a0b.l,y1:y,x2:dim.width-_a0b.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_a0f,"h",_a0b.l,_a0b.r+_a0b.l-dim.width);}},this);}}catch(e){}try{var _a10=this._hAxis.getScaler(),ht=_a10.scaler.getTransformerFromModel(_a10),_a0d=this._hAxis.getTicks();if(_a0d&&this.opt.vMinorLines){dojo.forEach(_a0d.minor,function(tick){var x=_a0b.l+ht(tick.value);var _a11=s.createLine({x1:x,y1:_a0b.t,x2:x,y2:dim.height-_a0b.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_a11,"v",dim.height-_a0b.b,dim.height-_a0b.b-_a0b.t);}},this);}if(_a0d&&this.opt.vMajorLines){dojo.forEach(_a0d.major,function(tick){var x=_a0b.l+ht(tick.value);var _a12=s.createLine({x1:x,y1:_a0b.t,x2:x,y2:dim.height-_a0b.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_a12,"v",dim.height-_a0b.b,dim.height-_a0b.b-_a0b.t);}},this);}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_a13,type,_a14,size){var _a15=type=="h"?[_a14,0]:[0,_a14];var _a16=type=="h"?[1/size,1]:[1,1/size];dojox.gfx.fx.animateTransform(dojo.delegate({shape:_a13,duration:1200,transform:[{name:"translate",start:_a15,end:[0,0]},{name:"scale",start:_a16,end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Pie"]){dojo._hasResource["dojox.charting.plot2d.Pie"]=true;dojo.provide("dojox.charting.plot2d.Pie");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_a17=0.2;dojo.declare("dojox.charting.plot2d.Pie",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",labelWiring:{}},constructor:function(_a18,_a19){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a19);du.updateWithPattern(this.opt,_a19,this.optionalParams);this.run=null;this.dyn=[];},clear:function(){this.dirty=true;this.dyn=[];this.run=null;return this;},setAxis:function(axis){return this;},addSeries:function(run){this.run=run;return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},render:function(dim,_a1a){if(!this.dirty){return this;}this.resetEvents();this.dirty=false;this._eventSeries={};this.cleanGroup();var s=this.group,t=this.chart.theme;if(!this.run||!this.run.data.length){return this;}var rx=(dim.width-_a1a.l-_a1a.r)/2,ry=(dim.height-_a1a.t-_a1a.b)/2,r=Math.min(rx,ry),_a1b="font" in this.opt?this.opt.font:t.axis.font,size=_a1b?g.normalizedLength(g.splitFontString(_a1b).size):0,_a1c="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_a1d=m._degToRad(this.opt.startAngle),_a1e=_a1d,step,_a1f,_a20,_a21,_a22,_a23,run=this.run.data,_a24=this.events();if(typeof run[0]=="number"){_a1f=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_a1f,"<= 0")){return this;}_a20=df.map(_a1f,"/this",df.foldl(_a1f,"+",0));if(this.opt.labels){_a21=dojo.map(_a20,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_a1f=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_a1f,"<= 0")){return this;}_a20=df.map(_a1f,"/this",df.foldl(_a1f,"+",0));if(this.opt.labels){_a21=dojo.map(_a20,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _a25=df.map(run,function(v,i){if(v===null||typeof v=="number"){return t.next("slice",[this.opt,this.run],true);}return t.next("slice",[this.opt,this.run,v],true);},this);if(this.opt.labels){_a22=df.foldl1(df.map(_a21,function(_a26,i){var font=_a25[i].series.font;return dojox.gfx._base._getTextBox(_a26,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_a22,ry-size)+this.opt.labelOffset;}_a23=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_a23=r-this.opt.labelOffset;}var _a27={cx:_a1a.l+rx,cy:_a1a.t+ry,r:r};this.dyn=[];var _a28=new Array(_a20.length);dojo.some(_a20,function(_a29,i){if(_a29<=0){return false;}var v=run[i],_a2a=_a25[i],_a2b;if(_a29>=1){_a2b=this._plotFill(_a2a.series.fill,dim,_a1a);_a2b=this._shapeFill(_a2b,{x:_a27.cx-_a27.r,y:_a27.cy-_a27.r,width:2*_a27.r,height:2*_a27.r});_a2b=this._pseudoRadialFill(_a2b,{x:_a27.cx,y:_a27.cy},_a27.r);var _a2c=s.createCircle(_a27).setFill(_a2b).setStroke(_a2a.series.stroke);this.dyn.push({fill:_a2b,stroke:_a2a.series.stroke});if(_a24){var o={element:"slice",index:i,run:this.run,shape:_a2c,x:i,y:typeof v=="number"?v:v.y,cx:_a27.cx,cy:_a27.cy,cr:r};this._connectEvents(o);_a28[i]=o;}return true;}var end=_a1e+_a29*2*Math.PI;if(i+1==_a20.length){end=_a1d+2*Math.PI;}var step=end-_a1e,x1=_a27.cx+r*Math.cos(_a1e),y1=_a27.cy+r*Math.sin(_a1e),x2=_a27.cx+r*Math.cos(end),y2=_a27.cy+r*Math.sin(end);var _a2d=m._degToRad(this.opt.fanSize);if(_a2a.series.fill&&_a2a.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_a2d){var _a2e=s.createGroup(),_a2f=Math.ceil(step/_a2d),_a30=step/_a2f;_a2b=this._shapeFill(_a2a.series.fill,{x:_a27.cx-_a27.r,y:_a27.cy-_a27.r,width:2*_a27.r,height:2*_a27.r});for(var j=0;j<_a2f;++j){var _a31=j==0?x1:_a27.cx+r*Math.cos(_a1e+(j-_a17)*_a30),_a32=j==0?y1:_a27.cy+r*Math.sin(_a1e+(j-_a17)*_a30),_a33=j==_a2f-1?x2:_a27.cx+r*Math.cos(_a1e+(j+1+_a17)*_a30),_a34=j==_a2f-1?y2:_a27.cy+r*Math.sin(_a1e+(j+1+_a17)*_a30),fan=_a2e.createPath({}).moveTo(_a27.cx,_a27.cy).lineTo(_a31,_a32).arcTo(r,r,0,_a30>Math.PI,true,_a33,_a34).lineTo(_a27.cx,_a27.cy).closePath().setFill(this._pseudoRadialFill(_a2b,{x:_a27.cx,y:_a27.cy},r,_a1e+(j+0.5)*_a30,_a1e+(j+0.5)*_a30));}_a2e.createPath({}).moveTo(_a27.cx,_a27.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_a27.cx,_a27.cy).closePath().setStroke(_a2a.series.stroke);_a2c=_a2e;}else{_a2c=s.createPath({}).moveTo(_a27.cx,_a27.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_a27.cx,_a27.cy).closePath().setStroke(_a2a.series.stroke);var _a2b=_a2a.series.fill;if(_a2b&&_a2b.type==="radial"){_a2b=this._shapeFill(_a2b,{x:_a27.cx-_a27.r,y:_a27.cy-_a27.r,width:2*_a27.r,height:2*_a27.r});if(this.opt.radGrad==="linear"){_a2b=this._pseudoRadialFill(_a2b,{x:_a27.cx,y:_a27.cy},r,_a1e,end);}}else{if(_a2b&&_a2b.type==="linear"){_a2b=this._plotFill(_a2b,dim,_a1a);_a2b=this._shapeFill(_a2b,_a2c.getBoundingBox());}}_a2c.setFill(_a2b);}this.dyn.push({fill:_a2b,stroke:_a2a.series.stroke});if(_a24){var o={element:"slice",index:i,run:this.run,shape:_a2c,x:i,y:typeof v=="number"?v:v.y,cx:_a27.cx,cy:_a27.cy,cr:r};this._connectEvents(o);_a28[i]=o;}_a1e=end;return false;},this);if(this.opt.labels){if(this.opt.labelStyle=="default"){_a1e=_a1d;dojo.some(_a20,function(_a35,i){if(_a35<=0){return false;}var _a36=_a25[i];if(_a35>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_a27.cx,_a27.cy+size/2,"middle",_a21[i],_a36.series.font,_a36.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_a1e+_a35*2*Math.PI,v=run[i];if(i+1==_a20.length){end=_a1d+2*Math.PI;}var _a37=(_a1e+end)/2,x=_a27.cx+_a23*Math.cos(_a37),y=_a27.cy+_a23*Math.sin(_a37)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_a21[i],_a36.series.font,_a36.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_a1e=end;return false;},this);}else{if(this.opt.labelStyle=="columns"){_a1e=_a1d;var _a38=[];dojo.forEach(_a20,function(_a39,i){var end=_a1e+_a39*2*Math.PI;if(i+1==_a20.length){end=_a1d+2*Math.PI;}var _a3a=(_a1e+end)/2;_a38.push({angle:_a3a,left:Math.cos(_a3a)<0,theme:_a25[i],index:i,omit:end-_a1e<0.001});_a1e=end;});var _a3b=dojox.gfx._base._getTextBox("a",{font:_a1b}).h;this._getProperLabelRadius(_a38,_a3b,_a27.r*1.1);dojo.forEach(_a38,function(_a3c,i){if(!_a3c.omit){var _a3d=_a27.cx-_a27.r*2,_a3e=_a27.cx+_a27.r*2,_a3f=dojox.gfx._base._getTextBox(_a21[i],{font:_a1b}).w,x=_a27.cx+_a3c.labelR*Math.cos(_a3c.angle),y=_a27.cy+_a3c.labelR*Math.sin(_a3c.angle),_a40=(_a3c.left)?(_a3d+_a3f):(_a3e-_a3f),_a41=(_a3c.left)?_a3d:_a40;var _a42=s.createPath().moveTo(_a27.cx+_a27.r*Math.cos(_a3c.angle),_a27.cy+_a27.r*Math.sin(_a3c.angle));if(Math.abs(_a3c.labelR*Math.cos(_a3c.angle))<_a27.r*2-_a3f){_a42.lineTo(x,y);}_a42.lineTo(_a40,y).setStroke(_a3c.theme.series.labelWiring);var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_a41,y,"left",_a21[i],_a3c.theme.series.font,_a3c.theme.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}},this);}}}var esi=0;this._eventSeries[this.run.name]=df.map(run,function(v){return v<=0?null:_a28[esi++];});return this;},_getProperLabelRadius:function(_a43,_a44,_a45){var _a46={},_a47={},_a48=1,_a49=1;if(_a43.length==1){_a43[0].labelR=_a45;return;}for(var i=0;i<_a43.length;i++){var _a4a=Math.abs(Math.sin(_a43[i].angle));if(_a43[i].left){if(_a48>_a4a){_a48=_a4a;_a46=_a43[i];}}else{if(_a49>_a4a){_a49=_a4a;_a47=_a43[i];}}}_a46.labelR=_a47.labelR=_a45;this._caculateLabelR(_a46,_a43,_a44);this._caculateLabelR(_a47,_a43,_a44);},_caculateLabelR:function(_a4b,_a4c,_a4d){var i=_a4b.index,_a4e=_a4c.length,_a4f=_a4b.labelR;while(!(_a4c[i%_a4e].left^_a4c[(i+1)%_a4e].left)){if(!_a4c[(i+1)%_a4e].omit){var _a50=(Math.sin(_a4c[i%_a4e].angle)*_a4f+((_a4c[i%_a4e].left)?(-_a4d):_a4d))/Math.sin(_a4c[(i+1)%_a4e].angle);_a4f=(_a50<_a4b.labelR)?_a4b.labelR:_a50;_a4c[(i+1)%_a4e].labelR=_a4f;}i++;}i=_a4b.index,j=(i==0)?_a4e-1:i-1;while(!(_a4c[i].left^_a4c[j].left)){if(!_a4c[j].omit){var _a50=(Math.sin(_a4c[i].angle)*_a4f+((_a4c[i].left)?_a4d:(-_a4d)))/Math.sin(_a4c[j].angle);_a4f=(_a50<_a4b.labelR)?_a4b.labelR:_a50;_a4c[j].labelR=_a4f;}i--;j--;i=(i<0)?i+_a4c.length:i;j=(j<0)?j+_a4c.length:j;}},_getLabel:function(_a51){return dc.getLabel(_a51,this.opt.fixed,this.opt.precision);}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bubble"]){dojo._hasResource["dojox.charting.plot2d.Bubble"]=true;dojo.provide("dojox.charting.plot2d.Bubble");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_a52=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bubble",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",animate:null},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_a53,_a54){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a54);du.updateWithPattern(this.opt,_a54,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_a55){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_a55);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_a52);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_a56=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}if(typeof run.data[0]=="number"){console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ",run);continue;}var _a57=t.next("circle",[this.opt,run]),s=run.group,_a58=dojo.map(run.data,function(v,i){return v?{x:ht(v.x)+_a55.l,y:dim.height-_a55.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _a59=null,_a5a=null,_a5b=null;if(_a57.series.shadow){_a5b=dojo.map(_a58,function(item){if(item!==null){var _a5c=t.addMixin(_a57,"circle",item,true),_a5d=_a5c.series.shadow;var _a5e=s.createCircle({cx:item.x+_a5d.dx,cy:item.y+_a5d.dy,r:item.radius}).setStroke(_a5d).setFill(_a5d.color);if(this.animate){this._animateBubble(_a5e,dim.height-_a55.b,item.radius);}return _a5e;}return null;},this);if(_a5b.length){run.dyn.shadow=_a5b[_a5b.length-1].getStroke();}}if(_a57.series.outline){_a5a=dojo.map(_a58,function(item){if(item!==null){var _a5f=t.addMixin(_a57,"circle",item,true),_a60=dc.makeStroke(_a5f.series.outline);_a60.width=2*_a60.width+_a57.series.stroke.width;var _a61=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_a60);if(this.animate){this._animateBubble(_a61,dim.height-_a55.b,item.radius);}return _a61;}return null;},this);if(_a5a.length){run.dyn.outline=_a5a[_a5a.length-1].getStroke();}}_a59=dojo.map(_a58,function(item){if(item!==null){var _a62=t.addMixin(_a57,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _a63=this._plotFill(_a62.series.fill,dim,_a55);_a63=this._shapeFill(_a63,rect);var _a64=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_a63).setStroke(_a62.series.stroke);if(this.animate){this._animateBubble(_a64,dim.height-_a55.b,item.radius);}return _a64;}return null;},this);if(_a59.length){run.dyn.fill=_a59[_a59.length-1].getFill();run.dyn.stroke=_a59[_a59.length-1].getStroke();}if(_a56){var _a65=new Array(_a59.length);dojo.forEach(_a59,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_a5a&&_a5a[i]||null,shadow:_a5b&&_a5b[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_a58[i].x,cy:_a58[i].y,cr:_a58[i].radius};this._connectEvents(o);_a65[i]=o;}},this);this._eventSeries[run.name]=_a65;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_a66,_a67,size){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_a66,duration:1200,transform:[{name:"translate",start:[0,_a67],end:[0,0]},{name:"scale",start:[0,1/size],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Candlesticks"]){dojo._hasResource["dojox.charting.plot2d.Candlesticks"]=true;dojo.provide("dojox.charting.plot2d.Candlesticks");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_a68=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Candlesticks",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_a69,_a6a){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a6a);du.updateWithPattern(this.opt,_a6a,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_a6b){var _a6c=dojo.delegate(dc.defaultStats);for(var i=0;i<_a6b.length;i++){var run=_a6b[i];if(!run.data.length){continue;}var _a6d=_a6c.vmin,_a6e=_a6c.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_a6c.hmin=Math.min(_a6c.hmin,x);_a6c.hmax=Math.max(_a6c.hmax,x);_a6c.vmin=Math.min(_a6c.vmin,val.open,val.close,val.high,val.low);_a6c.vmax=Math.max(_a6c.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_a6c.vmin=Math.min(_a6d,run.ymin);}if("ymax" in run){_a6c.vmax=Math.max(_a6e,run.ymax);}}return _a6c;},getSeriesStats:function(){var _a6f=this.collectStats(this.series);_a6f.hmin-=0.5;_a6f.hmax+=0.5;return _a6f;},render:function(dim,_a70){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_a70);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_a68);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_a71,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_a72=Math.max(0,this._vScaler.bounds.lower),_a73=vt(_a72),_a74=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_a71=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _a75=t.next("candlestick",[this.opt,run]),s=run.group,_a76=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _a77=t.addMixin(_a75,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_a70.l+gap,y=dim.height-_a70.b,open=vt(v.open),_a78=vt(v.close),high=vt(v.high),low=vt(v.low);if("mid" in v){var mid=vt(v.mid);}if(low>high){var tmp=high;high=low;low=tmp;}if(_a71>=1){var _a79=open>_a78;var line={x1:_a71/2,x2:_a71/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_a78),width:_a71,height:Math.max(_a79?open-_a78:_a78-open,1)};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _a7a=shape.createGroup();_a7a.createLine(line).setStroke(_a77.series.stroke);_a7a.createRect(rect).setStroke(_a77.series.stroke).setFill(_a79?_a77.series.fill:"white");if("mid" in v){_a7a.createLine({x1:(_a77.series.stroke.width||1),x2:_a71-(_a77.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_a79?"white":_a77.series.stroke);}run.dyn.fill=_a77.series.fill;run.dyn.stroke=_a77.series.stroke;if(_a74){var o={element:"candlestick",index:j,run:run,shape:_a7a,x:x,y:y-Math.max(open,_a78),cx:_a71/2,cy:(y-Math.max(open,_a78))+(Math.max(_a79?open-_a78:_a78-open,1)/2),width:_a71,height:Math.max(_a79?open-_a78:_a78-open,1),data:v};this._connectEvents(o);_a76[j]=o;}}if(this.animate){this._animateCandlesticks(shape,y-low,high-low);}}}this._eventSeries[run.name]=_a76;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_a7b,_a7c,_a7d){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_a7b,duration:1200,transform:[{name:"translate",start:[0,_a7c-(_a7c/_a7d)],end:[0,0]},{name:"scale",start:[1,1/_a7d],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.OHLC"]){dojo._hasResource["dojox.charting.plot2d.OHLC"]=true;dojo.provide("dojox.charting.plot2d.OHLC");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_a7e=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.OHLC",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_a7f,_a80){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a80);du.updateWithPattern(this.opt,_a80,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_a81){var _a82=dojo.delegate(dc.defaultStats);for(var i=0;i<_a81.length;i++){var run=_a81[i];if(!run.data.length){continue;}var _a83=_a82.vmin,_a84=_a82.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_a82.hmin=Math.min(_a82.hmin,x);_a82.hmax=Math.max(_a82.hmax,x);_a82.vmin=Math.min(_a82.vmin,val.open,val.close,val.high,val.low);_a82.vmax=Math.max(_a82.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_a82.vmin=Math.min(_a83,run.ymin);}if("ymax" in run){_a82.vmax=Math.max(_a84,run.ymax);}}return _a82;},getSeriesStats:function(){var _a85=this.collectStats(this.series);_a85.hmin-=0.5;_a85.hmax+=0.5;return _a85;},render:function(dim,_a86){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_a86);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_a7e);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_a87,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_a88=Math.max(0,this._vScaler.bounds.lower),_a89=vt(_a88),_a8a=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_a87=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _a8b=t.next("candlestick",[this.opt,run]),s=run.group,_a8c=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _a8d=t.addMixin(_a8b,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_a86.l+gap,y=dim.height-_a86.b,open=vt(v.open),_a8e=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_a87>=1){var hl={x1:_a87/2,x2:_a87/2,y1:y-high,y2:y-low},op={x1:0,x2:((_a87/2)+((_a8d.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_a87/2)-((_a8d.series.stroke.width||1)/2)),x2:_a87,y1:y-_a8e,y2:y-_a8e};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _a8f=shape.createGroup();_a8f.createLine(hl).setStroke(_a8d.series.stroke);_a8f.createLine(op).setStroke(_a8d.series.stroke);_a8f.createLine(cl).setStroke(_a8d.series.stroke);run.dyn.stroke=_a8d.series.stroke;if(_a8a){var o={element:"candlestick",index:j,run:run,shape:_a8f,x:x,y:y-Math.max(open,_a8e),cx:_a87/2,cy:(y-Math.max(open,_a8e))+(Math.max(open>_a8e?open-_a8e:_a8e-open,1)/2),width:_a87,height:Math.max(open>_a8e?open-_a8e:_a8e-open,1),data:v};this._connectEvents(o);_a8c[j]=o;}}if(this.animate){this._animateOHLC(shape,y-low,high-low);}}}this._eventSeries[run.name]=_a8c;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_a90,_a91,_a92){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_a90,duration:1200,transform:[{name:"translate",start:[0,_a91-(_a91/_a92)],end:[0,0]},{name:"scale",start:[1,1/_a92],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Spider"]){dojo._hasResource["dojox.charting.plot2d.Spider"]=true;dojo.provide("dojox.charting.plot2d.Spider");dojo.experimental("dojox.charting.plot2d.Spider");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_a93=0.2;dojo.declare("dojox.charting.plot2d.Spider",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:true,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:dojo.fx.easing.backOut,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(_a94,_a95){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_a95);du.updateWithPattern(this.opt,_a95,this.optionalParams);this.series=[];this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};},clear:function(){this.dirty=true;this.dyn=[];this.series=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this;},setAxis:function(axis){return this;},addSeries:function(run){var _a96=false;this.series.push(run);for(var key in run.data){var val=run.data[key],data=this.datas[key];if(data){data.vlist.push(val);data.min=Math.min(data.min,val);data.max=Math.max(data.max,val);}else{this.datas[key]={min:val,max:val,vlist:[val]};}}if(this.labelKey.length<=0){for(var key in run.data){this.labelKey.push(key);}}return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_a97){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_a97.hmin,_a97.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_a97.hmin,_a97.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_a97.vmin,_a97.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_a97.vmin,_a97.vmax,dim.height);}return this;},render:function(dim,_a98){if(!this.dirty){return this;}this.dirty=false;this.cleanGroup();var s=this.group,t=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length){return this;}var o=this.opt,ta=t.axis,rx=(dim.width-_a98.l-_a98.r)/2,ry=(dim.height-_a98.t-_a98.b)/2,r=Math.min(rx,ry),_a99=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_a9a=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_a9b=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_a9c=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_a9d=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_a9e=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_a9f=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_aa0=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_aa1=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_aa2=g.normalizedLength(g.splitFontString(_a9a).size),_aa3=m._degToRad(o.startAngle),_aa4=_aa3,step,_aa5,_aa6,_aa7,_aa8,_aa9,_aaa,_aab,_aac,_aad,_aae,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_aaf=o.labelOffset<-10?o.labelOffset:-10,_ab0=0.2;if(o.labels){_aa7=dojo.map(this.series,function(s){return s.name;},this);_aa8=df.foldl1(df.map(_aa7,function(_ab1,i){var font=t.series.font;return dojox.gfx._base._getTextBox(_ab1,{font:font}).w;},this),"Math.max(a, b)")/2;r=Math.min(rx-2*_aa8,ry-_aa2)+_aaf;_aa9=r-_aaf;}if("radius" in o){r=o.radius;_aa9=r-_aaf;}r/=(1+_ab0);var _ab2={cx:_a98.l+rx,cy:_a98.t+ry,r:r};for(var i=this.series.length-1;i>=0;i--){var _ab3=this.series[i];if(!this.dirty&&!_ab3.dirty){t.skip();continue;}_ab3.cleanGroup();var run=_ab3.data;if(run!==null){var len=this._getObjectLength(run);if(!_aaa||_aaa.length<=0){_aaa=[],_aab=[],_aae=[];this._buildPoints(_aaa,len,_ab2,r,_aa4,true);this._buildPoints(_aab,len,_ab2,r*ro,_aa4,true);this._buildPoints(_aae,len,_ab2,_aa9,_aa4);if(dv>2){_aac=[],_aad=[];for(var j=0;j<dv-2;j++){_aac[j]=[];this._buildPoints(_aac[j],len,_ab2,r*(ro+(1-ro)*(j+1)/(dv-1)),_aa4,true);_aad[j]=r*(ro+(1-ro)*(j+1)/(dv-1));}}}}}var _ab4=s.createGroup(),_ab5={color:_a9d,width:_a9f},_ab6={color:_a9e,width:_aa0};for(var j=_aaa.length-1;j>=0;--j){var _ab7=_aaa[j],st={x:_ab7.x+(_ab7.x-_ab2.cx)*_ab0,y:_ab7.y+(_ab7.y-_ab2.cy)*_ab0},nd={x:_ab7.x+(_ab7.x-_ab2.cx)*_ab0/2,y:_ab7.y+(_ab7.y-_ab2.cy)*_ab0/2};_ab4.createLine({x1:_ab2.cx,y1:_ab2.cy,x2:st.x,y2:st.y}).setStroke(_ab5);this._drawArrow(_ab4,st,nd,_ab5);}var _ab8=s.createGroup();for(var j=_aae.length-1;j>=0;--j){var _ab7=_aae[j],_ab9=dojox.gfx._base._getTextBox(this.labelKey[j],{font:_a9a}).w||0,_aba=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";elem=da.createText[_aba](this.chart,_ab8,(!dojo._isBodyLtr()&&_aba=="html")?(_ab7.x+_ab9-dim.width):_ab7.x,_ab7.y,"middle",this.labelKey[j],_a9a,_a9c);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}var _abb=s.createGroup();if(spt=="polygon"){_abb.createPolyline(_aaa).setStroke(_ab6);_abb.createPolyline(_aab).setStroke(_ab6);if(_aac.length>0){for(var j=_aac.length-1;j>=0;--j){_abb.createPolyline(_aac[j]).setStroke(_ab6);}}}else{var _abc=this._getObjectLength(this.datas);_abb.createCircle({cx:_ab2.cx,cy:_ab2.cy,r:r}).setStroke(_ab6);_abb.createCircle({cx:_ab2.cx,cy:_ab2.cy,r:r*ro}).setStroke(_ab6);if(_aad.length>0){for(var j=_aad.length-1;j>=0;--j){_abb.createCircle({cx:_ab2.cx,cy:_ab2.cy,r:_aad[j]}).setStroke(_ab6);}}}var _abd=s.createGroup(),len=this._getObjectLength(this.datas),k=0;for(var key in this.datas){var data=this.datas[key],min=data.min,max=data.max,_abe=max-min,end=_aa4+2*Math.PI*k/len;for(var i=0;i<dv;i++){var text=min+_abe*i/(dv-1),_ab7=this._getCoordinate(_ab2,r*(ro+(1-ro)*i/(dv-1)),end);text=this._getLabel(text);var _ab9=dojox.gfx._base._getTextBox(text,{font:_a99}).w||0,_aba=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";if(this.opt.htmlLabels){this.htmlElements.push(da.createText[_aba](this.chart,_abd,(!dojo._isBodyLtr()&&_aba=="html")?(_ab7.x+_ab9-dim.width):_ab7.x,_ab7.y,"start",text,_a99,_a9b));}}k++;}this.chart.seriesShapes={};var _abf=[];for(var i=this.series.length-1;i>=0;i--){var _ab3=this.series[i],run=_ab3.data;if(run!==null){var _ac0=[],k=0,_ac1=[];for(var key in run){var data=this.datas[key],min=data.min,max=data.max,_abe=max-min,_ac2=run[key],end=_aa4+2*Math.PI*k/len,_ab7=this._getCoordinate(_ab2,r*(ro+(1-ro)*(_ac2-min)/_abe),end);_ac0.push(_ab7);_ac1.push({sname:_ab3.name,key:key,data:_ac2});k++;}_ac0[_ac0.length]=_ac0[0];_ac1[_ac1.length]=_ac1[0];var _ac3=this._getBoundary(_ac0),_ac4=t.next("spider",[o,_ab3]),ts=_ab3.group,f=g.normalizeColor(_ac4.series.fill),sk={color:_ac4.series.fill,width:_aa1};f.a=o.seriesFillAlpha;_ab3.dyn={fill:f,stroke:sk};var osps=this.oldSeriePoints[_ab3.name];var cs=this._createSeriesEntry(ts,(osps||_aab),_ac0,f,sk,r,ro,ms,at);this.chart.seriesShapes[_ab3.name]=cs;this.oldSeriePoints[_ab3.name]=_ac0;var po={element:"spider_poly",index:i,id:"spider_poly_"+_ab3.name,run:_ab3,plot:this,shape:cs.poly,parent:ts,brect:_ac3,cx:_ab2.cx,cy:_ab2.cy,cr:r,f:f,s:s};this._connectEvents(po);var so={element:"spider_plot",index:i,id:"spider_plot_"+_ab3.name,run:_ab3,plot:this,shape:_ab3.group};this._connectEvents(so);dojo.forEach(cs.circles,function(c,i){var _ac5=c.getShape(),co={element:"spider_circle",index:i,id:"spider_circle_"+_ab3.name+i,run:_ab3,plot:this,shape:c,parent:ts,tdata:_ac1[i],cx:_ac0[i].x,cy:_ac0[i].y,f:f,s:s};this._connectEvents(co);},this);}}return this;},_createSeriesEntry:function(ts,osps,sps,f,sk,r,ro,ms,at){var _ac6=ts.createPolyline(osps).setFill(f).setStroke(sk),_ac7=[];for(var j=0;j<osps.length;j++){var _ac8=osps[j],cr=ms;var _ac9=ts.createCircle({cx:_ac8.x,cy:_ac8.y,r:cr}).setFill(f).setStroke(sk);_ac7.push(_ac9);}var _aca=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.y,np.y]});var spl=_ac6,sc=_ac7[j];dojo.connect(anim,"onAnimate",function(y){var _acb=spl.getShape();_acb.points[j].y=y;spl.setShape(_acb);var _acc=sc.getShape();_acc.cy=y;sc.setShape(_acc);});return anim;});var _acd=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.x,np.x]});var spl=_ac6,sc=_ac7[j];dojo.connect(anim,"onAnimate",function(x){var _ace=spl.getShape();_ace.points[j].x=x;spl.setShape(_ace);var _acf=sc.getShape();_acf.cx=x;sc.setShape(_acf);});return anim;});var _ad0=dojo.fx.combine(_aca.concat(_acd));_ad0.play();return {group:ts,poly:_ac6,circles:_ac7};},plotEvent:function(o){var _ad1=o.id?o.id:"default",a;if(_ad1 in this.animations){a=this.animations[_ad1];a.anim&&a.anim.stop(true);}else{a=this.animations[_ad1]={};}if(o.element=="spider_poly"){if(!a.color){var _ad2=o.shape.getFill();if(!_ad2||!(_ad2 instanceof dojo.Color)){return;}a.color={start:_ad2,end:_ad3(_ad2)};}var _ad4=a.color.start,end=a.color.end;if(o.type=="onmouseout"){var t=_ad4;_ad4=end;end=t;}a.anim=dojox.gfx.fx.animateFill({shape:o.shape,duration:800,easing:dojo.fx.easing.backOut,color:{start:_ad4,end:end}});a.anim.play();}else{if(o.element=="spider_circle"){var init,_ad5,_ad6=1.5;if(o.type=="onmouseover"){init=dojox.gfx.matrix.identity;_ad5=_ad6;var _ad7={type:"rect"};_ad7.x=o.cx;_ad7.y=o.cy;_ad7.width=_ad7.height=1;var lt=dojo.coords(this.chart.node,true);_ad7.x+=lt.x;_ad7.y+=lt.y;_ad7.x=Math.round(_ad7.x);_ad7.y=Math.round(_ad7.y);_ad7.width=Math.ceil(_ad7.width);_ad7.height=Math.ceil(_ad7.height);this.aroundRect=_ad7;var _ad8=["after","before"];if(dijit&&dijit.Tooltip){dijit.showTooltip(o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data,this.aroundRect,_ad8);}}else{init=dojox.gfx.matrix.scaleAt(_ad6,o.cx,o.cy);_ad5=1/_ad6;if(dijit&&dijit.Tooltip){this.aroundRect&&dijit.hideTooltip(this.aroundRect);}}var cs=o.shape.getShape(),init=m.scaleAt(_ad6,cs.cx,cs.cy),_ad9={shape:o.shape,duration:200,easing:dojo.fx.easing.backOut,transform:[{name:"scaleAt",start:[1,cs.cx,cs.cy],end:[_ad5,cs.cx,cs.cy]},init]};a.anim=dojox.gfx.fx.animateTransform(_ad9);a.anim.play();}else{if(o.element=="spider_plot"){if(o.type=="onmouseover"&&!dojo.isIE){o.shape.moveToFront();}}}}},_getBoundary:function(_ada){var xmax=_ada[0].x,xmin=_ada[0].x,ymax=_ada[0].y,ymin=_ada[0].y;for(var i=0;i<_ada.length;i++){var _adb=_ada[i];xmax=Math.max(_adb.x,xmax);ymax=Math.max(_adb.y,ymax);xmin=Math.min(_adb.x,xmin);ymin=Math.min(_adb.y,ymin);}return {x:xmin,y:ymin,width:xmax-xmin,height:ymax-ymin};},_drawArrow:function(s,_adc,end,_add){var len=Math.sqrt(Math.pow(end.x-_adc.x,2)+Math.pow(end.y-_adc.y,2)),sin=(end.y-_adc.y)/len,cos=(end.x-_adc.x)/len,_ade={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_adf={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};s.createPolyline([_adc,_ade,_adf]).setFill(_add.color).setStroke(_add);},_buildPoints:function(_ae0,_ae1,_ae2,_ae3,_ae4,_ae5){for(var i=0;i<_ae1;i++){var end=_ae4+2*Math.PI*i/_ae1;_ae0.push(this._getCoordinate(_ae2,_ae3,end));}if(_ae5){_ae0.push(this._getCoordinate(_ae2,_ae3,_ae4+2*Math.PI));}},_getCoordinate:function(_ae6,_ae7,_ae8){return {x:_ae6.cx+_ae7*Math.cos(_ae8),y:_ae6.cy+_ae7*Math.sin(_ae8)};},_getObjectLength:function(obj){var _ae9=0;if(dojo.isObject(obj)){for(var key in obj){_ae9++;}}return _ae9;},_getLabel:function(_aea){return dc.getLabel(_aea,this.opt.fixed,this.opt.precision);}});function _ad3(_aeb){var a=new dojox.color.Color(_aeb),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=100;if(x.l<50){x.l=75;}else{if(x.l>75){x.l=50;}else{x.l=x.l-50>75-x.l?50:75;}}}var _aeb=dojox.color.fromHsl(x);_aeb.a=0.7;return _aeb;};})();}if(!dojo._hasResource["dojox.charting.Chart2D"]){dojo._hasResource["dojox.charting.Chart2D"]=true;dojo.provide("dojox.charting.Chart2D");dojo.deprecated("dojox.charting.Chart2D","Use dojo.charting.Chart instead and require all other components explicitly","2.0");dojox.charting.Chart2D=dojox.charting.Chart;}if(!dojo._hasResource["dojox.charting.widget.Chart2D"]){dojo._hasResource["dojox.charting.widget.Chart2D"]=true;dojo.provide("dojox.charting.widget.Chart2D");dojo.deprecated("dojox.charting.widget.Chart2D","Use dojo.charting.widget.Chart instead and require all other components explicitly","2.0");dojox.charting.widget.Chart2D=dojox.charting.widget.Chart;}if(!dojo._hasResource["dojox.charting.themes.gradientGenerator"]){dojo._hasResource["dojox.charting.themes.gradientGenerator"]=true;dojo.provide("dojox.charting.themes.gradientGenerator");(function(){var gg=dojox.charting.themes.gradientGenerator;gg.generateFills=function(_aec,_aed,_aee,_aef){var _af0=dojox.charting.Theme;return dojo.map(_aec,function(c){return _af0.generateHslGradient(c,_aed,_aee,_aef);});};gg.updateFills=function(_af1,_af2,_af3,_af4){var _af5=dojox.charting.Theme;dojo.forEach(_af1,function(t){if(t.fill&&!t.fill.type){t.fill=_af5.generateHslGradient(t.fill,_af2,_af3,_af4);}});};gg.generateMiniTheme=function(_af6,_af7,_af8,_af9,_afa){var _afb=dojox.charting.Theme;return dojo.map(_af6,function(c){c=new dojox.color.Color(c);return {fill:_afb.generateHslGradient(c,_af7,_af8,_af9),stroke:{color:_afb.generateHslColor(c,_afa)}};});};gg.generateGradientByIntensity=function(_afc,_afd){_afc=new dojo.Color(_afc);return dojo.map(_afd,function(stop){var s=stop.i/255;return {offset:stop.o,color:new dojo.Color([_afc.r*s,_afc.g*s,_afc.b*s,_afc.a])};});};})();}if(!dojo._hasResource["dojox.charting.themes.PrimaryColors"]){dojo._hasResource["dojox.charting.themes.PrimaryColors"]=true;dojo.provide("dojox.charting.themes.PrimaryColors");(function(){var dc=dojox.charting,_afe=dc.themes,_aff=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_b00={type:"linear",space:"plot",x1:0,y1:0,x2:0,y2:100};_afe.PrimaryColors=new dc.Theme({seriesThemes:_afe.gradientGenerator.generateMiniTheme(_aff,_b00,90,40,25)});})();}if(!dojo._hasResource["dojox.charting.themes.ThreeD"]){dojo._hasResource["dojox.charting.themes.ThreeD"]=true;dojo.provide("dojox.charting.themes.ThreeD");(function(){var dc=dojox.charting,_b01=dc.themes,_b02=dc.Theme,gi=_b01.gradientGenerator.generateGradientByIntensity,_b03=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_b04={type:"linear",space:"shape",x1:0,y1:0,x2:100,y2:0},_b05=[{o:0,i:174},{o:0.08,i:231},{o:0.18,i:237},{o:0.3,i:231},{o:0.39,i:221},{o:0.49,i:206},{o:0.58,i:187},{o:0.68,i:165},{o:0.8,i:128},{o:0.9,i:102},{o:1,i:174}],_b06=2,_b07=100,_b08=50,_b09=dojo.map(_b03,function(c){var fill=dojo.delegate(_b04),_b03=fill.colors=_b01.gradientGenerator.generateGradientByIntensity(c,_b05),_b0a=_b03[_b06].color;_b0a.r+=_b07;_b0a.g+=_b07;_b0a.b+=_b07;_b0a.sanitize();return fill;});_b01.ThreeD=_b01.PrimaryColors.clone();_b01.ThreeD.series.shadow={dx:1,dy:1,width:3,color:[0,0,0,0.15]};_b01.ThreeD.next=function(_b0b,_b0c,_b0d){if(_b0b=="bar"||_b0b=="column"){var _b0e=this._current%this.seriesThemes.length,s=this.seriesThemes[_b0e],old=s.fill;s.fill=_b09[_b0e];var _b0f=_b02.prototype.next.apply(this,arguments);s.fill=old;return _b0f;}return _b02.prototype.next.apply(this,arguments);};})();}dojo.i18n._preloadLocalizations("dojo.nls.vclViewBlockAllocations",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
