!function(s){function e(e){for(var t,n,i=e[0],r=e[1],a=0,o=[];at[1]?Math.round(e[0]-t[0]-n):e[1]+n>t[1]?Math.round(e[1]-t[1]+n):0}function p(e,t){"boolean"==typeof e&&(e={anchorToTopLeft:e});var n=e,i=n.scrollNode,r=n.offset;return i=i||_(t),function(t){for(var e=1;e