System.register(["./index-legacy-8e2f9955.js","./index-legacy-b5b2d9a0.js"],(function(e,t){"use strict";var n,r;return{setters:[function(e){n=e.Q},function(e){r=e.aO}],execute:function(){e("s",(function(e,t){if(r)if(t){for(var n=[],o=t.offsetParent;null!==o&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;var i=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),l=i+t.offsetHeight,s=e.scrollTop,f=s+e.clientHeight;i<s?e.scrollTop=i:l>f&&(e.scrollTop=l-e.clientHeight)}else e.scrollTop=0}));var t,o=function(e,t){if(!r)return!1;var o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],i=n(e,o);return["scroll","auto","overlay"].some((function(e){return i.includes(e)}))};e("g",(function(e,t){if(r){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(o(n,t))return n;n=n.parentNode}return n}})),e("a",(function(e){var n;if(!r)return 0;if(void 0!==t)return t;var o=document.createElement("div");o.className="".concat(e,"-scrollbar__wrap"),o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);var i=o.offsetWidth;o.style.overflow="scroll";var l=document.createElement("div");l.style.width="100%",o.appendChild(l);var s=l.offsetWidth;return null==(n=o.parentNode)||n.removeChild(o),t=i-s}))}}}));
