//>>built
define("dojox/analytics/plugins/mouseOver",["dojo/_base/lang","../_base","dojo/_base/config","dojo/_base/window","dojo/on"],function(c,i,f,g,h){return i.plugins.mouseOver=new function(){this.watchMouse=f.watchMouseOver||!0;this.mouseSampleDelay=f.sampleDelay||2500;this.addData=c.hitch(i,"addData","mouseOver");this.targetProps=f.targetProps||"id,className,localName,href,spellcheck,lang,textContent,value".split(",");this.textContentMaxChars=f.textContentMaxChars||50;this.toggleWatchMouse=function(){this._watchingMouse?
(this._watchingMouse.remove(),delete this._watchingMouse):h(g.doc,"mousemove",c.hitch(this,"sampleMouse"))};this.watchMouse&&(h(g.doc,"mouseover",c.hitch(this,"toggleWatchMouse")),h(g.doc,"mouseout",c.hitch(this,"toggleWatchMouse")));this.sampleMouse=function(b){if(!this._rateLimited)this.addData("sample",this.trimMouseEvent(b)),this._rateLimited=!0,setTimeout(c.hitch(this,function(){this._rateLimited&&(this.trimMouseEvent(this._lastMouseEvent),delete this._lastMouseEvent,delete this._rateLimited)}),
this.mouseSampleDelay);return this._lastMouseEvent=b};this.trimMouseEvent=function(b){var c={},a;for(a in b)switch(a){case "target":var e=this.targetProps;c[a]={};for(var d=0;d<e.length;d++)if(("object"==typeof b[a]||"function"==typeof b[a])&&e[d]in b[a])"text"==e[d]||"textContent"==e[d]?b[a].localName&&"HTML"!=b[a].localName&&"BODY"!=b[a].localName&&(c[a][e[d]]=b[a][e[d]].substr(0,this.textContentMaxChars)):c[a][e[d]]=b[a][e[d]];break;case "screenX":case "screenY":case "x":case "y":b[a]&&(c[a]=b[a]+
"")}return c}}});