!function(){var d=function(e,i){function h(){var i,t;this.q=[],this.add=function(i){this.q.push(i)},this.call=function(){for(i=0,t=this.q.length;i
',i.appendChild(i.resizeSensor),{fixed:1,absolute:1}[function(i,t){return i.currentStyle?i.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(i,null).getPropertyValue(t):i.style[t]}(i,"position")]||(i.style.position="relative");function s(){r.style.width=d.offsetWidth+10+"px",r.style.height=d.offsetHeight+10+"px",d.scrollLeft=d.scrollWidth,d.scrollTop=d.scrollHeight,c.scrollLeft=c.scrollWidth,c.scrollTop=c.scrollHeight,n=i.offsetWidth,a=i.offsetHeight}var n,a,d=i.resizeSensor.childNodes[0],r=d.childNodes[0],c=i.resizeSensor.childNodes[1];c.childNodes[0];s();function l(i,t,e){i.attachEvent?i.attachEvent("on"+t,e):i.addEventListener(t,e)}function p(){i.offsetWidth==n&&i.offsetHeight==a||i.resizedAttached&&i.resizedAttached.call(),s()}l(d,"scroll",p),l(c,"scroll",p)}var o=Object.prototype.toString.call(e),s="[object Array]"===o||"[object NodeList]"===o||"[object HTMLCollection]"===o||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements;if(s)for(var n=0,a=e.length;n.theiaStickySidebar:after {content: ""; display: table; clear: both;}'));i.each(function(){var i={};if(i.sidebar=m(this),i.options=y||{},i.container=m(i.options.containerSelector),0==i.container.length&&(i.container=i.sidebar.parent()),i.sidebar.parents(":not(.theia-exception)").css("-webkit-transform","none"),i.sidebar.css({position:i.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),i.stickySidebar=i.sidebar.find(".theiaStickySidebar"),0==i.stickySidebar.length){var e=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;i.sidebar.find("script").filter(function(i,t){return 0===t.type.length||t.type.match(e)}).remove(),i.stickySidebar=m("
").addClass("theiaStickySidebar").append(i.sidebar.children()),i.sidebar.append(i.stickySidebar)}i.marginBottom=parseInt(i.sidebar.css("margin-bottom")),i.paddingTop=parseInt(i.sidebar.css("padding-top")),i.paddingBottom=parseInt(i.sidebar.css("padding-bottom"));var t,o,s,n=i.stickySidebar.offset().top,a=i.stickySidebar.outerHeight();function g(){i.fixedScrollTop=0,i.sidebar.css({"min-height":"1px"}),i.stickySidebar.css({position:"static",width:"",transform:"none"})}i.stickySidebar.css("padding-top",1),i.stickySidebar.css("padding-bottom",1),n-=i.stickySidebar.offset().top,a=i.stickySidebar.outerHeight()-a-n,0==n?(i.stickySidebar.css("padding-top",0),i.stickySidebarPaddingTop=0):i.stickySidebarPaddingTop=1,0==a?(i.stickySidebar.css("padding-bottom",0),i.stickySidebarPaddingBottom=0):i.stickySidebarPaddingBottom=1,i.previousScrollTop=null,i.fixedScrollTop=0,g(),i.onScroll=function(i){if(i.stickySidebar.is(":visible"))if(m("body").width()i.container.width())return void g();var t=m(document).scrollTop(),e="static";if(t>=i.sidebar.offset().top+(i.paddingTop-i.options.additionalMarginTop)){var o,s=i.paddingTop+y.additionalMarginTop,n=i.paddingBottom+i.marginBottom+y.additionalMarginBottom,a=i.sidebar.offset().top,d=i.sidebar.offset().top+function(i){var t=i.height();return i.children().each(function(){t=Math.max(t,m(this).height())}),t}(i.container),r=0+y.additionalMarginTop;o=i.stickySidebar.outerHeight()+s+n