//>>built
define("dojo/window","./_base/lang,./sniff,./_base/window,./dom,./dom-geometry,./dom-style,./dom-construct".split(","),function(w,f,p,E,n,z,k){f.add("rtl-adjust-position-for-verticalScrollBar",function(b,f){var d=p.body(f),e=k.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},d,"last"),h=k.create("div",{style:{overflow:"hidden",direction:"ltr"}},e,"last"),g=0!=n.position(h).x;e.removeChild(h);
d.removeChild(e);return g});f.add("position-fixed-support",function(b,f){var d=p.body(f),e=k.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},d,"last"),h=k.create("span",{style:{position:"fixed",left:"0",top:"0"}},e,"last"),g=n.position(h).x!=n.position(e).x;e.removeChild(h);d.removeChild(e);return g});var l={getBox:function(b){var b=b||p.doc,i="BackCompat"==b.compatMode?p.body(b):b.documentElement,d=n.docScroll(b);if(f("touch"))var e=l.get(b),b=e.innerWidth||i.clientWidth,
i=e.innerHeight||i.clientHeight;else b=i.clientWidth,i=i.clientHeight;return{l:d.x,t:d.y,w:b,h:i}},get:function(b){if(f("ie")&&l!==document.parentWindow){b.parentWindow.execScript("document._parentWindow = window;","Javascript");var i=b._parentWindow;b._parentWindow=null;return i}return b.parentWindow||b.defaultView},scrollIntoView:function(b,i){try{var b=E.byId(b),d=b.ownerDocument||p.doc,e=p.body(d),h=d.documentElement||e.parentNode,g=f("ie"),q=f("webkit");if(!(b==e||b==h))if(!f("mozilla")&&!g&&
!q&&!f("opera")&&!f("trident")&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var k="BackCompat"==d.compatMode,l=Math.min(e.clientWidth||h.clientWidth,h.clientWidth||e.clientWidth),x=Math.min(e.clientHeight||h.clientHeight,h.clientHeight||e.clientHeight),d=q||k?e:h,m=i||n.position(b),c=b.parentNode,q=function(a){return 6>=g||7==g&&k?!1:f("position-fixed-support")&&"fixed"==z.get(a,"position").toLowerCase()},w=this,A=function(a,b,c){"BODY"==a.tagName||"HTML"==a.tagName?w.get(a.ownerDocument).scrollBy(b,
c):(b&&(a.scrollLeft+=b),c&&(a.scrollTop+=c))};if(!q(b))for(;c;){c==e&&(c=d);var a=n.position(c),B=q(c),y="rtl"==z.getComputedStyle(c).direction.toLowerCase();if(c==d){a.w=l;a.h=x;if(d==h&&(g||f("trident"))&&y)a.x+=d.offsetWidth-a.w;if(0>a.x||!g||9<=g||f("trident"))a.x=0;if(0>a.y||!g||9<=g||f("trident"))a.y=0}else{var r=n.getPadBorderExtents(c);a.w-=r.w;a.h-=r.h;a.x+=r.l;a.y+=r.t;var o=c.clientWidth,s=a.w-o;if(0<o&&0<s)y&&f("rtl-adjust-position-for-verticalScrollBar")&&(a.x+=s),a.w=o;o=c.clientHeight;
s=a.h-o;if(0<o&&0<s)a.h=o}if(B){if(0>a.y)a.h+=a.y,a.y=0;if(0>a.x)a.w+=a.x,a.x=0;if(a.y+a.h>x)a.h=x-a.y;if(a.x+a.w>l)a.w=l-a.x}var t=m.x-a.x,u=m.y-a.y,C=t+m.w-a.w,D=u+m.h-a.h,j,v;if(0<C*t&&(c.scrollLeft||c==d||c.scrollWidth>c.offsetHeight)){j=Math[0>t?"max":"min"](t,C);if(y&&(8==g&&!k||9<=g||f("trident")))j=-j;v=c.scrollLeft;A(c,j,0);j=c.scrollLeft-v;m.x-=j}if(0<D*u&&(c.scrollTop||c==d||c.scrollHeight>c.offsetHeight))j=Math.ceil(Math[0>u?"max":"min"](u,D)),v=c.scrollTop,A(c,0,j),j=c.scrollTop-v,m.y-=
j;c=c!=d&&!B&&c.parentNode}}}catch(F){b.scrollIntoView(!1)}}};w.setObject("dojo.window",l);return l});