Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

overlayscrollbars

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overlayscrollbars - npm Package Compare versions

Comparing version 2.3.2 to 2.4.0

4

browser/overlayscrollbars.browser.es5.min.js
/*!
* OverlayScrollbars
* Version: 2.3.2
* Version: 2.4.0
*

@@ -11,2 +11,2 @@ * Copyright (c) Rene Haas | KingSora.

var OverlayScrollbarsGlobal=function(n){"use strict";function r(n,t){if(y(n))for(var e=0;e<n.length&&!1!==t(n[e],e,n);e++);else n&&r(Object.keys(n),(function(r){return t(n[r],r,n)}));return n}function t(n,t){var e=h(t);if(b(t)||e){var i=e?"":{};if(n){var o=window.getComputedStyle(n,null);i=e?zn(n,o,t):t.reduce((function(r,t){return r[t]=zn(n,o,t),r}),i)}return i}n&&r(C(t),(function(r){return Hn(n,r,t[r])}))}var e,i=function(n,r){var t,e=n.o,i=n.u,o=n.p,u=e,c=function(n,r){var e=u,c=n,a=r||(i?!i(e,c):e!==c);return(a||o)&&(u=c,t=e),[u,a,t]};return[r?function(n){return c(r(u,t),n)}:c,function(n){return[u,!!n,t]}]},o=function(){return"undefined"!=typeof window},u=o()&&Node.ELEMENT_NODE,c=Object.prototype,a=c.toString,f=c.hasOwnProperty,l=function(n){return void 0===n},d=function(n){return null===n},s=function(n){return l(n)||d(n)?""+n:a.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},v=function(n){return"number"==typeof n},h=function(n){return"string"==typeof n},p=function(n){return"boolean"==typeof n},w=function(n){return"function"==typeof n},b=function(n){return Array.isArray(n)},g=function(n){return"object"==typeof n&&!b(n)&&!d(n)},y=function(n){var r=!!n&&n.length,t=v(r)&&r>-1&&r%1==0;return!(!(b(n)||!w(n)&&t)||r>0&&g(n)&&!(r-1 in n))},m=function(n){if(!n||!g(n)||"object"!==s(n))return!1;var r,t="constructor",e=n[t],i=e&&e.prototype,o=f.call(n,t),u=i&&f.call(i,"isPrototypeOf");if(e&&!o&&!u)return!1;for(r in n);return l(r)||f.call(n,r)},x=function(n){var r=HTMLElement;return!!n&&(r?n instanceof r:n.nodeType===u)},S=function(n){var r=Element;return!!n&&(r?n instanceof r:n.nodeType===u)},O=function(n,r,t){return n.indexOf(r,t)},L=function(n,r,t){return t||h(r)||!y(r)?n.push(r):Array.prototype.push.apply(n,r),n},P=function(n){var t=Array.from,e=[];return t&&n?t(n):(n instanceof Set?n.forEach((function(n){L(e,n)})):r(n,(function(n){L(e,n)})),e)},E=function(n){return!!n&&0===n.length},M=function(n,t,e){r(n,(function(n){return n&&n.apply(void 0,t||[])})),!e&&(n.length=0)},T=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},C=function(n){return n?Object.keys(n):[]},R=function n(t,e,i,o,u,c,a){var f=[e,i,o,u,c,a];return"object"==typeof t&&!d(t)||w(t)||(t={}),r(f,(function(e){r(C(e),(function(r){var i=e[r];if(t===i)return!0;var o=b(i);if(i&&m(i)){var u=t[r],c=u;o&&!b(u)?c=[]:o||m(u)||(c={}),t[r]=n(c,i)}else t[r]=o?i.slice():i}))})),t},z=function(n){for(var r in n)return!1;return!0},H=function(n,r,t,e){if(l(e))return t?t[n]:r;t&&(h(e)||v(e))&&(t[n]=e)},A=function(n,r,t){if(l(t))return n?n.getAttribute(r):null;n&&n.setAttribute(r,t)},I=function(n,r){return new Set((A(n,r)||"").split(" "))},k=function(n,r){n&&n.removeAttribute(r)},D=function(n,r,t,e){if(t){var i=I(n,r);i[e?"add":"delete"](t);var o=P(i).join(" ").trim();A(n,r,o)}},B=function(n,r,t){return I(n,r).has(t)},j=function(n,r){return H("scrollLeft",0,n,r)},X=function(n,r){return H("scrollTop",0,n,r)},Y=o()&&Element.prototype,N=function(n,r){var t=[],e=r?S(r)&&r:document;return e?L(t,e.querySelectorAll(n)):t},W=function(n,r){return!!S(n)&&(Y.matches||Y.msMatchesSelector).call(n,r)},_=function(n){return n?P(n.childNodes):[]},F=function(n){return n&&n.parentElement},Z=function(n,r){if(S(n)){var t=Y.closest;if(t)return t.call(n,r);do{if(W(n,r))return n;n=F(n)}while(n)}},J=function(n,r,t){var e=Z(n,r),i=n&&function(n,r){var t=r?S(r)&&r:document;return t?t.querySelector(n):null}(t,e),o=Z(i,r)===e;return!(!e||!i)&&(e===n||i===n||o&&Z(Z(n,t),r)!==e)},V=function(n,t,e){if(e&&n){var i,o=t;y(e)?(i=document.createDocumentFragment(),r(e,(function(n){n===o&&(o=n.previousSibling),i.appendChild(n)}))):i=e,t&&(o?o!==t&&(o=o.nextSibling):o=n.firstChild),n.insertBefore(i,o||null)}},G=function(n,r){V(n,null,r)},U=function(n,r){V(F(n),n,r)},$=function(n,r){V(F(n),n&&n.nextSibling,r)},q=function n(t){if(y(t))r(P(t),(function(r){return n(r)}));else if(t){var e=F(t);e&&e.removeChild(t)}},K=function(n){var r=document.createElement("div");return n&&A(r,"class",n),r},Q=function(n){var t=K();return t.innerHTML=n.trim(),r(_(t),(function(n){return q(n)}))},nn=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},rn=["-webkit-","-moz-","-o-","-ms-"],tn=["WebKit","Moz","O","MS","webkit","moz","o","ms"],en={},on={},un=function(n){if(o()){var t=en[n]||window[n];return T(en,n)||(r(tn,(function(r){return!(t=t||window[r+nn(n)])})),en[n]=t),t}},cn=un("MutationObserver"),an=un("IntersectionObserver"),fn=un("ResizeObserver"),ln=un("cancelAnimationFrame"),dn=un("requestAnimationFrame"),sn=un("ScrollTimeline"),vn=o()&&window.setTimeout,hn=o()&&window.clearTimeout,pn=/[^\x20\t\r\n\f]+/g,wn=function(n,r,t){var e,i=n&&n.classList,o=0,u=!1;if(i&&r&&h(r)){var c=r.match(pn)||[];for(u=c.length>0;e=c[o++];)u=!!t(i,e)&&u}return u},bn=function(n,r){wn(n,r,(function(n,r){return n.remove(r)}))},gn=function(n,r){return wn(n,r,(function(n,r){return n.add(r)})),bn.bind(0,n,r)},yn=Math.max,mn=function(){return performance.now()},xn=function(n,t,e,i){if(n&&t){var o=!0;return r(e,(function(r){(i?i(n[r]):n[r])!==(i?i(t[r]):t[r])&&(o=!1)})),o}return!1},Sn=function(n,r){return xn(n,r,["w","h"])},On=function(n,r){return xn(n,r,["x","y"])},Ln=function(n,r){return xn(n,r,["t","r","b","l"])},Pn=function(n,r,t){return xn(n,r,["width","height"],t&&function(n){return Math.round(n)})},En=function(){},Mn=function(n){var r,t=n?vn:dn,e=n?hn:ln;return[function(i){e(r),r=t(i,w(n)?n():n)},function(){return e(r)}]},Tn=function(n,r){var t,e,i,o=En,u=r||{},c=u.g,a=u._,f=u.m,l=function(r){o(),hn(t),t=e=void 0,o=En,n.apply(this,r)},d=function(n){return f&&e?f(e,n):n},s=function(){o!==En&&l(d(i)||i)},h=function(){var n=P(arguments),r=w(c)?c():c;if(v(r)&&r>=0){var u=w(a)?a():a,f=v(u)&&u>=0,h=r>0?vn:dn,p=r>0?hn:ln,b=d(n)||n,g=l.bind(0,b);o();var y=h(g,r);o=function(){return p(y)},f&&!t&&(t=vn(s,u)),e=i=b}else l(n)};return h.S=s,h},Cn={opacity:1,zIndex:1},Rn=function(n,r){var t=n||"",e=r?parseFloat(t):parseInt(t,10);return e==e?e:0},zn=function(n,r,t){return String((null!=r?r[t]||r.getPropertyValue(t):n.style[t])||"")},Hn=function(n,r,t){try{var e=n.style;l(e[r])?e.setProperty(r,t):e[r]=function(n,r){return!Cn[n]&&v(r)?r+"px":r}(r,t)}catch(c){}},An=function(n){return"rtl"===t(n,"direction")},In=function(n,r,e){var i=r?r+"-":"",o=e?"-"+e:"",u=i+"top"+o,c=i+"right"+o,a=i+"bottom"+o,f=i+"left"+o,l=t(n,[u,c,a,f]);return{t:Rn(l[u],!0),r:Rn(l[c],!0),b:Rn(l[a],!0),l:Rn(l[f],!0)}},kn=function(n,r){return"translate"+(b(n)?"("+n[0]+","+n[1]+")":(r?"X":"Y")+"("+n+")")},Dn=Math.round,Bn={w:0,h:0},jn=function(n){return n?{w:n.offsetWidth,h:n.offsetHeight}:Bn},Xn=function(n){return n?{w:n.clientWidth,h:n.clientHeight}:Bn},Yn=function(n){return n?{w:n.scrollWidth,h:n.scrollHeight}:Bn},Nn=function(n){var r=parseFloat(t(n,"height"))||0,e=parseFloat(t(n,"width"))||0;return{w:e-Dn(e),h:r-Dn(r)}},Wn=function(n){return n.getBoundingClientRect()},_n=function(n){return!(!n||!n.height&&!n.width)},Fn=function(){if(l(e)){e=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(n){}}return e},Zn=function(n){return n.split(" ")},Jn=function(n,t,e,i){r(Zn(t),(function(r){n.removeEventListener(r,e,i)}))},Vn=function(n,t,e,i){var o,u=Fn(),c=null!=(o=u&&i&&i.O)?o:u,a=i&&i.C||!1,f=i&&i.T||!1,l=[],d=u?{passive:c,capture:a}:a;return r(Zn(t),(function(r){var t=f?function(i){n.removeEventListener(r,t,a),e&&e(i)}:e;L(l,Jn.bind(null,n,r,t,a)),n.addEventListener(r,t,d)})),M.bind(0,l)},Gn=function(n){return n.stopPropagation()},Un=function(n){return n.preventDefault()},$n={x:0,y:0},qn=function(n){var r=n?Wn(n):0;return r?{x:r.left+window.pageYOffset,y:r.top+window.pageXOffset}:$n},Kn=function(n,t){r(b(t)?t:[t],n)},Qn=function(n){var t=new Map,e=function(n,r){if(n){var e=t.get(n);Kn((function(n){e&&e[n?"delete":"clear"](n)}),r)}else t.forEach((function(n){n.clear()})),t.clear()},i=function n(i,o){if(h(i)){var u=t.get(i)||new Set;return t.set(i,u),Kn((function(n){w(n)&&u.add(n)}),o),e.bind(0,i,o)}p(o)&&o&&e();var c=C(i),a=[];return r(c,(function(r){var t=i[r];t&&L(a,n(r,t))})),M.bind(0,a)};return i(n||{}),[i,e,function(n,e){var i=t.get(n);r(P(i),(function(n){e&&!E(e)?n.apply(0,e):n()}))}]},nr=function(n){return JSON.stringify(n,(function(n,r){if(w(r))throw new Error;return r}))},rr={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},tr=function n(t,e){var i={};return r(C(e).concat(C(t)),(function(r){var o=t[r],u=e[r];if(g(o)&&g(u))R(i[r]={},n(o,u)),z(i[r])&&delete i[r];else if(T(e,r)&&u!==o){var c=!0;if(b(o)||b(u))try{nr(o)===nr(u)&&(c=!1)}catch(l){}c&&(i[r]=u)}})),i},er="data-overlayscrollbars",ir="os-environment",or=ir+"-flexbox-glue",ur=or+"-max",cr="os-scrollbar-hidden",ar=er+"-initialize",fr=er,lr=fr+"-overflow-x",dr=fr+"-overflow-y",sr="overflowVisible",vr="scrollbarHidden",hr="scrollbarPressed",pr="updating",wr=er+"-viewport",br="arrange",gr="scrollbarHidden",yr=sr,mr=er+"-padding",xr=yr,Sr=er+"-content",Or="os-size-observer",Lr=Or+"-appear",Pr=Or+"-listener",Er=Pr+"-scroll",Mr=Pr+"-item",Tr=Mr+"-final",Cr="os-trinsic-observer",Rr="os-no-css-vars",zr="os-theme-none",Hr="os-scrollbar",Ar=Hr+"-rtl",Ir=Hr+"-horizontal",kr=Hr+"-vertical",Dr=Hr+"-track",Br=Hr+"-handle",jr=Hr+"-visible",Xr=Hr+"-cornerless",Yr=Hr+"-transitionless",Nr=Hr+"-interaction",Wr=Hr+"-unusable",_r=Hr+"-auto-hide",Fr=_r+"-hidden",Zr=Hr+"-wheel",Jr=Dr+"-interactive",Vr=Br+"-interactive",Gr={},Ur=function(){return Gr},$r={},qr={get exports(){return $r},set exports(n){$r=n}};!function(n){function r(){return n.exports=r=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},n.exports.v=!0,n.exports["default"]=n.exports,r.apply(this,arguments)}n.exports=r,n.exports.v=!0,n.exports["default"]=n.exports}(qr);var Kr,Qr="__osOptionsValidationPlugin",nt=3333333,rt="scroll",tt="__osSizeObserverPlugin",et=function(n){return(n={})[tt]={H:function(n,r,e){var i=Q('<div class="'+Mr+'" dir="ltr"><div class="'+Mr+'"><div class="'+Tr+'"></div></div><div class="'+Mr+'"><div class="'+Tr+'" style="width: 200%; height: 200%"></div></div></div>');G(n,i),gn(n,Er);var o,u=i[0],c=u.lastChild,a=u.firstChild,f=null==a?void 0:a.firstChild,l=jn(u),d=l,s=!1,v=function(){j(a,nt),X(a,nt),j(c,nt),X(c,nt)},h=function(n){o=0,s&&(l=d,r(!0===n))},p=function(n){d=jn(u),s=!n||!Sn(d,l),n?(Gn(n),s&&!o&&(ln(o),o=dn(h))):h(!1===n),v()},w=L([],[Vn(a,rt,p),Vn(c,rt,p)]);return t(f,{width:nt,height:nt}),dn(v),[e?p.bind(0,!1):v,w]}},n}(),it=0,ot=Math.round,ut=Math.abs,ct="__osScrollbarsHidingPlugin",at=function(n){return(n={})[ct]={P:function(n){var r=n.A,t=n.L,e=!(n.R||r||!t.x&&!t.y)&&document.createElement("style");return e&&(A(e,"id",wr+"-"+br+"-"+it),it++),e},M:function(n,e,i,o,u,c,a){return[function(r,e,c,a){if(n){var f=u().I,l=r.D,d=r.k,s=d.x,v=d.y,h=l.x,p=l.y,w=f[a?"paddingRight":"paddingLeft"],b=f.paddingTop,g=e.w+c.w,y=e.h+c.h,m={w:p&&v?p+g-w+"px":"",h:h&&s?h+y-b+"px":""};if(o){var x=o.sheet;if(x){var S=x.cssRules;if(S){S.length||x.insertRule("#"+A(o,"id")+" + ["+wr+"~='"+br+"']::before {}",0);var O=S[0].style;O.width=m.w,O.height=m.h}}}else t(i,{"--os-vaw":m.w,"--os-vah":m.h})}return n},function(o,f,l){if(n){var d=l||c(o),s=u().I,v=d.k,h=v.x,p=v.y,w={},b=function(n){return r(n.split(" "),(function(n){w[n]=s[n]}))};h&&b("marginBottom paddingTop paddingBottom"),p&&b("marginLeft marginRight paddingLeft paddingRight");var g=t(i,C(w));return D(i,wr,br),e||(w.height=""),t(i,w),[function(){a(d,f,n,g),t(i,g),D(i,wr,br,!0)},d]}return[En]}]},V:function(){var n={w:0,h:0},r=0;return function(t,e,i){var o={w:window.innerWidth,h:window.innerHeight},u={w:o.w-n.w,h:o.h-n.h};if(0!==u.w||0!==u.h){var c=ut(u.w),a=ut(u.h),f={w:ut(ot(o.w/(n.w/100))),h:ut(ot(o.h/(n.h/100)))},l=function(){var n=window.screen.deviceXDPI||0,r=window.screen.logicalXDPI||1;return window.devicePixelRatio||n/r}(),d=c>2&&a>2,s=!function(n,r){var t=ut(n),e=ut(r);return!(t===e||t+1===e||t-1===e)}(f.w,f.h);if(d&&s&&l!==r&&l>0){var v=e(),h=v[0],p=v[1];R(t.j,h),p&&i()}n=o,r=l}}}},n}(),ft="__osClickScrollPlugin",lt=function(n){return(n={})[ft]={H:function(n,r,t,e,i){var o=0,u=En;return function c(a){u=function(n,r,t,e,i){var o=0,u=mn(),c=yn(0,133),a=function t(a){var f=mn(),l=f-u>=c,d=a?1:1-(yn(0,u+c-f)/c||0),s=(r-n)*(w(i)?i(d,d*c,0,1,c):d)+n,v=l||1===d;e&&e(s,0,v),o=v?0:dn((function(){return t()}))};return a(),function(n){ln(o),n&&a(n)}}(a,a+e*Math.sign(t),0,(function(t,a,f){n(t);var l=r();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var d=setTimeout((function(){c(t)}),222);u=function(){clearTimeout(d)}}o++}}))}(0),function(){return u()}}},n}(),dt=function(n,r,t,e){G(n,r);var i=Xn(r),o=jn(r),u=Nn(t);return e&&q(r),{x:o.h-i.h+u.h,y:o.w-i.w+u.w}},st=function(n,r){var e="hidden";t(n,{overflowX:e,overflowY:e,direction:"rtl"}),j(n,0);var i=qn(n),o=qn(r);j(n,-999);var u=qn(r);return{i:i.x===o.x,n:o.x!==u.x}},vt=function(n,r){var t=gn(n,or),e=Wn(n),i=Wn(r),o=Pn(i,e,!0),u=gn(n,ur),c=Wn(n),a=Wn(r),f=Pn(a,c,!0);return t(),u(),o&&f},ht=function(){return Kr||(Kr=function(){var n,e=document.body,o=Q('<div class="'+ir+'"><div></div></div>')[0],c=o.firstChild,a=Qn(),f=a[0],l=a[2],d=i({o:dt(e,o,c),u:On},dt.bind(0,e,o,c,!0)),s=d[0],v=(0,d[1])()[0],h=function(n){var e=!1,i=gn(n,cr);try{e="none"===t(n,function(n){var t=on[n];if(T(on,n))return t;var e=nn(n),i=K().style;return r(rn,(function(r){var o=r.replace(/-/g,""),u=[n,r+n,o+e,nn(o)+e];return!(t=u.find((function(n){return void 0!==i[n]})))})),on[n]=t||""}("scrollbar-width"))||"none"===window.getComputedStyle(n,"::-webkit-scrollbar").getPropertyValue("display")}catch(u){}return i(),e}(o),p={x:0===v.x,y:0===v.y},w={elements:{host:null,padding:!h,viewport:function(n){return h&&n===n.ownerDocument.body&&n},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},b=R({},rr),g=R.bind(0,{},b),y=R.bind(0,{},w),m={j:v,L:p,A:h,R:"-1"===t(o,"zIndex"),B:!!sn,F:st(o,c),U:vt(o,c),q:f.bind(0,"z"),N:f.bind(0,"r"),Y:y,W:function(n){return R(w,n)&&y()},G:g,X:function(n){return R(b,n)&&g()},Z:R({},w),K:R({},b)},x=window.addEventListener,S=Tn((function(n){return l(n?"z":"r")}),{g:33,_:99});return k(o,"style"),q(o),x("resize",S.bind(0,!1)),h||p.x&&p.y||x("resize",(function(){var r=Ur()[ct];(n=n||r&&r.V())&&n(m,s,S.bind(0,!0))})),m}()),Kr},pt=function(n,r){return w(r)?r.apply(0,n):r},wt=function(n,r,t,e){var i=l(e)?t:e;return pt(n,i)||r.apply(0,n)},bt=function(n,r,t,e){var i=l(e)?t:e,o=pt(n,i);return!!o&&(x(o)?o:r.apply(0,n))},gt=function(n,r,t){var e=t||{},i=e.nativeScrollbarsOverlaid,o=e.body,u=ht(),c=u.L,a=u.A,f=r.nativeScrollbarsOverlaid,s=r.body,v=null!=i?i:f,h=l(o)?s:o,p=(c.x||c.y)&&v,w=n&&(d(h)?!a:h);return!!p||!!w},yt=new WeakMap,mt=function(n){return yt.get(n)},xt=function(n,r){return n?r.split(".").reduce((function(n,r){return n&&T(n,r)?n[r]:void 0}),n):void 0},St=function(n,r,t){return function(e){return[xt(n,e),t||void 0!==xt(r,e)]}},Ot=function(n){var r=n;return[function(){return r},function(n){r=R({},r,n)}]},Lt="tabindex",Pt=K.bind(0,""),Et=function(n){G(F(n),_(n)),q(n)},Mt=function(n){var r=ht(),t=r.Y,e=r.A,i=Ur()[ct],o=i&&i.P,u=t().elements,c=u.host,a=u.padding,f=u.viewport,l=u.content,d=x(n),s=d?{}:n,v=s.elements||{},h=v.host,p=v.padding,w=v.viewport,b=v.content,g=d?n:s.target,y=W(g,"textarea"),m=g.ownerDocument,S=m.documentElement,P=g===m.body,E=m.defaultView,T=wt.bind(0,[g]),R=bt.bind(0,[g]),z=pt.bind(0,[g]),H=T.bind(0,Pt,f),I=R.bind(0,Pt,l),j=H(w),X=j===g,Y=X&&P,N=!X&&I(b),Z=!X&&x(j)&&j===N,J=Z&&!!z(l),V=J?H():j,K=J?N:I(),Q=Y?S:Z?V:j,nn=y?T(Pt,c,h):g,rn=Y?Q:nn,tn=Z?K:N,en=m.activeElement,on=!X&&E.top===E&&en===g,un={$:g,J:rn,rr:Q,ar:!X&&R(Pt,a,p),er:tn,nr:!X&&!e&&o&&o(r),tr:Y?S:Q,ir:Y?m:Q,vr:E,ur:m,lr:y,cr:P,sr:d,dr:X,hr:Z,pr:function(n,r){return B(Q,X?fr:wr,X?r:n)},gr:function(n,r,t){return D(Q,X?fr:wr,X?r:n,t)}},cn=C(un).reduce((function(n,r){var t=un[r];return L(n,!(!t||!x(t)||F(t))&&t)}),[]),an=function(n){return n?O(cn,n)>-1:null},fn=un.$,ln=un.J,dn=un.ar,sn=un.rr,vn=un.er,hn=un.nr,pn=[function(){k(ln,fr),k(ln,ar),k(fn,ar),P&&(k(S,fr),k(S,ar))}],wn=y&&an(ln),bn=y?fn:_([vn,sn,dn,ln,fn].find((function(n){return!1===an(n)}))),yn=Y?fn:vn||sn;return[un,function(){A(ln,fr,X?"viewport":"host"),A(dn,mr,""),A(vn,Sr,""),X||A(sn,wr,"");var n=P&&!X?gn(F(g),cr):En;if(wn&&($(fn,ln),L(pn,(function(){$(ln,fn),q(ln)}))),G(yn,bn),G(ln,dn),G(dn||ln,!X&&sn),G(sn,vn),L(pn,(function(){n(),k(dn,mr),k(vn,Sr),k(sn,lr),k(sn,dr),k(sn,wr),an(vn)&&Et(vn),an(sn)&&Et(sn),an(dn)&&Et(dn)})),e&&!X&&(D(sn,wr,gr,!0),L(pn,k.bind(0,sn,wr))),hn&&(U(sn,hn),L(pn,q.bind(0,hn))),on){var r=A(sn,Lt);A(sn,Lt,"-1"),sn.focus();var t=function(){return r?A(sn,Lt,r):k(sn,Lt)},i=Vn(m,"pointerdown keydown",(function(){t(),i()}));L(pn,[t,i])}else en&&en.focus&&en.focus();bn=0},M.bind(0,pn)]},Tt=function(n,r){var e=n.er,i=r[0];return function(n){var r=ht().U,o=i()._r,u=n.mr,c=(e||!r)&&u;return c&&t(e,{height:o?"":"100%"}),{br:c,wr:c}}},Ct=function(n,r){var e=r[0],o=r[1],u=n.J,c=n.ar,a=n.rr,f=n.dr,l=i({u:Ln,o:In()},In.bind(0,u,"padding","")),d=l[0],s=l[1];return function(n,r,i){var u=s(i),l=u[0],v=u[1],h=ht(),p=h.A,w=h.U,b=e().Sr,g=n.br,y=n.wr,m=n.yr,x=r("paddingAbsolute"),S=x[0],O=x[1];if(g||v||!w&&y){var L=d(i);l=L[0],v=L[1]}var P=!f&&(O||m||v);if(P){var E=!S||!c&&!p,M=l.r+l.l,T=l.t+l.b,C={marginRight:E&&!b?-M:0,marginBottom:E?-T:0,marginLeft:E&&b?-M:0,top:E?-l.t:0,right:E?b?-l.r:"auto":0,left:E?b?"auto":-l.l:0,width:E?"calc(100% + "+M+"px)":""},z={paddingTop:E?l.t:0,paddingRight:E?l.r:0,paddingBottom:E?l.b:0,paddingLeft:E?l.l:0};t(c||a,C),t(a,z),o({ar:l,Or:!E,I:c?z:R({},C,z)})}return{Cr:P}}},Rt=Math.max,zt=Rt.bind(0,0),Ht="visible",At="hidden",It=42,kt={u:Sn,o:{w:0,h:0}},Dt={u:On,o:{x:At,y:At}},Bt=function(n){return 0===n.indexOf(Ht)},jt=function(n,r){var e=r[0],o=r[1],u=n.J,c=n.ar,a=n.rr,f=n.nr,l=n.dr,d=n.gr,s=n.cr,v=n.vr,h=ht(),p=h.j,w=h.U,b=h.A,g=h.L,y=Ur()[ct],m=!l&&!b&&(g.x||g.y),x=s&&l,S=i(kt,Nn.bind(0,a)),O=S[0],L=S[1],P=i(kt,Yn.bind(0,a)),E=P[0],M=P[1],T=i(kt),C=T[0],R=T[1],z=i(kt),H=z[0],I=z[1],k=i(Dt)[0],B=function(n,r){if(t(a,{height:""}),r){var i=e(),o=i.Or,c=i.ar,f=n.Er,l=n.D,d=Nn(u),s=Xn(u),v="content-box"===t(a,"boxSizing"),h=o||v?c.b+c.t:0,p=!(g.x&&v);t(a,{height:s.h+d.h+(f.x&&p?l.x:0)-h})}},j=function(n,r){var e=b||n?0:It,i=function(n,i,o){var u=t(a,n),c="scroll"===(r?r[n]:u);return[u,c,c&&!b?i?e:o:0,i&&!!e]},o=i("overflowX",g.x,p.x),u=o[0],c=o[1],f=o[2],l=o[3],d=i("overflowY",g.y,p.y);return{Tr:{x:u,y:d[0]},Er:{x:c,y:d[1]},D:{x:f,y:d[2]},k:{x:l,y:d[3]}}},X=function(n,r,t,i){var o=n.D,u=n.k,c=u.x,a=u.y,f=o.x,l=o.y,d=e().I,s=r?"marginLeft":"marginRight",v=r?"paddingLeft":"paddingRight",h=d[s],p=d.marginBottom,w=d[v],b=d.paddingBottom;i.width="calc(100% + "+(l+-1*h)+"px)",i[s]=-l+h,i.marginBottom=-f+p,t&&(i[v]=w+(a?l:0),i.paddingBottom=b+(c?f:0))},Y=y?y.M(m,w,a,f,e,j,X):[function(){return m},function(){return[En]}],N=Y[0],W=Y[1];return function(n,r,i){var f,s=n.br,h=n.zr,p=n.wr,y=n.Cr,m=n.mr,S=n.yr,P=e(),T=P._r,z=P.Sr,Y=r("showNativeOverlaidScrollbars"),_=Y[0],F=Y[1],Z=r("overflow"),J=Z[0],V=Z[1],G=_&&g.x&&g.y,U=!l&&!w&&(s||p||h||F||m),$=Bt(J.x),q=Bt(J.y),K=$||q,Q=L(i),nn=M(i),rn=R(i),tn=I(i);if(F&&b&&d(gr,vr,!G),U&&(f=j(G),B(f,T)),s||y||p||S||F){K&&d(yr,sr,!1);var en=W(G,z,f),on=en[0],un=en[1],cn=Q=O(i),an=cn[0],fn=cn[1],ln=nn=E(i),dn=ln[0],sn=ln[1],vn=Xn(a),hn=dn,pn=vn;on(),(sn||fn||F)&&un&&!G&&N(un,dn,an,z)&&(pn=Xn(a),hn=Yn(a));var wn={w:zt(Rt(dn.w,hn.w)+an.w),h:zt(Rt(dn.h,hn.h)+an.h)},bn={w:zt((x?v.innerWidth:pn.w+zt(vn.w-dn.w))+an.w),h:zt((x?v.innerHeight+an.h:pn.h+zt(vn.h-dn.h))+an.h)};tn=H(bn),rn=C(function(n,r){var t=window.devicePixelRatio%1!=0?1:0,e={w:zt(n.w-r.w),h:zt(n.h-r.h)};return{w:e.w>t?e.w:0,h:e.h>t?e.h:0}}(wn,bn),i)}var gn=tn,yn=gn[0],mn=gn[1],xn=rn,Sn=xn[0],On=xn[1],Ln=nn,Pn=Ln[0],En=Ln[1],Mn=Q,Tn=Mn[0],Cn=Mn[1],Rn={x:Sn.w>0,y:Sn.h>0},zn=$&&q&&(Rn.x||Rn.y)||$&&Rn.x&&!Rn.y||q&&Rn.y&&!Rn.x;if(y||S||Cn||En||mn||On||V||F||U){var Hn={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},An=function(n,r,t,e){var i=function(n,r){var t=Bt(n),e=r&&t&&n.replace(Ht+"-","")||"";return[r&&!t?n:"",Bt(e)?"hidden":e]},o=i(t.x,r.x),u=o[0],c=o[1],a=i(t.y,r.y),f=a[0],l=a[1];return e.overflowX=c&&f?c:u,e.overflowY=l&&u?l:f,j(n,e)}(G,Rn,J,Hn),In=N(An,Pn,Tn,z);l||X(An,z,In,Hn),U&&B(An,T),l?(A(u,lr,Hn.overflowX),A(u,dr,Hn.overflowY)):t(a,Hn)}D(u,fr,sr,zn),D(c,mr,xr,zn),l||D(a,wr,yr,K);var kn=k(j(G).Tr),Dn=kn[0],Bn=kn[1];return o({Tr:Dn,Hr:{x:yn.w,y:yn.h},Pr:{x:Sn.w,y:Sn.h},Ar:Rn}),{Lr:Bn,Rr:mn,Mr:On}}},Xt=function(n,t,e){var i={},o=t||{};return r(C(n).concat(C(o)),(function(r){var t=n[r],u=o[r];i[r]=!!(e||t||u)})),i},Yt=function(n,t,e){var i,o=!1,u=function(u){if(e){var c=e.reduce((function(r,t){if(t){var e=t[0],i=t[1],o=i&&e&&(u?u(e):N(e,n));o&&o.length&&i&&h(i)&&L(r,[o,i.trim()],!0)}return r}),[]);r(c,(function(e){return r(e[0],(function(r){var u=e[1],c=i.get(r)||[];if(n.contains(r)){var a=Vn(r,u,(function(n){o?(a(),i.delete(r)):t(n)}));i.set(r,L(c,a))}else M(c),i.delete(r)}))}))}};return e&&(i=new WeakMap,u()),[function(){o=!0},u]},Nt=function(n,t,e,i){var o=!1,u=i||{},c=u.Dr,a=u.kr,f=u.Vr,l=u.jr,d=u.Br,s=u.Fr,v=Tn((function(){return o&&e(!0)}),{g:33,_:99}),p=Yt(n,v,f),w=p[0],b=p[1],g=a||[],y=(c||[]).concat(g),m=function(o,u){var c=d||En,a=s||En,f=new Set,v=new Set,p=!1,w=!1;if(r(o,(function(e){var o=e.attributeName,u=e.target,d=e.type,s=e.oldValue,b=e.addedNodes,y=e.removedNodes,m="attributes"===d,x="childList"===d,S=n===u,L=m&&h(o)?A(u,o):0,P=0!==L&&s!==L,E=O(g,o)>-1&&P;if(t&&(x||!S)){var M=!m,T=m&&P,C=T&&l&&W(u,l),R=(C?!c(u,o,s,L):M||T)&&!a(e,!!C,n,i);r(b,(function(n){return f.add(n)})),r(y,(function(n){return f.add(n)})),w=w||R}!t&&S&&P&&!c(u,o,s,L)&&(v.add(o),p=p||E)})),f.size>0&&b((function(n){return P(f).reduce((function(r,t){return L(r,N(n,t)),W(t,n)?L(r,t):r}),[])})),t)return!u&&w&&e(!1),[!1];if(v.size>0||p){var y=[P(v),p];return!u&&e.apply(0,y),y}},x=new cn((function(n){return m(n)}));return x.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:y,subtree:t,childList:t,characterData:t}),o=!0,[function(){o&&(w(),x.disconnect(),o=!1)},function(){if(o){v.S();var n=x.takeRecords();return!E(n)&&m(n,!0)}}]},Wt=3333333,_t=function(n,r,t){var e=t||{},o=e.Ur,u=e.Ir,c=Ur()[tt],a=ht().F,f=Q('<div class="'+Or+'"><div class="'+Pr+'"></div></div>')[0],l=f.firstChild,d=An.bind(0,n),s=i({o:!1,p:!0,u:function(n,r){return!(!n||!_n(n)&&_n(r))}}),v=s[0],h=function(n){var t=b(n)&&n.length>0&&g(n[0]),e=!t&&p(n[0]),i=!1,u=!1,c=!0;if(t){var l=v(n.pop().contentRect),d=l[0],s=l[2],h=_n(d),w=_n(s);u=!w&&h,c=!(i=!s&&!!w||!h)}else e?c=n[1]:u=!0===n;if(o&&c){var y=e?n[0]:An(f);j(f,y?a.n?-Wt:a.i?0:Wt:Wt),X(f,Wt)}i||r({br:!e,qr:e?n:void 0,Ir:!!u})},w=[];return[function(){M(w),q(f)},function(){var r=u&&h;if(fn){var t=new fn(h);t.observe(l),L(w,(function(){t.disconnect()}))}else if(c){var e=c.H(l,h,u),a=e[0],s=e[1];r=a,L(w,s)}if(o){var v=i({o:void 0},d)[0];L(w,Vn(f,"scroll",(function(n){var r=v(),t=r[0],e=r[1],i=r[2];e&&(bn(l,"ltr rtl"),gn(l,t?"rtl":"ltr"),h([!!t,e,i])),Gn(n)})))}r&&(gn(f,Lr),L(w,Vn(f,"animationstart",r,{T:!!fn}))),(fn||c)&&G(n,f)}]},Ft=function(n,r){var t,e=K(Cr),o=[],u=i({o:!1})[0],c=function(n,t){if(n){var e=u(function(n){return 0===n.h||n.isIntersecting||n.intersectionRatio>0}(n));return e[1]&&!t&&r(e)&&[e]}},a=function(n,r){return n&&n.length>0&&c(n.pop(),r)};return[function(){M(o),q(e)},function(){if(an)(t=new an((function(n){return a(n)}),{root:n})).observe(e),L(o,(function(){t.disconnect()}));else{var r=function(){var n=jn(e);c(n)},i=_t(e,r),u=i[0],f=i[1];L(o,u),f(),r()}G(n,e)},function(){return t&&a(t.takeRecords(),!0)}]},Zt="["+fr+"]",Jt="["+wr+"]",Vt=["tabindex"],Gt=["wrap","cols","rows"],Ut=["id","class","style","open"],$t=function(n,t,e){var o,u,c,a,f=n.J,l=n.rr,d=n.er,s=n.lr,p=n.dr,g=n.pr,y=n.gr,m=ht().U,x=i({u:Sn,o:{w:0,h:0}},(function(){var n=g(yr,sr),r=g(br,""),t=r&&j(l),e=r&&X(l);y(yr,sr),y(br,""),y("",pr,!0);var i=Yn(d),o=Yn(l),u=Nn(l);return y(yr,sr,n),y(br,"",r),y("",pr),j(l,t),X(l,e),{w:o.w+i.w+u.w,h:o.h+i.h+u.h}})),S=x[0],P=s?Gt:Ut.concat(Gt),E=Tn(e,{g:function(){return o},_:function(){return u},m:function(n,r){var t=n[0],e=r[0];return[C(t).concat(C(e)).reduce((function(n,r){return n[r]=t[r]||e[r],n}),{})]}}),M=function(n){r(n||Vt,(function(n){if(O(Vt,n)>-1){var r=A(f,n);h(r)?A(l,n,r):k(l,n)}}))},T=function(n,r){var i=n[0],o={mr:n[1]};return t({_r:i}),!r&&e(o),o},z=function(n){var r=n.br,i=n.qr,o=n.Ir,u=!r||o?e:E,c=!1;if(i){var a=i[0];c=i[1],t({Sr:a})}u({br:r,Ir:o,yr:c})},H=function(n,r){var t=S()[1],i={wr:t};return t&&!r&&(n?e:E)(i),i},I=function(n,r,t){var e={zr:r};return r?!t&&E(e):p||M(n),e},D=d||!m?Ft(f,T):[En,En,En],B=D[0],Y=D[1],N=D[2],W=p?[En,En]:_t(f,z,{Ir:!0,Ur:!0}),_=W[0],F=W[1],V=Nt(f,!1,I,{kr:Ut,Dr:Ut.concat(Vt)}),G=V[0],U=V[1],$=p&&fn&&new fn((function(n){var r=n[n.length-1].contentRect,t=_n(r),e=_n(a);z({br:!0,Ir:!e&&t}),a=r}));return[function(){B(),_(),c&&c[0](),$&&$.disconnect(),G()},function(){$&&$.observe(f),M(),F(),Y()},function(){var n={},r=U(),t=N(),e=c&&c[1]();return r&&R(n,I.apply(0,L(r,!0))),t&&R(n,T.apply(0,L(t,!0))),e&&R(n,H.apply(0,L(e,!0))),n},function(n){var r=n("update.ignoreMutation")[0],t=n("update.attributes"),e=t[0],i=t[1],a=n("update.elementEvents"),f=a[0],s=a[1],h=n("update.debounce"),g=h[0],y=h[1],m=function(n){return w(r)&&r(n)};if((s||i)&&(c&&(c[1](),c[0]()),c=Nt(d||l,!0,H,{Dr:P.concat(e||[]),Vr:f,jr:Zt,Fr:function(n,r){var t=n.target,e=n.attributeName;return!(r||!e||p)&&J(t,Zt,Jt)||!!Z(t,"."+Hr)||!!m(n)}})),y)if(E.S(),b(g)){var x=g[0],S=g[1];o=v(x)&&x,u=v(S)&&S}else v(g)?(o=g,u=!1):(o=!1,u=!1)}]},qt={x:0,y:0},Kt=function(n,t){var e=St(t,{}),i=Qn(),o=i[0],u=i[1],c=i[2],a=Mt(n),f=a[0],l=a[1],d=a[2],s=Ot(function(n){return{ar:{t:0,r:0,b:0,l:0},Or:!1,I:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},Hr:qt,Pr:qt,Tr:{x:"hidden",y:"hidden"},Ar:{x:!1,y:!1},_r:!1,Sr:An(n.J)}}(f)),v=s[0],h=s[1],p=function(n,t){var e=n.$,i=n.rr,o=n.gr,u=n.dr,c=ht(),a=c.A,f=c.L,l=c.U,d=!a&&(f.x||f.y),s=[Tt(n,t),Ct(n,t),jt(n,t)];return function(n,t,c){var a=Xt(R({br:!1,Cr:!1,yr:!1,mr:!1,Rr:!1,Mr:!1,Lr:!1,zr:!1,wr:!1,Ir:!1},t),{},c),f=d||!l,v=f&&j(i),h=f&&X(i);o("",pr,!0);var p=a;return r(s,(function(r){p=Xt(p,r(p,n,!!c)||{},c)})),j(i,v),X(i,h),o("",pr),u||(j(e,0),X(e,0)),p}}(f,s),w=function(n,r,t){var e=C(n).some((function(r){return!!n[r]})),i=e||!z(r)||t;return i&&c("u",[n,r,t]),i},b=$t(f,h,(function(n){return w(p(e,n),{},!1)})),g=b[0],y=b[1],m=b[2],x=b[3],S=v.bind(0);return S.Nr=function(n){return o("u",n)},S.Yr=function(){var n=f.$,r=f.rr,t=f.ur,e=f.cr?t.documentElement:n,i=j(e),o=X(e);y(),l(),j(r,i),X(r,o)},S.Wr=f,[function(n,r){var e=St(t,n,r);return x(e),w(p(e,m(),r),n,!!r)},S,function(){u(),g(),d()}]},Qt=Math.round,ne="pointerup pointerleave pointercancel lostpointercapture",re=function(n,r){return Vn(n,"mousedown",Vn.bind(0,r,"click",Gn,{T:!0,C:!0}),{C:!0})},te=function(n,r,t,e,i,o,u){var c=ht().F,a=e.Gr,f=e.Xr,l=e.Zr,d="scroll"+(u?"Left":"Top"),s="client"+(u?"X":"Y"),v=u?"width":"height",h=u?"left":"top",p=u?"w":"h",w=u?"x":"y",b=function(n,r){return function(t){var e=o().Pr,s=jn(f)[p]-jn(a)[p],v=r*t/s*e[w],h=An(l)&&u?c.n||c.i?1:-1:1;i[d]=n+v*h}};return Vn(f,"pointerdown",(function(e){var o=Z(e.target,"."+Br)===a,u=o?a:f;if(D(r,fr,hr,!0),function(n,r,t){var e=r.scrollbars,i=n.button,o=n.isPrimary,u=n.pointerType,c=e.pointers;return 0===i&&o&&e[t?"dragScroll":"clickScroll"]&&(c||[]).includes(u)}(e,n,o)){var c=!o&&e.shiftKey,l=function(){return Wn(a)},p=function(){return Wn(f)},g=function(n,r){return(n||l())[h]-(r||p())[h]},y=b(i[d]||0,1/function(n){var r=Wn(n),t=r.width,e=r.height,i=jn(n),o=i.w,u=i.h;return{x:Qt(t)/o||1,y:Qt(e)/u||1}}(i)[w]),m=e[s],x=l(),S=p(),O=x[v],P=g(x,S)+O/2,E=m-S[h],T=o?0:E-P,C=function(n){M(R),u.releasePointerCapture(n.pointerId)},R=[D.bind(0,r,fr,hr),Vn(t,ne,C),Vn(t,"selectstart",(function(n){return Un(n)}),{O:!1}),Vn(f,ne,C),Vn(f,"pointermove",(function(n){var r=n[s]-m;(o||c)&&y(T+r)}))];if(c)y(T);else if(!o){var z=Ur()[ft];z&&L(R,z.H(y,g,T,O,E))}u.setPointerCapture(e.pointerId)}}))},ee=function(n,r){return function(t,e,i,o,u,c,a){var f=t.Zr,l=Mn(333),d=l[0],s=l[1],v=!!u.scrollBy,h=!0;return M.bind(0,[Vn(f,"pointerenter",(function(){e(Nr,!0)})),Vn(f,"pointerleave pointercancel",(function(){e(Nr)})),Vn(f,"wheel",(function(n){var r=n.deltaX,t=n.deltaY,i=n.deltaMode;v&&h&&0===i&&F(f)===o&&u.scrollBy({left:r,top:t,behavior:"smooth"}),h=!1,e(Zr,!0),d((function(){h=!0,e(Zr)})),Un(n)}),{O:!1,C:!0}),re(f,i),te(n,o,i,t,u,r,a),s])}},ie=Math.min,oe=Math.max,ue=Math.round,ce=function(n,r,t,e){if(e){var i=t?"x":"y",o=e.Pr,u=e.Hr[i],c=o[i];return oe(0,ie(1,u/(u+c)))}var a=t?"width":"height",f=Wn(n)[a],l=Wn(r)[a];return oe(0,ie(1,f/l))},ae=function(n,r,t,e){return r&&n.animate(t,{timeline:r,composite:e})},fe=function(n,r){var t;return(t={transform:[kn("0%",r),kn(r&&n?"100%":"-100%",r)]})[r?n?"right":"left":"top"]=["0%","100%"],t},le=function(n){return Math.max(0,n-.5)+"px"},de=function(n,r,t,e){return ae(n,r,{transform:[kn("0px",e),kn(le(t),e)]},"add")},se=function(n,r){return sn?new sn({source:n,axis:r}):null},ve=function(n,e,i){var o=ht(),u=o.Y,c=o.R,a=u().scrollbars.slot,f=e.ur,l=e.$,d=e.J,s=e.rr,v=e.sr,h=e.tr,w=e.cr,g=e.dr,y=((v?{}:n).scrollbars||{}).slot,m=new Map,x=se(h,"x"),S=se(h,"y"),P=bt([l,d,s],(function(){return g&&w?l:d}),a,y),T=function(n){return g&&!w&&F(n)===s},C=function(n){m.forEach((function(r,t){(!n||O(b(n)?n:[n],t)>-1)&&((r||[]).forEach((function(n){n&&n.cancel()})),m.delete(t))}))},R=function(n,t,e){var i=e?gn:bn;r(n,(function(n){i(n.Zr,t)}))},z=function(n,e){r(n,(function(n){var r=e(n);t(r[0],r[1])}))},H=function(n,r,t){z(n,(function(n){var e,i=n.Gr,o=n.Xr;return[i,(e={},e[t?"width":"height"]=(100*ce(i,o,t,r)).toFixed(3)+"%",e)]}))},A=function(n,r,t){S||S||z(n,(function(n){var e=n.Gr,i=n.Xr,o=n.Zr,u=function(n,r,t,e,i,o){var u=ht().F,c=o?"x":"y",a=o?"Left":"Top",f=e.Pr,l=ue(f[c]),d=ie(l,oe(0,t["scroll"+a])),s=o&&i,v=u.i?d:l-d,h=ie(1,(s?v:d)/l),p=ce(n,r,o);return 1/p*(1-p)*h}(e,i,h,r,An(o),t);return[e,{transform:u==u?kn((100*u).toFixed(3)+"%",t):""}]}))},I=function(n){var r=n.Zr,t=T(r)&&r;return[t,{transform:t?kn([j(h)+"px",X(h)+"px"]):""}]},k=[],D=[],B=[],Y=function(n,r,t){var e=p(t),i=!e||!t;(!e||t)&&R(D,n,r),i&&R(B,n,r)},N=function(n){var r=n?Ir:kr,t=n?D:B,e=E(t)?Yr:"",o=K(Hr+" "+r+" "+e),u=K(Dr),a=K(Br),l={Zr:o,Xr:u,Gr:a};return c||gn(o,Rr),G(o,u),G(u,a),L(t,l),L(k,[q.bind(0,o),C,i(l,Y,f,d,h,n?x:S,n)]),l},W=N.bind(0,!0),_=N.bind(0,!1);return W(),_(),[{Kr:function(n){H(D,n,!0),H(B,n)},$r:function(n){A(D,n,!0),A(B,n)},Jr:function(){var n=function(n,r){var t=r.Zr,e=r.Gr;C(e),m.set(e,[ae(e,n?x:S,fe(n&&An(t),n))])};D.forEach(n.bind(0,!0)),B.forEach(n.bind(0,!1))},Qr:function(n){var r=n.Pr;B.concat(D).forEach((function(n){var t=n.Zr;C(t),T(t)&&m.set(t,[de(t,x,r.x,!0),de(t,S,r.y)])}))},ra:function(){S||S||(g&&z(D,I),g&&z(B,I))},aa:Y,ea:{B:x,na:D,ta:W,ia:z.bind(0,D)},va:{B:S,na:B,ta:_,ia:z.bind(0,B)}},function(){G(P,D[0].Zr),G(P,B[0].Zr),vn((function(){Y(Yr)}),300)},M.bind(0,k)]},he=function(n){return"mouse"===n.pointerType},pe=function(n,r,t,e){var i,o,u,c,a,f=En,l=0,d=Ot({})[0],s=Mn(),v=s[0],h=s[1],p=Mn(),w=p[0],b=p[1],g=Mn(100),y=g[0],m=g[1],x=Mn(100),S=x[0],O=x[1],L=Mn(100),P=L[0],E=L[1],T=Mn((function(){return l})),C=T[0],R=T[1],z=ve(n,t.Wr,ee(r,t)),H=z[0],A=z[1],I=z[2],k=t.Wr,D=k.J,B=k.ir,j=k.cr,X=H.aa,Y=H.Kr,N=H.$r,W=H.Jr,_=H.Qr,F=H.ra,Z=function(n){X(_r,n,!0),X(_r,n,!1)},J=function(n,r){if(R(),n)X(Fr);else{var t=function(){return X(Fr,!0)};l>0&&!r?C(t):t()}},V=function(n){he(n)&&(c=o)&&J(!0)},G=[m,R,O,E,b,h,I,Vn(D,"pointerover",V,{T:!0}),Vn(D,"pointerenter",V),Vn(D,"pointerleave",(function(n){he(n)&&(c=!1,o&&J(!1))})),Vn(D,"pointermove",(function(n){he(n)&&i&&v((function(){m(),J(!0),S((function(){i&&J(!1)}))}))})),Vn(B,"scroll",(function(n){w((function(){N(t()),u&&J(!0),y((function(){u&&!c&&J(!1)}))})),e(n),F()}))],U=d.bind(0);return U.Wr=H,U.Yr=A,[function(n,e,c){var d=c.Rr,s=c.Mr,v=c.Lr,h=c.yr,p=c.Ir,w=ht().L,b=St(r,n,e),g=t(),y=g.Pr,m=g.Tr,x=g.Sr,S=g.Ar,O=b("showNativeOverlaidScrollbars"),L=O[0],E=O[1],M=b("scrollbars.theme"),T=M[0],C=M[1],R=b("scrollbars.visibility"),z=R[0],H=R[1],A=b("scrollbars.autoHide"),I=A[0],k=A[1],D=b("scrollbars.autoHideSuspend"),V=D[0],G=D[1],U=b("scrollbars.autoHideDelay")[0],$=b("scrollbars.dragScroll"),q=$[0],K=$[1],Q=b("scrollbars.clickScroll"),nn=Q[0],rn=Q[1],tn=p&&!e,en=S.x||S.y,on=d||s||h,un=v||H,cn=L&&w.x&&w.y,an=function(n,r){var t="visible"===z||"auto"===z&&"scroll"===n;return X(jr,t,r),t};if(l=U,tn&&(V&&en?(Z(!1),f(),P((function(){f=Vn(B,"scroll",Z.bind(0,!0),{T:!0})}))):Z(!0)),E&&X(zr,cn),C&&(X(a),X(T,!0),a=T),G&&!V&&Z(!0),k&&(i="move"===I,o="leave"===I,J(!(u="never"!==I),!0)),K&&X(Vr,q),rn&&X(Jr,nn),un){var fn=an(m.x,!0),ln=an(m.y,!1);X(Xr,!(fn&&ln))}on&&(Y(g),N(g),W(g),_(g),F(),X(Wr,!y.x,!0),X(Wr,!y.y,!1),X(Ar,x&&!j))},U,function(){M(G),f()}]},we=function(n,r,t){w(n)&&n(r||void 0,t||void 0)},be=function(n,t,e){var i=ht(),o=i.G,u=i.Y,c=i.q,a=i.N,f=Ur(),l=x(n),d=l?n:n.target,s=mt(d);if(t&&!s){var v=!1,h=function(n){var r=Ur()[Qr],t=r&&r.H;return t?t(n,!0):n},p=R({},o(),h(t)),w=Qn(e),b=w[0],g=w[1],y=w[2],m=Kt(n,p),S=m[0],O=m[1],L=m[2],P=pe(n,p,O,(function(n){return y("scroll",[B,n])})),E=P[0],M=P[1],T=P[2],H=function(n,r){return S(n,!!r)},A=H.bind(0,{},!0),I=c(A),k=a(A),D=function(n){!function(n){yt.delete(n)}(d),I(),k(),T(),L(),v=!0,y("destroyed",[B,!!n]),g()},B={options:function(n,r){if(n){var t=r?o():{},e=tr(p,R(t,h(n)));z(e)||(R(p,e),H(e))}return R({},p)},on:b,off:function(n,r){n&&r&&g(n,r)},state:function(){var n=O(),r=n.Hr,t=n.Pr,e=n.Tr,i=n.Ar,o=n.ar,u=n.Or,c=n.Sr;return R({},{overflowEdge:r,overflowAmount:t,overflowStyle:e,hasOverflow:i,padding:o,paddingAbsolute:u,directionRTL:c,destroyed:v})},elements:function(){var n=O.Wr,r=n.$,t=n.J,e=n.ar,i=n.rr,o=n.er,u=n.tr,c=n.ir,a=M.Wr,f=a.ea,l=a.va,d=function(n){var r=n.Gr,t=n.Xr;return{scrollbar:n.Zr,track:t,handle:r}},s=function(n){var r=n.na,t=n.ta,e=d(r[0]);return R({},e,{clone:function(){var n=d(t());return E({},!0,{}),n}})};return R({},{target:r,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:s(f),scrollbarVertical:s(l)})},update:function(n){return H({},n)},destroy:D.bind(0)};return O.Nr((function(n,r,t){E(r,t,n)})),function(n,r){yt.set(n,r)}(d,B),r(C(f),(function(n){return we(f[n],0,B)})),gt(O.Wr.cr,u().cancel,!l&&n.cancel)?(D(!0),B):(O.Yr(),M.Yr(),y("initialized",[B]),O.Nr((function(n,r,t){var e=n.br,i=n.yr,o=n.mr,u=n.Rr,c=n.Mr,a=n.Lr,f=n.wr,l=n.zr;y("updated",[B,{updateHints:{sizeChanged:e,directionChanged:i,heightIntrinsicChanged:o,overflowEdgeChanged:u,overflowAmountChanged:c,overflowStyleChanged:a,contentMutation:f,hostMutation:l},changedOptions:r,force:t}])})),B.update(!0),B)}return s};return be.plugin=function(n){r(function(n){var t=[];return r(b(n)?n:[n],(function(n){r(C(n),(function(r){L(t,Gr[r]=n[r])}))})),t}(n),(function(n){return we(n,be)}))},be.valid=function(n){var r=n&&n.elements,t=w(r)&&r();return m(t)&&!!mt(t.target)},be.env=function(){var n=ht(),r=n.j,t=n.L,e=n.A,i=n.F,o=n.U,u=n.R,c=n.B,a=n.Z,f=n.K,l=n.Y,d=n.W,s=n.G,v=n.X;return R({},{scrollbarsSize:r,scrollbarsOverlaid:t,scrollbarsHiding:e,rtlScrollBehavior:i,flexboxGlue:o,cssCustomProperties:u,scrollTimeline:c,staticDefaultInitialization:a,staticDefaultOptions:f,getDefaultInitialization:l,setDefaultInitialization:d,getDefaultOptions:s,setDefaultOptions:v})},n.ClickScrollPlugin=lt,n.OverlayScrollbars=be,n.ScrollbarsHidingPlugin=at,n.SizeObserverPlugin=et,Object.defineProperty(n,"v",{value:!0}),n}({});
var OverlayScrollbarsGlobal=function(r){"use strict";var n=function(r,n){var t,e=r.v,i=r.o,o=r.u,u=e,c=function(r,n){var e=u,c=r,a=n||(i?!i(e,c):e!==c);return(a||o)&&(u=c,t=e),[u,a,t]};return[n?function(r){return c(n(u,t),r)}:c,function(r){return[u,!!r,t]}]},t="undefined"!=typeof window,e=t&&Node.ELEMENT_NODE,i=Object.prototype,o=i.toString,u=i.hasOwnProperty,c=/^\[object (.+)\]$/,a=function(r){return void 0===r},f=function(r){return null===r},l=function(r){return a(r)||f(r)?""+r:o.call(r).replace(c,"$1").toLowerCase()},s=function(r){return"number"==typeof r},v=function(r){return"string"==typeof r},d=function(r){return"boolean"==typeof r},p=function(r){return"function"==typeof r},h=function(r){return Array.isArray(r)},y=function(r){return"object"==typeof r&&!h(r)&&!f(r)},b=function(r){var n=!!r&&r.length,t=s(n)&&n>-1&&n%1==0;return!(!(h(r)||!p(r)&&t)||n>0&&y(r)&&!(n-1 in r))},w=function(r){if(!r||!y(r)||"object"!==l(r))return!1;var n,t="constructor",e=r[t],i=e&&e.prototype,o=u.call(r,t),c=i&&u.call(i,"isPrototypeOf");if(e&&!o&&!c)return!1;for(n in r);return a(n)||u.call(r,n)},g=function(r){var n=HTMLElement;return!!r&&(n?r instanceof n:r.nodeType===e)},m=function(r){var n=Element;return!!r&&(n?r instanceof n:r.nodeType===e)};function x(r,n){if(b(r))for(var t=0;t<r.length&&!1!==n(r[t],t,r);t++);else r&&x(Object.keys(r),(function(t){return n(r[t],t,r)}));return r}var O=function(r,n){return r.indexOf(n)>=0},S=function(r,n){return r.concat(n)},E=function(r,n,t){return t||v(n)||!b(n)?r.push(n):Array.prototype.push.apply(r,n),r},P=function(r){var n=Array.from,t=[];return n&&r?n(r):(r instanceof Set?r.forEach((function(r){E(t,r)})):x(r,(function(r){E(t,r)})),t)},C=function(r){return!!r&&!r.length},z=function(r){return P(new Set(r))},T=function(r,n,t){x(r,(function(r){return r&&r.apply(void 0,n||[])})),!t&&(r.length=0)},A=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},D=function(r){return r?Object.keys(r):[]},M=function r(n,t,e,i,o,u,c){var a=[t,e,i,o,u,c];return"object"==typeof n&&!f(n)||p(n)||(n={}),x(a,(function(t){x(t,(function(e,i){var o=t[i];if(n===o)return!0;var u=h(o);if(o&&w(o)){var c=n[i],a=c;u&&!h(c)?a=[]:u||w(c)||(a={}),n[i]=r(a,o)}else n[i]=u?o.slice():o}))})),n},L=function(r){for(var n in r)return!1;return!0},R=function(r,n,t){if(a(t))return r?r.getAttribute(n):null;r&&r.setAttribute(n,t)},I=function(r,n){return new Set((R(r,n)||"").split(" "))},k=function(r,n){r&&r.removeAttribute(n)},H=function(r,n,t,e){if(t){var i=I(r,n);i[e?"add":"delete"](t);var o=P(i).join(" ").trim();R(r,n,o)}},j=function(r,n,t){return I(r,n).has(t)},_=t&&Element.prototype,N=function(r,n){var t=[],e=n?m(n)&&n:document;return e?E(t,e.querySelectorAll(r)):t},B=function(r,n){return!!m(r)&&(_.matches||_.msMatchesSelector).call(r,n)},V=function(r){return r?P(r.childNodes):[]},F=function(r){return r&&r.parentElement},X=function(r,n){if(m(r)){var t=_.closest;if(t)return t.call(r,n);do{if(B(r,n))return r;r=F(r)}while(r)}},q=function(r,n,t){var e=X(r,n),i=r&&function(r,n){var t=n?m(n)&&n:document;return t?t.querySelector(r):null}(t,e),o=X(i,n)===e;return!(!e||!i)&&(e===r||i===r||o&&X(X(r,t),n)!==e)},Y=function(){},Z=function r(n){if(b(n))x(P(n),(function(n){return r(n)}));else if(n){var t=F(n);t&&t.removeChild(n)}},$=function(r,n,t){if(t&&r){var e,i=n;return b(t)?(e=document.createDocumentFragment(),x(t,(function(r){r===i&&(i=r.previousSibling),e.appendChild(r)}))):e=t,n&&(i?i!==n&&(i=i.nextSibling):i=r.firstChild),r.insertBefore(e,i||null),function(){return Z(t)}}return Y},W=function(r,n){return $(r,null,n)},G=function(r,n){return $(F(r),r,n)},K=function(r,n){return $(F(r),r&&r.nextSibling,n)},U=function(r){var n=document.createElement("div");return R(n,"class",r),n},J=function(r){var n=U();return n.innerHTML=r.trim(),x(V(n),(function(r){return Z(r)}))},Q=t?window:{},rr=Math.max,nr=Math.min,tr=Math.round,er=Math.abs,ir=Q.cancelAnimationFrame,or=Q.requestAnimationFrame,ur=Q.setTimeout,cr=Q.clearTimeout,ar=function(r){return r.charAt(0).toUpperCase()+r.slice(1)},fr=["-webkit-","-moz-","-o-","-ms-"],lr=["WebKit","Moz","O","MS","webkit","moz","o","ms"],sr={},vr={},dr=function(r){var n=sr[r]||Q[r];return A(sr,r)||(x(lr,(function(t){return!(n=n||Q[t+ar(r)])})),sr[r]=n),n},pr=dr("MutationObserver"),hr=dr("IntersectionObserver"),yr=dr("ResizeObserver"),br=dr("ScrollTimeline"),wr=function(r){for(var n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return r.bind.apply(r,[0].concat(t))},gr=function(r){var n,t=r?ur:or,e=r?cr:ir;return[function(i){e(n),n=t(i,p(r)?r():r)},function(){return e(n)}]},mr=function(r,n){var t,e,i,o=Y,u=n||{},c=u.p,a=u._,f=u.g,l=function(n){o(),cr(t),t=e=void 0,o=Y,r.apply(this,n)},v=function(r){return f&&e?f(e,r):r},d=function(){o!==Y&&l(v(i)||i)},h=function(){var r=P(arguments),n=p(c)?c():c;if(s(n)&&n>=0){var u=p(a)?a():a,f=s(u)&&u>=0,h=n>0?ur:or,y=n>0?cr:ir,b=v(r)||r,w=l.bind(0,b);o();var g=h(w,n);o=function(){return y(g)},f&&!t&&(t=ur(d,u)),e=i=b}else l(r)};return h.m=d,h},xr=/[^\x20\t\r\n\f]+/g,Or=function(r,n,t){var e,i=r&&r.classList,o=0,u=!1;if(i&&n&&v(n)){var c=n.match(xr)||[];for(u=c.length>0;e=c[o++];)u=!!t(i,e)&&u}return u},Sr=function(r,n){Or(r,n,(function(r,n){return r.remove(n)}))},Er=function(r,n){return Or(r,n,(function(r,n){return r.add(n)})),wr(Sr,r,n)},Pr={opacity:1,zIndex:1},Cr=function(r,n){var t=r||"",e=n?parseFloat(t):parseInt(t,10);return e==e?e:0},zr=function(r,n,t){return String((null!=n?n[t]||n.getPropertyValue(t):r.style[t])||"")};function Tr(r,n){var t=v(n);if(h(n)||t){var e=t?"":{};if(r){var i=Q.getComputedStyle(r,null);e=t?zr(r,i,n):n.reduce((function(n,t){return n[t]=zr(r,i,t),n}),e)}return e}r&&x(n,(function(t,i){return function(r,n,t){try{var i=r.style;a(i[n])?i.setProperty(n,t):i[n]=function(r,n){return!Pr[r]&&s(n)?n+"px":n}(n,t)}catch(e){}}(r,i,n[i])}))}var Ar,Dr=function(r){return"rtl"===Tr(r,"direction")},Mr=function(r,n,t){var e=n?n+"-":"",i=t?"-"+t:"",o=e+"top"+i,u=e+"right"+i,c=e+"bottom"+i,a=e+"left"+i,f=Tr(r,[o,u,c,a]);return{t:Cr(f[o],!0),r:Cr(f[u],!0),b:Cr(f[c],!0),l:Cr(f[a],!0)}},Lr=function(r,n){return"translate"+(y(r)?"("+r.x+","+r.y+")":(n?"X":"Y")+"("+r+")")},Rr="paddingTop",Ir="paddingRight",kr="paddingLeft",Hr="paddingBottom",jr="marginLeft",_r="marginRight",Nr="marginBottom",Br="overflowX",Vr="overflowY",Fr="width",Xr="height",qr="hidden",Yr={w:0,h:0},Zr=function(r,n){return n?{w:n[r+"Width"],h:n[r+"Height"]}:Yr},$r=function(r){return Zr("inner",r||Q)},Wr=wr(Zr,"offset"),Gr=wr(Zr,"client"),Kr=wr(Zr,"scroll"),Ur=function(r){var n=parseFloat(Tr(r,Fr))||0,t=parseFloat(Tr(r,Xr))||0;return{w:n-tr(n),h:t-tr(t)}},Jr=function(r){return r.getBoundingClientRect()},Qr=function(r){return!(!r||!r[Xr]&&!r[Fr])},rn=function(r,n){var t=Qr(r);return!Qr(n)&&t},nn=function(){return performance.now()},tn=function(r,n,t,e){if(r&&n){var i=!0;return x(t,(function(t){(e?e(r[t]):r[t])!==(e?e(n[t]):n[t])&&(i=!1)})),i}return!1},en=function(r,n){return tn(r,n,["w","h"])},on=function(r,n){return tn(r,n,["x","y"])},un=function(r,n){return tn(r,n,["t","r","b","l"])},cn=function(r,n,t){return tn(r,n,[Fr,Xr],t&&function(r){return tr(r)})},an="passive",fn=function(){if(a(Ar)){Ar=!1;try{Q.addEventListener(an,Y,Object.defineProperty({},an,{get:function(){Ar=!0}}))}catch(r){}}return Ar},ln=function(r){return r.split(" ")},sn=function(r,n,t,e){x(ln(n),(function(n){r.removeEventListener(n,t,e)}))},vn=function(r,n,t,e){var i,o=fn(),u=null!=(i=o&&e&&e.S)?i:o,c=e&&e.O||!1,a=e&&e.C||!1,f=o?{passive:u,capture:c}:c;return wr(T,ln(n).map((function(n){var e=a?function(i){sn(r,n,e,c),t(i)}:t;return r.addEventListener(n,e,f),wr(sn,r,n,e,c)})))},dn=function(r){return r.stopPropagation()},pn=function(r){return r.preventDefault()},hn={x:0,y:0},yn=function(r){var n=r&&Jr(r);return n?{x:n.left+Q.pageYOffset,y:n.top+Q.pageXOffset}:hn},bn=function(r,n,t){return t?t.n?-r:t.i?n-r:r:r},wn=function(r,n){var t=s(n)?{x:n,y:n}:n||{},e=t.x,i=t.y;s(e)&&(r.scrollLeft=e),s(i)&&(r.scrollTop=i)},gn=function(r){return{x:r.scrollLeft,y:r.scrollTop}},mn=function(r,n){x(h(n)?n:[n],r)},xn=function(r){var n=new Map,t=function(r,t){if(r){var e=n.get(r);mn((function(r){e&&e[r?"delete":"clear"](r)}),t)}else n.forEach((function(r){r.clear()})),n.clear()},e=function r(e,i){if(v(e)){var o=n.get(e)||new Set;return n.set(e,o),mn((function(r){p(r)&&o.add(r)}),i),wr(t,e,i)}d(i)&&i&&t();var u=D(e),c=[];return x(u,(function(n){var t=e[n];t&&E(c,r(n,t))})),wr(T,c)};return e(r||{}),[e,t,function(r,t){x(P(n.get(r)),(function(r){t&&!C(t)?r.apply(0,t):r()}))}]},On=function(r){return JSON.stringify(r,(function(r,n){if(p(n))throw 0;return n}))},Sn=function(r,n){return r?(""+n).split(".").reduce((function(r,n){return r&&A(r,n)?r[n]:void 0}),r):void 0},En={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Pn=function r(n,t){var e={};return x(S(D(t),D(n)),(function(i){var o=n[i],u=t[i];if(y(o)&&y(u))M(e[i]={},r(o,u)),L(e[i])&&delete e[i];else if(A(t,i)&&u!==o){var a=!0;if(h(o)||h(u))try{On(o)===On(u)&&(a=!1)}catch(c){}a&&(e[i]=u)}})),e},Cn=function(r,n,t){return function(e){return[Sn(r,e),t||void 0!==Sn(n,e)]}},zn="data-overlayscrollbars",Tn="os-environment",An=Tn+"-flexbox-glue",Dn=An+"-max",Mn="os-scrollbar-hidden",Ln=zn+"-initialize",Rn=zn,In=Rn+"-overflow-x",kn=Rn+"-overflow-y",Hn="overflowVisible",jn="scrollbarHidden",_n="scrollbarPressed",Nn="updating",Bn=zn+"-viewport",Vn="arrange",Fn="scrollbarHidden",Xn=Hn,qn=zn+"-padding",Yn=Xn,Zn=zn+"-content",$n="os-size-observer",Wn=$n+"-appear",Gn=$n+"-listener",Kn=Gn+"-scroll",Un=Gn+"-item",Jn=Un+"-final",Qn="os-trinsic-observer",rt="os-no-css-vars",nt="os-theme-none",tt="os-scrollbar",et=tt+"-rtl",it=tt+"-horizontal",ot=tt+"-vertical",ut=tt+"-track",ct=tt+"-handle",at=tt+"-visible",ft=tt+"-cornerless",lt=tt+"-transitionless",st=tt+"-interaction",vt=tt+"-unusable",dt=tt+"-auto-hide",pt=dt+"-hidden",ht=tt+"-wheel",yt=ut+"-interactive",bt=ct+"-interactive",wt={},gt={},mt=function(r,n,t,e){return D(r).map((function(i){var o=r[i],u=o.static,c=o.instance,a=t?c:u;if(a){var f=t?a(t,n):a(n);return(e||gt)[i]=f}}))},xt=function(r){return gt[r]},Ot={},St={get exports(){return Ot},set exports(r){Ot=r}};!function(r){function n(){return r.exports=n=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}return r},r.exports.T=!0,r.exports["default"]=r.exports,n.apply(this,arguments)}r.exports=n,r.exports.T=!0,r.exports["default"]=r.exports}(St);var Et,Pt="__osOptionsValidationPlugin",Ct="__osSizeObserverPlugin",zt=function(r){return(r={})[Ct]={static:function(){return function(r,n,t){var e,i,o=3333333,u="scroll",c=J('<div class="'+Un+'" dir="ltr"><div class="'+Un+'"><div class="'+Jn+'"></div></div><div class="'+Un+'"><div class="'+Jn+'" style="width: 200%; height: 200%"></div></div></div>'),a=c[0],f=a.lastChild,l=a.firstChild,s=null==l?void 0:l.firstChild,v=Wr(a),d=v,p=!1,h=function(){wn(l,o),wn(f,o)},y=function(r){i=0,p&&(v=d,n(!0===r))},b=function(r){d=Wr(a),p=!r||!en(d,v),r?(dn(r),p&&!i&&(ir(i),i=or(y))):y(!1===r),h()},w=[W(r,c),vn(l,u,b),vn(f,u,b)];return Er(r,Kn),Tr(s,((e={})[Fr]=o,e[Xr]=o,e)),or(h),[t?wr(b,!1):h,w]}}},r}(),Tt=0,At="__osScrollbarsHidingPlugin",Dt=function(r){return(r={})[At]={static:function(){return{H:function(r){var n=r.P,t=r.A,e=!(r.R||n||!t.x&&!t.y)&&document.createElement("style");return e&&(R(e,"id",Bn+"-"+Vn+"-"+Tt),Tt++),e},D:function(r,n,t,e,i,o,u){return[function(n,o,u,c){if(r){var a=i.I,f=n.L,l=n.M,s=l.x,v=l.y,d=f.x,p=f.y,h=a[c?Ir:kr],y=a.paddingTop,b=o.w+u.w,w=o.h+u.h,g={w:p&&v?p+b-h+"px":"",h:d&&s?d+w-y+"px":""};if(e){var m=e.sheet;if(m){var x=m.cssRules;if(x){x.length||m.insertRule("#"+R(e,"id")+" + ["+Bn+"~='"+Vn+"']::before {}",0);var O=x[0].style;O[Fr]=g.w,O[Xr]=g.h}}}else Tr(t,{"--os-vaw":g.w,"--os-vah":g.h})}return r},function(e,c,a){if(r){var f=a||o(e),l=i.I,s=f.M,v=s.x,d=s.y,p={},h=function(r){return x(r,(function(r){p[r]=l[r]}))};v&&h([Nr,Rr,Hr]),d&&h([jr,_r,kr,Ir]);var y=Tr(t,D(p));return H(t,Bn,Vn),n||(p[Xr]=""),Tr(t,p),[function(){u(f,c,r,y),Tr(t,y),H(t,Bn,Vn,!0)},f]}return[Y]}]},k:function(){var r={w:0,h:0},n=0;return function(t,e,i){var o=$r(),u={w:o.w-r.w,h:o.h-r.h};if(0!==u.w||0!==u.h){var c=er(u.w),a=er(u.h),f={w:er(tr(o.w/(r.w/100))),h:er(tr(o.h/(r.h/100)))},l=function(){var r=Q.screen,n=r.deviceXDPI||0,t=r.logicalXDPI||1;return Q.devicePixelRatio||n/t}(),s=c>2&&a>2,v=!function(r,n){var t=er(r),e=er(n);return!(t===e||t+1===e||t-1===e)}(f.w,f.h);if(s&&v&&l!==n&&l>0){var d=e(),p=d[0],h=d[1];M(t.V,p),h&&i()}r=o,n=l}}}}}},r}(),Mt="__osClickScrollPlugin",Lt=function(r){return(r={})[Mt]={static:function(){return function(r,n,t,e,i){var o=0,u=Y;return function c(a){u=function(r,n,t,e,i){var o=0,u=nn(),c=rr(0,133),a=function t(a){var f=nn(),l=f-u>=c,s=a?1:1-(rr(0,u+c-f)/c||0),v=(n-r)*(p(i)?i(s,s*c,0,1,c):s)+r,d=l||1===s;e&&e(v,0,d),o=d?0:or((function(){return t()}))};return a(),function(r){ir(o),r&&a(r)}}(a,a+e*Math.sign(t),0,(function(t,a,f){r(t);var l=n();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var s=ur((function(){c(t)}),222);u=function(){clearTimeout(s)}}o++}}))}(0),function(){return u()}}}},r}(),Rt=function(r,n,t,e){W(r,n);var i=Gr(n),o=Wr(n),u=Ur(t);return e&&Z(n),{x:o.h-i.h+u.h,y:o.w-i.w+u.w}},It=function(r,n){var t;Tr(r,((t={})[Br]=qr,t[Vr]=qr,t.direction="rtl",t)),wn(r,{x:0});var e=yn(r),i=yn(n);wn(r,{x:-999});var o=yn(n);return{i:e.x===i.x,n:i.x!==o.x}},kt=function(r,n){var t=Er(r,An),e=Jr(r),i=Jr(n),o=cn(i,e,!0),u=Er(r,Dn),c=Jr(r),a=Jr(n),f=cn(a,c,!0);return t(),u(),o&&f},Ht=function(){return Et||(Et=function(){var r=document.body,t=J('<div class="'+Tn+'"><div></div></div>')[0],i=t.firstChild,o=xn(),u=o[0],c=o[2],a=n({v:Rt(r,t,i),o:on},wr(Rt,r,t,i,!0)),f=a[0],l=(0,a[1])()[0],s=function(r){var n=!1,t=Er(r,Mn);try{n="none"===Tr(r,function(r){var n=vr[r];if(A(vr,r))return n;var t=ar(r),e=U().style;return x(fr,(function(i){var o=i.replace(/-/g,""),u=[r,i+r,o+t,ar(o)+t];return!(n=u.find((function(r){return void 0!==e[r]})))})),vr[r]=n||""}("scrollbar-width"))||"none"===Q.getComputedStyle(r,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t(),n}(t),v={x:0===l.x,y:0===l.y},d={elements:{host:null,padding:!s,viewport:function(r){return s&&r===r.ownerDocument.body&&r},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=M({},En),h=wr(M,{},p),y=wr(M,{},d),b={V:l,A:v,P:s,R:"-1"===Tr(t,"zIndex"),j:!!br,U:It(t,i),B:kt(t,i),F:wr(u,"z"),N:wr(u,"r"),q:y,W:function(r){return M(d,r)&&y()},Y:h,G:function(r){return M(p,r)&&h()},X:M({},d),Z:M({},p)},w=wr(vn,Q,"resize"),g=mr((function(r){return c(r)}),{p:33,_:99});return k(t,"style"),Z(t),w(wr(g,"r")),s||v.x&&v.y||w((function(){var r=xt(At);(r?r.k():Y)(b,f,wr(g,"z"))})),b}()),Et},jt=function(r,n){return p(n)?n.apply(0,r):n},_t=function(r,n,t,e){var i=a(e)?t:e;return jt(r,i)||n.apply(0,r)},Nt=function(r,n,t,e){var i=a(e)?t:e,o=jt(r,i);return!!o&&(g(o)?o:n.apply(0,r))},Bt=function(r,n){var t=n||{},e=t.nativeScrollbarsOverlaid,i=t.body,o=Ht(),u=o.A,c=o.P,l=(0,o.q)().cancel,s=l.nativeScrollbarsOverlaid,v=l.body,d=null!=e?e:s,p=a(i)?v:i,h=(u.x||u.y)&&d,y=r&&(f(p)?!c:p);return!!h||!!y},Vt=new WeakMap,Ft=function(r){return Vt.get(r)},Xt=function(r,n,t,e){var i=!1,o=e||{},u=o.$,c=o.J,a=o.K,f=o.rr,l=o.ar,s=o.er,v=mr((function(){return i&&t(!0)}),{p:33,_:99}),d=function(r,n,t){var e=!1,i=!!t&&new WeakMap,o=function(o){if(i&&t){var u=t.map((function(n){var t=n||[],e=t[0],i=t[1];return[i&&e?(o||N)(e,r):[],i]}));x(u,(function(t){return x(t[0],(function(o){var u=t[1],c=i.get(o)||[];if(r.contains(o)&&u){var a=vn(o,u.trim(),(function(r){e?(a(),i.delete(o)):n(r)}));i.set(o,E(c,a))}else T(c),i.delete(o)}))}))}};return o(),[function(){e=!0},o]}(r,v,a),p=d[0],h=d[1],y=c||[],b=S(u||[],y),w=function(i,o){if(!C(o)){var u=l||Y,c=s||Y,a=[],v=[],d=!1,p=!1;if(x(o,(function(t){var i=t.attributeName,o=t.target,l=t.type,s=t.oldValue,h=t.addedNodes,b=t.removedNodes,w="attributes"===l,g="childList"===l,m=r===o,S=w&&i,P=S?R(o,i||""):null,C=S&&s!==P,z=O(y,i)&&C;if(n&&(g||!m)){var T=w&&C,A=T&&f&&B(o,f),D=(A?!u(o,i,s,P):!w||T)&&!c(t,!!A,r,e);x(h,(function(r){return E(a,r)})),x(b,(function(r){return E(a,r)})),p=p||D}!n&&m&&C&&!u(o,i,s,P)&&(E(v,i),d=d||z)})),h((function(r){return z(a).reduce((function(n,t){return E(n,N(r,t)),B(t,r)?E(n,t):n}),[])})),n)return!i&&p&&t(!1),[!1];if(!C(v)||d){var b=[z(v),d];return!i&&t.apply(0,b),b}}},g=new pr(wr(w,!1));return[function(){return g.observe(r,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:n,childList:n,characterData:n}),i=!0,function(){i&&(p(),g.disconnect(),i=!1)}},function(){if(i)return v.m(),w(!0,g.takeRecords())}]},qt=function(r,t,e){var i=!1,o=3333333,u=e||{},c=u.tr,a=u.nr,f=u.vr,l=xt(Ct),s=Ht().U,v=wr(Dr,r),d=gr(33),p=d[0],y=d[1],b=n({v:!1,u:!0})[0];return function(){var e=[y,vn(Q,"resize",(function(){i=!!f,p((function(){i=!1}))}))],u=J('<div class="'+$n+'"><div class="'+Gn+'"></div></div>')[0],d=u.firstChild,w=function(r){var n=r instanceof ResizeObserverEntry,e=!n&&h(r),a=!1,f=!1,l=!0;if(n){var v=b(r.contentRect),d=v[0],p=v[2],y=Qr(d),w=rn(d,p);l=!(a=!(f=!p||w)&&(!y||i))}else e?l=r[1]:f=!0===r;if(c&&l){var g=e?r[0]:Dr(u);wn(u,{x:bn(o,o,g&&s),y:o})}a||t({ir:e?r:void 0,ur:!e,nr:f}),i=!1};if(yr){var g=new yr((function(r){return w(r.pop())}));g.observe(d),E(e,(function(){g.disconnect()}))}else{if(!l)return Y;var m=l(d,w,a),x=m[0],O=m[1];E(e,S([Er(u,Wn),vn(u,"animationstart",x)],O))}if(c){var P=n({v:void 0},v)[0];E(e,vn(u,"scroll",(function(r){var n=P(),t=n[0],e=n[1],i=n[2];e&&(Sr(d,"ltr rtl"),Er(d,t?"rtl":"ltr"),w([!!t,e,i])),dn(r)})))}return wr(T,E(e,W(r,u)))}},Yt=function(r,t){var e,i=U(Qn),o=n({v:!1})[0],u=function(r,n){if(r){var e=o(function(r){return 0===r.h||r.isIntersecting||r.intersectionRatio>0}(r));return e[1]&&!n&&t(e)&&[e]}},c=function(r,n){return u(n.pop(),r)};return[function(){var n=[];if(hr)(e=new hr(wr(c,!1),{root:r})).observe(i),E(n,(function(){e.disconnect()}));else{var t=function(){var r=Wr(i);u(r)};E(n,qt(i,t)()),t()}return wr(T,E(n,W(r,i)))},function(){return e&&c(!0,e.takeRecords())}]},Zt=function(r,t){var e,i,o,u,c,a=Ht().P,f="["+Rn+"]",l="["+Bn+"]",d=["tabindex"],y=["wrap","cols","rows"],b=["id","class","style","open"],w={lr:!1,cr:Dr(r.sr)},g=r.sr,m=r.dr,E=r.pr,P=r._r,C=r.hr,z=r.br,T=r.gr,A=Ht().B,L=n({o:en,v:{w:0,h:0}},(function(){var r=z(Xn,Hn),n=z(Vn,""),t=n&&gn(m);T(Xn,Hn),T(Vn,""),T("",Nn,!0);var e=Kr(E),i=Kr(m),o=Ur(m);return T(Xn,Hn,r),T(Vn,"",n),T("",Nn),wn(m,t),{w:i.w+e.w+o.w,h:i.h+e.h+o.h}})),I=L[0],H=P?y:S(b,y),j=mr(t,{p:function(){return e},_:function(){return i},g:function(r,n){var t=r[0],e=n[0];return[S(D(t),D(e)).reduce((function(r,n){return r[n]=t[n]||e[n],r}),{})]}}),_=function(r){x(r||d,(function(r){if(O(d,r)){var n=R(g,r);v(n)?R(m,r,n):k(m,r)}}))},N=function(r,n){var e=r[0],i={mr:r[1]};return M(w,{lr:e}),!n&&t(i),i},B=function(r){var n=r.ur,e=r.ir,i=r.nr,o=(!n||i||e)&&a?j:t,u=e||[],c=u[0],f=u[1];e&&M(w,{cr:c}),o({ur:n||i,nr:i,Sr:f})},V=function(r,n){var e=I()[1],i={yr:e};return e&&!n&&(r?t:j)(i),i},F=function(r,n,t){var e={wr:n};return n&&!t?j(e):C||_(r),e},Y=E||!A?Yt(g,N):[],Z=Y[0],$=Y[1],W=!C&&qt(g,B,{nr:!0,tr:!0,vr:!0}),G=Xt(g,!1,F,{J:b,$:S(b,d)}),K=G[0],U=G[1],J=C&&yr&&new yr((function(r){var n=r[r.length-1].contentRect;B({ur:!0,nr:rn(n,c)}),c=n}));return[function(){_(),J&&J.observe(g);var r=W&&W(),n=Z&&Z(),t=K();return function(){J&&J.disconnect(),r&&r(),n&&n(),u&&u(),t()}},function(r){var n=r.Or,t=r.Cr,c=r.Er,a={},v=n("update.ignoreMutation")[0],d=n("update.attributes"),y=d[0],b=d[1],w=n("update.elementEvents"),g=w[0],x=w[1],O=n("update.debounce"),P=O[0],z=O[1],T=t||c;if(x||b){o&&o(),u&&u();var A=Xt(E||m,!0,V,{$:S(H,y||[]),K:g,rr:f,er:function(r,n){var t=r.target,e=r.attributeName;return!(n||!e||C)&&q(t,f,l)||!!X(t,"."+tt)||!!function(r){return p(v)&&v(r)}(r)}}),D=A[0],L=A[1];u=D(),o=L}if(z)if(j.m(),h(P)){var R=P[0],I=P[1];e=s(R)&&R,i=s(I)&&I}else s(P)?(e=P,i=!1):(e=!1,i=!1);if(T){var k=U(),_=$&&$(),B=o&&o();k&&M(a,F(k[0],k[1],T)),_&&M(a,N(_[0],T)),B&&M(a,V(B[0],T))}return a},w]},$t=function(r,n,t){return rr(r,nr(n,t))},Wt=function(r,n,t){var e=function(r,n){return[n&&n.i?r:0,bn(r,r,n)]}(tr(n),t),i=e[0],o=e[1],u=(o-r)/o,c=r/i,a=r/o,f=t?t.n?u:t.i?c:a:a;return $t(0,1,f)},Gt=function(r,n,t,e){if(e){var i=t?"x":"y",o=e.Tr,u=e.Hr[i],c=o[i];return $t(0,1,u/(u+c))}var a=t?Fr:Xr,f=Jr(r)[a],l=Jr(n)[a];return $t(0,1,f/l)},Kt=function(r,n,t){var e=Ht(),i=e.q,o=e.R,u=i().scrollbars.slot,c=n.zr,a=n.sr,f=n.dr,l=n.Pr,s=n.Ar,v=n.Rr,p=n.hr,y=((l?{}:r).scrollbars||{}).slot,b=new Map,w=function(r){return br&&new br({source:s,axis:r})},g=w("x"),m=w("y"),P=Nt([c,a,f],(function(){return p&&v?c:a}),u,y),z=function(r){return p&&!v&&F(r)===f},A=function(r){b.forEach((function(n,t){(!r||O(h(r)?r:[r],t))&&((n||[]).forEach((function(r){r&&r.cancel()})),b.delete(t))}))},D=function(r,n,t){var e=t?Er:Sr;x(r,(function(r){e(r.Dr,n)}))},M=function(r,n){x(r,(function(r){var t=n(r);Tr(t[0],t[1])}))},L=function(r,n,t){M(r,(function(r){var e,i=r.Ir,o=r.Lr;return[i,(e={},e[t?Fr:Xr]=(100*Gt(i,o,t,n)).toFixed(3)+"%",e)]}))},R=function(r,n,t){m||m||M(r,(function(r){var e=r.Ir,i=r.Lr,o=r.Dr,u=function(r,n,t,e,i,o){var u=Ht().U,c=o?"x":"y",a=o?"Left":"Top",f=e.Tr,l=Gt(r,n,o);return 1/l*(1-l)*Wt(t["scroll"+a],f[c],o&&i&&u)}(e,i,s,n,Dr(o),t);return[e,{transform:u==u?Lr((100*u).toFixed(3)+"%",t):""}]}))},I=function(r){var n=r.Dr,t=z(n)&&n,e=gn(s);return[t,{transform:t?Lr({x:e.x+"px",y:e.y+"px"}):""}]},k=function(r,n,t,e){return n&&r.animate(t,{timeline:n,composite:e})},H=function(r,n,t,e){return k(r,n,{transform:[Lr("0px",e),Lr(rr(0,t-.5)+"px",e)]},"add")},j=[],_=[],N=[],B=function(r,n,t){var e=d(t),i=!e||!t;(!e||t)&&D(_,r,n),i&&D(N,r,n)},V=function(r){var n=r?it:ot,e=r?_:N,i=C(e)?lt:"",u=U(tt+" "+n+" "+i),c=U(ut),a=U(ct),f={Dr:u,Lr:c,Ir:a};return o||Er(u,rt),E(e,f),E(j,[W(u,c),W(c,a),wr(Z,u),A,t(f,B,r)]),f},X=wr(V,!0),q=wr(V,!1);return X(),q(),[{Mr:function(r){L(_,r,!0),L(N,r)},kr:function(r){R(_,r,!0),R(N,r)},Vr:function(){var r=function(r,n){var t,e=n.Dr,i=n.Ir,o=r&&Dr(e);A(i),b.set(i,[k(i,r?g:m,(t={transform:[Lr("0%",r),Lr(r&&o?"100%":"-100%",r)]},t[r?o?"right":"left":"top"]=["0%","100%"],t))])};_.forEach(wr(r,!0)),N.forEach(wr(r,!1))},jr:function(r){var n=r.Tr;S(N,_).forEach((function(r){var t=r.Dr;A(t),z(t)&&b.set(t,[H(t,g,n.x,!0),H(t,m,n.y)])}))},Ur:function(){m||m||(p&&M(_,I),p&&M(N,I))},Br:B,Fr:{j:g,Nr:_,qr:X,Wr:wr(M,_)},Yr:{j:m,Nr:N,qr:q,Wr:wr(M,N)}},function(){return W(P,_[0].Dr),W(P,N[0].Dr),ur((function(){B(lt)}),300),wr(T,j)}]},Ut=function(r,n,t){var e=n.sr,i=n.Ar,o=n.Gr,u=function(n,u){var c=n.Ir,a=n.Lr,f="scroll"+(u?"Left":"Top"),l="client"+(u?"X":"Y"),s=u?Fr:Xr,v=u?"left":"top",d=u?"w":"h",p=u?"x":"y",h="pointerup pointerleave pointercancel lostpointercapture",y=function(r,n){return function(e){var o=t.Tr,u=Wr(a)[d]-Wr(c)[d],l=n*e/u*o[p];i[f]=r+l}};return vn(a,"pointerdown",(function(n){var t=X(n.target,"."+ct)===c,u=t?c:a,p=r.scrollbars,b=n.button,w=n.isPrimary,g=n.pointerType,m=p.pointers,x=0===b&&w&&p[t?"dragScroll":"clickScroll"]&&(m||[]).includes(g);if(H(e,Rn,_n,!0),x){var O=!t&&n.shiftKey,S=wr(Jr,c),P=wr(Jr,a),C=function(r,n){return(r||S())[v]-(n||P())[v]},z=tr(Jr(i)[s])/Wr(i)[d]||1,A=y(i[f]||0,1/z),D=n[l],M=S(),L=P(),R=M[s],I=C(M,L)+R/2,k=D-L[v],j=t?0:k-I,_=function(r){T(N),u.releasePointerCapture(r.pointerId)},N=[wr(H,e,Rn,_n),vn(o,h,_),vn(o,"selectstart",(function(r){return pn(r)}),{S:!1}),vn(a,h,_),vn(a,"pointermove",(function(r){var n=r[l]-D;(t||O)&&A(j+n)}))];if(O)A(j);else if(!t){var B=xt(Mt);B&&E(N,B(A,C,j,R,k))}u.setPointerCapture(n.pointerId)}}))};return function(r,n,t){var c=r.Dr,a=gr(333),f=a[0],l=a[1],s=!!i.scrollBy,v=!0;return wr(T,[vn(c,"pointerenter",(function(){n(st,!0)})),vn(c,"pointerleave pointercancel",(function(){n(st,!1)})),vn(c,"wheel",(function(r){var t=r.deltaX,o=r.deltaY,u=r.deltaMode;s&&v&&0===u&&F(c)===e&&i.scrollBy({left:t,top:o,behavior:"smooth"}),v=!1,n(ht,!0),f((function(){v=!0,n(ht)})),pn(r)}),{S:!1,O:!0}),vn(c,"mousedown",wr(vn,o,"click",dn,{C:!0,O:!0}),{O:!0}),u(r,t),l])}},Jt=function(r){var n=r.pr;return function(r){var t,e=r.Zr,i=r.ia,o=r.Er,u=Ht().B,c=(e||{}).mr,a=i.lr;!n&&u||!c&&!o||Tr(n,((t={})[Xr]=a?"":"100%",t))}},Qt=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.hr,c=n({o:un,v:Mr()},wr(Mr,e,"padding","")),a=c[0],f=c[1];return function(r){var n=r.Or,e=r.Zr,c=r.ia,l=r.Er,s=f(l),v=s[0],d=s[1],p=Ht(),h=p.P,y=p.B,b=e||{},w=b.ur,g=b.yr,m=b.Sr,x=c.cr,O=n("paddingAbsolute"),S=O[0],E=O[1];if(w||d||l||!y&&g){var P=a(l);v=P[0],d=P[1]}var C=!u&&(E||m||d);if(C){var z,T,A=!S||!i&&!h,D=v.r+v.l,L=v.t+v.b,R=((z={})[_r]=A&&!x?-D:0,z[Nr]=A?-L:0,z[jr]=A&&x?-D:0,z.top=A?-v.t:0,z.right=A?x?-v.r:"auto":0,z.left=A?x?"auto":-v.l:0,z[Fr]=A?"calc(100% + "+D+"px)":"",z),I=((T={})[Rr]=A?v.t:0,T[Ir]=A?v.r:0,T[Hr]=A?v.b:0,T[kr]=A?v.l:0,T);Tr(i||o,R),Tr(o,I),M(t,{ea:v,oa:!A,I:i?I:M({},R,I)})}return{ua:C}}},re=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.ta,c=r.hr,a=r.gr,f=r.Rr,l=r.na,s=wr(rr,0),v="visible",d=42,p={o:en,v:{w:0,h:0}},h={o:on,v:{x:qr,y:qr}},y=function(r,n){var t=Q.devicePixelRatio%1!=0?1:0,e={w:s(r.w-n.w),h:s(r.h-n.h)};return{w:e.w>t?e.w:0,h:e.h>t?e.h:0}},b=function(r){return 0===r.indexOf(v)},w=Ht(),g=w.V,m=w.B,x=w.P,O=w.A,S=xt(At),E=!c&&!x&&(O.x||O.y),P=f&&c,C=n(p,wr(Ur,o)),z=C[0],T=C[1],A=n(p,wr(Kr,o)),D=A[0],L=A[1],I=n(p),k=I[0],j=I[1],_=n(p),N=_[0],B=_[1],V=n(h)[0],F=function(r,n){var i;if(Tr(o,((i={})[Xr]="",i)),n){var u,c=t.oa,a=t.ea,f=r.la,l=r.L,s=Ur(e),v=Gr(e),d="content-box"===Tr(o,"boxSizing"),p=c||d?a.b+a.t:0,h=!(O.x&&d);Tr(o,((u={})[Xr]=v.h+s.h+(f.x&&h?l.x:0)-p,u))}},X=function(r,n){var t=x||r?0:d,e=function(r,e,i){var u=Tr(o,r),c="scroll"===(n?n[r]:u);return[u,c,c&&!x?e?t:i:0,e&&!!t]},i=e(Br,O.x,g.x),u=i[0],c=i[1],a=i[2],f=i[3],l=e(Vr,O.y,g.y);return{ra:{x:u,y:l[0]},la:{x:c,y:l[1]},L:{x:a,y:l[2]},M:{x:f,y:l[3]}}},q=function(r,n,t,e){var i=function(r,n){var t=b(r),e=n&&t&&r.replace(v+"-","")||"";return[n&&!t?r:"",b(e)?"hidden":e]},o=i(t.x,n.x),u=o[0],c=o[1],a=i(t.y,n.y),f=a[0],l=a[1];return e[Br]=c&&f?c:u,e[Vr]=l&&u?l:f,X(r,e)},Z=function(r,n,e,i){var o=r.L,u=r.M,c=u.x,a=u.y,f=o.x,l=o.y,s=t.I,v=n?jr:_r,d=n?kr:Ir,p=s[v],h=s[Nr],y=s[d],b=s[Hr];i[Fr]="calc(100% + "+(l+-1*p)+"px)",i[v]=-l+p,i[Nr]=-f+h,e&&(i[d]=y+(a?l:0),i[Hr]=b+(c?f:0))},$=S?S.D(E,m,o,u,t,X,Z):[function(){return E},function(){return[Y]}],W=$[0],G=$[1];return function(r,n){var u,f=r.Or,v=r.Zr,d=r.ia,p=r.Er,h=n.ua,w=v||{},g=w.ur,S=w.wr,E=w.yr,C=w.mr,A=w.Sr,I=d.lr,_=d.cr,Y=f("showNativeOverlaidScrollbars"),$=Y[0],K=Y[1],U=f("overflow"),J=U[0],Q=U[1],nr=$&&O.x&&O.y,tr=!c&&!m&&(g||E||S||K||C),er=g||h||E||A||K,ir=b(J.x),or=b(J.y),ur=ir||or,cr=T(p),ar=L(p),fr=j(p),lr=B(p);if(K&&x&&a(Fn,jn,!nr),tr&&(u=X(nr),F(u,I)),er){ur&&a(Xn,Hn,!1);var sr=G(nr,_,u),vr=sr[0],dr=sr[1],pr=cr=z(p),hr=pr[0],yr=pr[1],br=ar=D(p),wr=br[0],gr=br[1],mr=Gr(o),xr=wr,Or=mr;vr(),(gr||yr||K)&&dr&&!nr&&W(dr,wr,hr,_)&&(Or=Gr(o),xr=Kr(o));var Sr=$r(l),Er={w:s(rr(wr.w,xr.w)+hr.w),h:s(rr(wr.h,xr.h)+hr.h)},Pr={w:s((P?Sr.w:Or.w+s(mr.w-wr.w))+hr.w),h:s((P?Sr.h:Or.h+s(mr.h-wr.h))+hr.h)};lr=N(Pr),fr=k(y(Er,Pr),p)}var Cr=lr,zr=Cr[0],Ar=Cr[1],Dr=fr,Mr=Dr[0],Lr=Dr[1],Rr=ar,Ir=Rr[0],kr=Rr[1],Hr=cr,Xr=Hr[0],qr=Hr[1],Yr={x:Mr.w>0,y:Mr.h>0},Zr=ir&&or&&(Yr.x||Yr.y)||ir&&Yr.x&&!Yr.y||or&&Yr.y&&!Yr.x;if(h||A||qr||kr||Ar||Lr||Q||K||tr||er){var Wr,Ur=((Wr={})[_r]=0,Wr[Nr]=0,Wr[jr]=0,Wr[Fr]="",Wr[Br]="",Wr[Vr]="",Wr),Jr=q(nr,Yr,J,Ur),Qr=W(Jr,Ir,Xr,_);c||Z(Jr,_,Qr,Ur),tr&&F(Jr,I),c?(R(e,In,Ur[Br]),R(e,kn,Ur[Vr])):Tr(o,Ur)}H(e,Rn,Hn,Zr),H(i,qn,Yn,Zr),c||H(o,Bn,Xn,ur);var rn=V(X(nr).ra),nn=rn[0],tn=rn[1];return M(t,{ra:nn,Hr:{x:zr.w,y:zr.h},Tr:{x:Mr.w,y:Mr.h},aa:Yr}),{Qr:tn,Jr:Ar,Kr:Lr}}},ne=function(r){var n,t=function(r){var n=Ht(),t=n.q,e=n.P,i=xt(At),o=i&&i.H,u=t().elements,c=u.host,a=u.padding,f=u.viewport,l=u.content,s=g(r),v=s?{}:r,d=v.elements||{},p=d.host,h=d.padding,y=d.viewport,b=d.content,w=s?r:v.target,m=B(w,"textarea"),x=w.ownerDocument,S=x.documentElement,P=w===x.body,C=x.defaultView,z=wr(_t,[w]),A=wr(Nt,[w]),M=wr(jt,[w]),L=wr(U,""),I=wr(z,L,f),_=wr(A,L,l),N=I(y),X=N===w,q=X&&P,$=!X&&_(b),J=!X&&g(N)&&N===$,Q=J&&!!M(l),rr=Q?I():N,nr=Q?$:_(),tr=q?S:J?rr:N,er=m?z(L,c,p):w,ir=q?tr:er,or=J?nr:$,ur=x.activeElement,cr=!X&&C.top===C&&ur===w,ar={zr:w,sr:ir,dr:tr,ea:!X&&A(L,a,h),pr:or,ta:!X&&!e&&o&&o(n),Ar:q?S:tr,Xr:q?x:tr,na:C,Gr:x,_r:m,Rr:P,Pr:s,hr:X,va:J,br:function(r,n){return j(tr,X?Rn:Bn,X?n:r)},gr:function(r,n,t){return H(tr,X?Rn:Bn,X?n:r,t)}},fr=D(ar).reduce((function(r,n){var t=ar[n];return E(r,!(!t||!g(t)||F(t))&&t)}),[]),lr=function(r){return r?O(fr,r):null},sr=ar.zr,vr=ar.sr,dr=ar.ea,pr=ar.dr,hr=ar.pr,yr=ar.ta,br=[function(){k(vr,Rn),k(vr,Ln),k(sr,Ln),P&&(k(S,Rn),k(S,Ln))}],gr=m&&lr(vr),mr=m?sr:V([hr,pr,dr,vr,sr].find((function(r){return!1===lr(r)}))),xr=q?sr:hr||pr,Or=wr(T,br);return[ar,function(){R(vr,Rn,X?"viewport":"host"),R(dr,qn,""),R(hr,Zn,""),X||R(pr,Bn,"");var r=P&&!X?Er(F(w),Mn):Y,n=function(r){W(F(r),V(r)),Z(r)};if(gr&&(K(sr,vr),E(br,(function(){K(vr,sr),Z(vr)}))),W(xr,mr),W(vr,dr),W(dr||vr,!X&&pr),W(pr,hr),E(br,(function(){r(),k(dr,qn),k(hr,Zn),k(pr,In),k(pr,kn),k(pr,Bn),lr(hr)&&n(hr),lr(pr)&&n(pr),lr(dr)&&n(dr)})),e&&!X&&(H(pr,Bn,Fn,!0),E(br,wr(k,pr,Bn))),yr&&(G(pr,yr),E(br,wr(Z,yr))),cr){var t="tabindex",i=R(pr,t);R(pr,t,"-1"),pr.focus();var o=function(){return i?R(pr,t,i):k(pr,t)},u=vn(x,"pointerdown keydown",(function(){o(),u()}));E(br,[o,u])}else ur&&ur.focus&&ur.focus();return mr=0,Or},Or]}(r),e=t[0],i=t[1],o=t[2],u={ea:{t:0,r:0,b:0,l:0},oa:!1,I:(n={},n[_r]=0,n[Nr]=0,n[jr]=0,n[Rr]=0,n[Ir]=0,n[Hr]=0,n[kr]=0,n),Hr:{x:0,y:0},Tr:{x:0,y:0},ra:{x:qr,y:qr},aa:{x:!1,y:!1}},c=e.zr,a=e.dr,f=e.gr,l=e.hr,s=Ht(),v=s.P,d=s.A,p=s.B,h=!v&&(d.x||d.y),y=[Jt(e),Qt(e,u),re(e,u)];return[i,function(r){var n={},t=(h||!p)&&gn(a);return f("",Nn,!0),x(y,(function(t){M(n,t(r,n)||{})})),f("",Nn),wn(a,t),!l&&wn(c,0),n},u,e,o]},te=function r(n,t,e){var i=Ht(),o=i.Y,u=i.F,c=i.N,a=g(n),f=a?n:n.target,l=Ft(f);if(t&&!l){var s=!1,v=[],d={},p=function(r){var n=xt(Pt);return n?n(r,!0):r},h=M({},o(),p(t)),y=xn(e),b=y[0],w=y[1],m=y[2],O=function(r,n,t,e){var i=ne(r),o=i[0],u=i[1],c=i[2],a=i[3],f=i[4],l=Zt(a,(function(r){m({},r)})),s=l[0],v=l[1],d=l[2],p=function(r,n,t,e,i,o){var u,c,a,f,l,s=Y,v=0,d=gr(),p=d[0],h=d[1],y=gr(),b=y[0],w=y[1],g=gr(100),m=g[0],x=g[1],O=gr(100),S=O[0],P=O[1],C=gr(100),z=C[0],A=C[1],D=gr((function(){return v})),M=D[0],L=D[1],R=Kt(r,i,Ut(n,i,e)),I=R[0],k=R[1],H=i.sr,j=i.Xr,_=i.Rr,N=I.Br,B=I.Mr,V=I.kr,F=I.Vr,X=I.jr,q=I.Ur,Z=function(r){N(dt,r,!0),N(dt,r,!1)},$=function(r,n){if(L(),r)N(pt);else{var t=wr(N,pt,!0);v>0&&!n?M(t):t()}},W=function(r){return"mouse"===r.pointerType},G=function(r){W(r)&&(f=c)&&$(!0)},K=[x,L,P,A,w,h,function(){return s()},vn(H,"pointerover",G,{C:!0}),vn(H,"pointerenter",G),vn(H,"pointerleave",(function(r){W(r)&&(f=!1,c&&$(!1))})),vn(H,"pointermove",(function(r){W(r)&&u&&p((function(){x(),$(!0),S((function(){u&&$(!1)}))}))})),vn(j,"scroll",(function(r){b((function(){V(e),a&&$(!0),m((function(){a&&!f&&$(!1)}))})),o(r),q()}))];return[function(){return wr(T,E(K,k()))},function(r){var n=r.Or,i=r.Er,o=r.Zr,f=r.$r||{},d=f.Jr,p=f.Kr,h=f.Qr,y=o||{},b=y.Sr,w=y.nr,g=t.cr,m=Ht().A,x=e.Tr,O=e.ra,S=e.aa,E=n("showNativeOverlaidScrollbars"),P=E[0],C=E[1],T=n("scrollbars.theme"),A=T[0],D=T[1],M=n("scrollbars.visibility"),L=M[0],R=M[1],I=n("scrollbars.autoHide"),k=I[0],H=I[1],Y=n("scrollbars.autoHideSuspend"),W=Y[0],G=Y[1],K=n("scrollbars.autoHideDelay")[0],U=n("scrollbars.dragScroll"),J=U[0],Q=U[1],rr=n("scrollbars.clickScroll"),nr=rr[0],tr=rr[1],er=w&&!i,ir=S.x||S.y,or=d||p||b||i,ur=h||R,cr=P&&m.x&&m.y,ar=function(r,n){var t="visible"===L||"auto"===L&&"scroll"===r;return N(at,t,n),t};if(v=K,er&&(W&&ir?(Z(!1),s(),z((function(){s=vn(j,"scroll",wr(Z,!0),{C:!0})}))):Z(!0)),C&&N(nt,cr),D&&(N(l),N(A,!0),l=A),G&&!W&&Z(!0),H&&(u="move"===k,c="leave"===k,$(!(a="never"!==k),!0)),Q&&N(bt,J),tr&&N(yt,nr),ur){var fr=ar(O.x,!0),lr=ar(O.y,!1);N(ft,!(fr&&lr))}or&&(B(e),V(e),F(e),q(),X(e),N(vt,!x.x,!0),N(vt,!x.y,!1),N(et,g&&!_))},{},I]}(r,n,d,c,a,e),h=p[0],y=p[1],b=p[3],w=function(r){return x(M({},r),(function(r,n,t){t[n]=!!r}))},g=function(r){return D(r).some((function(n){return!!r[n]}))},m=function(r,e){var i=r.ca,o=r.Er,c=r.Cr,a=r.fa,f=r.sa,l=i||{},s=!!o,p={Or:Cn(n,l,s),ca:l,Er:s};if(a)return y(p),!1;var h=e||v(M({},p,{Cr:c}));f&&M(h,{ur:!0,yr:!0});var b=u(M({},p,{ia:d,Zr:h}));y(M({},p,{Zr:h,$r:b}));var m=g(h),x=g(b),O=m||x||!L(l)||s;return O&&t(r,{Zr:w(h),$r:w(b)}),O};return[function(){var r=a.zr,n=a.dr,t=a.Gr,e=a.Rr?t.documentElement:r,i=gn(e),u=[s(),o(),h()];return wn(n,i),wr(T,u)},m,function(){return{da:d,pa:c}},{_a:a,ha:b},f]}(n,h,(function(r,n){var t=r.ca,e=r.Er,i=n.Zr,o=n.$r,u=i.ur,c=i.Sr,a=i.mr,f=i.yr,l=i.wr,s=o.Jr,v=o.Kr,d=o.Qr;m("updated",[I,{updateHints:{sizeChanged:u,directionChanged:c,heightIntrinsicChanged:a,overflowEdgeChanged:s,overflowAmountChanged:v,overflowStyleChanged:d,contentMutation:f,hostMutation:l},changedOptions:t||{},force:!!e}])}),(function(r){return m("scroll",[I,r])})),S=O[0],P=O[1],C=O[2],z=O[3],A=O[4],R=function(r){!function(r){Vt.delete(r)}(f),T(v),s=!0,m("destroyed",[I,r]),w()},I={options:function(r,n){if(r){var t=n?o():{},e=Pn(h,M(t,p(r)));L(e)||(M(h,e),P({ca:e}))}return M({},h)},on:b,off:function(r,n){r&&n&&w(r,n)},state:function(){var r=C(),n=r.da,t=r.pa,e=n.cr,i=t.Hr,o=t.Tr,u=t.ra,c=t.aa,a=t.ea,f=t.oa;return M({},{overflowEdge:i,overflowAmount:o,overflowStyle:u,hasOverflow:c,padding:a,paddingAbsolute:f,directionRTL:e,destroyed:s})},elements:function(){var r=z._a,n=r.zr,t=r.sr,e=r.ea,i=r.dr,o=r.pr,u=r.Ar,c=r.Xr,a=z.ha,f=a.Fr,l=a.Yr,s=function(r){var n=r.Ir,t=r.Lr;return{scrollbar:r.Dr,track:t,handle:n}},v=function(r){var n=r.Nr,t=r.qr,e=s(n[0]);return M({},e,{clone:function(){var r=s(t());return P({fa:!0}),r}})};return M({},{target:n,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:v(f),scrollbarVertical:v(l)})},update:function(r){return P({Er:r,Cr:!0})},destroy:wr(R,!1),plugin:function(r){return d[D(r)[0]]}},k=function(){var r=C().pa.aa,n=r.x||r.y;n&&P({sa:n})};return E(v,[u(k),c(k),A]),function(r,n){Vt.set(r,n)}(f,I),mt(wt,r,I,d),Bt(z._a.Rr,!a&&n.cancel)?(R(!0),I):(E(v,S()),m("initialized",[I]),I.update(!0),I)}return l};return te.plugin=function(r){var n=h(r),t=n?r:[r],e=t.map((function(r){return mt(r,te)[0]}));return function(r){x(r,(function(r){return x(r,(function(n,t){wt[t]=r[t]}))}))}(t),n?e:e[0]},te.valid=function(r){var n=r&&r.elements,t=p(n)&&n();return w(t)&&!!Ft(t.target)},te.env=function(){var r=Ht(),n=r.V,t=r.A,e=r.P,i=r.U,o=r.B,u=r.R,c=r.j,a=r.X,f=r.Z,l=r.q,s=r.W,v=r.Y,d=r.G;return M({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:e,rtlScrollBehavior:i,flexboxGlue:o,cssCustomProperties:u,scrollTimeline:c,staticDefaultInitialization:a,staticDefaultOptions:f,getDefaultInitialization:l,setDefaultInitialization:s,getDefaultOptions:v,setDefaultOptions:d})},r.ClickScrollPlugin=Lt,r.OverlayScrollbars=te,r.ScrollbarsHidingPlugin=Dt,r.SizeObserverPlugin=zt,Object.defineProperty(r,"T",{value:!0}),r}({});
/*!
* OverlayScrollbars
* Version: 2.3.2
* Version: 2.4.0
*

@@ -11,2 +11,2 @@ * Copyright (c) Rene Haas | KingSora.

var OverlayScrollbarsGlobal=function(t){"use strict";function e(t,n){if(b(t))for(let e=0;e<t.length&&!1!==n(t[e],e,t);e++);else t&&e(Object.keys(t),(e=>n(t[e],e,t)));return t}function n(t,n){const o=h(n);if(w(n)||o){let e=o?"":{};if(t){const r=window.getComputedStyle(t,null);e=o?Mt(t,r,n):n.reduce(((e,n)=>(e[n]=Mt(t,r,n),e)),e)}return e}t&&e(L(n),(e=>Lt(t,e,n[e])))}const o=(t,e)=>{const{o:n,u:o,_:r}=t;let i,s=n;const l=(t,e)=>{const n=s,l=t,c=e||(o?!o(n,l):n!==l);return(c||r)&&(s=l,i=n),[s,c,i]};return[e?t=>l(e(s,i),t):l,t=>[s,!!t,i]]},r=()=>"undefined"!=typeof window,i=r()&&Node.ELEMENT_NODE,{toString:s,hasOwnProperty:l}=Object.prototype,c=t=>void 0===t,a=t=>null===t,d=t=>c(t)||a(t)?`${t}`:s.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),u=t=>"number"==typeof t,h=t=>"string"==typeof t,p=t=>"boolean"==typeof t,f=t=>"function"==typeof t,w=t=>Array.isArray(t),g=t=>"object"==typeof t&&!w(t)&&!a(t),b=t=>{const e=!!t&&t.length,n=u(e)&&e>-1&&e%1==0;return!(!(w(t)||!f(t)&&n)||e>0&&g(t)&&!(e-1 in t))},v=t=>{if(!t||!g(t)||"object"!==d(t))return!1;let e;const n="constructor",o=t[n],r=o&&o.prototype,i=l.call(t,n),s=r&&l.call(r,"isPrototypeOf");if(o&&!i&&!s)return!1;for(e in t);return c(e)||l.call(t,e)},y=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===i)},m=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===i)},x=(t,e,n)=>t.indexOf(e,n),$=(t,e,n)=>(n||h(e)||!b(e)?t.push(e):Array.prototype.push.apply(t,e),t),S=t=>{const n=Array.from,o=[];return n&&t?n(t):(t instanceof Set?t.forEach((t=>{$(o,t)})):e(t,(t=>{$(o,t)})),o)},O=t=>!!t&&0===t.length,E=(t,n,o)=>{e(t,(t=>t&&t.apply(void 0,n||[]))),!o&&(t.length=0)},M=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),L=t=>t?Object.keys(t):[],P=(t,n,o,r,i,s,l)=>{const c=[n,o,r,i,s,l];return"object"==typeof t&&!a(t)||f(t)||(t={}),e(c,(n=>{e(L(n),(e=>{const o=n[e];if(t===o)return!0;const r=w(o);if(o&&v(o)){const n=t[e];let i=n;r&&!w(n)?i=[]:r||v(n)||(i={}),t[e]=P(i,o)}else t[e]=r?o.slice():o}))})),t},C=t=>{for(const e in t)return!1;return!0},z=(t,e,n,o)=>{if(c(o))return n?n[t]:e;n&&(h(o)||u(o))&&(n[t]=o)},A=(t,e,n)=>{if(c(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},H=(t,e)=>new Set((A(t,e)||"").split(" ")),T=(t,e)=>{t&&t.removeAttribute(e)},R=(t,e,n,o)=>{if(n){const r=H(t,e);r[o?"add":"delete"](n);const i=S(r).join(" ").trim();A(t,e,i)}},k=(t,e)=>z("scrollLeft",0,t,e),I=(t,e)=>z("scrollTop",0,t,e),D=r()&&Element.prototype,B=(t,e)=>{const n=[],o=e?m(e)&&e:document;return o?$(n,o.querySelectorAll(t)):n},F=(t,e)=>!!m(t)&&(D.matches||D.msMatchesSelector).call(t,e),X=t=>t?S(t.childNodes):[],Y=t=>t&&t.parentElement,N=(t,e)=>{if(m(t)){const n=D.closest;if(n)return n.call(t,e);do{if(F(t,e))return t;t=Y(t)}while(t)}},j=(t,n,o)=>{if(o&&t){let r,i=n;b(o)?(r=document.createDocumentFragment(),e(o,(t=>{t===i&&(i=t.previousSibling),r.appendChild(t)}))):r=o,n&&(i?i!==n&&(i=i.nextSibling):i=t.firstChild),t.insertBefore(r,i||null)}},V=(t,e)=>{j(t,null,e)},U=(t,e)=>{j(Y(t),t&&t.nextSibling,e)},K=t=>{if(b(t))e(S(t),(t=>K(t)));else if(t){const e=Y(t);e&&e.removeChild(t)}},_=t=>{const e=document.createElement("div");return t&&A(e,"class",t),e},q=t=>{const n=_();return n.innerHTML=t.trim(),e(X(n),(t=>K(t)))},J=t=>t.charAt(0).toUpperCase()+t.slice(1),W=["-webkit-","-moz-","-o-","-ms-"],G=["WebKit","Moz","O","MS","webkit","moz","o","ms"],Z={},Q={},tt=t=>{let n=Q[t];if(M(Q,t))return n;const o=J(t),r=_().style;return e(W,(e=>{const i=e.replace(/-/g,""),s=[t,e+t,i+o,J(i)+o];return!(n=s.find((t=>void 0!==r[t])))})),Q[t]=n||""},et=t=>{if(r()){let n=Z[t]||window[t];return M(Z,t)||(e(G,(e=>(n=n||window[e+J(t)],!n))),Z[t]=n),n}},nt=et("MutationObserver"),ot=et("IntersectionObserver"),rt=et("ResizeObserver"),it=et("cancelAnimationFrame"),st=et("requestAnimationFrame"),lt=et("ScrollTimeline"),ct=r()&&window.setTimeout,at=r()&&window.clearTimeout,dt=/[^\x20\t\r\n\f]+/g,ut=(t,e,n)=>{const o=t&&t.classList;let r,i=0,s=!1;if(o&&e&&h(e)){const t=e.match(dt)||[];for(s=t.length>0;r=t[i++];)s=!!n(o,r)&&s}return s},ht=(t,e)=>{ut(t,e,((t,e)=>t.remove(e)))},pt=(t,e)=>(ut(t,e,((t,e)=>t.add(e))),ht.bind(0,t,e)),{max:ft}=Math,wt=()=>performance.now(),gt=(t,n,o,r)=>{if(t&&n){let i=!0;return e(o,(e=>{(r?r(t[e]):t[e])!==(r?r(n[e]):n[e])&&(i=!1)})),i}return!1},bt=(t,e)=>gt(t,e,["w","h"]),vt=(t,e)=>gt(t,e,["x","y"]),yt=(t,e)=>gt(t,e,["t","r","b","l"]),mt=(t,e,n)=>gt(t,e,["width","height"],n&&(t=>Math.round(t))),xt=()=>{},$t=t=>{let e;const n=t?ct:st,o=t?at:it;return[r=>{o(e),e=n(r,f(t)?t():t)},()=>o(e)]},St=(t,e)=>{let n,o,r,i=xt;const{g:s,v:l,p:c}=e||{},a=function(e){i(),at(n),n=o=void 0,i=xt,t.apply(this,e)},d=t=>c&&o?c(o,t):t,h=()=>{i!==xt&&a(d(r)||r)},p=function(){const t=S(arguments),e=f(s)?s():s;if(u(e)&&e>=0){const s=f(l)?l():l,c=u(s)&&s>=0,p=e>0?ct:st,w=e>0?at:it,g=d(t)||t,b=a.bind(0,g);i();const v=p(b,e);i=()=>w(v),c&&!n&&(n=ct(h,s)),o=r=g}else a(t)};return p.m=h,p},Ot={opacity:1,zIndex:1},Et=(t,e)=>{const n=t||"",o=e?parseFloat(n):parseInt(n,10);return o==o?o:0},Mt=(t,e,n)=>String((null!=e?e[n]||e.getPropertyValue(n):t.style[n])||""),Lt=(t,e,n)=>{try{const{style:o}=t;c(o[e])?o.setProperty(e,n):o[e]=((t,e)=>!Ot[t]&&u(e)?`${e}px`:e)(e,n)}catch(l){}},Pt=t=>"rtl"===n(t,"direction"),Ct=(t,e,o)=>{const r=e?`${e}-`:"",i=o?`-${o}`:"",s=`${r}top${i}`,l=`${r}right${i}`,c=`${r}bottom${i}`,a=`${r}left${i}`,d=n(t,[s,l,c,a]);return{t:Et(d[s],!0),r:Et(d[l],!0),b:Et(d[c],!0),l:Et(d[a],!0)}},zt=(t,e)=>`translate${w(t)?`(${t[0]},${t[1]})`:`${e?"X":"Y"}(${t})`}`,{round:At}=Math,Ht={w:0,h:0},Tt=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:Ht,Rt=t=>t?{w:t.clientWidth,h:t.clientHeight}:Ht,kt=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:Ht,It=t=>{const e=parseFloat(n(t,"height"))||0,o=parseFloat(n(t,"width"))||0;return{w:o-At(o),h:e-At(e)}},Dt=t=>t.getBoundingClientRect(),Bt=t=>!(!t||!t.height&&!t.width);let Ft;const Xt=t=>t.split(" "),Yt=(t,n,o,r)=>{e(Xt(n),(e=>{t.removeEventListener(e,o,r)}))},Nt=(t,n,o,r)=>{var i;const s=(()=>{if(c(Ft)){Ft=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){Ft=!0}}))}catch(t){}}return Ft})(),l=null!=(i=s&&r&&r.S)?i:s,a=r&&r.$||!1,d=r&&r.C||!1,u=[],h=s?{passive:l,capture:a}:a;return e(Xt(n),(e=>{const n=d?r=>{t.removeEventListener(e,n,a),o&&o(r)}:o;$(u,Yt.bind(null,t,e,n,a)),t.addEventListener(e,n,h)})),E.bind(0,u)},jt=t=>t.stopPropagation(),Vt=t=>t.preventDefault(),Ut={x:0,y:0},Kt=t=>{const e=t?Dt(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:Ut},_t=(t,n)=>{e(w(n)?n:[n],t)},qt=t=>{const n=new Map,o=(t,e)=>{if(t){const o=n.get(t);_t((t=>{o&&o[t?"delete":"clear"](t)}),e)}else n.forEach((t=>{t.clear()})),n.clear()},r=(t,i)=>{if(h(t)){const e=n.get(t)||new Set;return n.set(t,e),_t((t=>{f(t)&&e.add(t)}),i),o.bind(0,t,i)}p(i)&&i&&o();const s=L(t),l=[];return e(s,(e=>{const n=t[e];n&&$(l,r(e,n))})),E.bind(0,l)};return r(t||{}),[r,o,(t,o)=>{const r=n.get(t);e(S(r),(t=>{o&&!O(o)?t.apply(0,o):t()}))}]},Jt=t=>JSON.stringify(t,((t,e)=>{if(f(e))throw new Error;return e})),Wt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Gt=(t,n)=>{const o={};return e(L(n).concat(L(t)),(e=>{const r=t[e],i=n[e];if(g(r)&&g(i))P(o[e]={},Gt(r,i)),C(o[e])&&delete o[e];else if(M(n,e)&&i!==r){let t=!0;if(w(r)||w(i))try{Jt(r)===Jt(i)&&(t=!1)}catch(G){}t&&(o[e]=i)}})),o},Zt=`data-overlayscrollbars`,Qt="os-environment",te=`${Qt}-flexbox-glue`,ee=`${te}-max`,ne=`os-scrollbar-hidden`,oe=`${Zt}-initialize`,re=Zt,ie=`${re}-overflow-x`,se=`${re}-overflow-y`,le="overflowVisible",ce="scrollbarHidden",ae="scrollbarPressed",de="updating",ue=`${Zt}-viewport`,he="arrange",pe="scrollbarHidden",fe=le,we=`${Zt}-padding`,ge=fe,be=`${Zt}-content`,ve="os-size-observer",ye=`${ve}-appear`,me=`${ve}-listener`,xe=`${me}-scroll`,$e=`${me}-item`,Se=`${$e}-final`,Oe="os-trinsic-observer",Ee="os-no-css-vars",Me="os-theme-none",Le="os-scrollbar",Pe=`${Le}-rtl`,Ce=`${Le}-horizontal`,ze=`${Le}-vertical`,Ae=`${Le}-track`,He=`${Le}-handle`,Te=`${Le}-visible`,Re=`${Le}-cornerless`,ke=`${Le}-transitionless`,Ie=`${Le}-interaction`,De=`${Le}-unusable`,Be=`${Le}-auto-hide`,Fe=`${Be}-hidden`,Xe=`${Le}-wheel`,Ye=`${Ae}-interactive`,Ne=`${He}-interactive`,je={},Ve=()=>je,Ue="__osOptionsValidationPlugin",Ke=3333333,_e="scroll",qe="__osSizeObserverPlugin",Je=(()=>({[qe]:{O:(t,e,o)=>{const r=q(`<div class="${$e}" dir="ltr"><div class="${$e}"><div class="${Se}"></div></div><div class="${$e}"><div class="${Se}" style="width: 200%; height: 200%"></div></div></div>`);V(t,r),pt(t,xe);const i=r[0],s=i.lastChild,l=i.firstChild,c=null==l?void 0:l.firstChild;let a,d=Tt(i),u=d,h=!1;const p=()=>{k(l,Ke),I(l,Ke),k(s,Ke),I(s,Ke)},f=t=>{a=0,h&&(d=u,e(!0===t))},w=t=>{u=Tt(i),h=!t||!bt(u,d),t?(jt(t),h&&!a&&(it(a),a=st(f))):f(!1===t),p()},g=$([],[Nt(l,_e,w),Nt(s,_e,w)]);return n(c,{width:Ke,height:Ke}),st(p),[o?w.bind(0,!1):p,g]}}}))();let We=0;const{round:Ge,abs:Ze}=Math,Qe="__osScrollbarsHidingPlugin",tn=(()=>({[Qe]:{T:t=>{const{A:e,I:n,H:o}=t,r=!(o||e||!n.x&&!n.y)&&document.createElement("style");return r&&(A(r,"id",`${ue}-${he}-${We}`),We++),r},L:(t,o,r,i,s,l,c)=>[(e,o,l,c)=>{if(t){const{M:t}=s(),{P:a,D:d}=e,{x:u,y:h}=d,{x:p,y:f}=a,w=t[c?"paddingRight":"paddingLeft"],g=t.paddingTop,b=o.w+l.w,v=o.h+l.h,y={w:f&&h?`${f+b-w}px`:"",h:p&&u?`${p+v-g}px`:""};if(i){const{sheet:t}=i;if(t){const{cssRules:e}=t;if(e){e.length||t.insertRule(`#${A(i,"id")} + [${ue}~='${he}']::before {}`,0);const n=e[0].style;n.width=y.w,n.height=y.h}}}else n(r,{"--os-vaw":y.w,"--os-vah":y.h})}return t},(i,a,d)=>{if(t){const u=d||l(i),{M:h}=s(),{D:p}=u,{x:f,y:w}=p,g={},b=t=>e(t.split(" "),(t=>{g[t]=h[t]}));f&&b("marginBottom paddingTop paddingBottom"),w&&b("marginLeft marginRight paddingLeft paddingRight");const v=n(r,L(g));return R(r,ue,he),o||(g.height=""),n(r,g),[()=>{c(u,a,t,v),n(r,v),R(r,ue,he,!0)},u]}return[xt]}],R:()=>{let t={w:0,h:0},e=0;return(n,o,r)=>{const i={w:window.innerWidth,h:window.innerHeight},s={w:i.w-t.w,h:i.h-t.h};if(0===s.w&&0===s.h)return;const l=Ze(s.w),c=Ze(s.h),a={w:Ze(Ge(i.w/(t.w/100))),h:Ze(Ge(i.h/(t.h/100)))},d=(()=>{const t=window.screen.deviceXDPI||0,e=window.screen.logicalXDPI||1;return window.devicePixelRatio||t/e})(),u=l>2&&c>2,h=!((t,e)=>{const n=Ze(t),o=Ze(e);return!(n===o||n+1===o||n-1===o)})(a.w,a.h);if(u&&h&&d!==e&&d>0){const[t,e]=o();P(n.k,t),e&&r()}t=i,e=d}}}}))(),en="__osClickScrollPlugin",nn=(()=>({[en]:{O:(t,e,n,o,r)=>{let i=0,s=xt;const l=c=>{s=((t,e,n,o,r)=>{let i=0;const s=wt(),l=ft(0,133),c=n=>{const a=wt(),d=a-s>=l,u=n?1:1-(ft(0,s+l-a)/l||0),h=(e-t)*(f(r)?r(u,u*l,0,1,l):u)+t,p=d||1===u;o&&o(h,0,p),i=p?0:st((()=>c()))};return c(),t=>{it(i),t&&c(t)}})(c,c+o*Math.sign(n),0,((n,c,a)=>{t(n);const d=e();if(a&&!(r>=d&&r<=d+o)){if(i)l(n);else{const t=setTimeout((()=>{l(n)}),222);s=()=>{clearTimeout(t)}}i++}}))};return l(0),()=>s()}}}))();let on;const rn=(t,e,n,o)=>{V(t,e);const r=Rt(e),i=Tt(e),s=It(n);return o&&K(e),{x:i.h-r.h+s.h,y:i.w-r.w+s.w}},sn=(t,e)=>{const o="hidden";n(t,{overflowX:o,overflowY:o,direction:"rtl"}),k(t,0);const r=Kt(t),i=Kt(e);k(t,-999);const s=Kt(e);return{i:r.x===i.x,n:i.x!==s.x}},ln=(t,e)=>{const n=pt(t,te),o=Dt(t),r=Dt(e),i=mt(r,o,!0),s=pt(t,ee),l=Dt(t),c=Dt(e),a=mt(c,l,!0);return n(),s(),i&&a},cn=()=>(on||(on=(()=>{const{body:t}=document,e=q(`<div class="${Qt}"><div></div></div>`)[0],r=e.firstChild,[i,,s]=qt(),[l,c]=o({o:rn(t,e,r),u:vt},rn.bind(0,t,e,r,!0)),[a]=c(),d=(t=>{let e=!1;const o=pt(t,ne);try{e="none"===n(t,tt("scrollbar-width"))||"none"===window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(r){}return o(),e})(e),u={x:0===a.x,y:0===a.y},h={elements:{host:null,padding:!d,viewport:t=>d&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=P({},Wt),f=P.bind(0,{},p),w=P.bind(0,{},h),g={k:a,I:u,A:d,H:"-1"===n(e,"zIndex"),B:!!lt,V:sn(e,r),Y:ln(e,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:w,G:t=>P(h,t)&&w(),F:f,X:t=>P(p,t)&&f(),U:P({},h),W:P({},p)},b=window.addEventListener,v=St((t=>s(t?"z":"r")),{g:33,v:99});if(T(e,"style"),K(e),b("resize",v.bind(0,!1)),!(d||u.x&&u.y)){let t;b("resize",(()=>{const e=Ve()[Qe];t=t||e&&e.R(),t&&t(g,l,v.bind(0,!0))}))}return g})()),on),an=(t,e)=>f(e)?e.apply(0,t):e,dn=(t,e,n,o)=>{const r=c(o)?n:o;return an(t,r)||e.apply(0,t)},un=(t,e,n,o)=>{const r=c(o)?n:o,i=an(t,r);return!!i&&(y(i)?i:e.apply(0,t))},hn=new WeakMap,pn=t=>hn.get(t),fn=(t,e)=>t?e.split(".").reduce(((t,e)=>t&&M(t,e)?t[e]:void 0),t):void 0,wn=(t,e,n)=>o=>[fn(t,o),n||void 0!==fn(e,o)],gn=t=>{let e=t;return[()=>e,t=>{e=P({},e,t)}]},bn="tabindex",vn=_.bind(0,""),yn=t=>{V(Y(t),X(t)),K(t)},mn=t=>{const e=cn(),{q:n,A:o}=e,r=Ve()[Qe],i=r&&r.T,{elements:s}=n(),{host:l,padding:c,viewport:a,content:d}=s,u=y(t),h=u?{}:t,{elements:p}=h,{host:f,padding:w,viewport:g,content:b}=p||{},v=u?t:h.target,m=F(v,"textarea"),S=v.ownerDocument,O=S.documentElement,M=v===S.body,P=S.defaultView,C=dn.bind(0,[v]),z=un.bind(0,[v]),k=an.bind(0,[v]),I=C.bind(0,vn,a),D=z.bind(0,vn,d),B=I(g),N=B===v,_=N&&M,q=!N&&D(b),J=!N&&y(B)&&B===q,W=J&&!!k(d),G=W?I():B,Z=W?q:D(),Q=_?O:J?G:B,tt=m?C(vn,l,f):v,et=_?Q:tt,nt=J?Z:q,ot=S.activeElement,rt=!N&&P.top===P&&ot===v,it={Z:v,J:et,K:Q,tt:!N&&z(vn,c,w),nt,ot:!N&&!o&&i&&i(e),st:_?O:Q,et:_?S:Q,ct:P,rt:S,lt:m,it:M,ut:u,ft:N,dt:J,_t:(t,e)=>((t,e,n)=>H(t,e).has(n))(Q,N?re:ue,N?e:t),ht:(t,e,n)=>R(Q,N?re:ue,N?e:t,n)},st=L(it).reduce(((t,e)=>{const n=it[e];return $(t,!(!n||!y(n)||Y(n))&&n)}),[]),lt=t=>t?x(st,t)>-1:null,{Z:ct,J:at,tt:dt,K:ut,nt:ht,ot:ft}=it,wt=[()=>{T(at,re),T(at,oe),T(ct,oe),M&&(T(O,re),T(O,oe))}],gt=m&&lt(at);let bt=m?ct:X([ht,ut,dt,at,ct].find((t=>!1===lt(t))));const vt=_?ct:ht||ut;return[it,()=>{A(at,re,N?"viewport":"host"),A(dt,we,""),A(ht,be,""),N||A(ut,ue,"");const t=M&&!N?pt(Y(v),ne):xt;if(gt&&(U(ct,at),$(wt,(()=>{U(at,ct),K(at)}))),V(vt,bt),V(at,dt),V(dt||at,!N&&ut),V(ut,ht),$(wt,(()=>{t(),T(dt,we),T(ht,be),T(ut,ie),T(ut,se),T(ut,ue),lt(ht)&&yn(ht),lt(ut)&&yn(ut),lt(dt)&&yn(dt)})),o&&!N&&(R(ut,ue,pe,!0),$(wt,T.bind(0,ut,ue))),ft&&(((t,e)=>{j(Y(t),t,e)})(ut,ft),$(wt,K.bind(0,ft))),rt){const t=A(ut,bn);A(ut,bn,"-1"),ut.focus();const e=()=>t?A(ut,bn,t):T(ut,bn),n=Nt(S,"pointerdown keydown",(()=>{e(),n()}));$(wt,[e,n])}else ot&&ot.focus&&ot.focus();bt=0},E.bind(0,wt)]},xn=(t,e)=>{const{nt:o}=t,[r]=e;return t=>{const{Y:e}=cn(),{gt:i}=r(),{vt:s}=t,l=(o||!e)&&s;return l&&n(o,{height:i?"":"100%"}),{wt:l,bt:l}}},$n=(t,e)=>{const[r,i]=e,{J:s,tt:l,K:c,ft:a}=t,[d,u]=o({u:yt,o:Ct()},Ct.bind(0,s,"padding",""));return(t,e,o)=>{let[s,h]=u(o);const{A:p,Y:f}=cn(),{yt:w}=r(),{wt:g,bt:b,St:v}=t,[y,m]=e("paddingAbsolute");(g||h||!f&&b)&&([s,h]=d(o));const x=!a&&(m||v||h);if(x){const t=!y||!l&&!p,e=s.r+s.l,o=s.t+s.b,r={marginRight:t&&!w?-e:0,marginBottom:t?-o:0,marginLeft:t&&w?-e:0,top:t?-s.t:0,right:t?w?-s.r:"auto":0,left:t?w?"auto":-s.l:0,width:t?`calc(100% + ${e}px)`:""},a={paddingTop:t?s.t:0,paddingRight:t?s.r:0,paddingBottom:t?s.b:0,paddingLeft:t?s.l:0};n(l||c,r),n(c,a),i({tt:s,$t:!t,M:l?a:P({},r,a)})}return{xt:x}}},{max:Sn}=Math,On=Sn.bind(0,0),En="visible",Mn="hidden",Ln=42,Pn={u:bt,o:{w:0,h:0}},Cn={u:vt,o:{x:Mn,y:Mn}},zn=t=>0===t.indexOf(En),An=(t,e)=>{const[r,i]=e,{J:s,tt:l,K:c,ot:a,ft:d,ht:u,it:h,ct:p}=t,{k:f,Y:w,A:g,I:b}=cn(),v=Ve()[Qe],y=!d&&!g&&(b.x||b.y),m=h&&d,[x,$]=o(Pn,It.bind(0,c)),[S,O]=o(Pn,kt.bind(0,c)),[E,M]=o(Pn),[L,P]=o(Pn),[C]=o(Cn),z=(t,e)=>{if(n(c,{height:""}),e){const{$t:e,tt:o}=r(),{Ct:i,P:l}=t,a=It(s),d=Rt(s),u="content-box"===n(c,"boxSizing"),h=e||u?o.b+o.t:0,p=!(b.x&&u);n(c,{height:d.h+a.h+(i.x&&p?l.x:0)-h})}},H=(t,e)=>{const o=g||t?0:Ln,r=(t,r,i)=>{const s=n(c,t),l="scroll"===(e?e[t]:s);return[s,l,l&&!g?r?o:i:0,r&&!!o]},[i,s,l,a]=r("overflowX",b.x,f.x),[d,u,h,p]=r("overflowY",b.y,f.y);return{Ot:{x:i,y:d},Ct:{x:s,y:u},P:{x:l,y:h},D:{x:a,y:p}}},T=(t,e,n,o)=>{const{P:i,D:s}=t,{x:l,y:c}=s,{x:a,y:d}=i,{M:u}=r(),h=e?"marginLeft":"marginRight",p=e?"paddingLeft":"paddingRight",f=u[h],w=u.marginBottom,g=u[p],b=u.paddingBottom;o.width=`calc(100% + ${d+-1*f}px)`,o[h]=-d+f,o.marginBottom=-a+w,n&&(o[p]=g+(c?d:0),o.paddingBottom=b+(l?a:0))},[k,I]=v?v.L(y,w,c,a,r,H,T):[()=>y,()=>[xt]];return(t,e,o)=>{const{wt:a,Tt:h,bt:f,xt:v,vt:y,St:D}=t,{gt:B,yt:F}=r(),[X,Y]=e("showNativeOverlaidScrollbars"),[N,j]=e("overflow"),V=X&&b.x&&b.y,U=!d&&!w&&(a||f||h||Y||y),K=zn(N.x),_=zn(N.y),q=K||_;let J,W=$(o),G=O(o),Z=M(o),Q=P(o);if(Y&&g&&u(pe,ce,!V),U&&(J=H(V),z(J,B)),a||v||f||D||Y){q&&u(fe,le,!1);const[t,e]=I(V,F,J),[n,r]=W=x(o),[i,s]=G=S(o),l=Rt(c);let a=i,d=l;t(),(s||r||Y)&&e&&!V&&k(e,i,n,F)&&(d=Rt(c),a=kt(c));const h={w:On(Sn(i.w,a.w)+n.w),h:On(Sn(i.h,a.h)+n.h)},f={w:On((m?p.innerWidth:d.w+On(l.w-i.w))+n.w),h:On((m?p.innerHeight+n.h:d.h+On(l.h-i.h))+n.h)};Q=L(f),Z=E(((t,e)=>{const n=window.devicePixelRatio%1!=0?1:0,o={w:On(t.w-e.w),h:On(t.h-e.h)};return{w:o.w>n?o.w:0,h:o.h>n?o.h:0}})(h,f),o)}const[tt,et]=Q,[nt,ot]=Z,[rt,it]=G,[st,lt]=W,ct={x:nt.w>0,y:nt.h>0},at=K&&_&&(ct.x||ct.y)||K&&ct.x&&!ct.y||_&&ct.y&&!ct.x;if(v||D||lt||it||et||ot||j||Y||U){const t={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},e=((t,e,n,o)=>{const r=(t,e)=>{const n=zn(t),o=e&&n&&t.replace(`${En}-`,"")||"";return[e&&!n?t:"",zn(o)?"hidden":o]},[i,s]=r(n.x,e.x),[l,c]=r(n.y,e.y);return o.overflowX=s&&l?s:i,o.overflowY=c&&i?c:l,H(t,o)})(V,ct,N,t),o=k(e,rt,st,F);d||T(e,F,o,t),U&&z(e,B),d?(A(s,ie,t.overflowX),A(s,se,t.overflowY)):n(c,t)}R(s,re,le,at),R(l,we,ge,at),d||R(c,ue,fe,q);const[dt,ut]=C(H(V).Ot);return i({Ot:dt,zt:{x:tt.w,y:tt.h},Et:{x:nt.w,y:nt.h},At:ct}),{It:ut,Ht:et,Lt:ot}}},Hn=(t,n,o)=>{const r={},i=n||{};return e(L(t).concat(L(i)),(e=>{const n=t[e],s=i[e];r[e]=!!(o||n||s)})),r},Tn=(t,n,o,r)=>{let i=!1;const{Pt:s,Dt:l,Rt:c,kt:a,Bt:d,Vt:u}=r||{},p=St((()=>i&&o(!0)),{g:33,v:99}),[f,w]=((t,n,o)=>{let r,i=!1;const s=s=>{if(o){const l=o.reduce(((e,n)=>{if(n){const[o,r]=n,i=r&&o&&(s?s(o):B(o,t));i&&i.length&&r&&h(r)&&$(e,[i,r.trim()],!0)}return e}),[]);e(l,(o=>e(o[0],(e=>{const s=o[1],l=r.get(e)||[];if(t.contains(e)){const t=Nt(e,s,(o=>{i?(t(),r.delete(e)):n(o)}));r.set(e,$(l,t))}else E(l),r.delete(e)}))))}};return o&&(r=new WeakMap,s()),[()=>{i=!0},s]})(t,p,c),g=l||[],b=(s||[]).concat(g),v=(i,s)=>{const l=d||xt,c=u||xt,p=new Set,f=new Set;let b=!1,v=!1;if(e(i,(o=>{const{attributeName:i,target:s,type:d,oldValue:u,addedNodes:w,removedNodes:y}=o,m="attributes"===d,$="childList"===d,S=t===s,O=m&&h(i)?A(s,i):0,E=0!==O&&u!==O,M=x(g,i)>-1&&E;if(n&&($||!S)){const n=!m,d=m&&E,h=d&&a&&F(s,a),f=(h?!l(s,i,u,O):n||d)&&!c(o,!!h,t,r);e(w,(t=>p.add(t))),e(y,(t=>p.add(t))),v=v||f}!n&&S&&E&&!l(s,i,u,O)&&(f.add(i),b=b||M)})),p.size>0&&w((t=>S(p).reduce(((e,n)=>($(e,B(t,n)),F(n,t)?$(e,n):e)),[]))),n)return!s&&v&&o(!1),[!1];if(f.size>0||b){const t=[S(f),b];return!s&&o.apply(0,t),t}},y=new nt((t=>v(t)));return y.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:n,childList:n,characterData:n}),i=!0,[()=>{i&&(f(),y.disconnect(),i=!1)},()=>{if(i){p.m();const t=y.takeRecords();return!O(t)&&v(t,!0)}}]},Rn=3333333,kn=(t,e,n)=>{const{Yt:r,Mt:i}=n||{},s=Ve()[qe],{V:l}=cn(),c=q(`<div class="${ve}"><div class="${me}"></div></div>`)[0],a=c.firstChild,d=Pt.bind(0,t),[u]=o({o:!1,_:!0,u:(t,e)=>!(!t||!Bt(t)&&Bt(e))}),h=t=>{const n=w(t)&&t.length>0&&g(t[0]),o=!n&&p(t[0]);let i=!1,s=!1,a=!0;if(n){const[e,,n]=u(t.pop().contentRect),o=Bt(e),r=Bt(n);i=!n&&!!r||!o,s=!r&&o,a=!i}else o?[,a]=t:s=!0===t;if(r&&a){const e=o?t[0]:Pt(c);k(c,e?l.n?-Rn:l.i?0:Rn:Rn),I(c,Rn)}i||e({wt:!o,jt:o?t:void 0,Mt:!!s})},f=[];return[()=>{E(f),K(c)},()=>{let e=i&&h;if(rt){const t=new rt(h);t.observe(a),$(f,(()=>{t.disconnect()}))}else if(s){const[t,n]=s.O(a,h,i);e=t,$(f,n)}if(r){const[t]=o({o:void 0},d);$(f,Nt(c,"scroll",(e=>{const n=t(),[o,r,i]=n;r&&(ht(a,"ltr rtl"),pt(a,o?"rtl":"ltr"),h([!!o,r,i])),jt(e)})))}e&&(pt(c,ye),$(f,Nt(c,"animationstart",e,{C:!!rt}))),(rt||s)&&V(t,c)}]},In=(t,e)=>{let n;const r=_(Oe),i=[],[s]=o({o:!1}),l=(t,n)=>{if(t){const o=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,r]=o;return r&&!n&&e(o)&&[o]}},c=(t,e)=>t&&t.length>0&&l(t.pop(),e);return[()=>{E(i),K(r)},()=>{if(ot)n=new ot((t=>c(t)),{root:t}),n.observe(r),$(i,(()=>{n.disconnect()}));else{const t=()=>{const t=Tt(r);l(t)},[e,n]=kn(r,t);$(i,e),n(),t()}V(t,r)},()=>n&&c(n.takeRecords(),!0)]},Dn=`[${re}]`,Bn=`[${ue}]`,Fn=["tabindex"],Xn=["wrap","cols","rows"],Yn=["id","class","style","open"],Nn=(t,n,r)=>{let i,s,l;const{J:c,K:a,nt:d,lt:p,ft:g,_t:b,ht:v}=t,{Y:y}=cn(),[S]=o({u:bt,o:{w:0,h:0}},(()=>{const t=b(fe,le),e=b(he,""),n=e&&k(a),o=e&&I(a);v(fe,le),v(he,""),v("",de,!0);const r=kt(d),i=kt(a),s=It(a);return v(fe,le,t),v(he,"",e),v("",de),k(a,n),I(a,o),{w:i.w+r.w+s.w,h:i.h+r.h+s.h}})),O=p?Xn:Yn.concat(Xn),E=St(r,{g:()=>i,v:()=>s,p(t,e){const[n]=t,[o]=e;return[L(n).concat(L(o)).reduce(((t,e)=>(t[e]=n[e]||o[e],t)),{})]}}),M=t=>{e(t||Fn,(t=>{if(x(Fn,t)>-1){const e=A(c,t);h(e)?A(a,t,e):T(a,t)}}))},C=(t,e)=>{const[o,i]=t,s={vt:i};return n({gt:o}),!e&&r(s),s},z=({wt:t,jt:e,Mt:o})=>{const i=!t||o?r:E;let s=!1;if(e){const[t,o]=e;s=o,n({yt:t})}i({wt:t,Mt:o,St:s})},H=(t,e)=>{const[,n]=S(),o={bt:n};return n&&!e&&(t?r:E)(o),o},R=(t,e,n)=>{const o={Tt:e};return e?!n&&E(o):g||M(t),o},[D,B,F]=d||!y?In(c,C):[xt,xt,xt],[X,Y]=g?[xt,xt]:kn(c,z,{Mt:!0,Yt:!0}),[j,V]=Tn(c,!1,R,{Dt:Yn,Pt:Yn.concat(Fn)});let U;const K=g&&rt&&new rt((t=>{const e=t[t.length-1].contentRect,n=Bt(e),o=Bt(U);z({wt:!0,Mt:!o&&n}),U=e}));return[()=>{D(),X(),l&&l[0](),K&&K.disconnect(),j()},()=>{K&&K.observe(c),M(),Y(),B()},()=>{const t={},e=V(),n=F(),o=l&&l[1]();return e&&P(t,R.apply(0,$(e,!0))),n&&P(t,C.apply(0,$(n,!0))),o&&P(t,H.apply(0,$(o,!0))),t},t=>{const[e]=t("update.ignoreMutation"),[n,o]=t("update.attributes"),[r,c]=t("update.elementEvents"),[h,p]=t("update.debounce"),b=t=>f(e)&&e(t);if((c||o)&&(l&&(l[1](),l[0]()),l=Tn(d||a,!0,H,{Pt:O.concat(n||[]),Rt:r,kt:Dn,Vt:(t,e)=>{const{target:n,attributeName:o}=t;return!(e||!o||g)&&((t,e,n)=>{const o=N(t,e),r=t&&((t,e)=>{const n=e?m(e)&&e:document;return n?n.querySelector(t):null})(n,o),i=N(r,e)===o;return!(!o||!r)&&(o===t||r===t||i&&N(N(t,n),e)!==o)})(n,Dn,Bn)||!!N(n,`.${Le}`)||!!b(t)}})),p)if(E.m(),w(h)){const t=h[0],e=h[1];i=u(t)&&t,s=u(e)&&e}else u(h)?(i=h,s=!1):(i=!1,s=!1)}]},jn={x:0,y:0},{round:Vn}=Math,Un="pointerup pointerleave pointercancel lostpointercapture",Kn=(t,e)=>Nt(t,"mousedown",Nt.bind(0,e,"click",jt,{C:!0,$:!0}),{$:!0}),_n=(t,e,n,o,r,i,s)=>{const{V:l}=cn(),{Ft:c,Xt:a,Ut:d}=o,u=`scroll${s?"Left":"Top"}`,h=`client${s?"X":"Y"}`,p=s?"width":"height",f=s?"left":"top",w=s?"w":"h",g=s?"x":"y",b=(t,e)=>n=>{const{Et:o}=i(),h=Tt(a)[w]-Tt(c)[w],p=e*n/h*o[g],f=Pt(d)&&s?l.n||l.i?1:-1:1;r[u]=t+p*f};return Nt(a,"pointerdown",(o=>{const i=N(o.target,`.${He}`)===c,s=i?c:a;if(R(e,re,ae,!0),((t,e,n)=>{const o=e.scrollbars,{button:r,isPrimary:i,pointerType:s}=t,{pointers:l}=o;return 0===r&&i&&o[n?"dragScroll":"clickScroll"]&&(l||[]).includes(s)})(o,t,i)){const t=!i&&o.shiftKey,l=()=>Dt(c),d=()=>Dt(a),w=(t,e)=>(t||l())[f]-(e||d())[f],v=b(r[u]||0,1/(t=>{const{width:e,height:n}=Dt(t),{w:o,h:r}=Tt(t);return{x:Vn(e)/o||1,y:Vn(n)/r||1}})(r)[g]),y=o[h],m=l(),x=d(),S=m[p],O=w(m,x)+S/2,M=y-x[f],L=i?0:M-O,P=t=>{E(C),s.releasePointerCapture(t.pointerId)},C=[R.bind(0,e,re,ae),Nt(n,Un,P),Nt(n,"selectstart",(t=>Vt(t)),{S:!1}),Nt(a,Un,P),Nt(a,"pointermove",(e=>{const n=e[h]-y;(i||t)&&v(L+n)}))];if(t)v(L);else if(!i){const t=Ve()[en];t&&$(C,t.O(v,w,L,S,M))}s.setPointerCapture(o.pointerId)}}))},{min:qn,max:Jn,round:Wn}=Math,Gn=(t,e,n,o)=>{if(o){const t=n?"x":"y",{Et:e,zt:r}=o,i=r[t],s=e[t];return Jn(0,qn(1,i/(i+s)))}const r=n?"width":"height",i=Dt(t)[r],s=Dt(e)[r];return Jn(0,qn(1,i/s))},Zn=(t,e,n,o)=>e&&t.animate(n,{timeline:e,composite:o}),Qn=(t,e)=>({transform:[zt(`0%`,e),zt(e&&t?"100%":"-100%",e)],[e?t?"right":"left":"top"]:["0%","100%"]}),to=t=>`${Math.max(0,t-.5)}px`,eo=(t,e,n,o)=>Zn(t,e,{transform:[zt(`0px`,o),zt(to(n),o)]},"add"),no=(t,e)=>lt?new lt({source:t,axis:e}):null,oo=(t,o,r)=>{const{q:i,H:s}=cn(),{scrollbars:l}=i(),{slot:c}=l,{rt:a,Z:d,J:u,K:h,ut:f,st:g,it:b,ft:v}=o,{scrollbars:y}=f?{}:t,{slot:m}=y||{},S=new Map,M=no(g,"x"),L=no(g,"y"),P=un([d,u,h],(()=>v&&b?d:u),c,m),C=t=>v&&!b&&Y(t)===h,z=t=>{S.forEach(((e,n)=>{(!t||x(w(t)?t:[t],n)>-1)&&((e||[]).forEach((t=>{t&&t.cancel()})),S.delete(n))}))},A=(t,n,o)=>{const r=o?pt:ht;e(t,(t=>{r(t.Ut,n)}))},H=(t,o)=>{e(t,(t=>{const[e,r]=o(t);n(e,r)}))},T=(t,e,n)=>{H(t,(t=>{const{Ft:o,Xt:r}=t;return[o,{[n?"width":"height"]:`${(100*Gn(o,r,n,e)).toFixed(3)}%`}]}))},R=(t,e,n)=>{L||L||H(t,(t=>{const{Ft:o,Xt:r,Ut:i}=t,s=((t,e,n,o,r,i)=>{const{V:s}=cn(),l=i?"x":"y",c=i?"Left":"Top",{Et:a}=o,d=Wn(a[l]),u=qn(d,Jn(0,n[`scroll${c}`])),h=i&&r,p=s.i?u:d-u,f=qn(1,(h?p:u)/d),w=Gn(t,e,i);return 1/w*(1-w)*f})(o,r,g,e,Pt(i),n);return[o,{transform:s==s?zt(`${(100*s).toFixed(3)}%`,n):""}]}))},D=t=>{const{Ut:e}=t,n=C(e)&&e;return[n,{transform:n?zt([`${k(g)}px`,`${I(g)}px`]):""}]},B=[],F=[],X=[],N=(t,e,n)=>{const o=p(n),r=!o||!n;(!o||n)&&A(F,t,e),r&&A(X,t,e)},j=t=>{const e=t?Ce:ze,n=t?F:X,o=O(n)?ke:"",i=_(`${Le} ${e} ${o}`),l=_(Ae),c=_(He),d={Ut:i,Xt:l,Ft:c};return s||pt(i,Ee),V(i,l),V(l,c),$(n,d),$(B,[K.bind(0,i),z,r(d,N,a,u,g,t?M:L,t)]),d},U=j.bind(0,!0),q=j.bind(0,!1);return U(),q(),[{Wt:t=>{T(F,t,!0),T(X,t)},Zt:t=>{R(F,t,!0),R(X,t)},Jt:()=>{const t=(t,{Ut:e,Ft:n})=>{z(n),S.set(n,[Zn(n,t?M:L,Qn(t&&Pt(e),t))])};F.forEach(t.bind(0,!0)),X.forEach(t.bind(0,!1))},Kt:({Et:t})=>{X.concat(F).forEach((({Ut:e})=>{z(e),C(e)&&S.set(e,[eo(e,M,t.x,!0),eo(e,L,t.y)])}))},Qt:()=>{L||L||(v&&H(F,D),v&&H(X,D))},tn:N,nn:{B:M,sn:F,en:U,cn:H.bind(0,F)},rn:{B:L,sn:X,en:q,cn:H.bind(0,X)}},()=>{V(P,F[0].Ut),V(P,X[0].Ut),ct((()=>{N(ke)}),300)},E.bind(0,B)]},ro=t=>"mouse"===t.pointerType,io=(t,e,n)=>{f(t)&&t(e||void 0,n||void 0)},so=(t,n,o)=>{const{F:r,q:i,j:s,N:l}=cn(),d=Ve(),u=y(t),h=u?t:t.target,p=pn(h);if(n&&!p){let p=!1;const f=t=>{const e=Ve()[Ue],n=e&&e.O;return n?n(t,!0):t},w=P({},r(),f(n)),[g,b,v]=qt(o),[y,m,x]=((t,n)=>{const o=wn(n,{}),[r,i,s]=qt(),[l,c,a]=mn(t),d=gn((t=>({tt:{t:0,r:0,b:0,l:0},$t:!1,M:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:jn,Et:jn,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Pt(t.J)}))(l)),[u,h]=d,p=((t,n)=>{const{Z:o,K:r,ht:i,ft:s}=t,{A:l,I:c,Y:a}=cn(),d=!l&&(c.x||c.y),u=[xn(t,n),$n(t,n),An(t,n)];return(t,n,l)=>{const c=Hn(P({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Mt:!1},n),{},l),h=d||!a,p=h&&k(r),f=h&&I(r);i("",de,!0);let w=c;return e(u,(e=>{w=Hn(w,e(w,t,!!l)||{},l)})),k(r,p),I(r,f),i("",de),s||(k(o,0),I(o,0)),w}})(l,d),f=(t,e,n)=>{const o=L(t).some((e=>!!t[e])),r=o||!C(e)||n;return r&&s("u",[t,e,n]),r},[w,g,b,v]=Nn(l,h,(t=>f(p(o,t),{},!1))),y=u.bind(0);return y.Nt=t=>r("u",t),y.qt=()=>{const{Z:t,K:e,rt:n,it:o}=l,r=o?n.documentElement:t,i=k(r),s=I(r);g(),c(),k(e,i),I(e,s)},y.Gt=l,[(t,e)=>{const o=wn(n,t,e);return v(o),f(p(o,b(),e),t,!!e)},y,()=>{i(),w(),a()}]})(t,w),[$,S,O]=((t,e,n,o)=>{let r,i,s,l,c,a=xt,d=0;const u=gn({}),[h]=u,[p,f]=$t(),[w,g]=$t(),[b,v]=$t(100),[y,m]=$t(100),[x,$]=$t(100),[S,O]=$t((()=>d)),[M,L,P]=oo(t,n.Gt,((t,e)=>(n,o,r,i,s,l,c)=>{const{Ut:a}=n,[d,u]=$t(333),h=!!s.scrollBy;let p=!0;return E.bind(0,[Nt(a,"pointerenter",(()=>{o(Ie,!0)})),Nt(a,"pointerleave pointercancel",(()=>{o(Ie)})),Nt(a,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;h&&p&&0===r&&Y(a)===i&&s.scrollBy({left:e,top:n,behavior:"smooth"}),p=!1,o(Xe,!0),d((()=>{p=!0,o(Xe)})),Vt(t)}),{S:!1,$:!0}),Kn(a,r),_n(t,i,r,n,s,e,c),u])})(e,n)),{J:C,et:z,it:A}=n.Gt,{tn:H,Wt:T,Zt:R,Jt:k,Kt:I,Qt:D}=M,B=t=>{H(Be,t,!0),H(Be,t,!1)},F=(t,e)=>{if(O(),t)H(Fe);else{const t=()=>H(Fe,!0);d>0&&!e?S(t):t()}},X=t=>{ro(t)&&(l=i,l&&F(!0))},N=[v,O,m,$,g,f,P,Nt(C,"pointerover",X,{C:!0}),Nt(C,"pointerenter",X),Nt(C,"pointerleave",(t=>{ro(t)&&(l=!1,i&&F(!1))})),Nt(C,"pointermove",(t=>{ro(t)&&r&&p((()=>{v(),F(!0),y((()=>{r&&F(!1)}))}))})),Nt(z,"scroll",(t=>{w((()=>{R(n()),s&&F(!0),b((()=>{s&&!l&&F(!1)}))})),o(t),D()}))],j=h.bind(0);return j.Gt=M,j.qt=L,[(t,o,l)=>{const{Ht:u,Lt:h,It:p,St:f,Mt:w}=l,{I:g}=cn(),b=wn(e,t,o),v=n(),{Et:y,Ot:m,yt:$,At:S}=v,[O,E]=b("showNativeOverlaidScrollbars"),[M,L]=b("scrollbars.theme"),[P,C]=b("scrollbars.visibility"),[X,Y]=b("scrollbars.autoHide"),[N,j]=b("scrollbars.autoHideSuspend"),[V]=b("scrollbars.autoHideDelay"),[U,K]=b("scrollbars.dragScroll"),[_,q]=b("scrollbars.clickScroll"),J=w&&!o,W=S.x||S.y,G=u||h||f,Z=p||C,Q=O&&g.x&&g.y,tt=(t,e)=>{const n="visible"===P||"auto"===P&&"scroll"===t;return H(Te,n,e),n};if(d=V,J&&(N&&W?(B(!1),a(),x((()=>{a=Nt(z,"scroll",B.bind(0,!0),{C:!0})}))):B(!0)),E&&H(Me,Q),L&&(H(c),H(M,!0),c=M),j&&!N&&B(!0),Y&&(r="move"===X,i="leave"===X,s="never"!==X,F(!s,!0)),K&&H(Ne,U),q&&H(Ye,_),Z){const t=tt(m.x,!0),e=tt(m.y,!1);H(Re,!(t&&e))}G&&(T(v),R(v),k(v),I(v),D(),H(De,!y.x,!0),H(De,!y.y,!1),H(Pe,$&&!A))},j,()=>{E(N),a()}]})(t,w,m,(t=>v("scroll",[R,t]))),M=(t,e)=>y(t,!!e),z=M.bind(0,{},!0),A=s(z),H=l(z),T=t=>{(t=>{hn.delete(t)})(h),A(),H(),O(),x(),p=!0,v("destroyed",[R,!!t]),b()},R={options(t,e){if(t){const n=e?r():{},o=Gt(w,P(n,f(t)));C(o)||(P(w,o),M(o))}return P({},w)},on:g,off:(t,e)=>{t&&e&&b(t,e)},state(){const{zt:t,Et:e,Ot:n,At:o,tt:r,$t:i,yt:s}=m();return P({},{overflowEdge:t,overflowAmount:e,overflowStyle:n,hasOverflow:o,padding:r,paddingAbsolute:i,directionRTL:s,destroyed:p})},elements(){const{Z:t,J:e,tt:n,K:o,nt:r,st:i,et:s}=m.Gt,{nn:l,rn:c}=S.Gt,a=t=>{const{Ft:e,Xt:n,Ut:o}=t;return{scrollbar:o,track:n,handle:e}},d=t=>{const{sn:e,en:n}=t,o=a(e[0]);return P({},o,{clone:()=>{const t=a(n());return $({},!0,{}),t}})};return P({},{target:t,host:e,padding:n||o,viewport:o,content:r||o,scrollOffsetElement:i,scrollEventElement:s,scrollbarHorizontal:d(l),scrollbarVertical:d(c)})},update:t=>M({},t),destroy:T.bind(0)};return m.Nt(((t,e,n)=>{$(e,n,t)})),((t,e)=>{hn.set(t,e)})(h,R),e(L(d),(t=>io(d[t],0,R))),((t,e,n)=>{const{nativeScrollbarsOverlaid:o,body:r}=n||{},{I:i,A:s}=cn(),{nativeScrollbarsOverlaid:l,body:d}=e,u=null!=o?o:l,h=c(r)?d:r,p=(i.x||i.y)&&u,f=t&&(a(h)?!s:h);return!!p||!!f})(m.Gt.it,i().cancel,!u&&t.cancel)?(T(!0),R):(m.qt(),S.qt(),v("initialized",[R]),m.Nt(((t,e,n)=>{const{wt:o,St:r,vt:i,Ht:s,Lt:l,It:c,bt:a,Tt:d}=t;v("updated",[R,{updateHints:{sizeChanged:o,directionChanged:r,heightIntrinsicChanged:i,overflowEdgeChanged:s,overflowAmountChanged:l,overflowStyleChanged:c,contentMutation:a,hostMutation:d},changedOptions:e,force:n}])})),R.update(!0),R)}return p};return so.plugin=t=>{e((t=>{const n=[];return e(w(t)?t:[t],(t=>{e(L(t),(e=>{$(n,je[e]=t[e])}))})),n})(t),(t=>io(t,so)))},so.valid=t=>{const e=t&&t.elements,n=f(e)&&e();return v(n)&&!!pn(n.target)},so.env=()=>{const{k:t,I:e,A:n,V:o,Y:r,H:i,B:s,U:l,W:c,q:a,G:d,F:u,X:h}=cn();return P({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:o,flexboxGlue:r,cssCustomProperties:i,scrollTimeline:s,staticDefaultInitialization:l,staticDefaultOptions:c,getDefaultInitialization:a,setDefaultInitialization:d,getDefaultOptions:u,setDefaultOptions:h})},t.ClickScrollPlugin=nn,t.OverlayScrollbars=so,t.ScrollbarsHidingPlugin=tn,t.SizeObserverPlugin=Je,Object.defineProperties(t,{ln:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t}({});
var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,u:r,_:o}=t;let s,l=n;const c=(t,e)=>{const n=l,c=t,i=e||(r?!r(n,c):n!==c);return(i||o)&&(l=c,s=n),[l,i,s]};return[e?t=>c(e(l,s),t):c,t=>[l,!!t,s]]},n="undefined"!=typeof window,r=n&&Node.ELEMENT_NODE,{toString:o,hasOwnProperty:s}=Object.prototype,l=/^\[object (.+)\]$/,c=t=>void 0===t,i=t=>null===t,a=t=>c(t)||i(t)?`${t}`:o.call(t).replace(l,"$1").toLowerCase(),u=t=>"number"==typeof t,d=t=>"string"==typeof t,p=t=>"boolean"==typeof t,f=t=>"function"==typeof t,h=t=>Array.isArray(t),y=t=>"object"==typeof t&&!h(t)&&!i(t),v=t=>{const e=!!t&&t.length,n=u(e)&&e>-1&&e%1==0;return!(!(h(t)||!f(t)&&n)||e>0&&y(t)&&!(e-1 in t))},b=t=>{if(!t||!y(t)||"object"!==a(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,l=s.call(t,n),i=o&&s.call(o,"isPrototypeOf");if(r&&!l&&!i)return!1;for(e in t);return c(e)||s.call(t,e)},w=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===r)},g=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===r)};function x(t,e){if(v(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&x(Object.keys(t),(n=>e(t[n],n,t)));return t}const m=(t,e)=>t.indexOf(e)>=0,$=(t,e)=>t.concat(e),S=(t,e,n)=>(n||d(e)||!v(e)?t.push(e):Array.prototype.push.apply(t,e),t),O=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach((t=>{S(n,t)})):x(t,(t=>{S(n,t)})),n)},E=t=>!!t&&!t.length,C=t=>O(new Set(t)),T=(t,e,n)=>{x(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},H=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),P=t=>t?Object.keys(t):[],z=(t,e,n,r,o,s,l)=>{const c=[e,n,r,o,s,l];return"object"==typeof t&&!i(t)||f(t)||(t={}),x(c,(e=>{x(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=h(o);if(o&&b(o)){const e=t[r];let n=e;s&&!h(e)?n=[]:s||b(e)||(n={}),t[r]=z(n,o)}else t[r]=s?o.slice():o}))})),t},D=t=>{for(const e in t)return!1;return!0},M=(t,e,n)=>{if(c(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},k=(t,e)=>new Set((M(t,e)||"").split(" ")),A=(t,e)=>{t&&t.removeAttribute(e)},R=(t,e,n,r)=>{if(n){const o=k(t,e);o[r?"add":"delete"](n);const s=O(o).join(" ").trim();M(t,e,s)}},L=n&&Element.prototype,I=(t,e)=>{const n=[],r=e?g(e)&&e:document;return r?S(n,r.querySelectorAll(t)):n},_=(t,e)=>!!g(t)&&(L.matches||L.msMatchesSelector).call(t,e),X=t=>t?O(t.childNodes):[],j=t=>t&&t.parentElement,N=(t,e)=>{if(g(t)){const n=L.closest;if(n)return n.call(t,e);do{if(_(t,e))return t;t=j(t)}while(t)}},F=()=>{},V=t=>{if(v(t))x(O(t),(t=>V(t)));else if(t){const e=j(t);e&&e.removeChild(t)}},Y=(t,e,n)=>{if(n&&t){let r,o=e;return v(n)?(r=document.createDocumentFragment(),x(n,(t=>{t===o&&(o=t.previousSibling),r.appendChild(t)}))):r=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(r,o||null),()=>V(n)}return F},B=(t,e)=>Y(t,null,e),G=(t,e)=>Y(j(t),t&&t.nextSibling,e),U=t=>{const e=document.createElement("div");return M(e,"class",t),e},W=t=>{const e=U();return e.innerHTML=t.trim(),x(X(e),(t=>V(t)))},q=n?window:{},K=Math.max,J=Math.min,Q=Math.round,Z=Math.abs,tt=q.cancelAnimationFrame,et=q.requestAnimationFrame,nt=q.setTimeout,rt=q.clearTimeout,ot=t=>t.charAt(0).toUpperCase()+t.slice(1),st=["-webkit-","-moz-","-o-","-ms-"],lt=["WebKit","Moz","O","MS","webkit","moz","o","ms"],ct={},it={},at=t=>{let e=it[t];if(H(it,t))return e;const n=ot(t),r=U().style;return x(st,(o=>{const s=o.replace(/-/g,""),l=[t,o+t,s+n,ot(s)+n];return!(e=l.find((t=>void 0!==r[t])))})),it[t]=e||""},ut=t=>{let e=ct[t]||q[t];return H(ct,t)||(x(lt,(n=>(e=e||q[n+ot(t)],!e))),ct[t]=e),e},dt=ut("MutationObserver"),pt=ut("IntersectionObserver"),ft=ut("ResizeObserver"),ht=ut("ScrollTimeline"),yt=(t,...e)=>t.bind(0,...e),vt=t=>{let e;const n=t?nt:et,r=t?rt:tt;return[o=>{r(e),e=n(o,f(t)?t():t)},()=>r(e)]},bt=(t,e)=>{let n,r,o,s=F;const{v:l,p:c,g:i}=e||{},a=function(e){s(),rt(n),n=r=void 0,s=F,t.apply(this,e)},d=t=>i&&r?i(r,t):t,p=()=>{s!==F&&a(d(o)||o)},h=function(){const t=O(arguments),e=f(l)?l():l;if(u(e)&&e>=0){const l=f(c)?c():c,i=u(l)&&l>=0,h=e>0?nt:et,y=e>0?rt:tt,v=d(t)||t,b=a.bind(0,v);s();const w=h(b,e);s=()=>y(w),i&&!n&&(n=nt(p,l)),r=o=v}else a(t)};return h.m=p,h},wt=/[^\x20\t\r\n\f]+/g,gt=(t,e,n)=>{const r=t&&t.classList;let o,s=0,l=!1;if(r&&e&&d(e)){const t=e.match(wt)||[];for(l=t.length>0;o=t[s++];)l=!!n(r,o)&&l}return l},xt=(t,e)=>{gt(t,e,((t,e)=>t.remove(e)))},mt=(t,e)=>(gt(t,e,((t,e)=>t.add(e))),yt(xt,t,e)),$t={opacity:1,zIndex:1},St=(t,e)=>{const n=t||"",r=e?parseFloat(n):parseInt(n,10);return r==r?r:0},Ot=(t,e,n)=>String((null!=e?e[n]||e.getPropertyValue(n):t.style[n])||"");function Et(t,e){const n=d(e);if(h(e)||n){let r=n?"":{};if(t){const o=q.getComputedStyle(t,null);r=n?Ot(t,o,e):e.reduce(((e,n)=>(e[n]=Ot(t,o,n),e)),r)}return r}t&&x(e,((n,r)=>((t,e,n)=>{try{const{style:r}=t;c(r[e])?r.setProperty(e,n):r[e]=((t,e)=>!$t[t]&&u(e)?`${e}px`:e)(e,n)}catch(r){}})(t,r,e[r])))}const Ct=t=>"rtl"===Et(t,"direction"),Tt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,l=`${r}right${o}`,c=`${r}bottom${o}`,i=`${r}left${o}`,a=Et(t,[s,l,c,i]);return{t:St(a[s],!0),r:St(a[l],!0),b:St(a[c],!0),l:St(a[i],!0)}},Ht=(t,e)=>`translate${y(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,Pt="paddingTop",zt="paddingRight",Dt="paddingLeft",Mt="paddingBottom",kt="marginLeft",At="marginRight",Rt="marginBottom",Lt="overflowX",It="overflowY",_t="width",Xt="height",jt="hidden",Nt={w:0,h:0},Ft=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:Nt,Vt=t=>Ft("inner",t||q),Yt=yt(Ft,"offset"),Bt=yt(Ft,"client"),Gt=yt(Ft,"scroll"),Ut=t=>{const e=parseFloat(Et(t,_t))||0,n=parseFloat(Et(t,Xt))||0;return{w:e-Q(e),h:n-Q(n)}},Wt=t=>t.getBoundingClientRect(),qt=t=>!(!t||!t[Xt]&&!t[_t]),Kt=(t,e)=>{const n=qt(t);return!qt(e)&&n},Jt=()=>performance.now(),Qt=(t,e,n,r)=>{if(t&&e){let o=!0;return x(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},Zt=(t,e)=>Qt(t,e,["w","h"]),te=(t,e)=>Qt(t,e,["x","y"]),ee=(t,e)=>Qt(t,e,["t","r","b","l"]),ne=(t,e,n)=>Qt(t,e,[_t,Xt],n&&(t=>Q(t)));let re;const oe="passive",se=()=>{if(c(re)){re=!1;try{q.addEventListener(oe,F,Object.defineProperty({},oe,{get(){re=!0}}))}catch(t){}}return re},le=t=>t.split(" "),ce=(t,e,n,r)=>{x(le(e),(e=>{t.removeEventListener(e,n,r)}))},ie=(t,e,n,r)=>{var o;const s=se(),l=null!=(o=s&&r&&r.S)?o:s,c=r&&r.$||!1,i=r&&r.O||!1,a=s?{passive:l,capture:c}:c;return yt(T,le(e).map((e=>{const r=i?o=>{ce(t,e,r,c),n(o)}:n;return t.addEventListener(e,r,a),yt(ce,t,e,r,c)})))},ae=t=>t.stopPropagation(),ue=t=>t.preventDefault(),de={x:0,y:0},pe=t=>{const e=t&&Wt(t);return e?{x:e.left+q.pageYOffset,y:e.top+q.pageXOffset}:de},fe=(t,e,n)=>n?n.n?-t:n.i?e-t:t:t,he=(t,e)=>{const{x:n,y:r}=u(e)?{x:e,y:e}:e||{};u(n)&&(t.scrollLeft=n),u(r)&&(t.scrollTop=r)},ye=t=>({x:t.scrollLeft,y:t.scrollTop}),ve=(t,e)=>{x(h(e)?e:[e],t)},be=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);ve((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(d(t)){const r=e.get(t)||new Set;return e.set(t,r),ve((t=>{f(t)&&r.add(t)}),o),yt(n,t,o)}p(o)&&o&&n();const s=P(t),l=[];return x(s,(e=>{const n=t[e];n&&S(l,r(e,n))})),yt(T,l)};return r(t||{}),[r,n,(t,n)=>{x(O(e.get(t)),(t=>{n&&!E(n)?t.apply(0,n):t()}))}]},we=t=>JSON.stringify(t,((t,e)=>{if(f(e))throw 0;return e})),ge=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&H(t,e)?t[e]:void 0),t):void 0,xe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},me=(t,e)=>{const n={};return x($(P(e),P(t)),(r=>{const o=t[r],s=e[r];if(y(o)&&y(s))z(n[r]={},me(o,s)),D(n[r])&&delete n[r];else if(H(e,r)&&s!==o){let t=!0;if(h(o)||h(s))try{we(o)===we(s)&&(t=!1)}catch(L){}t&&(n[r]=s)}})),n},$e=(t,e,n)=>r=>[ge(t,r),n||void 0!==ge(e,r)],Se=`data-overlayscrollbars`,Oe="os-environment",Ee=`${Oe}-flexbox-glue`,Ce=`${Ee}-max`,Te=`os-scrollbar-hidden`,He=`${Se}-initialize`,Pe=Se,ze=`${Pe}-overflow-x`,De=`${Pe}-overflow-y`,Me="overflowVisible",ke="scrollbarHidden",Ae="scrollbarPressed",Re="updating",Le=`${Se}-viewport`,Ie="arrange",_e="scrollbarHidden",Xe=Me,je=`${Se}-padding`,Ne=Xe,Fe=`${Se}-content`,Ve="os-size-observer",Ye=`${Ve}-appear`,Be=`${Ve}-listener`,Ge=`${Be}-scroll`,Ue=`${Be}-item`,We=`${Ue}-final`,qe="os-trinsic-observer",Ke="os-no-css-vars",Je="os-theme-none",Qe="os-scrollbar",Ze=`${Qe}-rtl`,tn=`${Qe}-horizontal`,en=`${Qe}-vertical`,nn=`${Qe}-track`,rn=`${Qe}-handle`,on=`${Qe}-visible`,sn=`${Qe}-cornerless`,ln=`${Qe}-transitionless`,cn=`${Qe}-interaction`,an=`${Qe}-unusable`,un=`${Qe}-auto-hide`,dn=`${un}-hidden`,pn=`${Qe}-wheel`,fn=`${nn}-interactive`,hn=`${rn}-interactive`,yn={},vn={},bn=(t,e,n,r)=>P(t).map((o=>{const{static:s,instance:l}=t[o],c=n?l:s;if(c){const t=n?c(n,e):c(e);return(r||vn)[o]=t}})),wn=t=>vn[t],gn="__osOptionsValidationPlugin",xn="__osSizeObserverPlugin",mn=(()=>({[xn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=W(`<div class="${Ue}" dir="ltr"><div class="${Ue}"><div class="${We}"></div></div><div class="${Ue}"><div class="${We}" style="width: 200%; height: 200%"></div></div></div>`),l=s[0],c=l.lastChild,i=l.firstChild,a=null==i?void 0:i.firstChild;let u,d=Yt(l),p=d,f=!1;const h=()=>{he(i,r),he(c,r)},y=t=>{u=0,f&&(d=p,e(!0===t))},v=t=>{p=Yt(l),f=!t||!Zt(p,d),t?(ae(t),f&&!u&&(tt(u),u=et(y))):y(!1===t),h()},b=[B(t,s),ie(i,o,v),ie(c,o,v)];return mt(t,Ge),Et(a,{[_t]:r,[Xt]:r}),et(h),[n?yt(v,!1):h,b]}}}))();let $n=0;const Sn="__osScrollbarsHidingPlugin",On=(()=>({[Sn]:{static:()=>({C:t=>{const{H:e,I:n,A:r}=t,o=!(r||e||!n.x&&!n.y)&&document.createElement("style");return o&&(M(o,"id",`${Le}-${Ie}-${$n}`),$n++),o},T:(t,e,n,r,o,s,l)=>[(e,s,l,c)=>{if(t){const{D:t}=o,{R:i,k:a}=e,{x:u,y:d}=a,{x:p,y:f}=i,h=t[c?zt:Dt],y=t.paddingTop,v=s.w+l.w,b=s.h+l.h,w={w:f&&d?`${f+v-h}px`:"",h:p&&u?`${p+b-y}px`:""};if(r){const{sheet:t}=r;if(t){const{cssRules:e}=t;if(e){e.length||t.insertRule(`#${M(r,"id")} + [${Le}~='${Ie}']::before {}`,0);const n=e[0].style;n[_t]=w.w,n[Xt]=w.h}}}else Et(n,{"--os-vaw":w.w,"--os-vah":w.h})}return t},(r,c,i)=>{if(t){const a=i||s(r),{D:u}=o,{k:d}=a,{x:p,y:f}=d,h={},y=t=>x(t,(t=>{h[t]=u[t]}));p&&y([Rt,Pt,Mt]),f&&y([kt,At,Dt,zt]);const v=Et(n,P(h));return R(n,Le,Ie),e||(h[Xt]=""),Et(n,h),[()=>{l(a,c,t,v),Et(n,v),R(n,Le,Ie,!0)},a]}return[F]}],M:()=>{let t={w:0,h:0},e=0;return(n,r,o)=>{const s=Vt(),l={w:s.w-t.w,h:s.h-t.h};if(0===l.w&&0===l.h)return;const c=Z(l.w),i=Z(l.h),a={w:Z(Q(s.w/(t.w/100))),h:Z(Q(s.h/(t.h/100)))},u=(()=>{const t=q.screen,e=t.deviceXDPI||0,n=t.logicalXDPI||1;return q.devicePixelRatio||e/n})(),d=c>2&&i>2,p=!((t,e)=>{const n=Z(t),r=Z(e);return!(n===r||n+1===r||n-1===r)})(a.w,a.h);if(d&&p&&u!==e&&u>0){const[t,e]=r();z(n.L,t),e&&o()}t=s,e=u}}})}}))(),En="__osClickScrollPlugin",Cn=(()=>({[En]:{static:()=>(t,e,n,r,o)=>{let s=0,l=F;const c=i=>{l=((t,e,n,r,o)=>{let s=0;const l=Jt(),c=K(0,133),i=n=>{const a=Jt(),u=a-l>=c,d=n?1:1-(K(0,l+c-a)/c||0),p=(e-t)*(f(o)?o(d,d*c,0,1,c):d)+t,h=u||1===d;r&&r(p,0,h),s=h?0:et((()=>i()))};return i(),t=>{tt(s),t&&i(t)}})(i,i+r*Math.sign(n),0,((n,i,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=nt((()=>{c(n)}),222);l=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>l()}}}))();let Tn;const Hn=(t,e,n,r)=>{B(t,e);const o=Bt(e),s=Yt(e),l=Ut(n);return r&&V(e),{x:s.h-o.h+l.h,y:s.w-o.w+l.w}},Pn=(t,e)=>{Et(t,{[Lt]:jt,[It]:jt,direction:"rtl"}),he(t,{x:0});const n=pe(t),r=pe(e);he(t,{x:-999});const o=pe(e);return{i:n.x===r.x,n:r.x!==o.x}},zn=(t,e)=>{const n=mt(t,Ee),r=Wt(t),o=Wt(e),s=ne(o,r,!0),l=mt(t,Ce),c=Wt(t),i=Wt(e),a=ne(i,c,!0);return n(),l(),s&&a},Dn=()=>(Tn||(Tn=(()=>{const{body:t}=document,n=W(`<div class="${Oe}"><div></div></div>`)[0],r=n.firstChild,[o,,s]=be(),[l,c]=e({o:Hn(t,n,r),u:te},yt(Hn,t,n,r,!0)),[i]=c(),a=(t=>{let e=!1;const n=mt(t,Te);try{e="none"===Et(t,at("scrollbar-width"))||"none"===q.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(r){}return n(),e})(n),u={x:0===i.x,y:0===i.y},d={elements:{host:null,padding:!a,viewport:t=>a&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=z({},xe),f=yt(z,{},p),h=yt(z,{},d),y={L:i,I:u,H:a,A:"-1"===Et(n,"zIndex"),P:!!ht,V:Pn(n,r),U:zn(n,r),B:yt(o,"z"),j:yt(o,"r"),G:h,N:t=>z(d,t)&&h(),q:f,W:t=>z(p,t)&&f(),F:z({},d),X:z({},p)},v=yt(ie,q,"resize"),b=bt((t=>s(t)),{v:33,p:99});return A(n,"style"),V(n),v(yt(b,"r")),a||u.x&&u.y||v((()=>{const t=wn(Sn);(t?t.M():F)(y,l,yt(b,"z"))})),y})()),Tn),Mn=(t,e)=>f(e)?e.apply(0,t):e,kn=(t,e,n,r)=>{const o=c(r)?n:r;return Mn(t,o)||e.apply(0,t)},An=(t,e,n,r)=>{const o=c(r)?n:r,s=Mn(t,o);return!!s&&(w(s)?s:e.apply(0,t))},Rn=new WeakMap,Ln=t=>Rn.get(t),In=(t,e,n,r)=>{let o=!1;const{Y:s,Z:l,J:c,K:i,tt:a,nt:u}=r||{},d=bt((()=>o&&n(!0)),{v:33,p:99}),[p,f]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const l=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||I)(n,t):[],r]}));x(l,(n=>x(n[0],(s=>{const l=n[1],c=o.get(s)||[];if(t.contains(s)&&l){const t=ie(s,l.trim(),(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,S(c,t))}else T(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=l||[],y=$(s||[],h),v=(o,s)=>{if(!E(s)){const l=a||F,c=u||F,d=[],p=[];let y=!1,v=!1;if(x(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:f,removedNodes:b}=n,w="attributes"===a,g="childList"===a,$=t===s,O=w&&o,E=O?M(s,o||""):null,C=O&&u!==E,T=m(h,o)&&C;if(e&&(g||!$)){const e=w&&C,a=e&&i&&_(s,i),p=(a?!l(s,o,u,E):!w||e)&&!c(n,!!a,t,r);x(f,(t=>S(d,t))),x(b,(t=>S(d,t))),v=v||p}!e&&$&&C&&!l(s,o,u,E)&&(S(p,o),y=y||T)})),f((t=>C(d).reduce(((e,n)=>(S(e,I(t,n)),_(n,t)?S(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!E(p)||y){const t=[C(p),y];return!o&&n.apply(0,t),t}}},b=new dt(yt(v,!1));return[()=>(b.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:y,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),b.disconnect(),o=!1)}),()=>{if(o)return d.m(),v(!0,b.takeRecords())}]},_n=(t,n,r)=>{let o=!1;const s=3333333,{ot:l,st:c,et:i}=r||{},a=wn(xn),{V:u}=Dn(),d=yt(Ct,t),[p,f]=vt(33),[y]=e({o:!1,_:!0});return()=>{const r=[f,ie(q,"resize",(()=>{o=!!i,p((()=>{o=!1}))}))],v=W(`<div class="${Ve}"><div class="${Be}"></div></div>`)[0],b=v.firstChild,w=t=>{const e=t instanceof ResizeObserverEntry,r=!e&&h(t);let c=!1,i=!1,a=!0;if(e){const[e,,n]=y(t.contentRect),r=qt(e),s=Kt(e,n);i=!n||s,c=!i&&(!r||o),a=!c}else r?[,a]=t:i=!0===t;if(l&&a){const e=r?t[0]:Ct(v);he(v,{x:fe(s,s,e&&u),y:s})}c||n({ct:r?t:void 0,rt:!r,st:i}),o=!1};if(ft){const t=new ft((t=>w(t.pop())));t.observe(b),S(r,(()=>{t.disconnect()}))}else{if(!a)return F;{const[t,e]=a(b,w,c);S(r,$([mt(v,Ye),ie(v,"animationstart",t)],e))}}if(l){const[t]=e({o:void 0},d);S(r,ie(v,"scroll",(e=>{const n=t(),[r,o,s]=n;o&&(xt(b,"ltr rtl"),mt(b,r?"rtl":"ltr"),w([!!r,o,s])),ae(e)})))}return yt(T,S(r,B(t,v)))}},Xn=(t,n)=>{let r;const o=U(qe),[s]=e({o:!1}),l=(t,e)=>{if(t){const r=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,o]=r;return o&&!e&&n(r)&&[r]}},c=(t,e)=>l(e.pop(),t);return[()=>{const e=[];if(pt)r=new pt(yt(c,!1),{root:t}),r.observe(o),S(e,(()=>{r.disconnect()}));else{const t=()=>{const t=Yt(o);l(t)};S(e,_n(o,t)()),t()}return yt(T,S(e,B(t,o)))},()=>r&&c(!0,r.takeRecords())]},jn=(t,e,n)=>K(t,J(e,n)),Nn=(t,e,n)=>{const r=Q(e),[o,s]=((t,e)=>[e&&e.i?t:0,fe(t,t,e)])(r,n),l=(s-t)/s,c=t/o,i=t/s,a=n?n.n?l:n.i?c:i:i;return jn(0,1,a)},Fn=(t,e,n,r)=>{if(r){const t=n?"x":"y",{Ct:e,zt:o}=r,s=o[t],l=e[t];return jn(0,1,s/(s+l))}const o=n?_t:Xt,s=Wt(t)[o],l=Wt(e)[o];return jn(0,1,s/l)},Vn=(t,e,n)=>{const{G:r,A:o}=Dn(),{scrollbars:s}=r(),{slot:l}=s,{Ht:c,ut:i,ft:a,It:u,At:d,Et:f,vt:y}=e,{scrollbars:v}=u?{}:t,{slot:b}=v||{},w=new Map,g=t=>ht&&new ht({source:d,axis:t}),O=g("x"),C=g("y"),H=An([c,i,a],(()=>y&&f?c:i),l,b),P=t=>y&&!f&&j(t)===a,z=t=>{w.forEach(((e,n)=>{(!t||m(h(t)?t:[t],n))&&((e||[]).forEach((t=>{t&&t.cancel()})),w.delete(n))}))},D=(t,e,n)=>{const r=n?mt:xt;x(t,(t=>{r(t.Tt,e)}))},M=(t,e)=>{x(t,(t=>{const[n,r]=e(t);Et(n,r)}))},k=(t,e,n)=>{M(t,(t=>{const{Dt:r,Rt:o}=t;return[r,{[n?_t:Xt]:`${(100*Fn(r,o,n,e)).toFixed(3)}%`}]}))},A=(t,e,n)=>{C||C||M(t,(t=>{const{Dt:r,Rt:o,Tt:s}=t,l=((t,e,n,r,o,s)=>{const{V:l}=Dn(),c=s?"x":"y",i=s?"Left":"Top",{Ct:a}=r,u=Fn(t,e,s);return 1/u*(1-u)*Nn(n[`scroll${i}`],a[c],s&&o&&l)})(r,o,d,e,Ct(s),n);return[r,{transform:l==l?Ht(`${(100*l).toFixed(3)}%`,n):""}]}))},R=t=>{const{Tt:e}=t,n=P(e)&&e,r=ye(d);return[n,{transform:n?Ht({x:`${r.x}px`,y:`${r.y}px`}):""}]},L=(t,e,n,r)=>e&&t.animate(n,{timeline:e,composite:r}),I=(t,e,n,r)=>L(t,e,{transform:[Ht(`0px`,r),Ht(`${K(0,n-.5)}px`,r)]},"add"),_=[],X=[],N=[],F=(t,e,n)=>{const r=p(n),o=!r||!n;(!r||n)&&D(X,t,e),o&&D(N,t,e)},Y=t=>{const e=t?tn:en,r=t?X:N,s=E(r)?ln:"",l=U(`${Qe} ${e} ${s}`),c=U(nn),i=U(rn),a={Tt:l,Rt:c,Dt:i};return o||mt(l,Ke),S(r,a),S(_,[B(l,c),B(c,i),yt(V,l),z,n(a,F,t)]),a},G=yt(Y,!0),W=yt(Y,!1);return G(),W(),[{kt:t=>{k(X,t,!0),k(N,t)},Mt:t=>{A(X,t,!0),A(N,t)},Lt:()=>{const t=(t,{Tt:e,Dt:n})=>{const r=t&&Ct(e);z(n),w.set(n,[L(n,t?O:C,{transform:[Ht(`0%`,t),Ht(t&&r?"100%":"-100%",t)],[t?r?"right":"left":"top"]:["0%","100%"]})])};X.forEach(yt(t,!0)),N.forEach(yt(t,!1))},Pt:({Ct:t})=>{$(N,X).forEach((({Tt:e})=>{z(e),P(e)&&w.set(e,[I(e,O,t.x,!0),I(e,C,t.y)])}))},Vt:()=>{C||C||(y&&M(X,R),y&&M(N,R))},Ut:F,Bt:{P:O,jt:X,Gt:G,Nt:yt(M,X)},qt:{P:C,jt:N,Gt:W,Nt:yt(M,N)}},()=>(B(H,X[0].Tt),B(H,N[0].Tt),nt((()=>{F(ln)}),300),yt(T,_))]},Yn=(t,e,n)=>{const{ut:r,At:o,Wt:s}=e,l=(e,l)=>{const{Dt:c,Rt:i}=e,a=`scroll${l?"Left":"Top"}`,u=`client${l?"X":"Y"}`,d=l?_t:Xt,p=l?"left":"top",f=l?"w":"h",h=l?"x":"y",y="pointerup pointerleave pointercancel lostpointercapture",v=(t,e)=>r=>{const{Ct:s}=n,l=Yt(i)[f]-Yt(c)[f],u=e*r/l*s[h];o[a]=t+u};return ie(i,"pointerdown",(e=>{const n=N(e.target,`.${rn}`)===c,l=n?c:i,h=t.scrollbars,{button:b,isPrimary:w,pointerType:g}=e,{pointers:x}=h,m=0===b&&w&&h[n?"dragScroll":"clickScroll"]&&(x||[]).includes(g);if(R(r,Pe,Ae,!0),m){const t=!n&&e.shiftKey,h=yt(Wt,c),b=yt(Wt,i),w=(t,e)=>(t||h())[p]-(e||b())[p],g=Q(Wt(o)[d])/Yt(o)[f]||1,x=v(o[a]||0,1/g),m=e[u],$=h(),O=b(),E=$[d],C=w($,O)+E/2,H=m-O[p],P=n?0:H-C,z=t=>{T(D),l.releasePointerCapture(t.pointerId)},D=[yt(R,r,Pe,Ae),ie(s,y,z),ie(s,"selectstart",(t=>ue(t)),{S:!1}),ie(i,y,z),ie(i,"pointermove",(e=>{const r=e[u]-m;(n||t)&&x(P+r)}))];if(t)x(P);else if(!n){const t=wn(En);t&&S(D,t(x,w,P,E,H))}l.setPointerCapture(e.pointerId)}}))};return(t,e,n)=>{const{Tt:c}=t,[i,a]=vt(333),u=!!o.scrollBy;let d=!0;return yt(T,[ie(c,"pointerenter",(()=>{e(cn,!0)})),ie(c,"pointerleave pointercancel",(()=>{e(cn,!1)})),ie(c,"wheel",(t=>{const{deltaX:n,deltaY:s,deltaMode:l}=t;u&&d&&0===l&&j(c)===r&&o.scrollBy({left:n,top:s,behavior:"smooth"}),d=!1,e(pn,!0),i((()=>{d=!0,e(pn)})),ue(t)}),{S:!1,$:!0}),ie(c,"mousedown",yt(ie,s,"click",ae,{O:!0,$:!0}),{$:!0}),l(t,n),a])}},Bn=({_t:t})=>({Xt:e,rn:n,xt:r})=>{const{U:o}=Dn(),{bt:s}=e||{},{lt:l}=n;(t||!o)&&(s||r)&&Et(t,{[Xt]:l?"":"100%"})},Gn=({ut:t,nn:n,ft:r,vt:o},s)=>{const[l,c]=e({u:ee,o:Tt()},yt(Tt,t,"padding",""));return({$t:t,Xt:e,rn:i,xt:a})=>{let[u,d]=c(a);const{H:p,U:f}=Dn(),{rt:h,yt:y,wt:v}=e||{},{it:b}=i,[w,g]=t("paddingAbsolute");(h||d||a||!f&&y)&&([u,d]=l(a));const x=!o&&(g||v||d);if(x){const t=!w||!n&&!p,e=u.r+u.l,o=u.t+u.b,l={[At]:t&&!b?-e:0,[Rt]:t?-o:0,[kt]:t&&b?-e:0,top:t?-u.t:0,right:t?b?-u.r:"auto":0,left:t?b?"auto":-u.l:0,[_t]:t?`calc(100% + ${e}px)`:""},c={[Pt]:t?u.t:0,[zt]:t?u.r:0,[Mt]:t?u.b:0,[Dt]:t?u.l:0};Et(n||r,l),Et(r,c),z(s,{nn:u,ln:!t,D:n?c:z({},l,c)})}return{an:x}}},Un=({ut:t,nn:n,ft:r,sn:o,vt:s,gt:l,Et:c,en:i},a)=>{const u=yt(K,0),d="visible",p=42,f={u:Zt,o:{w:0,h:0}},h={u:te,o:{x:jt,y:jt}},y=(t,e)=>{const n=q.devicePixelRatio%1!=0?1:0,r={w:u(t.w-e.w),h:u(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},v=t=>0===t.indexOf(d),{L:b,U:w,H:g,I:x}=Dn(),m=wn(Sn),$=!s&&!g&&(x.x||x.y),S=c&&s,[O,E]=e(f,yt(Ut,r)),[C,T]=e(f,yt(Gt,r)),[H,P]=e(f),[D,k]=e(f),[A]=e(h),L=(e,n)=>{if(Et(r,{[Xt]:""}),n){const{ln:n,nn:o}=a,{un:s,R:l}=e,c=Ut(t),i=Bt(t),u="content-box"===Et(r,"boxSizing"),d=n||u?o.b+o.t:0,p=!(x.x&&u);Et(r,{[Xt]:i.h+c.h+(s.x&&p?l.x:0)-d})}},I=(t,e)=>{const n=g||t?0:p,o=(t,o,s)=>{const l=Et(r,t),c="scroll"===(e?e[t]:l);return[l,c,c&&!g?o?n:s:0,o&&!!n]},[s,l,c,i]=o(Lt,x.x,b.x),[a,u,d,f]=o(It,x.y,b.y);return{Qt:{x:s,y:a},un:{x:l,y:u},R:{x:c,y:d},k:{x:i,y:f}}},_=(t,e,n,r)=>{const o=(t,e)=>{const n=v(t),r=e&&n&&t.replace(`${d}-`,"")||"";return[e&&!n?t:"",v(r)?"hidden":r]},[s,l]=o(n.x,e.x),[c,i]=o(n.y,e.y);return r[Lt]=l&&c?l:s,r[It]=i&&s?i:c,I(t,r)},X=(t,e,n,r)=>{const{R:o,k:s}=t,{x:l,y:c}=s,{x:i,y:u}=o,{D:d}=a,p=e?kt:At,f=e?Dt:zt,h=d[p],y=d[Rt],v=d[f],b=d[Mt];r[_t]=`calc(100% + ${u+-1*h}px)`,r[p]=-u+h,r[Rt]=-i+y,n&&(r[f]=v+(c?u:0),r[Mt]=b+(l?i:0))},[j,N]=m?m.T($,w,r,o,a,I,X):[()=>$,()=>[F]];return({$t:e,Xt:o,rn:c,xt:d},{an:p})=>{const{rt:f,St:h,yt:b,bt:m,wt:$}=o||{},{lt:F,it:V}=c,[Y,B]=e("showNativeOverlaidScrollbars"),[G,U]=e("overflow"),W=Y&&x.x&&x.y,q=!s&&!w&&(f||b||h||B||m),J=f||p||b||$||B,Q=v(G.x),Z=v(G.y),tt=Q||Z;let et,nt=E(d),rt=T(d),ot=P(d),st=k(d);if(B&&g&&l(_e,ke,!W),q&&(et=I(W),L(et,F)),J){tt&&l(Xe,Me,!1);const[t,e]=N(W,V,et),[n,o]=nt=O(d),[s,c]=rt=C(d),a=Bt(r);let p=s,f=a;t(),(c||o||B)&&e&&!W&&j(e,s,n,V)&&(f=Bt(r),p=Gt(r));const h=Vt(i),v={w:u(K(s.w,p.w)+n.w),h:u(K(s.h,p.h)+n.h)},b={w:u((S?h.w:f.w+u(a.w-s.w))+n.w),h:u((S?h.h:f.h+u(a.h-s.h))+n.h)};st=D(b),ot=H(y(v,b),d)}const[lt,ct]=st,[it,at]=ot,[ut,dt]=rt,[pt,ft]=nt,ht={x:it.w>0,y:it.h>0},yt=Q&&Z&&(ht.x||ht.y)||Q&&ht.x&&!ht.y||Z&&ht.y&&!ht.x;if(p||$||ft||dt||ct||at||U||B||q||J){const e={[At]:0,[Rt]:0,[kt]:0,[_t]:"",[Lt]:"",[It]:""},n=_(W,ht,G,e),o=j(n,ut,pt,V);s||X(n,V,o,e),q&&L(n,F),s?(M(t,ze,e[Lt]),M(t,De,e[It])):Et(r,e)}R(t,Pe,Me,yt),R(n,je,Ne,yt),s||R(r,Le,Xe,tt);const[vt,bt]=A(I(W).Qt);return z(a,{Qt:vt,zt:{x:lt.w,y:lt.h},Ct:{x:it.w,y:it.h},tn:ht}),{Kt:bt,Zt:ct,Jt:at}}},Wn=(t,n,r,o)=>{const[s,l,c,i,a]=(t=>{const[e,n,r]=(t=>{const e=Dn(),{G:n,H:r}=e,o=wn(Sn),s=o&&o.C,{elements:l}=n(),{host:c,padding:i,viewport:a,content:u}=l,d=w(t),p=d?{}:t,{elements:f}=p,{host:h,padding:y,viewport:v,content:b}=f||{},g=d?t:p.target,x=_(g,"textarea"),$=g.ownerDocument,O=$.documentElement,E=g===$.body,C=$.defaultView,H=yt(kn,[g]),z=yt(An,[g]),D=yt(Mn,[g]),L=yt(U,""),I=yt(H,L,a),N=yt(z,L,u),W=I(v),q=W===g,K=q&&E,J=!q&&N(b),Q=!q&&w(W)&&W===J,Z=Q&&!!D(u),tt=Z?I():W,et=Z?J:N(),nt=K?O:Q?tt:W,rt=x?H(L,c,h):g,ot=K?nt:rt,st=Q?et:J,lt=$.activeElement,ct=!q&&C.top===C&&lt===g,it={Ht:g,ut:ot,ft:nt,nn:!q&&z(L,i,y),_t:st,sn:!q&&!r&&s&&s(e),At:K?O:nt,Ft:K?$:nt,en:C,Wt:$,dt:x,Et:E,It:d,vt:q,cn:Q,ht:(t,e)=>((t,e,n)=>k(t,e).has(n))(nt,q?Pe:Le,q?e:t),gt:(t,e,n)=>R(nt,q?Pe:Le,q?e:t,n)},at=P(it).reduce(((t,e)=>{const n=it[e];return S(t,!(!n||!w(n)||j(n))&&n)}),[]),ut=t=>t?m(at,t):null,{Ht:dt,ut:pt,nn:ft,ft:ht,_t:vt,sn:bt}=it,wt=[()=>{A(pt,Pe),A(pt,He),A(dt,He),E&&(A(O,Pe),A(O,He))}],gt=x&&ut(pt);let xt=x?dt:X([vt,ht,ft,pt,dt].find((t=>!1===ut(t))));const $t=K?dt:vt||ht,St=yt(T,wt);return[it,()=>{M(pt,Pe,q?"viewport":"host"),M(ft,je,""),M(vt,Fe,""),q||M(ht,Le,"");const t=E&&!q?mt(j(g),Te):F,e=t=>{B(j(t),X(t)),V(t)};if(gt&&(G(dt,pt),S(wt,(()=>{G(pt,dt),V(pt)}))),B($t,xt),B(pt,ft),B(ft||pt,!q&&ht),B(ht,vt),S(wt,(()=>{t(),A(ft,je),A(vt,Fe),A(ht,ze),A(ht,De),A(ht,Le),ut(vt)&&e(vt),ut(ht)&&e(ht),ut(ft)&&e(ft)})),r&&!q&&(R(ht,Le,_e,!0),S(wt,yt(A,ht,Le))),bt&&(((t,e)=>{Y(j(t),t,e)})(ht,bt),S(wt,yt(V,bt))),ct){const t="tabindex",e=M(ht,t);M(ht,t,"-1"),ht.focus();const n=()=>e?M(ht,t,e):A(ht,t),r=ie($,"pointerdown keydown",(()=>{n(),r()}));S(wt,[n,r])}else lt&&lt.focus&&lt.focus();return xt=0,St},St]})(t),o={nn:{t:0,r:0,b:0,l:0},ln:!1,D:{[At]:0,[Rt]:0,[kt]:0,[Pt]:0,[zt]:0,[Mt]:0,[Dt]:0},zt:{x:0,y:0},Ct:{x:0,y:0},Qt:{x:jt,y:jt},tn:{x:!1,y:!1}},{Ht:s,ft:l,gt:c,vt:i}=e,{H:a,I:u,U:d}=Dn(),p=!a&&(u.x||u.y),f=[Bn(e),Gn(e,o),Un(e,o)];return[n,t=>{const e={},n=(p||!d)&&ye(l);return c("",Re,!0),x(f,(n=>{z(e,n(t,e)||{})})),c("",Re),he(l,n),!i&&he(s,0),e},o,e,r]})(t),[p,y,v]=((t,n)=>{let r,o,s,l,c;const{H:i}=Dn(),a=`[${Pe}]`,p=`[${Le}]`,y=["tabindex"],v=["wrap","cols","rows"],b=["id","class","style","open"],w={lt:!1,it:Ct(t.ut)},{ut:S,ft:O,_t:E,dt:C,vt:T,ht:H,gt:D}=t,{U:k}=Dn(),[R]=e({u:Zt,o:{w:0,h:0}},(()=>{const t=H(Xe,Me),e=H(Ie,""),n=e&&ye(O);D(Xe,Me),D(Ie,""),D("",Re,!0);const r=Gt(E),o=Gt(O),s=Ut(O);return D(Xe,Me,t),D(Ie,"",e),D("",Re),he(O,n),{w:o.w+r.w+s.w,h:o.h+r.h+s.h}})),L=C?v:$(b,v),I=bt(n,{v:()=>r,p:()=>o,g(t,e){const[n]=t,[r]=e;return[$(P(n),P(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),_=t=>{x(t||y,(t=>{if(m(y,t)){const e=M(S,t);d(e)?M(O,t,e):A(O,t)}}))},X=(t,e)=>{const[r,o]=t,s={bt:o};return z(w,{lt:r}),!e&&n(s),s},j=({rt:t,ct:e,st:r})=>{const o=(!t||r||e)&&i?I:n,[s,l]=e||[];e&&z(w,{it:s}),o({rt:t||r,st:r,wt:l})},F=(t,e)=>{const[,r]=R(),o={yt:r};return r&&!e&&(t?n:I)(o),o},V=(t,e,n)=>{const r={St:e};return e&&!n?I(r):T||_(t),r},[Y,B]=E||!k?Xn(S,X):[],G=!T&&_n(S,j,{st:!0,ot:!0,et:!0}),[U,W]=In(S,!1,V,{Z:b,Y:$(b,y)}),q=T&&ft&&new ft((t=>{const e=t[t.length-1].contentRect;j({rt:!0,st:Kt(e,c)}),c=e}));return[()=>{_(),q&&q.observe(S);const t=G&&G(),e=Y&&Y(),n=U();return()=>{q&&q.disconnect(),t&&t(),e&&e(),l&&l(),n()}},({$t:t,Ot:e,xt:n})=>{const c={},[i]=t("update.ignoreMutation"),[d,y]=t("update.attributes"),[v,b]=t("update.elementEvents"),[w,x]=t("update.debounce"),m=e||n;if(b||y){s&&s(),l&&l();const[t,e]=In(E||O,!0,F,{Y:$(L,d||[]),J:v,K:a,nt:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||T)&&((t,e,n)=>{const r=N(t,e),o=t&&((t,e)=>{const n=e?g(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=N(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&N(N(t,n),e)!==r)})(n,a,p)||!!N(n,`.${Qe}`)||!!(t=>f(i)&&i(t))(t)}});l=t(),s=e}if(x)if(I.m(),h(w)){const t=w[0],e=w[1];r=u(t)&&t,o=u(e)&&e}else u(w)?(r=w,o=!1):(r=!1,o=!1);if(m){const t=W(),e=B&&B(),n=s&&s();t&&z(c,V(t[0],t[1],m)),e&&z(c,X(e[0],m)),n&&z(c,F(n[0],m))}return c},w]})(i,(t=>{L({},t)})),[b,O,,E]=((t,e,n,r,o,s)=>{let l,c,i,a,u,d=F,p=0;const[f,h]=vt(),[y,v]=vt(),[b,w]=vt(100),[g,x]=vt(100),[m,$]=vt(100),[O,E]=vt((()=>p)),[C,H]=Vn(t,o,Yn(e,o,r)),{ut:P,Ft:z,Et:D}=o,{Ut:M,kt:k,Mt:A,Lt:R,Pt:L,Vt:I}=C,_=t=>{M(un,t,!0),M(un,t,!1)},X=(t,e)=>{if(E(),t)M(dn);else{const t=yt(M,dn,!0);p>0&&!e?O(t):t()}},j=t=>"mouse"===t.pointerType,N=t=>{j(t)&&(a=c,a&&X(!0))},V=[w,E,x,$,v,h,()=>d(),ie(P,"pointerover",N,{O:!0}),ie(P,"pointerenter",N),ie(P,"pointerleave",(t=>{j(t)&&(a=!1,c&&X(!1))})),ie(P,"pointermove",(t=>{j(t)&&l&&f((()=>{w(),X(!0),g((()=>{l&&X(!1)}))}))})),ie(z,"scroll",(t=>{y((()=>{A(r),i&&X(!0),b((()=>{i&&!a&&X(!1)}))})),s(t),I()}))];return[()=>yt(T,S(V,H())),({$t:t,xt:e,Xt:o,Yt:s})=>{const{Zt:a,Jt:f,Kt:h}=s||{},{wt:y,st:v}=o||{},{it:b}=n,{I:w}=Dn(),{Ct:g,Qt:x,tn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[E,C]=t("scrollbars.theme"),[T,H]=t("scrollbars.visibility"),[P,j]=t("scrollbars.autoHide"),[N,F]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[Y,B]=t("scrollbars.dragScroll"),[G,U]=t("scrollbars.clickScroll"),W=v&&!e,q=$.x||$.y,K=a||f||y||e,J=h||H,Q=S&&w.x&&w.y,Z=(t,e)=>{const n="visible"===T||"auto"===T&&"scroll"===t;return M(on,n,e),n};if(p=V,W&&(N&&q?(_(!1),d(),m((()=>{d=ie(z,"scroll",yt(_,!0),{O:!0})}))):_(!0)),O&&M(Je,Q),C&&(M(u),M(E,!0),u=E),F&&!N&&_(!0),j&&(l="move"===P,c="leave"===P,i="never"!==P,X(!i,!0)),B&&M(hn,Y),U&&M(fn,G),J){const t=Z(x.x,!0),e=Z(x.y,!1);M(sn,!(t&&e))}K&&(k(r),A(r),R(r),I(),L(r),M(an,!g.x,!0),M(an,!g.y,!1),M(Ze,b&&!D))},{},C]})(t,n,v,c,i,o),C=t=>x(z({},t),((t,e,n)=>{n[e]=!!t})),H=t=>P(t).some((e=>!!t[e])),L=(t,e)=>{const{fn:o,xt:s,Ot:c,_n:i,dn:a}=t,u=o||{},d=!!s,p={$t:$e(n,u,d),fn:u,xt:d};if(i)return O(p),!1;const f=e||y(z({},p,{Ot:c}));a&&z(f,{rt:!0,yt:!0});const h=l(z({},p,{rn:v,Xt:f}));O(z({},p,{Xt:f,Yt:h}));const b=H(f),w=H(h),g=b||w||!D(u)||d;return g&&r(t,{Xt:C(f),Yt:C(h)}),g};return[()=>{const{Ht:t,ft:e,Wt:n,Et:r}=i,o=r?n.documentElement:t,l=ye(o),c=[p(),s(),b()];return he(e,l),yt(T,c)},L,()=>({vn:v,hn:c}),{pn:i,gn:E},a]},qn=(t,e,n)=>{const{q:r,B:o,j:s}=Dn(),l=w(t),a=l?t:t.target,u=Ln(a);if(e&&!u){let u=!1;const d=[],p={},f=t=>{const e=wn(gn);return e?e(t,!0):t},h=z({},r(),f(e)),[y,v,b]=be(n),[w,g,x,m,$]=Wn(t,h,(({fn:t,xt:e},{Xt:n,Yt:r})=>{const{rt:o,wt:s,bt:l,yt:c,St:i}=n,{Zt:a,Jt:u,Kt:d}=r;b("updated",[E,{updateHints:{sizeChanged:o,directionChanged:s,heightIntrinsicChanged:l,overflowEdgeChanged:a,overflowAmountChanged:u,overflowStyleChanged:d,contentMutation:c,hostMutation:i},changedOptions:t||{},force:!!e}])}),(t=>b("scroll",[E,t]))),O=t=>{(t=>{Rn.delete(t)})(a),T(d),u=!0,b("destroyed",[E,t]),v()},E={options(t,e){if(t){const n=e?r():{},o=me(h,z(n,f(t)));D(o)||(z(h,o),g({fn:o}))}return z({},h)},on:y,off:(t,e)=>{t&&e&&v(t,e)},state(){const{vn:t,hn:e}=x(),{it:n}=t,{zt:r,Ct:o,Qt:s,tn:l,nn:c,ln:i}=e;return z({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:l,padding:c,paddingAbsolute:i,directionRTL:n,destroyed:u})},elements(){const{Ht:t,ut:e,nn:n,ft:r,_t:o,At:s,Ft:l}=m.pn,{Bt:c,qt:i}=m.gn,a=t=>{const{Dt:e,Rt:n,Tt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{jt:e,Gt:n}=t,r=a(e[0]);return z({},r,{clone:()=>{const t=a(n());return g({_n:!0}),t}})};return z({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:l,scrollbarHorizontal:u(c),scrollbarVertical:u(i)})},update:t=>g({xt:t,Ot:!0}),destroy:yt(O,!1),plugin:t=>p[P(t)[0]]},C=()=>{const{hn:t}=x(),{tn:e}=t,n=e.x||e.y;n&&g({dn:n})};return S(d,[o(C),s(C),$]),((t,e)=>{Rn.set(t,e)})(a,E),bn(yn,qn,E,p),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{I:o,H:s,G:l}=Dn(),{nativeScrollbarsOverlaid:a,body:u}=l().cancel,d=null!=n?n:a,p=c(r)?u:r,f=(o.x||o.y)&&d,h=t&&(i(p)?!s:p);return!!f||!!h})(m.pn.Et,!l&&t.cancel)?(O(!0),E):(S(d,w()),b("initialized",[E]),E.update(!0),E)}return u};return qn.plugin=t=>{const e=h(t),n=e?t:[t],r=n.map((t=>bn(t,qn)[0]));return(t=>{x(t,(t=>x(t,((e,n)=>{yn[n]=t[n]}))))})(n),e?r:r[0]},qn.valid=t=>{const e=t&&t.elements,n=f(e)&&e();return b(n)&&!!Ln(n.target)},qn.env=()=>{const{L:t,I:e,H:n,V:r,U:o,A:s,P:l,F:c,X:i,G:a,N:u,q:d,W:p}=Dn();return z({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:o,cssCustomProperties:s,scrollTimeline:l,staticDefaultInitialization:c,staticDefaultOptions:i,getDefaultInitialization:a,setDefaultInitialization:u,getDefaultOptions:d,setDefaultOptions:p})},t.ClickScrollPlugin=Cn,t.OverlayScrollbars=qn,t.ScrollbarsHidingPlugin=On,t.SizeObserverPlugin=mn,Object.defineProperties(t,{bn:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t}({});
# Changelog
## 2.4.0
### Features
- Finalize and document the plugin system which makes it possible to create "static" and / or "instance" plugins.
- The static `OverlayScrollbars.plugin` function returns a "static" plugins instance(s) for the registered plugins.
- A new `instance.plugin` function which returns a "instance" plugins instance.
- window `resize` events will now update instances only if it is needed and only what is needed.
### Improvements
- Small internal rewrite to improve stability, performance and bundle size.
- Improvements the documentation and README.
## 2.3.2

@@ -4,0 +18,0 @@

{
"name": "overlayscrollbars",
"version": "2.3.2",
"version": "2.4.0",
"description": "A scrollbar plugin that hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.",

@@ -5,0 +5,0 @@ "author": "Rene Haas | KingSora",

@@ -145,4 +145,2 @@ <div align="center">

> __Note__: For now please refer to the <b>TypeScript definitions</b> for a more detailed description of all possibilities.
The only required field is the `target` field. This is the field to which the plugin is applied to.

@@ -390,2 +388,64 @@ If you use the object initialization only with the `target` field, the outcome is equivalent to the element initialization:

#### TypeScript
```ts
// The options of a OverlayScrollbars instance.
export type Options = {
// Whether the padding shall be absolute.
paddingAbsolute: boolean;
// Whether to show the native scrollbars. Has only an effect it the native scrollbars are overlaid.
showNativeOverlaidScrollbars: boolean;
// Customizes the automatic update behavior.
update: {
/**
* The given Event(s) from the elements with the given selector(s) will trigger an update.
* Useful for everything the MutationObserver and ResizeObserver can't detect
* e.g.: and Images `load` event or the `transitionend` / `animationend` events.
*/
elementEvents: Array<[elementSelector: string, eventNames: string]> | null;
/**
* The debounce which is used to detect content changes.
* If a tuple is provided you can customize the `timeout` and the `maxWait` in milliseconds.
* If a single number customizes only the `timeout`.
*
* If the `timeout` is `0`, a debounce still exists. (its executed via `requestAnimationFrame`).
*/
debounce: [timeout: number, maxWait: number] | number | null;
/**
* HTML attributes which will trigger an update if they're changed.
* Basic attributes like `id`, `class`, `style` etc. are always observed and doesn't have to be added explicitly.
*/
attributes: string[] | null;
// A function which makes it possible to ignore a content mutation or null if nothing shall be ignored.
ignoreMutation: ((mutation: MutationRecord) => any) | null;
};
// Customizes the overflow behavior per axis.
overflow: {
// The overflow behavior of the horizontal (x) axis.
x: OverflowBehavior;
// The overflow behavior of the vertical (y) axis.
y: OverflowBehavior;
};
// Customizes appearance of the scrollbars.
scrollbars: {
// The scrollbars theme. The theme value will be added as `class` to all `scrollbar` elements of the instance.
theme: string | null;
// The scrollbars visibility behavior.
visibility: ScrollbarsVisibilityBehavior;
// The scrollbars auto hide behavior.
autoHide: ScrollbarsAutoHideBehavior;
// The scrollbars auto hide delay in milliseconds.
autoHideDelay: number;
// Whether the scrollbars auto hide behavior is suspended until a scroll happened.
autoHideSuspend: boolean;
// Whether its possible to drag the handle of a scrollbar to scroll the viewport.
dragScroll: boolean;
// Whether its possible to click the track of a scrollbar to scroll the viewport.
clickScroll: boolean;
// An array of pointer types which shall be supported.
pointers: string[] | null;
};
};
```
</details>

@@ -412,3 +472,3 @@

> __Note__: Every event receives the `instance` from which it was invoked as the first argument. Always.
> __Note__: Every event receives the `instance` from which it was dispatched as the first argument. Always.

@@ -419,5 +479,5 @@ ### `initialized`

| :--- | :--- |
| `instance` | The instance which invoked the event. |
| `instance` | The instance which dispatched the event. |
Is invoked after all generated elements, observers and events were appended to the DOM.
Is dispatched after all generated elements, observers and events were appended to the DOM.

@@ -428,8 +488,8 @@ ### `updated`

| :--- | :--- |
| `instance` | The instance which invoked the event. |
| `instance` | The instance which dispatched the event. |
| `onUpdatedArgs` | An `object` which describes the update in detail. |
> __Note__: If an update was triggered but nothing changed, the event won't be invoked.
> __Note__: If an update was triggered but nothing changed, the event won't be dispatched.
Is invoked after the instace was updated.
Is dispatched after the instace was updated.

@@ -440,6 +500,6 @@ ### `destroyed`

| :--- | :--- |
| `instance` | The instance which invoked the event. |
| `instance` | The instance which dispatched the event. |
| `canceled` | An `boolean` which indicates whether the initialization was canceled and thus destroyed. |
Is invoked after all generated elements, observers and events were removed from the DOM.
Is dispatched after all generated elements, observers and events were removed from the DOM.

@@ -450,7 +510,49 @@ ### `scroll`

| :--- | :--- |
| `instance` | The instance which invoked the event. |
| `instance` | The instance which dispatched the event. |
| `event` | The original `event` argument of the DOM event. |
Is invoked by scrolling the viewport.
Is dispatched by scrolling the viewport.
#### TypeScript
```ts
// A mapping between event names and their listener arguments.
export type EventListenerArgs = {
// Dispatched after all elements are initialized and appended.
initialized: [instance: OverlayScrollbars];
// Dispatched after an update.
updated: [instance: OverlayScrollbars, onUpdatedArgs: OnUpdatedEventListenerArgs];
// Dispatched after all elements, observers and events are destroyed.
destroyed: [instance: OverlayScrollbars, canceled: boolean];
// Dispatched on scroll.
scroll: [instance: OverlayScrollbars, event: Event];
};
export interface OnUpdatedEventListenerArgs {
// Hints which describe what changed in the DOM.
updateHints: {
// Whether the size of the host element changed.
sizeChanged: boolean;
// Whether the direction of the host element changed.
directionChanged: boolean;
// Whether the intrinsic height behavior changed.
heightIntrinsicChanged: boolean;
// Whether the overflow edge (clientWidth / clientHeight) of the viewport element changed.
overflowEdgeChanged: boolean;
// Whether the overflow amount changed.
overflowAmountChanged: boolean;
// Whether the overflow style changed.
overflowStyleChanged: boolean;
// Whether an host mutation took place.
hostMutation: boolean;
// Whether an content mutation took place.
contentMutation: boolean;
};
// The changed options.
changedOptions: PartialOptions;
// Whether the update happened with an force invalidated cache.
force: boolean;
}
```
</details>

@@ -460,43 +562,257 @@

> __Note__: For now please refer to the <b>TypeScript definitions</b> for a more detailed description.
The OverlayScrollbars instance is created by calling the `OverlayScrollbars` function with an element and options object.
```ts
interface OverlayScrollbars {
options(): Options;
options(newOptions: PartialOptions, pure?: boolean): Options;
```js
const osInstance = OverlayScrollbars(document.body, {});
```
on(eventListeners: EventListeners, pure?: boolean): () => void;
on<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>): () => void;
on<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>[]): () => void;
### Instance Methods
off<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>): void;
off<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>[]): void;
<details>
<summary>
This is a in depth topic. Click here to read it.
</summary>
update(force?: boolean): boolean;
### `options(): Options`
state(): State;
Get the current options of the instance.
elements(): Elements;
| returns | description |
| :--- | :--- |
| `Options` | The current options. |
destroy(): void;
}
```
### `options(newOptions, pure?): Options`
## Static Methods
Sets the current options of the instance.
> __Note__: For now please refer to the <b>TypeScript definitions</b> for a more detailed description.
| parameter | type | description |
| :--- | :--- | :--- |
| newOptions | `PartialOptions` | The new (partial) options which should be applied. |
| pure | `boolean / undefined` | Whether all already added event listeners will be removed before the new listeners are added. |
```ts
interface OverlayScrollbarsStatic {
(target: InitializationTarget): OverlayScrollbars | undefined;
(target: InitializationTarget, options: PartialOptions, eventListeners?: EventListeners): OverlayScrollbars;
| returns | description |
| :--- | :--- |
| `Options` | The complete new options. |
plugin(plugin: Plugin | Plugin[]): void;
### `on(eventListeners, pure?): Function`
valid(osInstance: any): osInstance is OverlayScrollbars;
Adds event listeners to the instance.
env(): Environment;
}
| parameter | type | description |
| :--- | :--- | :--- |
| eventListeners | `EventListeners` | An object which contains the added listeners. The fields are the event names and the values the listeners. |
| pure | `boolean / undefined` | Whether all already added event listeners will be removed before the new listeners are added. |
| returns | description |
| :--- | :--- |
| `Function` | A function which removes all added event listeners. |
### `on(name, listener): Function`
Adds a single event listener to the instance.
| parameter | type | description |
| :--- | :--- | :--- |
| name | `string` | The event name. |
| listener | `Function` | The function which is invoked when the event is dispatched. |
| returns | description |
| :--- | :--- |
| `Function` | A function which removes the added event listener. |
### `on(name, listeners): Function`
Adds multiple event listeners to the instance.
| parameter | type | description |
| :--- | :--- | :--- |
| name | `string` | The event name. |
| listeners | `Function[]` | The functions which are invoked when the event is dispatched. |
| returns | description |
| :--- | :--- |
| `Function` | A function which removes the added event listeners. |
### `off(name, listener): void`
Removes a single event listener from the instance.
| parameter | type | description |
| :--- | :--- | :--- |
| name | `string` | The event name. |
| listener | `Function` | The function to be removed. |
### `off(name, listeners): void`
Removes multiple event listeners from the instance.
| parameter | type | description |
| :--- | :--- | :--- |
| name | `string` | The event name. |
| listeners | `Function[]` | The functions to be removed. |
### `update(force?): boolean`
Updates the instance.
| parameter | type | description |
| :--- | :--- | :--- |
| force | `boolean / undefined` | Whether the update should force the cache to be invalidated. |
| returns | description |
| :--- | :--- |
| `Function` | A boolean which indicates whether the `update` event was triggered through this update. |
### `state(): State`
Gets the instances state.
| returns | description |
| :--- | :--- |
| `State` | An object which describes the state of the instance. |
### `elements(): Elements`
Gets the instances elments.
| returns | description |
| :--- | :--- |
| `Elements` | An object which describes the elements of the instance. |
### `destroy(): void`
Destroys the instance and removes all added elements.
### `plugin(plugin: object): object | undefined`
Gets the instance modules instance of the passed plugin.
| returns | description |
| :--- | :--- |
| `object / undefined` | An object which describes the plugins instance modules instance or `undefined` if no instance was found. |
#### TypeScript
```ts
// A simplified version of the OverlayScrollbars TypeScript interface.
interface OverlayScrollbars {
// Get the current options of the instance.
options(): Options;
// Sets the current options of the instance.
options(newOptions: PartialOptions, pure?: boolean): Options;
// Adds event listeners to the instance.
on(eventListeners: EventListeners, pure?: boolean): () => void;
// Adds a single event listener to the instance.
on<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>): () => void;
// Adds multiple event listeners to the instance.
on<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>[]): () => void;
// Removes a single event listener from the instance.
off<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>): void;
// Removes multiple event listeners from the instance.
off<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>[]): void;
// Updates the instance.
update(force?: boolean): boolean;
// Gets the instances state.
state(): State;
// Gets the instances elements.
elements(): Elements;
// Destroys the instance and removes all added elements.
destroy(): void;
// Gets the instance modules instance of the passed plugin.
plugin<P extends InstancePlugin>(osPlugin: P): InferInstancePluginModuleInstance<P> | undefined;
}
```
</details>
## Static Object
The static `OverlayScrollbars` object.
```js
OverlayScrollbars.plugin(SomePlugin);
```
### Static Object Methods
<details>
<summary>
This is a in depth topic. Click here to read it.
</summary>
### `plugin(plugin): object | undefined`
Adds a single plugin.
| parameter | type | description |
| :--- | :--- | :--- |
| plugin | `object` | The plugin to be added. |
| returns | description |
| :--- | :--- |
| `object / void` | An object which describes the plugins static modules instance or `void` if no instance was found. |
### `plugin(plugins): (object | void)[]`
Adds multiple plugins.
| parameter | type | description |
| :--- | :--- | :--- |
| plugins | `object[]` | The plugins to be added. |
| returns | description |
| :--- | :--- |
| `(object / void)[]` | An array which describes the plugins static modules instances or `undefined` if no instance was found. |
### `valid(osInstance): boolean`
Checks whether the passed value is a valid and not destroyed overlayscrollbars instance
| parameter | type | description |
| :--- | :--- | :--- |
| osInstance | `any` | The value to be checked. |
| returns | description |
| :--- | :--- |
| `boolean` | Whether the passed value is a valid and not destroyed overlayscrollbars instance. |
### `env(): Environment`
Gets the environment.
| returns | description |
| :--- | :--- |
| `Environment` | An object which described the environment. |
#### TypeScript
```ts
// The OverlayScrollbars static object.
interface OverlayScrollbarsStatic {
// Gets the instance of the passed target or `undefined` the target has no instance.
(target: InitializationTarget): OverlayScrollbars | undefined;
// Initializes OverlayScrollbars to the passed target with passed options and event listeners.
(target: InitializationTarget, options: PartialOptions, eventListeners?: EventListeners): OverlayScrollbars;
// Adds a single plugin.
plugin(plugin: Plugin): InferStaticPluginModuleInstance<Plugin>
// Adds multiple plugins.
plugin(plugins: Plugin[]): InferStaticPluginModuleInstance<Plugin>[];
// Checks whether the passed value is a valid and not destroyed overlayscrollbars instance.
valid(osInstance: any): osInstance is OverlayScrollbars;
// Gets the environment.
env(): Environment;
}
```
</details>
## Styling

