var __awaiter=this&&this.__awaiter||function(r,n,t,e){function i(r){return r instanceof t?r:new t((function(n){n(r)}))}return new(t||(t=Promise))((function(t,o){function u(r){try{a(e.next(r))}catch(r){o(r)}}function f(r){try{a(e["throw"](r))}catch(r){o(r)}}function a(r){r.done?t(r.value):i(r.value).then(u,f)}a((e=e.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,i,o,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(n){return a([r,n])}}function a(f){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(t=0)),t)try{if(e=1,i&&(o=f[0]&2?i["return"]:f[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;if(i=0,o)f=[f[0]&2,o.value];switch(f[0]){case 0:case 1:o=f;break;case 4:t.label++;return{value:f[1],done:false};case 5:t.label++;i=f[1];f=[0];continue;case 7:f=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]0?"smooth":"auto"}))}));var l=r("c",(function(r,n,t,e){if(a(r)){var i=r;return i.scrollByPoint(n,t,e)}return Promise.resolve(r.scrollBy({top:t,left:n,behavior:e>0?"smooth":"auto"}))}));var w=r("p",(function(r){return t(r,o)}));var y=r("d",(function(r){if(a(r)){var n=r;var t=n.scrollY;n.scrollY=false;return t}else{r.style.setProperty("overflow","hidden");return true}}));var b=r("r",(function(r,n){if(a(r)){r.scrollY=n}else{r.style.removeProperty("overflow")}}))}}}));