(function(){var e=function(e){var t=this,n=function(){var t=function(e,t,n,r,i,s){return t>=r&&t<r+s&&e>=n&&e<n+i};e.fn.within=function(n,r,i){var s=[];return this.each(function(){var o=e(this);if(this==document.documentElement)return s.push(this);var u=i?e.data(this,"offsetCache")||e.data(this,"offsetCache",o.offset()):o.offset(),a=t(n,r,u.left,u.top,this.offsetWidth,this.offsetHeight);a&&s.push(this)}),this.pushStack(e.unique(s),"within",n+","+r)},e.fn.withinBox=function(t,n,r,i,s){var o=[];return this.each(function(){var u=e(this);if(this==document.documentElement)return this.ret.push(this);var a=s?e.data(this,"offset")||e.data(this,"offset",u.offset()):u.offset(),f=u.width(),l=u.height();res=!(a.top>n+i||a.top+l<n||a.left>t+r||a.left+f<t),res&&o.push(this)}),this.pushStack(e.unique(o),"withinBox",e.makeArray(arguments).join(","))}};n(),t.resolveWith(n)};dispatch("mvc/dom.within").containing(e).to("Foundry/2.1 Modules")})();