/*
	Copyright (c) 2004-2009, 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 a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

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(){var _1=dojo.doc;if(_1.selection){var s=_1.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _3=dojo.global;var _4=_3.getSelection();if(dojo.isString(_4)){return !_4;}else{return !_4||_4.isCollapsed||!_4.toString();}}},getBookmark:function(){var _5,_6=dojo.doc.selection;if(_6){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){if(_7.length){_5=[];var i=0,_9=_7.length;while(i<_9){_5.push(_7.item(i++));}}else{_5=null;}}else{_5=_7.getBookmark();}}else{if(window.getSelection){_6=dojo.global.getSelection();if(_6){_7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_a){var _b=dojo.doc;if(_b.selection){var _c;if(dojo.isArray(_a)){_c=_b.body.createControlRange();dojo.forEach(_a,function(n){_c.addElement(n);});}else{_c=_b.selection.createRange();_c.moveToBookmark(_a);}_c.select();}else{var _e=dojo.global.getSelection&&dojo.global.getSelection();if(_e&&_e.removeAllRanges){_e.removeAllRanges();_e.addRange(_a);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_f,_10){return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};},focus:function(_11){if(!_11){return;}var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;if(_12){var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;if(_15&&_15.focus){try{_15.focus();}catch(e){}}dijit._onFocusNode(_12);}if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){if(_14){_14.focus();}try{dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);}catch(e){}}},_activeStack:[],registerIframe:function(_16){dijit.registerWin(_16.contentWindow,_16);},registerWin:function(_17,_18){dojo.connect(_17.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_18||evt.target||evt.srcElement);});var doc=_17.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_18||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_18||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_18||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_18||evt.target);},true);}}doc=null;},_onBlurNode:function(_1f){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(_20){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _21=[];try{while(_20){if(_20.dijitPopupParent){_20=dijit.byId(_20.dijitPopupParent).domNode;}else{if(_20.tagName&&_20.tagName.toLowerCase()=="body"){if(_20===dojo.body()){break;}_20=dijit.getDocumentWindow(_20.ownerDocument).frameElement;}else{var id=_20.getAttribute&&_20.getAttribute("widgetId");if(id){_21.unshift(id);}_20=_20.parentNode;}}}}catch(e){}dijit._setStack(_21);},_onFocusNode:function(_23){if(!_23){return;}if(_23.nodeType==9){return;}dijit._onTouchNode(_23);if(_23==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_23;dojo.publish("focusNode",[_23]);},_setStack:function(_24){var _25=dijit._activeStack;dijit._activeStack=_24;for(var _26=0;_26<Math.min(_25.length,_24.length);_26++){if(_25[_26]!=_24[_26]){break;}}for(var i=_25.length-1;i>=_26;i--){var _28=dijit.byId(_25[i]);if(_28){_28._focused=false;_28._hasBeenBlurred=true;if(_28._onBlur){_28._onBlur();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetBlur",[_28]);}}for(i=_26;i<_24.length;i++){_28=dijit.byId(_24[i]);if(_28){_28._focused=true;if(_28._onFocus){_28._onFocus();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetFocus",[_28]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}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={};},add:function(_29){if(this._hash[_29.id]){throw new Error("Tried to register widget with id=="+_29.id+" but that id is already registered");}this._hash[_29.id]=_29;},remove:function(id){delete this._hash[id];},forEach:function(_2b){for(var id in this._hash){_2b(this._hash[id]);}},filter:function(_2d){var res=new dijit.WidgetSet();this.forEach(function(_2f){if(_2d(_2f)){res.add(_2f);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_32){return _32.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_33){var id;do{id=_33+"_"+(_33 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_33]:dijit._widgetTypeCtr[_33]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_35){var _36=[];function _37(_38){var _39=dojo.isIE?_38.children:_38.childNodes,i=0,_3b;while(_3b=_39[i++]){if(_3b.nodeType!=1){continue;}var _3c=_3b.getAttribute("widgetId");if(_3c){var _3d=dijit.byId(_3c);_36.push(_3d);}else{_37(_3b);}}};_37(_35);return _36;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_3e){if(_3e.destroyRecursive){_3e.destroyRecursive();}else{if(_3e.destroy){_3e.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_40){return dijit.registry.byId(_40.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_41){while(_41){if(_41.getAttribute&&_41.getAttribute("widgetId")){return dijit.registry.byId(_41.getAttribute("widgetId"));}_41=_41.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_42){var _43=dojo.style(_42);return (_43.visibility!="hidden")&&(_43.visibility!="collapsed")&&(_43.display!="none")&&(dojo.attr(_42,"type")!="hidden");};dijit.isTabNavigable=function(_44){if(dojo.hasAttr(_44,"disabled")){return false;}var _45=dojo.hasAttr(_44,"tabindex");var _46=dojo.attr(_44,"tabindex");if(_45&&_46>=0){return true;}var _47=_44.nodeName.toLowerCase();if(((_47=="a"&&dojo.hasAttr(_44,"href"))||dijit._tabElements[_47])&&(!_45||_46>=0)){return true;}return false;};dijit._getTabNavigable=function(_48){var _49,_4a,_4b,_4c,_4d,_4e;var _4f=function(_50){dojo.query("> *",_50).forEach(function(_51){var _52=dijit._isElementShown(_51);if(_52&&dijit.isTabNavigable(_51)){var _53=dojo.attr(_51,"tabindex");if(!dojo.hasAttr(_51,"tabindex")||_53==0){if(!_49){_49=_51;}_4a=_51;}else{if(_53>0){if(!_4b||_53<_4c){_4c=_53;_4b=_51;}if(!_4d||_53>=_4e){_4e=_53;_4d=_51;}}}}if(_52&&_51.nodeName.toUpperCase()!="SELECT"){_4f(_51);}});};if(dijit._isElementShown(_48)){_4f(_48);}return {first:_49,last:_4a,lowest:_4b,highest:_4d};};dijit.getFirstInTabbingOrder=function(_54){var _55=dijit._getTabNavigable(dojo.byId(_54));return _55.lowest?_55.lowest:_55.first;};dijit.getLastInTabbingOrder=function(_56){var _57=dijit._getTabNavigable(dojo.byId(_56));return _57.last?_57.last:_57.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_58){this.pairs=[];this.returnWrappers=_58||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_59,_5a,_5b,_5c,_5d){this.pairs[((_5d)?"unshift":"push")]([_59,_5a,_5b,_5c]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _5f=this.pairs[i];if(_5f[1].apply(this,arguments)){if((_5f[3])||(this.returnWrappers)){return _5f[2];}else{return _5f[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_60){for(var i=0;i<this.pairs.length;i++){var _62=this.pairs[i];if(_62[0]==_60){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(){var _63=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _64=dojo._docScroll();return {w:_63.clientWidth,h:_63.clientHeight,l:_64.x,t:_64.y};};dijit.placeOnScreen=function(_65,pos,_67,_68){var _69=dojo.map(_67,function(_6a){var c={corner:_6a,pos:{x:pos.x,y:pos.y}};if(_68){c.pos.x+=_6a.charAt(1)=="L"?_68.x:-_68.x;c.pos.y+=_6a.charAt(0)=="T"?_68.y:-_68.y;}return c;});return dijit._place(_65,_69);};dijit._place=function(_6c,_6d,_6e){var _6f=dijit.getViewport();if(!_6c.parentNode||String(_6c.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_6c);}var _70=null;dojo.some(_6d,function(_71){var _72=_71.corner;var pos=_71.pos;if(_6e){_6e(_6c,_71.aroundCorner,_72);}var _74=_6c.style;var _75=_74.display;var _76=_74.visibility;_74.visibility="hidden";_74.display="";var mb=dojo.marginBox(_6c);_74.display=_75;_74.visibility=_76;var _78=(_72.charAt(1)=="L"?pos.x:Math.max(_6f.l,pos.x-mb.w)),_79=(_72.charAt(0)=="T"?pos.y:Math.max(_6f.t,pos.y-mb.h)),_7a=(_72.charAt(1)=="L"?Math.min(_6f.l+_6f.w,_78+mb.w):pos.x),_7b=(_72.charAt(0)=="T"?Math.min(_6f.t+_6f.h,_79+mb.h):pos.y),_7c=_7a-_78,_7d=_7b-_79,_7e=(mb.w-_7c)+(mb.h-_7d);if(_70==null||_7e<_70.overflow){_70={corner:_72,aroundCorner:_71.aroundCorner,x:_78,y:_79,w:_7c,h:_7d,overflow:_7e};}return !_7e;});_6c.style.left=_70.x+"px";_6c.style.top=_70.y+"px";if(_70.overflow&&_6e){_6e(_6c,_70.aroundCorner,_70.corner);}return _70;};dijit.placeOnScreenAroundNode=function(_7f,_80,_81,_82){_80=dojo.byId(_80);var _83=_80.style.display;_80.style.display="";var _84=_80.offsetWidth;var _85=_80.offsetHeight;var _86=dojo.coords(_80,true);_80.style.display=_83;return dijit._placeOnScreenAroundRect(_7f,_86.x,_86.y,_84,_85,_81,_82);};dijit.placeOnScreenAroundRectangle=function(_87,_88,_89,_8a){return dijit._placeOnScreenAroundRect(_87,_88.x,_88.y,_88.width,_88.height,_89,_8a);};dijit._placeOnScreenAroundRect=function(_8b,x,y,_8e,_8f,_90,_91){var _92=[];for(var _93 in _90){_92.push({aroundCorner:_93,corner:_90[_93],pos:{x:x+(_93.charAt(1)=="L"?0:_8e),y:y+(_93.charAt(0)=="T"?0:_8f)}});}return dijit._place(_8b,_92,_91);};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(_98,_99,_9a,_9b){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _9e=[],_9f=1000,_a0=1;this.prepare=function(_a1){var s=_a1.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(_a1);};this.open=function(_a3){var _a4=_a3.popup,_a5=_a3.orient||{"BL":"TL","TL":"BL"},_a6=_a3.around,id=(_a3.around&&_a3.around.id)?(_a3.around.id+"_dropdown"):("popup_"+_a0++);var _a8=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_9f+_9e.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_a8,"presentation");_a8.style.left=_a8.style.top="0px";if(_a3.parent){_a8.dijitPopupParent=_a3.parent.id;}var s=_a4.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_a8.appendChild(_a4.domNode);var _aa=new dijit.BackgroundIframe(_a8);var _ab=_a6?dijit.placeOnScreenAroundElement(_a8,_a6,_a5,_a4.orient?dojo.hitch(_a4,"orient"):null):dijit.placeOnScreen(_a8,_a3,_a5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a3.padding);_a8.style.visibility="visible";var _ac=[];var _ad=function(){for(var pi=_9e.length-1;pi>0&&_9e[pi].parent===_9e[pi-1].widget;pi--){}return _9e[pi];};_ac.push(dojo.connect(_a8,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a3.onCancel){dojo.stopEvent(evt);_a3.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _b0=_ad();if(_b0&&_b0.onCancel){_b0.onCancel();}}}}));if(_a4.onCancel){_ac.push(dojo.connect(_a4,"onCancel",null,_a3.onCancel));}_ac.push(dojo.connect(_a4,_a4.onExecute?"onExecute":"onChange",null,function(){var _b1=_ad();if(_b1&&_b1.onExecute){_b1.onExecute();}}));_9e.push({wrapper:_a8,iframe:_aa,widget:_a4,parent:_a3.parent,onExecute:_a3.onExecute,onCancel:_a3.onCancel,onClose:_a3.onClose,handlers:_ac});if(_a4.onOpen){_a4.onOpen(_ab);}return _ab;};this.close=function(_b2){while(dojo.some(_9e,function(_b3){return _b3.widget==_b2;})){var top=_9e.pop(),_b5=top.wrapper,_b6=top.iframe,_b7=top.widget,_b8=top.onClose;if(_b7.onClose){_b7.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b7||!_b7.domNode){return;}this.prepare(_b7.domNode);_b6.destroy();dojo.destroy(_b5);if(_b8){_b8();}}};}();dijit._frames=new function(){var _b9=[];this.pop=function(){var _ba;if(_b9.length){_ba=_b9.pop();_ba.style.display="";}else{if(dojo.isIE){var _bb=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bc="<iframe src='"+_bb+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_ba=dojo.doc.createElement(_bc);}else{_ba=dojo.create("iframe");_ba.src="javascript:\"\"";_ba.className="dijitBackgroundIframe";}_ba.tabIndex=-1;dojo.body().appendChild(_ba);}return _ba;};this.push=function(_bd){_bd.style.display="none";if(dojo.isIE){_bd.style.removeExpression("width");_bd.style.removeExpression("height");}_b9.push(_bd);};}();dijit.BackgroundIframe=function(_be){if(!_be.id){throw new Error("no id");}if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _bf=dijit._frames.pop();_be.appendChild(_bf);if(dojo.isIE){_bf.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_be.id+"').offsetWidth");_bf.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_be.id+"').offsetHeight");}this.iframe=_bf;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){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(_c0){try{_c0=dojo.byId(_c0);var doc=dojo.doc;var _c2=dojo.body();var _c3=_c2.parentNode;if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||_c0==_c2||_c0==_c3)&&(typeof _c0.scrollIntoView=="function")){_c0.scrollIntoView(false);return;}var ltr=dojo._isBodyLtr();var _c5=dojo.isIE>=8&&!_c6;var rtl=!ltr&&!_c5;var _c8=_c2;var _c6=doc.compatMode=="BackCompat";if(_c6){_c3._offsetWidth=_c3._clientWidth=_c2._offsetWidth=_c2.clientWidth;_c3._offsetHeight=_c3._clientHeight=_c2._offsetHeight=_c2.clientHeight;}else{if(dojo.isWebKit){_c2._offsetWidth=_c2._clientWidth=_c3.clientWidth;_c2._offsetHeight=_c2._clientHeight=_c3.clientHeight;}else{_c8=_c3;}_c3._offsetHeight=_c3.clientHeight;_c3._offsetWidth=_c3.clientWidth;}function _c9(_ca){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_c6))?false:(dojo.style(_ca,"position").toLowerCase()=="fixed"));};function _cc(_cd){var _ce=_cd.parentNode;var _cf=_cd.offsetParent;if(_cf==null||_c9(_cd)){_cf=_c3;_ce=(_cd==_c2)?_c3:null;}_cd._offsetParent=_cf;_cd._parent=_ce;var bp=dojo._getBorderExtents(_cd);_cd._borderStart={H:(_c5&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_cd._borderSize={H:bp.w,V:bp.h};_cd._scrolledAmount={H:_cd.scrollLeft,V:_cd.scrollTop};_cd._offsetSize={H:_cd._offsetWidth||_cd.offsetWidth,V:_cd._offsetHeight||_cd.offsetHeight};_cd._offsetStart={H:(_c5&&!ltr)?_cf.clientWidth-_cd.offsetLeft-_cd._offsetSize.H:_cd.offsetLeft,V:_cd.offsetTop};_cd._clientSize={H:_cd._clientWidth||_cd.clientWidth,V:_cd._clientHeight||_cd.clientHeight};if(_cd!=_c2&&_cd!=_c3&&_cd!=_c0){for(var dir in _cd._offsetSize){var _d2=_cd._offsetSize[dir]-_cd._clientSize[dir]-_cd._borderSize[dir];var _d3=_cd._clientSize[dir]>0&&_d2>0;if(_d3){_cd._offsetSize[dir]-=_d2;if(dojo.isIE&&rtl&&dir=="H"){_cd._offsetStart[dir]+=_d2;}}}}};var _d4=_c0;while(_d4!=null){if(_c9(_d4)){_c0.scrollIntoView(false);return;}_cc(_d4);_d4=_d4._parent;}if(dojo.isIE&&_c0._parent){var _d5=_c0._offsetParent;_c0._offsetStart.H+=_d5._borderStart.H;_c0._offsetStart.V+=_d5._borderStart.V;}if(dojo.isIE>=7&&_c8==_c3&&rtl&&_c2._offsetStart&&_c2._offsetStart.H==0){var _d6=_c3.scrollWidth-_c3._offsetSize.H;if(_d6>0){_c2._offsetStart.H=-_d6;}}if(dojo.isIE<=6&&!_c6){_c3._offsetSize.H+=_c3._borderSize.H;_c3._offsetSize.V+=_c3._borderSize.V;}if(rtl&&_c2._offsetStart&&_c8==_c3&&_c3._scrolledAmount){var ofs=_c2._offsetStart.H;if(ofs<0){_c3._scrolledAmount.H+=ofs;_c2._offsetStart.H=0;}}_d4=_c0;while(_d4){var _d8=_d4._parent;if(!_d8){break;}if(_d8.tagName=="TD"){var _d9=_d8._parent._parent._parent;if(_d8!=_d4._offsetParent&&_d8._offsetParent!=_d4._offsetParent){_d8=_d9;}}var _da=_d4._offsetParent==_d8;for(var dir in _d4._offsetStart){var _dc=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_d8!=_c3)&&(_d8!=_c2)&&(dojo.isIE||dojo.isWebKit)&&_d8._clientSize.H>0&&_d8.scrollWidth>_d8._clientSize.H){var _dd=_d8.scrollWidth-_d8._clientSize.H;if(_dd>0){_d8._scrolledAmount.H-=_dd;}}if(_d8._offsetParent.tagName=="TABLE"){if(dojo.isIE){_d8._offsetStart[dir]-=_d8._offsetParent._borderStart[dir];_d8._borderStart[dir]=_d8._borderSize[dir]=0;}else{_d8._offsetStart[dir]+=_d8._offsetParent._borderStart[dir];}}if(dojo.isIE){_d8._offsetStart[dir]+=_d8._offsetParent._borderStart[dir];}var _de=_d4._offsetStart[dir]-_d8._scrolledAmount[dir]-(_da?0:_d8._offsetStart[dir])-_d8._borderStart[dir];var _df=_de+_d4._offsetSize[dir]-_d8._offsetSize[dir]+_d8._borderSize[dir];var _e0=(dir=="H")?"scrollLeft":"scrollTop";var _e1=dir=="H"&&rtl;var _e2=_e1?-_df:_de;var _e3=_e1?-_de:_df;var _e4=(_e2*_e3<=0)?0:Math[(_e2<0)?"max":"min"](_e2,_e3);if(_e4!=0){var _e5=_d8[_e0];_d8[_e0]+=(_e1)?-_e4:_e4;var _e6=_d8[_e0]-_e5;}if(_da){_d4._offsetStart[dir]+=_d8._offsetStart[dir];}_d4._offsetStart[dir]-=_d8[_e0];}_d4._parent=_d8._parent;_d4._offsetParent=_d8._offsetParent;}_d8=_c0;var _e7;while(_d8&&_d8.removeAttribute){_e7=_d8.parentNode;_d8.removeAttribute("_offsetParent");_d8.removeAttribute("_parent");_d8=_e7;}}catch(error){console.error("scrollIntoView: "+error);_c0.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,_e9=d.doc.documentElement,ie=d.isIE,_eb=d.isOpera,maj=Math.floor,ff=d.isFF,_ee=d.boxModel.replace(/-/,""),_ef={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_eb,dj_opera8:maj(_eb)==8,dj_opera9:maj(_eb)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_ef["dj_"+_ee]=true;for(var p in _ef){if(_ef[p]){if(_e9.className){_e9.className+=" "+p;}else{_e9.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e9.className+=" dijitRtl";for(var p in _ef){if(_ef[p]){_e9.className+=" "+p+"-rtl";}}}});})();}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=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_f3,_f4,_f5,obj,_f7,_f8){if(obj!=this._obj){this.stop();this._initialDelay=_f8||500;this._subsequentDelay=_f7||0.9;this._obj=obj;this._evt=evt;this._node=_f4;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_f3,_f5);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_f9,_fa,_fb,_fc,_fd,_fe){if(_fa.keyCode){_fa.charOrCode=_fa.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_fa.charCode){_fa.charOrCode=String.fromCharCode(_fa.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f9,"onkeypress",this,function(evt){if(evt.charOrCode==_fa.charOrCode&&(_fa.ctrlKey===undefined||_fa.ctrlKey==evt.ctrlKey)&&(_fa.altKey===undefined||_fa.altKey==evt.ctrlKey)&&(_fa.shiftKey===undefined||_fa.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_fa,_fb,_f9,_fc,_fa,_fd,_fe);}else{if(dijit.typematic._obj==_fa){dijit.typematic.stop();}}}),dojo.connect(_f9,"onkeyup",this,function(evt){if(dijit.typematic._obj==_fa){dijit.typematic.stop();}})];},addMouseListener:function(node,_102,_103,_104,_105){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_102,node,_103,node,_104,_105);}),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){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_102,node,_103,node,_104,_105);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_10c,_10d,_10e,_10f,_110,_111,_112){return this.addKeyListener(_10d,_10e,_10f,_110,_111,_112).concat(this.addMouseListener(_10c,_10f,_110,_111,_112));}};}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 _115=cs.backgroundImage;var _116=(cs.borderTopColor==cs.borderRightColor)||(_115!=null&&(_115=="none"||_115=="url(invalid-url:)"));dojo[_116?"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,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _119=this.getWaiRole(elem);return role?(_119.indexOf(role)>-1):(_119.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _11d=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_11d)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_11d+" ").indexOf(" "+role+" ")<0){var _11e=dojo.trim(_11d.replace(this._XhtmlRoles,""));var _11f=dojo.trim(_11d.replace(_11e,""));dojo.attr(elem,"role",_11f+(_11f?" ":"")+role);}}},removeWaiRole:function(elem,role){var _122=dojo.attr(elem,"role");if(!_122){return;}if(role){var _123=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_122+" ").replace(" "+_123+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_126){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_126);}return elem.hasAttribute?elem.hasAttribute("aria-"+_126):!!elem.getAttribute("aria-"+_126);},getWaiState:function(elem,_128){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_128);}return elem.getAttribute("aria-"+_128)||"";},setWaiState:function(elem,_12a,_12b){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_12a,_12b);}else{elem.setAttribute("aria-"+_12a,_12b);}},removeWaiState:function(elem,_12d){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_12d);}else{elem.removeAttribute("aria-"+_12d);}}});}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.require("dijit._base");dojo.connect(dojo,"connect",function(_12e,_12f){if(_12e&&dojo.isFunction(_12e._onConnect)){_12e._onConnect(_12f);}});dijit._connectOnUseEventHandler=function(_130){};(function(){var _131={};var _132=function(dc){if(!_131[dc]){var r=[];var _135;var _136=dojo.getObject(dc).prototype;for(var _137 in _136){if(dojo.isFunction(_136[_137])&&(_135=_137.match(/^_set([a-zA-Z]*)Attr$/))&&_135[1]){r.push(_135[1].charAt(0).toLowerCase()+_135[1].substr(1));}}_131[dc]=r;}return _131[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_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,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_138,_139){this.create(_138,_139);},create:function(_13a,_13b){this.srcNodeRef=dojo.byId(_13b);this._connects=[];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];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_13a){this.params=_13a;dojo.mixin(this,_13a);}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 _13d=this.srcNodeRef;if(_13d&&_13d.parentNode){_13d.parentNode.replaceChild(this.domNode,_13d);}for(attr in this.params){this._onConnect(attr);}}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 _13e=function(attr,_140){if((_140.params&&attr in _140.params)||_140[attr]){_140.attr(attr,_140[attr]);}};for(var attr in this.attributeMap){_13e(attr,this);}dojo.forEach(_132(this.declaredClass),function(a){if(!(a in this.attributeMap)){_13e(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_143){this.destroyDescendants(_143);this.destroy(_143);},destroy:function(_144){this.uninitialize();dojo.forEach(this._connects,function(_145){dojo.forEach(_145,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_144);dijit.registry.remove(this.id);},destroyRendering:function(_147){if(this.bgIframe){this.bgIframe.destroy(_147);delete this.bgIframe;}if(this.domNode){if(_147){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_147){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_148){dojo.forEach(this.getChildren(),function(_149){if(_149.destroyRecursive){_149.destroyRecursive(_148);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_14b){if(_14b in this._deferredConnects){var _14c=this[this._deferredConnects[_14b]||"domNode"];this.connect(_14c,_14b.toLowerCase(),_14b);delete this._deferredConnects[_14b];}},_setClassAttr:function(_14d){var _14e=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_14e,this["class"]);this["class"]=_14d;dojo.addClass(_14e,_14d);},_setStyleAttr:function(_14f){var _150=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_14f)){dojo.style(_150,_14f);}else{if(_150.style.cssText){_150.style.cssText+="; "+_14f;}else{_150.style.cssText=_14f;}}this["style"]=_14f;},setAttribute:function(attr,_152){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_152);},_attrToDom:function(attr,_154){var _155=this.attributeMap[attr];dojo.forEach(dojo.isArray(_155)?_155:[_155],function(_156){var _157=this[_156.node||_156||"domNode"];var type=_156.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_154)){_154=dojo.hitch(this,_154);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_157,attr,_154);break;case "innerHTML":_157.innerHTML=_154;break;case "class":dojo.removeClass(_157,this[attr]);dojo.addClass(_157,_154);break;}},this);this[attr]=_154;},attr:function(name,_15a){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _15d=this._getAttrNames(name);if(args==2){if(this[_15d.s]){return this[_15d.s](_15a)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_15a);}this[name]=_15a;}return this;}else{if(this[_15d.g]){return this[_15d.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},getChildren:function(){if(this.containerNode){return dijit.findWidgets(this.containerNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_163,_164){var d=dojo;var dc=dojo.connect;var _167=[];if(_163=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_164);_167.push(dc(obj,"onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dc(obj,"onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));if(d.isFF){_167.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_163="onclick";}_167.push(dc(obj,_163,this,_164));this._connects.push(_167);return _167;},disconnect:function(_16c){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_16c){dojo.forEach(_16c,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_16e,_16f){if(_16e["declaredClass"]&&_16e["addChild"]){_16e.addChild(this,_16f);}else{dojo.place(this.domNode,_16e,_16f);}return this;}});})();}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _171={};m._degToRad=function(_172){return _171[_172]||(_171[_172]=(Math.PI*_172/180));};m._radToDeg=function(_173){return _173/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 _175=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_175,r=dojox.gfx.matrix.normalize(arg[i]);_175=new m.Matrix2D();_175.xx=l.xx*r.xx+l.xy*r.yx;_175.xy=l.xx*r.xy+l.xy*r.yy;_175.yx=l.yx*r.xx+l.yy*r.yx;_175.yy=l.yx*r.xy+l.yy*r.yy;_175.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_175.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_175);}}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(_17d){var c=Math.cos(_17d);var s=Math.sin(_17d);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_180){return m.rotate(m._degToRad(_180));},skewX:function(_181){return new m.Matrix2D({xy:Math.tan(_181)});},skewXg:function(_182){return m.skewX(m._degToRad(_182));},skewY:function(_183){return new m.Matrix2D({yx:Math.tan(_183)});},skewYg:function(_184){return m.skewY(m._degToRad(_184));},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(_191){return (_191 instanceof m.Matrix2D)?_191:new m.Matrix2D(_191);},clone:function(_192){var obj=new m.Matrix2D();for(var i in _192){if(typeof (_192[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_192[i]){obj[i]=_192[i];}}return obj;},invert:function(_195){var M=m.normalize(_195),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(_198,x,y){return {x:_198.xx*x+_198.xy*y+_198.dx,y:_198.yx*x+_198.yy*y+_198.dy};},multiplyPoint:function(_19b,a,b){var M=m.normalize(_19b);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_19f){var M=m.normalize(_19f);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(_1a4,x,y){return m.multiply(m.translate(x,y),_1a4,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(_1ab,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_1ab),a,b);}return m._sandwich(m.rotate(_1ab),a.x,a.y);},rotategAt:function(_1ae,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_1ae),a,b);}return m._sandwich(m.rotateg(_1ae),a.x,a.y);},skewXAt:function(_1b1,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_1b1),a,b);}return m._sandwich(m.skewX(_1b1),a.x,a.y);},skewXgAt:function(_1b4,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_1b4),a,b);}return m._sandwich(m.skewXg(_1b4),a.x,a.y);},skewYAt:function(_1b7,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_1b7),a,b);}return m._sandwich(m.skewY(_1b7),a.x,a.y);},skewYgAt:function(_1ba,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_1ba),a,b);}return m._sandwich(m.skewYg(_1ba),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,_1c0){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_1c0+" ")>=0;};g._addClass=function(node,_1c3){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_1c3+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_1c3);}};g._removeClass=function(node,_1c6){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_1c6+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _1c8={"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 s=div.style;s.position="absolute";s.left="-100px";s.top="0px";s.width="30px";s.height="1000em";s.border="0px";s.margin="0px";s.padding="0px";s.outline="none";s.lineHeight="1";s.overflow="hidden";dojo.body().appendChild(div);for(var p in _1c8){div.style.fontSize=p;_1c8[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _1c8;};var _1cc=null;b._getCachedFontMeasurements=function(_1cd){if(_1cd||!_1cc){_1cc=b._getFontMeasurements();}return _1cc;};var _1ce=null,_1cf={};b._getTextBox=function(text,_1d1,_1d2){var m,s;if(!_1ce){m=_1ce=dojo.doc.createElement("div");s=m.style;s.position="absolute";s.left="-10000px";s.top="0";dojo.body().appendChild(m);}else{m=_1ce;s=m.style;}m.className="";s.border="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_1d1){for(var i in _1d1){if(i in _1cf){continue;}s[i]=_1d1[i];}}if(arguments.length>2&&_1d2){m.className=_1d2;}m.innerHTML=text;return dojo.marginBox(m);};var _1d6=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_1d6);}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 _1d8={};return function(type){var t=_1d8[type];if(t){return new t();}t=_1d8[type]=function(){};t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_1db){return (_1db instanceof dojo.Color)?_1db:new dojo.Color(_1db);},normalizeParameters:function(_1dc,_1dd){if(_1dd){var _1de={};for(var x in _1dc){if(x in _1dd&&!(x in _1de)){_1dc[x]=_1dd[x];}}}return _1dc;},makeParameters:function(_1e0,_1e1){if(!_1e1){return dojo.delegate(_1e0);}var _1e2={};for(var i in _1e0){if(!(i in _1e2)){_1e2[i]=dojo.clone((i in _1e1)?_1e1[i]:_1e0[i]);}}return _1e2;},formatNumber:function(x,_1e5){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _1e7=val.indexOf(".");if(_1e7>=0&&val.length-_1e7>5){val=x.toFixed(4);}}if(x<0){return val;}return _1e5?" "+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.varian=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;break;}if(t[4].substr(0,1)=="/"){j=5;break;}}if(j+3>t.length){break;}font.size=t[j];font.family=t[j+1];}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 _1f1=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_1f1;case "in":return val*72*_1f1;case "pc":return val*12*_1f1;case "mm":return val*dojox.gfx.mm_in_pt*_1f1;case "cm":return val*dojox.gfx.cm_in_pt*_1f1;}}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;}});}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,_1f8;if(!gfx.renderer){var _1f9=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,silverlight,canvas").split(",");var ua=navigator.userAgent,_1fb=0,_1fc=0;if(dojo.isSafari>=3){if(ua.indexOf("iPhone")>=0||ua.indexOf("iPod")>=0){_1f8=ua.match(/Version\/(\d(\.\d)?(\.\d)?)\sMobile\/([^\s]*)\s?/);if(_1f8){_1fb=parseInt(_1f8[4].substr(0,3),16);}}}if(dojo.isWebKit){if(!_1fb){_1f8=ua.match(/Android\s+(\d+\.\d+)/);if(_1f8){_1fc=parseFloat(_1f8[1]);}}}for(var i=0;i<_1f9.length;++i){switch(_1f9[i]){case "svg":if(!dojo.isIE&&(!_1fb||_1fb>=1521)&&!_1fc&&!dojo.isAIR){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.isIE){dojox.gfx.renderer="canvas";}break;}if(dojox.gfx.renderer){break;}}if(dojo.config.isDebug){}}});dojo.requireIf(dojox.gfx.renderer=="svg","dojox.gfx.svg");dojo.requireIf(dojox.gfx.renderer=="vml","dojox.gfx.vml");dojo.requireIf(dojox.gfx.renderer=="silverlight","dojox.gfx.silverlight");dojo.requireIf(dojox.gfx.renderer=="canvas","dojox.gfx.canvas");}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,_1ff={};var _200="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 _204=function(s){var args=[],_207=_200.call(s,/\s*->\s*/m);if(_207.length>1){while(_207.length){s=_207.pop();args=_207.pop().split(/\s*,\s*|\s+/m);if(_207.length){_207.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 _20d=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 _204(s);},buildLambda:function(s){s=_204(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _20d(s);}if(s in _1ff){return _1ff[s];}s=_204(s);return _1ff[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_1ff={};}});})();}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,_217={};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 _217)){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 _217)){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 _217)){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 _217)){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 _217)){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,_236={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _236)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _236)){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 _236)){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 _236)){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 _236)){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,_24e={};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 _24e)){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 _25b=true;for(i in a){if(!(i in _24e)){if(_25b){z=a[i];_25b=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["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _28e=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(_293,obj){var m=_293.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=[_28e(m1,m2,H+1/3)*256,_28e(m1,m2,H)*256,_28e(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _2a1=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(_2a1(t.r,0,255));t.g=Math.round(_2a1(t.g,0,255));t.b=Math.round(_2a1(t.b,0,255));t.a=_2a1(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,_2a9,_2aa){if(dojo.isArray(cyan)){_2a9=cyan[1],_2aa=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_2a9=cyan.m,_2aa=cyan.y,cyan=cyan.c;}}cyan/=100,_2a9/=100,_2aa/=100;var r=1-cyan,g=1-_2a9,b=1-_2aa;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_2af,_2b0,_2b1){if(dojo.isArray(cyan)){_2af=cyan[1],_2b0=cyan[2],_2b1=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_2af=cyan.m,_2b0=cyan.y,_2b1=cyan.b,cyan=cyan.c;}}cyan/=100,_2af/=100,_2b0/=100,_2b1/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_2b1)+_2b1);g=1-Math.min(1,_2af*(1-_2b1)+_2b1);b=1-Math.min(1,_2b0*(1-_2b1)+_2b1);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_2b6,_2b7){if(dojo.isArray(hue)){_2b6=hue[1],_2b7=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_2b6=hue.s,_2b7=hue.l,hue=hue.h;}}_2b6/=100;_2b7/=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*_2b6*Math.min(r,1)+(1-_2b6);g=2*_2b6*Math.min(g,1)+(1-_2b6);b=2*_2b6*Math.min(b,1)+(1-_2b6);if(_2b7<0.5){r*=_2b7,g*=_2b7,b*=_2b7;}else{r=(1-_2b7)*r+2*_2b7-1;g=(1-_2b7)*g+2*_2b7-1;b=(1-_2b7)*b+2*_2b7-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_2bc,_2bd){if(dojo.isArray(hue)){_2bc=hue[1],_2bd=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_2bc=hue.s,_2bd=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_2bc/=100;_2bd/=100;var r,g,b;if(_2bc==0){r=_2bd,b=_2bd,g=_2bd;}else{var _2c1=hue/60,i=Math.floor(_2c1),f=_2c1-i;var p=_2bd*(1-_2bc);var q=_2bd*(1-(_2bc*f));var t=_2bd*(1-(_2bc*(1-f)));switch(i){case 0:r=_2bd,g=t,b=p;break;case 1:r=q,g=_2bd,b=p;break;case 2:r=p,g=_2bd,b=t;break;case 3:r=p,g=q,b=_2bd;break;case 4:r=t,g=p,b=_2bd;break;case 5:r=_2bd,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),_2c8=1-(this.g/255),_2c9=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_2c8*100),y:Math.round(_2c9*100)};},toCmyk:function(){var cyan,_2cb,_2cc,_2cd;var r=this.r/255,g=this.g/255,b=this.b/255;_2cd=Math.min(1-r,1-g,1-b);cyan=(1-r-_2cd)/(1-_2cd);_2cb=(1-g-_2cd)/(1-_2cd);_2cc=(1-b-_2cd)/(1-_2cd);return {c:Math.round(cyan*100),m:Math.round(_2cb*100),y:Math.round(_2cc*100),b:Math.round(_2cd*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 _2d6=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_2d6/((l<0.5)?(2*l):(2-2*l));}if(_2d6>0){if(max==r&&max!=g){h+=(g-b)/_2d6;}if(max==g&&max!=b){h+=(2+(b-r)/_2d6);}if(max==b&&max!=r){h+=(4+(r-g)/_2d6);}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 _2df=max-min;var h=null,s=(max==0)?0:(_2df/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_2df;}else{if(g==max){h=120+60*(b-r)/_2df;}else{h=240+60*(r-g)/_2df;}}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 _2e5(p,_2e7,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_2e7=="dr")?item.r+val:item.r,g=(_2e7=="dg")?item.g+val:item.g,b=(_2e7=="db")?item.b+val:item.b,a=(_2e7=="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,_2f1,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_2f1=="dc")?o.c+val:o.c,m=(_2f1=="dm")?o.m+val:o.m,y=(_2f1=="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 _2f9(p,_2fb,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_2fb=="dc")?o.c+val:o.c,m=(_2fb=="dm")?o.m+val:o.m,y=(_2fb=="dy")?o.y+val:o.y,k=(_2fb=="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,_306,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_306=="dh")?o.h+val:o.h,s=(_306=="ds")?o.s+val:o.s,l=(_306=="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,_310,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_310=="dh")?o.h+val:o.h,s=(_310=="ds")?o.s+val:o.s,v=(_310=="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 _318(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_31c){var fn=_2e5;if(_31c.use){var use=_31c.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=_2f9;}else{fn=tCMY;}}}}else{if("dc" in _31c||"dm" in _31c||"dy" in _31c){if("dk" in _31c){fn=_2f9;}else{fn=tCMY;}}else{if("dh" in _31c||"ds" in _31c){if("dv" in _31c){fn=tHSV;}else{fn=tHSL;}}}}var _31f=this;for(var p in _31c){if(p=="use"){continue;}_31f=fn(_31f,p,_31c[p]);}return _31f;},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=_318(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=_318(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,_34d=args.da||30,hsv=base.toHsv();var _34f=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_34f-_34d+360)%360,h2=(_34f+_34d)%360,s1=Math.max(hsv.s-10,0),s2=_318(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.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");(function(){var dxc=dojox.charting;dxc.Theme=function(_36e){_36e=_36e||{};var def=dxc.Theme._def;dojo.forEach(["chart","plotarea","axis","series","marker"],function(n){this[n]=dojo.delegate(def[n],_36e[n]||{});},this);this.markers=dojo.delegate(dxc.Theme.Markers,_36e.markers||{});this.colors=[];this.antiAlias=("antiAlias" in _36e)?_36e.antiAlias:true;this.assignColors=("assignColors" in _36e)?_36e.assignColors:true;this.assignMarkers=("assignMarkers" in _36e)?_36e.assignMarkers:true;_36e.colors=_36e.colors||def.colors;dojo.forEach(_36e.colors,function(item){this.colors.push(item);},this);this._current={color:0,marker:0};this._markers=[];this._buildMarkerArray();};dxc.Theme.Markers={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"};dxc.Theme._def={chart:{stroke:null,fill:"white"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},majorTick:{color:"#666",width:1,length:6,position:"center"},minorTick:{color:"#666",width:0.8,length:3,position:"center"},font:"normal normal normal 7pt Tahoma",fontColor:"#333"},series:{outline:{width:0.1,color:"#ccc"},stroke:{width:1.5,color:"#333"},fill:"#ccc",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},marker:{stroke:{width:1},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},colors:["#54544c","#858e94","#6e767a","#948585","#474747"]};dojo.extend(dxc.Theme,{defineColors:function(obj){var _373=obj||{};var c=[],n=_373.num||5;if(_373.colors){var l=_373.colors.length;for(var i=0;i<n;i++){c.push(_373.colors[i%l]);}this.colors=c;}else{if(_373.hue){var s=_373.saturation||100;var st=_373.low||30;var end=_373.high||90;var l=(end+st)/2;this.colors=dojox.color.Palette.generate(dojox.color.fromHsv(_373.hue,s,l),"monochromatic").colors;}else{if(_373.generator){this.colors=dojox.color.Palette.generate(_373.base,_373.generator).colors;}}}},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}this._current.marker=0;},_clone:function(){return new dxc.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,antiAlias:this.antiAlias,assignColors:this.assignColors,assignMarkers:this.assigneMarkers,colors:dojo.delegate(this.colors)});},addMarker:function(name,_37d){this.markers[name]=_37d;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},next:function(type){if(type=="marker"){return this._markers[this._current.marker++%this._markers.length];}else{return this.colors[this._current.color++%this.colors.length];}},clear:function(){this._current={color:0,marker:0};}});})();}if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{constructor:function(_380){this.chart=_380;this.group=null;this.htmlElements=[];this.dirty=true;},createGroup:function(_381){if(!_381){_381=this.chart.surface;}if(!this.group){this.group=_381.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;return this;},cleanGroup:function(_382){this.destroyHtmlElements();if(!_382){_382=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_382.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();}});}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(_383,data,_385){dojo.mixin(this,_385);if(typeof this.plot!="string"){this.plot="default";}this.data=data;this.dirty=true;this.clear();},clear:function(){this.dyn={};}});}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(_38c,_38d,_38e){var def=_38e.fixed?_38c.toFixed(_38d<0?-_38d:0):_38c.toString();if(_38e.labelFunc){var r=_38e.labelFunc(def,_38c,_38d);if(r){return r;}}if(_38e.labels){var l=_38e.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_38c){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_38c)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_38c)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_38c)){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 _396=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_39a=dcsc.findString,_39b=dcsc.getNumericLabel;var _39c=function(min,max,_39f,_3a0,_3a1,_3a2,span){_39f=dojo.delegate(_39f);if(!_3a0){if(_39f.fixUpper=="major"){_39f.fixUpper="minor";}if(_39f.fixLower=="major"){_39f.fixLower="minor";}}if(!_3a1){if(_39f.fixUpper=="minor"){_39f.fixUpper="micro";}if(_39f.fixLower=="minor"){_39f.fixLower="micro";}}if(!_3a2){if(_39f.fixUpper=="micro"){_39f.fixUpper="none";}if(_39f.fixLower=="micro"){_39f.fixLower="none";}}var _3a4=_39a(_39f.fixLower,["major"])?Math.floor(_39f.min/_3a0)*_3a0:_39a(_39f.fixLower,["minor"])?Math.floor(_39f.min/_3a1)*_3a1:_39a(_39f.fixLower,["micro"])?Math.floor(_39f.min/_3a2)*_3a2:_39f.min,_3a5=_39a(_39f.fixUpper,["major"])?Math.ceil(_39f.max/_3a0)*_3a0:_39a(_39f.fixUpper,["minor"])?Math.ceil(_39f.max/_3a1)*_3a1:_39a(_39f.fixUpper,["micro"])?Math.ceil(_39f.max/_3a2)*_3a2:_39f.max;if(_39f.useMin){min=_3a4;}if(_39f.useMax){max=_3a5;}var _3a6=(!_3a0||_39f.useMin&&_39a(_39f.fixLower,["major"]))?min:Math.ceil(min/_3a0)*_3a0,_3a7=(!_3a1||_39f.useMin&&_39a(_39f.fixLower,["major","minor"]))?min:Math.ceil(min/_3a1)*_3a1,_3a8=(!_3a2||_39f.useMin&&_39a(_39f.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_3a2)*_3a2,_3a9=!_3a0?0:(_39f.useMax&&_39a(_39f.fixUpper,["major"])?Math.round((max-_3a6)/_3a0):Math.floor((max-_3a6)/_3a0))+1,_3aa=!_3a1?0:(_39f.useMax&&_39a(_39f.fixUpper,["major","minor"])?Math.round((max-_3a7)/_3a1):Math.floor((max-_3a7)/_3a1))+1,_3ab=!_3a2?0:(_39f.useMax&&_39a(_39f.fixUpper,["major","minor","micro"])?Math.round((max-_3a8)/_3a2):Math.floor((max-_3a8)/_3a2))+1,_3ac=_3a1?Math.round(_3a0/_3a1):0,_3ad=_3a2?Math.round(_3a1/_3a2):0,_3ae=_3a0?Math.floor(Math.log(_3a0)/Math.LN10):0,_3af=_3a1?Math.floor(Math.log(_3a1)/Math.LN10):0,_3b0=span/(max-min);if(!isFinite(_3b0)){_3b0=1;}return {bounds:{lower:_3a4,upper:_3a5,from:min,to:max,scale:_3b0,span:span},major:{tick:_3a0,start:_3a6,count:_3a9,prec:_3ae},minor:{tick:_3a1,start:_3a7,count:_3aa,prec:_3af},micro:{tick:_3a2,start:_3a8,count:_3ab,prec:0},minorPerMajor:_3ac,microPerMinor:_3ad,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_3b4){var h={fixUpper:"none",fixLower:"none",natural:false};if(_3b4){if("fixUpper" in _3b4){h.fixUpper=String(_3b4.fixUpper);}if("fixLower" in _3b4){h.fixLower=String(_3b4.fixLower);}if("natural" in _3b4){h.natural=Boolean(_3b4.natural);}}if("min" in _3b4){min=_3b4.min;}if("max" in _3b4){max=_3b4.max;}if(_3b4.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 _3b4){min=_3b4.from;h.useMin=false;}if("to" in _3b4){max=_3b4.to;h.useMax=false;}if(max<=min){return _39c(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_3b7=_3b4&&("majorTickStep" in _3b4)?_3b4.majorTickStep:Math.pow(10,mag),_3b8=0,_3b9=0,_3ba;if(_3b4&&("minorTickStep" in _3b4)){_3b8=_3b4.minorTickStep;}else{do{_3b8=_3b7/10;if(!h.natural||_3b8>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,0,span);if(_3ba.bounds.scale*_3ba.minor.tick>_396){break;}}_3b8=_3b7/5;if(!h.natural||_3b8>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,0,span);if(_3ba.bounds.scale*_3ba.minor.tick>_396){break;}}_3b8=_3b7/2;if(!h.natural||_3b8>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,0,span);if(_3ba.bounds.scale*_3ba.minor.tick>_396){break;}}return _39c(min,max,h,_3b7,0,0,span);}while(false);}if(_3b4&&("microTickStep" in _3b4)){_3b9=_3b4.microTickStep;_3ba=_39c(min,max,h,_3b7,_3b8,_3b9,span);}else{do{_3b9=_3b8/10;if(!h.natural||_3b9>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,_3b9,span);if(_3ba.bounds.scale*_3ba.micro.tick>_396){break;}}_3b9=_3b8/5;if(!h.natural||_3b9>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,_3b9,span);if(_3ba.bounds.scale*_3ba.micro.tick>_396){break;}}_3b9=_3b8/2;if(!h.natural||_3b9>0.9){_3ba=_39c(min,max,h,_3b7,_3b8,_3b9,span);if(_3ba.bounds.scale*_3ba.micro.tick>_396){break;}}_3b9=0;}while(false);}return _3b9?_3ba:_39c(min,max,h,_3b7,_3b8,0,span);},buildTicks:function(_3bb,_3bc){var step,next,tick,_3c0=_3bb.major.start,_3c1=_3bb.minor.start,_3c2=_3bb.micro.start;if(_3bc.microTicks&&_3bb.micro.tick){step=_3bb.micro.tick,next=_3c2;}else{if(_3bc.minorTicks&&_3bb.minor.tick){step=_3bb.minor.tick,next=_3c1;}else{if(_3bb.major.tick){step=_3bb.major.tick,next=_3c0;}else{return null;}}}var _3c3=1/_3bb.bounds.scale;if(_3bb.bounds.to<=_3bb.bounds.from||isNaN(_3c3)||!isFinite(_3c3)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _3c4=[],_3c5=[],_3c6=[];while(next<=_3bb.bounds.to+_3c3){if(Math.abs(_3c0-next)<step/2){tick={value:_3c0};if(_3bc.majorLabels){tick.label=_39b(_3c0,_3bb.major.prec,_3bc);}_3c4.push(tick);_3c0+=_3bb.major.tick;_3c1+=_3bb.minor.tick;_3c2+=_3bb.micro.tick;}else{if(Math.abs(_3c1-next)<step/2){if(_3bc.minorTicks){tick={value:_3c1};if(_3bc.minorLabels&&(_3bb.minMinorStep<=_3bb.minor.tick*_3bb.bounds.scale)){tick.label=_39b(_3c1,_3bb.minor.prec,_3bc);}_3c5.push(tick);}_3c1+=_3bb.minor.tick;_3c2+=_3bb.micro.tick;}else{if(_3bc.microTicks){_3c6.push({value:_3c2});}_3c2+=_3bb.micro.tick;}}next+=step;}return {major:_3c4,minor:_3c5,micro:_3c6};},getTransformerFromModel:function(_3c7){var _3c8=_3c7.bounds.from,_3c9=_3c7.bounds.scale;return function(x){return (x-_3c8)*_3c9;};},getTransformerFromPlot:function(_3cb){var _3cc=_3cb.bounds.from,_3cd=_3cb.bounds.scale;return function(x){return x/_3cd+_3cc;};}});})();}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;function _3d0(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";};dojo.mixin(dojox.charting.axis2d.common,{createText:{gfx:function(_3d2,_3d3,x,y,_3d6,text,font,_3d9){return _3d3.createText({x:x,y:y,text:text,align:_3d6}).setFont(font).setFill(_3d9);},html:function(_3da,_3db,x,y,_3de,text,font,_3e1){var p=dojo.doc.createElement("div"),s=p.style;_3d0(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_3e1;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size),box=dojo.marginBox(p);dojo.body().removeChild(p);s.position="relative";switch(_3de){case "middle":s.left=Math.floor(x-box.w/2)+"px";break;case "end":s.left=Math.floor(x-box.w)+"px";break;default:s.left=Math.floor(x)+"px";break;}s.top=Math.floor(y-size)+"px";var wrap=dojo.doc.createElement("div"),w=wrap.style;_3d0(w);w.width="0px";w.height="0px";wrap.appendChild(p);_3da.node.insertBefore(wrap,_3da.node.firstChild);return wrap;}}});})();}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(_3e8,_3e9){this.vertical=_3e9&&_3e9.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,_3ee){return this;}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");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(_3f8,map,_3fa,_3fb){_3fb=_3fb||dojo.global;_3fa=(!_3fa)?function(v){return v;}:dojo.hitch(_3fb,_3fa);return _3f8.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_3fd,key,_3ff){var _400=dojo.getObject(key,false,map);if(_3ff){_400=dojo.getObject(_3ff,false,_3fb).call(_3fb,_400,key);}return _3fa(_400,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["dojox.lang.utils"]){dojo._hasResource["dojox.lang.utils"]=true;dojo.provide("dojox.lang.utils");(function(){var _403={},du=dojox.lang.utils;var _405=function(o){if(dojo.isArray(o)){return dojo._toArray(o);}if(!dojo.isObject(o)||dojo.isFunction(o)){return o;}return dojo.delegate(o);};dojo.mixin(du,{coerceType:function(_407,_408){switch(typeof _407){case "number":return Number(eval("("+_408+")"));case "string":return String(_408);case "boolean":return Boolean(eval("("+_408+")"));}return eval("("+_408+")");},updateWithObject:function(_409,_40a,conv){if(!_40a){return _409;}for(var x in _409){if(x in _40a&&!(x in _403)){var t=_409[x];if(t&&typeof t=="object"){du.updateWithObject(t,_40a[x],conv);}else{_409[x]=conv?du.coerceType(t,_40a[x]):_405(_40a[x]);}}}return _409;},updateWithPattern:function(_40e,_40f,_410,conv){if(!_40f||!_410){return _40e;}for(var x in _410){if(x in _40f&&!(x in _403)){_40e[x]=conv?du.coerceType(_410[x],_40f[x]):_405(_40f[x]);}}return _40e;}});})();}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,df=dojox.lang.functional,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_418=4;dojo.declare("dojox.charting.axis2d.Default",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,htmlLabels:true},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,stroke:{},majorTick:{},minorTick:{},microTick:{},font:"",fontColor:""},constructor:function(_419,_41a){this.opt=dojo.delegate(this.defaultParams,_41a);du.updateWithPattern(this.opt,_41a,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(_41b,_41c){this.scale=_41b;this.offset=_41c;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},calculate:function(min,max,span,_420){if(this.initialized()){return this;}this.labels="labels" in this.opt?this.opt.labels:_420;this.scaler=lin.buildScaler(min,max,span,this.opt);if("scale" in this){this.opt.from=this.scaler.bounds.lower+this.offset;this.opt.to=(this.scaler.bounds.upper-this.scaler.bounds.lower)/this.scale+this.opt.from;if(!isFinite(this.opt.from)||isNaN(this.opt.from)||!isFinite(this.opt.to)||isNaN(this.opt.to)||this.opt.to-this.opt.from>=this.scaler.bounds.upper-this.scaler.bounds.lower){delete this.opt.from;delete this.opt.to;delete this.scale;delete this.offset;}else{if(this.opt.from<this.scaler.bounds.lower){this.opt.to+=this.scaler.bounds.lower-this.opt.from;this.opt.from=this.scaler.bounds.lower;}else{if(this.opt.to>this.scaler.bounds.upper){this.opt.from+=this.scaler.bounds.upper-this.opt.to;this.opt.to=this.scaler.bounds.upper;}}this.offset=this.opt.from-this.scaler.bounds.lower;}this.scaler=lin.buildScaler(min,max,span,this.opt);if(this.scale==1&&this.offset==0){delete this.scale;delete this.offset;}}var _421=0,ta=this.chart.theme.axis,_423="font" in this.opt?this.opt.font:ta.font,size=_423?g.normalizedLength(g.splitFontString(_423).size):0;if(this.vertical){if(size){_421=size+_418;}}else{if(size){var _425,i;if(this.opt.labelFunc&&this.opt.maxLabelSize){_425=this.opt.maxLabelSize;}else{if(this.labels){_425=df.foldl(df.map(this.labels,function(_427){return dojox.gfx._base._getTextBox(_427.text,{font:_423}).w;}),"Math.max(a, b)",0);}else{var _428=Math.ceil(Math.log(Math.max(Math.abs(this.scaler.bounds.from),Math.abs(this.scaler.bounds.to)))/Math.LN10),t=[];if(this.scaler.bounds.from<0||this.scaler.bounds.to<0){t.push("-");}t.push(dojo.string.rep("9",_428));var _42a=Math.floor(Math.log(this.scaler.bounds.to-this.scaler.bounds.from)/Math.LN10);if(_42a>0){t.push(".");for(i=0;i<_42a;++i){t.push("9");}}_425=dojox.gfx._base._getTextBox(t.join(""),{font:_423}).w;}}_421=_425+_418;}}this.scaler.minMinorStep=_421;this.ticks=lin.buildTicks(this.scaler,this.opt);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;},getOffsets:function(){var _42b={l:0,r:0,t:0,b:0},_42c,a,b,c,d,gtb=dojox.gfx._base._getTextBox,gl=dc.scaler.common.getNumericLabel,_433=0,ta=this.chart.theme.axis,_435="font" in this.opt?this.opt.font:ta.font,_436="majorTick" in this.opt?this.opt.majorTick:ta.majorTick,_437="minorTick" in this.opt?this.opt.minorTick:ta.minorTick,size=_435?g.normalizedLength(g.splitFontString(_435).size):0,s=this.scaler;if(!s){return _42b;}if(this.vertical){if(size){if(this.opt.labelFunc&&this.opt.maxLabelSize){_42c=this.opt.maxLabelSize;}else{if(this.labels){_42c=df.foldl(df.map(this.labels,function(_43a){return dojox.gfx._base._getTextBox(_43a.text,{font:_435}).w;}),"Math.max(a, b)",0);}else{a=gtb(gl(s.major.start,s.major.prec,this.opt),{font:_435}).w;b=gtb(gl(s.major.start+s.major.count*s.major.tick,s.major.prec,this.opt),{font:_435}).w;c=gtb(gl(s.minor.start,s.minor.prec,this.opt),{font:_435}).w;d=gtb(gl(s.minor.start+s.minor.count*s.minor.tick,s.minor.prec,this.opt),{font:_435}).w;_42c=Math.max(a,b,c,d);}}_433=_42c+_418;}_433+=_418+Math.max(_436.length,_437.length);_42b[this.opt.leftBottom?"l":"r"]=_433;_42b.t=_42b.b=size/2;}else{if(size){_433=size+_418;}_433+=_418+Math.max(_436.length,_437.length);_42b[this.opt.leftBottom?"b":"t"]=_433;if(size){if(this.opt.labelFunc&&this.opt.maxLabelSize){_42c=this.opt.maxLabelSize;}else{if(this.labels){_42c=df.foldl(df.map(this.labels,function(_43b){return dojox.gfx._base._getTextBox(_43b.text,{font:_435}).w;}),"Math.max(a, b)",0);}else{a=gtb(gl(s.major.start,s.major.prec,this.opt),{font:_435}).w;b=gtb(gl(s.major.start+s.major.count*s.major.tick,s.major.prec,this.opt),{font:_435}).w;c=gtb(gl(s.minor.start,s.minor.prec,this.opt),{font:_435}).w;d=gtb(gl(s.minor.start+s.minor.count*s.minor.tick,s.minor.prec,this.opt),{font:_435}).w;_42c=Math.max(a,b,c,d);}}_42b.l=_42b.r=_42c/2;}}return _42b;},render:function(dim,_43d){if(!this.dirty){return this;}var _43e,stop,_440,_441,_442,_443,ta=this.chart.theme.axis,_445="stroke" in this.opt?this.opt.stroke:ta.stroke,_446="majorTick" in this.opt?this.opt.majorTick:ta.majorTick,_447="minorTick" in this.opt?this.opt.minorTick:ta.minorTick,_448="microTick" in this.opt?this.opt.microTick:ta.minorTick,_449="font" in this.opt?this.opt.font:ta.font,_44a="fontColor" in this.opt?this.opt.fontColor:ta.fontColor,_44b=Math.max(_446.length,_447.length),size=_449?g.normalizedLength(g.splitFontString(_449).size):0;if(this.vertical){_43e={y:dim.height-_43d.b};stop={y:_43d.t};_440={x:0,y:-1};if(this.opt.leftBottom){_43e.x=stop.x=_43d.l;_441={x:-1,y:0};_443="end";}else{_43e.x=stop.x=dim.width-_43d.r;_441={x:1,y:0};_443="start";}_442={x:_441.x*(_44b+_418),y:size*0.4};}else{_43e={x:_43d.l};stop={x:dim.width-_43d.r};_440={x:1,y:0};_443="middle";if(this.opt.leftBottom){_43e.y=stop.y=dim.height-_43d.b;_441={x:0,y:1};_442={y:_44b+_418+size};}else{_43e.y=stop.y=_43d.t;_441={x:0,y:-1};_442={y:-_44b-_418};}_442.x=0;}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_450,f=lin.getTransformerFromModel(this.scaler),_452=dojox.gfx.renderer=="canvas",_453=_452||this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_441.x*_446.length,dy=_441.y*_446.length;s.createLine({x1:_43e.x,y1:_43e.y,x2:stop.x,y2:stop.y}).setStroke(_445);dojo.forEach(t.major,function(tick){var _457=f(tick.value),elem,x=_43e.x+_440.x*_457,y=_43e.y+_440.y*_457;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_446);if(tick.label){elem=dc.axis2d.common.createText[_453](this.chart,s,x+_442.x,y+_442.y,_443,tick.label,_449,_44a);if(_453=="html"){this.htmlElements.push(elem);}}},this);dx=_441.x*_447.length;dy=_441.y*_447.length;_450=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _45c=f(tick.value),elem,x=_43e.x+_440.x*_45c,y=_43e.y+_440.y*_45c;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_447);if(_450&&tick.label){elem=dc.axis2d.common.createText[_453](this.chart,s,x+_442.x,y+_442.y,_443,tick.label,_449,_44a);if(_453=="html"){this.htmlElements.push(elem);}}},this);dx=_441.x*_448.length;dy=_441.y*_448.length;dojo.forEach(t.micro,function(tick){var _461=f(tick.value),elem,x=_43e.x+_440.x*_461,y=_43e.y+_440.y*_461;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_448);},this);}catch(e){}this.dirty=false;return this;}});})();}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(_467){if(!_467){return _467;}if(typeof _467=="string"||_467 instanceof dojo.Color){_467={color:_467};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_467);},augmentColor:function(_468,_469){var t=new dojo.Color(_468),c=new dojo.Color(_469);c.a=t.a;return c;},augmentStroke:function(_46c,_46d){var s=dc.makeStroke(_46c);if(s){s.color=dc.augmentColor(s.color,_46d);}return s;},augmentFill:function(fill,_470){var fc,c=new dojo.Color(_470);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_470);}return fill;},defaultStats:{hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY,vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_473){var _474=dojo.clone(dc.defaultStats);for(var i=0;i<_473.length;++i){var run=_473[i];if(!run.data.length){continue;}if(typeof run.data[0]=="number"){var _477=_474.vmin,_478=_474.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){var x=i+1,y=val;if(isNaN(y)){y=0;}_474.hmin=Math.min(_474.hmin,x);_474.hmax=Math.max(_474.hmax,x);_474.vmin=Math.min(_474.vmin,y);_474.vmax=Math.max(_474.vmax,y);});}if("ymin" in run){_474.vmin=Math.min(_477,run.ymin);}if("ymax" in run){_474.vmax=Math.max(_478,run.ymax);}}else{var _47d=_474.hmin,_47e=_474.hmax,_477=_474.vmin,_478=_474.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){var x=val.x,y=val.y;if(isNaN(x)){x=0;}if(isNaN(y)){y=0;}_474.hmin=Math.min(_474.hmin,x);_474.hmax=Math.max(_474.hmax,x);_474.vmin=Math.min(_474.vmin,y);_474.vmax=Math.max(_474.vmax,y);});}if("xmin" in run){_474.hmin=Math.min(_47d,run.xmin);}if("xmax" in run){_474.hmax=Math.max(_47e,run.xmax);}if("ymin" in run){_474.vmin=Math.min(_477,run.ymin);}if("ymax" in run){_474.vmax=Math.max(_478,run.ymax);}}}return _474;},calculateBarSize:function(_483,opt,_485){if(!_485){_485=1;}var gap=opt.gap,size=(_483-2*gap)/_485;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=(_483-size*_485)/2;return {size:size,gap:gap};},collectStackedStats:function(_488){var _489=dojo.clone(dc.defaultStats);if(_488.length){_489.hmin=Math.min(_489.hmin,1);_489.hmax=df.foldl(_488,"seed, run -> Math.max(seed, run.data.length)",_489.hmax);for(var i=0;i<_489.hmax;++i){var v=_488[0].data[i];if(isNaN(v)){v=0;}_489.vmin=Math.min(_489.vmin,v);for(var j=1;j<_488.length;++j){var t=_488[j].data[i];if(isNaN(t)){t=0;}v+=t;}_489.vmax=Math.max(_489.vmax,v);}}return _489;},curve:function(a,_48f){var arr=a.slice(0);if(_48f=="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(_48f)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_48f-1)*(dx/_48f))+","+dy+" "+(item.x-(dx/_48f))+","+item.y+" "+item.x+","+item.y;}else{if(_48f=="X"||_48f=="x"||_48f=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_48f=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_48f=="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 _4a2=p0p2*f;var _4a3=p1p3*f;if(_4a2>p1p2/2&&_4a3>p1p2/2){_4a2=p1p2/2;_4a3=p1p2/2;}else{if(_4a2>p1p2/2){_4a2=p1p2/2;_4a3=p1p2/2*p1p3/p0p2;}else{if(_4a3>p1p2/2){_4a3=p1p2/2;_4a2=p1p2/2*p0p2/p1p3;}}}if(_48f=="S"){if(p0==p1){_4a2=0;}if(p2==p3){_4a3=0;}}bz1x=p1.x+_4a2*(p2.x-p0.x)/p0p2;bz1y=p1.y+_4a2*(p2.y-p0.y)/p0p2;bz2x=p2.x-_4a3*(p3.x-p1.x)/p1p3;bz2y=p2.y-_4a3*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");}});})();}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,_4a7){return {bounds:{lower:min,upper:max,from:min,to:max,scale:span/(max-min),span:span},scaler:dojox.charting.scaler.primitive};},buildTicks:function(_4a8,_4a9){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_4aa){var _4ab=_4aa.bounds.from,_4ac=_4aa.bounds.scale;return function(x){return (x-_4ab)*_4ac;};},getTransformerFromPlot:function(_4ae){var _4af=_4ae.bounds.from,_4b0=_4ae.bounds.scale;return function(x){return x/_4b0+_4af;};}};}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,{destroy:function(){this.resetEvents();this.inherited(arguments);},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;},calculateAxes:function(dim){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},render:function(dim,_4b6){return this;},getRequiredColors:function(){return this.series.length;},plotEvent:function(o){},connect:function(_4b8,_4b9){this.dirty=true;return dojo.connect(this,"plotEvent",_4b8,_4b9);},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(){this.plotEvent({type:"onplotreset",plot:this});},_calc:function(dim,_4bd){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_4bd.hmin,_4bd.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_4bd.hmin,_4bd.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_4bd.vmin,_4bd.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_4bd.vmin,_4bd.vmax,dim.height);}},_connectEvents:function(_4be,o){_4be.connect("onmouseover",this,function(e){o.type="onmouseover";o.event=e;this.plotEvent(o);});_4be.connect("onmouseout",this,function(e){o.type="onmouseout";o.event=e;this.plotEvent(o);});_4be.connect("onclick",this,function(e){o.type="onclick";o.event=e;this.plotEvent(o);});}});}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,_4c6=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Default",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,shadows:0,tension:0},optionalParams:{},constructor:function(_4c7,_4c8){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4c8);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;},calculateAxes:function(dim){this._calc(dim,dc.collectSimpleStats(this.series));return this;},render:function(dim,_4cb){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4c6);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_4cf,_4d0,_4d1,_4d2,_4d3=this.events();this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;continue;}var s=run.group,_4d6,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_4d6=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_4cb.l,y:dim.height-_4cb.b-vt(v)};},this);}else{_4d6=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_4cb.l,y:dim.height-_4cb.b-vt(v.y)};},this);}if(!run.fill||!run.stroke){_4d1=run.dyn.color=new dojo.Color(t.next("color"));}var _4dd=this.opt.tension?dc.curve(_4d6,this.opt.tension):"";if(this.opt.areas){var fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_4d1);var _4df=dojo.clone(_4d6);if(this.opt.tension){var _4e0="L"+_4df[_4df.length-1].x+","+(dim.height-_4cb.b)+" L"+_4df[0].x+","+(dim.height-_4cb.b)+" L"+_4df[0].x+","+_4df[0].y;run.dyn.fill=s.createPath(_4dd+" "+_4e0).setFill(fill).getFill();}else{_4df.push({x:_4d6[_4d6.length-1].x,y:dim.height-_4cb.b});_4df.push({x:_4d6[0].x,y:dim.height-_4cb.b});_4df.push(_4d6[0]);run.dyn.fill=s.createPolyline(_4df).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_4cf=run.stroke?dc.makeStroke(run.stroke):dc.augmentStroke(t.series.stroke,_4d1);if(run.outline||t.series.outline){_4d0=dc.makeStroke(run.outline?run.outline:t.series.outline);_4d0.width=2*_4d0.width+_4cf.width;}}if(this.opt.markers){_4d2=run.dyn.marker=run.marker?run.marker:t.next("marker");}var _4e1=null,_4e2=null,_4e3=null;if(this.opt.shadows&&_4cf){var sh=this.opt.shadows,_4e5=new dojo.Color([0,0,0,0.3]),_4e6=dojo.map(_4d6,function(c){return {x:c.x+sh.dx,y:c.y+sh.dy};}),_4e8=dojo.clone(_4d0?_4d0:_4cf);_4e8.color=_4e5;_4e8.width+=sh.dw?sh.dw:0;if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_4e6,this.opt.tension)).setStroke(_4e8).getStroke();}else{run.dyn.shadow=s.createPolyline(_4e6).setStroke(_4e8).getStroke();}}if(this.opt.markers){_4e3=dojo.map(_4e6,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_4d2).setStroke(_4e8).setFill(_4e5);},this);}}if(this.opt.lines){if(_4d0){if(this.opt.tension){run.dyn.outline=s.createPath(_4dd).setStroke(_4d0).getStroke();}else{run.dyn.outline=s.createPolyline(_4d6).setStroke(_4d0).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_4dd).setStroke(_4cf).getStroke();}else{run.dyn.stroke=s.createPolyline(_4d6).setStroke(_4cf).getStroke();}}if(this.opt.markers){_4e1=new Array(_4d6.length);_4e2=new Array(_4d6.length);dojo.forEach(_4d6,function(c,i){var path="M"+c.x+" "+c.y+" "+_4d2;if(_4d0){_4e2[i]=s.createPath(path).setStroke(_4d0);}_4e1[i]=s.createPath(path).setStroke(_4cf).setFill(_4cf.color);},this);if(_4d3){dojo.forEach(_4e1,function(s,i){var o={element:"marker",index:i,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:s,outline:_4e2[i]||null,shadow:_4e3&&_4e3[i]||null,cx:_4d6[i].x,cy:_4d6[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(s,o);},this);}}run.dirty=false;}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");dojo.declare("dojox.charting.plot2d.Scatter",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});}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,_4ff=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{calculateAxes:function(dim){var _501=dc.collectStackedStats(this.series);this._maxRunLength=_501.hmax;this._calc(dim,_501);return this;},render:function(dim,_503){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(isNaN(v)){v=0;}acc[j]+=v;}}this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4ff);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_50c,_50d,_50e,_50f,_510=this.events(),ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group,_513=dojo.map(acc,function(v,i){return {x:ht(i+1)+_503.l,y:dim.height-_503.b-vt(v)};},this);if(!run.fill||!run.stroke){_50e=new dojo.Color(t.next("color"));}var _516=this.opt.tension?dc.curve(_513,this.opt.tension):"";if(this.opt.areas){var _517=dojo.clone(_513);var fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_50e);if(this.opt.tension){var p=dc.curve(_517,this.opt.tension);p+=" L"+_513[_513.length-1].x+","+(dim.height-_503.b)+" L"+_513[0].x+","+(dim.height-_503.b)+" L"+_513[0].x+","+_513[0].y;run.dyn.fill=s.createPath(p).setFill(fill).getFill();}else{_517.push({x:_513[_513.length-1].x,y:dim.height-_503.b});_517.push({x:_513[0].x,y:dim.height-_503.b});_517.push(_513[0]);run.dyn.fill=s.createPolyline(_517).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_50c=run.stroke?dc.makeStroke(run.stroke):dc.augmentStroke(t.series.stroke,_50e);if(run.outline||t.series.outline){_50d=dc.makeStroke(run.outline?run.outline:t.series.outline);_50d.width=2*_50d.width+_50c.width;}}if(this.opt.markers){_50f=run.dyn.marker=run.marker?run.marker:t.next("marker");}var _51a,_51b,_51c;if(this.opt.shadows&&_50c){var sh=this.opt.shadows,_51e=new dojo.Color([0,0,0,0.3]),_51f=dojo.map(_513,function(c){return {x:c.x+sh.dx,y:c.y+sh.dy};}),_521=dojo.clone(_50d?_50d:_50c);_521.color=_51e;_521.width+=sh.dw?sh.dw:0;if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_51f,this.opt.tension)).setStroke(_521).getStroke();}else{run.dyn.shadow=s.createPolyline(_51f).setStroke(_521).getStroke();}}if(this.opt.markers){_51c=dojo.map(_51f,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_50f).setStroke(_521).setFill(_51e);},this);}}if(this.opt.lines){if(_50d){if(this.opt.tension){run.dyn.outline=s.createPath(_516).setStroke(_50d).getStroke();}else{run.dyn.outline=s.createPolyline(_513).setStroke(_50d).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_516).setStroke(_50c).getStroke();}else{run.dyn.stroke=s.createPolyline(_513).setStroke(_50c).getStroke();}}if(this.opt.markers){_51a=new Array(_513.length);_51b=new Array(_513.length);dojo.forEach(_513,function(c,i){var path="M"+c.x+" "+c.y+" "+_50f;if(_50d){_51b[i]=s.createPath(path).setStroke(_50d);}_51a[i]=s.createPath(path).setStroke(_50c).setFill(_50c.color);},this);if(_510){dojo.forEach(_51a,function(s,i){var o={element:"marker",index:i,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:s,outline:_51b[i]||null,shadow:_51c&&_51c[i]||null,cx:_513[i].x,cy:_513[i].y,x:i+1,y:run.data[i]};this._connectEvents(s,o);},this);}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];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,_52c=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Columns",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,shadows:null},optionalParams:{minBarSize:1,maxBarSize:1},constructor:function(_52d,_52e){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_52e);du.updateWithPattern(this.opt,_52e,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;},calculateAxes:function(dim){var _530=dc.collectSimpleStats(this.series);_530.hmin-=0.5;_530.hmax+=0.5;this._calc(dim,_530);return this;},render:function(dim,_532){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_52c);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_536,_537,fill,f,gap,_53b,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_53e=Math.max(0,this._vScaler.bounds.lower),_53f=vt(_53e),_540=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_53b=f.size;this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_536=run.dyn.color=new dojo.Color(t.next("color"));}_537=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_536);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_536);for(var j=0;j<run.data.length;++j){var v=run.data[j],vv=vt(v),_546=vv-_53f,h=Math.abs(_546);if(_53b>=1&&h>=1){var rect={x:_532.l+ht(j+0.5)+gap,y:dim.height-_532.b-(v>_53e?vv:_53f),width:_53b,height:h},_549=s.createRect(rect).setFill(fill).setStroke(_537);run.dyn.fill=_549.getFill();run.dyn.stroke=_549.getStroke();if(_540){var o={element:"column",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_549,x:j+0.5,y:v};this._connectEvents(_549,o);}}}run.dirty=false;}this.dirty=false;return this;}});})();}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,_54d=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{calculateAxes:function(dim){var _54f=dc.collectStackedStats(this.series);this._maxRunLength=_54f.hmax;_54f.hmin-=0.5;_54f.hmax+=0.5;this._calc(dim,_54f);return this;},render:function(dim,_551){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(isNaN(v)){v=0;}acc[j]+=v;}}this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_54d);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_55a,_55b,fill,f,gap,_55f,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_562=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_55f=f.size;this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_55a=run.dyn.color=new dojo.Color(t.next("color"));}_55b=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_55a);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_55a);for(var j=0;j<acc.length;++j){var v=acc[j],_563=vt(v);if(_55f>=1&&_563>=1){var _564=s.createRect({x:_551.l+ht(j+0.5)+gap,y:dim.height-_551.b-vt(v),width:_55f,height:_563}).setFill(fill).setStroke(_55b);run.dyn.fill=_564.getFill();run.dyn.stroke=_564.getStroke();if(_562){var o={element:"column",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_564,x:j+0.5,y:v};this._connectEvents(_564,o);}}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];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,_568=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_56a){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_568);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_56e,_56f,fill,f,gap,_573,_574,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_577=Math.max(0,this._vScaler.bounds.lower),_578=vt(_577),_579=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_573=_574=f.size;this.resetEvents();for(var i=0;i<this.series.length;++i){var run=this.series[i],_57c=_574*i;if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_56e=run.dyn.color=new dojo.Color(t.next("color"));}_56f=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_56e);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_56e);for(var j=0;j<run.data.length;++j){var v=run.data[j],vv=vt(v),_580=vv-_578,h=Math.abs(_580);if(_573>=1&&h>=1){var _582=s.createRect({x:_56a.l+ht(j+0.5)+gap+_57c,y:dim.height-_56a.b-(v>_577?vv:_578),width:_573,height:h}).setFill(fill).setStroke(_56f);run.dyn.fill=_582.getFill();run.dyn.stroke=_582.getStroke();if(_579){var o={element:"column",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_582,x:j+0.5,y:v};this._connectEvents(_582,o);}}}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,_587=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bars",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,shadows:null},optionalParams:{minBarSize:1,maxBarSize:1},constructor:function(_588,_589){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_589);du.updateWithPattern(this.opt,_589,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;},calculateAxes:function(dim){var _58b=dc.collectSimpleStats(this.series),t;_58b.hmin-=0.5;_58b.hmax+=0.5;t=_58b.hmin,_58b.hmin=_58b.vmin,_58b.vmin=t;t=_58b.hmax,_58b.hmax=_58b.vmax,_58b.vmax=t;this._calc(dim,_58b);return this;},render:function(dim,_58e){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_587);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_592,_593,fill,f,gap,_597,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_59a=Math.max(0,this._hScaler.bounds.lower),_59b=ht(_59a),_59c=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_597=f.size;this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_592=run.dyn.color=new dojo.Color(t.next("color"));}_593=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_592);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_592);for(var j=0;j<run.data.length;++j){var v=run.data[j],hv=ht(v),_5a2=hv-_59b,w=Math.abs(_5a2);if(w>=1&&_597>=1){var _5a4=s.createRect({x:_58e.l+(v<_59a?hv:_59b),y:dim.height-_58e.b-vt(j+1.5)+gap,width:w,height:_597}).setFill(fill).setStroke(_593);run.dyn.fill=_5a4.getFill();run.dyn.stroke=_5a4.getStroke();if(_59c){var o={element:"bar",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_5a4,x:v,y:j+1.5};this._connectEvents(_5a4,o);}}}run.dirty=false;}this.dirty=false;return this;}});})();}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,_5a8=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{calculateAxes:function(dim){var _5aa=dc.collectStackedStats(this.series),t;this._maxRunLength=_5aa.hmax;_5aa.hmin-=0.5;_5aa.hmax+=0.5;t=_5aa.hmin,_5aa.hmin=_5aa.vmin,_5aa.vmin=t;t=_5aa.hmax,_5aa.hmax=_5aa.vmax,_5aa.vmax=t;this._calc(dim,_5aa);return this;},render:function(dim,_5ad){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(isNaN(v)){v=0;}acc[j]+=v;}}this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_5a8);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_5b6,_5b7,fill,f,gap,_5bb,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_5be=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_5bb=f.size;this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_5b6=run.dyn.color=new dojo.Color(t.next("color"));}_5b7=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_5b6);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_5b6);for(var j=0;j<acc.length;++j){var v=acc[j],_5bf=ht(v);if(_5bf>=1&&_5bb>=1){var _5c0=s.createRect({x:_5ad.l,y:dim.height-_5ad.b-vt(j+1.5)+gap,width:_5bf,height:_5bb}).setFill(fill).setStroke(_5b7);run.dyn.fill=_5c0.getFill();run.dyn.stroke=_5c0.getStroke();if(_5be){var o={element:"bar",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_5c0,x:v,y:j+1.5};this._connectEvents(_5c0,o);}}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];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,_5c4=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_5c6){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_5c4);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_5ca,_5cb,fill,f,gap,_5cf,_5d0,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_5d3=Math.max(0,this._hScaler.bounds.lower),_5d4=ht(_5d3),_5d5=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_5cf=_5d0=f.size;this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_5d8=_5d0*(this.series.length-i-1);if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();var s=run.group;if(!run.fill||!run.stroke){_5ca=run.dyn.color=new dojo.Color(t.next("color"));}_5cb=run.stroke?run.stroke:dc.augmentStroke(t.series.stroke,_5ca);fill=run.fill?run.fill:dc.augmentFill(t.series.fill,_5ca);for(var j=0;j<run.data.length;++j){var v=run.data[j],hv=ht(v),_5dc=hv-_5d4,w=Math.abs(_5dc);if(w>=1&&_5cf>=1){var _5de=s.createRect({x:_5c6.l+(v<_5d3?hv:_5d4),y:dim.height-_5c6.b-vt(j+1.5)+gap+_5d8,width:w,height:_5cf}).setFill(fill).setStroke(_5cb);run.dyn.fill=_5de.getFill();run.dyn.stroke=_5de.getStroke();if(_5d5){var o={element:"bar",index:j,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:_5de,x:v,y:j+1.5};this._connectEvents(_5de,o);}}}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;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"},optionalParams:{},constructor:function(_5e1,_5e2){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_5e2);this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.dirty=true;},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;},calculateAxes:function(dim){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},getRequiredColors:function(){return 0;},render:function(dim,_5e7){this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _5ea=this._vAxis.getScaler(),vt=_5ea.scaler.getTransformerFromModel(_5ea),_5ec=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_5ec.minor,function(tick){var y=dim.height-_5e7.b-vt(tick.value);s.createLine({x1:_5e7.l,y1:y,x2:dim.width-_5e7.r,y2:y}).setStroke(ta.minorTick);});}if(this.opt.hMajorLines){dojo.forEach(_5ec.major,function(tick){var y=dim.height-_5e7.b-vt(tick.value);s.createLine({x1:_5e7.l,y1:y,x2:dim.width-_5e7.r,y2:y}).setStroke(ta.majorTick);});}}catch(e){}try{var _5f1=this._hAxis.getScaler(),ht=_5f1.scaler.getTransformerFromModel(_5f1),_5ec=this._hAxis.getTicks();if(_5ec&&this.opt.vMinorLines){dojo.forEach(_5ec.minor,function(tick){var x=_5e7.l+ht(tick.value);s.createLine({x1:x,y1:_5e7.t,x2:x,y2:dim.height-_5e7.b}).setStroke(ta.minorTick);});}if(_5ec&&this.opt.vMajorLines){dojo.forEach(_5ec.major,function(tick){var x=_5e7.l+ht(tick.value);s.createLine({x1:x,y1:_5e7.t,x2:x,y2:dim.height-_5e7.b}).setStroke(ta.majorTick);});}}catch(e){}this.dirty=false;return this;}});})();}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;dojo.declare("dojox.charting.plot2d.Pie",dojox.charting.Element,{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true},optionalParams:{font:"",fontColor:"",radius:0},constructor:function(_5fc,_5fd){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_5fd);du.updateWithPattern(this.opt,_5fd,this.optionalParams);this.run=null;this.dyn=[];},destroy:function(){this.resetEvents();this.inherited(arguments);},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;},calculateAxes:function(dim){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},plotEvent:function(o){},connect:function(_602,_603){this.dirty=true;return dojo.connect(this,"plotEvent",_602,_603);},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(){this.plotEvent({type:"onplotreset",plot:this});},_connectEvents:function(_606,o){_606.connect("onmouseover",this,function(e){o.type="onmouseover";o.event=e;this.plotEvent(o);});_606.connect("onmouseout",this,function(e){o.type="onmouseout";o.event=e;this.plotEvent(o);});_606.connect("onclick",this,function(e){o.type="onclick";o.event=e;this.plotEvent(o);});},render:function(dim,_60c){if(!this.dirty){return this;}this.dirty=false;this.cleanGroup();var s=this.group,_60e,t=this.chart.theme;this.resetEvents();if(!this.run||!this.run.data.length){return this;}var rx=(dim.width-_60c.l-_60c.r)/2,ry=(dim.height-_60c.t-_60c.b)/2,r=Math.min(rx,ry),_613="font" in this.opt?this.opt.font:t.axis.font,size=_613?g.normalizedLength(g.splitFontString(_613).size):0,_615="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_616=0,step,_618,_619,_61a,_61b,_61c,run=this.run.data,_61e=this.events();if(typeof run[0]=="number"){_618=df.map(run,"Math.max(x, 0)");if(df.every(_618,"<= 0")){return this;}_619=df.map(_618,"/this",df.foldl(_618,"+",0));if(this.opt.labels){_61a=dojo.map(_619,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_618=df.map(run,"Math.max(x.y, 0)");if(df.every(_618,"<= 0")){return this;}_619=df.map(_618,"/this",df.foldl(_618,"+",0));if(this.opt.labels){_61a=dojo.map(_619,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}if(this.opt.labels){_61b=df.foldl1(df.map(_61a,function(_623){return dojox.gfx._base._getTextBox(_623,{font:_613}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_61b,ry-size)+this.opt.labelOffset;}_61c=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_61c=r-this.opt.labelOffset;}var _624={cx:_60c.l+rx,cy:_60c.t+ry,r:r};this.dyn=[];dojo.some(_619,function(_625,i){if(_625<=0){return false;}var v=run[i];if(_625>=1){var _628,fill,_62a;if(typeof v=="object"){_628="color" in v?v.color:new dojo.Color(t.next("color"));fill="fill" in v?v.fill:dc.augmentFill(t.series.fill,_628);_62a="stroke" in v?v.stroke:dc.augmentStroke(t.series.stroke,_628);}else{_628=new dojo.Color(t.next("color"));fill=dc.augmentFill(t.series.fill,_628);_62a=dc.augmentStroke(t.series.stroke,_628);}var _62b=s.createCircle(_624).setFill(fill).setStroke(_62a);this.dyn.push({color:_628,fill:fill,stroke:_62a});if(_61e){var o={element:"slice",index:i,run:this.run,plot:this,shape:_62b,x:i,y:typeof v=="number"?v:v.y,cx:_624.cx,cy:_624.cy,cr:r};this._connectEvents(_62b,o);}return true;}var end=_616+_625*2*Math.PI;if(i+1==_619.length){end=2*Math.PI;}var step=end-_616,x1=_624.cx+r*Math.cos(_616),y1=_624.cy+r*Math.sin(_616),x2=_624.cx+r*Math.cos(end),y2=_624.cy+r*Math.sin(end);var _628,fill,_62a;if(typeof v=="object"){_628="color" in v?v.color:new dojo.Color(t.next("color"));fill="fill" in v?v.fill:dc.augmentFill(t.series.fill,_628);_62a="stroke" in v?v.stroke:dc.augmentStroke(t.series.stroke,_628);}else{_628=new dojo.Color(t.next("color"));fill=dc.augmentFill(t.series.fill,_628);_62a=dc.augmentStroke(t.series.stroke,_628);}var _62b=s.createPath({}).moveTo(_624.cx,_624.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_624.cx,_624.cy).closePath().setFill(fill).setStroke(_62a);this.dyn.push({color:_628,fill:fill,stroke:_62a});if(_61e){var o={element:"slice",index:i,run:this.run,plot:this,shape:_62b,x:i,y:typeof v=="number"?v:v.y,cx:_624.cx,cy:_624.cy,cr:r};this._connectEvents(_62b,o);}_616=end;return false;},this);if(this.opt.labels){_616=0;dojo.some(_619,function(_633,i){if(_633<=0){return false;}if(_633>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_624.cx,_624.cy+size/2,"middle",_61a[i],_613,(typeof v=="object"&&"fontColor" in v)?v.fontColor:_615);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_616+_633*2*Math.PI,v=run[i];if(i+1==_619.length){end=2*Math.PI;}var _638=(_616+end)/2,x=_624.cx+_61c*Math.cos(_638),y=_624.cy+_61c*Math.sin(_638)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_61a[i],_613,(typeof v=="object"&&"fontColor" in v)?v.fontColor:_615);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_616=end;return false;},this);}return this;},_getLabel:function(_63b){return this.opt.fixed?_63b.toFixed(this.opt.precision):_63b.toString();}});})();}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,_63f=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bubble",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y"},optionalParams:{},constructor:function(_640,_641){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_641);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;},calculateAxes:function(dim){this._calc(dim,dc.collectSimpleStats(this.series));return this;},render:function(dim,_644){this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_63f);this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_648,_649,_64a,_64b,_64c,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_64f=this.events();this.resetEvents();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;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 s=run.group,_652=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_644.l,y:dim.height-_644.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)};},this);if(run.fill){_64a=run.fill;}else{if(run.stroke){_64a=run.stroke;}else{_64a=run.dyn.color=new dojo.Color(t.next("color"));}}run.dyn.fill=_64a;_648=run.dyn.stroke=run.stroke?dc.makeStroke(run.stroke):dc.augmentStroke(t.series.stroke,_64a);var _655=null,_656=null,_657=null;if(this.opt.shadows&&_648){var sh=this.opt.shadows,_64c=new dojo.Color([0,0,0,0.2]),_64b=dojo.clone(_649?_649:_648);_64b.color=_64c;_64b.width+=sh.dw?sh.dw:0;run.dyn.shadow=_64b;var _659=dojo.map(_652,function(item){var sh=this.opt.shadows;return s.createCircle({cx:item.x+sh.dx,cy:item.y+sh.dy,r:item.radius}).setStroke(_64b).setFill(_64c);},this);}if(run.outline||t.series.outline){_649=dc.makeStroke(run.outline?run.outline:t.series.outline);_649.width=2*_649.width+_648.width;run.dyn.outline=_649;_656=dojo.map(_652,function(item){s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_649);},this);}_655=dojo.map(_652,function(item){return s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_648).setFill(_64a);},this);if(_64f){dojo.forEach(_655,function(s,i){var o={element:"circle",index:i,run:run,plot:this,hAxis:this.hAxis||null,vAxis:this.vAxis||null,shape:s,outline:_656&&_656[i]||null,shadow:_657&&_657[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_652[i].x,cy:_652[i].y,cr:_652[i].radius};this._connectEvents(s,o);},this);}run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.Chart2D"]){dojo._hasResource["dojox.charting.Chart2D"]=true;dojo.provide("dojox.charting.Chart2D");(function(){var df=dojox.lang.functional,dc=dojox.charting,_663=df.lambda("item.clear()"),_664=df.lambda("item.purgeGroup()"),_665=df.lambda("item.destroy()"),_666=df.lambda("item.dirty = false"),_667=df.lambda("item.dirty = true");dojo.declare("dojox.charting.Chart2D",null,{constructor:function(node,_669){if(!_669){_669={};}this.margins=_669.margins?_669.margins:{l:10,t:10,r:10,b:10};this.stroke=_669.stroke;this.fill=_669.fill;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=dojox.gfx.createSurface(this.node,box.w,box.h);},destroy:function(){dojo.forEach(this.series,_665);dojo.forEach(this.stack,_665);df.forIn(this.axes,_665);this.surface.destroy();},getCoords:function(){if(!this.coords){this.coords=dojo.coords(this.node,true);}return this.coords;},setTheme:function(_66b){this.theme=_66b._clone();this.dirty=true;return this;},addAxis:function(name,_66d){var axis;if(!_66d||!("type" in _66d)){axis=new dc.axis2d.Default(this,_66d);}else{axis=typeof _66d.type=="string"?new dc.axis2d[_66d.type](this,_66d):new _66d.type(this,_66d);}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,_672){var plot;if(!_672||!("type" in _672)){plot=new dc.plot2d.Default(this,_672);}else{plot=typeof _672.type=="string"?new dc.plot2d[_672.type](this,_672):new _672.type(this,_672);}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 _675=this.plots[name];delete this.plots[name];this.stack[_675].destroy();this.stack.splice(_675,1);df.forIn(this.plots,function(idx,name,_678){if(idx>_675){_678[name]=idx-1;}});this.dirty=true;}return this;},addSeries:function(name,data,_67b){var run=new dc.Series(this,data,_67b);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);}run.name=name;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 _67e=this.runs[name],_67f=this.series[_67e].plot;delete this.runs[name];this.series[_67e].destroy();this.series.splice(_67e,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_67e){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.data=data;run.dirty=true;this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},resize:function(_686,_687){var box;switch(arguments.length){case 0:box=dojo.marginBox(this.node);break;case 1:box=_686;break;default:box={w:_686,h:_687};break;}dojo.marginBox(this.node,box);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,_68c,_68d){var axis=this.axes[name];if(axis){axis.setWindow(_68c,_68d);}return this;},setWindow:function(sx,sy,dx,dy){if(!("plotArea" in this)){this.calculateGeometry();}df.forIn(this.axes,function(axis){var _694,_695,_696=axis.getScaler().bounds,s=_696.span/(_696.upper-_696.lower);if(axis.vertical){_694=sy;_695=dy/s/_694;}else{_694=sx;_695=dx/s/_694;}axis.setWindow(_694,_695);});return this;},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}dojo.forEach(this.stack,function(plot){if(plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty)){plot.calculateAxes(this.plotArea);}},this);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_663);if(!this.theme){this.setTheme(new dojox.charting.Theme(dojox.charting._def));}dojo.forEach(this.series,function(run){if(!(run.plot in this.plots)){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=dojox.gfx.normalizedLength(dim.width);dim.height=dojox.gfx.normalizedLength(dim.height);df.forIn(this.axes,_663);dojo.forEach(this.stack,function(plot){plot.calculateAxes(dim);});var _69e=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_69e[i]+=o;});});df.forIn(this.margins,function(o,i){_69e[i]+=o;});this.plotArea={width:dim.width-_69e.l-_69e.r,height:dim.height-_69e.t-_69e.b};df.forIn(this.axes,_663);dojo.forEach(this.stack,function(plot){plot.calculateAxes(this.plotArea);},this);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 _6a7=this.offsets,dim=this.dim;var _6a9=df.foldl(this.stack,"z + plot.getRequiredColors()",0);this.theme.defineColors({num:_6a9,cache:false});dojo.forEach(this.series,_664);df.forIn(this.axes,_664);dojo.forEach(this.stack,_664);this.surface.clear();var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_6ac=t.plotarea&&t.plotarea.stroke;if(fill){this.surface.createRect({x:_6a7.l,y:_6a7.t,width:dim.width-_6a7.l-_6a7.r,height:dim.height-_6a7.t-_6a7.b}).setFill(fill);}if(_6ac){this.surface.createRect({x:_6a7.l,y:_6a7.t,width:dim.width-_6a7.l-_6a7.r-1,height:dim.height-_6a7.t-_6a7.b-1}).setStroke(_6ac);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_6a7),0;},0);fill=this.fill?this.fill:(t.chart&&t.chart.fill);_6ac=this.stroke?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){if(_6a7.l){this.surface.createRect({width:_6a7.l,height:dim.height+1}).setFill(fill);}if(_6a7.r){this.surface.createRect({x:dim.width-_6a7.r,width:_6a7.r+1,height:dim.height+1}).setFill(fill);}if(_6a7.t){this.surface.createRect({width:dim.width+1,height:_6a7.t}).setFill(fill);}if(_6a7.b){this.surface.createRect({y:dim.height-_6a7.b,width:dim.width+1,height:_6a7.b+2}).setFill(fill);}}if(_6ac){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_6ac);}df.forIn(this.axes,function(axis){axis.render(dim,_6a7);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},connectToPlot:function(name,_6b2,_6b3){return name in this.plots?this.stack[this.plots[name]].connect(_6b2,_6b3):null;},_makeClean:function(){dojo.forEach(this.axes,_666);dojo.forEach(this.stack,_666);dojo.forEach(this.series,_666);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_667);dojo.forEach(this.stack,_667);dojo.forEach(this.series,_667);this.dirty=true;},_invalidateDependentPlots:function(_6b4,_6b5){if(_6b4 in this.plots){var plot=this.stack[this.plots[_6b4]],axis,_6b8=_6b5?"vAxis":"hAxis";if(plot[_6b8]){axis=this.axes[plot[_6b8]];if(axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_6b8]&&p[_6b8]==plot[_6b8]){p.dirty=true;}});}}else{plot.dirty=true;}}}});})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");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;var _6e8=function(_6e9,end){this.start=_6e9,this.end=end;};d.extend(_6e8,{getValue:function(r){return (this.end-this.start)*r+this.start;}});var _6ec=function(_6ed,end,unit){this.start=_6ed,this.end=end;this.unit=unit;};d.extend(_6ec,{getValue:function(r){return (this.end-this.start)*r+this.start+this.unit;}});var _6f1=function(_6f2,end){this.start=_6f2,this.end=end;this.temp=new dojo.Color();};d.extend(_6f1,{getValue:function(r){return d.blendColors(this.start,this.end,r,this.temp);}});var _6f5=function(_6f6){this.values=_6f6;this.length=_6f6.length;};d.extend(_6f5,{getValue:function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];}});var _6f8=function(_6f9,def){this.values=_6f9;this.def=def?def:{};};d.extend(_6f8,{getValue:function(r){var ret=dojo.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;}});var _6fe=function(_6ff,_700){this.stack=_6ff;this.original=_700;};d.extend(_6fe,{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;}),_708=f.apply(m,val);if(_708 instanceof m.Matrix2D){ret.push(_708);}},this);return ret;}});var _709=new d.Color(0,0,0,0);var _70a=function(prop,obj,name,def){if(prop.values){return new _6f5(prop.values);}var _70f,_710,end;if(prop.start){_710=g.normalizeColor(prop.start);}else{_710=_70f=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_70f){_70f=obj?(name?obj[name]:obj):def;}end=_70f;}return new _6f1(_710,end);};var _712=function(prop,obj,name,def){if(prop.values){return new _6f5(prop.values);}var _717,_718,end;if(prop.start){_718=prop.start;}else{_718=_717=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _717!="number"){_717=obj?obj[name]:def;}end=_717;}return new _6e8(_718,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args),_71c=args.shape,_71d;d.connect(anim,"beforeBegin",anim,function(){_71d=_71c.getStroke();var prop=args.color,_71f={},_720,_721,end;if(prop){_71f.color=_70a(prop,_71d,"color",_709);}prop=args.style;if(prop&&prop.values){_71f.style=new _6f5(prop.values);}prop=args.width;if(prop){_71f.width=_712(prop,_71d,"width",1);}prop=args.cap;if(prop&&prop.values){_71f.cap=new _6f5(prop.values);}prop=args.join;if(prop){if(prop.values){_71f.join=new _6f5(prop.values);}else{_721=prop.start?prop.start:(_71d&&_71d.join||0);end=prop.end?prop.end:(_71d&&_71d.join||0);if(typeof _721=="number"&&typeof end=="number"){_71f.join=new _6e8(_721,end);}}}this.curve=new _6f8(_71f,_71d);});d.connect(anim,"onAnimate",_71c,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args),_725=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_725.getFill();var prop=args.color,_728={};if(prop){this.curve=_70a(prop,fill,"",_709);}});d.connect(anim,"onAnimate",_725,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args),_72b=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_72b.getFont();var prop=args.style,_72e={},_72f,_730,end;if(prop&&prop.values){_72e.style=new _6f5(prop.values);}prop=args.variant;if(prop&&prop.values){_72e.variant=new _6f5(prop.values);}prop=args.weight;if(prop&&prop.values){_72e.weight=new _6f5(prop.values);}prop=args.family;if(prop&&prop.values){_72e.family=new _6f5(prop.values);}prop=args.size;if(prop&&prop.unit){_730=parseFloat(prop.start?prop.start:(_72b.font&&_72b.font.size||"0"));end=parseFloat(prop.end?prop.end:(_72b.font&&_72b.font.size||"0"));_72e.size=new _6ec(_730,end,prop.unit);}this.curve=new _6f8(_72e,font);});d.connect(anim,"onAnimate",_72b,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args),_734=args.shape,_735;d.connect(anim,"beforeBegin",anim,function(){_735=_734.getTransform();this.curve=new _6fe(args.transform,_735);});d.connect(anim,"onAnimate",_734,"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 _736=400,_737=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_739,plot,_73b){this.chart=_739;this.plot=plot?plot:"default";this.anim={};if(!_73b){_73b={};}this.duration=_73b.duration?_73b.duration:_736;this.easing=_73b.easing?_73b.easing:_737;},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(){if(this.handle){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 _73e=100,_73f=75,_740=50,c=dojox.color,cc=function(_743){return function(){return _743;};},hl=function(_745){var a=new c.Color(_745),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_73e;if(x.l<_740){x.l=_73f;}else{if(x.l>_73f){x.l=_740;}else{x.l=x.l-_740>_73f-x.l?_740:_73f;}}}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(_748,plot,_74a){var a=_74a&&_74a.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 _74d=o.run.name,_74e=o.index,anim,_750,_751;if(_74d in this.anim){anim=this.anim[_74d][_74e];}else{this.anim[_74d]={};}if(anim){anim.action.stop(true);}else{var _752=o.shape.getFill();if(!_752||!(_752 instanceof dojo.Color)){return;}this.anim[_74d][_74e]=anim={start:_752,end:this.colorFun(_752)};}var _753=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_753;_753=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_753,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_74d]){delete this.anim[_74d][_74e];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_758){return this.showAnim.play(_758||0);},hide:function(_759){return this.hideAnim.play(_759||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_75b={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _75e=function(_75f){this._index=-1;this._animations=_75f||[];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(_75e,{_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(_761,_762){if(!this._current){this._current=this._animations[this._index=0];}if(!_762&&this._current.status()=="playing"){return this;}var _763=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_764=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_766=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_763);d.disconnect(_764);d.disconnect(_766);});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(_76a,_76b){this.pause();var _76c=this.duration*_76a;this._current=null;d.some(this._animations,function(a){if(a.duration<=_76c){this._current=a;return true;}_76c-=a.duration;return false;});if(this._current){this._current.gotoPercent(_76c/this._current.duration,_76b);}return this;},stop:function(_76e){if(this._current){if(_76e){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(_75e,_75b);dojo.fx.chain=function(_771){return new _75e(_771);};var _772=function(_773){this._animations=_773||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_773,function(a){var _775=a.duration;if(a.delay){_775+=a.delay;}if(this.duration<_775){this.duration=_775;}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"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_772,{_doAction:function(_778,args){d.forEach(this._animations,function(a){a[_778].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_77b,args){var t=this._pseudoAnimation;t[_77b].apply(t,args);},play:function(_77e,_77f){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(_780,_781){var ms=this.duration*_780;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_781);});this._call("gotoPercent",arguments);return this;},stop:function(_784){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(_772,_75b);dojo.fx.combine=function(_785){return new _772(_785);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=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 _78b=d.style(node,"height");return Math.max(_78b,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.coords(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["dojox.charting.action2d.Magnify"]){dojo._hasResource["dojox.charting.action2d.Magnify"]=true;dojo.provide("dojox.charting.action2d.Magnify");(function(){var _79b=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:_79b},optionalParams:{},constructor:function(_79e,plot,_7a0){this.scale=_7a0&&typeof _7a0.scale=="number"?_7a0.scale:_79b;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _7a2=o.run.name,_7a3=o.index,_7a4=[],anim,init,_7a7;if(_7a2 in this.anim){anim=this.anim[_7a2][_7a3];}else{this.anim[_7a2]={};}if(anim){anim.action.stop(true);}else{this.anim[_7a2][_7a3]=anim={};}if(o.type=="onmouseover"){init=m.identity;_7a7=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_7a7=1/this.scale;}var _7a8={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_7a7,o.cx,o.cy]},init]};if(o.shape){_7a4.push(gf.animateTransform(_7a8));}if(o.oultine){_7a8.shape=o.outline;_7a4.push(gf.animateTransform(_7a8));}if(o.shadow){_7a8.shape=o.shadow;_7a4.push(gf.animateTransform(_7a8));}if(!_7a4.length){delete this.anim[_7a2][_7a3];return;}anim.action=dojo.fx.combine(_7a4);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_7a2]){delete this.anim[_7a2][_7a3];}});}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,_7ab={};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 _7ab)){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,_7b9=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 _7ab)){if(_7b9){t=[z=a[i]];_7b9=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 _7c9=1.05,_7ca=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:_7c9,shift:_7ca},optionalParams:{},constructor:function(_7ce,plot,_7d0){if(!_7d0){_7d0={};}this.scale=typeof _7d0.scale=="number"?_7d0.scale:_7c9;this.shift=typeof _7d0.shift=="number"?_7d0.shift:_7ca;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}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 _7d2=o.index,anim,_7d4,_7d5,_7d6,_7d7=(this.angles[_7d2]+this.angles[_7d2+1])/2,_7d8=m.rotateAt(-_7d7,o.cx,o.cy),_7d9=m.rotateAt(_7d7,o.cx,o.cy);anim=this.anim[_7d2];if(anim){anim.action.stop(true);}else{this.anim[_7d2]=anim={};}if(o.type=="onmouseover"){_7d5=0;_7d6=this.shift;_7d4=this.scale;}else{_7d5=this.shift;_7d6=0;_7d4=1/this.scale;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_7d9,{name:"translate",start:[_7d5,0],end:[_7d6,0]},{name:"scaleAt",start:[1,o.cx,o.cy],end:[_7d4,o.cx,o.cy]},_7d8]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_7d2];});}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 _7da=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:_7da,shiftY:_7da},optionalParams:{},constructor:function(_7dd,plot,_7df){if(!_7df){_7df={};}this.shiftX=typeof _7df.shiftX=="number"?_7df.shiftX:_7da;this.shiftY=typeof _7df.shiftY=="number"?_7df.shiftY:_7da;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _7e1=o.run.name,_7e2=o.index,_7e3=[],anim,_7e5=o.type=="onmouseover"?this.shiftX:-this.shiftX,_7e6=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_7e1 in this.anim){anim=this.anim[_7e1][_7e2];}else{this.anim[_7e1]={};}if(anim){anim.action.stop(true);}else{this.anim[_7e1][_7e2]=anim={};}var _7e7={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){_7e3.push(gf.animateTransform(_7e7));}if(o.oultine){_7e7.shape=o.outline;_7e3.push(gf.animateTransform(_7e7));}if(o.shadow){_7e7.shape=o.shadow;_7e3.push(gf.animateTransform(_7e7));}if(!_7e3.length){delete this.anim[_7e1][_7e2];return;}anim.action=dojo.fx.combine(_7e3);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_7e1]){delete this.anim[_7e1][_7e2];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_7e8,_7e9){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 _7ea=dojo.date.stamp._isoRegExp.exec(_7e8);var _7eb=null;if(_7ea){_7ea.shift();if(_7ea[1]){_7ea[1]--;}if(_7ea[6]){_7ea[6]*=1000;}if(_7e9){_7e9=new Date(_7e9);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _7e9["get"+prop]();}).forEach(function(_7ed,_7ee){if(_7ea[_7ee]===undefined){_7ea[_7ee]=_7ed;}});}_7eb=new Date(_7ea[0]||1970,_7ea[1]||0,_7ea[2]||1,_7ea[3]||0,_7ea[4]||0,_7ea[5]||0,_7ea[6]||0);var _7ef=0;var _7f0=_7ea[7]&&_7ea[7].charAt(0);if(_7f0!="Z"){_7ef=((_7ea[8]||0)*60)+(Number(_7ea[9])||0);if(_7f0!="-"){_7ef*=-1;}}if(_7f0){_7ef-=_7eb.getTimezoneOffset();}if(_7ef){_7eb.setTime(_7eb.getTime()+_7ef*60000);}}return _7eb;};dojo.date.stamp.toISOString=function(_7f1,_7f2){var _=function(n){return (n<10)?"0"+n:n;};_7f2=_7f2||{};var _7f5=[];var _7f6=_7f2.zulu?"getUTC":"get";var date="";if(_7f2.selector!="time"){var year=_7f1[_7f6+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_7f1[_7f6+"Month"]()+1),_(_7f1[_7f6+"Date"]())].join("-");}_7f5.push(date);if(_7f2.selector!="date"){var time=[_(_7f1[_7f6+"Hours"]()),_(_7f1[_7f6+"Minutes"]()),_(_7f1[_7f6+"Seconds"]())].join(":");var _7fa=_7f1[_7f6+"Milliseconds"]();if(_7f2.milliseconds){time+="."+(_7fa<100?"0":"")+_(_7fa);}if(_7f2.zulu){time+="Z";}else{if(_7f2.selector!="time"){var _7fb=_7f1.getTimezoneOffset();var _7fc=Math.abs(_7fb);time+=(_7fb>0?"-":"+")+_(Math.floor(_7fc/60))+":"+_(_7fc%60);}}_7f5.push(time);}return _7f5.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _7fe=d._scopeName+"Type";var qry="["+_7fe+"]";var _800=0,_801={};var _802=function(_803,_804){var nso=_804||_801;if(dojo.isIE){var cn=_803["__dojoNameCache"];if(cn&&nso[cn]===_803){return cn;}}var name;do{name="__"+_800++;}while(name in nso);nso[name]=_803;return name;};function _808(_809){if(d.isString(_809)){return "string";}if(typeof _809=="number"){return "number";}if(typeof _809=="boolean"){return "boolean";}if(d.isFunction(_809)){return "function";}if(d.isArray(_809)){return "array";}if(_809 instanceof Date){return "date";}if(_809 instanceof d._Url){return "url";}return "object";};function _80a(_80b,type){switch(type){case "string":return _80b;case "number":return _80b.length?Number(_80b):NaN;case "boolean":return typeof _80b=="boolean"?_80b:!(_80b.toLowerCase()=="false");case "function":if(d.isFunction(_80b)){_80b=_80b.toString();_80b=d.trim(_80b.substring(_80b.indexOf("{")+1,_80b.length-1));}try{if(_80b.search(/[^\w\.]+/i)!=-1){_80b=_802(new Function(_80b),this);}return d.getObject(_80b,false);}catch(e){return new Function();}case "array":return _80b?_80b.split(/\s*,\s*/):[];case "date":switch(_80b){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_80b);}case "url":return d.baseUrl+_80b;default:return d.fromJson(_80b);}};var _80d={};function _80e(_80f){if(!_80d[_80f]){var cls=d.getObject(_80f);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_80f+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _811=cls.prototype;var _812={},_813={};for(var name in _811){if(name.charAt(0)=="_"){continue;}if(name in _813){continue;}var _815=_811[name];_812[name]=_808(_815);}_80d[_80f]={cls:cls,params:_812};}return _80d[_80f];};this._functionFromScript=function(_816){var _817="";var _818="";var _819=_816.getAttribute("args");if(_819){d.forEach(_819.split(/\s*,\s*/),function(part,idx){_817+="var "+part+" = arguments["+idx+"]; ";});}var _81c=_816.getAttribute("with");if(_81c&&_81c.length){d.forEach(_81c.split(/\s*,\s*/),function(part){_817+="with("+part+"){";_818+="}";});}return new Function(_817+_816.innerHTML+_818);};this.instantiate=function(_81e,_81f){var _820=[];_81f=_81f||{};d.forEach(_81e,function(node){if(!node){return;}var type=_7fe in _81f?_81f[_7fe]:node.getAttribute(_7fe);if(!type||!type.length){return;}var _823=_80e(type),_824=_823.cls,ps=_824._noScript||_824.prototype._noScript;var _826={},_827=node.attributes;for(var name in _823.params){var item=name in _81f?{value:_81f[name],specified:true}:_827.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _82a=item.value;switch(name){case "class":_82a="className" in _81f?_81f.className:node.className;break;case "style":_82a="style" in _81f?_81f.style:(node.style&&node.style.cssText);}var _82b=_823.params[name];if(typeof _82a=="string"){_826[name]=_80a(_82a,_82b);}else{_826[name]=_82a;}}if(!ps){var _82c=[],_82d=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_82e){var _82f=_82e.getAttribute("event"),type=_82e.getAttribute("type"),nf=d.parser._functionFromScript(_82e);if(_82f){if(type=="dojo/connect"){_82c.push({event:_82f,func:nf});}else{_826[_82f]=nf;}}else{_82d.push(nf);}});}var _831=_824["markupFactory"];if(!_831&&_824["prototype"]){_831=_824.prototype["markupFactory"];}var _832=_831?_831(_826,node,_824):new _824(_826,node);_820.push(_832);var _833=node.getAttribute("jsId");if(_833){d.setObject(_833,_832);}if(!ps){d.forEach(_82c,function(_834){d.connect(_832,_834.event,null,_834.func);});d.forEach(_82d,function(func){func.call(_832);});}});d.forEach(_820,function(_836){if(_836&&_836.startup&&!_836._started&&(!_836.getParent||!_836.getParent())){_836.startup();}});return _820;};this.parse=function(_837){var list=d.query(qry,_837);var _839=this.instantiate(list);return _839;};}();(function(){var _83a=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_83a);}else{dojo._loaders.unshift(_83a);}})();}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,_stringRepl:function(tmpl){var _83c=this.declaredClass,_83d=this;return dojo.string.substitute(tmpl,this,function(_83e,key){if(key.charAt(0)=="!"){_83e=dojo.getObject(key.substr(1),false,_83d);}if(typeof _83e=="undefined"){throw new Error(_83c+" template:"+key);}if(_83e==null){return "";}return key.charAt(0)=="!"?_83e:_83e.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _840=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_840)){node=dojo._toDom(this._stringRepl(_840));}else{node=_840.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_845){var dest=this.containerNode;if(_845&&dest){while(_845.hasChildNodes()){dest.appendChild(_845.firstChild);}}},_attachTemplateNodes:function(_847,_848){_848=_848||function(n,p){return n.getAttribute(p);};var _84b=dojo.isArray(_847)?_847:(_847.all||_847.getElementsByTagName("*"));var x=dojo.isArray(_847)?0:-1;for(;x<_84b.length;x++){var _84d=(x==-1)?_847:_84b[x];if(this.widgetsInTemplate&&_848(_84d,"dojoType")){continue;}var _84e=_848(_84d,"dojoAttachPoint");if(_84e){var _84f,_850=_84e.split(/\s*,\s*/);while((_84f=_850.shift())){if(dojo.isArray(this[_84f])){this[_84f].push(_84d);}else{this[_84f]=_84d;}}}var _851=_848(_84d,"dojoAttachEvent");if(_851){var _852,_853=_851.split(/\s*,\s*/);var trim=dojo.trim;while((_852=_853.shift())){if(_852){var _855=null;if(_852.indexOf(":")!=-1){var _856=_852.split(":");_852=trim(_856[0]);_855=trim(_856[1]);}else{_852=trim(_852);}if(!_855){_855=_852;}this.connect(_84d,_852,_855);}}}var role=_848(_84d,"waiRole");if(role){dijit.setWaiRole(_84d,role);}var _858=_848(_84d,"waiState");if(_858){dojo.forEach(_858.split(/\s*,\s*/),function(_859){if(_859.indexOf("-")!=-1){var pair=_859.split("-");dijit.setWaiState(_84d,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_85b,_85c,_85d){var _85e=dijit._Templated._templateCache;var key=_85c||_85b;var _860=_85e[key];if(_860){if(!_860.ownerDocument||_860.ownerDocument==dojo.doc){return _860;}dojo.destroy(_860);}if(!_85c){_85c=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_85b)));}_85c=dojo.string.trim(_85c);if(_85d||_85c.match(/\$\{([^\}]+)\}/g)){return (_85e[key]=_85c);}else{return (_85e[key]=dojo._toDom(_85c));}};dijit._Templated._sanitizeTemplateString=function(_861){if(_861){_861=_861.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _862=_861.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_862){_861=_862[1];}}else{_861="";}return _861;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _863=dijit._Templated._templateCache;for(var key in _863){var _865=_863[key];if(!isNaN(_865.nodeType)){dojo.destroy(_865);}delete _863[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></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(_866,_867,_868){if(this.aroundNode&&this.aroundNode===_867){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_866;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _869={};var ltr=this.isLeftToRight();dojo.forEach((_868&&_868.length)?_868:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_869[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_869[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_869[ltr?"BL":"BR"]=ltr?"TL":"TR";_869[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_869[ltr?"TL":"TR"]=ltr?"BL":"BR";_869[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_867,_869,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_867;},orient:function(node,_86e,_86f){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"}[_86e+"-"+_86f];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_870){if(this._onDeck&&this._onDeck[1]==_870){this._onDeck=null;}else{if(this.aroundNode===_870){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_871,_872,_873){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_871,_872,_873);};dijit.hideTooltip=function(_874){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_874);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_878){this.connect(node,_878.toLowerCase(),"_"+_878);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _87e=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_87e);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_880){_880=_880||this._connectNodes[0];if(!_880){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_880,this.position);this._connectNode=_880;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _881=function(o){var t=o.run&&o.run.data&&o.run.data[o.index];if(t&&typeof t=="object"&&t.tooltip){return t.tooltip;}return o.element=="bar"?o.x:o.y;};var df=dojox.lang.functional,pi4=Math.PI/4,pi2=Math.PI/2;dojo.declare("dojox.charting.action2d.Tooltip",dojox.charting.action2d.Base,{defaultParams:{text:_881},optionalParams:{},constructor:function(_887,plot,_889){this.text=_889&&_889.text?_889.text:_881;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){dijit.hideTooltip(this.aroundRect);this.aroundRect=null;return;}if(!o.shape||o.type!=="onmouseover"){return;}var _88b={type:"rect"},_88c=["after","before"];switch(o.element){case "marker":_88b.x=o.cx;_88b.y=o.cy;_88b.width=_88b.height=1;break;case "circle":_88b.x=o.cx-o.cr;_88b.y=o.cy-o.cr;_88b.width=_88b.height=2*o.cr;break;case "column":_88c=["above","below"];case "bar":_88b=dojo.clone(o.shape.getShape());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 _88d=(this.angles[o.index]+this.angles[o.index+1])/2;_88b.x=o.cx+o.cr*Math.cos(_88d);_88b.y=o.cy+o.cr*Math.sin(_88d);_88b.width=_88b.height=1;if(_88d<pi4){}else{if(_88d<pi2+pi4){_88c=["below","above"];}else{if(_88d<Math.PI+pi4){_88c=["before","after"];}else{if(_88d<2*Math.PI-pi4){_88c=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_88b.x+=lt.x;_88b.y+=lt.y;_88b.x=Math.round(_88b.x);_88b.y=Math.round(_88b.y);_88b.width=Math.ceil(_88b.width);_88b.height=Math.ceil(_88b.height);this.aroundRect=_88b;dijit.showTooltip(this.text(o),this.aroundRect,_88c);}});})();}if(!dojo._hasResource["dojox.charting.widget.Chart2D"]){dojo._hasResource["dojox.charting.widget.Chart2D"]=true;dojo.provide("dojox.charting.widget.Chart2D");(function(){var _88f,_890,_891,_892,_893,_894=function(o){return o;},df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting,d=dojo;dojo.declare("dojox.charting.widget.Chart2D",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(_890).filter(_894),_89c=d.query("> .plot",n).map(_891).filter(_894),_89d=d.query("> .action",n).map(_892).filter(_894),_89e=d.query("> .series",n).map(_893).filter(_894);n.innerHTML="";var c=this.chart=new dc.Chart2D(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);});_89c.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_89d.map(function(_8a2){return new _8a2.action(c,_8a2.plot,_8a2.kwArgs);});var _8a3=df.foldl(_89e,function(_8a4,_8a5){if(_8a5.type=="data"){c.addSeries(_8a5.name,_8a5.data,_8a5.kwArgs);_8a4=true;}else{c.addSeries(_8a5.name,[0],_8a5.kwArgs);var kw={};du.updateWithPattern(kw,_8a5.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_8a5.kwArgs.sort){kw.sort=dojo.clone(_8a5.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _8a8;if("valueFn" in _8a5.kwArgs){var fn=_8a5.kwArgs.valueFn;_8a8=d.map(data,function(x){return fn(_8a5.data.getValue(x,_8a5.field,0));});}else{_8a8=d.map(data,function(x){return _8a5.data.getValue(x,_8a5.field,0);});}c.addSeries(_8a5.name,_8a8,_8a5.kwArgs).render();}});_8a5.data.fetch(kw);}return _8a4;},false);if(_8a3){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){if(box.w>0&&box.h>0){dojo.marginBox(this.domNode,box);this.chart.resize();}}});_88f=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);}}};_890=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";}_88f(node,type,kw);return o;};_891=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[type]){type=dojox._scopeName+".charting.plot2d."+type;}var plot=eval("("+type+")");if(plot){kw.type=plot;}}else{type=dojox._scopeName+".charting.plot2d.Default";}_88f(node,type,kw);return o;};_892=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 _8c5=eval("("+type+")");if(!_8c5){return null;}o.action=_8c5;}else{return null;}_88f(node,type,kw);return o;};_893=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("fill");if(t!=null){kw.fill=eval("("+t+")");}t=ga("legend");if(t!=null){kw.legend=t;}t=ga("data");if(t!=null){o.type="data";o.data=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["dojox.charting.themes.ET.greys"]){dojo._hasResource["dojox.charting.themes.ET.greys"]=true;dojo.provide("dojox.charting.themes.ET.greys");dojo.deprecated("dojox.charting.themes.ET.greys","1.3");(function(){var dxc=dojox.charting;dxc.themes.ET.greys=new dxc.Theme({antiAlias:false,chart:{stroke:null,fill:"inherit"},plotarea:{stroke:null,fill:"transparent"},axis:{stroke:{width:0},line:{width:0},majorTick:{color:"#666666",width:1,length:5},minorTick:{color:"black",width:0.5,length:2},font:"normal normal normal 8pt Tahoma",fontColor:"#999999"},series:{outline:{width:0,color:"black"},stroke:{width:1,color:"black"},fill:dojo.colorFromHex("#3b444b"),font:"normal normal normal 7pt Tahoma",fontColor:"#717171"},marker:{stroke:{width:1},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},colors:[dojo.colorFromHex("#8a8c8f"),dojo.colorFromHex("#4b4b4b"),dojo.colorFromHex("#3b444b"),dojo.colorFromHex("#2e2d30"),dojo.colorFromHex("#000000")]});})();}if(!dojo._hasResource["dojox.charting.widget.Sparkline"]){dojo._hasResource["dojox.charting.widget.Sparkline"]=true;dojo.provide("dojox.charting.widget.Sparkline");(function(){var d=dojo;dojo.declare("dojox.charting.widget.Sparkline",dojox.charting.widget.Chart2D,{theme:dojox.charting.themes.ET.greys,margins:{l:0,r:0,t:0,b:0},type:"Lines",valueFn:"Number(x)",store:"",field:"",query:"",queryOptions:"",start:"0",count:"Infinity",sort:"",data:"",name:"default",buildRendering:function(){var n=this.srcNodeRef;if(!n.childNodes.length||!d.query("> .axis, > .plot, > .action, > .series",n).length){var plot=document.createElement("div");d.attr(plot,{"class":"plot","name":"default","type":this.type});n.appendChild(plot);var _8d0=document.createElement("div");d.attr(_8d0,{"class":"series",plot:"default",name:this.name,start:this.start,count:this.count,valueFn:this.valueFn});d.forEach(["store","field","query","queryOptions","sort","data"],function(i){if(this[i].length){d.attr(_8d0,i,this[i]);}},this);n.appendChild(_8d0);}this.inherited(arguments);}});})();}if(!dojo._hasResource["dojox.charting.widget.Legend"]){dojo._hasResource["dojox.charting.widget.Legend"]=true;dojo.provide("dojox.charting.widget.Legend");dojo.declare("dojox.charting.widget.Legend",[dijit._Widget,dijit._Templated],{chartRef:"",horizontal:true,templateString:"<table dojoAttachPoint='legendNode' class='dojoxLegendNode'><tbody dojoAttachPoint='legendBody'></tbody></table>",legendNode:null,legendBody:null,postCreate:function(){if(!this.chart){if(!this.chartRef){return;}this.chart=dijit.byId(this.chartRef);if(!this.chart){var node=dojo.byId(this.chartRef);if(node){this.chart=dijit.byNode(node);}else{return;}}this.series=this.chart.chart.series;}else{this.series=this.chart.series;}this.refresh();},refresh:function(){var df=dojox.lang.functional;if(this._surfaces){dojo.forEach(this._surfaces,function(_8d4){_8d4.destroy();});}this._surfaces=[];while(this.legendBody.lastChild){dojo.destroy(this.legendBody.lastChild);}if(this.horizontal){dojo.addClass(this.legendNode,"dojoxLegendHorizontal");this._tr=dojo.doc.createElement("tr");this.legendBody.appendChild(this._tr);}var s=this.series;if(s.length==0){return;}if(s[0].chart.stack[0].declaredClass=="dojox.charting.plot2d.Pie"){var t=s[0].chart.stack[0];if(typeof t.run.data[0]=="number"){var _8d7=df.map(t.run.data,"Math.max(x, 0)");if(df.every(_8d7,"<= 0")){return;}var _8d8=df.map(_8d7,"/this",df.foldl(_8d7,"+",0));dojo.forEach(_8d8,function(x,i){this._addLabel(t.dyn[i],t._getLabel(x*100)+"%");},this);}else{dojo.forEach(t.run.data,function(x,i){this._addLabel(t.dyn[i],x.legend||x.text||x.y);},this);}}else{dojo.forEach(s,function(x){this._addLabel(x.dyn,x.legend||x.name);},this);}},_addLabel:function(dyn,_8df){var icon=dojo.doc.createElement("td"),text=dojo.doc.createElement("td"),div=dojo.doc.createElement("div");dojo.addClass(icon,"dojoxLegendIcon");dojo.addClass(text,"dojoxLegendText");div.style.width="20px";div.style.height="20px";icon.appendChild(div);if(this._tr){this._tr.appendChild(icon);this._tr.appendChild(text);}else{var tr=dojo.doc.createElement("tr");this.legendBody.appendChild(tr);tr.appendChild(icon);tr.appendChild(text);}this._makeIcon(div,dyn);text.innerHTML=String(_8df);},_makeIcon:function(div,dyn){var mb={h:14,w:14};var _8e7=dojox.gfx.createSurface(div,mb.w,mb.h);this._surfaces.push(_8e7);if(dyn.fill){_8e7.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setFill(dyn.fill).setStroke(dyn.stroke);}else{if(dyn.stroke||dyn.marker){var line={x1:0,y1:mb.h/2,x2:mb.w,y2:mb.h/2};if(dyn.stroke){_8e7.createLine(line).setStroke(dyn.stroke);}if(dyn.marker){var c={x:mb.w/2,y:mb.h/2};if(dyn.stroke){_8e7.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.stroke.color).setStroke(dyn.stroke);}else{_8e7.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.color).setStroke(dyn.color);}}}else{_8e7.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setStroke("black");_8e7.createLine({x1:2,y1:2,x2:mb.w-2,y2:mb.h-2}).setStroke("black");_8e7.createLine({x1:2,y1:mb.h-2,x2:mb.w-2,y2:2}).setStroke("black");}}}});}