@@ -671,8 +987,122 @@

### Writing Plugins
### Plugins in depth
> __Note__: For now please refer to the <b>TypeScript definitions</b> for a more detailed description.
<details>
<summary>
This is a in depth topic. Click here to read it.
</summary>
<br />
You can write and publish your own Plugins. This section is a work in progress.
Plugins are plain objects with a **single field**, the name of the field is the name of the plugin. This name is the plugins identifier and _must_ be unique across all plugin. In case multiple plugins have the same name, the last added plugin overwrites previously added plugins.
### Plugin Modules
A Plugin module is the constructor of a plugin modules instance. There are two kinds of plugin modules: `static` and `instance`. A single plugin must have one or more modules. Plugin modules can return an instance, but doesnt have to.
#### Static Plugin Module
The `static` plugin module is invoked when the plugin is added with the `OverlayScrollbars.plugin` function.
Example plugin with a `static` module:
```js
const staticPlugin = {
// plugin has the name `examplePlugin`
examplePlugin: {
// static function describes a static module and returns the module instance or void / undefined if no instance is needed
// the `osStatic` parameter is the global `OverlayScrollbars` object
static: (osStatic) => {
let count = 0;
const staticPluginModuleInstance = {
getCount: () => count,
increment: () => { count++ },
}
return staticPluginModuleInstance;
}
}
}
```
When the plugin is added with the `OverlayScrollbars.plugin` function, the static module instance is returned:
```js
const staticModuleInstance = OverlayScrollbars.plugin(staticPlugin); // plugins static module is invoked
staticModuleInstance.count; // 0
staticModuleInstance.increment();
staticModuleInstance.count; // 1
```
#### Instance Plugin Module
The `instance` plugin module is invoked when a new `OverlayScrollbars` instance is created but before the `initialized` event is dispatched.
Example plugin with a `instance` module:
```js
const instancePlugin = {
// plugin has the name `examplePlugin`
examplePlugin: {
// instance function describes a instance module and returns the module instance or void / undefined if no instance is needed
// the `osInstance` parameter is the OverlayScrollbar instance the plugin is bound to
// the `osStatic` parameter is the gobal OverlayScrollbar object
instance: (osInstance, osStatic) => {
let count = 0;
const instancePluginModuleInstance = {
getCount: () => count,
increment: () => { count++ },
}
return instancePluginModuleInstance;
}
}
}
```
When the plugin is added with the `OverlayScrollbars.plugin` function all OverlayScrollbar instances will add the plugin automatically from that point on. Already created instances will not have the plugin. The instance modules instance is returned with the `osInstance.plugin` function:
```js
OverlayScrollbars.plugin(instancePlugin); // plugin is added
const osInstance = OverlayScrollbars(document.body, {}); // plugins instance module is invoked
const instancePluginInstance = osInstance.plugin(instancePlugin);
instancePluginInstance.count; // 0
instancePluginInstance.increment();
instancePluginInstance.count; // 1
```
#### TypeScript
For TypeScript users the plugin system provides various types to improve the developer experience:
```ts
// Describes a OverlayScrollbar plugin.
export type Plugin<
// the name of the plugin
Name extends string = string,
// the module instance type of the static module
S extends PluginModuleInstance | void = PluginModuleInstance | void,
// the module instance type of the instance module
I extends PluginModuleInstance | void = PluginModuleInstance | void
> = {
[pluginName in Name]: PluginModule<S, I>;
};
// Describes a OverlayScrollbar plugin which has only a static module.
export type StaticPlugin<
Name extends string = string,
T extends PluginModuleInstance = PluginModuleInstance
> = Plugin<Name, T, void>;
// Describes a OverlayScrollbar plugin which has only a instance module.
export type InstancePlugin<
Name extends string = string,
T extends PluginModuleInstance = PluginModuleInstance
> = Plugin<Name, void, T>;
// Infers the type of the static modules instance of the passed plugin.
export type InferStaticPluginModuleInstance<T extends StaticPlugin>;
// Infers the type of the instance modules instance of the passed plugin.
export type InferInstancePluginModuleInstance<T extends InstancePlugin>;
```
</details>
## FAQ

