text: //>>built
  require({cache:{"dojox/main":function(){define(["dojo/_base/kernel"],function(_1){return _1.dojox;});},"dojox/grid/_Grid":function(){define(["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(_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,has,_17,_18,_19){if(!_2.isCopyKey){_2.isCopyKey=_2.dnd.getCopyKeyState;}var _1a=_4("dojox.grid._Grid",[_10,_11,_5],{templateString:_13,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:_7,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");_17.initOnFontResize();this.connect(_17,"onFontResize","textSizeChanged");_f.funnelEvents(this.domNode,this,"doKeyEvent",_f.keyEvents);if(this.selectionMode!="none"){this.domNode.setAttribute("aria-multiselectable",this.selectionMode=="single"?"false":"true");}_18.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){_18.addClass(this.domNode,this.classTag+"Rtl");}if(this.rowHeight>0){_18.addClass(this.viewsNode,this.classTag+"FixedRowHeight");}},postMixInProperties:function(){this.inherited(arguments);var _1b=_2.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_14.substitute(this.loadingMessage,_1b);this.errorMessage=_14.substitute(this.errorMessage,_1b);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){_18.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){_15.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_1c){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&&!_1c){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 _a(this);this.focus=new _b(this);this.edit=new _c(this);},createSelection:function(){this.selection=new _d(this);},createScroller:function(){this.scroller=new _6();this.scroller.grid=this;this.scroller.renderRow=_16.hitch(this,"renderRow");this.scroller.removeRow=_16.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.update();},onResizeColumn:function(_1d){},createViews:function(){this.views=new _9(this);this.views.createView=_16.hitch(this,"createView");},createView:function(_1e,idx){var c=_16.getObject(_1e);var _1f=new c({grid:this,index:idx});this.viewsNode.appendChild(_1f.domNode);this.viewsHeaderNode.appendChild(_1f.headerNode);this.views.addView(_1f);_18.attr(this.domNode,"align",this.isLeftToRight()?"left":"right");return _1f;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||_3._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_20){var s=_20;if(s&&_16.isString(s)){_2.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=_16.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(_21){_2.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_21);},getColumnTogglingItems:function(){var _22,_23=[];_22=_15.map(this.layout.cells,function(_24){if(!_24.menuItems){_24.menuItems=[];}var _25=this;var _26=new _12({label:_24.name,checked:!_24.hidden,_gridCell:_24,onChange:function(_27){if(_25.layout.setColumnVisibility(this._gridCell.index,_27)){var _28=this._gridCell.menuItems;if(_28.length>1){_15.forEach(_28,function(_29){if(_29!==this){_29.setAttribute("checked",_27);}},this);}_27=_15.filter(_25.layout.cells,function(c){if(c.menuItems.length>1){_15.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_27.length==1){_15.forEach(_27[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _2a=_15.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_2a,1);delete this._gridCell;_12.prototype.destroy.apply(this,arguments);}});_24.menuItems.push(_26);if(!_24.hidden){_23.push(_26);}return _26;},this);if(_23.length==1){_23[0].set("disabled",true);}return _22;},_setHeaderMenuAttr:function(_2b){if(this._placeholders&&this._placeholders.length){_15.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=_2b;if(!_2b){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(_2c){_2.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(_2c);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){_15.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_2d){this.setScrollTop(0);},getItem:function(_2e){return null;},showMessage:function(_2f){if(_2f){this.messagesNode.innerHTML=_2f;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(_30,_31){this._pendingChangeSize=_30;this._pendingResultSize=_31;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||_18._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(_32,_33){_32=_32||this._pendingChangeSize;_33=_33||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 _34=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<=_34.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(_33){_32=_33;}if(!this._autoHeight&&_32){_18.marginBox(this.domNode,_32);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=(this._parentContentBoxHeight>0?this._parentContentBoxHeight:_18._getContentBox(pn).h);this.domNode.style.height=Math.max(0,h)+"px";}}var _35=_15.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||_18._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_35&&hh===undefined){hh=this._getHeaderHeight();}}if(_35){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _36=(!this.initialWidth&&this.autoWidth);var w=_36?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_36){this.domNode.style.width=vw+"px";}},adaptHeight:function(_37){var t=_37===undefined?this._getHeaderHeight():_37;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 _38=0,_39=0;var _3a=_15.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_38++;}else{_39++;}return (!has);});if(_38>0&&_39>0){_15.forEach(_3a,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();_18.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var _3b=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=_3b;}},renderRow:function(_3c,_3d){this.views.renderRow(_3c,_3d,this._skipRowRenormalize);},rowRemoved:function(_3e){this.views.rowRemoved(_3e);},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(_3f){_3f=Number(_3f);if(this.updating){this.invalidated[_3f]=true;}else{this.views.updateRow(_3f);this.scroller.rowHeightChanged(_3f);}},updateRows:function(_40,_41){_40=Number(_40);_41=Number(_41);var i;if(this.updating){for(i=0;i<_41;i++){this.invalidated[i+_40]=true;}}else{for(i=0;i<_41;i++){this.views.updateRow(i+_40,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_40);}},updateRowCount:function(_42){if(this.updating){this.invalidated.rowCount=_42;}else{this.rowCount=_42;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_42);}if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}this._resize();}},updateRowStyles:function(_43){this.views.updateRowStyles(_43);},getRowNode:function(_44){if(this.focus.focusView&&!(this.focus.focusView instanceof _e)){return this.focus.focusView.rowNodes[_44];}else{for(var i=0,_45;(_45=this.views.views[i]);i++){if(!(_45 instanceof _e)){return _45.rowNodes[_44];}}}return null;},rowHeightChanged:function(_46){this.views.renormalizeRow(_46);this.scroller.rowHeightChanged(_46);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_47){if(!this.fastScroll){this.setScrollTop(_47);return;}var _48=Math.abs(this.lastScrollTop-_47);this.lastScrollTop=_47;if(_48>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_47;this.views.setScrollTop(_47);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _49=this;this._pendingScroll=window.setTimeout(function(){delete _49._pendingScroll;_49.finishScrollJob();},200);}else{this.setScrollTop(_47);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_4a){this.scroller.scroll(this.views.setScrollTop(_4a));},scrollToRow:function(_4b){this.setScrollTop(this.scroller.findScrollTop(_4b)+1);},styleRowNode:function(_4c,_4d){if(_4d){this.rows.styleRowNode(_4c,_4d);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_4e){return this.layout.cells[_4e];},setCellWidth:function(_4f,_50){this.getCell(_4f).unitWidth=_50;},getCellName:function(_51){return "Cell "+_51.index;},canSort:function(_52){},sort:function(){},getSortAsc:function(_53){_53=_53==undefined?this.sortInfo:_53;return Boolean(_53>0);},getSortIndex:function(_54){_54=_54==undefined?this.sortInfo:_54;return Math.abs(_54)-1;},setSortIndex:function(_55,_56){var si=_55+1;if(_56!=undefined){si*=(_56?1:-1);}else{if(this.getSortIndex()==_55){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_57){if(this.canSort(_57)){this.sortInfo=_57;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(_58,_59){this.onStartEdit(_58,_59);},doApplyCellEdit:function(_5a,_5b,_5c){this.onApplyCellEdit(_5a,_5b,_5c);},doCancelEdit:function(_5d){this.onCancelEdit(_5d);},doApplyEdit:function(_5e){this.onApplyEdit(_5e);},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();}});_1a.markupFactory=function(_5f,_60,_61,_62){var _63=function(n){var w=_18.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_5f.structure&&_60.nodeName.toLowerCase()=="table"){_5f.structure=_19("> colgroup",_60).map(function(cg){var sv=_18.attr(cg,"span");var v={noscroll:(_18.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(_18.hasAttr(cg,"width")){v.width=_63(cg);}return v;});if(!_5f.structure.length){_5f.structure.push({__span:Infinity,cells:[]});}_19("thead > tr",_60).forEach(function(tr,_64){var _65=0;var _66=0;var _67;var _68=null;_19("> th",tr).map(function(th){if(!_68){_67=0;_68=_5f.structure[0];}else{if(_65>=(_67+_68.__span)){_66++;_67+=_68.__span;var _69=_68;_68=_5f.structure[_66];}}var _6a={name:_16.trim(_18.attr(th,"name")||th.innerHTML),colSpan:parseInt(_18.attr(th,"colspan")||1,10),type:_16.trim(_18.attr(th,"cellType")||""),id:_16.trim(_18.attr(th,"id")||"")};_65+=_6a.colSpan;var _6b=_18.attr(th,"rowspan");if(_6b){_6a.rowSpan=_6b;}if(_18.hasAttr(th,"width")){_6a.width=_63(th);}if(_18.hasAttr(th,"relWidth")){_6a.relWidth=window.parseInt(_18.attr(th,"relWidth"),10);}if(_18.hasAttr(th,"hidden")){_6a.hidden=(_18.attr(th,"hidden")=="true"||_18.attr(th,"hidden")===true);}if(_62){_62(th,_6a);}_6a.type=_6a.type?_16.getObject(_6a.type):_3.grid.cells.Cell;if(_6a.type&&_6a.type.markupFactory){_6a.type.markupFactory(th,_6a);}if(!_68.cells[_64]){_68.cells[_64]=[];}_68.cells[_64].push(_6a);});});}return new _61(_5f,_60);};return _1a;});},"dojox/grid/_Events":function(){define(["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(_6c,_6d,_6e,_6f,has){return _6e("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_70){var i=_70;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_70);this.edit.styleRow(_70);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var _71;switch(e.keyCode){case _6c.ESCAPE:this.edit.cancel();break;case _6c.ENTER:if(!this.edit.isEditing()){_71=this.focus.getHeaderIndex();if(_71>=0){this.setSortIndex(_71);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_6f.stop(e);}if(!e.shiftKey){var _72=this.edit.isEditing();this.edit.apply();if(!_72){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _73=this.focus.focusView||this.views.views[0];_73.content.decorateEvent(e);this.onRowClick(e);_6f.stop(e);}break;case _6c.SPACE:if(!this.edit.isEditing()){_71=this.focus.getHeaderIndex();if(_71>=0){this.setSortIndex(_71);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);this.focus._focusifyCellNode(true);this.focus.setFocusCell(this.focus.cell,this.focus.rowIndex);}_6f.stop(e);}break;case _6c.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case _6c.LEFT_ARROW:case _6c.RIGHT_ARROW:if(!this.edit.isEditing()){var _74=e.keyCode;_6f.stop(e);_71=this.focus.getHeaderIndex();if(_71>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_71,(_74==_6c.LEFT_ARROW?-1:1)*5);}else{var _75=(_74==_6c.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_75*=-1;}this.focus.move(0,_75);}}break;case _6c.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_6f.stop(e);this.focus.move(-1,0);}break;case _6c.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_6f.stop(e);this.focus.move(1,0);}break;case _6c.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_6f.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 _6c.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_6f.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){_6d.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_6d.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 _76;if(this._click.length>1&&has("ie")){_76=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_76=this._click[0];}else{_76=e;}}this.focus.setFocusCell(_76.cell,_76.rowIndex);this.edit.setEditCell(_76.cell,_76.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_77,_78){this.edit.cellFocus(_77,_78);},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){_6f.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_6d.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_6d.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){_6f.stop(e);}},onStartEdit:function(_79,_7a){},onApplyCellEdit:function(_7b,_7c,_7d){},onCancelEdit:function(_7e){},onApplyEdit:function(_7f){},onCanSelect:function(_80){return true;},onCanDeselect:function(_81){return true;},onSelected:function(_82){this.updateRowStyles(_82);},onDeselected:function(_83){this.updateRowStyles(_83);},onSelectionChanged:function(){}});});},"dojox/grid/_Scroller":function(){define(["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(_84,_85,_86,_87,_88){var _89=function(_8a){var i=0,n,p=_8a.parentNode;while((n=p.childNodes[i++])){if(n==_8a){return i-1;}}return -1;};var _8b=function(_8c){if(!_8c){return;}dojo.forEach(_84.toArray(),function(w){if(w.domNode&&_88.isDescendant(w.domNode,_8c,true)){w.destroy();}});};var _8d=function(_8e){var _8f=_88.byId(_8e);return (_8f&&_8f.tagName?_8f.tagName.toLowerCase():"");};var _90=function(_91,_92){var _93=[];var i=0,n;while((n=_91.childNodes[i])){i++;if(_8d(n)==_92){_93.push(n);}}return _93;};var _94=function(_95){return _90(_95,"div");};return _85("dojox.grid._Scroller",null,{constructor:function(_96){this.setContentNodes(_96);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_97,_98,_99){switch(arguments.length){case 3:this.rowsPerPage=_99;case 2:this.keepRows=_98;case 1:this.rowCount=_97;default:break;}this.defaultPageHeight=(this.grid.rowHeight>0?this.grid.rowHeight:this.defaultRowHeight)*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=_86.hitch(this,"onscroll");}},_getPageCount:function(_9a,_9b){return _9a?(Math.ceil(_9a/_9b)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_9c){this.keepRows=_9c;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_9d){this.contentNodes=_9d;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_9e){this.invalidateNodes();this.rowCount=_9e;var _9f=this.pageCount;if(_9f===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_9f){for(var i=_9f-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_9f){this.height+=this.defaultPageHeight*(this.pageCount-_9f-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_a0){return Boolean(this.getDefaultPageNode(_a0));},measurePage:function(_a1){if(this.grid.rowHeight){return ((_a1+1)*this.rowsPerPage>this.rowCount?this.rowCount-_a1*this.rowsPerPage:this.rowsPerPage)*this.grid.rowHeight;}var n=this.getDefaultPageNode(_a1);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_a2,_a3){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_a2].style.top=_a3+"px";}},repositionPages:function(_a4){var _a5=this.getDefaultNodes();var _a6=0;for(var i=0;i<this.stack.length;i++){_a6=Math.max(this.stack[i],_a6);}var n=_a5[_a4];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_a4):0);for(var p=_a4+1;p<=_a6;p++){n=_a5[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_a7){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_a7]);}},preparePage:function(_a8,_a9){var p=(_a9?this.popPage():null);for(var i=0;i<this.colCount;i++){var _aa=this.pageNodes[i];var _ab=(p===null?this.createPageNode():this.invalidatePageNode(p,_aa));_ab.pageIndex=_a8;_aa[_a8]=_ab;}},renderPage:function(_ac){var _ad=[];var i,j;for(i=0;i<this.colCount;i++){_ad[i]=this.pageNodes[i][_ac];}for(i=0,j=_ac*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_ad);}},removePage:function(_ae){for(var i=0,j=_ae*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_af){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_af,this.pageNodes[i]);if(n){_88.destroy(n);}}},pacify:function(_b0){},pacifying:false,pacifyTicks:200,setPacifying:function(_b1){if(this.pacifying!=_b1){this.pacifying=_b1;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _b2=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _b2;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){_87.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _b3=(!this._invalidating);if(!_b3){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_b3=true;}}if(_b3){this.needPage(this.page,this.pageTop);}var _b4=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _b5=this.getPageHeight(this.page);this.averageRowHeight=(_b5>0&&_b4>0)?(_b5/_b4):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _b6=this.pageCount-1;var _b7=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_b6]=_b7;return _b7;},updateContentHeight:function(_b8){this.height+=_b8;this.resize();},updatePageHeight:function(_b9,_ba,_bb){if(this.pageExists(_b9)){var oh=this.getPageHeight(_b9);var h=(this.measurePage(_b9));if(h===undefined){h=oh;}this.pageHeights[_b9]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_ba)){if(!_bb){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_b9);}}else{this.repositionPages(_b9);}}return h;}return 0;},rowHeightChanged:function(_bc,_bd){this.updatePageHeight(Math.floor(_bc/this.rowsPerPage),false,_bd);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");_88.attr(p,"role","presentation");p.style.position="absolute";p.style[this.grid.isLeftToRight()?"left":"right"]="0";return p;},getPageHeight:function(_be){var ph=this.pageHeights[_be];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_bf){return this.stack.push(_bf);},popPage:function(){return this.stack.shift();},findPage:function(_c0){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_c0){break;}}this.page=i;this.pageTop=h;},buildPage:function(_c1,_c2,_c3){this.preparePage(_c1,_c2);this.positionPage(_c1,_c3);this.installPage(_c1);this.renderPage(_c1);this.pushPage(_c1);},needPage:function(_c4,_c5){var h=this.getPageHeight(_c4),oh=h;if(!this.pageExists(_c4)){this.buildPage(_c4,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_c5);h=this.updatePageHeight(_c4,true);}else{this.positionPage(_c4,_c5);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_c6){this.grid.scrollTop=_c6;if(this.colCount){this.startPacify();this.findPage(_c6);var h=this.height;var b=this.getScrollBottom(_c6);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_c6);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_c7){return (this.windowHeight>=0?_c7+this.windowHeight:-1);},processNodeEvent:function(e,_c8){var t=e.target;while(t&&(t!=_c8)&&t.parentNode&&(t.parentNode.parentNode!=_c8)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_c8)){return false;}var _c9=t.parentNode;e.topRowIndex=_c9.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_89(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_ca,_cb){},removeRow:function(_cc){},getDefaultPageNode:function(_cd){return this.getDefaultNodes()[_cd];},positionPageNode:function(_ce,_cf){},getPageNodePosition:function(_d0){return _d0.offsetTop;},invalidatePageNode:function(_d1,_d2){var p=_d2[_d1];if(p){delete _d2[_d1];this.removePage(_d1,p);_8b(p);p.innerHTML="";}return p;},getPageRow:function(_d3){return _d3*this.rowsPerPage;},getLastPageRow:function(_d4){return Math.min(this.rowCount,this.getPageRow(_d4+1))-1;},getFirstVisibleRow:function(_d5,_d6,_d7){if(!this.pageExists(_d5)){return 0;}var row=this.getPageRow(_d5);var _d8=this.getDefaultNodes();var _d9=_94(_d8[_d5]);for(var i=0,l=_d9.length;i<l&&_d6<_d7;i++,row++){_d6+=_d9[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_da,_db,_dc){if(!this.pageExists(_da)){return 0;}var _dd=this.getDefaultNodes();var row=this.getLastPageRow(_da);var _de=_94(_dd[_da]);for(var i=_de.length-1;i>=0&&_db>_dc;i--,row--){_db-=_de[i].offsetHeight;}return row+1;},findTopRow:function(_df){var _e0=this.getDefaultNodes();var _e1=_94(_e0[this.page]);for(var i=0,l=_e1.length,t=this.pageTop,h;i<l;i++){h=_e1[i].offsetHeight;t+=h;if(t>=_df){this.offset=h-(t-_df);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_e2){var _e3=Math.floor(_e2/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_e3;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_e3;this.needPage(_e3,this.pageTop);var _e4=this.getDefaultNodes();var _e5=_94(_e4[_e3]);var r=_e2-this.rowsPerPage*_e3;for(i=0,l=_e5.length;i<l&&i<r;i++){t+=_e5[i].offsetHeight;}return t;},dummy:0});});},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(_e6,win,_e7){var _e8={},_e9={};var _ea={length:0,add:function(_eb){if(_e9[_eb.id]){throw new Error("Tried to register widget with id=="+_eb.id+" but that id is already registered");}_e9[_eb.id]=_eb;this.length++;},remove:function(id){if(_e9[id]){delete _e9[id];this.length--;}},byId:function(id){return typeof id=="string"?_e9[id]:id;},byNode:function(_ec){return _e9[_ec.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _e9){ar.push(_e9[id]);}return ar;},getUniqueId:function(_ed){var id;do{id=_ed+"_"+(_ed in _e8?++_e8[_ed]:_e8[_ed]=0);}while(_e9[id]);return _e7._scopeName=="dijit"?id:_e7._scopeName+"_"+id;},findWidgets:function(_ee,_ef){var _f0=[];function _f1(_f2){for(var _f3=_f2.firstChild;_f3;_f3=_f3.nextSibling){if(_f3.nodeType==1){var _f4=_f3.getAttribute("widgetId");if(_f4){var _f5=_e9[_f4];if(_f5){_f0.push(_f5);}}else{if(_f3!==_ef){_f1(_f3);}}}}};_f1(_ee);return _f0;},_destroyAll:function(){_e7._curFocus=null;_e7._prevFocus=null;_e7._activeStack=[];_e6.forEach(_ea.findWidgets(win.body()),function(_f6){if(!_f6._destroyed){if(_f6.destroyRecursive){_f6.destroyRecursive();}else{if(_f6.destroy){_f6.destroy();}}}});},getEnclosingWidget:function(_f7){while(_f7){var id=_f7.nodeType==1&&_f7.getAttribute("widgetId");if(id){return _e9[id];}_f7=_f7.parentNode;}return null;},_hash:_e9};_e7.registry=_ea;return _ea;});},"dijit/main":function(){define(["dojo/_base/kernel"],function(_f8){return _f8.dijit;});},"dojox/grid/util":function(){define(["../main","dojo/_base/lang","dojo/dom","dojo/_base/sniff"],function(_f9,_fa,dom,has){var dgu=_fa.getObject("grid.util",true,_f9);dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,_fb){function _fc(_fd,_fe){if(_fd==null){return null;}var _ff=_fe?"Width":"Height";if(_fd["scroll"+_ff]>_fd["client"+_ff]){return _fd;}else{return _fc(_fd.parentNode,_fe);}};var _100,_101,_102,_103,_104;if(has("webkit")&&(ev=="focus")){_104=ob.domNode?ob.domNode:ob;_100=_fc(_104,false);if(_100){_102=_100.scrollTop;}_101=_fc(_104,true);if(_101){_103=_101.scrollLeft;}}var fn=ob&&ev&&ob[ev];var _105=fn&&(_fb?fn.apply(ob,_fb):ob[ev]());if(has("webkit")&&(ev=="focus")){if(_100){_100.scrollTop=_102;}if(_101){_101.scrollLeft=_103;}}return _105;};dgu.setStyleHeightPx=function(_106,_107){if(_107>=0){var s=_106.style;var v=_107+"px";if(_106&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_108,_109,_10a,_10b){var evts=(_10b?_10b:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_109.connect(_108,"on"+evts[i],_10a);}};dgu.removeNode=function(_10c){_10c=dom.byId(_10c);_10c&&_10c.parentNode&&_10c.parentNode.removeChild(_10c);return _10c;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_10d,_10e,_10f){if(_10d.length<=_10e){_10d[_10e]=_10f;}else{_10d.splice(_10e,0,_10f);}};dgu.arrayRemove=function(_110,_111){_110.splice(_111,1);};dgu.arraySwap=function(_112,inI,inJ){var _113=_112[inI];_112[inI]=_112[inJ];_112[inJ]=_113;};return dgu;});},"dojox/grid/_Layout":function(){define(["dojo/_base/kernel","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-geometry","./cells","./_RowSelector"],function(dojo,_114,_115,_116,lang,_117){return _115("dojox.grid._Layout",null,{constructor:function(_118){this.grid=_118;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_119,_11a,_11b,_11c,_11d){var _11e=this.structure[_119].cells[0];var _11f=this.structure[_11a].cells[0];var cell=null;var _120=0;var _121=0;for(var i=0,c;c=_11e[i];i++){if(c.index==_11b){_120=i;break;}}cell=_11e.splice(_120,1)[0];cell.view=this.grid.views.views[_11a];for(i=0,c=null;c=_11f[i];i++){if(c.index==_11c){_121=i;break;}}if(!_11d){_121+=1;}_11f.splice(_121,0,cell);var _122=this.grid.getCell(this.grid.getSortIndex());if(_122){_122._currentlySorted=this.grid.getSortAsc();}this.cells=[];_11b=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=_11b;this.cells.push(c);if("_currentlySorted" in c){var si=_11b+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_11b++;}}}_116.forEach(this.cells,function(c){var _123=c.markup[2].split(" ");var _124=parseInt(_123[1].substring(5));if(_124!=c.index){_123[1]="idx=\""+c.index+"\"";c.markup[2]=_123.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_125,_126){var cell=this.cells[_125];if(cell.hidden==_126){cell.hidden=!_126;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=_117.getMarginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_127,_128,_129){var self=this;var _12a=function(_12b){var w=0;if(_12b.colSpan>1){w=0;}else{w=_12b.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _12c={grid:this.grid,subrow:_127,layoutIndex:_128,index:this.cells.length};if(_129&&_129 instanceof _114.grid.cells._Base){var _12d=lang.clone(_129);_12c.unitWidth=_12a(_12d._props);_12d=lang.mixin(_12d,this._defaultCellProps,_129._props,_12c);return _12d;}var _12e=_129.type||_129.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_114.grid.cells.Cell;if(lang.isString(_12e)){_12e=lang.getObject(_12e);}_12c.unitWidth=_12a(_129);return new _12e(lang.mixin({},this._defaultCellProps,_129,_12c));},addRowDef:function(_12f,_130){var _131=[];var _132=0,_133=0,_134=true;for(var i=0,def,cell;(def=_130[i]);i++){cell=this.addCellDef(_12f,i,def);_131.push(cell);this.cells.push(cell);if(_134&&cell.relWidth){_132+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_133+=window.parseInt(w,10);}else{if(w=="auto"){_134=false;}}}}}if(_132&&_134){_116.forEach(_131,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_132)*(100-_133))+"%";}});}return _131;},addRowsDef:function(_135){var _136=[];if(lang.isArray(_135)){if(lang.isArrayLike(_135[0])){for(var i=0,row;_135&&(row=_135[i]);i++){_136.push(this.addRowDef(i,row));}}else{_136.push(this.addRowDef(0,_135));}}return _136;},addViewDef:function(_137){this._defaultCellProps=_137.defaultCell||{};if(_137.width&&_137.width=="auto"){delete _137.width;}return lang.mixin({},_137,{cells:this.addRowsDef(_137.rows||_137.cells)});},setStructure:function(_138){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_114._scopeName+".grid._RowSelector"};if(lang.isString(this.grid.rowSelector)){var _139=this.grid.rowSelector;if(_139=="false"){sel=null;}else{if(_139!="true"){sel["width"]=_139;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _13a=function(def){return ("name" in def||"field" in def||"get" in def);};var _13b=function(def){if(lang.isArray(def)){if(lang.isArray(def[0])||_13a(def[0])){return true;}}return false;};var _13c=function(def){return (def!==null&&lang.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_13a(def))));};if(lang.isArrayLike(_138)){var _13d=false;for(var i=0,st;(st=_138[i]);i++){if(_13c(st)){_13d=true;break;}}if(!_13d){s.push(this.addViewDef({cells:_138}));}else{for(i=0;(st=_138[i]);i++){if(_13b(st)){s.push(this.addViewDef({cells:st}));}else{if(_13c(st)){s.push(this.addViewDef(st));}}}}}else{if(_13c(_138)){s.push(this.addViewDef(_138));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojox/grid/cells":function(){define(["../main","./cells/_base"],function(_13e){return _13e.grid.cells;});},"dojox/grid/cells/_base":function(){define(["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/event","dojo/_base/connect","dojo/_base/array","dojo/_base/sniff","dojo/dom","dojo/dom-attr","dojo/dom-construct","dijit/_Widget","../util"],function(dojo,_13f,lang,_140,_141,_142,has,dom,_143,_144,_145,util){var _146=_13f("dojox.grid._DeferredTextWidget",_145,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(lang.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});var _147=function(_148){try{util.fire(_148,"focus");util.fire(_148,"select");}catch(e){}};var _149=function(){setTimeout(lang.hitch.apply(dojo,arguments),0);};var _14a=_13f("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_14b){this._props=_14b||{};lang.mixin(this,_14b);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_14c,_14d){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_14c!=this.defaultValue&&f)?f.apply(s,_14d):_14c;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new _146({deferred:v},_144.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_14e,_14f){var i=this.grid.edit.info;var d=this.get?this.get(_14e,_14f):(this.value||this.defaultValue);if(d&&d.replace&&this.grid.escapeHTMLInData){d=d.replace(/&/g,"&amp;").replace(/</g,"&lt;");}if(this.editable&&(this.alwaysEditing||(i.rowIndex==_14e&&i.cell==this))){return this.formatEditing(i.value?i.value:d,_14e);}else{return this._defaultFormat(d,[d,_14e,this]);}},formatEditing:function(_150,_151){},getNode:function(_152){return this.view.getCellNode(_152,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_153){return (this.getNode(_153)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&lang.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_154,_155){if(this.getNode(_155)){this.grid.edit.applyCellEdit(_154,this,_155);}},cancelEdit:function(_156){this.grid.doCancelEdit(_156);},_onEditBlur:function(_157){if(this.grid.edit.isEditCell(_157,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_158,_159){if(this.commitOnBlur){_141.connect(_158,"onblur",function(e){setTimeout(lang.hitch(this,"_onEditBlur",_159),250);});}},needFormatNode:function(_15a,_15b){this._formatPending=true;_149(this,"_formatNode",_15a,_15b);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_15c,_15d){if(this._formatPending){this._formatPending=false;if(!has("ie")){dom.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_15d),_15c,_15d);}},formatNode:function(_15e,_15f,_160){if(has("ie")){_149(this,"focus",_160,_15e);}else{this.focus(_160,_15e);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_161){return this.getEditNode(_161)[this._valueProp];},setValue:function(_162,_163){var n=this.getEditNode(_162);if(n){n[this._valueProp]=_163;}},focus:function(_164,_165){_147(_165||this.getEditNode(_164));},save:function(_166){this.value=this.value||this.getValue(_166);},restore:function(_167){this.setValue(_167,this.value);},_finish:function(_168){dom.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_169){this.applyEdit(this.getValue(_169),_169);this._finish(_169);},cancel:function(_16a){this.cancelEdit(_16a);this._finish(_16a);}});_14a.markupFactory=function(node,_16b){var _16c=lang.trim(_143.get(node,"formatter")||"");if(_16c){_16b.formatter=lang.getObject(_16c)||_16c;}var get=lang.trim(_143.get(node,"get")||"");if(get){_16b.get=lang.getObject(get);}var _16d=function(attr,cell,_16e){var _16f=lang.trim(_143.get(node,attr)||"");if(_16f){cell[_16e||attr]=!(_16f.toLowerCase()=="false");}};_16d("sortDesc",_16b);_16d("editable",_16b);_16d("alwaysEditing",_16b);_16d("noresize",_16b);_16d("draggable",_16b);var _170=lang.trim(_143.get(node,"loadingText")||_143.get(node,"defaultValue")||"");if(_170){_16b.defaultValue=_170;}var _171=function(attr,cell,_172){var _173=lang.trim(_143.get(node,attr)||"")||undefined;if(_173){cell[_172||attr]=_173;}};_171("styles",_16b);_171("headerStyles",_16b);_171("cellStyles",_16b);_171("classes",_16b);_171("headerClasses",_16b);_171("cellClasses",_16b);};var Cell=_14a.Cell=_13f("dojox.grid.cells.Cell",_14a,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_174,_175){this.needFormatNode(_174,_175);if(_174&&_174.replace){_174=_174.replace(/"/g,"&quot;");}return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_174+"\">";},formatNode:function(_176,_177,_178){this.inherited(arguments);this.registerOnBlur(_176,_178);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_140.stop(e);}}},_finish:function(_179){this.inherited(arguments);var n=this.getEditNode(_179);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_17a){_14a.markupFactory(node,_17a);var _17b=lang.trim(_143.get(node,"keyFilter")||"");if(_17b){_17a.keyFilter=new RegExp(_17b);}};var _17c=_14a.RowIndex=_13f("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_17d){return _17d+1;}});_17c.markupFactory=function(node,_17e){Cell.markupFactory(node,_17e);};var _17f=_14a.Select=_13f("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_180){this.values=this.values||this.options;},formatEditing:function(_181,_182){this.needFormatNode(_181,_182);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_181==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},_defaultFormat:function(_183,_184){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_142.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_185){var n=this.getEditNode(_185);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_17f.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _186=lang.trim(_143.get(node,"options")||"");if(_186){var o=_186.split(",");if(o[0]!=_186){cell.options=o;}}var _187=lang.trim(_143.get(node,"values")||"");if(_187){var v=_187.split(",");if(v[0]!=_187){cell.values=v;}}};var _188=_14a.AlwaysEdit=_13f("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_189,_18a){this.formatNode(this.getEditNode(_18a),_189,_18a);},applyStaticValue:function(_18b){var e=this.grid.edit;e.applyCellEdit(this.getValue(_18b),this,_18b);e.start(this,_18b,true);}});_188.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_14a.Bool=_13f("dojox.grid.cells.Bool",_188,{_valueProp:"checked",formatEditing:function(_18c,_18d){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_18c?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_188.markupFactory(node,cell);};return _14a;});},"dijit/_Widget":function(){define(["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_18e,_18f,_190,_191,has,_192,lang,_193,_194,_195,_196,_197,_198){function _199(){};function _19a(_19b){return function(obj,_19c,_19d,_19e){if(obj&&typeof _19c=="string"&&obj[_19c]==_199){return obj.on(_19c.substring(2).toLowerCase(),lang.hitch(_19d,_19e));}return _19b.apply(_190,arguments);};};_18e.around(_190,"connect",_19a);if(_192.connect){_18e.around(_192,"connect",_19a);}var _19f=_191("dijit._Widget",[_196,_197,_198],{onClick:_199,onDblClick:_199,onKeyDown:_199,onKeyPress:_199,onKeyUp:_199,onMouseDown:_199,onMouseMove:_199,onMouseOut:_199,onMouseOver:_199,onMouseLeave:_199,onMouseEnter:_199,onMouseUp:_199,constructor:function(_1a0){this._toConnect={};for(var name in _1a0){if(this[name]===_199){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_1a0[name];delete _1a0[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_199){return _190.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_1a1){_192.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_1a1);},attr:function(name,_1a2){var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_192.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_193("[widgetId]",this.containerNode).map(_195.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_194(0,function(){var _1a3=["dijit/_base"];require(_1a3);});}return _19f;});},"dijit/_WidgetBase":function(){define(["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","dojo/has!dojo-bidi?./_BidiMixin","./registry"],function(_1a4,_1a5,_1a6,_1a7,_1a8,_1a9,dom,_1aa,_1ab,_1ac,_1ad,_1ae,has,_1af,lang,on,_1b0,_1b1,_1b2,win,_1b3,_1b4,_1b5){has.add("dijit-legacy-requires",!_1af.isAsync);has.add("dojo-bidi",false);if(has("dijit-legacy-requires")){_1b0(0,function(){var _1b6=["dijit/_base/manager"];_1a4(_1b6);});}var _1b7={};function _1b8(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _1b9(attr){return function(val){_1aa[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _1ba(a,b){return a===b||(a!==a&&b!==b);};var _1bb=_1a9("dijit._WidgetBase",[_1b1,_1b3],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_1b9("lang"),dir:"",_setDirAttr:_1b9("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_1a7.blankGif||_1a4.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var _1bc=ctor.prototype,_1bd=ctor._setterAttrs=[],_1be=(ctor._onMap={});for(var name in _1bc.attributeMap){_1bd.push(name);}for(name in _1bc){if(/^on/.test(name)){_1be[name.substring(2).toLowerCase()]=name;}if(/^_set[A-Z](.*)Attr$/.test(name)){name=name.charAt(4).toLowerCase()+name.substr(5,name.length-9);if(!_1bc.attributeMap||!(name in _1bc.attributeMap)){_1bd.push(name);}}}}},postscript:function(_1bf,_1c0){this.create(_1bf,_1c0);},create:function(_1c1,_1c2){this._introspect();this.srcNodeRef=dom.byId(_1c2);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&this.srcNodeRef.id&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_1c1){this.params=_1c1;lang.mixin(this,_1c1);}this.postMixInProperties();if(!this.id){this.id=_1b5.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=win.body(this.ownerDocument);_1b5.add(this);this.buildRendering();var _1c3;if(this.domNode){this._applyAttributes();var _1c4=this.srcNodeRef;if(_1c4&&_1c4.parentNode&&this.domNode!==_1c4){_1c4.parentNode.replaceChild(this.domNode,_1c4);_1c3=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_1c3){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _1c5={};for(var key in this.params||{}){_1c5[key]=this._get(key);}_1a5.forEach(this.constructor._setterAttrs,function(key){if(!(key in _1c5)){var val=this._get(key);if(val){this.set(key,val);}}},this);for(key in _1c5){this.set(key,_1c5[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _1c6=this.baseClass.split(" ");if(!this.isLeftToRight()){_1c6=_1c6.concat(_1a5.map(_1c6,function(name){return name+"Rtl";}));}_1ab.add(this.domNode,_1c6);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_1a5.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_1c7){this._beingDestroyed=true;this.destroyDescendants(_1c7);this.destroy(_1c7);},destroy:function(_1c8){this._beingDestroyed=true;this.uninitialize();function _1c9(w){if(w.destroyRecursive){w.destroyRecursive(_1c8);}else{if(w.destroy){w.destroy(_1c8);}}};_1a5.forEach(this._connects,lang.hitch(this,"disconnect"));_1a5.forEach(this._supportingWidgets,_1c9);if(this.domNode){_1a5.forEach(_1b5.findWidgets(this.domNode,this.containerNode),_1c9);}this.destroyRendering(_1c8);_1b5.remove(this.id);this._destroyed=true;},destroyRendering:function(_1ca){if(this.bgIframe){this.bgIframe.destroy(_1ca);delete this.bgIframe;}if(this.domNode){if(_1ca){_1aa.remove(this.domNode,"widgetId");}else{_1ac.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1ca){_1ac.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1cb){_1a5.forEach(this.getChildren(),function(_1cc){if(_1cc.destroyRecursive){_1cc.destroyRecursive(_1cb);}});},uninitialize:function(){return false;},_setStyleAttr:function(_1cd){var _1ce=this.domNode;if(lang.isObject(_1cd)){_1ae.set(_1ce,_1cd);}else{if(_1ce.style.cssText){_1ce.style.cssText+="; "+_1cd;}else{_1ce.style.cssText=_1cd;}}this._set("style",_1cd);},_attrToDom:function(attr,_1cf,_1d0){_1d0=arguments.length>=3?_1d0:this.attributeMap[attr];_1a5.forEach(lang.isArray(_1d0)?_1d0:[_1d0],function(_1d1){var _1d2=this[_1d1.node||_1d1||"domNode"];var type=_1d1.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_1cf)){_1cf=lang.hitch(this,_1cf);}var _1d3=_1d1.attribute?_1d1.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_1d2.tagName){_1aa.set(_1d2,_1d3,_1cf);}else{_1d2.set(_1d3,_1cf);}break;case "innerText":_1d2.innerHTML="";_1d2.appendChild(this.ownerDocument.createTextNode(_1cf));break;case "textContent":_1d2.textContent=_1cf;break;case "innerHTML":_1d2.innerHTML=_1cf;break;case "class":_1ab.replace(_1d2,_1cf,this[attr]);break;case "toggleClass":_1ab.toggle(_1d2,_1d1.className||attr,_1cf);break;}},this);},get:function(name){var _1d4=this._getAttrNames(name);return this[_1d4.g]?this[_1d4.g]():this._get(name);},set:function(name,_1d5){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1d6=this._getAttrNames(name),_1d7=this[_1d6.s];if(lang.isFunction(_1d7)){var _1d8=_1d7.apply(this,Array.prototype.slice.call(arguments,1));}else{var _1d9=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_1d9]&&this[_1d9].tagName,_1da=tag&&(_1b7[tag]||(_1b7[tag]=_1b8(this[_1d9]))),map=name in this.attributeMap?this.attributeMap[name]:_1d6.s in this?this[_1d6.s]:((_1da&&_1d6.l in _1da&&typeof _1d5!="function")||/^aria-|^data-|^role$/.test(name))?_1d9:null;if(map!=null){this._attrToDom(name,_1d5,map);}this._set(name,_1d5);}return _1d8||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,_1db){var _1dc=this[name];this[name]=_1db;if(this._created&&!_1ba(_1dc,_1db)){if(this._watchCallbacks){this._watchCallbacks(name,_1dc,_1db);}this.emit("attrmodified-"+name,{detail:{prevValue:_1dc,newValue:_1db}});}},_get:function(name){return this[name];},emit:function(type,_1dd,_1de){_1dd=_1dd||{};if(_1dd.bubbles===undefined){_1dd.bubbles=true;}if(_1dd.cancelable===undefined){_1dd.cancelable=true;}if(!_1dd.detail){_1dd.detail={};}_1dd.detail.widget=this;var ret,_1df=this["on"+type];if(_1df){ret=_1df.apply(this,_1de?_1de:[_1dd]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_1dd);}return ret;},on:function(type,func){var _1e0=this._onMap(type);if(_1e0){return _1a6.after(this,_1e0,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?_1b5.findWidgets(this.containerNode):[];},getParent:function(){return _1b5.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_1e1,_1e2){return this.own(_1a8.connect(obj,_1e1,this,_1e2))[0];},disconnect:function(_1e3){_1e3.remove();},subscribe:function(t,_1e4){return this.own(_1b2.subscribe(t,lang.hitch(this,_1e4)))[0];},unsubscribe:function(_1e5){_1e5.remove();},isLeftToRight:function(){return this.dir?(this.dir.toLowerCase()=="ltr"):_1ad.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_1ae.get(this.domNode,"display")!="none");},placeAt:function(_1e6,_1e7){var _1e8=!_1e6.tagName&&_1b5.byId(_1e6);if(_1e8&&_1e8.addChild&&(!_1e7||typeof _1e7==="number")){_1e8.addChild(this,_1e7);}else{var ref=_1e8&&("domNode" in _1e8)?(_1e8.containerNode&&!/after|before|replace/.test(_1e7||"")?_1e8.containerNode:_1e8.domNode):dom.byId(_1e6,this.ownerDocument);_1ac.place(this.domNode,ref,_1e7);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},defer:function(fcn,_1e9){var _1ea=setTimeout(lang.hitch(this,function(){if(!_1ea){return;}_1ea=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_1e9||0);return {remove:function(){if(_1ea){clearTimeout(_1ea);_1ea=null;}return null;}};}});if(has("dojo-bidi")){_1bb.extend(_1b4);}return _1bb;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_1eb,lang,_1ec,when){return _1eb("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(_1ed){if(_1ed){this.set(_1ed);}},_get:function(name,_1ee){return typeof this[_1ee.g]==="function"?this[_1ee.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1ef){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1f0=this._getAttrNames(name),_1f1=this._get(name,_1f0),_1f2=this[_1f0.s],_1f3;if(typeof _1f2==="function"){_1f3=_1f2.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1ef;}if(this._watchCallbacks){var self=this;when(_1f3,function(){self._watchCallbacks(name,_1f1,_1ef);});}return this;},_changeAttrValue:function(name,_1f4){var _1f5=this.get(name);this[name]=_1f4;if(this._watchCallbacks){this._watchCallbacks(name,_1f5,_1f4);}return this;},watch:function(name,_1f6){var _1f7=this._watchCallbacks;if(!_1f7){var self=this;_1f7=this._watchCallbacks=function(name,_1f8,_1f9,_1fa){var _1fb=function(_1fc){if(_1fc){_1fc=_1fc.slice();for(var i=0,l=_1fc.length;i<l;i++){_1fc[i].call(self,name,_1f8,_1f9);}}};_1fb(_1f7["_"+name]);if(!_1fa){_1fb(_1f7["*"]);}};}if(!_1f6&&typeof name==="function"){_1f6=name;name="*";}else{name="_"+name;}var _1fd=_1f7[name];if(typeof _1fd!=="object"){_1fd=_1f7[name]=[];}_1fd.push(_1f6);var _1fe={};_1fe.unwatch=_1fe.remove=function(){var _1ff=_1ec.indexOf(_1fd,_1f6);if(_1ff>-1){_1fd.splice(_1ff,1);}};return _1fe;}});});},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_200,_201,_202){return _202("dijit.Destroyable",null,{destroy:function(_203){this._destroyed=true;},own:function(){var _204=["destroyRecursive","destroy","remove"];_200.forEach(arguments,function(_205){var _206;var odh=_201.before(this,"destroy",function(_207){_205[_206](_207);});var hdhs=[];function _208(){odh.remove();_200.forEach(hdhs,function(hdh){hdh.remove();});};if(_205.then){_206="cancel";_205.then(_208,_208);}else{_200.forEach(_204,function(_209){if(typeof _205[_209]==="function"){if(!_206){_206=_209;}hdhs.push(_201.after(_205,_209,_208,true));}});}},this);return arguments;}});});},"dijit/_OnDijitClickMixin":function(){define(["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","./a11yclick"],function(on,_20a,keys,_20b,has,_20c){var ret=_20b("dijit._OnDijitClickMixin",null,{connect:function(obj,_20d,_20e){return this.inherited(arguments,[obj,_20d=="ondijitclick"?_20c:_20d,_20e]);}});ret.a11yclick=_20c;return ret;});},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(keys,_20f,on,_210){function _211(e){if((e.keyCode===keys.ENTER||e.keyCode===keys.SPACE)&&!/input|button|textarea/i.test(e.target.nodeName)){for(var node=e.target;node;node=node.parentNode){if(node.dojoClick){return true;}}}};var _212;on(document,"keydown",function(e){if(_211(e)){_212=e.target;e.preventDefault();}else{_212=null;}});on(document,"keyup",function(e){if(_211(e)&&e.target==_212){_212=null;on.emit(e.target,"click",{cancelable:true,bubbles:true,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,altKey:e.altKey,_origType:e.type});}});var _213=function(node,_214){node.dojoClick=true;return on(node,"click",_214);};_213.click=_213;_213.press=function(node,_215){var _216=on(node,_210.press,function(evt){if(evt.type=="mousedown"&&!_20f.isLeft(evt)){return;}_215(evt);}),_217=on(node,"keydown",function(evt){if(evt.keyCode===keys.ENTER||evt.keyCode===keys.SPACE){_215(evt);}});return {remove:function(){_216.remove();_217.remove();}};};_213.release=function(node,_218){var _219=on(node,_210.release,function(evt){if(evt.type=="mouseup"&&!_20f.isLeft(evt)){return;}_218(evt);}),_21a=on(node,"keyup",function(evt){if(evt.keyCode===keys.ENTER||evt.keyCode===keys.SPACE){_218(evt);}});return {remove:function(){_219.remove();_21a.remove();}};};_213.move=_210.move;return _213;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./dom-class","./_base/lang","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_21b,dom,_21c,lang,on,has,_21d,_21e,win){var ios4=has("ios")<5;var _21f=has("pointer-events")||has("MSPointer"),_220=(function(){var _221={};for(var type in {down:1,move:1,up:1,cancel:1,over:1,out:1}){_221[type]=has("MSPointer")?"MSPointer"+type.charAt(0).toUpperCase()+type.slice(1):"pointer"+type;}return _221;})();var _222=has("touch-events");var _223,_224,_225=false,_226,_227,_228,_229,_22a,_22b;var _22c;function _22d(_22e,_22f,_230){if(_21f&&_230){return function(node,_231){return on(node,_230,_231);};}else{if(_222){return function(node,_232){var _233=on(node,_22f,function(evt){_232.call(this,evt);_22c=(new Date()).getTime();}),_234=on(node,_22e,function(evt){if(!_22c||(new Date()).getTime()>_22c+1000){_232.call(this,evt);}});return {remove:function(){_233.remove();_234.remove();}};};}else{return function(node,_235){return on(node,_22e,_235);};}}};function _236(node){do{if(node.dojoClick!==undefined){return node;}}while(node=node.parentNode);};function _237(e,_238,_239){if(_21d.isRight(e)){return;}var _23a=_236(e.target);_224=!e.target.disabled&&_23a&&_23a.dojoClick;if(_224){_225=(_224=="useTarget");_226=(_225?_23a:e.target);if(_225){e.preventDefault();}_227=e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX;_228=e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY;_229=(typeof _224=="object"?_224.x:(typeof _224=="number"?_224:0))||4;_22a=(typeof _224=="object"?_224.y:(typeof _224=="number"?_224:0))||4;if(!_223){_223=true;function _23b(e){if(_225){_224=dom.isDescendant(win.doc.elementFromPoint((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX),(e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)),_226);}else{_224=_224&&(e.changedTouches?e.changedTouches[0].target:e.target)==_226&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX)-_227)<=_229&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)-_228)<=_22a;}};win.doc.addEventListener(_238,function(e){if(_21d.isRight(e)){return;}_23b(e);if(_225){e.preventDefault();}},true);win.doc.addEventListener(_239,function(e){if(_21d.isRight(e)){return;}_23b(e);if(_224){_22b=(new Date()).getTime();var _23c=(_225?_226:e.target);if(_23c.tagName==="LABEL"){_23c=dom.byId(_23c.getAttribute("for"))||_23c;}var src=(e.changedTouches)?e.changedTouches[0]:e;function _23d(type){var evt=document.createEvent("MouseEvents");evt._dojo_click=true;evt.initMouseEvent(type,true,true,e.view,e.detail,src.screenX,src.screenY,src.clientX,src.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);return evt;};var _23e=_23d("mousedown");var _23f=_23d("mouseup");var _240=_23d("click");setTimeout(function(){on.emit(_23c,"mousedown",_23e);on.emit(_23c,"mouseup",_23f);on.emit(_23c,"click",_240);_22b=(new Date()).getTime();},0);}},true);function _241(type){win.doc.addEventListener(type,function(e){var _242=e.target;if(_224&&!e._dojo_click&&(new Date()).getTime()<=_22b+1000&&!(_242.tagName=="INPUT"&&_21c.contains(_242,"dijitOffScreen"))){e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();if(type=="click"&&(_242.tagName!="INPUT"||(_242.type=="radio"&&(_21c.contains(_242,"dijitCheckBoxInput")||_21c.contains(_242,"mblRadioButton")))||(_242.type=="checkbox"&&(_21c.contains(_242,"dijitCheckBoxInput")||_21c.contains(_242,"mblCheckBox"))))&&_242.tagName!="TEXTAREA"&&_242.tagName!="AUDIO"&&_242.tagName!="VIDEO"){e.preventDefault();}}},true);};_241("click");_241("mousedown");_241("mouseup");}}};var _243;if(has("touch")){if(_21f){_21e(function(){win.doc.addEventListener(_220.down,function(evt){_237(evt,_220.move,_220.up);},true);});}else{_21e(function(){_243=win.body();win.doc.addEventListener("touchstart",function(evt){_22c=(new Date()).getTime();var _244=_243;_243=evt.target;on.emit(_244,"dojotouchout",{relatedTarget:_243,bubbles:true});on.emit(_243,"dojotouchover",{relatedTarget:_244,bubbles:true});_237(evt,"touchmove","touchend");},true);function _245(evt){var _246=lang.delegate(evt,{bubbles:true});if(has("ios")>=6){_246.touches=evt.touches;_246.altKey=evt.altKey;_246.changedTouches=evt.changedTouches;_246.ctrlKey=evt.ctrlKey;_246.metaKey=evt.metaKey;_246.shiftKey=evt.shiftKey;_246.targetTouches=evt.targetTouches;}return _246;};on(win.doc,"touchmove",function(evt){_22c=(new Date()).getTime();var _247=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_247){if(_243!==_247){on.emit(_243,"dojotouchout",{relatedTarget:_247,bubbles:true});on.emit(_247,"dojotouchover",{relatedTarget:_243,bubbles:true});_243=_247;}if(!on.emit(_247,"dojotouchmove",_245(evt))){evt.preventDefault();}}});on(win.doc,"touchend",function(evt){_22c=(new Date()).getTime();var node=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset))||win.body();on.emit(node,"dojotouchend",_245(evt));});});}}var _248={press:_22d("mousedown","touchstart",_220.down),move:_22d("mousemove","dojotouchmove",_220.move),release:_22d("mouseup","dojotouchend",_220.up),cancel:_22d(_21d.leave,"touchcancel",_21f?_220.cancel:null),over:_22d("mouseover","dojotouchover",_220.over),out:_22d("mouseout","dojotouchout",_220.out),enter:_21d._eventHandler(_22d("mouseover","dojotouchover",_220.over)),leave:_21d._eventHandler(_22d("mouseout","dojotouchout",_220.out))};1&&(dojo.touch=_248);return _248;});},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_249,_24a,_24b,lang){lang.extend(_24a,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _24b("dijit._FocusMixin",null,{_focusManager:_249});});},"dijit/focus":function(){define(["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/domReady","dojo/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_24c,_24d,dom,_24e,_24f,_250,_251,lang,on,_252,has,_253,win,_254,a11y,_255,_256){var _257;var _258;var _259=_24d([_253,_251],{curNode:null,activeStack:[],constructor:function(){var _25a=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);}});_24c.before(_250,"empty",_25a);_24c.before(_250,"destroy",_25a);},registerIframe:function(_25b){return this.registerWin(_25b.contentWindow,_25b);},registerWin:function(_25c,_25d){var _25e=this,body=_25c.document&&_25c.document.body;if(body){var _25f=has("pointer-events")?"pointerdown":has("MSPointer")?"MSPointerDown":has("touch-events")?"mousedown, touchstart":"mousedown";var mdh=on(_25c.document,_25f,function(evt){if(evt&&evt.target&&evt.target.parentNode==null){return;}_25e._onTouchNode(_25d||evt.target,"mouse");});var fih=on(body,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isFocusable(evt.target)){_25e._onFocusNode(_25d||evt.target);}else{_25e._onTouchNode(_25d||evt.target);}});var foh=on(body,"focusout",function(evt){_25e._onBlurNode(_25d||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;body=null;}};}},_onBlurNode:function(node){var now=(new Date()).getTime();if(now<_257+100){return;}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._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}if(now<_258+100){return;}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){_258=(new Date()).getTime();if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}if(_24f.contains(node,"dijitPopup")){node=node.firstChild;}var _260=[];try{while(node){var _261=_24e.get(node,"dijitPopupParent");if(_261){node=_255.byId(_261).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_254.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_262=id&&_255.byId(id);if(_262&&!(by=="mouse"&&_262.get("disabled"))){_260.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_260,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}_257=(new Date()).getTime();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(_263,by){var _264=this.activeStack,_265=_264.length-1,_266=_263.length-1;if(_263[_266]==_264[_265]){return;}this.set("activeStack",_263);var _267,i;for(i=_265;i>=0&&_264[i]!=_263[i];i--){_267=_255.byId(_264[i]);if(_267){_267._hasBeenBlurred=true;_267.set("focused",false);if(_267._focusManager==this){_267._onBlur(by);}this.emit("widget-blur",_267,by);}}for(i++;i<=_266;i++){_267=_255.byId(_263[i]);if(_267){_267.set("focused",true);if(_267._focusManager==this){_267._onFocus(by);}this.emit("widget-focus",_267,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _268=new _259();_252(function(){var _269=_268.registerWin(_254.get(document));if(has("ie")){on(window,"unload",function(){if(_269){_269.remove();_269=null;}});}});_256.focus=function(node){_268.focus(node);};for(var attr in _268){if(!/^_/.test(attr)){_256.focus[attr]=typeof _268[attr]=="function"?lang.hitch(_268,attr):_268[attr];}}_268.watch(function(attr,_26a,_26b){_256.focus[attr]=_26b;});return _268;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_26c,dom,geom,_26d,_26e){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_26c.body(doc),_26f=_26e.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_26e.create("div",{style:{overflow:"hidden",direction:"ltr"}},_26f,"last"),ret=geom.position(div).x!=0;_26f.removeChild(div);body.removeChild(_26f);return ret;});has.add("position-fixed-support",function(win,doc){var body=_26c.body(doc),_270=_26e.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_271=_26e.create("span",{style:{position:"fixed",left:"0",top:"0"}},_270,"last"),ret=geom.position(_271).x!=geom.position(_270).x;_270.removeChild(_271);body.removeChild(_270);return ret;});var _272={getBox:function(doc){doc=doc||_26c.doc;var _273=(doc.compatMode=="BackCompat")?_26c.body(doc):doc.documentElement,_274=geom.docScroll(doc),w,h;if(has("touch")){var _275=_272.get(doc);w=_275.innerWidth||_273.clientWidth;h=_275.innerHeight||_273.clientHeight;}else{w=_273.clientWidth;h=_273.clientHeight;}return {l:_274.x,t:_274.y,w:w,h:h};},get:function(doc){if(has("ie")&&_272!==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||_26c.doc,body=_26c.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie")||has("trident"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera")||has("trident")||has("edge"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _276=doc.compatMode=="BackCompat",_277=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_278=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_279=(isWK||_276)?body:html,_27a=pos||geom.position(node),el=node.parentNode,_27b=function(el){return (isIE<=6||(isIE==7&&_276))?false:(has("position-fixed-support")&&(_26d.get(el,"position").toLowerCase()=="fixed"));},self=this,_27c=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){self.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_27b(node)){return;}while(el){if(el==body){el=_279;}var _27d=geom.position(el),_27e=_27b(el),rtl=_26d.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_279){_27d.w=_277;_27d.h=_278;if(_279==html&&(isIE||has("trident"))&&rtl){_27d.x+=_279.offsetWidth-_27d.w;}_27d.x=0;_27d.y=0;}else{var pb=geom.getPadBorderExtents(el);_27d.w-=pb.w;_27d.h-=pb.h;_27d.x+=pb.l;_27d.y+=pb.t;var _27f=el.clientWidth,_280=_27d.w-_27f;if(_27f>0&&_280>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_27d.x+=_280;}_27d.w=_27f;}_27f=el.clientHeight;_280=_27d.h-_27f;if(_27f>0&&_280>0){_27d.h=_27f;}}if(_27e){if(_27d.y<0){_27d.h+=_27d.y;_27d.y=0;}if(_27d.x<0){_27d.w+=_27d.x;_27d.x=0;}if(_27d.y+_27d.h>_278){_27d.h=_278-_27d.y;}if(_27d.x+_27d.w>_277){_27d.w=_277-_27d.x;}}var l=_27a.x-_27d.x,t=_27a.y-_27d.y,r=l+_27a.w-_27d.w,bot=t+_27a.h-_27d.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_279||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_276)||has("trident")>=5)){s=-s;}old=el.scrollLeft;_27c(el,s,0);s=el.scrollLeft-old;_27a.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_279||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_27c(el,0,s);s=el.scrollTop-old;_27a.y-=s;}el=(el!=_279)&&!_27e&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_272);return _272;});},"dijit/a11y":function(){define(["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/sniff","./main"],function(_281,dom,_282,_283,lang,has,_284){var _285;var a11y={_isElementShown:function(elem){var s=_283.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_282.get(elem,"type")!="hidden");},hasDefaultTabStop:function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _282.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _286=elem.contentDocument;if("designMode" in _286&&_286.designMode=="on"){return true;}body=_286.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";}},effectiveTabIndex:function(elem){if(_282.get(elem,"disabled")){return _285;}else{if(_282.has(elem,"tabIndex")){return +_282.get(elem,"tabIndex");}else{return a11y.hasDefaultTabStop(elem)?0:_285;}}},isTabNavigable:function(elem){return a11y.effectiveTabIndex(elem)>=0;},isFocusable:function(elem){return a11y.effectiveTabIndex(elem)>=-1;},_getTabNavigable:function(root){var _287,last,_288,_289,_28a,_28b,_28c={};function _28d(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _28e=a11y._isElementShown,_28f=a11y.effectiveTabIndex;var _290=function(_291){for(var _292=_291.firstChild;_292;_292=_292.nextSibling){if(_292.nodeType!=1||(has("ie")<=9&&_292.scopeName!=="HTML")||!_28e(_292)){continue;}var _293=_28f(_292);if(_293>=0){if(_293==0){if(!_287){_287=_292;}last=_292;}else{if(_293>0){if(!_288||_293<_289){_289=_293;_288=_292;}if(!_28a||_293>=_28b){_28b=_293;_28a=_292;}}}var rn=_28d(_292);if(_282.get(_292,"checked")&&rn){_28c[rn]=_292;}}if(_292.nodeName.toUpperCase()!="SELECT"){_290(_292);}}};if(_28e(root)){_290(root);}function rs(node){return _28c[_28d(node)]||node;};return {first:rs(_287),last:rs(last),lowest:rs(_288),highest:rs(_28a)};},getFirstInTabbingOrder:function(root,doc){var _294=a11y._getTabNavigable(dom.byId(root,doc));return _294.lowest?_294.lowest:_294.first;},getLastInTabbingOrder:function(root,doc){var _295=a11y._getTabNavigable(dom.byId(root,doc));return _295.last?_295.last:_295.highest;}};1&&lang.mixin(_284,a11y);return a11y;});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(_296,lang,_297,has,_298){var html=_298.doc.documentElement,ie=has("ie"),_299=has("trident"),_29a=has("opera"),maj=Math.floor,ff=has("ff"),_29b=_296.boxModel.replace(/-/,""),_29c={"dj_quirks":has("quirks"),"dj_opera":_29a,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_edge":has("edge"),"dj_gecko":has("mozilla"),"dj_ios":has("ios"),"dj_android":has("android")};if(ie){_29c["dj_ie"]=true;_29c["dj_ie"+maj(ie)]=true;_29c["dj_iequirks"]=has("quirks");}if(_299){_29c["dj_trident"]=true;_29c["dj_trident"+maj(_299)]=true;}if(ff){_29c["dj_ff"+maj(ff)]=true;}_29c["dj_"+_29b]=true;var _29d="";for(var clz in _29c){if(_29c[clz]){_29d+=clz+" ";}}html.className=lang.trim(html.className+" "+_29d);_297(function(){if(!_296.isBodyLtr()){var _29e="dj_rtl dijitRtl "+_29d.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_29e+"dj_rtl dijitRtl "+_29d.replace(/ /g,"-rtl "));}});return has;});},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(_29f,has,_2a0,win){_2a0(function(){if(has("highcontrast")){_29f.add(win.body(),"dijit_a11y");}});return has;});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-style","./has","./domReady","./_base/window"],function(_2a1,_2a2,_2a3,_2a4,has,_2a5,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");try{div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url(\""+(_2a2.blankGif||_2a1.toUrl("./resources/blank.gif"))+"\");";win.body().appendChild(div);var cs=_2a4.getComputedStyle(div),_2a6=cs.backgroundImage;return cs.borderTopColor==cs.borderRightColor||(_2a6&&(_2a6=="none"||_2a6=="url(invalid-url:)"));}catch(e){console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+e.toString());return false;}finally{if(has("ie")<=8){div.outerHTML="";}else{win.body().removeChild(div);}}});_2a5(function(){if(has("highcontrast")){_2a3.add(win.body(),"dj_a11y");}});return has;});},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(_2a7,_2a8){return _2a7("dojox.grid._RowSelector",_2a8,{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(_2a9,_2aa){var w=this.contentWidth||0;_2aa.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode&&this.contentNode.offsetWidth>0){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_2ab,_2ac){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_2ab)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_2ab)){n.push("dojoxGridRowbarSelected");}_2ac.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"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(dojo,_2ad,_2ae,_2af,_2b0,lang,_2b1,has,_2b2,win,_2b3,_2b4,_2b5,_2b6,_2b7,util,html,_2b8,_2b9,_2ba){var _2bb=function(_2bc,_2bd){return _2bc.style.cssText==undefined?_2bc.getAttribute("style"):_2bc.style.cssText;};var _2be=_2af("dojox.grid._View",[_2b5,_2b6],{defaultWidth:"18em",viewWidth:"",templateString:_2b3,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_2b8._HeaderBuilder,_contentBuilderClass:_2b8._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!this.grid.isLeftToRight()){this.headerNodeContainer.style.width="";}},destroy:function(){html.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);html.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(_2bf){var vs=(this.structure=_2bf);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(_2c0){if(_2c0){_2b0.forEach(_2b2("[widgetId]",_2c0).map(_2ad.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(_2c1,_2c2){this._onBeforeRow(_2c1,_2c2);if(_2c1>=0){this._cleanupRowWidgets(this.getRowNode(_2c1));}},onAfterRow:function(_2c3,_2c4,_2c5){this._onAfterRow(_2c3,_2c4,_2c5);var g=this.grid;_2b0.forEach(_2b2(".dojoxGridStubNode",_2c5),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _2c6=window.parseInt(html.attr(n,"cellIdx"),10);var _2c7=g.getCell(_2c6);var w=_2ad.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _2c8=this.hasVScrollbar();var _2c9=html.style(this.scrollboxNode,"overflow");if(this.noscroll||!_2c9||_2c9=="hidden"){_2c8=false;}else{if(_2c9=="scroll"){_2c8=true;}}return (_2c8?_2b7.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||html.style(h.firstChild,"width")):0;},setColumnsWidth:function(_2ca){this.headerContentNode.firstChild.style.width=_2ca+"px";if(this.viewWidth){this.viewWidth=_2ca+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,html._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 _2cb=this.grid.layout.cells;var _2cc=lang.hitch(this,function(node,_2cd){!this.grid.isLeftToRight()&&(_2cd=!_2cd);var inc=_2cd?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_2cb[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_2cb[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _2ce="dojoxGrid_bottomMarker";var _2cf="dojoxGrid_topMarker";if(this.bottomMarker){html.destroy(this.bottomMarker);}this.bottomMarker=html.byId(_2ce);if(this.topMarker){html.destroy(this.topMarker);}this.topMarker=html.byId(_2cf);if(!this.bottomMarker){this.bottomMarker=html.create("div",{"id":_2ce,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=html.create("div",{"id":_2cf,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=html.contentBox(this.bottomMarker);var _2d0=html.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _2b4(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:lang.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)){_2b4.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:lang.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_2b4.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:lang.hitch(this,function(_2d1){var src=this.source;if(src.current==src.targetAnchor&&src.before==_2d1){return;}if(src.targetAnchor&&_2cc(src.targetAnchor,src.before)){src._removeItemClass(_2cc(src.targetAnchor,src.before),src.before?"After":"Before");}_2b4.prototype._markTargetAnchor.call(src,_2d1);var _2d2=_2d1?src.targetAnchor:_2cc(src.targetAnchor,src.before);var _2d3=0;if(!_2d2){_2d2=src.targetAnchor;_2d3=html.contentBox(_2d2).w+this.arrowDim.w/2+2;}var pos=html.position(_2d2,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_2d3);html.style(this.bottomMarker,"visibility","visible");html.style(this.topMarker,"visibility","visible");html.style(this.bottomMarker,{"left":left+"px","top":(_2d0+pos.y)+"px"});html.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_2cc(src.targetAnchor,src.before)){src._addItemClass(_2cc(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:lang.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_2cc(src.targetAnchor,src.before)){src._removeItemClass(_2cc(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_2b4.prototype._unmarkTargetAnchor.call(src);}),destroy:lang.hitch(this,function(){_2b1.disconnect(this._source_conn);_2b1.unsubscribe(this._source_sub);_2b4.prototype.destroy.call(this.source);if(this.bottomMarker){html.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){html.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:lang.hitch(this,function(){_2b4.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_2b1.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_2b1.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){html.style(node,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_2d4,_2d5,copy){if(_2ba.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _2d6=this.grid.views.views;var _2d7=_2d6[_2d4.viewIndex];var _2d8=_2d6[this.index];if(_2d8!=_2d7){_2d7.convertColPctToFixed();_2d8.convertColPctToFixed();}},_onDndDrop:function(_2d9,_2da,copy){if(_2ba.manager().target!==this.source){if(_2ba.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _2db=function(n){return n?html.attr(n,"idx"):null;};var w=html.marginBox(_2da[0]).w;if(_2d9.viewIndex!==this.index){var _2dc=this.grid.views.views;var _2dd=_2dc[_2d9.viewIndex];var _2de=_2dc[this.index];if(_2dd.viewWidth&&_2dd.viewWidth!="auto"){_2dd.setColumnsWidth(_2dd.getColumnsWidth()-w);}if(_2de.viewWidth&&_2de.viewWidth!="auto"){_2de.setColumnsWidth(_2de.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _2df=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_2df.moveColumn(_2d9.viewIndex,idx,_2db(_2da[0]),_2db(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;}util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_2e0){var n=_2e0.name||_2e0.grid.getCellName(_2e0);if(/^\s+$/.test(n)){n="&nbsp;";}var ret=["<div class=\"dojoxGridSortNode"];if(_2e0.index!=_2e0.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_2e0.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_2e0.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_2e1){var _2e2=this._hasHScroll||false;if(this._hasHScroll==undefined||_2e1){if(this.noscroll){this._hasHScroll=false;}else{var _2e3=html.style(this.scrollboxNode,"overflow");if(_2e3=="hidden"){this._hasHScroll=false;}else{if(_2e3=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_2e2!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_2e4){var _2e5=this._hasVScroll||false;if(this._hasVScroll==undefined||_2e4){if(this.noscroll){this._hasVScroll=false;}else{var _2e6=html.style(this.scrollboxNode,"overflow");if(_2e6=="hidden"){this._hasVScroll=false;}else{if(_2e6=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_2e5!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _2e7=false;this.grid.initialWidth="";var _2e8=_2b2("th",this.headerContentNode);var _2e9=_2b0.map(_2e8,function(c,vIdx){var w=c.style.width;html.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_2e7=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return html.contentBox(c).w;});if(_2e7){_2b0.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _2ea=cell.view.getHeaderCellNode(cell.index);if(_2ea&&html.hasAttr(_2ea,"vIdx")){var vIdx=window.parseInt(html.attr(_2ea,"vIdx"));this.setColWidth(idx,_2e9[vIdx]);html.removeAttr(_2ea,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_2eb){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _2ec=function(){var v;for(var i=0;i<self.grid.views.views.length;++i){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_2eb||(this.noscroll&&_2ec())){h-=_2b7.getScrollbar().h;}util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_2ed){var _2ee=this.createRowNode(_2ed);this.buildRow(_2ed,_2ee);return _2ee;},createRowNode:function(_2ef){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof _2ae.grid._RowSelector){html.attr(node,"role","presentation");}else{html.attr(node,"role","row");if(this.grid.selectionMode!="none"){node.setAttribute("aria-selected","false");}}node[util.gridViewTag]=this.id;node[util.rowIndexTag]=_2ef;this.rowNodes[_2ef]=node;return node;},buildRow:function(_2f0,_2f1){this.buildRowContent(_2f0,_2f1);this.styleRow(_2f0,_2f1);},buildRowContent:function(_2f2,_2f3){_2f3.innerHTML=this.content.generateHtml(_2f2,_2f2);if(this.flexCells&&this.contentWidth){_2f3.firstChild.style.width=this.contentWidth;}util.fire(this,"onAfterRow",[_2f2,this.structure.cells,_2f3]);},rowRemoved:function(_2f4){if(_2f4>=0){this._cleanupRowWidgets(this.getRowNode(_2f4));}this.grid.edit.save(this,_2f4);delete this.rowNodes[_2f4];},getRowNode:function(_2f5){return this.rowNodes[_2f5];},getCellNode:function(_2f6,_2f7){var row=this.getRowNode(_2f6);if(row){return this.content.getCellNode(row,_2f7);}},getHeaderCellNode:function(_2f8){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_2f8);}},styleRow:function(_2f9,_2fa){_2fa._style=_2bb(_2fa);this.styleRowNode(_2f9,_2fa);},styleRowNode:function(_2fb,_2fc){if(_2fc){this.doStyleRowNode(_2fb,_2fc);}},doStyleRowNode:function(_2fd,_2fe){this.grid.styleRowNode(_2fd,_2fe);},updateRow:function(_2ff){var _300=this.getRowNode(_2ff);if(_300){_300.style.height="";this.buildRow(_2ff,_300);}return _300;},updateRowStyles:function(_301){this.styleRowNode(_301,this.getRowNode(_301));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_302){if(has("ff")>=13||has("chrome")){this._nativeScroll=true;}var _303=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_303&&this.firstScroll==1)||(_303&&this.firstScroll===0)){var s=html.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=_303?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(_304){this.lastTop=_304;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_304;}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(_305,_306){this.grid.setCellWidth(_305,_306+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});var _307=_2af("dojox.grid._GridAvatar",_2b9,{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 _308=this.manager.source,node;if(_308.creator){node=_308._normalizedCreator(_308.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _309,_30a;if(node.tagName.toLowerCase()=="tr"){_309=dd.createElement("table");_30a=dd.createElement("tbody");_30a.appendChild(node);_309.appendChild(_30a);node=_309;}else{if(node.tagName.toLowerCase()=="th"){_309=dd.createElement("table");_30a=dd.createElement("tbody");var r=dd.createElement("tr");_309.cellPadding=_309.cellSpacing="0";r.appendChild(node);_30a.appendChild(r);_309.appendChild(_30a);node=_309;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);html.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_2ba.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_2ba.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _30b=_2ba.manager().makeAvatar;_2ba.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!html.hasClass(win.body(),"dijit_a11y")){return new _307(this);}return _30b.call(_2ba.manager());};return _2be;});},"dojo/dnd/Source":function(){define(["../_base/array","../_base/declare","../_base/kernel","../_base/lang","../dom-class","../dom-geometry","../mouse","../ready","../topic","./common","./Selector","./Manager"],function(_30c,_30d,_30e,lang,_30f,_310,_311,_312,_313,dnd,_314,_315){if(!_30e.isAsync){_312(0,function(){var _316=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_316);});}var _317=_30d("dojo.dnd.Source",_314,{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,_318){lang.mixin(this,lang.mixin({},_318));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){_30f.add(this.node,"dojoDndSource");}this.targetState="";if(this.accept){_30f.add(this.node,"dojoDndTarget");}if(this.horizontal){_30f.add(this.node,"dojoDndHorizontal");}this.topics=[_313.subscribe("/dnd/source/over",lang.hitch(this,"onDndSourceOver")),_313.subscribe("/dnd/start",lang.hitch(this,"onDndStart")),_313.subscribe("/dnd/drop",lang.hitch(this,"onDndDrop")),_313.subscribe("/dnd/cancel",lang.hitch(this,"onDndCancel"))];},checkAcceptance:function(_319,_31a){if(this==_319){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_31a.length;++i){var type=_319.getItem(_31a[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_31b,self){if(_31b){return true;}if(arguments.length<2){self=this==_315.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){_317.superclass.destroy.call(this);_30c.forEach(this.topics,function(t){t.remove();});this.targetAnchor=null;},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}_317.superclass.onMouseMove.call(this,e);var m=_315.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _31c=this.getSelectedNodes();if(_31c.length){m.startDrag(this,_31c,this.copyState(dnd.getCopyKeyState(e),true));}}}if(this.isDragging){var _31d=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=_310.position(this.current,true);}if(this.horizontal){_31d=(e.pageX-this.targetBox.x<this.targetBox.w/2)==_310.isBodyLtr(this.current.ownerDocument);}else{_31d=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_31d!=this.before){this._markTargetAnchor(_31d);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;_317.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;_317.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_31e){if(this!==_31e){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=_315.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_31f,_320,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_31f?(copy?"Copied":"Moved"):"");}var _321=this.accept&&this.checkAcceptance(_31f,_320);this._changeState("Target",_321?"":"Disabled");if(this==_31f){_315.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_322,_323,copy,_324){if(this==_324){this.onDrop(_322,_323,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_325,_326,copy){if(this!=_325){this.onDropExternal(_325,_326,copy);}else{this.onDropInternal(_326,copy);}},onDropExternal:function(_327,_328,copy){var _329=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _329.call(this,_327.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node){var t=_327.getItem(node.id);var n=node.cloneNode(true);n.id=dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node){var t=_327.getItem(node.id);_327.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_327.selectNone();}this.insertNodes(true,_328,this.before,this.current);if(!copy&&this.creator){_327.deleteSelectedNodes();}this._normalizedCreator=_329;},onDropInternal:function(_32a,copy){var _32b=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _32b.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_32a,this.before,this.current);this._normalizedCreator=_32b;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){_317.superclass.onOverEvent.call(this);_315.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){_317.superclass.onOutEvent.call(this);_315.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_32c){if(this.current==this.targetAnchor&&this.before==_32c){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_32c;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(e.type!="touchstart"&&!_311.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(_30f.contains(node,"dojoDndHandle")){return true;}if(_30f.contains(node,"dojoDndItem")||_30f.contains(node,"dojoDndIgnore")){break;}}return false;}});return _317;});},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(has,_32d,lang,dom){var _32e=lang.getObject("dojo.dnd",true);_32e.getCopyKeyState=function(evt){return evt[has("mac")?"metaKey":"ctrlKey"];};_32e._uniqueId=0;_32e.getUniqueId=function(){var id;do{id=_32d._scopeName+"Unique"+(++_32e._uniqueId);}while(dom.byId(id));return id;};_32e._empty={};_32e.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " a button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};return _32e;});},"dojo/dnd/Selector":function(){define(["../_base/array","../_base/declare","../_base/kernel","../_base/lang","../dom","../dom-construct","../mouse","../_base/NodeList","../on","../touch","./common","./Container"],function(_32f,_330,_331,lang,dom,_332,_333,_334,on,_335,dnd,_336){var _337=_330("dojo.dnd.Selector",_336,{constructor:function(node,_338){if(!_338){_338={};}this.singular=_338.singular;this.autoSync=_338.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(on(this.node,_335.press,lang.hitch(this,"onMouseDown")),on(this.node,_335.release,lang.hitch(this,"onMouseUp")));},singular:false,getSelectedNodes:function(){var t=new _334();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(data,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);_332.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_331.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(){_337.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);}}_32f.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_339,data,_33a,_33b){var _33c=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_33c.call(this,item,hint);if(_339){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;};_337.superclass.insertNodes.call(this,data,_33a,_33b);this._normalizedCreator=_33c;return this;},destroy:function(){_337.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(_333.isLeft(e)){e.stopPropagation();e.preventDefault();}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,node;for(;i<c.length;++i){node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dnd.getCopyKeyState(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dnd.getCopyKeyState(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}e.stopPropagation();e.preventDefault();},onMouseUp:function(){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=on(this.node,_335.move,lang.hitch(this,"onMouseMove"));},onOutEvent:function(){if(this.onmousemoveEvent){this.onmousemoveEvent.remove();delete this.onmousemoveEvent;}},_removeSelection:function(){var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dom.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});return _337;});},"dojo/dnd/Container":function(){define(["../_base/array","../_base/declare","../_base/kernel","../_base/lang","../_base/window","../dom","../dom-class","../dom-construct","../Evented","../has","../on","../query","../touch","./common"],function(_33d,_33e,_33f,lang,win,dom,_340,_341,_342,has,on,_343,_344,dnd){var _345=_33e("dojo.dnd.Container",_342,{skipForm:false,allowNested:false,constructor:function(node,_346){this.node=dom.byId(node);if(!_346){_346={};}this.creator=_346.creator||null;this.skipForm=_346.skipForm;this.parent=_346.dropParent&&dom.byId(_346.dropParent);this.map={};this.current=null;this.containerState="";_340.add(this.node,"dojoDndContainer");if(!(_346&&_346._skipStartup)){this.startup();}this.events=[on(this.node,_344.over,lang.hitch(this,"onMouseOver")),on(this.node,_344.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||_33f.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 _343((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,_347,_348){if(!this.parent.firstChild){_348=null;}else{if(_347){if(!_348){_348=this.parent.firstChild;}}else{if(_348){_348=_348.nextSibling;}}}var i,t;if(_348){for(i=0;i<data.length;++i){t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});_348.parentNode.insertBefore(t.node,_348);}}else{for(i=0;i<data.length;++i){t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){_33d.forEach(this.events,function(_349){_349.remove();});this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_34a,node,Ctor){_34a._skipStartup=true;return new Ctor(node,_34a);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.withHandles&&(!this.skipForm||!dnd.isFormElement(e))){e.stopPropagation();e.preventDefault();}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_34b){var _34c="dojoDnd"+type;var _34d=type.toLowerCase()+"State";_340.replace(this.node,_34c+_34b,_34c+this[_34d]);this[_34d]=_34b;},_addItemClass:function(node,type){_340.add(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){_340.remove(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _34e=node.parentNode;_34e;node=_34e,_34e=node.parentNode){if((_34e==this.parent||this.allowNested)&&_340.contains(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!lang.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dnd.getUniqueId();}_340.add(t.node,"dojoDndItem");return t;}});dnd._createNode=function(tag){if(!tag){return dnd._createSpan;}return function(text){return _341.create(tag,{innerHTML:text});};};dnd._createTrTd=function(text){var tr=_341.create("tr");_341.create("td",{innerHTML:text},tr);return tr;};dnd._createSpan=function(text){return _341.create("span",{innerHTML:text});};dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dnd._createTrTd:dnd._createNode(dnd._defaultCreatorNodes[tag]);return function(item,hint){var _34f=item&&lang.isObject(item),data,type,n;if(_34f&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_34f&&item.data)?item.data:item;type=(_34f&&item.type)?item.type:["text"];n=(hint=="avatar"?dnd._createSpan:c)(String(data));}if(!n.id){n.id=dnd.getUniqueId();}return {node:n,data:data,type:type};};};return _345;});},"dojo/dnd/Manager":function(){define(["../_base/array","../_base/declare","../_base/lang","../_base/window","../dom-class","../Evented","../has","../keys","../on","../topic","../touch","./common","./autoscroll","./Avatar"],function(_350,_351,lang,win,_352,_353,has,keys,on,_354,_355,dnd,_356,_357){var _358=_351("dojo.dnd.Manager",[_353],{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")?4:16,OFFSET_Y:has("touch")?4:16,overSource:function(_359){if(this.avatar){this.target=(_359&&_359.targetState!="Disabled")?_359:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_354.publish("/dnd/source/over",_359);},outSource:function(_35a){if(this.avatar){if(this.target==_35a){this.target=null;this.canDropFlag=false;this.avatar.update();_354.publish("/dnd/source/over",null);}}else{_354.publish("/dnd/source/over",null);}},startDrag:function(_35b,_35c,copy){_356.autoScrollStart(win.doc);this.source=_35b;this.nodes=_35c;this.copy=Boolean(copy);this.avatar=this.makeAvatar();win.body().appendChild(this.avatar.node);_354.publish("/dnd/start",_35b,_35c,this.copy);function _35d(e){e.preventDefault();e.stopPropagation();};this.events=[on(win.doc,_355.move,lang.hitch(this,"onMouseMove")),on(win.doc,_355.release,lang.hitch(this,"onMouseUp")),on(win.doc,"keydown",lang.hitch(this,"onKeyDown")),on(win.doc,"keyup",lang.hitch(this,"onKeyUp")),on(win.doc,"dragstart",_35d),on(win.body(),"selectstart",_35d)];var c="dojoDnd"+(copy?"Copy":"Move");_352.add(win.body(),c);},canDrop:function(flag){var _35e=Boolean(this.target&&flag);if(this.canDropFlag!=_35e){this.canDropFlag=_35e;this.avatar.update();}},stopDrag:function(){_352.remove(win.body(),["dojoDndCopy","dojoDndMove"]);_350.forEach(this.events,function(_35f){_35f.remove();});this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _357(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_356.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}if(has("touch")){e.preventDefault();}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));_354.publish("/dnd/drop/before",this.source,this.nodes,copy,this.target,e);_354.publish("/dnd/drop",this.source,this.nodes,copy,this.target,e);}else{_354.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case keys.ESCAPE:_354.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();_352.replace(win.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dnd._manager=null;_358.manager=dnd.manager=function(){if(!dnd._manager){dnd._manager=new _358();}return dnd._manager;};return _358;});},"dojo/dnd/autoscroll":function(){define(["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(lang,has,win,_360,_361,_362){var _363={};lang.setObject("dojo.dnd.autoscroll",_363);_363.getViewport=_362.getBox;_363.V_TRIGGER_AUTOSCROLL=32;_363.H_TRIGGER_AUTOSCROLL=32;_363.V_AUTOSCROLL_VALUE=16;_363.H_AUTOSCROLL_VALUE=16;var _364,doc=win.doc,_365=Infinity,_366=Infinity;_363.autoScrollStart=function(d){doc=d;_364=_362.getBox(doc);var html=win.body(doc).parentNode;_365=Math.max(html.scrollHeight-_364.h,0);_366=Math.max(html.scrollWidth-_364.w,0);};_363.autoScroll=function(e){var v=_364||_362.getBox(doc),html=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_363.H_TRIGGER_AUTOSCROLL){dx=-_363.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_363.H_TRIGGER_AUTOSCROLL){dx=Math.min(_363.H_AUTOSCROLL_VALUE,_366-html.scrollLeft);}}if(e.clientY<_363.V_TRIGGER_AUTOSCROLL){dy=-_363.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_363.V_TRIGGER_AUTOSCROLL){dy=Math.min(_363.V_AUTOSCROLL_VALUE,_365-html.scrollTop);}}window.scrollBy(dx,dy);};_363._validNodes={"div":1,"p":1,"td":1};_363._validOverflow={"auto":1,"scroll":1};_363.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_367,_368;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _363._validNodes)){var s=_361.getComputedStyle(n),_369=(s.overflowX.toLowerCase() in _363._validOverflow),_36a=(s.overflowY.toLowerCase() in _363._validOverflow);if(_369||_36a){b=_360.getContentBox(n,s);t=_360.position(n,true);}if(_369){w=Math.min(_363.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&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}_367=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_36a){h=Math.min(_363.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&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}_368=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_363.autoScroll(e);};return _363;});},"dojo/dnd/Avatar":function(){define(["../_base/declare","../_base/window","../dom","../dom-attr","../dom-class","../dom-construct","../hccss","../query"],function(_36b,win,dom,_36c,_36d,_36e,has,_36f){return _36b("dojo.dnd.Avatar",null,{constructor:function(_370){this.manager=_370;this.construct();},construct:function(){var a=_36e.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_371=this.manager.source,node,b=_36e.create("tbody",null,a),tr=_36e.create("tr",null,b),td=_36e.create("td",null,tr),k=Math.min(5,this.manager.nodes.length),i=0;if(has("highcontrast")){_36e.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td);}_36e.create("span",{innerHTML:_371.generateText?this._generateText():""},td);_36c.set(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_371.creator){node=_371._normalizedCreator(_371.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _372=_36e.create("table"),_373=_36e.create("tbody",null,_372);_373.appendChild(node);node=_372;}}node.id="";tr=_36e.create("tr",null,b);td=_36e.create("td",null,tr);td.appendChild(node);_36c.set(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){_36e.destroy(this.node);this.node=false;},update:function(){_36d.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag);if(has("highcontrast")){var icon=dom.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}_36f(("tr.dojoDndAvatarHeader td span"+(has("highcontrast")?" span":"")),this.node).forEach(function(node){node.innerHTML=this.manager.source.generateText?this._generateText():"";},this);},_generateText:function(){return this.manager.nodes.length.toString();}});});},"dijit/_TemplatedMixin":function(){define(["dojo/cache","dojo/_base/declare","dojo/dom-construct","dojo/_base/lang","dojo/on","dojo/sniff","dojo/string","./_AttachMixin"],function(_374,_375,_376,lang,on,has,_377,_378){var _379=_375("dijit._TemplatedMixin",_378,{templateString:null,templatePath:null,_skipNodeCache:false,searchContainerNode:true,_stringRepl:function(tmpl){var _37a=this.declaredClass,_37b=this;return _377.substitute(tmpl,this,function(_37c,key){if(key.charAt(0)=="!"){_37c=lang.getObject(key.substr(1),false,_37b);}if(typeof _37c=="undefined"){throw new Error(_37a+" template:"+key);}if(_37c==null){return "";}return key.charAt(0)=="!"?_37c:this._escapeValue(""+_37c);},this);},_escapeValue:function(val){return val.replace(/["'<>&]/g,function(val){return {"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;","'":"&#x27;"}[val];});},buildRendering:function(){if(!this._rendered){if(!this.templateString){this.templateString=_374(this.templatePath,{sanitize:true});}var _37d=_379.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);var node;if(lang.isString(_37d)){node=_376.toDom(this._stringRepl(_37d),this.ownerDocument);if(node.nodeType!=1){throw new Error("Invalid template: "+_37d);}}else{node=_37d.cloneNode(true);}this.domNode=node;}this.inherited(arguments);if(!this._rendered){this._fillContent(this.srcNodeRef);}this._rendered=true;},_fillContent:function(_37e){var dest=this.containerNode;if(_37e&&dest){while(_37e.hasChildNodes()){dest.appendChild(_37e.firstChild);}}}});_379._templateCache={};_379.getCachedTemplate=function(_37f,_380,doc){var _381=_379._templateCache;var key=_37f;var _382=_381[key];if(_382){try{if(!_382.ownerDocument||_382.ownerDocument==(doc||document)){return _382;}}catch(e){}_376.destroy(_382);}_37f=_377.trim(_37f);if(_380||_37f.match(/\$\{([^\}]+)\}/g)){return (_381[key]=_37f);}else{var node=_376.toDom(_37f,doc);if(node.nodeType!=1){throw new Error("Invalid template: "+_37f);}return (_381[key]=node);}};if(has("ie")){on(window,"unload",function(){var _383=_379._templateCache;for(var key in _383){var _384=_383[key];if(typeof _384=="object"){_376.destroy(_384);}delete _383[key];}});}return _379;});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_385,lang){var _386=/[&<>'"\/]/g;var _387={"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;","'":"&#x27;","/":"&#x2F;"};var _388={};lang.setObject("dojo.string",_388);_388.escape=function(str){if(!str){return "";}return str.replace(_386,function(c){return _387[c];});};_388.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("");};_388.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_388.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_388.substitute=function(_389,map,_38a,_38b){_38b=_38b||_385.global;_38a=_38a?lang.hitch(_38b,_38a):function(v){return v;};return _389.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(_38c,key,_38d){if(key==""){return "$";}var _38e=lang.getObject(key,false,map);if(_38d){_38e=lang.getObject(_38d,false,_38b).call(_38b,_38e,key);}var _38f=_38a(_38e,key);if(typeof _38f==="undefined"){throw new Error("string.substitute could not find key \""+key+"\" in template");}return _38f.toString();});};_388.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 _388;});},"dijit/_AttachMixin":function(){define(["require","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/mouse","dojo/on","dojo/touch","./_WidgetBase"],function(_390,_391,_392,_393,lang,_394,on,_395,_396){var _397=lang.delegate(_395,{"mouseenter":_394.enter,"mouseleave":_394.leave,"keypress":_392._keypress});var _398;var _399=_393("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[];},buildRendering:function(){this.inherited(arguments);this._attachTemplateNodes(this.domNode);this._beforeFillContent();},_beforeFillContent:function(){},_attachTemplateNodes:function(_39a){var node=_39a;while(true){if(node.nodeType==1&&(this._processTemplateNode(node,function(n,p){return n.getAttribute(p);},this._attach)||this.searchContainerNode)&&node.firstChild){node=node.firstChild;}else{if(node==_39a){return;}while(!node.nextSibling){node=node.parentNode;if(node==_39a){return;}}node=node.nextSibling;}}},_processTemplateNode:function(_39b,_39c,_39d){var ret=true;var _39e=this.attachScope||this,_39f=_39c(_39b,"dojoAttachPoint")||_39c(_39b,"data-dojo-attach-point");if(_39f){var _3a0,_3a1=_39f.split(/\s*,\s*/);while((_3a0=_3a1.shift())){if(lang.isArray(_39e[_3a0])){_39e[_3a0].push(_39b);}else{_39e[_3a0]=_39b;}ret=(_3a0!="containerNode");this._attachPoints.push(_3a0);}}var _3a2=_39c(_39b,"dojoAttachEvent")||_39c(_39b,"data-dojo-attach-event");if(_3a2){var _3a3,_3a4=_3a2.split(/\s*,\s*/);var trim=lang.trim;while((_3a3=_3a4.shift())){if(_3a3){var _3a5=null;if(_3a3.indexOf(":")!=-1){var _3a6=_3a3.split(":");_3a3=trim(_3a6[0]);_3a5=trim(_3a6[1]);}else{_3a3=trim(_3a3);}if(!_3a5){_3a5=_3a3;}this._attachEvents.push(_39d(_39b,_3a3,lang.hitch(_39e,_3a5)));}}}return ret;},_attach:function(node,type,func){type=type.replace(/^on/,"").toLowerCase();if(type=="dijitclick"){type=_398||(_398=_390("./a11yclick"));}else{type=_397[type]||type;}return on(node,type,func);},_detachTemplateNodes:function(){var _3a7=this.attachScope||this;_391.forEach(this._attachPoints,function(_3a8){delete _3a7[_3a8];});this._attachPoints=[];_391.forEach(this._attachEvents,function(_3a9){_3a9.remove();});this._attachEvents=[];},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments);}});lang.extend(_396,{dojoAttachEvent:"",dojoAttachPoint:""});return _399;});},"dojox/html/metrics":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/ready","dojo/_base/unload","dojo/_base/window","dojo/dom-geometry"],function(_3aa,lang,has,_3ab,_3ac,_3ad,_3ae){var dhm=lang.getObject("dojox.html.metrics",true);var _3af=lang.getObject("dojox");dhm.getFontMeasurements=function(){var _3b0={"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};var _3b1;if(has("ie")){_3b1=_3ad.doc.documentElement.style.fontSize||"";if(!_3b1){_3ad.doc.documentElement.style.fontSize="100%";}}var div=_3ad.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";_3ad.body().appendChild(div);for(var p in _3b0){ds.fontSize=p;_3b0[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}if(has("ie")){_3ad.doc.documentElement.style.fontSize=_3b1;}_3ad.body().removeChild(div);div=null;return _3b0;};var _3b2=null;dhm.getCachedFontMeasurements=function(_3b3){if(_3b3||!_3b2){_3b2=dhm.getFontMeasurements();}return _3b2;};var _3b4=null,_3b5={};dhm.getTextBox=function(text,_3b6,_3b7){var m,s;if(!_3b4){m=_3b4=_3ad.doc.createElement("div");m.style.whiteSpace="nowrap";var c=_3ad.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";_3ad.body().appendChild(c);}else{m=_3b4;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_3b6){for(var i in _3b6){if(i in _3b5){continue;}s[i]=_3b6[i];}}if(arguments.length>2&&_3b7){m.className=_3b7;}m.innerHTML=text;var box=_3ae.position(m);box.w=m.parentNode.scrollWidth;return box;};var _3b8={w:16,h:16};dhm.getScrollbar=function(){return {w:_3b8.w,h:_3b8.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_3b9){var f=dhm._fontResizeNode=_3ad.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[_3af._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_3af._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");_3ad.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_3ac.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;}});_3ab(function(){try{var n=_3ad.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_3ad.body().appendChild(n);_3b8.w=n.offsetWidth-n.clientWidth;_3b8.h=n.offsetHeight-n.clientHeight;_3ad.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _3aa.config&&!!_3aa.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"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","dojo/dom-geometry"],function(_3ba,_3bb,lang,win,_3bc,has,_3bd,_3be,_3bf,util,html,_3c0){var dg=_3ba.grid;var _3c1=function(td){return td.cellIndex>=0?td.cellIndex:_3bb.indexOf(td.parentNode.cells,td);};var _3c2=function(tr){return tr.rowIndex>=0?tr.rowIndex:_3bb.indexOf(tr.parentNode.childNodes,tr);};var _3c3=function(_3c4,_3c5){return _3c4&&((_3c4.rows||0)[_3c5]||_3c4.childNodes[_3c5]);};var _3c6=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _3c7=function(_3c8,_3c9){for(var n=_3c8;n&&_3c9(n);n=n.parentNode){}return n;};var _3ca=function(_3cb){var name=_3cb.toUpperCase();return function(node){return node.tagName!=name;};};var _3cc=util.rowIndexTag;var _3cd=util.gridViewTag;var _3ce=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_3cf,_3d0,_3d1,_3d2){var _3d3=[],html;if(_3d2){var _3d4=_3cf.index!=_3cf.grid.getSortIndex()?"":_3cf.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_3cf.id){_3cf.id=this.grid.id+"Hdr"+_3cf.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_3d4," id=\"",_3cf.id,"\""];}else{var _3d5=this.grid.editable&&!_3cf.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_3d5];}if(_3cf.colSpan){html.push(" colspan=\"",_3cf.colSpan,"\"");}if(_3cf.rowSpan){html.push(" rowspan=\"",_3cf.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_3cf.classes){html.push(_3cf.classes," ");}if(_3d1){html.push(_3d1," ");}_3d3.push(html.join(""));_3d3.push("");html=["\" idx=\"",_3cf.index,"\" style=\""];if(_3d0&&_3d0[_3d0.length-1]!=";"){_3d0+=";";}html.push(_3cf.styles,_3d0||"",_3cf.hidden?"display:none;":"");if(_3cf.unitWidth){html.push("width:",_3cf.unitWidth,";");}_3d3.push(html.join(""));_3d3.push("");html=["\""];if(_3cf.attrs){html.push(" ",_3cf.attrs);}html.push(">");_3d3.push(html.join(""));_3d3.push("");_3d3.push(_3d2?"</th>":"</td>");return _3d3;},isCellNode:function(_3d6){return Boolean(_3d6&&_3d6!=win.doc&&html.attr(_3d6,"idx"));},getCellNodeIndex:function(_3d7){return _3d7?Number(html.attr(_3d7,"idx")):-1;},getCellNode:function(_3d8,_3d9){for(var i=0,row;((row=_3c3(_3d8.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_3d9){return cell;}}}return null;},findCellTarget:function(_3da,_3db){var n=_3da;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_3cd in n.offsetParent.parentNode&&n.offsetParent.parentNode[_3cd]!=this.view.id))&&(n!=_3db)){n=n.parentNode;}return n!=_3db?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(_3dc,_3dd){var n=_3dc;while(n&&(n!=this.domNode)&&(!(_3dd in n)||(_3cd in n&&n[_3cd]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_3de){return this.findTarget(_3de,_3cc);},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);},_getTextDirStyle:function(_3df,_3e0,_3e1){return "";}});var _3e2=dg._ContentBuilder=lang.extend(function(view){_3ce.call(this,view);},_3ce.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _3e3=this.grid.get,_3e4=this.view.structure.cells;for(var j=0,row;(row=_3e4[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_3e3;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_3e5,_3e6){var html=this.getTableArray();var v=this.view;var _3e7=v.structure.cells;var item=this.grid.getItem(_3e6);var dir;util.fire(this.view,"onBeforeRow",[_3e6,_3e7]);for(var j=0,row;(row=_3e7[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_3e6,item);m[1]=cc.join(" ");m[3]=cs.join(";");dir=cell.textDir||this.grid.textDir;if(dir){m[3]+=this._getTextDirStyle(dir,cell,_3e6);}html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_3cc];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _3e8=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_3ce.call(this,view);},_3ce.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(_3e9,_3ea){var dir,html=this.getTableArray(),_3eb=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_3eb]);for(var j=0,row;(row=_3eb[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_3ec;(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+"'";}}_3ec=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_3ec[5]=(_3ea!=undefined?_3ea:_3e9(cell));_3ec[3]=cell.customStyles.join(";");dir=cell.textDir||this.grid.textDir;if(dir){_3ec[3]+=this._getTextDirStyle(dir,cell,_3ea);}_3ec[1]=cell.customClasses.join(" ");html.push(_3ec.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x,pos;n=_3c7(e.target,_3ca("th"));if(n){pos=_3c0.position(n);x=e.clientX-pos.x;}else{x=e.layerX;}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.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea: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.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}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,_3ed){var _3ee=html.contentBox(e.sourceView.headerNode);if(_3ed){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _3ef=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:(_3ef.h+_3ee.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _3f0=[],_3f1=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_3f1[i]);i++){_3f0.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _3f2=e.grid.views.views;var _3f3=[];for(var j=view.idx+adj,_3f4;(_3f4=_3f2[j]);j=j+adj){_3f3.push({node:_3f4.headerNode,left:window.parseInt(_3f4.headerNode.style.left)});}var _3f5=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:_3ee.w,table:_3f5,tw:html.contentBox(_3f5).w,spanners:_3f0,followers:_3f3};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(_3f6,_3f7,_3f8){var _3f9=_3f8.l;var data={deltaX:_3f9,w:_3f6.w+(this.grid.isLeftToRight()?_3f9:-_3f9),vw:_3f6.vw+_3f9,tw:_3f6.tw+_3f9};this.dragRecord={inDrag:_3f6,mover:_3f7,leftTop:_3f8};if(data.w>=this.minColWidth){if(!_3f7){this.doResizeNow(_3f6,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_3fa){if(this.dragRecord){var _3fb=this.dragRecord.leftTop;var _3fc=this.grid.isLeftToRight()?_3fb.l:-_3fb.l;_3fc+=Math.max(_3fa.w+_3fc,this.minColWidth)-(_3fa.w+_3fc);if(has("webkit")&&_3fa.spanners.length){_3fc+=html._getPadBorderExtents(_3fa.spanners[0].node).w;}var data={deltaX:_3fc,w:_3fa.w+_3fc,vw:_3fa.vw+_3fc,tw:_3fa.tw+_3fc};this.doResizeNow(_3fa,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_3fa.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_3fa.index);},doResizeNow:function(_3fd,data){_3fd.view.convertColPctToFixed();if(_3fd.view.flexCells&&!_3fd.view.testFlexCells()){var t=_3c6(_3fd.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_3fd.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_3fd.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_3fd.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_3fd.node.style.width=data.w+"px";_3fd.view.setColWidth(_3fd.index,data.w);_3fd.view.headerNode.style.width=data.vw+"px";_3fd.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_3fd.view.headerNode.scrollLeft=_3fd.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_3fe){var _3ff=_3fe.length;if(!_3ff){return;}this.map=[];var row;for(var k=0;(row=_3fe[k]);k++){this.map[k]=[];}for(var j=0;(row=_3fe[j]);j++){for(var i=0,x=0,cell,_400,_401;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_401=cell.rowSpan||1;_400=cell.colSpan||1;for(var y=0;y<_401;y++){for(var s=0;s<_400;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_400;}}},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(_402,_403){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_403&&cell.r==_402){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_404,_405,_406){var row=_404&&_404.rows[_405];return row&&row.cells[_406];},_findOverlappingNodes:function(_407,_408,_409){var _40a=[];var m=this.getMapCoords(_408,_409);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(_407,rw.r,rw.c):null);if(n){_40a.push(n);}}return _40a;},findOverlappingNodes:function(_40b){return this._findOverlappingNodes(_3c6(_40b),_3c2(_40b.parentNode),_3c1(_40b));}});return {_Builder:_3ce,_HeaderBuilder:_3e8,_ContentBuilder:_3e2};});},"dojo/dnd/Moveable":function(){define(["../_base/array","../_base/declare","../_base/lang","../dom","../dom-class","../Evented","../has","../on","../topic","../touch","./common","./Mover","../_base/window"],function(_40c,_40d,lang,dom,_40e,_40f,has,on,_410,_411,dnd,_412,win){var _413;var _414=function(){};function _415(){if("touchAction" in document.body.style){_413="touchAction";}else{if("msTouchAction" in document.body.style){_413="msTouchAction";}}_414=function _414(node,_416){node.style[_413]=_416;};_414(arguments[0],arguments[1]);};if(has("touch-action")){_414=_415;}var _417=_40d("dojo.dnd.Moveable",[_40f],{handle:"",delay:0,skip:false,constructor:function(node,_418){this.node=dom.byId(node);_414(this.node,"none");if(!_418){_418={};}this.handle=_418.handle?dom.byId(_418.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_418.delay>0?_418.delay:0;this.skip=_418.skip;this.mover=_418.mover?_418.mover:_412;this.events=[on(this.handle,_411.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_419,node,Ctor){return new Ctor(node,_419);},destroy:function(){_40c.forEach(this.events,function(_41a){_41a.remove();});_414(this.node,"");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,_411.move,lang.hitch(this,"onMouseMove")),on(this.handle.ownerDocument,_411.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}e.stopPropagation();e.preventDefault();},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);}e.stopPropagation();e.preventDefault();},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}e.stopPropagation();e.preventDefault();},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){e.stopPropagation();e.preventDefault();}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_41b){_410.publish("/dnd/move/start",_41b);_40e.add(win.body(),"dojoMove");_40e.add(this.node,"dojoMoveItem");},onMoveStop:function(_41c){_410.publish("/dnd/move/stop",_41c);_40e.remove(win.body(),"dojoMove");_40e.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_41d,_41e){this.onMoving(_41d,_41e);var s=_41d.node.style;s.left=_41e.l+"px";s.top=_41e.t+"px";this.onMoved(_41d,_41e);},onMoving:function(){},onMoved:function(){}});return _417;});},"dojo/dnd/Mover":function(){define(["../_base/array","../_base/declare","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_41f,_420,lang,has,win,dom,_421,_422,_423,on,_424,dnd,_425){return _420("dojo.dnd.Mover",[_423],{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;function _426(e){e.preventDefault();e.stopPropagation();};this.events=[on(d,_424.move,lang.hitch(this,"onFirstMove")),on(d,_424.move,lang.hitch(this,"onMouseMove")),on(d,_424.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_426),on(d.body,"selectstart",_426)];_425.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_425.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);e.preventDefault();e.stopPropagation();},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}e.preventDefault();e.stopPropagation();},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=_421.getMarginBox(this.node);var b=win.doc.body;var bs=_422.getComputedStyle(b);var bm=_421.getMarginBox(b,bs);var bc=_421.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(){_41f.forEach(this.events,function(_427){_427.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"dojox/grid/_ViewManager":function(){define(["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(_428,has,_429){return _428("dojox.grid._ViewManager",null,{constructor:function(_42a){this.grid=_42a;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_42b){_42b.idx=this.views.length;this.views.push(_42b);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _42c=[];for(var i=0,v;v=this.views[i];i++){_42c.push(v.contentNode);}return _42c;},forEach:function(_42d){for(var i=0,v;v=this.views[i];i++){_42d(v,i);}},onEach:function(_42e,_42f){_42f=_42f||[];for(var i=0,v;v=this.views[i];i++){if(_42e in v){v[_42e].apply(v,_42f);}}},normalizeHeaderNodeHeight:function(){var _430=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_430.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_430);},normalizeRowNodeHeights:function(_431){var h=0;var _432=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_431.length<=1){return;}for(var i=0,n;(n=_431[i]);i++){if(!_429.contains(n,"dojoxGridNonNormalizedCell")){_432[i]=n.firstChild.offsetHeight;h=Math.max(h,_432[i]);}}h=(h>=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_431[i]);i++){if(_432[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(_433){var _434=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_433));i++){n.firstChild.style.height="";_434.push(n);}this.normalizeRowNodeHeights(_434);},getViewWidth:function(_435){return this.views[_435].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_436){_436.headerContentNode.style.height="";});var h=0;this.forEach(function(_437){h=Math.max(_437.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_438){h=Math.max(_438.domNode.offsetHeight,h);});return h;},findClient:function(_439){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 _43a=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!="auto"){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_43a(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_43a(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_43a(v,l);}return l;},renderRow:function(_43b,_43c,_43d){var _43e=[];for(var i=0,v,n,_43f;(v=this.views[i])&&(n=_43c[i]);i++){_43f=v.renderRow(_43b);n.appendChild(_43f);_43e.push(_43f);}if(!_43d){this.normalizeRowNodeHeights(_43e);}},rowRemoved:function(_440){this.onEach("rowRemoved",[_440]);},updateRow:function(_441,_442){for(var i=0,v;v=this.views[i];i++){v.updateRow(_441);}if(!_442){this.renormalizeRow(_441);}},updateRowStyles:function(_443){this.onEach("updateRowStyles",[_443]);},setScrollTop:function(_444){var top=_444;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_444);if(has("ie")&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});});},"dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_445,lang,_446){var _447=function(_448,_449){if(_448.style.cssText==undefined){_448.setAttribute("style",_449);}else{_448.style.cssText=_449;}};return _445("dojox.grid._RowManager",null,{constructor:function(_44a){this.grid=_44a;},linesToEms:2,overRow:-2,prepareStylingRow:function(_44b,_44c){return {index:_44b,node:_44c,odd:Boolean(_44b&1),selected:!!this.grid.selection.isSelected(_44b),over:this.isOver(_44b),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_44d,_44e){var row=this.prepareStylingRow(_44d,_44e);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_44f){var i=_44f;i.node.className=i.customClasses;var h=i.node.style.height;_447(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_450){this.grid.updateRowStyles(_450);},setOverRow:function(_451){var last=this.overRow;this.overRow=_451;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_452){return (this.overRow==_452&&!_446.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dojox/grid/_FocusManager":function(){define(["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(_453,lang,_454,_455,_456,has,_457,util,html){return _454("dojox.grid._FocusManager",null,{constructor:function(_458){this.grid=_458;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(_455.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(_455.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(_455.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(_455.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(_455.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(_455.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(_455.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(_455.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(_455.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){_453.forEach(this._connects,_455.disconnect);_453.forEach(this._headerConnects,_455.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(_459,_45a){return (this.cell==_459)&&(this.rowIndex==_45a);},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 _453.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_45b){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){html.toggleClass(n,this.focusClass,_45b);if(_45b){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(){_453.forEach(this._headerConnects,_455.disconnect);this._headerConnects=[];var _45c=this._findHeaderCells();for(var i=0;i<_45c.length;i++){this._headerConnects.push(_455.connect(_45c[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(_455.connect(_45c[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _45d=_457("th",this.grid.viewsHeaderNode);var _45e=[];for(var i=0;i<_45d.length;i++){var _45f=_45d[i];var _460=html.hasAttr(_45f,"tabIndex");var _461=html.attr(_45f,"tabIndex");if(_460&&_461<0){_45e.push(_45f);}}return _45e;},_setActiveColHeader:function(_462,_463,_464){this.grid.domNode.setAttribute("aria-activedescendant",_462.id);if(_464!=null&&_464>=0&&_464!=_463){html.toggleClass(this._findHeaderCells()[_464],this.focusClass,false);}html.toggleClass(_462,this.focusClass,true);this._colHeadNode=_462;this._colHeadFocusIdx=_463;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_465){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_465?_465:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_466){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_466);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _467=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_467){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(has("ie")<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _468=this.focusView;if(!_468){for(var i=0,_469;(_469=this.grid.views.views[i]);i++){if(_469.headerNode){_468=_469;break;}}}return (_468&&html.getComputedStyle(_468.headerNode).display=="none");},colSizeAdjust:function(e,_46a,_46b){var _46c=this._findHeaderCells();var view=this.focusView;if(!view||!view.header.tableMap.map){for(var i=0,_46d;(_46d=this.grid.views.views[i]);i++){if(_46d.header.tableMap.map){view=_46d;break;}}}var _46e=_46c[_46a];if(!view||(_46a==_46c.length-1&&_46a===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_46e;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _46f={l:_46b};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_46f);view.update();}},styleRow:function(_470){return;},setFocusIndex:function(_471,_472){this.setFocusCell(this.grid.getCell(_472),_471);},setFocusCell:function(_473,_474){if(_473&&!this.isFocusCell(_473,_474)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_473;this.rowIndex=_474;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 _475=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_475.editable||this.grid.canEdit&&!this.grid.canEdit(_475,row))){this.cell=_475;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 _476=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_476.editable){this.cell=_476;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_477,_478){var _479=_478<0?-1:1;if(this.isNavHeader()){var _47a=this._findHeaderCells();var _47b=currentIdx=_453.indexOf(_47a,this._colHeadNode);currentIdx+=_478;while(currentIdx>=0&&currentIdx<_47a.length&&_47a[currentIdx].style.display=="none"){currentIdx+=_479;}if((currentIdx>=0)&&(currentIdx<_47a.length)){this._setActiveColHeader(_47a[currentIdx],currentIdx,_47b);}}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+_477));if(_477){if(_477>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_477<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+_478));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_479;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_477){if((row+_477)>=0&&(row+_477)<=rc){this.move(_477>0?++_477:--_477,_478);}return;}else{if((!n||html.style(n,"display")==="none")&&_478){if((col+_478)>=0&&(col+_478)<=cc){this.move(_477,_478>0?++_478:--_478);}return;}}this.setFocusIndex(row,col);if(_477){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_456.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_456.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 _47c=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_456.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()){_456.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_47d){this.tabbingOut=true;_47d.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_47e){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _47f=true;var _480=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_480){var _481=0;var cell=this.grid.getCell(_481);if(cell.hidden){_481=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_481);}else{if(this.cell&&!_480){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_47f=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _47f;},focusHeader:function(){var _482=this._findHeaderCells();var _483=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=_482[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_482.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_482[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,_483);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 _484=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_484);this._contextMenuBindNode=_484;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_456.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_456.stop(e);},doBlur:function(e){_456.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_456.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;_456.stop(e);},doLastNodeBlur:function(e){_456.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_456.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;}});});},"dojox/grid/_EditManager":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_485,_486,_487,has,util){return _486("dojox.grid._EditManager",null,{constructor:function(_488){this.grid=_488;this.connections=!has("ie")?[]:[_487.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];this.connections.push(_487.connect(this.grid,"onBlur",this,"apply"));this.connections.push(_487.connect(this.grid,"prerender",this,"_onPreRender"));},info:{},destroy:function(){_485.forEach(this.connections,_487.disconnect);},cellFocus:function(_489,_48a){if(this.grid.singleClickEdit||this.isEditRow(_48a)){this.setEditCell(_489,_48a);}else{this.apply();}if(this.isEditing()||(_489&&_489.editable&&_489.alwaysEditing)){this._focusEditor(_489,_48a);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_48b){if(_48b.index==this.info.rowIndex){_48b.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(_48c,_48d){return (this.info.rowIndex===_48c)&&(this.info.cell.index==_48d);},isEditRow:function(_48e){return this.info.rowIndex===_48e;},setEditCell:function(_48f,_490){if(!this.isEditCell(_490,_48f.index)&&this.grid.canEdit&&this.grid.canEdit(_48f,_490)){this.start(_48f,_490,this.isEditRow(_490)||_48f.editable);}},_focusEditor:function(_491,_492){util.fire(_491,"focus",[_492]);},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(_493,_494,_495){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_494)){this.applyRowEdit();this.grid.updateRow(_494);}if(_495){this.info={cell:_493,rowIndex:_494};this.grid.doStartEdit(_493,_494);this.grid.updateRow(_494);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_493,_494);this._doCatchBoomerang();},_editorDo:function(_496){var c=this.info.cell;if(c&&c.editable){c[_496](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_497,_498,_499){if(this.grid.canEdit(_498,_499)){this.grid.doApplyCellEdit(_497,_499,_498.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(_49a,_49b){var c=this.info.cell;if(this.isEditRow(_49a)&&(!_49b||c.view==_49b)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_49c,_49d){var c=this.info.cell;if(this.isEditRow(_49d)&&c.view==_49c&&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);},_onPreRender:function(){if(this.isEditing()){this.info.value=this.info.cell.getValue();}}});});},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_49e,_49f,lang,_4a0){return _49e("dojox.grid.Selection",null,{constructor:function(_4a1){this.grid=_4a1;this.selected=[];this.setMode(_4a1.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_4a2){return this.grid.onCanSelect(_4a2);},onCanDeselect:function(_4a3){return this.grid.onCanDeselect(_4a3);},onSelected:function(_4a4){},onDeselected:function(_4a5){},onChanging:function(){},onChanged:function(){},isSelected:function(_4a6){if(this.mode=="none"){return false;}return this.selected[_4a6];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_4a7){if(this.mode=="none"){return -1;}for(var i=_4a7+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _4a8=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_4a8.push(i);}}return _4a8;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_4a9){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_4a9);this.addToSelection(_4a9);}else{this.toggleSelect(_4a9);}},addToSelection:function(_4aa){if(this.mode=="none"){return;}if(lang.isArray(_4aa)){_49f.forEach(_4aa,this.addToSelection,this);return;}_4aa=Number(_4aa);if(this.selected[_4aa]){this.selectedIndex=_4aa;}else{if(this.onCanSelect(_4aa)!==false){this.selectedIndex=_4aa;var _4ab=this.grid.getRowNode(_4aa);if(_4ab){_4a0.set(_4ab,"aria-selected","true");}this._beginUpdate();this.selected[_4aa]=true;this.onSelected(_4aa);this._endUpdate();}}},deselect:function(_4ac){if(this.mode=="none"){return;}if(lang.isArray(_4ac)){_49f.forEach(_4ac,this.deselect,this);return;}_4ac=Number(_4ac);if(this.selectedIndex==_4ac){this.selectedIndex=-1;}if(this.selected[_4ac]){if(this.onCanDeselect(_4ac)===false){return;}var _4ad=this.grid.getRowNode(_4ac);if(_4ad){_4a0.set(_4ad,"aria-selected","false");}this._beginUpdate();delete this.selected[_4ac];this.onDeselected(_4ac);this._endUpdate();}},setSelected:function(_4ae,_4af){this[(_4af?"addToSelection":"deselect")](_4ae);},toggleSelect:function(_4b0){if(lang.isArray(_4b0)){_49f.forEach(_4b0,this.toggleSelect,this);return;}this.setSelected(_4b0,!this.selected[_4b0]);},_range:function(_4b1,inTo,func){var s=(_4b1>=0?_4b1:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_4b2,inTo){this._range(_4b2,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_4b3,inTo){this._range(_4b3,inTo,lang.hitch(this,"deselect"));},insert:function(_4b4){this.selected.splice(_4b4,0,false);if(this.selectedIndex>=_4b4){this.selectedIndex++;}},remove:function(_4b5){this.selected.splice(_4b5,1);if(this.selectedIndex>=_4b5){this.selectedIndex--;}},deselectAll:function(_4b6){for(var i in this.selected){if((i!=_4b6)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_4b7,_4b8,_4b9){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_4b7);}else{if(!_4b9||this.rangeStartIndex<0){this.rangeStartIndex=_4b7;}if(!_4b8){this.deselectAll(_4b7);}if(_4b9){this.selectRange(this.rangeStartIndex,_4b7);}else{if(_4b8){this.toggleSelect(_4b7);}else{this.addToSelection(_4b7);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dijit/CheckedMenuItem":function(){define(["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_4ba,_4bb,_4bc,_4bd){return _4ba("dijit.CheckedMenuItem",_4bc,{baseClass:"dijitMenuItem dijitCheckedMenuItem",templateString:_4bd,checked:false,_setCheckedAttr:function(_4be){this.domNode.setAttribute("aria-checked",_4be?"true":"false");this._set("checked",_4be);},iconClass:"",role:"menuitemcheckbox",checkedChar:"&#10003;",onChange:function(){},_onClick:function(evt){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.onClick(evt);}});});},"dijit/MenuItem":function(){define(["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/kernel","dojo/sniff","dojo/_base/lang","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_4bf,dom,_4c0,_4c1,_4c2,has,lang,_4c3,_4c4,_4c5,_4c6,_4c7){var _4c8=_4bf("dijit.MenuItem"+(has("dojo-bidi")?"_NoBidi":""),[_4c3,_4c4,_4c5,_4c6],{templateString:_4c7,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(val){this._set("label",val);var _4c9="";var text;var ndx=val.search(/{\S}/);if(ndx>=0){_4c9=val.charAt(ndx+1);var _4ca=val.substr(0,ndx);var _4cb=val.substr(ndx+3);text=_4ca+_4c9+_4cb;val=_4ca+"<span class=\"dijitMenuItemShortcutKey\">"+_4c9+"</span>"+_4cb;}else{text=val;}this.domNode.setAttribute("aria-label",text+" "+this.accelKey);this.containerNode.innerHTML=val;this._set("shortcutKey",_4c9);},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_4cc){if(_4cc&&!("label" in this.params)){this._set("label",_4cc.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _4cd=this.id+"_text";_4c0.set(this.containerNode,"id",_4cd);if(this.accelKeyNode){_4c0.set(this.accelKeyNode,"id",this.id+"_accel");}dom.setSelectable(this.domNode,false);},onClick:function(){},focus:function(){try{if(has("ie")==8){this.containerNode.focus();}this.focusNode.focus();}catch(e){}},_setSelected:function(_4ce){_4c1.toggle(this.domNode,"dijitMenuItemSelected",_4ce);},setLabel:function(_4cf){_4c2.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4cf);},setDisabled:function(_4d0){_4c2.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4d0);},_setDisabledAttr:function(_4d1){this.focusNode.setAttribute("aria-disabled",_4d1?"true":"false");this._set("disabled",_4d1);},_setAccelKeyAttr:function(_4d2){if(this.accelKeyNode){this.accelKeyNode.style.display=_4d2?"":"none";this.accelKeyNode.innerHTML=_4d2;_4c0.set(this.containerNode,"colSpan",_4d2?"1":"2");}this._set("accelKey",_4d2);}});if(has("dojo-bidi")){_4c8=_4bf("dijit.MenuItem",_4c8,{_setLabelAttr:function(val){this.inherited(arguments);if(this.textDir==="auto"){this.applyTextDir(this.textDirNode);}}});}return _4c8;});},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(_4d3,_4d4){return _4d3("dijit._Contained",null,{_getSibling:function(_4d5){var p=this.getParent();return (p&&p._getSiblingOfChild&&p._getSiblingOfChild(this,_4d5=="previous"?-1:1))||null;},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);}});});},"dijit/_CssStateMixin":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/has","dojo/_base/lang","dojo/on","dojo/domReady","dojo/touch","dojo/_base/window","./a11yclick","./registry"],function(_4d6,_4d7,dom,_4d8,has,lang,on,_4d9,_4da,win,_4db,_4dc){var _4dd=_4d7("dijit._CssStateMixin",[],{hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_4d6.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(_4de){if(!this.disabled){switch(_4de.type){case "mouseover":case "MSPointerOver":case "pointerover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseout":case "MSPointerOut":case "pointerout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":this._set("active",true);break;case "mouseup":case "dojotouchend":case "MSPointerUp":case "pointerup":case "keyup":this._set("active",false);break;}}},_setStateClass:function(){var _4df=this.baseClass.split(" ");function _4e0(_4e1){_4df=_4df.concat(_4d6.map(_4df,function(c){return c+_4e1;}),"dijit"+_4e1);};if(!this.isLeftToRight()){_4e0("Rtl");}var _4e2=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_4e0(_4e2);}if(this.state){_4e0(this.state);}if(this.selected){_4e0("Selected");}if(this._opened){_4e0("Opened");}if(this.disabled){_4e0("Disabled");}else{if(this.readOnly){_4e0("ReadOnly");}else{if(this.active){_4e0("Active");}else{if(this.hovering){_4e0("Hover");}}}}if(this.focused){_4e0("Focused");}var tn=this.stateNode||this.domNode,_4e3={};_4d6.forEach(tn.className.split(" "),function(c){_4e3[c]=true;});if("_stateClasses" in this){_4d6.forEach(this._stateClasses,function(c){delete _4e3[c];});}_4d6.forEach(_4df,function(c){_4e3[c]=true;});var _4e4=[];for(var c in _4e3){_4e4.push(c);}tn.className=_4e4.join(" ");this._stateClasses=_4df;},_subnodeCssMouseEvent:function(node,_4e5,evt){if(this.disabled||this.readOnly){return;}function _4e6(_4e7){_4d8.toggle(node,_4e5+"Hover",_4e7);};function _4e8(_4e9){_4d8.toggle(node,_4e5+"Active",_4e9);};function _4ea(_4eb){_4d8.toggle(node,_4e5+"Focused",_4eb);};switch(evt.type){case "mouseover":case "MSPointerOver":case "pointerover":_4e6(true);break;case "mouseout":case "MSPointerOut":case "pointerout":_4e6(false);_4e8(false);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":_4e8(true);break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":_4e8(false);break;case "focus":case "focusin":_4ea(true);break;case "blur":case "focusout":_4ea(false);break;}},_trackMouseState:function(node,_4ec){node._cssState=_4ec;}});_4d9(function(){function _4ed(evt,_4ee,_4ef){if(_4ef&&dom.isDescendant(_4ef,_4ee)){return;}for(var node=_4ee;node&&node!=_4ef;node=node.parentNode){if(node._cssState){var _4f0=_4dc.getEnclosingWidget(node);if(_4f0){if(node==_4f0.domNode){_4f0._cssMouseEvent(evt);}else{_4f0._subnodeCssMouseEvent(node,node._cssState,evt);}}}}};var body=win.body(),_4f1;on(body,_4da.over,function(evt){_4ed(evt,evt.target,evt.relatedTarget);});on(body,_4da.out,function(evt){_4ed(evt,evt.target,evt.relatedTarget);});on(body,_4db.press,function(evt){_4f1=evt.target;_4ed(evt,_4f1);});on(body,_4db.release,function(evt){_4ed(evt,_4f1);_4f1=null;});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _4f2=_4dc.getEnclosingWidget(node);if(_4f2){_4f2._subnodeCssMouseEvent(node,node._cssState,evt);}}});});return _4dd;});},"dojox/grid/DataSelection":function(){define(["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(_4f3,_4f4,_4f5){return _4f3("dojox.grid.DataSelection",_4f5,{constructor:function(grid){if(grid.keepSelection){this.preserver=new _4f4(this);}},destroy:function(){if(this.preserver){this.preserver.destroy();}},getFirstSelected:function(){var idx=_4f5.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_4f6){var _4f7=this.grid.getItemIndex(_4f6);var idx=_4f5.prototype.getNextSelected.call(this,_4f7);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _4f8=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_4f8.push(this.grid.getItem(i));}}return _4f8;},addToSelection:function(_4f9){if(this.mode=="none"){return;}var idx=null;if(typeof _4f9=="number"||typeof _4f9=="string"){idx=_4f9;}else{idx=this.grid.getItemIndex(_4f9);}_4f5.prototype.addToSelection.call(this,idx);},deselect:function(_4fa){if(this.mode=="none"){return;}var idx=null;if(typeof _4fa=="number"||typeof _4fa=="string"){idx=_4fa;}else{idx=this.grid.getItemIndex(_4fa);}_4f5.prototype.deselect.call(this,idx);},deselectAll:function(_4fb){var idx=null;if(_4fb||typeof _4fb=="number"){if(typeof _4fb=="number"||typeof _4fb=="string"){idx=_4fb;}else{idx=this.grid.getItemIndex(_4fb);}_4f5.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});});},"dojox/grid/_SelectionPreserver":function(){define(["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(_4fc,_4fd,lang,_4fe){return _4fc("dojox.grid._SelectionPreserver",null,{constructor:function(_4ff){this.selection=_4ff;var grid=this.grid=_4ff.grid;this.reset();this._connects=[_4fd.connect(grid,"_setStore",this,"reset"),_4fd.connect(grid,"_addItem",this,"_reSelectById"),_4fd.connect(_4ff,"onSelected",lang.hitch(this,"_selectById",true)),_4fd.connect(_4ff,"onDeselected",lang.hitch(this,"_selectById",false)),_4fd.connect(_4ff,"deselectAll",this,"reset")];},destroy:function(){this.reset();_4fe.forEach(this._connects,_4fd.disconnect);delete this._connects;},reset:function(){this._selectedById={};},_reSelectById:function(item,_500){if(item&&this.grid._hasIdentity){this.selection.selected[_500]=this._selectedById[this.grid.store.getIdentity(item)];}},_selectById:function(_501,_502){if(this.selection.mode=="none"||!this.grid._hasIdentity){return;}var item=_502,g=this.grid;if(typeof _502=="number"||typeof _502=="string"){var _503=g._by_idx[_502];item=_503&&_503.item;}if(item){this._selectedById[g.store.getIdentity(item)]=!!_501;}return item;}});});},"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" aria-hidden=\"true\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" aria-hidden=\"true\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n","url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<span role=\"presentation\" class=\"dijitInline dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"></span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,textDirNode\"\n\t\trole=\"presentation\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<span data-dojo-attach-point=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<span class=\"dijitInline dijitIcon dijitMenuExpand\"></span>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</span>\n\t</td>\n</tr>\n","url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset\" data-dojo-attach-point=\"focusNode\" role=\"${role}\" tabIndex=\"-1\" aria-checked=\"${checked}\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<span class=\"dijitInline dijitIcon dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"></span>\n\t\t<span class=\"dijitMenuItemIconChar dijitCheckedMenuItemIconChar\">${!checkedChar}</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode,textDirNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n","url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n","*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","dojo/has","dojo/has!dojo-bidi?./bidi/_BidiMixin"],function(_504,_505,lang,json,has,_506,_507,_508,html){var _509=_506("dojox.grid.DataGrid",_507,{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 _508(this);},get:function(_50a,_50b){if(_50b&&this.field=="_item"&&!this.fields){return _50b;}else{if(_50b&&this.fields){var ret=[];var s=this.grid.store;_505.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_50b,f));});return ret;}else{if(!_50b&&typeof _50a==="string"){return this.inherited(arguments);}}}return (!_50b?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_50b:this.grid.store.getValue(_50b,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _50c=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_50c=true;}if(!this.updating){this.beginUpdate();_50c=true;}if(_50c){var _50d=this;this._endUpdateDelay=setTimeout(function(){delete _50d._endUpdateDelay;_50d.endUpdate();},this.updateDelay);}}},_onSet:function(item,_50e,_50f,_510){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_511){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_511+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_512,_513){this._by_idx[_512]=this._createItem(item,_512);if(!_513){this.updateRow(_512);}},_onNew:function(item,_514){this._checkUpdateStatus();var _515=this.get("rowCount");this._addingItem=true;this.updateRowCount(_515+1);this._addingItem=false;this._addItem(item,_515);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(_516,_517,_518){if(this._requestsPending(0)){return;}this._setQuery(_517,_518);this._setStore(_516);this._refresh(true);},setQuery:function(_519,_51a){if(this._requestsPending(0)){return;}this._setQuery(_519,_51a);this._refresh(true);},setItems:function(_51b){this.items=_51b;this._setStore(this.store);this._refresh(true);},_setQuery:function(_51c,_51d){this.query=_51c;this.queryOptions=_51d||this.queryOptions;},_setStore:function(_51e){if(this.store&&this._store_connects){_505.forEach(this._store_connects,this.disconnect,this);}this.store=_51e;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(_51f,req){if(!this.scroller){return;}if(_51f&&_51f.length>0){_505.forEach(_51f,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_51f.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(_520,_521){_520=_520||0;if(this.store&&!this._pending_requests[_520]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_520]=true;try{if(this.items){var _522=this.items;var _523=this.store;this.rowsPerPage=_522.length;var req={start:_520,count:this.rowsPerPage,isRender:_521};this._onFetchBegin(_522.length,req);var _524=0;_505.forEach(_522,function(i){if(!_523.isItemLoaded(i)){_524++;}});if(_524===0){this._onFetchComplete(_522,req);}else{var _525=function(item){_524--;if(_524===0){this._onFetchComplete(_522,req);}};_505.forEach(_522,function(i){if(!_523.isItemLoaded(i)){_523.loadItem({item:i,onItem:_525,scope:this});}},this);}}else{this.store.fetch({start:_520,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_521,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_520,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,_526){if(!_526&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_527,_528){this.query=_527;if(_528){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_529){return this._pending_requests[_529];},_rowToPage:function(_52a){return (this.rowsPerPage?Math.floor(_52a/this.rowsPerPage):_52a);},_pageToRow:function(_52b){return (this.rowsPerPage?this.rowsPerPage*_52b:_52b);},_preparePage:function(_52c){if((_52c<this._bop||_52c>=this._eop)&&!this._addingItem){var _52d=this._rowToPage(_52c);this._needPage(_52d);this._bop=_52d*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_52e){if(!this._pages[_52e]){this._pages[_52e]=true;this._requestPage(_52e);}},_requestPage:function(_52f){var row=this._pageToRow(_52f);var _530=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_530>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_531){return _531.field;},_refresh:function(_532){this._clearData();this._fetch(0,_532);},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(_533){if(this.store&&this.store.getState){var _534=this.store.getState(_533.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_534[s]){c=" dojoxGridRow-"+s;break;}}_533.customClasses+=c;}},onStyleRow:function(_535){this.styleRowState(_535);this.inherited(arguments);},canEdit:function(_536,_537){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _538={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_539,_53a){if(!this._cache[_53a]){this._cache[_53a]=this._copyAttr(_53a,_539.field);}this.onStartEdit(_539,_53a);},doApplyCellEdit:function(_53b,_53c,_53d){this.store.fetchItemByIdentity({identity:this._by_idx[_53c].idty,onItem:lang.hitch(this,function(item){var _53e=this.store.getValue(item,_53d);if(typeof _53e=="number"){_53b=isNaN(_53b)?_53b:parseFloat(_53b);}else{if(typeof _53e=="boolean"){_53b=_53b=="true"?true:_53b=="false"?false:_53b;}else{if(_53e instanceof Date){var _53f=new Date(_53b);_53b=isNaN(_53f.getTime())?_53b:_53f;}}}this.store.setValue(item,_53d,_53b);this.onApplyCellEdit(_53b,_53c,_53d);})});},doCancelEdit:function(_540){var _541=this._cache[_540];if(_541){this.updateRow(_540);delete this._cache[_540];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_542,_543){var _544=this._cache[_542];this.onApplyEdit(_542);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_545){if(_545.length){_505.forEach(_545,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());}}}});_509.cell_markupFactory=function(_546,node,_547){var _548=lang.trim(html.attr(node,"field")||"");if(_548){_547.field=_548;}_547.field=_547.field||_547.name;var _549=lang.trim(html.attr(node,"fields")||"");if(_549){_547.fields=_549.split(",");}if(_546){_546(node,_547);}};_509.markupFactory=function(_54a,node,ctor,_54b){return _507.markupFactory(_54a,node,ctor,lang.partial(_509.cell_markupFactory,_54b));};return _509;});