/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dijit/hccss":function(){define("dijit/hccss",["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_e,_f,_10,win){_10(90,function(){if(_f("highcontrast")){_e.add(win.body(),"dijit_a11y");}});return _f;});},"dojox/grid/_View":function(){define(["dojo","dijit/registry","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/_base/connect","dojo/_base/sniff","dojo/query","dojo/_base/window","dojo/text!./resources/View.html","dojo/dnd/Source","dijit/_Widget","dijit/_TemplatedMixin","dojox/html/metrics","./util","dojo/_base/html","./_Builder","dojo/dnd/Avatar","dojo/dnd/Manager"],function(_11,_12,_13,_14,_15,_16,_17,has,_18,win,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22){var _23=function(_24,_25){return _24.style.cssText==undefined?_24.getAttribute("style"):_24.style.cssText;};var _26=_14("dojox.grid._View",[_1b,_1c],{defaultWidth:"18em",viewWidth:"",templateString:_19,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_20._HeaderBuilder,_contentBuilderClass:_20._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");_1e.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);_1e.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!this.grid.isLeftToRight()){this.headerNodeContainer.style.width="";}},destroy:function(){_1f.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);_1f.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(has("ie")||has("webkit")||has("opera")){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_27){var vs=(this.structure=_27);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_28){if(_28){_15.forEach(_18("[widgetId]",_28).map(_12.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_29,_2a){this._onBeforeRow(_29,_2a);if(_29>=0){this._cleanupRowWidgets(this.getRowNode(_29));}},onAfterRow:function(_2b,_2c,_2d){this._onAfterRow(_2b,_2c,_2d);var g=this.grid;_15.forEach(_18(".dojoxGridStubNode",_2d),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _2e=window.parseInt(_1f.attr(n,"cellIdx"),10);var _2f=g.getCell(_2e);var w=_12.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}_11.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,_30;(_30=row[i]);i++){_30.view=this;this.flexCells=this.flexCells||_30.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _31=this.hasVScrollbar();var _32=_1f.style(this.scrollboxNode,"overflow");if(this.noscroll||!_32||_32=="hidden"){_31=false;}else{if(_32=="scroll"){_31=true;}}return (_31?_1d.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?h.firstChild.offsetWidth:0;},setColumnsWidth:function(_33){this.headerContentNode.firstChild.style.width=_33+"px";if(this.viewWidth){this.viewWidth=_33+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,_1f._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _34=this.grid.layout.cells;var _35=_16.hitch(this,function(_36,_37){!this.grid.isLeftToRight()&&(_37=!_37);var inc=_37?-1:1;var idx=this.header.getCellNodeIndex(_36)+inc;var _38=_34[idx];while(_38&&_38.getHeaderNode()&&_38.getHeaderNode().style.display=="none"){idx+=inc;_38=_34[idx];}if(_38){return _38.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _39="dojoxGrid_bottomMarker";var _3a="dojoxGrid_topMarker";if(this.bottomMarker){_1f.destroy(this.bottomMarker);}this.bottomMarker=_1f.byId(_39);if(this.topMarker){_1f.destroy(this.topMarker);}this.topMarker=_1f.byId(_3a);if(!this.bottomMarker){this.bottomMarker=_1f.create("div",{"id":_39,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=_1f.create("div",{"id":_3a,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=_1f.contentBox(this.bottomMarker);var _3b=_1f.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _1a(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:_16.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(has("ie")<9?1:0)){_1a.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:_16.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_1a.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:_16.hitch(this,function(_3c){var src=this.source;if(src.current==src.targetAnchor&&src.before==_3c){return;}if(src.targetAnchor&&_35(src.targetAnchor,src.before)){src._removeItemClass(_35(src.targetAnchor,src.before),src.before?"After":"Before");}_1a.prototype._markTargetAnchor.call(src,_3c);var _3d=_3c?src.targetAnchor:_35(src.targetAnchor,src.before);var _3e=0;if(!_3d){_3d=src.targetAnchor;_3e=_1f.contentBox(_3d).w+this.arrowDim.w/2+2;}var pos=_1f.position(_3d,true);var _3f=Math.floor(pos.x-this.arrowDim.w/2+_3e);_1f.style(this.bottomMarker,"visibility","visible");_1f.style(this.topMarker,"visibility","visible");_1f.style(this.bottomMarker,{"left":_3f+"px","top":(_3b+pos.y)+"px"});_1f.style(this.topMarker,{"left":_3f+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_35(src.targetAnchor,src.before)){src._addItemClass(_35(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:_16.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_35(src.targetAnchor,src.before)){src._removeItemClass(_35(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_1a.prototype._unmarkTargetAnchor.call(src);}),destroy:_16.hitch(this,function(){_17.disconnect(this._source_conn);_17.unsubscribe(this._source_sub);_1a.prototype.destroy.call(this.source);if(this.bottomMarker){_1f.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){_1f.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:_16.hitch(this,function(){_1a.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_17.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_17.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(_40){_1f.style(_40,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_41,_42,_43){if(_22.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _44=this.grid.views.views;var _45=_44[_41.viewIndex];var _46=_44[this.index];if(_46!=_45){_45.convertColPctToFixed();_46.convertColPctToFixed();}},_onDndDrop:function(_47,_48,_49){if(_22.manager().target!==this.source){if(_22.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _4a=function(n){return n?_1f.attr(n,"idx"):null;};var w=_1f.marginBox(_48[0]).w;if(_47.viewIndex!==this.index){var _4b=this.grid.views.views;var _4c=_4b[_47.viewIndex];var _4d=_4b[this.index];if(_4c.viewWidth&&_4c.viewWidth!="auto"){_4c.setColumnsWidth(_4c.getColumnsWidth()-w);}if(_4d.viewWidth&&_4d.viewWidth!="auto"){_4d.setColumnsWidth(_4d.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _4e=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_4e.moveColumn(_47.viewIndex,idx,_4a(_48[0]),_4a(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}_1e.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_4f){var n=_4f.name||_4f.grid.getCellName(_4f);if(/^\s+$/.test(n)){n=" ";}var ret=["
");}else{ret=ret.concat([" ",_4f.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\">
",_4f.grid.sortInfo>0?"▲":"▼","
","
"]);}ret=ret.concat([n,"
"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_50){var _51=this._hasHScroll||false;if(this._hasHScroll==undefined||_50){if(this.noscroll){this._hasHScroll=false;}else{var _52=_1f.style(this.scrollboxNode,"overflow");if(_52=="hidden"){this._hasHScroll=false;}else{if(_52=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()this.scrollboxNode.clientHeight);}}}}if(_54!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _56=false;this.grid.initialWidth="";var _57=_18("th",this.headerContentNode);var _58=_15.map(_57,function(c,_59){var w=c.style.width;_1f.attr(c,"vIdx",_59);if(w&&w.slice(-1)=="%"){_56=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return _1f.contentBox(c).w;});if(_56){_15.forEach(this.grid.layout.cells,function(_5a,idx){if(_5a.view==this){var _5b=_5a.view.getHeaderCellNode(_5a.index);if(_5b&&_1f.hasAttr(_5b,"vIdx")){var _5c=window.parseInt(_1f.attr(_5b,"vIdx"));this.setColWidth(idx,_58[_5c]);_1f.removeAttr(_5b,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_5d){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var _5e=this;var _5f=function(){var v;for(var i in _5e.grid.views.views){v=_5e.grid.views.views[i];if(v!==_5e&&v.hasHScrollbar()){return true;}}return false;};if(_5d||(this.noscroll&&_5f())){h-=_1d.getScrollbar().h;}_1e.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_60){var _61=this.createRowNode(_60);this.buildRow(_60,_61);return _61;},createRowNode:function(_62){var _63=document.createElement("div");_63.className=this.classTag+"Row";if(this instanceof _13.grid._RowSelector){_1f.attr(_63,"role","presentation");}else{_1f.attr(_63,"role","row");if(this.grid.selectionMode!="none"){_63.setAttribute("aria-selected","false");}}_63[_1e.gridViewTag]=this.id;_63[_1e.rowIndexTag]=_62;this.rowNodes[_62]=_63;return _63;},buildRow:function(_64,_65){this.buildRowContent(_64,_65);this.styleRow(_64,_65);},buildRowContent:function(_66,_67){_67.innerHTML=this.content.generateHtml(_66,_66);if(this.flexCells&&this.contentWidth){_67.firstChild.style.width=this.contentWidth;}_1e.fire(this,"onAfterRow",[_66,this.structure.cells,_67]);},rowRemoved:function(_68){if(_68>=0){this._cleanupRowWidgets(this.getRowNode(_68));}this.grid.edit.save(this,_68);delete this.rowNodes[_68];},getRowNode:function(_69){return this.rowNodes[_69];},getCellNode:function(_6a,_6b){var row=this.getRowNode(_6a);if(row){return this.content.getCellNode(row,_6b);}},getHeaderCellNode:function(_6c){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_6c);}},styleRow:function(_6d,_6e){_6e._style=_23(_6e);this.styleRowNode(_6d,_6e);},styleRowNode:function(_6f,_70){if(_70){this.doStyleRowNode(_6f,_70);}},doStyleRowNode:function(_71,_72){this.grid.styleRowNode(_71,_72);},updateRow:function(_73){var _74=this.getRowNode(_73);if(_74){_74.style.height="";this.buildRow(_73,_74);}return _74;},updateRowStyles:function(_75){this.styleRowNode(_75,this.getRowNode(_75));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_76){if(has("ff")>=13){this._nativeScroll=true;}var _77=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_77&&this.firstScroll==1)||(_77&&this.firstScroll===0)){var s=_1f.marginBox(this.headerNodeContainer);if(has("ie")){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(has("mozilla")){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_77?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_78){this.lastTop=_78;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_78;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_79,_7a){this.grid.setCellWidth(_79,_7a+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var _7b=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=_7b;this.headerNode.scrollLeft=_7b;}});var _7c=_14("dojox.grid._GridAvatar",_21,{construct:function(){var dd=win.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _7d=this.manager.source,_7e;if(_7d.creator){_7e=_7d._normalizedCreator(_7d.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{_7e=this.manager.nodes[0].cloneNode(true);var _7f,_80;if(_7e.tagName.toLowerCase()=="tr"){_7f=dd.createElement("table");_80=dd.createElement("tbody");_80.appendChild(_7e);_7f.appendChild(_80);_7e=_7f;}else{if(_7e.tagName.toLowerCase()=="th"){_7f=dd.createElement("table");_80=dd.createElement("tbody");var r=dd.createElement("tr");_7f.cellPadding=_7f.cellSpacing="0";r.appendChild(_7e);_80.appendChild(r);_7f.appendChild(_80);_7e=_7f;}}}_7e.id="";td.appendChild(_7e);tr.appendChild(img);tr.appendChild(td);_1f.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_22.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_22.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _81=_22.manager().makeAvatar;_22.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!_1f.hasClass(win.body(),"dijit_a11y")){return new _7c(this);}return _81.call(_22.manager());};return _26;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_82,_83){return _82("dijit._Contained",null,{_getSibling:function(_84){var _85=this.domNode;do{_85=_85[_84+"Sibling"];}while(_85&&_85.nodeType!=1);return _85&&_83.byNode(_85);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojo/dnd/Selector":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../dom","../dom-construct","../mouse","../_base/NodeList","../on","../touch","./common","./Container"],function(_86,_87,_88,_89,_8a,dom,_8b,_8c,_8d,on,_8e,dnd,_8f){var _90=_87("dojo.dnd.Selector",_8f,{constructor:function(_91,_92){if(!_92){_92={};}this.singular=_92.singular;this.autoSync=_92.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(on(this.node,_8e.press,_8a.hitch(this,"onMouseDown")),on(this.node,_8e.release,_8a.hitch(this,"onMouseUp")));},singular:false,getSelectedNodes:function(){var t=new _8d();var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dom.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(_93,id){this._addItemClass(dom.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dom.byId(i);this.delItem(i);_8b.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_89.global;var s=this.selection,e=dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_90.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_86.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_94,_95,_96,_97){var _98=this._normalizedCreator;this._normalizedCreator=function(_99,_9a){var t=_98.call(this,_99,_9a);if(_94){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};_90.superclass.insertNodes.call(this,_95,_96,_97);this._normalizedCreator=_98;return this;},destroy:function(){_90.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dnd.getCopyKeyState(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(_8c.isLeft(e)){_88.stop(e);}return;}if(!this.singular&&e.shiftKey){if(!dnd.getCopyKeyState(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0,_9b;for(;i\n\t\n\t\t\"\"\n\t\t\n\t\n\t\n\t\n\t \n\n","dojo/dnd/Manager":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../_base/window","../dom-class","../Evented","../has","../keys","../on","../topic","../touch","./common","./autoscroll","./Avatar"],function(_a7,_a8,_a9,_aa,win,_ab,_ac,has,_ad,on,_ae,_af,dnd,_b0,_b1){var _b2=_a8("dojo.dnd.Manager",[_ac],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:has("touch")?0:16,OFFSET_Y:has("touch")?-64:16,overSource:function(_b3){if(this.avatar){this.target=(_b3&&_b3.targetState!="Disabled")?_b3:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_ae.publish("/dnd/source/over",_b3);},outSource:function(_b4){if(this.avatar){if(this.target==_b4){this.target=null;this.canDropFlag=false;this.avatar.update();_ae.publish("/dnd/source/over",null);}}else{_ae.publish("/dnd/source/over",null);}},startDrag:function(_b5,_b6,_b7){_b0.autoScrollStart(win.doc);this.source=_b5;this.nodes=_b6;this.copy=Boolean(_b7);this.avatar=this.makeAvatar();win.body().appendChild(this.avatar.node);_ae.publish("/dnd/start",_b5,_b6,this.copy);this.events=[on(win.doc,_af.move,_aa.hitch(this,"onMouseMove")),on(win.doc,_af.release,_aa.hitch(this,"onMouseUp")),on(win.doc,"keydown",_aa.hitch(this,"onKeyDown")),on(win.doc,"keyup",_aa.hitch(this,"onKeyUp")),on(win.doc,"dragstart",_a9.stop),on(win.body(),"selectstart",_a9.stop)];var c="dojoDnd"+(_b7?"Copy":"Move");_ab.add(win.body(),c);},canDrop:function(_b8){var _b9=Boolean(this.target&&_b8);if(this.canDropFlag!=_b9){this.canDropFlag=_b9;this.avatar.update();}},stopDrag:function(){_ab.remove(win.body(),["dojoDndCopy","dojoDndMove"]);_a7.forEach(this.events,function(_ba){_ba.remove();});this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _b1(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_b0.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var _bb=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));if(this.copy!=_bb){this._setCopyStatus(_bb);}}if(has("touch")){e.preventDefault();}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var _bc=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));_ae.publish("/dnd/drop/before",this.source,this.nodes,_bc,this.target,e);_ae.publish("/dnd/drop",this.source,this.nodes,_bc,this.target,e);}else{_ae.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case _ad.CTRL:var _bd=Boolean(this.source.copyState(true));if(this.copy!=_bd){this._setCopyStatus(_bd);}break;case _ad.ESCAPE:_ae.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==_ad.CTRL){var _be=Boolean(this.source.copyState(false));if(this.copy!=_be){this._setCopyStatus(_be);}}},_setCopyStatus:function(_bf){this.copy=_bf;this.source._markDndStatus(this.copy);this.updateAvatar();_ab.replace(win.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dnd._manager=null;_b2.manager=dnd.manager=function(){if(!dnd._manager){dnd._manager=new _b2();}return dnd._manager;};return _b2;});},"dijit/a11yclick":function(){define("dijit/a11yclick",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window"],function(on,_c0,_c1,_c2,has,_c3,win){var _c4=null;if(has("dom-addeventlistener")){win.doc.addEventListener("keydown",function(evt){_c4=evt.target;},true);}else{(function(){var _c5=function(evt){_c4=evt.srcElement;};win.doc.attachEvent("onkeydown",_c5);_c3.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_c5);});})();}function _c6(e){return (e.keyCode===_c1.ENTER||e.keyCode===_c1.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};return function(_c7,_c8){if(/input|button/i.test(_c7.nodeName)){return on(_c7,"click",_c8);}else{var _c9=[on(_c7,"keydown",function(e){if(_c6(e)){_c4=e.target;e.preventDefault();}}),on(_c7,"keyup",function(e){if(_c6(e)&&e.target==_c4){_c4=null;on.emit(e.target,"click",{cancelable:true,bubbles:true});}}),on(_c7,"click",function(e){_c8.call(this,e);})];if(has("touch")){var _ca;_c9.push(on(_c7,"touchend",function(e){var _cb=e.target;_ca=setTimeout(function(){_ca=null;on.emit(_cb,"click",{cancelable:true,bubbles:true});},600);}),on(_c7,"click",function(e){if(_ca){clearTimeout(_ca);}}));}return {remove:function(){_c0.forEach(_c9,function(h){h.remove();});if(_ca){clearTimeout(_ca);_ca=null;}}};}};return ret;});},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(_cc,_cd){return _cc("dojox.grid._RowSelector",_cd,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_ce,_cf){var w=this.contentWidth||0;_cf.innerHTML="
 
";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode&&this.contentNode.offsetWidth>0){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_d0,_d1){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_d0)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_d0)){n.push("dojoxGridRowbarSelected");}_d1.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"dojox/grid/_Layout":function(){define("dojox/grid/_Layout",["dojo/_base/kernel","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-geometry","./cells","./_RowSelector"],function(_d2,_d3,_d4,_d5,_d6,_d7){return _d4("dojox.grid._Layout",null,{constructor:function(_d8){this.grid=_d8;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_d9,_da,_db,_dc,_dd){var _de=this.structure[_d9].cells[0];var _df=this.structure[_da].cells[0];var _e0=null;var _e1=0;var _e2=0;for(var i=0,c;c=_de[i];i++){if(c.index==_db){_e1=i;break;}}_e0=_de.splice(_e1,1)[0];_e0.view=this.grid.views.views[_da];for(i=0,c=null;c=_df[i];i++){if(c.index==_dc){_e2=i;break;}}if(!_dd){_e2+=1;}_df.splice(_e2,0,_e0);var _e3=this.grid.getCell(this.grid.getSortIndex());if(_e3){_e3._currentlySorted=this.grid.getSortAsc();}this.cells=[];_db=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_db;this.cells.push(c);if("_currentlySorted" in c){var si=_db+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_db++;}}}_d5.forEach(this.cells,function(c){var _e4=c.markup[2].split(" ");var _e5=parseInt(_e4[1].substring(5));if(_e5!=c.index){_e4[1]="idx=\""+c.index+"\"";c.markup[2]=_e4.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_e6,_e7){var _e8=this.cells[_e6];if(_e8.hidden==_e7){_e8.hidden=!_e7;var v=_e8.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=_d7.getMarginBox(_e8.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_e9,_ea,_eb){var _ec=this;var _ed=function(_ee){var w=0;if(_ee.colSpan>1){w=0;}else{w=_ee.width||_ec._defaultCellProps.width||_ec.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _ef={grid:this.grid,subrow:_e9,layoutIndex:_ea,index:this.cells.length};if(_eb&&_eb instanceof _d3.grid.cells._Base){var _f0=_d6.clone(_eb);_ef.unitWidth=_ed(_f0._props);_f0=_d6.mixin(_f0,this._defaultCellProps,_eb._props,_ef);return _f0;}var _f1=_eb.type||_eb.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_d3.grid.cells.Cell;if(_d6.isString(_f1)){_f1=_d6.getObject(_f1);}_ef.unitWidth=_ed(_eb);return new _f1(_d6.mixin({},this._defaultCellProps,_eb,_ef));},addRowDef:function(_f2,_f3){var _f4=[];var _f5=0,_f6=0,_f7=true;for(var i=0,def,_f8;(def=_f3[i]);i++){_f8=this.addCellDef(_f2,i,def);_f4.push(_f8);this.cells.push(_f8);if(_f7&&_f8.relWidth){_f5+=_f8.relWidth;}else{if(_f8.width){var w=_f8.width;if(typeof w=="string"&&w.slice(-1)=="%"){_f6+=window.parseInt(w,10);}else{if(w=="auto"){_f7=false;}}}}}if(_f5&&_f7){_d5.forEach(_f4,function(_f9){if(_f9.relWidth){_f9.width=_f9.unitWidth=((_f9.relWidth/_f5)*(100-_f6))+"%";}});}return _f4;},addRowsDef:function(_fa){var _fb=[];if(_d6.isArray(_fa)){if(_d6.isArray(_fa[0])){for(var i=0,row;_fa&&(row=_fa[i]);i++){_fb.push(this.addRowDef(i,row));}}else{_fb.push(this.addRowDef(0,_fa));}}return _fb;},addViewDef:function(_fc){this._defaultCellProps=_fc.defaultCell||{};if(_fc.width&&_fc.width=="auto"){delete _fc.width;}return _d6.mixin({},_fc,{cells:this.addRowsDef(_fc.rows||_fc.cells)});},setStructure:function(_fd){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_d3._scopeName+".grid._RowSelector"};if(_d6.isString(this.grid.rowSelector)){var _fe=this.grid.rowSelector;if(_fe=="false"){sel=null;}else{if(_fe!="true"){sel["width"]=_fe;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _ff=function(def){return ("name" in def||"field" in def||"get" in def);};var _100=function(def){if(_d6.isArray(def)){if(_d6.isArray(def[0])||_ff(def[0])){return true;}}return false;};var _101=function(def){return (def!==null&&_d6.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_ff(def))));};if(_d6.isArray(_fd)){var _102=false;for(var i=0,st;(st=_fd[i]);i++){if(_101(st)){_102=true;break;}}if(!_102){s.push(this.addViewDef({cells:_fd}));}else{for(i=0;(st=_fd[i]);i++){if(_100(st)){s.push(this.addViewDef({cells:st}));}else{if(_101(st)){s.push(this.addViewDef(st));}}}}}else{if(_101(_fd)){s.push(this.addViewDef(_fd));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojox/grid/_Grid":function(){require({cache:{"url:dojox/grid/resources/_Grid.html":"
\n\t
\n\t
\n\t
\n\t\n
\n"}});define("dojox/grid/_Grid",["dojo/_base/kernel","../main","dojo/_base/declare","./_Events","./_Scroller","./_Layout","./_View","./_ViewManager","./_RowManager","./_FocusManager","./_EditManager","./Selection","./_RowSelector","./util","dijit/_Widget","dijit/_TemplatedMixin","dijit/CheckedMenuItem","dojo/text!./resources/_Grid.html","dojo/string","dojo/_base/array","dojo/_base/lang","dojo/_base/sniff","dojox/html/metrics","dojo/_base/html","dojo/query","dojo/dnd/common","dojo/i18n!dijit/nls/loading"],function(dojo,_103,_104,_105,_106,_107,_108,_109,_10a,_10b,_10c,_10d,_10e,util,_10f,_110,_111,_112,_113,_114,lang,has,_115,html,_116){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}var _117=_104("dojox.grid._Grid",[_10f,_110,_105],{templateString:_112,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"${loadingState}",errorMessage:"${errorState}",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:_107,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");_115.initOnFontResize();this.connect(_115,"onFontResize","textSizeChanged");util.funnelEvents(this.domNode,this,"doKeyEvent",util.keyEvents);if(this.selectionMode!="none"){this.domNode.setAttribute("aria-multiselectable",this.selectionMode=="single"?"false":"true");}html.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){html.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _118=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_113.substitute(this.loadingMessage,_118);this.errorMessage=_113.substitute(this.errorMessage,_118);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){html.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){_114.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_119){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_119){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new _10a(this);this.focus=new _10b(this);this.edit=new _10c(this);},createSelection:function(){this.selection=new _10d(this);},createScroller:function(){this.scroller=new _106();this.scroller.grid=this;this.scroller.renderRow=lang.hitch(this,"renderRow");this.scroller.removeRow=lang.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.update();},onResizeColumn:function(_11a){},createViews:function(){this.views=new _109(this);this.views.createView=lang.hitch(this,"createView");},createView:function(_11b,idx){var c=lang.getObject(_11b);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);html.attr(this.domNode,"align",this.isLeftToRight()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||_103._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_11c){var s=_11c;if(s&&lang.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=lang.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_11d){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_11d);},getColumnTogglingItems:function(){var _11e,_11f=[];_11e=_114.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new _111({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_120){if(self.layout.setColumnVisibility(this._gridCell.index,_120)){var _121=this._gridCell.menuItems;if(_121.length>1){_114.forEach(_121,function(item){if(item!==this){item.setAttribute("checked",_120);}},this);}_120=_114.filter(self.layout.cells,function(c){if(c.menuItems.length>1){_114.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_120.length==1){_114.forEach(_120[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _122=_114.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_122,1);delete this._gridCell;_111.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_11f.push(item);}return item;},this);if(_11f.length==1){_11f[0].set("disabled",true);}return _11e;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){_114.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){_114.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_123){this.setScrollTop(0);},getItem:function(_124){return null;},showMessage:function(_125){if(_125){this.messagesNode.innerHTML=_125;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_126,_127){if(dojo.isIE&&!_126&&!_127&&this._autoHeight){return;}this._pendingChangeSize=_126;this._pendingResultSize=_127;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||html._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_128,_129){_128=_128||this._pendingChangeSize;_129=_129||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _12a=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_12a.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_129){_128=_129;}if(!this._autoHeight&&_128){html.marginBox(this.domNode,_128);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||html._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _12b=_114.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||html._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_12b&&hh===undefined){hh=this._getHeaderHeight();}}if(_12b){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _12c=(!this.initialWidth&&this.autoWidth);var w=_12c?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_12c){this.domNode.style.width=vw+"px";}},adaptHeight:function(_12d){var t=_12d===undefined?this._getHeaderHeight():_12d;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _12e=0,_12f=0;var _130=_114.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_12e++;}else{_12f++;}return (!has);});if(_12e>0&&_12f>0){_114.forEach(_130,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();html.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_131,_132){this.views.renderRow(_131,_132,this._skipRowRenormalize);},rowRemoved:function(_133){this.views.rowRemoved(_133);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_134){_134=Number(_134);if(this.updating){this.invalidated[_134]=true;}else{this.views.updateRow(_134);this.scroller.rowHeightChanged(_134);}},updateRows:function(_135,_136){_135=Number(_135);_136=Number(_136);var i;if(this.updating){for(i=0;i<_136;i++){this.invalidated[i+_135]=true;}}else{for(i=0;i<_136;i++){this.views.updateRow(i+_135,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_135);}},updateRowCount:function(_137){if(this.updating){this.invalidated.rowCount=_137;}else{this.rowCount=_137;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_137);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_138){this.views.updateRowStyles(_138);},getRowNode:function(_139){if(this.focus.focusView&&!(this.focus.focusView instanceof _10e)){return this.focus.focusView.rowNodes[_139];}else{for(var i=0,_13a;(_13a=this.views.views[i]);i++){if(!(_13a instanceof _10e)){return _13a.rowNodes[_139];}}}return null;},rowHeightChanged:function(_13b){this.views.renormalizeRow(_13b);this.scroller.rowHeightChanged(_13b);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_13c){if(!this.fastScroll){this.setScrollTop(_13c);return;}var _13d=Math.abs(this.lastScrollTop-_13c);this.lastScrollTop=_13c;if(_13d>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_13c;this.views.setScrollTop(_13c);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _13e=this;this._pendingScroll=window.setTimeout(function(){delete _13e._pendingScroll;_13e.finishScrollJob();},200);}else{this.setScrollTop(_13c);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_13f){this.scroller.scroll(this.views.setScrollTop(_13f));},scrollToRow:function(_140){this.setScrollTop(this.scroller.findScrollTop(_140)+1);},styleRowNode:function(_141,_142){if(_142){this.rows.styleRowNode(_141,_142);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_143){return this.layout.cells[_143];},setCellWidth:function(_144,_145){this.getCell(_144).unitWidth=_145;},getCellName:function(_146){return "Cell "+_146.index;},canSort:function(_147){},sort:function(){},getSortAsc:function(_148){_148=_148==undefined?this.sortInfo:_148;return Boolean(_148>0);},getSortIndex:function(_149){_149=_149==undefined?this.sortInfo:_149;return Math.abs(_149)-1;},setSortIndex:function(_14a,_14b){var si=_14a+1;if(_14b!=undefined){si*=(_14b?1:-1);}else{if(this.getSortIndex()==_14a){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_14c){if(this.canSort(_14c)){this.sortInfo=_14c;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_14d,_14e){this.onStartEdit(_14d,_14e);},doApplyCellEdit:function(_14f,_150,_151){this.onApplyCellEdit(_14f,_150,_151);},doCancelEdit:function(_152){this.onCancelEdit(_152);},doApplyEdit:function(_153){this.onApplyEdit(_153);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});_117.markupFactory=function(_154,node,ctor,_155){var _156=function(n){var w=html.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_154.structure&&node.nodeName.toLowerCase()=="table"){_154.structure=_116("> colgroup",node).map(function(cg){var sv=html.attr(cg,"span");var v={noscroll:(html.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(html.hasAttr(cg,"width")){v.width=_156(cg);}return v;});if(!_154.structure.length){_154.structure.push({__span:Infinity,cells:[]});}_116("thead > tr",node).forEach(function(tr,_157){var _158=0;var _159=0;var _15a;var _15b=null;_116("> th",tr).map(function(th){if(!_15b){_15a=0;_15b=_154.structure[0];}else{if(_158>=(_15a+_15b.__span)){_159++;_15a+=_15b.__span;var _15c=_15b;_15b=_154.structure[_159];}}var cell={name:lang.trim(html.attr(th,"name")||th.innerHTML),colSpan:parseInt(html.attr(th,"colspan")||1,10),type:lang.trim(html.attr(th,"cellType")||""),id:lang.trim(html.attr(th,"id")||"")};_158+=cell.colSpan;var _15d=html.attr(th,"rowspan");if(_15d){cell.rowSpan=_15d;}if(html.hasAttr(th,"width")){cell.width=_156(th);}if(html.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(html.attr(th,"relWidth"),10);}if(html.hasAttr(th,"hidden")){cell.hidden=(html.attr(th,"hidden")=="true"||html.attr(th,"hidden")===true);}if(_155){_155(th,cell);}cell.type=cell.type?lang.getObject(cell.type):_103.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_15b.cells[_157]){_15b.cells[_157]=[];}_15b.cells[_157].push(cell);});});}return new ctor(_154,node);};return _117;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/dnd/Mover":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_15e,_15f,_160,lang,has,win,dom,_161,_162,_163,on,_164,dnd,_165){return _15f("dojo.dnd.Mover",[_163],{constructor:function(node,e,host){this.node=dom.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[on(d,_164.move,lang.hitch(this,"onFirstMove")),on(d,_164.move,lang.hitch(this,"onMouseMove")),on(d,_164.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_160.stop),on(d.body,"selectstart",_160.stop)];_165.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_165.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_160.stop(e);},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_160.stop(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=_161.getMarginBox(this.node);var b=win.doc.body;var bs=_162.getComputedStyle(b);var bm=_161.getMarginBox(b,bs);var bc=_161.getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}this.events.shift().remove();},destroy:function(){_15e.forEach(this.events,function(_166){_166.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_167,lang,_168,when){return _167("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_169){if(_169){this.set(_169);}},_get:function(name,_16a){return typeof this[_16a.g]==="function"?this[_16a.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_16b){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _16c=this._getAttrNames(name),_16d=this._get(name,_16c),_16e=this[_16c.s],_16f;if(typeof _16e==="function"){_16f=_16e.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_16b;}if(this._watchCallbacks){var self=this;when(_16f,function(){self._watchCallbacks(name,_16d,_16b);});}return this;},_changeAttrValue:function(name,_170){var _171=this.get(name);this[name]=_170;if(this._watchCallbacks){this._watchCallbacks(name,_171,_170);}return this;},watch:function(name,_172){var _173=this._watchCallbacks;if(!_173){var self=this;_173=this._watchCallbacks=function(name,_174,_175,_176){var _177=function(_178){if(_178){_178=_178.slice();for(var i=0,l=_178.length;i-1){_179.splice(_17b,1);}};return _17a;}});});},"dojo/touch":function(){define(["./_base/kernel","./_base/lang","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,lang,_17c,dom,on,has,_17d,_17e,win){var _17f=has("touch");var _180,_181;if(_17f){_17e(function(){_181=win.body();win.doc.addEventListener("touchstart",function(evt){var _182=_181;_181=evt.target;on.emit(_182,"dojotouchout",{target:_182,relatedTarget:_181,bubbles:true});on.emit(_181,"dojotouchover",{target:_181,relatedTarget:_182,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _183=win.doc.elementFromPoint(evt.pageX-win.global.pageXOffset,evt.pageY-win.global.pageYOffset);if(_183&&_181!==_183){on.emit(_181,"dojotouchout",{target:_181,relatedTarget:_183,bubbles:true});on.emit(_183,"dojotouchover",{target:_183,relatedTarget:_181,bubbles:true});_181=_183;}});});_180=function(node,_184){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_181,node)){_184.call(this,lang.mixin({},evt,{target:_181}));}});};}function _185(type){return function(node,_186){return on(node,type,_186);};};var _187={press:_185(_17f?"touchstart":"mousedown"),move:_17f?_180:_185("mousemove"),release:_185(_17f?"touchend":"mouseup"),cancel:_17f?_185("touchcancel"):_17d.leave,over:_185(_17f?"dojotouchover":"mouseover"),out:_185(_17f?"dojotouchout":"mouseout"),enter:_17d._eventHandler(_17f?"dojotouchover":"mouseover"),leave:_17d._eventHandler(_17f?"dojotouchout":"mouseout")};1&&(dojo.touch=_187);return _187;});},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_188,_189,lang,_18a){return _188("dojox.grid.Selection",null,{constructor:function(_18b){this.grid=_18b;this.selected=[];this.setMode(_18b.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_18c){return this.grid.onCanSelect(_18c);},onCanDeselect:function(_18d){return this.grid.onCanDeselect(_18d);},onSelected:function(_18e){},onDeselected:function(_18f){},onChanging:function(){},onChanged:function(){},isSelected:function(_190){if(this.mode=="none"){return false;}return this.selected[_190];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i=0?_19b:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_19c,inTo){this._range(_19c,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_19d,inTo){this._range(_19d,inTo,lang.hitch(this,"deselect"));},insert:function(_19e){this.selected.splice(_19e,0,false);if(this.selectedIndex>=_19e){this.selectedIndex++;}},remove:function(_19f){this.selected.splice(_19f,1);if(this.selectedIndex>=_19f){this.selectedIndex--;}},deselectAll:function(_1a0){for(var i in this.selected){if((i!=_1a0)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_1a1,_1a2,_1a3){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_1a1);}else{var _1a4=this.selectedIndex;if(!_1a2){this.deselectAll(_1a1);}if(_1a3){this.selectRange(_1a4,_1a1);}else{if(_1a2){this.toggleSelect(_1a1);}else{this.addToSelection(_1a1);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/window","./registry"],function(_1a5,_1a6,dom,_1a7,lang,on,_1a8,win,_1a9){var _1aa=_1a6("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_1a5.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active","_opened"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._trackMouseState(this.domNode,this.baseClass);this._setStateClass();},_cssMouseEvent:function(_1ab){if(!this.disabled){switch(_1ab.type){case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchstart":this._set("active",true);break;case "mouseup":case "touchend":this._set("active",false);break;}}},_setStateClass:function(){var _1ac=this.baseClass.split(" ");function _1ad(_1ae){_1ac=_1ac.concat(_1a5.map(_1ac,function(c){return c+_1ae;}),"dijit"+_1ae);};if(!this.isLeftToRight()){_1ad("Rtl");}var _1af=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_1ad(_1af);}if(this.state){_1ad(this.state);}if(this.selected){_1ad("Selected");}if(this._opened){_1ad("Opened");}if(this.disabled){_1ad("Disabled");}else{if(this.readOnly){_1ad("ReadOnly");}else{if(this.active){_1ad("Active");}else{if(this.hovering){_1ad("Hover");}}}}if(this.focused){_1ad("Focused");}var tn=this.stateNode||this.domNode,_1b0={};_1a5.forEach(tn.className.split(" "),function(c){_1b0[c]=true;});if("_stateClasses" in this){_1a5.forEach(this._stateClasses,function(c){delete _1b0[c];});}_1a5.forEach(_1ac,function(c){_1b0[c]=true;});var _1b1=[];for(var c in _1b0){_1b1.push(c);}tn.className=_1b1.join(" ");this._stateClasses=_1ac;},_subnodeCssMouseEvent:function(node,_1b2,evt){if(this.disabled||this.readOnly){return;}function _1b3(_1b4){_1a7.toggle(node,_1b2+"Hover",_1b4);};function _1b5(_1b6){_1a7.toggle(node,_1b2+"Active",_1b6);};function _1b7(_1b8){_1a7.toggle(node,_1b2+"Focused",_1b8);};switch(evt.type){case "mouseover":_1b3(true);break;case "mouseout":_1b3(false);_1b5(false);break;case "mousedown":case "touchstart":_1b5(true);break;case "mouseup":case "touchend":_1b5(false);break;case "focus":case "focusin":_1b7(true);break;case "blur":case "focusout":_1b7(false);break;}},_trackMouseState:function(node,_1b9){node._cssState=_1b9;}});_1a8(function(){function _1ba(evt){if(!dom.isDescendant(evt.relatedTarget,evt.target)){for(var node=evt.target;node&&node!=evt.relatedTarget;node=node.parentNode){if(node._cssState){var _1bb=_1a9.getEnclosingWidget(node);if(_1bb){if(node==_1bb.domNode){_1bb._cssMouseEvent(evt);}else{_1bb._subnodeCssMouseEvent(node,node._cssState,evt);}}}}}};function _1bc(evt){evt.target=evt.srcElement;_1ba(evt);};var body=win.body();_1a5.forEach(["mouseover","mouseout","mousedown","touchstart","mouseup","touchend"],function(type){if(body.addEventListener){body.addEventListener(type,_1ba,true);}else{body.attachEvent("on"+type,_1bc);}});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _1bd=_1a9.getEnclosingWidget(node);_1bd._subnodeCssMouseEvent(node,node._cssState,evt);}});});return _1aa;});},"url:dojox/grid/resources/_Grid.html":"
\n\t
\n\t
\n\t
\n\t\n
\n","dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_1be,lang,_1bf){var _1c0=function(_1c1,_1c2){if(_1c1.style.cssText==undefined){_1c1.setAttribute("style",_1c2);}else{_1c1.style.cssText=_1c2;}};return _1be("dojox.grid._RowManager",null,{constructor:function(_1c3){this.grid=_1c3;},linesToEms:2,overRow:-2,prepareStylingRow:function(_1c4,_1c5){return {index:_1c4,node:_1c5,odd:Boolean(_1c4&1),selected:!!this.grid.selection.isSelected(_1c4),over:this.isOver(_1c4),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_1c6,_1c7){var row=this.prepareStylingRow(_1c6,_1c7);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_1c8){var i=_1c8;i.node.className=i.customClasses;var h=i.node.style.height;_1c0(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_1c9){this.grid.updateRowStyles(_1c9);},setOverRow:function(_1ca){var last=this.overRow;this.overRow=_1ca;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_1cb){return (this.overRow==_1cb&&!_1bf.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-construct","./dom-style","./has","./ready","./_base/window"],function(_1cc,_1cd,_1ce,_1cf,_1d0,has,_1d1,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url("+(_1cd.blankGif||_1cc.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_1d0.getComputedStyle(div),_1d2=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_1d2&&(_1d2=="none"||_1d2=="url(invalid-url:)"));_1cf.destroy(div);return hc;});_1d1(90,function(){if(has("highcontrast")){_1ce.add(win.body(),"dj_a11y");}});return has;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_1d3,lang){var _1d4={};lang.setObject("dojo.string",_1d4);_1d4.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("");};_1d4.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_1d4.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_1d4.substitute=function(_1d5,map,_1d6,_1d7){_1d7=_1d7||_1d3.global;_1d6=_1d6?lang.hitch(_1d7,_1d6):function(v){return v;};return _1d5.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1d8,key,_1d9){var _1da=lang.getObject(key,false,map);if(_1d9){_1da=lang.getObject(_1d9,false,_1d7).call(_1d7,_1da,key);}return _1d6(_1da,key).toString();});};_1d4.trim=String.prototype.trim?lang.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;};return _1d4;});},"dojo/dnd/Avatar":function(){define(["../_base/declare","../_base/window","../dom","../dom-attr","../dom-class","../dom-construct","../hccss","../query"],function(_1db,win,dom,_1dc,_1dd,_1de,has,_1df){return _1db("dojo.dnd.Avatar",null,{constructor:function(_1e0){this.manager=_1e0;this.construct();},construct:function(){var a=_1de.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_1e1=this.manager.source,node,b=_1de.create("tbody",null,a),tr=_1de.create("tr",null,b),td=_1de.create("td",null,tr),k=Math.min(5,this.manager.nodes.length),i=0;if(has("highcontrast")){_1de.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td);}_1de.create("span",{innerHTML:_1e1.generateText?this._generateText():""},td);_1dc.set(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_1fb){this.height+=this.defaultPageHeight*(this.pageCount-_1fb-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_1fc){return Boolean(this.getDefaultPageNode(_1fc));},measurePage:function(_1fd){if(this.grid.rowHeight){var _1fe=this.grid.rowHeight+1;return ((_1fd+1)*this.rowsPerPage>this.rowCount?this.rowCount-_1fd*this.rowsPerPage:this.rowsPerPage)*_1fe;}var n=this.getDefaultPageNode(_1fd);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_1ff,_200){for(var i=0;ithis.pacifyTicks;this.setPacifying(true);this.startPacify();return _20e;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i0&&_210>0)?(_211/_210):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _212=this.pageCount-1;var _213=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_212]=_213;return _213;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_214,_215,_216){if(this.pageExists(_214)){var oh=this.getPageHeight(_214);var h=(this.measurePage(_214));if(h===undefined){h=oh;}this.pageHeights[_214]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_215)){if(!_216){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_214);}}else{this.repositionPages(_214);}}return h;}return 0;},rowHeightChanged:function(_217,_218){this.updatePageHeight(Math.floor(_217/this.rowsPerPage),false,_218);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");html.attr(p,"role","presentation");p.style.position="absolute";p.style[this.grid.isLeftToRight()?"left":"right"]="0";return p;},getPageHeight:function(_219){var ph=this.pageHeights[_219];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_21a){return this.stack.push(_21a);},popPage:function(){return this.stack.shift();},findPage:function(_21b){var i=0,h=0;for(var ph=0;i=_21b){break;}}this.page=i;this.pageTop=h;},buildPage:function(_21c,_21d,_21e){this.preparePage(_21c,_21d);this.positionPage(_21c,_21e);this.installPage(_21c);this.renderPage(_21c);this.pushPage(_21c);},needPage:function(_21f,_220){var h=this.getPageHeight(_21f),oh=h;if(!this.pageExists(_21f)){this.buildPage(_21f,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_220);h=this.updatePageHeight(_21f,true);}else{this.positionPage(_21f,_220);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_221){this.grid.scrollTop=_221;if(this.colCount){this.startPacify();this.findPage(_221);var h=this.height;var b=this.getScrollBottom(_221);for(var p=this.page,y=this.pageTop;(p=0?_222+this.windowHeight:-1);},processNodeEvent:function(e,_223){var t=e.target;while(t&&(t!=_223)&&t.parentNode&&(t.parentNode.parentNode!=_223)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_223)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_1e6(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_224,_225){},removeRow:function(_226){},getDefaultPageNode:function(_227){return this.getDefaultNodes()[_227];},positionPageNode:function(_228,_229){},getPageNodePosition:function(_22a){return _22a.offsetTop;},invalidatePageNode:function(_22b,_22c){var p=_22c[_22b];if(p){delete _22c[_22b];this.removePage(_22b,p);_1e8(p);p.innerHTML="";}return p;},getPageRow:function(_22d){return _22d*this.rowsPerPage;},getLastPageRow:function(_22e){return Math.min(this.rowCount,this.getPageRow(_22e+1))-1;},getFirstVisibleRow:function(_22f,_230,_231){if(!this.pageExists(_22f)){return 0;}var row=this.getPageRow(_22f);var _232=this.getDefaultNodes();var rows=_1f0(_232[_22f]);for(var i=0,l=rows.length;i=0&&_234>_235;i--,row--){_234-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_237){var _238=this.getDefaultNodes();var rows=_1f0(_238[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i=_237){this.offset=h-(t-_237);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_239){var _23a=Math.floor(_239/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_23a;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_23a;this.needPage(_23a,this.pageTop);var _23b=this.getDefaultNodes();var rows=_1f0(_23b[_23a]);var r=_239-this.rowsPerPage*_23a;for(i=0,l=rows.length;i=0){this.setSortIndex(_240);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_23e.stop(e);}if(!e.shiftKey){var _241=this.edit.isEditing();this.edit.apply();if(!_241){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _242=this.focus.focusView||this.views.views[0];_242.content.decorateEvent(e);this.onRowClick(e);_23e.stop(e);}break;case keys.SPACE:if(!this.edit.isEditing()){_240=this.focus.getHeaderIndex();if(_240>=0){this.setSortIndex(_240);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_23e.stop(e);}break;case keys.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case keys.LEFT_ARROW:case keys.RIGHT_ARROW:if(!this.edit.isEditing()){var _243=e.keyCode;_23e.stop(e);_240=this.focus.getHeaderIndex();if(_240>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_240,(_243==keys.LEFT_ARROW?-1:1)*5);}else{var _244=(_243==keys.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_244*=-1;}this.focus.move(0,_244);}}break;case keys.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_23e.stop(e);this.focus.move(-1,0);}break;case keys.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_23e.stop(e);this.focus.move(1,0);}break;case keys.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_23e.stop(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case keys.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_23e.stop(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){_23c.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_23c.remove(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _245;if(this._click.length>1&&has("ie")){_245=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_245=this._click[0];}else{_245=e;}}this.focus.setFocusCell(_245.cell,_245.rowIndex);this.onRowClick(_245);this.edit.setEditCell(_245.cell,_245.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_246,_247){this.edit.cellFocus(_246,_247);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){_23e.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_23c.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_23c.remove(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){_23e.stop(e);}},onStartEdit:function(_248,_249){},onApplyCellEdit:function(_24a,_24b,_24c){},onCancelEdit:function(_24d){},onApplyEdit:function(_24e){},onCanSelect:function(_24f){return true;},onCanDeselect:function(_250){return true;},onSelected:function(_251){this.updateRowStyles(_251);},onDeselected:function(_252){this.updateRowStyles(_252);},onSelectionChanged:function(){}});});},"dojo/dnd/autoscroll":function(){define(["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(lang,has,win,_253,_254,_255){var _256={};lang.setObject("dojo.dnd.autoscroll",_256);_256.getViewport=_255.getBox;_256.V_TRIGGER_AUTOSCROLL=32;_256.H_TRIGGER_AUTOSCROLL=32;_256.V_AUTOSCROLL_VALUE=16;_256.H_AUTOSCROLL_VALUE=16;var _257,doc=win.doc,_258=Infinity,_259=Infinity;_256.autoScrollStart=function(d){doc=d;_257=_255.getBox(doc);var html=win.body(doc).parentNode;_258=Math.max(html.scrollHeight-_257.h,0);_259=Math.max(html.scrollWidth-_257.w,0);};_256.autoScroll=function(e){var v=_257||_255.getBox(doc),html=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_256.H_TRIGGER_AUTOSCROLL){dx=-_256.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_256.H_TRIGGER_AUTOSCROLL){dx=Math.min(_256.H_AUTOSCROLL_VALUE,_259-html.scrollLeft);}}if(e.clientY<_256.V_TRIGGER_AUTOSCROLL){dy=-_256.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_256.V_TRIGGER_AUTOSCROLL){dy=Math.min(_256.V_AUTOSCROLL_VALUE,_258-html.scrollTop);}}window.scrollBy(dx,dy);};_256._validNodes={"div":1,"p":1,"td":1};_256._validOverflow={"auto":1,"scroll":1};_256.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_25a,_25b;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _256._validNodes)){var s=_254.getComputedStyle(n),_25c=(s.overflow.toLowerCase() in _256._validOverflow),_25d=(s.overflowX.toLowerCase() in _256._validOverflow),_25e=(s.overflowY.toLowerCase() in _256._validOverflow);if(_25c||_25d||_25e){b=_253.getContentBox(n,s);t=_253.position(n,true);}if(_25c||_25d){w=Math.min(_256.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(has("webkit")||has("opera")){rx+=win.body().scrollLeft;}dx=0;if(rx>0&&rxb.w-w){dx=w;}}_25a=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_25c||_25e){h=Math.min(_256.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(has("webkit")||has("opera")){ry+=win.body().scrollTop;}dy=0;if(ry>0&&ryb.h-h){dy=h;}}_25b=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_256.autoScroll(e);};return _256;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_25f,has,_260,win,_261){var _262={},hash={};var _263={length:0,add:function(_264){if(hash[_264.id]){throw new Error("Tried to register widget with id=="+_264.id+" but that id is already registered");}hash[_264.id]=_264;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_265){var id;do{id=_265+"_"+(_265 in _262?++_262[_265]:_262[_265]=0);}while(hash[id]);return _261._scopeName=="dijit"?id:_261._scopeName+"_"+id;},findWidgets:function(root,_266){var _267=[];function _268(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _269=node.getAttribute("widgetId");if(_269){var _26a=hash[_269];if(_26a){_267.push(_26a);}}else{if(node!==_266){_268(node);}}}}};_268(root);return _267;},_destroyAll:function(){_261._curFocus=null;_261._prevFocus=null;_261._activeStack=[];_25f.forEach(_263.findWidgets(win.body()),function(_26b){if(!_26b._destroyed){if(_26b.destroyRecursive){_26b.destroyRecursive();}else{if(_26b.destroy){_26b.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_261.registry=_263;return _263;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_26c,_26d,_26e){return _26e("dijit.Destroyable",null,{destroy:function(_26f){this._destroyed=true;},own:function(){_26c.forEach(arguments,function(_270){var _271="destroyRecursive" in _270?"destroyRecursive":"destroy" in _270?"destroy":"remove";_270._odh=_26d.before(this,"destroy",function(_272){_270._odh.remove();_270[_271](_272);});_26d.after(_270,_271,function(){_270._odh.remove();});},this);return arguments;}});});},"dojox/html/metrics":function(){define("dojox/html/metrics",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/ready","dojo/_base/unload","dojo/_base/window","dojo/dom-geometry"],function(_273,lang,has,_274,_275,_276,_277){var dhm=lang.getObject("dojox.html.metrics",true);var _278=lang.getObject("dojox");dhm.getFontMeasurements=function(){var _279={"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(has("ie")){_276.doc.documentElement.style.fontSize="100%";}var div=_276.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";_276.body().appendChild(div);for(var p in _279){ds.fontSize=p;_279[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}_276.body().removeChild(div);div=null;return _279;};var _27a=null;dhm.getCachedFontMeasurements=function(_27b){if(_27b||!_27a){_27a=dhm.getFontMeasurements();}return _27a;};var _27c=null,_27d={};dhm.getTextBox=function(text,_27e,_27f){var m,s;if(!_27c){m=_27c=_276.doc.createElement("div");var c=_276.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";_276.body().appendChild(c);}else{m=_27c;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_27e){for(var i in _27e){if(i in _27d){continue;}s[i]=_27e[i];}}if(arguments.length>2&&_27f){m.className=_27f;}m.innerHTML=text;var box=_277.position(m);box.w=m.parentNode.scrollWidth;return box;};var _280={w:16,h:16};dhm.getScrollbar=function(){return {w:_280.w,h:_280.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_281){var f=dhm._fontResizeNode=_276.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";fs.display="none";if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[_278._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_278._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:''");_276.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_275.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(has("ie")&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});_274(function(){try{var n=_276.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_276.body().appendChild(n);_280.w=n.offsetWidth-n.clientWidth;_280.h=n.offsetHeight-n.clientHeight;_276.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _273.config&&!!_273.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"dojox/grid/_EditManager":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_282,_283,_284,has,util){return _283("dojox.grid._EditManager",null,{constructor:function(_285){this.grid=_285;if(has("ie")){this.connections=[_284.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];}else{this.connections=[_284.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){_282.forEach(this.connections,_284.disconnect);},cellFocus:function(_286,_287){if(this.grid.singleClickEdit||this.isEditRow(_287)){this.setEditCell(_286,_287);}else{this.apply();}if(this.isEditing()||(_286&&_286.editable&&_286.alwaysEditing)){this._focusEditor(_286,_287);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_288){if(_288.index==this.info.rowIndex){_288.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_289,_28a){return (this.info.rowIndex===_289)&&(this.info.cell.index==_28a);},isEditRow:function(_28b){return this.info.rowIndex===_28b;},setEditCell:function(_28c,_28d){if(!this.isEditCell(_28d,_28c.index)&&this.grid.canEdit&&this.grid.canEdit(_28c,_28d)){this.start(_28c,_28d,this.isEditRow(_28d)||_28c.editable);}},_focusEditor:function(_28e,_28f){util.fire(_28e,"focus",[_28f]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(has("ie")){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_290,_291,_292){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_291)){this.applyRowEdit();this.grid.updateRow(_291);}if(_292){this.info={cell:_290,rowIndex:_291};this.grid.doStartEdit(_290,_291);this.grid.updateRow(_291);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_290,_291);this._doCatchBoomerang();},_editorDo:function(_293){var c=this.info.cell;if(c&&c.editable){c[_293](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_294,_295,_296){if(this.grid.canEdit(_295,_296)){this.grid.doApplyCellEdit(_294,_296,_295.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_297,_298){var c=this.info.cell;if(this.isEditRow(_297)&&(!_298||c.view==_298)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_299,_29a){var c=this.info.cell;if(this.isEditRow(_29a)&&c.view==_299&&c.editable){c.restore(this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);}});});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_29b,_29c,_29d,dom,_29e,_29f,has,_2a0){var _2a1=(_2a0._isElementShown=function(elem){var s=_29f.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_29e.get(elem,"type")!="hidden");});_2a0.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _29e.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2a2=elem.contentDocument;if("designMode" in _2a2&&_2a2.designMode=="on"){return true;}body=_2a2.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}};var _2a3=(_2a0.isTabNavigable=function(elem){if(_29e.get(elem,"disabled")){return false;}else{if(_29e.has(elem,"tabIndex")){return _29e.get(elem,"tabIndex")>=0;}else{return _2a0.hasDefaultTabStop(elem);}}});_2a0._getTabNavigable=function(root){var _2a4,last,_2a5,_2a6,_2a7,_2a8,_2a9={};function _2aa(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2ab=function(_2ac){for(var _2ad=_2ac.firstChild;_2ad;_2ad=_2ad.nextSibling){if(_2ad.nodeType!=1||(has("ie")&&_2ad.scopeName!=="HTML")||!_2a1(_2ad)){continue;}if(_2a3(_2ad)){var _2ae=+_29e.get(_2ad,"tabIndex");if(!_29e.has(_2ad,"tabIndex")||_2ae==0){if(!_2a4){_2a4=_2ad;}last=_2ad;}else{if(_2ae>0){if(!_2a5||_2ae<_2a6){_2a6=_2ae;_2a5=_2ad;}if(!_2a7||_2ae>=_2a8){_2a8=_2ae;_2a7=_2ad;}}}var rn=_2aa(_2ad);if(_29e.get(_2ad,"checked")&&rn){_2a9[rn]=_2ad;}}if(_2ad.nodeName.toUpperCase()!="SELECT"){_2ab(_2ad);}}};if(_2a1(root)){_2ab(root);}function rs(node){return _2a9[_2aa(node)]||node;};return {first:rs(_2a4),last:rs(last),lowest:rs(_2a5),highest:rs(_2a7)};};_2a0.getFirstInTabbingOrder=function(root,doc){var _2af=_2a0._getTabNavigable(dom.byId(root,doc));return _2af.lowest?_2af.lowest:_2af.first;};_2a0.getLastInTabbingOrder=function(root,doc){var _2b0=_2a0._getTabNavigable(dom.byId(root,doc));return _2b0.last?_2b0.last:_2b0.highest;};return {hasDefaultTabStop:_2a0.hasDefaultTabStop,isTabNavigable:_2a0.isTabNavigable,_getTabNavigable:_2a0._getTabNavigable,getFirstInTabbingOrder:_2a0.getFirstInTabbingOrder,getLastInTabbingOrder:_2a0.getLastInTabbingOrder};});},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":"\n\t\n\t\t\"\"\n\t\t\n\t\n\t\n\t\n\t \n\n"}});define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_2b1,_2b2,_2b3,_2b4){return _2b1("dijit.CheckedMenuItem",_2b3,{templateString:_2b4,checked:false,_setCheckedAttr:function(_2b5){_2b2.toggle(this.domNode,"dijitCheckedMenuItemChecked",_2b5);this.domNode.setAttribute("aria-checked",_2b5?"true":"false");this._set("checked",_2b5);},iconClass:"",onChange:function(){},_onClick:function(evt){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.onClick(evt);}});});},"dojo/dnd/Container":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../_base/window","../dom","../dom-class","../dom-construct","../Evented","../has","../on","../query","../ready","../touch","./common"],function(_2b6,_2b7,_2b8,_2b9,lang,win,dom,_2ba,_2bb,_2bc,has,on,_2bd,_2be,_2bf,dnd){var _2c0=_2b7("dojo.dnd.Container",_2bc,{skipForm:false,allowNested:false,constructor:function(node,_2c1){this.node=dom.byId(node);if(!_2c1){_2c1={};}this.creator=_2c1.creator||null;this.skipForm=_2c1.skipForm;this.parent=_2c1.dropParent&&dom.byId(_2c1.dropParent);this.map={};this.current=null;this.containerState="";_2ba.add(this.node,"dojoDndContainer");if(!(_2c1&&_2c1._skipStartup)){this.startup();}this.events=[on(this.node,_2bf.over,lang.hitch(this,"onMouseOver")),on(this.node,_2bf.out,lang.hitch(this,"onMouseOut")),on(this.node,"dragstart",lang.hitch(this,"onSelectStart")),on(this.node,"selectstart",lang.hitch(this,"onSelectStart"))];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||_2b9.global;var m=this.map,e=dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return _2bd((this.allowNested?"":"> ")+".dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_2c2,_2c3){if(!this.parent.firstChild){_2c3=null;}else{if(_2c2){if(!_2c3){_2c3=this.parent.firstChild;}}else{if(_2c3){_2c3=_2c3.nextSibling;}}}var i,t;if(_2c3){for(i=0;i=0;};lang.mixin(lang.getObject("dojo.dnd",true),_2cd);return _2cd;});},"dojox/grid/_ViewManager":function(){define(["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(_2ce,has,_2cf){return _2ce("dojox.grid._ViewManager",null,{constructor:function(_2d0){this.grid=_2d0;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_2d1){_2d1.idx=this.views.length;this.views.push(_2d1);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _2d2=[];for(var i=0,v;v=this.views[i];i++){_2d2.push(v.contentNode);}return _2d2;},forEach:function(_2d3){for(var i=0,v;v=this.views[i];i++){_2d3(v,i);}},onEach:function(_2d4,_2d5){_2d5=_2d5||[];for(var i=0,v;v=this.views[i];i++){if(_2d4 in v){v[_2d4].apply(v,_2d5);}}},normalizeHeaderNodeHeight:function(){var _2d6=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_2d6.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_2d6);},normalizeRowNodeHeights:function(_2d7){var h=0;var _2d8=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_2d7.length<=1){return;}for(var i=0,n;(n=_2d7[i]);i++){if(!_2cf.contains(n,"dojoxGridNonNormalizedCell")){_2d8[i]=n.firstChild.offsetHeight;h=Math.max(h,_2d8[i]);}}h=(h>=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_2d7[i]);i++){if(_2d8[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_2d9){var _2da=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_2d9));i++){n.firstChild.style.height="";_2da.push(n);}this.normalizeRowNodeHeights(_2da);},getViewWidth:function(_2db){return this.views[_2db].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_2dc){_2dc.headerContentNode.style.height="";});var h=0;this.forEach(function(_2dd){h=Math.max(_2dd.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_2de){h=Math.max(_2de.domNode.offsetHeight,h);});return h;},findClient:function(_2df){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length,self=this;var c=(w<=0?len:this.findClient());var _2e0=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!self.grid.isLeftToRight()){ds.right=l+"px";if(has("ff")<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!has("webkit")){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_2f0.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_2f1("[widgetId]",this.containerNode).map(_2f3.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_2f2(0,function(){var _303=["dijit/_base"];require(_303);});}return _2fd;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_304,_305,_306,lang){lang.extend(_305,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _306("dijit._FocusMixin",null,{_focusManager:_304});});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window","./a11yclick"],function(on,_307,keys,_308,has,_309,win,_30a){var ret=_308("dijit._OnDijitClickMixin",null,{connect:function(obj,_30b,_30c){return this.inherited(arguments,[obj,_30b=="ondijitclick"?_30a:_30b,_30c]);}});ret.a11yclick=_30a;return ret;});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_30d,_30e,dom,_30f,_310,_311,lang,on,_312,has,_313,_314,win,_315,a11y,_316,_317){var _318=_30e([_313,_311],{curNode:null,activeStack:[],constructor:function(){var _319=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_30d.before(_310,"empty",_319);_30d.before(_310,"destroy",_319);},registerIframe:function(_31a){return this.registerWin(_31a.contentWindow,_31a);},registerWin:function(_31b,_31c){var _31d=this;var _31e=function(evt){_31d._justMouseDowned=true;setTimeout(function(){_31d._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_31d._onTouchNode(_31c||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_31b.document.documentElement:_31b.document;if(doc){if(has("ie")){_31b.document.body.attachEvent("onmousedown",_31e);var _31f=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_31d._onFocusNode(_31c||evt.srcElement);}else{_31d._onTouchNode(_31c||evt.srcElement);}};doc.attachEvent("onfocusin",_31f);var _320=function(evt){_31d._onBlurNode(_31c||evt.srcElement);};doc.attachEvent("onfocusout",_320);return {remove:function(){_31b.document.detachEvent("onmousedown",_31e);doc.detachEvent("onfocusin",_31f);doc.detachEvent("onfocusout",_320);doc=null;}};}else{doc.body.addEventListener("mousedown",_31e,true);doc.body.addEventListener("touchstart",_31e,true);var _321=function(evt){_31d._onFocusNode(_31c||evt.target);};doc.addEventListener("focus",_321,true);var _322=function(evt){_31d._onBlurNode(_31c||evt.target);};doc.addEventListener("blur",_322,true);return {remove:function(){doc.body.removeEventListener("mousedown",_31e,true);doc.body.removeEventListener("touchstart",_31e,true);doc.removeEventListener("focus",_321,true);doc.removeEventListener("blur",_322,true);doc=null;}};}}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _323=[];try{while(node){var _324=_30f.get(node,"dijitPopupParent");if(_324){node=_316.byId(_324).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_315.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_325=id&&_316.byId(id);if(_325&&!(by=="mouse"&&_325.get("disabled"))){_323.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_323,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_326,by){var _327=this.activeStack;this.set("activeStack",_326);for(var _328=0;_328=_328;i--){_329=_316.byId(_327[i]);if(_329){_329._hasBeenBlurred=true;_329.set("focused",false);if(_329._focusManager==this){_329._onBlur(by);}this.emit("widget-blur",_329,by);}}for(i=_328;i<_326.length;i++){_329=_316.byId(_326[i]);if(_329){_329.set("focused",true);if(_329._focusManager==this){_329._onFocus(by);}this.emit("widget-focus",_329,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _32a=new _318();_312(function(){var _32b=_32a.registerWin(_315.get(win.doc));if(has("ie")){_314.addOnWindowUnload(function(){if(_32b){_32b.remove();_32b=null;}});}});_317.focus=function(node){_32a.focus(node);};for(var attr in _32a){if(!/^_/.test(attr)){_317.focus[attr]=typeof _32a[attr]=="function"?lang.hitch(_32a,attr):_32a[attr];}}_32a.watch(function(attr,_32c,_32d){_317.focus[attr]=_32d;});return _32a;});},"dojox/grid/util":function(){define("dojox/grid/util",["../main","dojo/_base/lang","dojo/dom"],function(_32e,lang,dom){var dgu=lang.getObject("grid.util",true,_32e);dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_32f,_330){if(_330>=0){var s=_32f.style;var v=_330+"px";if(_32f&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_331,_332,_333,_334){var evts=(_334?_334:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i\n\t\n\t\t\"\"\n\t\n\t\n\t\n\t\n\t\t
\n\t\t\t\"\"\n\t\t\t+\n\t\t
\n\t\n\n","dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"url:dojox/grid/resources/View.html":"
\n\t
\n\t\t
\n\t\t\t
\n\t\t
\n\t
\n\t\n\t\n\t
\n\t\t
\n\t
\n
\n","dojox/grid/_FocusManager":function(){define("dojox/grid/_FocusManager",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/event","dojo/_base/sniff","dojo/query","./util","dojo/_base/html"],function(_33d,lang,_33e,_33f,_340,has,_341,util,html){return _33e("dojox.grid._FocusManager",null,{constructor:function(_342){this.grid=_342;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(_33f.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(_33f.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(_33f.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(_33f.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(_33f.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(_33f.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(_33f.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(_33f.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(_33f.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){_33d.forEach(this._connects,_33f.disconnect);_33d.forEach(this._headerConnects,_33f.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_343,_344){return (this.cell==_343)&&(this.rowIndex==_344);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return _33d.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_345){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){html.toggleClass(n,this.focusClass,_345);if(_345){var sl=this.scrollIntoView();try{if(has("webkit")||!this.grid.edit.isEditing()){util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid.focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){html.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();}},_initColumnHeaders:function(){_33d.forEach(this._headerConnects,_33f.disconnect);this._headerConnects=[];var _346=this._findHeaderCells();for(var i=0;i<_346.length;i++){this._headerConnects.push(_33f.connect(_346[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(_33f.connect(_346[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _347=_341("th",this.grid.viewsHeaderNode);var _348=[];for(var i=0;i<_347.length;i++){var _349=_347[i];var _34a=html.hasAttr(_349,"tabIndex");var _34b=html.attr(_349,"tabIndex");if(_34a&&_34b<0){_348.push(_349);}}return _348;},_setActiveColHeader:function(_34c,_34d,_34e){this.grid.domNode.setAttribute("aria-activedescendant",_34c.id);if(_34e!=null&&_34e>=0&&_34e!=_34d){html.toggleClass(this._findHeaderCells()[_34e],this.focusClass,false);}html.toggleClass(_34c,this.focusClass,true);this._colHeadNode=_34c;this._colHeadFocusIdx=_34d;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeftinfo.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt_351){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _359={l:_355};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_359);view.update();}},styleRow:function(_35a){return;},setFocusIndex:function(_35b,_35c){this.setFocusCell(this.grid.getCell(_35c),_35b);},setFocusCell:function(_35d,_35e){if(_35d&&!this.isFocusCell(_35d,_35e)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_35d;this.rowIndex=_35e;this._focusifyCellNode(true);}if(has("opera")){setTimeout(lang.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _35f=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_35f.editable||this.grid.canEdit&&!this.grid.canEdit(_35f,row))){this.cell=_35f;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _360=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_360.editable){this.cell=_360;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_361,_362){var _363=_362<0?-1:1;if(this.isNavHeader()){var _364=this._findHeaderCells();var _365=currentIdx=_33d.indexOf(_364,this._colHeadNode);currentIdx+=_362;while(currentIdx>=0&¤tIdx<_364.length&&_364[currentIdx].style.display=="none"){currentIdx+=_363;}if((currentIdx>=0)&&(currentIdx<_364.length)){this._setActiveColHeader(_364[currentIdx],currentIdx,_365);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_361));if(_361){if(_361>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_361<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_362));var cell=this.grid.getCell(col);while(col>=0&&col=0&&(row+_361)<=rc){this.move(_361>0?++_361:--_361,_362);}return;}else{if((!n||html.style(n,"display")==="none")&&_362){if((col+_362)>=0&&(col+_362)<=cc){this.move(_361,_362>0?++_362:--_362);}return;}}this.setFocusIndex(row,col);if(_361){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_340.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_340.stop(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){html.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _366=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_340.stop(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){_340.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_367){this.tabbingOut=true;_367.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_368){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _369=true;var _36a=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_36a){var _36b=0;var cell=this.grid.getCell(_36b);if(cell.hidden){_36b=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_36b);}else{if(this.cell&&!_36a){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_369=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _369;},focusHeader:function(){var _36c=this._findHeaderCells();var _36d=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_36c[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_36c.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_36c[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_36d);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){html.removeClass(this._colHeadNode,this.focusClass);html.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _36e=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_36e);this._contextMenuBindNode=_36e;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_340.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_340.stop(e);},doBlur:function(e){_340.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_340.stop(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;_340.stop(e);},doLastNodeBlur:function(e){_340.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_340.stop(e);},doColHeaderBlur:function(e){html.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});});},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":"\n\t\n\t\t\"\"\n\t\n\t\n\t\n\t\n\t\t
\n\t\t\t\"\"\n\t\t\t+\n\t\t
\n\t\n\n"}});define("dijit/MenuItem",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/kernel","dojo/sniff","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_36f,dom,_370,_371,_372,has,_373,_374,_375,_376,_377){return _36f("dijit.MenuItem",[_373,_374,_375,_376],{templateString:_377,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(val){this.containerNode.innerHTML=val;this._set("label",val);if(this.textDir==="auto"){this.applyTextDir(this.focusNode,this.label);}},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_378){if(_378&&!("label" in this.params)){this.set("label",_378.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _379=this.id+"_text";_370.set(this.containerNode,"id",_379);if(this.accelKeyNode){_370.set(this.accelKeyNode,"id",this.id+"_accel");_379+=" "+this.id+"_accel";}this.domNode.setAttribute("aria-labelledby",_379);dom.setSelectable(this.domNode,false);},onClick:function(){},focus:function(){try{if(has("ie")==8){this.containerNode.focus();}this.focusNode.focus();}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_37a){_371.toggle(this.domNode,"dijitMenuItemSelected",_37a);},setLabel:function(_37b){_372.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",_37b);},setDisabled:function(_37c){_372.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.","","2.0");this.set("disabled",_37c);},_setDisabledAttr:function(_37d){this.focusNode.setAttribute("aria-disabled",_37d?"true":"false");this._set("disabled",_37d);},_setAccelKeyAttr:function(_37e){this.accelKeyNode.style.display=_37e?"":"none";this.accelKeyNode.innerHTML=_37e;_370.set(this.containerNode,"colSpan",_37e?"1":"2");this._set("accelKey",_37e);},_setTextDirAttr:function(_37f){if(!this._created||this.textDir!=_37f){this._set("textDir",_37f);this.applyTextDir(this.focusNode,this.label);}}});});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/sniff","dojo/_base/unload"],function(lang,_380,_381,_382,_383,_384,_385,_386,has,_387){var _388=_385("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _389=this.declaredClass,_38a=this;return _382.substitute(tmpl,this,function(_38b,key){if(key.charAt(0)=="!"){_38b=lang.getObject(key.substr(1),false,_38a);}if(typeof _38b=="undefined"){throw new Error(_389+" template:"+key);}if(_38b==null){return "";}return key.charAt(0)=="!"?_38b:_38b.toString().replace(/"/g,""");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_383(this.templatePath,{sanitize:true});}var _38c=_388.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);var node;if(lang.isString(_38c)){node=_386.toDom(this._stringRepl(_38c),this.ownerDocument);if(node.nodeType!=1){throw new Error("Invalid template: "+_38c);}}else{node=_38c.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_38d){var dest=this.containerNode;if(_38d&&dest){while(_38d.hasChildNodes()){dest.appendChild(_38d.firstChild);}}},_attachTemplateNodes:function(_38e,_38f){var _390=lang.isArray(_38e)?_38e:(_38e.all||_38e.getElementsByTagName("*"));var x=lang.isArray(_38e)?0:-1;for(;x<0||_390[x];x++){var _391=(x==-1)?_38e:_390[x];if(this.widgetsInTemplate&&(_38f(_391,"dojoType")||_38f(_391,"data-dojo-type"))){continue;}var _392=_38f(_391,"dojoAttachPoint")||_38f(_391,"data-dojo-attach-point");if(_392){var _393,_394=_392.split(/\s*,\s*/);while((_393=_394.shift())){if(lang.isArray(this[_393])){this[_393].push(_391);}else{this[_393]=_391;}this._attachPoints.push(_393);}}var _395=_38f(_391,"dojoAttachEvent")||_38f(_391,"data-dojo-attach-event");if(_395){var _396,_397=_395.split(/\s*,\s*/);var trim=lang.trim;while((_396=_397.shift())){if(_396){var _398=null;if(_396.indexOf(":")!=-1){var _399=_396.split(":");_396=trim(_399[0]);_398=trim(_399[1]);}else{_396=trim(_396);}if(!_398){_398=_396;}this._attachEvents.push(this.connect(_391,_380[_396]||_396,_398));}}}}},destroyRendering:function(){_384.forEach(this._attachPoints,function(_39a){delete this[_39a];},this);this._attachPoints=[];_384.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_388._templateCache={};_388.getCachedTemplate=function(_39b,_39c,doc){var _39d=_388._templateCache;var key=_39b;var _39e=_39d[key];if(_39e){try{if(!_39e.ownerDocument||_39e.ownerDocument==(doc||document)){return _39e;}}catch(e){}_386.destroy(_39e);}_39b=_382.trim(_39b);if(_39c||_39b.match(/\$\{([^\}]+)\}/g)){return (_39d[key]=_39b);}else{var node=_386.toDom(_39b,doc);if(node.nodeType!=1){throw new Error("Invalid template: "+_39b);}return (_39d[key]=node);}};if(has("ie")){_387.addOnWindowUnload(function(){var _39f=_388._templateCache;for(var key in _39f){var _3a0=_39f[key];if(typeof _3a0=="object"){_386.destroy(_3a0);}delete _39f[key];}});}lang.extend(_381,{dojoAttachEvent:"",dojoAttachPoint:""});return _388;});},"dojox/grid/_SelectionPreserver":function(){define("dojox/grid/_SelectionPreserver",["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(_3a1,_3a2,lang,_3a3){return _3a1("dojox.grid._SelectionPreserver",null,{constructor:function(_3a4){this.selection=_3a4;var grid=this.grid=_3a4.grid;this.reset();this._connects=[_3a2.connect(grid,"_setStore",this,"reset"),_3a2.connect(grid,"_addItem",this,"_reSelectById"),_3a2.connect(_3a4,"onSelected",lang.hitch(this,"_selectById",true)),_3a2.connect(_3a4,"onDeselected",lang.hitch(this,"_selectById",false)),_3a2.connect(_3a4,"deselectAll",this,"reset")];},destroy:function(){this.reset();_3a3.forEach(this._connects,_3a2.disconnect);delete this._connects;},reset:function(){this._selectedById={};},_reSelectById:function(item,_3a5){if(item&&this.grid._hasIdentity){this.selection.selected[_3a5]=this._selectedById[this.grid.store.getIdentity(item)];}},_selectById:function(_3a6,_3a7){if(this.selection.mode=="none"||!this.grid._hasIdentity){return;}var item=_3a7,g=this.grid;if(typeof _3a7=="number"||typeof _3a7=="string"){var _3a8=g._by_idx[_3a7];item=_3a8&&_3a8.item;}if(item){this._selectedById[g.store.getIdentity(item)]=!!_3a6;}return item;}});});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_3a9,dom,geom,_3aa){var _3ab={getBox:function(doc){doc=doc||_3a9.doc;var _3ac=(doc.compatMode=="BackCompat")?_3a9.body(doc):doc.documentElement,_3ad=geom.docScroll(doc),w,h;if(has("touch")){var _3ae=_3ab.get(doc);w=_3ae.innerWidth||_3ac.clientWidth;h=_3ae.innerHeight||_3ac.clientHeight;}else{w=_3ac.clientWidth;h=_3ac.clientHeight;}return {l:_3ad.x,t:_3ad.y,w:w,h:h};},get:function(doc){if(has("ie")&&_3ab!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_3a9.doc,body=_3a9.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _3af=doc.compatMode=="BackCompat",_3b0=(isIE>=9&&"frameElement" in node.ownerDocument.parentWindow)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_3af?body:html),_3b1=isWK?body:_3b0,_3b2=_3b0.clientWidth,_3b3=_3b0.clientHeight,rtl=!geom.isBodyLtr(doc),_3b4=pos||geom.position(node),el=node.parentNode,_3b5=function(el){return ((isIE<=6||(isIE&&_3af))?false:(_3aa.get(el,"position").toLowerCase()=="fixed"));};if(_3b5(node)){return;}while(el){if(el==body){el=_3b1;}var _3b6=geom.position(el),_3b7=_3b5(el);if(el==_3b1){_3b6.w=_3b2;_3b6.h=_3b3;if(_3b1==html&&isIE&&rtl){_3b6.x+=_3b1.offsetWidth-_3b6.w;}if(_3b6.x<0||!isIE){_3b6.x=0;}if(_3b6.y<0||!isIE){_3b6.y=0;}}else{var pb=geom.getPadBorderExtents(el);_3b6.w-=pb.w;_3b6.h-=pb.h;_3b6.x+=pb.l;_3b6.y+=pb.t;var _3b8=el.clientWidth,_3b9=_3b6.w-_3b8;if(_3b8>0&&_3b9>0){_3b6.w=_3b8;_3b6.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_3b9:0;}_3b8=el.clientHeight;_3b9=_3b6.h-_3b8;if(_3b8>0&&_3b9>0){_3b6.h=_3b8;}}if(_3b7){if(_3b6.y<0){_3b6.h+=_3b6.y;_3b6.y=0;}if(_3b6.x<0){_3b6.w+=_3b6.x;_3b6.x=0;}if(_3b6.y+_3b6.h>_3b3){_3b6.h=_3b3-_3b6.y;}if(_3b6.x+_3b6.w>_3b2){_3b6.w=_3b2-_3b6.x;}}var l=_3b4.x-_3b6.x,t=_3b4.y-Math.max(_3b6.y,0),r=l+_3b4.w-_3b6.w,bot=t+_3b4.h-_3b6.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_3af)||isIE>=9)){s=-s;}_3b4.x+=el.scrollLeft;el.scrollLeft+=s;_3b4.x-=el.scrollLeft;}if(bot*t>0){_3b4.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_3b4.y-=el.scrollTop;}el=(el!=_3b1)&&!_3b7&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_3ab);return _3ab;});},"dojox/grid/_Builder":function(){define(["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/window","dojo/_base/event","dojo/_base/sniff","dojo/_base/connect","dojo/dnd/Moveable","dojox/html/metrics","./util","dojo/_base/html"],function(_3ba,_3bb,lang,win,_3bc,has,_3bd,_3be,_3bf,util,html){var dg=_3ba.grid;var _3c0=function(td){return td.cellIndex>=0?td.cellIndex:_3bb.indexOf(td.parentNode.cells,td);};var _3c1=function(tr){return tr.rowIndex>=0?tr.rowIndex:_3bb.indexOf(tr.parentNode.childNodes,tr);};var _3c2=function(_3c3,_3c4){return _3c3&&((_3c3.rows||0)[_3c4]||_3c3.childNodes[_3c4]);};var _3c5=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _3c6=function(_3c7,_3c8){for(var n=_3c7;n&&_3c8(n);n=n.parentNode){}return n;};var _3c9=function(_3ca){var name=_3ca.toUpperCase();return function(node){return node.tagName!=name;};};var _3cb=util.rowIndexTag;var _3cc=util.gridViewTag;var _3cd=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"");return html;},generateCellMarkup:function(_3ce,_3cf,_3d0,_3d1){var _3d2=[],html;if(_3d1){var _3d3=_3ce.index!=_3ce.grid.getSortIndex()?"":_3ce.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_3ce.id){_3ce.id=this.grid.id+"Hdr"+_3ce.index;}html=["":"");return _3d2;},isCellNode:function(_3d5){return Boolean(_3d5&&_3d5!=win.doc&&html.attr(_3d5,"idx"));},getCellNodeIndex:function(_3d6){return _3d6?Number(html.attr(_3d6,"idx")):-1;},getCellNode:function(_3d7,_3d8){for(var i=0,row;((row=_3c2(_3d7.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_3d8){return cell;}}}return null;},findCellTarget:function(_3d9,_3da){var n=_3d9;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_3cc in n.offsetParent.parentNode&&n.offsetParent.parentNode[_3cc]!=this.view.id))&&(n!=_3da)){n=n.parentNode;}return n!=_3da?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_3db,_3dc){var n=_3db;while(n&&(n!=this.domNode)&&(!(_3dc in n)||(_3cc in n&&n[_3cc]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_3dd){return this.findTarget(_3dd,_3cb);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&html.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});var _3de=dg._ContentBuilder=lang.extend(function(view){_3cd.call(this,view);},_3cd.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _3df=this.grid.get,_3e0=this.view.structure.cells;for(var j=0,row;(row=_3e0[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_3df;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_3e1,_3e2){var html=this.getTableArray(),v=this.view,_3e3=v.structure.cells,item=this.grid.getItem(_3e2);util.fire(this.view,"onBeforeRow",[_3e2,_3e3]);for(var j=0,row;(row=_3e3[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"":"");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_3e2,item);m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("");}html.push("
");_3d2.push(html.join(""));_3d2.push("");_3d2.push(_3d1?"
");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_3cb];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _3e4=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_3cd.call(this,view);},_3cd.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_3e5,_3e6){var html=this.getTableArray(),_3e7=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_3e7]);for(var j=0,row;(row=_3e7[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"":"");for(var i=0,cell,_3e8;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_3e8=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_3e8[5]=(_3e6!=undefined?_3e6:_3e5(cell));_3e8[3]=cell.customStyles.join(";");_3e8[1]=cell.customClasses.join(" ");html.push(_3e8.join(""));}html.push("");}html.push("");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(has("mozilla")||has("ie")>=9){n=_3c6(e.target,_3c9("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!this.grid.isLeftToRight()){table=_3c6(n,_3c9("table"));x-=(table&&table.offsetLeft)||0;}}n=_3c6(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=e.cellIndex;e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX0&&e.cellX=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}html.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));html.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(c){_3bc.stop(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){_3bc.stop(e);return true;}return false;},colResizeSetup:function(e,_3e9){var _3ea=html.contentBox(e.sourceView.headerNode);if(_3e9){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _3eb=html.contentBox(e.sourceView.domNode);var l=e.pageX;if(!this.grid.isLeftToRight()&&has("ie")<8){l-=_3bf.getScrollbar().w;}html.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_3eb.h+_3ea.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _3ec=[],_3ed=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_3ed[i]);i++){_3ec.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _3ee=e.grid.views.views;var _3ef=[];for(var j=view.idx+adj,_3f0;(_3f0=_3ee[j]);j=j+adj){_3ef.push({node:_3f0.headerNode,left:window.parseInt(_3f0.headerNode.style.left)});}var _3f1=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:html.contentBox(e.cellNode).w,vw:_3ea.w,table:_3f1,tw:html.contentBox(_3f1).w,spanners:_3ec,followers:_3ef};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");html.style(this.moverDiv,{position:"absolute",left:0});win.body().appendChild(this.moverDiv);html.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new _3be(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=lang.hitch(this,"doResizeColumn",drag);_3bd.connect(m,"onMoveStop",lang.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;html.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_3f2,_3f3,_3f4){var _3f5=_3f4.l;var data={deltaX:_3f5,w:_3f2.w+(this.grid.isLeftToRight()?_3f5:-_3f5),vw:_3f2.vw+_3f5,tw:_3f2.tw+_3f5};this.dragRecord={inDrag:_3f2,mover:_3f3,leftTop:_3f4};if(data.w>=this.minColWidth){if(!_3f3){this.doResizeNow(_3f2,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_3f6){if(this.dragRecord){var _3f7=this.dragRecord.leftTop;var _3f8=this.grid.isLeftToRight()?_3f7.l:-_3f7.l;_3f8+=Math.max(_3f6.w+_3f8,this.minColWidth)-(_3f6.w+_3f8);if(has("webkit")&&_3f6.spanners.length){_3f8+=html._getPadBorderExtents(_3f6.spanners[0].node).w;}var data={deltaX:_3f8,w:_3f6.w+_3f8,vw:_3f6.vw+_3f8,tw:_3f6.tw+_3f8};this.doResizeNow(_3f6,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_3f6.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_3f6.index);},doResizeNow:function(_3f9,data){_3f9.view.convertColPctToFixed();if(_3f9.view.flexCells&&!_3f9.view.testFlexCells()){var t=_3c5(_3f9.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_3f9.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_3f9.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_3f9.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_3f9.node.style.width=data.w+"px";_3f9.view.setColWidth(_3f9.index,data.w);_3f9.view.headerNode.style.width=data.vw+"px";_3f9.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_3f9.view.headerNode.scrollLeft=_3f9.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_3fa){var _3fb=_3fa.length;if(!_3fb){return;}this.map=[];var row;for(var k=0;(row=_3fa[k]);k++){this.map[k]=[];}for(var j=0;(row=_3fa[j]);j++){for(var i=0,x=0,cell,_3fc,_3fd;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_3fd=cell.rowSpan||1;_3fc=cell.colSpan||1;for(var y=0;y<_3fd;y++){for(var s=0;s<_3fc;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_3fc;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+" ";}}},getMapCoords:function(_3fe,_3ff){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_3ff&&cell.r==_3fe){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_400,_401,_402){var row=_400&&_400.rows[_401];return row&&row.cells[_402];},_findOverlappingNodes:function(_403,_404,_405){var _406=[];var m=this.getMapCoords(_404,_405);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_403,rw.r,rw.c):null);if(n){_406.push(n);}}return _406;},findOverlappingNodes:function(_407){return this._findOverlappingNodes(_3c5(_407),_3c1(_407.parentNode),_3c0(_407));}});return {_Builder:_3cd,_HeaderBuilder:_3e4,_ContentBuilder:_3de};});},"dojo/dnd/Source":function(){define(["../_base/array","../_base/connect","../_base/declare","../_base/kernel","../_base/lang","../dom-class","../dom-geometry","../mouse","../ready","../topic","./common","./Selector","./Manager"],function(_408,_409,_40a,_40b,lang,_40c,_40d,_40e,_40f,_410,dnd,_411,_412){if(!_40b.isAsync){_40f(0,function(){var _413=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_413);});}var _414=_40a("dojo.dnd.Source",_411,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_415){lang.mixin(this,lang.mixin({},_415));var type=this.accept;if(type.length){this.accept={};for(var i=0;ithis.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _419=this.getSelectedNodes();if(_419.length){m.startDrag(this,_419,this.copyState(dnd.getCopyKeyState(e),true));}}}if(this.isDragging){var _41a=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=_40d.position(this.current,true);}if(this.horizontal){_41a=(e.pageX-this.targetBox.x"+this.defaultValue+"";}return v;},format:function(_439,_43a){var f,i=this.grid.edit.info,d=this.get?this.get(_439,_43a):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&").replace(/";},formatNode:function(_461,_462,_463){this.inherited(arguments);this.registerOnBlur(_461,_463);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_42b.stop(e);}}},_finish:function(_464){this.inherited(arguments);var n=this.getEditNode(_464);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_465){_435.markupFactory(node,_465);var _466=lang.trim(_42e.get(node,"keyFilter")||"");if(_466){_465.keyFilter=new RegExp(_466);}};var _467=_42a("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_468){return _468+1;}});_467.markupFactory=function(node,_469){Cell.markupFactory(node,_469);};var _46a=_42a("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_46b){this.values=this.values||this.options;},formatEditing:function(_46c,_46d){this.needFormatNode(_46c,_46d);var h=["");return h.join("");},_defaultFormat:function(_46e,_46f){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_42d.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_470){var n=this.getEditNode(_470);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_46a.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _471=lang.trim(_42e.get(node,"options")||"");if(_471){var o=_471.split(",");if(o[0]!=_471){cell.options=o;}}var _472=lang.trim(_42e.get(node,"values")||"");if(_472){var v=_472.split(",");if(v[0]!=_472){cell.values=v;}}};var _473=_42a("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_474,_475){this.formatNode(this.getEditNode(_475),_474,_475);},applyStaticValue:function(_476){var e=this.grid.edit;e.applyCellEdit(this.getValue(_476),this,_476);e.start(this,_476,true);}});_473.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_42a("dojox.grid.cells.Bool",_473,{_valueProp:"checked",formatEditing:function(_477,_478){return "";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_473.markupFactory(node,cell);};return _435;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_479,_47a,_47b,_47c,_47d,_47e,dom,_47f,_480,_481,_482,_483,has,_484,lang,on,_485,_486,_487,win,_488,_489){has.add("dijit-legacy-requires",!_484.isAsync);if(has("dijit-legacy-requires")){_485(0,function(){var _48a=["dijit/_base/manager"];_479(_48a);});}var _48b={};function _48c(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _48d(attr){return function(val){_47f[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _47e("dijit._WidgetBase",[_486,_488],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_48d("lang"),dir:"",_setDirAttr:_48d("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_47c.blankGif||_479.toUrl("dojo/resources/blank.gif"),postscript:function(_48e,_48f){this.create(_48e,_48f);},create:function(_490,_491){this.srcNodeRef=dom.byId(_491);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_490){this.params=_490;lang.mixin(this,_490);}this.postMixInProperties();if(!this.id){this.id=_489.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_489.add(this);this.buildRendering();var _492;if(this.domNode){this._applyAttributes();var _493=this.srcNodeRef;if(_493&&_493.parentNode&&this.domNode!==_493){_493.parentNode.replaceChild(this.domNode,_493);_492=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_492){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _494=ctor.prototype;for(var _495 in _494){if(_495 in this.attributeMap){continue;}var _496="_set"+_495.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_496 in _494){list.push(_495);}}}_47a.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _497 in this.params){this.set(_497,this.params[_497]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _498=this.baseClass.split(" ");if(!this.isLeftToRight()){_498=_498.concat(_47a.map(_498,function(name){return name+"Rtl";}));}_480.add(this.domNode,_498);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_47a.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_499){this._beingDestroyed=true;this.destroyDescendants(_499);this.destroy(_499);},destroy:function(_49a){this._beingDestroyed=true;this.uninitialize();function _49b(w){if(w.destroyRecursive){w.destroyRecursive(_49a);}else{if(w.destroy){w.destroy(_49a);}}};_47a.forEach(this._connects,lang.hitch(this,"disconnect"));_47a.forEach(this._supportingWidgets,_49b);if(this.domNode){_47a.forEach(_489.findWidgets(this.domNode,this.containerNode),_49b);}this.destroyRendering(_49a);_489.remove(this.id);this._destroyed=true;},destroyRendering:function(_49c){if(this.bgIframe){this.bgIframe.destroy(_49c);delete this.bgIframe;}if(this.domNode){if(_49c){_47f.remove(this.domNode,"widgetId");}else{_481.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_49c){_481.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_49d){_47a.forEach(this.getChildren(),function(_49e){if(_49e.destroyRecursive){_49e.destroyRecursive(_49d);}});},uninitialize:function(){return false;},_setStyleAttr:function(_49f){var _4a0=this.domNode;if(lang.isObject(_49f)){_483.set(_4a0,_49f);}else{if(_4a0.style.cssText){_4a0.style.cssText+="; "+_49f;}else{_4a0.style.cssText=_49f;}}this._set("style",_49f);},_attrToDom:function(attr,_4a1,_4a2){_4a2=arguments.length>=3?_4a2:this.attributeMap[attr];_47a.forEach(lang.isArray(_4a2)?_4a2:[_4a2],function(_4a3){var _4a4=this[_4a3.node||_4a3||"domNode"];var type=_4a3.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_4a1)){_4a1=lang.hitch(this,_4a1);}var _4a5=_4a3.attribute?_4a3.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_4a4.tagName){_47f.set(_4a4,_4a5,_4a1);}else{_4a4.set(_4a5,_4a1);}break;case "innerText":_4a4.innerHTML="";_4a4.appendChild(this.ownerDocument.createTextNode(_4a1));break;case "innerHTML":_4a4.innerHTML=_4a1;break;case "class":_480.replace(_4a4,_4a1,this[attr]);break;}},this);},get:function(name){var _4a6=this._getAttrNames(name);return this[_4a6.g]?this[_4a6.g]():this[name];},set:function(name,_4a7){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _4a8=this._getAttrNames(name),_4a9=this[_4a8.s];if(lang.isFunction(_4a9)){var _4aa=_4a9.apply(this,Array.prototype.slice.call(arguments,1));}else{var _4ab=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_4ab].tagName,_4ac=_48b[tag]||(_48b[tag]=_48c(this[_4ab])),map=name in this.attributeMap?this.attributeMap[name]:_4a8.s in this?this[_4a8.s]:((_4a8.l in _4ac&&typeof _4a7!="function")||/^aria-|^data-|^role$/.test(name))?_4ab:null;if(map!=null){this._attrToDom(name,_4a7,map);}this._set(name,_4a7);}return _4aa||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_4ad){var _4ae=this[name];this[name]=_4ad;if(this._created&&_4ad!==_4ae){if(this._watchCallbacks){this._watchCallbacks(name,_4ae,_4ad);}this.emit("attrmodified-"+name,{detail:{prevValue:_4ae,newValue:_4ad}});}},emit:function(type,_4af,_4b0){_4af=_4af||{};if(_4af.bubbles===undefined){_4af.bubbles=true;}if(_4af.cancelable===undefined){_4af.cancelable=true;}if(!_4af.detail){_4af.detail={};}_4af.detail.widget=this;var ret,_4b1=this["on"+type];if(_4b1){ret=_4b1.apply(this,_4b0?_4b0:[_4af]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_4af);}return ret;},on:function(type,func){var _4b2=this._onMap(type);if(_4b2){return _47b.after(this,_4b2,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_489.findWidgets(this.containerNode):[];},getParent:function(){return _489.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_4b3,_4b4){return this.own(_47d.connect(obj,_4b3,this,_4b4))[0];},disconnect:function(_4b5){_4b5.remove();},subscribe:function(t,_4b6){return this.own(_487.subscribe(t,lang.hitch(this,_4b6)))[0];},unsubscribe:function(_4b7){_4b7.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_482.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_483.get(this.domNode,"display")!="none");},placeAt:function(_4b8,_4b9){var _4ba=!_4b8.tagName&&_489.byId(_4b8);if(_4ba&&_4ba.addChild&&(!_4b9||typeof _4b9==="number")){_4ba.addChild(this,_4b9);}else{var ref=_4ba?(_4ba.containerNode&&!/after|before|replace/.test(_4b9||"")?_4ba.containerNode:_4ba.domNode):dom.byId(_4b8,this.ownerDocument);_481.place(this.domNode,ref,_4b9);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_4bb){return _4bb;},applyTextDir:function(){},defer:function(fcn,_4bc){var _4bd=setTimeout(lang.hitch(this,function(){_4bd=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_4bc||0);return {remove:function(){if(_4bd){clearTimeout(_4bd);_4bd=null;}return null;}};}});});},"dojo/dnd/Moveable":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../dom","../dom-class","../Evented","../on","../topic","../touch","./common","./Mover","../_base/window"],function(_4be,_4bf,_4c0,lang,dom,_4c1,_4c2,on,_4c3,_4c4,dnd,_4c5,win){var _4c6=_4bf("dojo.dnd.Moveable",[_4c2],{handle:"",delay:0,skip:false,constructor:function(node,_4c7){this.node=dom.byId(node);if(!_4c7){_4c7={};}this.handle=_4c7.handle?dom.byId(_4c7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_4c7.delay>0?_4c7.delay:0;this.skip=_4c7.skip;this.mover=_4c7.mover?_4c7.mover:_4c5;this.events=[on(this.handle,_4c4.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_4c8,node,Ctor){return new Ctor(node,_4c8);},destroy:function(){_4be.forEach(this.events,function(_4c9){_4c9.remove();});this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dnd.isFormElement(e)){return;}if(this.delay){this.events.push(on(this.handle,_4c4.move,lang.hitch(this,"onMouseMove")),on(this.handle,_4c4.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_4c0.stop(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}_4c0.stop(e);},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}_4c0.stop(e);},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){_4c0.stop(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_4ca){_4c3.publish("/dnd/move/start",_4ca);_4c1.add(win.body(),"dojoMove");_4c1.add(this.node,"dojoMoveItem");},onMoveStop:function(_4cb){_4c3.publish("/dnd/move/stop",_4cb);_4c1.remove(win.body(),"dojoMove");_4c1.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_4cc,_4cd){this.onMoving(_4cc,_4cd);var s=_4cc.node.style;s.left=_4cd.l+"px";s.top=_4cd.t+"px";this.onMoved(_4cc,_4cd);},onMoving:function(){},onMoved:function(){}});return _4c6;});},"*now":function(r){r(["dojo/i18n!*preload*dojox/grid/nls/DataGrid*[\"ar\",\"ca\",\"cs\",\"da\",\"de\",\"el\",\"en-gb\",\"en-us\",\"es-es\",\"fi-fi\",\"fr-fr\",\"he-il\",\"hu\",\"it-it\",\"ja-jp\",\"ko-kr\",\"nl-nl\",\"nb\",\"pl\",\"pt-br\",\"pt-pt\",\"ru\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"zh-tw\",\"zh-cn\",\"ROOT\"]"]);}}});define("dojox/grid/DataGrid",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/json","dojo/_base/sniff","dojo/_base/declare","./_Grid","./DataSelection","dojo/_base/html"],function(_4ce,_4cf,lang,json,has,_4d0,_4d1,_4d2,html){var _4d3=_4d0("dojox.grid.DataGrid",_4d1,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,keepSelection:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},destroy:function(){this.selection.destroy();this.inherited(arguments);},createSelection:function(){this.selection=new _4d2(this);},get:function(_4d4,_4d5){if(_4d5&&this.field=="_item"&&!this.fields){return _4d5;}else{if(_4d5&&this.fields){var ret=[];var s=this.grid.store;_4cf.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_4d5,f));});return ret;}else{if(!_4d5&&typeof _4d4==="string"){return this.inherited(arguments);}}}return (!_4d5?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_4d5:this.grid.store.getValue(_4d5,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _4d6=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_4d6=true;}if(!this.updating){this.beginUpdate();_4d6=true;}if(_4d6){var _4d7=this;this._endUpdateDelay=setTimeout(function(){delete _4d7._endUpdateDelay;_4d7.endUpdate();},this.updateDelay);}}},_onSet:function(item,_4d8,_4d9,_4da){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_4db){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_4db+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_4dc,_4dd){this._by_idx[_4dc]=this._createItem(item,_4dc);if(!_4dd){this.updateRow(_4dc);}},_onNew:function(item,_4de){this._checkUpdateStatus();var _4df=this.get("rowCount");this._addingItem=true;this.updateRowCount(_4df+1);this._addingItem=false;this._addItem(item,_4df);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}if(this.selection.isSelected(idx)){this.selection.deselect(idx);this.selection.selected.splice(idx,1);}},_onRevert:function(){this._refresh();},setStore:function(_4e0,_4e1,_4e2){if(this._requestsPending(0)){return;}this._setQuery(_4e1,_4e2);this._setStore(_4e0);this._refresh(true);},setQuery:function(_4e3,_4e4){if(this._requestsPending(0)){return;}this._setQuery(_4e3,_4e4);this._refresh(true);},setItems:function(_4e5){this.items=_4e5;this._setStore(this.store);this._refresh(true);},_setQuery:function(_4e6,_4e7){this.query=_4e6;this.queryOptions=_4e7||this.queryOptions;},_setStore:function(_4e8){if(this.store&&this._store_connects){_4cf.forEach(this._store_connects,this.disconnect,this);}this.store=_4e8;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_4e9,req){if(!this.scroller){return;}if(_4e9&&_4e9.length>0){_4cf.forEach(_4e9,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_4e9.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}if(has("ie")){html.setSelectable(this.domNode,this.selectable);}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_4ea,_4eb){_4ea=_4ea||0;if(this.store&&!this._pending_requests[_4ea]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_4ea]=true;try{if(this.items){var _4ec=this.items;var _4ed=this.store;this.rowsPerPage=_4ec.length;var req={start:_4ea,count:this.rowsPerPage,isRender:_4eb};this._onFetchBegin(_4ec.length,req);var _4ee=0;_4cf.forEach(_4ec,function(i){if(!_4ed.isItemLoaded(i)){_4ee++;}});if(_4ee===0){this._onFetchComplete(_4ec,req);}else{var _4ef=function(item){_4ee--;if(_4ee===0){this._onFetchComplete(_4ec,req);}};_4cf.forEach(_4ec,function(i){if(!_4ed.isItemLoaded(i)){_4ed.loadItem({item:i,onItem:_4ef,scope:this});}},this);}}else{this.store.fetch({start:_4ea,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_4eb,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_4ea,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_4f0){if(!_4f0&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i=this._eop)&&!this._addingItem){var _4f7=this._rowToPage(_4f6);this._needPage(_4f7);this._bop=_4f7*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_4f8){if(!this._pages[_4f8]){this._pages[_4f8]=true;this._requestPage(_4f8);}},_requestPage:function(_4f9){var row=this._pageToRow(_4f9);var _4fa=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_4fa>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_4fb){return _4fb.field;},_refresh:function(_4fc){this._clearData();this._fetch(0,_4fc);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_4fd){if(this.store&&this.store.getState){var _4fe=this.store.getState(_4fd.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_4fe[s]){c=" dojoxGridRow-"+s;break;}}_4fd.customClasses+=c;}},onStyleRow:function(_4ff){this.styleRowState(_4ff);this.inherited(arguments);},canEdit:function(_500,_501){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _502={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_503,_504){if(!this._cache[_504]){this._cache[_504]=this._copyAttr(_504,_503.field);}this.onStartEdit(_503,_504);},doApplyCellEdit:function(_505,_506,_507){this.store.fetchItemByIdentity({identity:this._by_idx[_506].idty,onItem:lang.hitch(this,function(item){var _508=this.store.getValue(item,_507);if(typeof _508=="number"){_505=isNaN(_505)?_505:parseFloat(_505);}else{if(typeof _508=="boolean"){_505=_505=="true"?true:_505=="false"?false:_505;}else{if(_508 instanceof Date){var _509=new Date(_505);_505=isNaN(_509.getTime())?_505:_509;}}}this.store.setValue(item,_507,_505);this.onApplyCellEdit(_505,_506,_507);})});},doCancelEdit:function(_50a){var _50b=this._cache[_50a];if(_50b){this.updateRow(_50a);delete this._cache[_50a];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_50c,_50d){var _50e=this._cache[_50c];this.onApplyEdit(_50c);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_50f){if(_50f.length){_4cf.forEach(_50f,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});_4d3.cell_markupFactory=function(_510,node,_511){var _512=lang.trim(html.attr(node,"field")||"");if(_512){_511.field=_512;}_511.field=_511.field||_511.name;var _513=lang.trim(html.attr(node,"fields")||"");if(_513){_511.fields=_513.split(",");}if(_510){_510(node,_511);}};_4d3.markupFactory=function(_514,node,ctor,_515){return _4d1.markupFactory(_514,node,ctor,lang.partial(_4d3.cell_markupFactory,_515));};return _4d3;});