@@ -679,0 +1109,0 @@

@@ -21,2 +21,7 @@ type CacheValues<T> = [value: T, changed: boolean, previous?: T];

interface XY<T = number> {
x: T;
y: T;
}
interface TRBL {

@@ -29,7 +34,2 @@ t: number;

interface XY<T = number> {
x: T;
y: T;
}
type EventListener$1<EventArgs extends Record<string, any[]>, N extends keyof EventArgs> = (...args: EventArgs[N]) => void;

@@ -83,5 +83,5 @@ type EventListeners$1<EventArgs extends Record<string, any[]>> = {

/**
* Describes the options of a OverlayScrollbars instance.
* The options of a OverlayScrollbars instance.
*/
interface Options {
type Options = {
/** Whether the padding shall be absolute. */

@@ -152,3 +152,3 @@ paddingAbsolute: boolean;

};
}
};
type ReadonlyOptions = DeepReadonly<Options>;

@@ -309,22 +309,55 @@ type PartialOptions = DeepPartial<Options>;

/** Describes the instance of a OverlayScrollbars plugin. */
type PluginInstance =
/** A `static` plugin. Its neither bound to a instance nor to the static object. */
Record<string, unknown>
type PluginModuleInstance = Record<string | number | symbol, any>;
/**
* A plugin which is bound to either a instance or to the static object.
* The function will be called multiple times. Once with the static object and each time a new instance is created.
* The plugin then can add new methods or fields to thow objects.
* These plugins should be side-effect free and deterministic. (same input produces same output)
* Describes a OverlayScrollbars plugin module.
* Plugin modules must be side-effect free and deterministic. (same input produces same output)
*/
| ((staticObj?: OverlayScrollbarsStatic, instanceObj?: OverlayScrollbars) => void);
/** Describes a OverlayScrollbars plugin. */
type Plugin<T extends PluginInstance = PluginInstance> = {
[pluginName: string]: T;
type PluginModule<S extends PluginModuleInstance | void = PluginModuleInstance | void, I extends PluginModuleInstance | void = PluginModuleInstance | void> = (S extends PluginModuleInstance ? {
/**
* Creates a plugin which is bound to the static object.
* The function will be called once with the static object as soon as the plugin is registered.
* The plugin can add new methods or fields to the passed static object.
* @param osStatic The static object the plugin is bound to.
* @returns The plugins instance object or a falsy value if the plugin doesn't need any instance object.
*/
static: (osStatic: OverlayScrollbarsStatic) => S | void;
} : object) & (I extends PluginModuleInstance ? {
/**
* Creates a A plugin which is bound to an instance.
* The function will be called each time a new instance is created.
* The plugin can add new methods or fields to the passed instance object.
* @param osInstance The instance object the plugin is bound to.
* @param osStatic The static object the plugin is bound to.
* @returns The plugins instance object or a falsy value if the plugin doesn't need any instance object.
*/
instance: (osInstance: OverlayScrollbars, osStatic: OverlayScrollbarsStatic) => I | void;
} : object);
/**
* Describes a OverlayScrollbar plugin.
*/
type Plugin<Name extends string = string, S extends PluginModuleInstance | void = PluginModuleInstance | void, I extends PluginModuleInstance | void = PluginModuleInstance | void> = {
[pluginName in Name]: PluginModule<S, I>;
};
/**
* Describes a OverlayScrollbar plugin which has only a static module.
*/
type StaticPlugin<Name extends string = string, T extends PluginModuleInstance = PluginModuleInstance> = Plugin<Name, T, void>;
/**
* Describes a OverlayScrollbar plugin which has only a instance module.
*/
type InstancePlugin<Name extends string = string, T extends PluginModuleInstance = PluginModuleInstance> = Plugin<Name, void, T>;
/**
* Infers the type of the static modules instance of the passed plugin.
*/
type InferStaticPluginModuleInstance<T extends StaticPlugin> = T extends StaticPlugin<infer Name> ? T[Name]['static'] extends (...args: any[]) => any ? ReturnType<T[Name]['static']> : void : void;
/**
* Infers the type of the instance modules instance of the passed plugin.
*/
type InferInstancePluginModuleInstance<T extends InstancePlugin> = T extends InstancePlugin<infer Name> ? T[Name]['instance'] extends (...args: any[]) => any ? ReturnType<T[Name]['instance']> : void : void;
type SizeObserverPluginInstance = {
_: (listenerElement: HTMLElement, onSizeChangedCallback: (appear: boolean) => any, observeAppearChange: boolean | null | undefined) => [appearCallback: () => any, offFns: (() => any)[]];
declare const SizeObserverPlugin: {
__osSizeObserverPlugin: {
static: () => (listenerElement: HTMLElement, onSizeChangedCallback: (appear: boolean) => any, observeAppearChange: boolean | null | undefined) => [appearCallback: () => void, offFns: (() => any)[]];
};
};
declare const SizeObserverPlugin: Plugin<SizeObserverPluginInstance>;

@@ -339,4 +372,2 @@ interface StructureSetupState {

_hasOverflow: XY<boolean>;
_heightIntrinsic: boolean;
_directionIsRTL: boolean;
}

@@ -359,13 +390,17 @@

type UndoArrangeViewport = (showNativeOverlaidScrollbars: boolean, directionIsRTL: boolean, viewportOverflowState?: ViewportOverflowState) => UndoViewportArrangeResult;
type ScrollbarsHidingPluginInstance = {
_createUniqueViewportArrangeElement(env: InternalEnvironment): HTMLStyleElement | false;
_overflowUpdateSegment(doViewportArrange: boolean, flexboxGlue: boolean, viewport: HTMLElement, viewportArrange: HTMLStyleElement | false | null | undefined, getState: () => StructureSetupState, getViewportOverflowState: GetViewportOverflowState, hideNativeScrollbars: HideNativeScrollbars): [ArrangeViewport, UndoArrangeViewport];
_envWindowZoom(): (envInstance: InternalEnvironment, updateNativeScrollbarSizeCache: UpdateCache<XY<number>>, triggerEvent: () => void) => void;
declare const ScrollbarsHidingPlugin: {
__osScrollbarsHidingPlugin: {
static: () => {
_createUniqueViewportArrangeElement: (env: InternalEnvironment) => false | HTMLStyleElement;
_overflowUpdateSegment: (doViewportArrange: boolean, flexboxGlue: boolean, viewport: HTMLElement, viewportArrange: HTMLStyleElement | false | null | undefined, state: StructureSetupState, getViewportOverflowState: GetViewportOverflowState, hideNativeScrollbars: HideNativeScrollbars) => [ArrangeViewport, UndoArrangeViewport];
_envWindowZoom: () => (envInstance: InternalEnvironment, updateNativeScrollbarSizeCache: UpdateCache<XY<number>>, triggerEvent: () => void) => void;
};
};
};
declare const ScrollbarsHidingPlugin: Plugin<ScrollbarsHidingPluginInstance>;
type ClickScrollPluginInstance = {
_: (moveHandleRelative: (deltaMovement: number) => void, getHandleOffset: (handleRect?: DOMRect, trackRect?: DOMRect) => number, startOffset: number, handleLength: number, relativeTrackPointerOffset: number) => () => void;
declare const ClickScrollPlugin: {
__osClickScrollPlugin: {
static: () => (moveHandleRelative: (deltaMovement: number) => void, getHandleOffset: (handleRect?: DOMRect, trackRect?: DOMRect) => number, startOffset: number, handleLength: number, relativeTrackPointerOffset: number) => (() => void);
};
};
declare const ClickScrollPlugin: Plugin<ClickScrollPluginInstance>;

@@ -397,3 +432,3 @@ /**

changedOptions: PartialOptions;
/** Whether the update happened with and force invalidated cache. */
/** Whether the update happened with an force invalidated cache. */
force: boolean;

@@ -405,9 +440,9 @@ }

type EventListenerArgs = {
/** Triggered after all elements are initialized and appended. */
/** Dispatched after all elements are initialized and appended. */
initialized: [instance: OverlayScrollbars];
/** Triggered after an update. */
/** Dispatched after an update. */
updated: [instance: OverlayScrollbars, onUpdatedArgs: OnUpdatedEventListenerArgs];
/** Triggered after all elements, observers and events are destroyed. */
/** Dispatched after all elements, observers and events are destroyed. */
destroyed: [instance: OverlayScrollbars, canceled: boolean];
/** Triggered on scroll. */
/** Dispatched on scroll. */
scroll: [instance: OverlayScrollbars, event: Event];

@@ -444,7 +479,16 @@ };

/**
* Adds one or multiple plugins.
* @param plugin Either a signle or an array of plugins to add.
* Adds a single plugin.
* @param plugin The plugin to be added.
* @returns The plugins static modules instance or `void` if no instance was found.
*/
plugin(plugin: Plugin | Plugin[]): void;
plugin<P extends Plugin>(plugin: P): P extends StaticPlugin ? InferStaticPluginModuleInstance<P> : void;
/**
* Adds multiple plugins.
* @param plugins The plugins to be added.
* @returns The plugins static modules instances or `void` if no instance was found.
*/
plugin<P extends [Plugin, ...Plugin[]]>(plugins: P): P extends [Plugin, ...Plugin[]] ? {
[K in keyof P]: P[K] extends StaticPlugin ? InferStaticPluginModuleInstance<P[K]> : void;
} : void;
/**
* Checks whether the passed value is a valid and not destroyed overlayscrollbars instance.

@@ -455,3 +499,3 @@ * @param osInstance The value which shall be checked.

/**
* Returns the overlayscrollbars environment.
* Gets the environment.
*/

@@ -549,3 +593,3 @@ env(): Environment;

interface OverlayScrollbars {
/** Get the current options of the instance. */
/** Gets the current options of the instance. */
options(): Options;

@@ -555,4 +599,4 @@ /**

* If the new options are partially filled, they're deeply merged with either the current options or the current default options.
* @param newOptions The new options.
* @param pure If true the new options will be merged with the current default options instead of the current options.
* @param newOptions The new options which should be applied.
* @param pure Whether the newOptions should be merged with the current options or with the default options.
* @returns Returns the current options of the instance.

@@ -564,3 +608,3 @@ */

* @param eventListeners An object which contains the added listeners.
* @param pure If true all already added event listeners will be removed before the new listeners are added.
* @param pure Whether all already added event listeners will be removed before the new listeners are added.
* @returns Returns a function which removes the added listeners.

@@ -570,3 +614,3 @@ */

/**
* Adds an event listener to the instance.
* Adds a single event listener to the instance.
* @param name The name of the event.

@@ -585,3 +629,3 @@ * @param listener The listener which is invoked on that event.

/**
* Removes an event listener from the instance.
* Removes a single event listener from the instance.
* @param name The name of the event.

@@ -608,7 +652,9 @@ * @param listener The listener which shall be removed.

elements(): Elements;
/** Destroys the instance. */
/** Destroys the instance and removes all added elements. */
destroy(): void;
/** Returns the instance of the passed plugin or `undefined` if no instance was found. */
plugin<P extends InstancePlugin>(osPlugin: P): InferInstancePluginModuleInstance<P> | undefined;
}
declare const OverlayScrollbars: OverlayScrollbarsStatic;
export { ClickScrollPlugin, DynamicInitializationElement, EventListener, EventListenerArgs, EventListeners, Initialization, InitializationTarget, InitializationTargetElement, InitializationTargetObject, OnUpdatedEventListenerArgs, Options, OverflowBehavior, OverlayScrollbars, PartialInitialization, PartialOptions, Plugin, PluginInstance, ReadonlyOptions, ScrollbarsAutoHideBehavior, ScrollbarsHidingPlugin, ScrollbarsVisibilityBehavior, SizeObserverPlugin, StaticInitializationElement };
export { ClickScrollPlugin, DynamicInitializationElement, EventListener, EventListenerArgs, EventListeners, InferInstancePluginModuleInstance, InferStaticPluginModuleInstance, Initialization, InitializationTarget, InitializationTargetElement, InitializationTargetObject, InstancePlugin, OnUpdatedEventListenerArgs, Options, OverflowBehavior, OverlayScrollbars, PartialInitialization, PartialOptions, Plugin, PluginModule, PluginModuleInstance, ReadonlyOptions, ScrollbarsAutoHideBehavior, ScrollbarsHidingPlugin, ScrollbarsVisibilityBehavior, SizeObserverPlugin, StaticInitializationElement, StaticPlugin };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc