overlayscrollbars
Advanced tools
Comparing version 2.8.0 to 2.8.1
/*! | ||
* OverlayScrollbars | ||
* Version: 2.8.0 | ||
* Version: 2.8.1 | ||
* | ||
@@ -10,2 +10,2 @@ * Copyright (c) Rene Haas | KingSora. | ||
*/ | ||
var OverlayScrollbarsGlobal=function(n){"use strict";var r=function(n,r){var t,e=n.i,i=n.v,o=n.o,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]}]},t="undefined"!=typeof window&&"undefined"!=typeof document,e=t?window:{},i=Math.max,o=Math.min,u=Math.round,c=Math.abs,a=Math.sign,f=e.cancelAnimationFrame,l=e.requestAnimationFrame,s=e.setTimeout,v=e.clearTimeout,d=function(n){return void 0!==e[n]?e[n]:void 0},p=d("MutationObserver"),y=d("IntersectionObserver"),h=d("ResizeObserver"),x=d("ScrollTimeline"),b=t&&Node.ELEMENT_NODE,g=Object.prototype,m=g.toString,w=g.hasOwnProperty,O=/^\[object (.+)\]$/,S=function(n){return void 0===n},P=function(n){return null===n},C=function(n){return"number"==typeof n},D=function(n){return"string"==typeof n},M=function(n){return"boolean"==typeof n},k=function(n){return"function"==typeof n},E=function(n){return Array.isArray(n)},T=function(n){return"object"==typeof n&&!E(n)&&!P(n)},H=function(n){var r=!!n&&n.length,t=C(r)&&r>-1&&r%1==0;return!(!(E(n)||!k(n)&&t)||r>0&&T(n)&&!(r-1 in n))},I=function(n){if(!n||!T(n)||"object"!==function(n){return S(n)||P(n)?""+n:m.call(n).replace(O,"$1").toLowerCase()}(n))return!1;var r,t="constructor",e=n[t],i=e&&e.prototype,o=w.call(n,t),u=i&&w.call(i,"isPrototypeOf");if(e&&!o&&!u)return!1;for(r in n);return S(r)||w.call(n,r)},A=function(n){var r=HTMLElement;return!!n&&(r?n instanceof r:n.nodeType===b)},L=function(n){var r=Element;return!!n&&(r?n instanceof r:n.nodeType===b)},R=function(){return performance.now()},V=function(n,r,t,e,o){var u=0,c=R(),a=i(0,t),s=function t(f){var s=R(),v=s-c>=a,d=f?1:1-(i(0,c+a-s)/a||0),p=(r-n)*(k(o)?o(d,d*a,0,1,a):d)+n,y=v||1===d;e&&e(p,d,y),u=y?0:l((function(){return t()}))};return s(),function(n){f(u),n&&s(n)}};function _(n,r){if(H(n))for(var t=0;t<n.length&&!1!==r(n[t],t,n);t++);else n&&_(Object.keys(n),(function(t){return r(n[t],t,n)}));return n}var j=function(n,r){return n.indexOf(r)>=0},z=function(n,r){return n.concat(r)},$=function(n,r,t){return t||D(r)||!H(r)?n.push(r):Array.prototype.push.apply(n,r),n},N=function(n){return Array.from(n||[])},F=function(n){return E(n)?n:[n]},B=function(n){return!!n&&!n.length},W=function(n){return N(new Set(n))},Y=function(n,r,t){_(n,(function(n){return n&&n.apply(void 0,r||[])})),!t&&(n.length=0)},J="paddingTop",X="paddingRight",q="paddingLeft",G="paddingBottom",K="marginLeft",U="marginRight",Q="marginBottom",Z="overflowX",nn="overflowY",rn="width",tn="height",en="visible",on="hidden",un="scroll",cn=function(n,r,t,e){if(n&&r){var i=!0;return _(t,(function(t){(e?e(n[t]):n[t])!==(e?e(r[t]):r[t])&&(i=!1)})),i}return!1},an=function(n,r){return cn(n,r,["w","h"])},fn=function(n,r){return cn(n,r,["x","y"])},ln=function(n,r){return cn(n,r,["t","r","b","l"])},sn=function(){},vn=function(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return n.bind.apply(n,[0].concat(t))},dn=function(n){var r,t=n?s:l,e=n?v:f;return[function(i){e(r),r=t(i,k(n)?n():n)},function(){return e(r)}]},pn=function(n,r){var t,e,i,o=sn,u=r||{},c=u.u,a=u.p,d=u._,p=function(r){o(),v(t),t=e=void 0,o=sn,n.apply(this,r)},y=function(n){return d&&e?d(e,n):n},h=function(){o!==sn&&p(y(i)||i)},x=function(){var n=N(arguments),r=k(c)?c():c;if(C(r)&&r>=0){var u=k(a)?a():a,d=C(u)&&u>=0,x=r>0?s:l,b=r>0?v:f,g=y(n)||n,m=p.bind(0,g);o();var w=x(m,r);o=function(){return b(w)},d&&!t&&(t=s(h,u)),e=i=g}else p(n)};return x.m=h,x},yn=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},hn=function(n){return n?Object.keys(n):[]},xn=function n(r,t,e,i,o,u,c){var a=[t,e,i,o,u,c];return"object"==typeof r&&!P(r)||k(r)||(r={}),_(a,(function(t){_(t,(function(e,i){var o=t[i];if(r===o)return!0;var u=E(o);if(o&&I(o)){var c=r[i],a=c;u&&!E(c)?a=[]:u||I(c)||(a={}),r[i]=n(a,o)}else r[i]=u?o.slice():o}))})),r},bn=function n(r,t){return _(xn({},r),(function(r,e,i){void 0===r?delete i[e]:t&&r&&I(r)&&(i[e]=n(r,t))}))},gn=function(n){for(var r in n)return!1;return!0},mn=function(n,r,t){return i(n,o(r,t))},wn=function(n){return N(new Set((E(n)?n:(n||"").split(" ")).filter((function(n){return n}))))},On=function(n,r){return n&&n.getAttribute(r)},Sn=function(n,r){return n&&n.hasAttribute(r)},Pn=function(n,r,t){_(wn(r),(function(r){n&&n.setAttribute(r,String(t||""))}))},Cn=function(n,r){_(wn(r),(function(r){return n&&n.removeAttribute(r)}))},Dn=function(n,r){var t=wn(On(n,r)),e=vn(Pn,n,r),i=function(n,r){var e=new Set(t);return _(wn(n),(function(n){e[r](n)})),N(e).join(" ")};return{S:function(n){return e(i(n,"delete"))},O:function(n){return e(i(n,"add"))},C:function(n){var r=wn(n);return r.reduce((function(n,r){return n&&t.includes(r)}),r.length>0)}}},Mn=function(n,r,t){return Dn(n,r).S(t),vn(kn,n,r,t)},kn=function(n,r,t){return Dn(n,r).O(t),vn(Mn,n,r,t)},En=function(n,r,t,e){return(e?kn:Mn)(n,r,t)},Tn=function(n){return Dn(n,"class")},Hn=function(n,r){Tn(n).S(r)},In=function(n,r){return Tn(n).O(r),vn(Hn,n,r)},An=function(n,r){var t=[],e=r?L(r)&&r:document;return e?$(t,e.querySelectorAll(n)):t},Ln=function(n,r){return!!L(n)&&n.matches(r)},Rn=function(n){return Ln(n,"body")},Vn=function(n){return n?N(n.childNodes):[]},_n=function(n){return n&&n.parentElement},jn=function(n,r){return L(n)&&n.closest(r)},zn=function(n){return(n||document).activeElement},$n=function(n,r,t){var e=jn(n,r),i=n&&function(n,r){var t=r?L(r)&&r:document;return t?t.querySelector(n):null}(t,e),o=jn(i,r)===e;return!(!e||!i)&&(e===n||i===n||o&&jn(jn(n,t),r)!==e)},Nn=function n(r){if(H(r))_(N(r),(function(r){return n(r)}));else if(r){var t=_n(r);t&&t.removeChild(r)}},Fn=function(n,r,t){if(t&&n){var e,i=r;return H(t)?(e=document.createDocumentFragment(),_(t,(function(n){n===i&&(i=n.previousSibling),e.appendChild(n)}))):e=t,r&&(i?i!==r&&(i=i.nextSibling):i=n.firstChild),n.insertBefore(e,i||null),function(){return Nn(t)}}return sn},Bn=function(n,r){return Fn(n,null,r)},Wn=function(n,r){return Fn(_n(n),n&&n.nextSibling,r)},Yn=function(n){var r=document.createElement("div");return Pn(r,"class",n),r},Jn=function(n){var r=Yn();return r.innerHTML=n.trim(),_(Vn(r),(function(n){return Nn(n)}))},Xn=/^--/,qn=function(n,r){return n.getPropertyValue(r)||n[r]||""},Gn=function(n){var r=n||0;return isFinite(r)?r:0},Kn=function(n){return Gn(parseFloat(n||""))},Un=function(n){return(100*Gn(n)).toFixed(3)+"%"},Qn=function(n){return Gn(n)+"px"};function Zn(n,r){n&&r&&_(r,(function(r,t){try{var e=n.style,i=C(r)?Qn(r):(r||"")+"";Xn.test(t)?e.setProperty(t,i):e[t]=i}catch(o){}}))}function nr(n,r,t){var i=D(r),o=i?"":{};if(n){var u=e.getComputedStyle(n,t)||n.style;o=i?qn(u,r):N(r).reduce((function(n,r){return n[r]=qn(u,r),n}),o)}return o}var rr,tr=function(n,r,t){var e=r?r+"-":"",i=t?"-"+t:"",o=e+"top"+i,u=e+"right"+i,c=e+"bottom"+i,a=e+"left"+i,f=nr(n,[o,u,c,a]);return{t:Kn(f[o]),r:Kn(f[u]),b:Kn(f[c]),l:Kn(f[a])}},er=function(n,r){return"translate"+(T(n)?"("+n.x+","+n.y+")":(r?"X":"Y")+"("+n+")")},ir={w:0,h:0},or=function(n,r){return r?{w:r[n+"Width"],h:r[n+"Height"]}:ir},ur=function(n){return or("inner",n||e)},cr=vn(or,"offset"),ar=vn(or,"client"),fr=vn(or,"scroll"),lr=function(n){var r=parseFloat(nr(n,rn))||0,t=parseFloat(nr(n,tn))||0;return{w:r-u(r),h:t-u(t)}},sr=function(n){return n.getBoundingClientRect()},vr=function(n){return!(!n||!n[tn]&&!n[rn])},dr=function(n,r){var t=vr(n);return!vr(r)&&t},pr=function(n,r,t,e){_(wn(r),(function(r){n&&n.removeEventListener(r,t,e)}))},yr=function(n,r,t,e){var i,o=null==(i=e&&e.A)||i,u=e&&e.H||!1,c=e&&e.T||!1,a={passive:o,capture:u};return vn(Y,wn(r).map((function(r){var e=c?function(i){pr(n,r,e,u),t&&t(i)}:t;return n&&n.addEventListener(r,e,a),vn(pr,n,r,e,u)})))},hr=function(n){return n.stopPropagation()},xr=function(n){return n.preventDefault()},br=function(n){return hr(n)||xr(n)},gr=function(n,r){var t=C(r)?{x:r,y:r}:r||{},e=t.x,i=t.y;C(e)&&(n.scrollLeft=e),C(i)&&(n.scrollTop=i)},mr=function(n){return{x:n.scrollLeft,y:n.scrollTop}},wr=function(n,r){var t=n.P,e=n.D,i=r.w,o=r.h,u=function(n,r,t){var e=a(n)*t,i=a(r)*t;if(e===i){var o=c(n),u=c(r);i=o>u?0:i,e=o<u?0:e}return[e+0,i+0]},f=u(t.x,e.x,i),l=f[0],s=f[1],v=u(t.y,e.y,o);return{P:{x:l,y:v[0]},D:{x:s,y:v[1]}}},Or=function(n){var r=n.P,t=n.D,e=function(n,r){return 0===n&&n<=r};return{x:e(r.x,t.x),y:e(r.y,t.y)}},Sr=function(n,r){var t=n.P,e=n.D,i=function(n,r,t){return mn(0,1,(n-t)/(n-r)||0)};return{x:i(t.x,e.x,r.x),y:i(t.y,e.y,r.y)}},Pr=function(n,r){_(F(r),n)},Cr=function(n){var r=new Map,t=function(n,t){if(n){var e=r.get(n);Pr((function(n){e&&e[n?"delete":"clear"](n)}),t)}else r.forEach((function(n){n.clear()})),r.clear()},e=function n(e,i){if(D(e)){var o=r.get(e)||new Set;return r.set(e,o),Pr((function(n){k(n)&&o.add(n)}),i),vn(t,e,i)}M(i)&&i&&t();var u=hn(e),c=[];return _(u,(function(r){var t=e[r];t&&$(c,n(r,t))})),vn(Y,c)};return e(n||{}),[e,t,function(n,t){_(N(r.get(n)),(function(n){t&&!B(t)?n.apply(0,t):n()}))}]},Dr=function(n){return JSON.stringify(n,(function(n,r){if(k(r))throw 0;return r}))},Mr=function(n,r){return n?(""+r).split(".").reduce((function(n,r){return n&&yn(n,r)?n[r]:void 0}),n):void 0},kr={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"]}},Er=function n(r,t){var e={};return _(z(hn(t),hn(r)),(function(i){var o=r[i],u=t[i];if(T(o)&&T(u))xn(e[i]={},n(o,u)),gn(e[i])&&delete e[i];else if(yn(t,i)&&u!==o){var a=!0;if(E(o)||E(u))try{Dr(o)===Dr(u)&&(a=!1)}catch(c){}a&&(e[i]=u)}})),e},Tr=function(n,r,t){return function(e){return[Mr(n,e),t||void 0!==Mr(r,e)]}},Hr="data-overlayscrollbars",Ir="os-environment",Ar=Ir+"-scrollbar-hidden",Lr=Hr+"-initialize",Rr="noClipping",Vr=Hr+"-body",_r=Hr,jr="host",zr=Hr+"-viewport",$r=Z,Nr=nn,Fr="arrange",Br="measuring",Wr="scrollbarHidden",Yr="scrollbarPressed",Jr="noContent",Xr=Hr+"-padding",qr=Hr+"-content",Gr="os-size-observer",Kr=Gr+"-appear",Ur=Gr+"-listener",Qr=Ur+"-scroll",Zr=Ur+"-item",nt=Zr+"-final",rt="os-trinsic-observer",tt="os-theme-none",et="os-scrollbar",it=et+"-rtl",ot=et+"-horizontal",ut=et+"-vertical",ct=et+"-track",at=et+"-handle",ft=et+"-visible",lt=et+"-cornerless",st=et+"-interaction",vt=et+"-unusable",dt=et+"-auto-hide",pt=dt+"-hidden",yt=et+"-wheel",ht=ct+"-interactive",xt=at+"-interactive",bt=function(){return rr||(rr=function(){var n=function(n,r,t){Bn(document.body,n),Bn(document.body,n);var e=ar(n),i=cr(n),o=lr(r);return t&&Nn(n),{x:i.h-e.h+o.h,y:i.w-e.w+o.w}},t=Jn('<div class="'+Ir+'"><div></div><style>'+"."+Ir+"{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}."+Ir+" div{width:200%;height:200%;margin:10px 0}."+Ar+"{scrollbar-width:none!important}."+Ar+"::-webkit-scrollbar,."+Ar+"::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}"+"</style></div>")[0],i=t.firstChild,o=Cr(),u=o[0],c=o[2],a=r({i:n(t,i),v:fn},vn(n,t,i,!0)),f=a[0],l=(0,a[1])()[0],s=function(n){var r=!1,t=In(n,Ar);try{r="none"===nr(n,"scrollbar-width")||"none"===nr(n,"display","::-webkit-scrollbar")}catch(e){}return t(),r}(t),v={x:0===l.x,y:0===l.y},d={elements:{host:null,padding:!s,viewport:function(n){return s&&Rn(n)&&n},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=xn({},kr),y=vn(xn,{},p),h=vn(xn,{},d),b={L:l,k:v,I:s,M:!!x,R:vn(u,"r"),V:h,F:function(n){return xn(d,n)&&h()},j:y,N:function(n){return xn(p,n)&&y()},U:xn({},d),q:xn({},p)};return Cn(t,"style"),Nn(t),yr(e,"resize",(function(){c("r",[])})),!k(e.matchMedia)||s||v.x&&v.y||function n(r){var t=e.matchMedia("(resolution: "+e.devicePixelRatio+"dppx)");yr(t,"change",(function(){r(),n(r)}),{T:!0})}((function(){var n=f(),r=n[0],t=n[1];xn(b.L,r),c("r",[t])})),b}()),rr},gt=function(n,r){return k(r)?r.apply(0,n):r},mt=function(n,r,t,e){var i=S(e)?t:e;return gt(n,i)||r.apply(0,n)},wt=function(n,r,t,e){var i=S(e)?t:e,o=gt(n,i);return!!o&&(A(o)?o:r.apply(0,n))},Ot=function(n,r){var t=r||{},e=t.nativeScrollbarsOverlaid,i=t.body,o=bt(),u=o.k,c=o.I,a=(0,o.V)().cancel,f=a.nativeScrollbarsOverlaid,l=a.body,s=null!=e?e:f,v=S(i)?l:i,d=(u.x||u.y)&&s,p=n&&(P(v)?!c:v);return!!d||!!p},St=new WeakMap,Pt=function(n){return St.get(n)},Ct=function(n,r,t,e){var i=!1,o=e||{},u=o.B,c=o.Y,a=o.W,f=o.X,l=o.Z,s=o.K,v=pn((function(){return i&&t(!0)}),{u:33,p:99}),d=function(n,r,t){var e=!1,i=!!t&&new WeakMap,o=function(o){if(i&&t){var u=t.map((function(r){var t=r||[],e=t[0],i=t[1];return[i&&e?(o||An)(e,n):[],i]}));_(u,(function(t){return _(t[0],(function(o){var u=t[1],c=i.get(o)||[];if(n.contains(o)&&u){var a=yr(o,u,(function(n){e?(a(),i.delete(o)):r(n)}));i.set(o,$(c,a))}else Y(c),i.delete(o)}))}))}};return o(),[function(){e=!0},o]}(n,v,a),y=d[0],h=d[1],x=c||[],b=z(u||[],x),g=function(i,o){if(!B(o)){var u=l||sn,c=s||sn,a=[],v=[],d=!1,p=!1;if(_(o,(function(t){var i=t.attributeName,o=t.target,l=t.type,s=t.oldValue,y=t.addedNodes,h=t.removedNodes,b="attributes"===l,g="childList"===l,m=n===o,w=b&&i,O=w&&On(o,i||"")||null,S=w&&s!==O,P=j(x,i)&&S;if(r&&(g||!m)){var C=b&&S,D=C&&f&&Ln(o,f),M=(D?!u(o,i,s,O):!b||C)&&!c(t,!!D,n,e);_(y,(function(n){return $(a,n)})),_(h,(function(n){return $(a,n)})),p=p||M}!r&&m&&S&&!u(o,i,s,O)&&($(v,i),d=d||P)})),h((function(n){return W(a).reduce((function(r,t){return $(r,An(n,t)),Ln(t,n)?$(r,t):r}),[])})),r)return!i&&p&&t(!1),[!1];if(!B(v)||d){var y=[W(v),d];return!i&&t.apply(0,y),y}}},m=new p(vn(g,!1));return[function(){return m.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:r,childList:r,characterData:r}),i=!0,function(){i&&(y(),m.disconnect(),i=!1)}},function(){if(i)return v.m(),g(!0,m.takeRecords())}]},Dt={},Mt={},kt=function(n,r,t){return hn(n).map((function(e){var i=n[e],o=i.static,u=i.instance,c=t||[],a=c[0],f=c[1],l=c[2],s=t?u:o;if(s){var v=t?s(a,f,r):s(r);return(l||Mt)[e]=v}}))},Et=function(n){return Mt[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.G=!0,n.exports["default"]=n.exports,r.apply(this,arguments)}n.exports=r,n.exports.G=!0,n.exports["default"]=n.exports}({exports:{}});var Tt="__osOptionsValidationPlugin",Ht="__osSizeObserverPlugin",It=function(n){return(n={})[Ht]={static:function(){return function(n,r,t){var e,i,o=3333333,u="scroll",c=Jn('<div class="'+Zr+'" dir="ltr"><div class="'+Zr+'"><div class="'+nt+'"></div></div><div class="'+Zr+'"><div class="'+nt+'" style="width: 200%; height: 200%"></div></div></div>'),a=c[0],s=a.lastChild,v=a.firstChild,d=null==v?void 0:v.firstChild,p=cr(a),y=p,h=!1,x=function(){gr(v,o),gr(s,o)},b=function(n){i=0,h&&(p=y,r(!0===n))},g=function(n){y=cr(a),h=!n||!an(y,p),n?(hr(n),h&&!i&&(f(i),i=l(b))):b(!1===n),x()},m=[Bn(n,c),yr(v,u,g),yr(s,u,g)];return In(n,Qr),Zn(d,((e={})[rn]=o,e[tn]=o,e)),l(x),[t?vn(g,!1):x,m]}}},n}(),At=function(n,r){var t=r.k,e=n("showNativeOverlaidScrollbars"),i=e[0],o=e[1];return[i&&t.x&&t.y,o]},Lt=function(n){return 0===n.indexOf(en)},Rt=function(n,r){var t=function(n,r,t,e){var i=n===en?on:n.replace(en+"-",""),o=Lt(n),u=Lt(t);return r||e?o&&u?en:o?r&&e?i:r?en:on:r?i:u&&e?en:on:on},e={x:t(r.x,n.x,r.y,n.y),y:t(r.y,n.y,r.x,n.x)};return{$:e,J:{x:e.x===un,y:e.y===un}}},Vt="__osScrollbarsHidingPlugin",_t=function(n){return(n={})[Vt]={static:function(){return{rr:function(n,r,t,e,i){var o=n.ar,u=n.er,c=e.I,a=e.k,f=e.L,l=!o&&!c&&(a.x||a.y),s=At(i,e)[0],v=function(n){var r=n.J,t=c||s?0:42,e=function(n,r,e){return[r&&!c?n?t:e:0,n&&!!t]},i=e(a.x,r.x,f.x),o=i[0],u=i[1],l=e(a.y,r.y,f.y);return{tr:{x:o,y:l[0]},nr:{x:u,y:l[1]}}},d=function(n,t,e){var i=t.ir;if(!o){var u,c=xn({},((u={})[U]=0,u[Q]=0,u[K]=0,u)),a=v(n),f=a.tr,l=a.nr,s=l.x,d=l.y,p=f.x,y=f.y,h=r.vr,x=i?K:U,b=i?q:X,g=h[x],m=h[Q],w=h[b],O=h[G];return c[rn]="calc(100% + "+(y+-1*g)+"px)",c[x]=-y+g,c[Q]=-p+m,e&&(c[b]=w+(d?y:0),c[G]=O+(s?p:0)),c}};return{ur:v,cr:function(n,e,i){if(l){var o=r.vr,c=v(n),a=c.tr,f=c.nr,s=f.x,d=f.y,p=a.x,y=a.y,h=o[t.ir?X:q],x=o.paddingTop,b=e.w+i.w,g=e.h+i.h,m={w:y&&d?y+b-h+"px":"",h:p&&s?p+g-x+"px":""};Zn(u,{"--os-vaw":m.w,"--os-vah":m.h})}return l},lr:function(n){if(l){var e=n||function(){var n=function(n){var r=nr(u,n);return[r,r===un]},r=n(Z),t=r[0],e=r[1],i=n(nn);return{$:{x:t,y:i[0]},J:{x:e,y:i[1]}}}(),i=r.vr,o=v(e).nr,c=o.x,a=o.y,f={},s=function(n){return _(n,(function(n){f[n]=i[n]}))};c&&s([Q,J,G]),a&&s([K,U,q,X]);var p=nr(u,hn(f)),y=Mn(u,zr,Fr);return Zn(u,f),[function(){Zn(u,xn({},p,d(e,t,l))),y()},e]}return[sn]},sr:d}}}}},n}(),jt="__osClickScrollPlugin",zt=function(n){return(n={})[jt]={static:function(){return function(n,r,t,e,i){var o=0,u=sn;return function c(a){u=V(a,a+e*Math.sign(t),133,(function(t,a,f){n(t);var l=r();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var v=s((function(){c(t)}),222);u=function(){clearTimeout(v)}}o++}}))}(0),function(){return u()}}}},n}(),$t=function(n,t,e){var i=(e||{}).dr,o=Et(Ht),u=r({i:!1,o:!0})[0];return function(){var r=[],e=Jn('<div class="'+Gr+'"><div class="'+Ur+'"></div></div>')[0],c=e.firstChild,a=function(n){var r=!1,e=!1;if(n instanceof ResizeObserverEntry){var i=u(n.contentRect),o=i[0],c=i[2],a=vr(o);r=!(e=dr(o,c))&&!a}else e=!0===n;r||t({pr:!0,dr:e})};if(h){var f=new h((function(n){return a(n.pop())}));f.observe(c),$(r,(function(){f.disconnect()}))}else{if(!o)return sn;var l=o(c,a,i),s=l[0],v=l[1];$(r,z([In(e,Kr),yr(e,"animationstart",s)],v))}return vn(Y,$(r,Bn(n,e)))}},Nt=function(n,t){var e,i=Yn(rt),o=r({i:!1})[0],u=function(n,r){if(n){var e=o(function(n){return 0===n.h||n.isIntersecting||n.intersectionRatio>0}(n));return e[1]&&!r&&t(e)&&[e]}},c=function(n,r){return u(r.pop(),n)};return[function(){var r=[];if(y)(e=new y(vn(c,!1),{root:n})).observe(i),$(r,(function(){e.disconnect()}));else{var t=function(){var n=cr(i);u(n)};$(r,$t(i,t)()),t()}return vn(Y,$(r,Bn(n,i)))},function(){return e&&c(!0,e.takeRecords())}]},Ft=function(n,t,e,i){var o,u,c,a,f,l,s=bt().I,v="["+_r+"]",d="["+zr+"]",p=["tabindex"],y=["wrap","cols","rows"],x=["id","class","style","open"],b=n._r,g=n.gr,m=n.er,w=n.hr,O=n.mr,S=n.br,P=n.ar,M=n.Sr,T=n.yr,H=function(n){return"rtl"===nr(n,"direction")},I={wr:!1,ir:H(b)},A=bt(),L=Et(Vt),R=r({v:an,i:{w:0,h:0}},(function(){var r=L&&L.rr(n,t,I,A,e).lr,i=!P&&M(Fr),o=i&&mr(w),u=T(Br,!0),c=i&&r&&r()[0],a=fr(O),f=fr(m),l=lr(m);return c&&c(),gr(w,o),u(),{w:f.w+a.w+l.w,h:f.h+a.h+l.h}})),V=R[0],$=S?y:z(x,y),N=pn(i,{u:function(){return o},p:function(){return u},_:function(n,r){var t=n[0],e=r[0];return[z(hn(t),hn(e)).reduce((function(n,r){return n[r]=t[r]||e[r],n}),{})]}}),F=function(n){var r=H(b);xn(n,{Or:l!==r}),xn(I,{ir:r}),l=r},B=function(n){_(n||p,(function(n){if(j(p,n)){var r=On(g,n);D(r)?Pn(m,n,r):Cn(m,n)}}))},W=function(n,r){var t=n[0],e={Cr:n[1]};return xn(I,{wr:t}),!r&&i(e),e},Y=function(n){var r=n.pr,t=n.dr,e=r&&!t||!s?i:N,o={pr:r||t,dr:t};F(o),e(o)},J=function(n,r){var t=V()[1],e={Er:t};return F(e),t&&!r&&(n?i:N)(e),e},X=function(n,r,t){var e={Ar:r};return F(e),r&&!t?N(e):P||B(n),e},q=A.R,G=O?Nt(g,W):[],K=G[0],U=G[1],Q=!P&&$t(g,Y,{dr:!0}),Z=Ct(g,!1,X,{Y:x,B:z(x,p)}),nn=Z[0],rn=Z[1],tn=P&&h&&new h((function(n){var r=n[n.length-1].contentRect;Y({pr:!0,dr:dr(r,f)}),f=r}));return[function(){B(),tn&&tn.observe(g);var n=Q&&Q(),r=K&&K(),t=nn(),e=q((function(n){var r=V()[1];N({Hr:n,Er:r})}));return function(){tn&&tn.disconnect(),n&&n(),r&&r(),a&&a(),t(),e()}},function(n){var r=n.Tr,t=n.Pr,e=n.Dr,i={},f=r("update.ignoreMutation")[0],l=r("update.attributes"),s=l[0],p=l[1],y=r("update.elementEvents"),h=y[0],x=y[1],b=r("update.debounce"),g=b[0],w=b[1],S=t||e;if(x||p){c&&c(),a&&a();var D=Ct(O||m,!0,J,{B:z($,s||[]),W:h,X:v,K:function(n,r){var t=n.target,e=n.attributeName;return!(r||!e||P)&&$n(t,v,d)||!!jn(t,"."+et)||!!function(n){return k(f)&&f(n)}(n)}}),M=D[0],T=D[1];a=M(),c=T}if(w)if(N.m(),E(g)){var H=g[0],I=g[1];o=C(H)&&H,u=C(I)&&I}else C(g)?(o=g,u=!1):(o=!1,u=!1);if(S){var A=rn(),L=U&&U(),R=c&&c();A&&xn(i,X(A[0],A[1],S)),L&&xn(i,W(L[0],S)),R&&xn(i,J(R[0],S))}return F(i),i},I]},Bt=function(n,r,t,e){var i=(0,bt().V)().scrollbars.slot,o=r._r,u=r.gr,c=r.er,a=r.zr,f=r.hr,l=r.Lr,s=r.ar,v=((a?{}:n).scrollbars||{}).slot,d=new Map,p=function(n){return x&&new x({source:f,axis:n})},y={x:p("x"),y:p("y")},h=wt([o,u,c],(function(){return s&&l?o:u}),i,v),b=function(n,r){if(r){var e=n?rn:tn,i=r.kr,o=r.Ir,u=sr(o)[e],c=sr(i)[e];return mn(0,1,u/c||0)}var a=n?"x":"y",f=t.Mr,l=t.Rr[a],s=f[a];return mn(0,1,l/(l+s)||0)},g=function(n){return xn(n,{clear:["left"]})},m=function(n){d.forEach((function(r,t){(!n||j(F(n),t))&&(_(r||[],(function(n){n&&n.cancel()})),d.delete(t))}))},w=function(n,r,t,e){var i=d.get(n)||[],o=i.find((function(n){return n&&n.timeline===r}));o?o.effect=new KeyframeEffect(n,t,{composite:e}):d.set(n,z(i,[n.animate(t,{timeline:r,composite:e})]))},O=function(n,r,t){var e=t?In:Hn;_(n,(function(n){e(n.Vr,r)}))},S=function(n,r){_(n,(function(n){var t=r(n);Zn(t[0],t[1])}))},P=function(n,r){S(n,(function(n){var t;return[n.Ir,(t={},t[r?rn:tn]=Un(b(r)),t)]}))},C=function(n,r){var e=t.Fr,i=r?"x":"y",o=y[i],u=Or(e)[i],c=function(n,t){return er(Un(function(n,r,t){var e=b(t,n);return 1/e*(1-e)*r}(n,u?t:1-t,r)),r)};o?_(n,(function(n){var r=n.Ir;w(r,o,g({transform:[0,1].map((function(r){return c(n,r)}))}))})):S(n,(function(n){return[n.Ir,{transform:c(n,Sr(e,mr(f))[i])}]}))},D=function(n){return s&&!l&&_n(n)===c},k=[],E=[],T=[],H=function(n,r,t){var e=M(t),i=!e||!t;(!e||t)&&O(E,n,r),i&&O(T,n,r)},I=function(n){var r=Yn(et+" "+(n?ot:ut)),t=Yn(ct),i=Yn(at),o={Vr:r,kr:t,Ir:i};return $(n?E:T,o),$(k,[Bn(r,t),Bn(t,i),vn(Nn,r),m,e(o,H,C,n)]),o},A=vn(I,!0),L=vn(I,!1);return A(),L(),[{jr:function(){P(E,!0),P(T)},Nr:function(){C(E,!0),C(T)},Ur:function(){if(s){var n=t.Mr,r=t.Fr,e=Or(r),i=.5;if(y.x&&y.y)_(z(T,E),(function(r){var t=r.Vr;if(D(t)){var o=function(r){return w(t,y[r],g({transform:[0,e[r]?1:-1].map((function(t){return er(Qn(t*(n[r]-i)),"x"===r)}))}),"add")};o("x"),o("y")}else m(t)}));else{var o=Sr(r,mr(f)),u=function(r){var t=r.Vr,i=D(t)&&t,u=function(n,r,t){var e=r*n;return Qn(t?e:-e)};return[i,i&&{transform:er({x:u(o.x,n.x,e.x),y:u(o.y,n.y,e.y)})}]};S(E,u),S(T,u)}}},qr:H,Br:{M:y.x,Yr:E,Wr:A,Xr:vn(S,E)},Zr:{M:y.y,Yr:T,Wr:L,Xr:vn(S,T)}},function(){return Bn(h,E[0].Vr),Bn(h,T[0].Vr),vn(Y,k)}]},Wt=function(n,r,t,e){return function(i,o,a,f){var l=r.gr,v=r.er,d=r.ar,p=r.hr,y=r.Kr,h=r.yr,x=i.Vr,b=i.kr,g=i.Ir,m=dn(333),w=m[0],O=m[1],S=dn(444),P=S[0],C=S[1],D=dn(),M=D[0],E=D[1],T=vn(a,[i],f),H=function(n){k(p.scrollBy)&&p.scrollBy({behavior:"smooth",left:n.x,top:n.y})},I=f?rn:tn,A=!0,L=function(n){return n.propertyName.indexOf(I)>-1};return vn(Y,[yr(g,"pointermove pointerleave",e),yr(x,"pointerenter",(function(){o(st,!0)})),yr(x,"pointerleave pointercancel",(function(){o(st,!1)})),!d&&yr(x,"mousedown",(function(){var n=zn();(Sn(n,zr)||Sn(n,_r)||n===document.body)&&s((function(){v.focus({preventScroll:!0})}),25)})),yr(x,"wheel",(function(n){var r=n.deltaX,t=n.deltaY,e=n.deltaMode;A&&0===e&&_n(x)===l&&H({x:r,y:t}),A=!1,o(yt,!0),w((function(){A=!0,o(yt)})),xr(n)}),{A:!1,H:!0}),yr(g,"transitionstart",(function(n){L(n)&&function n(){T(),M(n)}()})),yr(g,"transitionend transitioncancel",(function(n){L(n)&&(E(),T())})),yr(x,"pointerdown",vn(yr,y,"click",br,{T:!0,H:!0,A:!1}),{H:!0}),function(){var r="pointerup pointercancel lostpointercapture",e="client"+(f?"X":"Y"),i=f?"left":"top",o=f?"w":"h",a=f?"x":"y",l=function(n,r){return function(e){var i,u=t.Mr,c=cr(b)[o]-cr(g)[o],f=r*e/c*u[a];gr(p,((i={})[a]=n+f,i))}};return yr(b,"pointerdown",(function(t){var f=jn(t.target,"."+at)===g,s=f?g:b,v=n.scrollbars,d=t.button,x=t.isPrimary,m=t.pointerType,w=v.pointers;if(0===d&&x&&v[f?"dragScroll":"clickScroll"]&&(w||[]).includes(m)){C();var O=!f&&t.shiftKey,S=vn(sr,g),D=vn(sr,b),M=function(n,r){return(n||S())[i]-(r||D())[i]},k=u(sr(p)[I])/cr(p)[o]||1,E=l(mr(p)[a],1/k),T=t[e],A=S(),L=D(),R=A[I],V=M(A,L)+R/2,_=T-L[i],j=f?0:_-V,z=function(n){Y(B),s.releasePointerCapture(n.pointerId)},N=function(){return h(Yr,!0)},F=N(),B=[function(){var n=mr(p);F();var r=mr(p),t={x:r.x-n.x,y:r.y-n.y};(c(t.x)>3||c(t.y)>3)&&(N(),gr(p,n),H(t),P(F))},yr(y,r,z),yr(y,"selectstart",(function(n){return xr(n)}),{A:!1}),yr(b,r,z),yr(b,"pointermove",(function(n){var r=n[e]-T;(f||O)&&E(j+r)}))];if(s.setPointerCapture(t.pointerId),O)E(j);else if(!f){var W=Et(jt);W&&$(B,W(E,M,j,R,_))}}}))}(),O,C,E])}},Yt=function(n){var r=bt(),t=r.V,i=r.I,o=t().elements,u=o.host,c=o.padding,a=o.viewport,f=o.content,l=A(n),s=l?{}:n,v=s.elements||{},d=v.host,p=v.padding,y=v.viewport,h=v.content,x=l?n:s.target,b=Rn(x),g=Ln(x,"textarea"),m=x.ownerDocument,w=m.documentElement,O=function(){return m.defaultView||e},S=function(n){n&&n.focus&&n.focus({preventScroll:!0})},P=vn(mt,[x]),C=vn(wt,[x]),D=vn(Yn,""),M=vn(P,D,a),k=vn(C,D,f),E=M(y),T=E===x,H=T&&b,I=!T&&k(h),L=!T&&E===I,R=H?w:E,V=g?P(D,u,d):x,_=H?R:V,z=!T&&C(D,c,p),N=!L&&I,F=[N,R,z,_].map((function(n){return A(n)&&!_n(n)&&n})),B=function(n){return n&&j(F,n)},W=B(R)?x:R,J={_r:x,gr:_,er:R,na:z,mr:N,hr:H?w:R,Gr:H?m:R,ia:b?w:W,Kr:m,br:g,Lr:b,zr:l,ar:T,va:O,Sr:function(n){return function(n,r,t){return Dn(n,r).C(t)}(R,zr,n)},yr:function(n,r){return En(R,zr,n,r)}},X=J._r,q=J.gr,G=J.na,K=J.er,U=J.mr,Q=[function(){Cn(q,[_r,Lr]),Cn(X,Lr),b&&Cn(w,[Lr,_r])}],Z=g&&B(q),nn=g?X:Vn([U,K,G,q,X].find((function(n){return n&&!B(n)}))),rn=H?X:U||K,tn=vn(Y,Q);return[J,function(){var n=O(),r=zn(),t=function(n){Bn(_n(n),Vn(n)),Nn(n)},e=function(n){return yr(n,"focusin focusout focus blur",hr,{H:!0})},o="tabindex",u=On(K,o),c=e(r);return Pn(q,_r,T?"":jr),Pn(G,Xr,""),Pn(K,zr,""),Pn(U,qr,""),T||(Pn(K,o,u||"-1"),b&&Pn(w,Vr,"")),Z&&(Wn(X,q),$(Q,(function(){Wn(q,X),Nn(q)}))),Bn(rn,nn),Bn(q,G),Bn(G||q,!T&&K),Bn(K,U),$(Q,[c,function(){var n=zn(),r=e(n);Cn(G,Xr),Cn(U,qr),Cn(K,zr),b&&Cn(w,Vr),u?Pn(K,o,u):Cn(K,o),B(U)&&t(U),B(K)&&t(K),B(G)&&t(G),S(n),r()}]),i&&!T&&(kn(K,zr,Wr),$(Q,vn(Cn,K,zr))),S(T||r!==x||n.top!==n?r:K),c(),nn=0,tn},tn]},Jt=function(n){var r=n.mr;return function(n){var t,e=n.$r,i=n.oa,o=n.Dr,u=(e||{}).Cr,c=i.wr;r&&(u||o)&&Zn(r,((t={})[tn]=c&&"100%",t))}},Xt=function(n,t){var e=n.gr,i=n.na,o=n.er,u=n.ar,c=r({v:ln,i:tr()},vn(tr,e,"padding","")),a=c[0],f=c[1];return function(n){var r=n.Tr,e=n.$r,c=n.oa,l=n.Dr,s=f(l),v=s[0],d=s[1],p=bt().I,y=e||{},h=y.pr,x=y.Er,b=y.Or,g=c.ir,m=r("paddingAbsolute"),w=m[0],O=m[1];if(h||d||l||x){var S=a(l);v=S[0],d=S[1]}var P=!u&&(O||b||d);if(P){var C,D,M=!w||!i&&!p,k=v.r+v.l,E=v.t+v.b,T=((C={})[U]=M&&!g?-k:0,C[Q]=M?-E:0,C[K]=M&&g?-k:0,C.top=M?-v.t:0,C.right=M?g?-v.r:"auto":0,C.left=M?g?"auto":-v.l:0,C[rn]=M&&"calc(100% + "+k+"px)",C),H=((D={})[J]=M?v.t:0,D[X]=M?v.r:0,D[G]=M?v.b:0,D[q]=M?v.l:0,D);Zn(i||o,T),Zn(o,H),xn(t,{na:v,ua:!M,vr:i?H:xn({},T,H)})}return{ca:P}}},qt=function(n,t){var o=bt(),u=n.gr,c=n.na,a=n.er,f=n.ar,l=n.hr,s=n.Lr,v=n.yr,d=n.va,p=o.I,y=s&&f,h=vn(i,0),x=["display","direction","flexDirection","writingMode"],b={v:an,i:{w:0,h:0}},g={v:fn,i:{}},m=function(n,r){var t=e.devicePixelRatio%1!=0?1:0,i={w:h(n.w-r.w),h:h(n.h-r.h)};return{w:i.w>t?i.w:0,h:i.h>t?i.h:0}},w=function(){var n=mr(l),r=v(Jr,!0),t=yr(l,un,hr,{H:!0});gr(l,{x:0,y:0}),r();var e=mr(l),i=fr(l);gr(l,{x:i.w,y:i.h});var o=mr(l);gr(l,{x:o.x-e.x<1&&-i.w,y:o.y-e.y<1&&-i.h});var u=mr(l);return gr(l,n),t(),{P:e,D:u}},O=function(){return xn({},function(n){return!!n&&function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}(n)}(a)?nr(a,x):{})},S=r(b,vn(lr,a)),P=S[0],C=S[1],D=r(b,vn(fr,a)),M=D[0],k=D[1],E=r(b),T=E[0],H=E[1],I=r(g)[0],A=r(b),L=A[0],R=A[1],V=r(g)[0],j=r({v:function(n,r){return cn(n,r,x)},i:{}}),z=j[0],$=r({v:function(n,r){return fn(n.P,r.P)&&fn(n.D,r.D)},i:{P:{x:0,y:0},D:{x:0,y:0}}}),N=$[0],F=$[1],B=Et(Vt),W=function(n,r){return""+(r?$r:Nr)+function(n){var r=String(n||"");return r?r[0].toUpperCase()+r.slice(1):""}(n)},Y=function(n){var r=n.$;_(hn(r),(function(n){var t="x"===n,e=[en,on,un].map((function(n){return W(n,t)}));v(e.join(" ")),v(W(r[n],t),!0)}))};return function(r,e){var f=r.Tr,l=r.$r,s=r.oa,x=r.Dr,b=e.ca,g=l||{},S=g.pr,D=g.Er,E=g.Or,A=g.dr,_=g.Hr,j=B&&B.rr(n,t,s,o,f)||{},$=j.cr,W=j.lr,J=j.sr,X=At(f,o),q=X[0],G=X[1],K=f("overflow"),U=K[0],Q=K[1],Z=Lt(U.x),nn=Lt(U.y),rn=S||b||D||E||_||G,tn=C(x),en=k(x),on=H(x),un=R(x);if(G&&p&&v(Wr,!q),rn){var cn=(W?W():[])[0],an=(tn=P(x))[0],fn=(en=M(x))[0],ln=ar(a),sn=fn,vn=ln;cn&&cn();var dn=ur(d()),pn={w:h(i(fn.w,sn.w)+an.w),h:h(i(fn.h,sn.h)+an.h)},yn={w:h((y?dn.w:vn.w+h(ln.w-fn.w))+an.w),h:h((y?dn.h:vn.h+h(ln.h-fn.h))+an.h)};un=L(yn),on=T(m(pn,yn),x)}var hn=un,bn=hn[0],gn=hn[1],mn=on,wn=mn[0],On=mn[1],Sn=en,Pn=Sn[0],Cn=Sn[1],Dn=tn,Mn=Dn[0],kn=Dn[1],Tn=I({x:wn.w>0,y:wn.h>0}),Hn=Tn[0],In=Tn[1],An=Z&&nn&&(Hn.x||Hn.y)||Z&&Hn.x&&!Hn.y||nn&&Hn.y&&!Hn.x,Ln=b||E||_||kn||Cn||gn||On||Q||G||rn,Rn=Rt(Hn,U),Vn=V(Rn.$),_n=Vn[0],jn=Vn[1],zn=z(O(),x)[1],$n=E||A||zn||In||x?N(w(),x):F(),Nn=$n[0],Fn=$n[1];return Ln&&(Y(Rn),J&&$&&Zn(a,J(Rn,s,$(Rn,Pn,Mn)))),En(u,_r,Rr,An),En(c,Xr,Rr,An),xn(t,{$:_n,Rr:{x:bn.w,y:bn.h},Mr:{x:wn.w,y:wn.h},ta:Hn,Fr:wr(Nn,wn)}),{aa:jn,Qr:gn,ra:On,ea:Fn||On}}},Gt=function n(r,t,e){var i=bt().j,o=A(r),u=o?r:r.target,c=Pt(u);if(t&&!c){var a=!1,f=[],l={},s=function(n){var r=bn(n,!0),t=Et(Tt);return t?t(r,!0):r},v=xn({},i(),s(t)),d=Cr(),p=d[0],y=d[1],h=d[2],x=Cr(e),b=x[0],g=x[1],m=x[2],w=function(n,r){m(n,r),h(n,r)},O=function(n,r,t,e){var i=Tr(r,{}),o=function(n){var r,t=Yt(n),e=t[0],i=t[1],o=t[2],u={na:{t:0,r:0,b:0,l:0},ua:!1,vr:(r={},r[U]=0,r[Q]=0,r[K]=0,r[J]=0,r[X]=0,r[G]=0,r[q]=0,r),Rr:{x:0,y:0},Mr:{x:0,y:0},$:{x:on,y:on},ta:{x:!1,y:!1},Fr:{P:{x:0,y:0},D:{x:0,y:0}}},c=e._r,a=e.hr,f=e.ar,l=e.yr,s=bt(),v=s.I,d=s.k,p=!v&&(d.x||d.y),y=[Jt(e),Xt(e,u),qt(e,u)];return[i,function(n){var r={},t=p,e=l(Br,!0),i=t&&mr(a);return _(y,(function(t){xn(r,t(n,r)||{})})),gr(a,i),!f&&gr(c,0),e(),r},u,e,o]}(n),u=o[0],c=o[1],a=o[2],f=o[3],l=o[4],s=Ft(f,a,i,(function(n){m({},n)})),v=s[0],d=s[1],p=s[2],y=function(n,r,t,e,i,o){var u,c,a,f,l,s=sn,v=0,d=function(n){return"mouse"===n.pointerType},p=dn(),y=p[0],h=p[1],x=dn(100),b=x[0],g=x[1],m=dn(100),w=m[0],O=m[1],S=dn((function(){return v})),P=S[0],C=S[1],D=Bt(n,i,e,Wt(r,i,e,(function(n){return d(n)&&_()}))),M=D[0],k=D[1],E=i.gr,T=i.Gr,H=i.Lr,I=M.qr,A=M.jr,L=M.Nr,R=M.Ur,V=function(n,r){if(C(),n)I(pt);else{var t=vn(I,pt,!0);v>0&&!r?P(t):t()}},_=function(){(a?u:f)||(V(!0),b((function(){V(!1)})))},j=function(n){I(dt,n,!0),I(dt,n,!1)},z=function(n){d(n)&&(u=a,a&&V(!0))},N=[C,g,O,h,function(){return s()},yr(E,"pointerover",z,{T:!0}),yr(E,"pointerenter",z),yr(E,"pointerleave",(function(n){d(n)&&(u=!1,a&&V(!1))})),yr(E,"pointermove",(function(n){d(n)&&c&&_()})),yr(T,"scroll",(function(n){y((function(){L(),_()})),o(n),R()}))];return[function(){return vn(Y,$(N,k()))},function(n){var r=n.Tr,i=n.Dr,o=n.$r,u=n.Jr||{},d=u.Qr,p=u.ra,y=u.aa,h=u.ea,x=o||{},b=x.Or,g=x.dr,m=t.ir,O=bt().k,S=e.$,P=e.ta,C=r("showNativeOverlaidScrollbars"),D=C[0],M=C[1],k=r("scrollbars.theme"),E=k[0],_=k[1],z=r("scrollbars.visibility"),$=z[0],N=z[1],F=r("scrollbars.autoHide"),B=F[0],W=F[1],Y=r("scrollbars.autoHideSuspend"),J=Y[0],X=Y[1],q=r("scrollbars.autoHideDelay")[0],G=r("scrollbars.dragScroll"),K=G[0],U=G[1],Q=r("scrollbars.clickScroll"),Z=Q[0],nn=Q[1],rn=r("overflow"),tn=rn[0],on=rn[1],cn=g&&!i,an=P.x||P.y,fn=d||p||h||b||i,ln=y||N||on,sn=D&&O.x&&O.y,dn=function(n,r,t){var e=n.includes(un)&&($===en||"auto"===$&&r===un);return I(ft,e,t),e};if(v=q,cn&&(J&&an?(j(!1),s(),w((function(){s=yr(T,"scroll",vn(j,!0),{T:!0})}))):j(!0)),M&&I(tt,sn),_&&(I(l),I(E,!0),l=E),X&&!J&&j(!0),W&&(c="move"===B,a="leave"===B,V(f="never"===B,!0)),U&&I(xt,K),nn&&I(ht,Z),ln){var pn=dn(tn.x,S.x,!0),yn=dn(tn.y,S.y,!1);I(lt,!(pn&&yn))}fn&&(A(),L(),R(),I(vt,!P.x,!0),I(vt,!P.y,!1),I(it,m&&!H))},{},M]}(n,r,p,a,f,(function(n){return w("scroll",[E,n])})),h=y[0],x=y[1],b=y[3],g=function(n){return hn(n).some((function(r){return!!n[r]}))},m=function(n,t){var e=n.la,i=n.Dr,o=n.Pr,u=n.fa,a=e||{},f=!!i,l={Tr:Tr(r,a,f),la:a,Dr:f};if(u)return x(l),!1;var s=t||d(xn({},l,{Pr:o})),v=c(xn({},l,{oa:p,$r:s}));x(xn({},l,{$r:s,Jr:v}));var y=g(s),h=g(v),b=y||h||!gn(a)||f;return b&&function(n,r){var t=n.la,e=n.Dr,i=r.$r,o=r.Jr,u=i.pr,c=i.Or,a=i.Cr,f=i.Er,l=i.Ar,s=i.dr,v=o.Qr,d=o.ra,p=o.aa,y=o.ea;w("updated",[E,{updateHints:{sizeChanged:!!u,directionChanged:!!c,heightIntrinsicChanged:!!a,overflowEdgeChanged:!!v,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!y,contentMutation:!!f,hostMutation:!!l,appear:!!s},changedOptions:t||{},force:!!e}])}(n,{$r:s,Jr:v}),b};return[function(){var n=f.ia,r=f.hr,t=(0,f.yr)(Br,!0),e=mr(n),i=[v(),u(),h()];return gr(r,e),t(),vn(Y,i)},m,function(){return{sa:p,da:a}},{pa:f,_a:b},l]}(r,v),S=O[0],P=O[1],C=O[2],D=O[3],M=O[4],k=function(n){!function(n){St.delete(n)}(u),Y(f),a=!0,w("destroyed",[E,n]),y(),g()},E={options:function(n,r){if(n){var t=r?i():{},e=Er(v,xn(t,s(n)));gn(e)||(xn(v,e),P({la:e}))}return xn({},v)},on:b,off:function(n,r){n&&r&&g(n,r)},state:function(){var n=C(),r=n.sa,t=n.da,e=r.ir,i=t.Rr,o=t.Mr,u=t.$,c=t.ta,f=t.na,l=t.ua,s=t.Fr;return xn({},{overflowEdge:i,overflowAmount:o,overflowStyle:u,hasOverflow:c,scrollCoordinates:{start:s.P,end:s.D},padding:f,paddingAbsolute:l,directionRTL:e,destroyed:a})},elements:function(){var n=D.pa,r=n._r,t=n.gr,e=n.na,i=n.er,o=n.mr,u=n.hr,c=n.Gr,a=D._a,f=a.Br,l=a.Zr,s=function(n){var r=n.Ir,t=n.kr;return{scrollbar:n.Vr,track:t,handle:r}},v=function(n){var r=n.Yr,t=n.Wr,e=s(r[0]);return xn({},e,{clone:function(){var n=s(t());return P({fa:!0}),n}})};return xn({},{target:r,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:v(f),scrollbarVertical:v(l)})},update:function(n){return P({Dr:n,Pr:!0})},destroy:vn(k,!1),plugin:function(n){return l[hn(n)[0]]}};return $(f,[M]),function(n,r){St.set(n,r)}(u,E),kt(Dt,n,[E,p,l]),Ot(D.pa.Lr,!o&&r.cancel)?(k(!0),E):($(f,S()),w("initialized",[E]),E.update(!0),E)}return c};return Gt.plugin=function(n){var r=E(n),t=r?n:[n],e=t.map((function(n){return kt(n,Gt)[0]}));return function(n){_(n,(function(n){return _(n,(function(r,t){Dt[t]=n[t]}))}))}(t),r?e:e[0]},Gt.valid=function(n){var r=n&&n.elements,t=k(r)&&r();return I(t)&&!!Pt(t.target)},Gt.env=function(){var n=bt(),r=n.L,t=n.k,e=n.I,i=n.M,o=n.U,u=n.q,c=n.V,a=n.F,f=n.j,l=n.N;return xn({},{scrollbarsSize:r,scrollbarsOverlaid:t,scrollbarsHiding:e,scrollTimeline:i,staticDefaultInitialization:o,staticDefaultOptions:u,getDefaultInitialization:c,setDefaultInitialization:a,getDefaultOptions:f,setDefaultOptions:l})},n.ClickScrollPlugin=zt,n.OverlayScrollbars=Gt,n.ScrollbarsHidingPlugin=_t,n.SizeObserverPlugin=It,n}({}); | ||
var OverlayScrollbarsGlobal=function(n){"use strict";var r=function(n,r){var t,e=n.i,i=n.v,o=n.o,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]}]},t="undefined"!=typeof window&&"undefined"!=typeof document,e=t?window:{},i=Math.max,o=Math.min,u=Math.round,c=Math.abs,a=Math.sign,f=e.cancelAnimationFrame,l=e.requestAnimationFrame,s=e.setTimeout,v=e.clearTimeout,d=function(n){return void 0!==e[n]?e[n]:void 0},p=d("MutationObserver"),y=d("IntersectionObserver"),h=d("ResizeObserver"),x=d("ScrollTimeline"),g=t&&Node.ELEMENT_NODE,b=Object.prototype,m=b.toString,w=b.hasOwnProperty,O=/^\[object (.+)\]$/,S=function(n){return void 0===n},P=function(n){return null===n},C=function(n){return"number"==typeof n},D=function(n){return"string"==typeof n},M=function(n){return"boolean"==typeof n},k=function(n){return"function"==typeof n},T=function(n){return Array.isArray(n)},E=function(n){return"object"==typeof n&&!T(n)&&!P(n)},A=function(n){var r=!!n&&n.length,t=C(r)&&r>-1&&r%1==0;return!(!(T(n)||!k(n)&&t)||r>0&&E(n)&&!(r-1 in n))},H=function(n){if(!n||!E(n)||"object"!==function(n){return S(n)||P(n)?""+n:m.call(n).replace(O,"$1").toLowerCase()}(n))return!1;var r,t="constructor",e=n[t],i=e&&e.prototype,o=w.call(n,t),u=i&&w.call(i,"isPrototypeOf");if(e&&!o&&!u)return!1;for(r in n);return S(r)||w.call(n,r)},I=function(n){var r=HTMLElement;return!!n&&(r?n instanceof r:n.nodeType===g)},L=function(n){var r=Element;return!!n&&(r?n instanceof r:n.nodeType===g)},j=function(){return performance.now()},R=function(n,r,t,e,o){var u=0,c=j(),a=i(0,t),s=function t(f){var s=j(),v=s-c>=a,d=f?1:1-(i(0,c+a-s)/a||0),p=(r-n)*(k(o)?o(d,d*a,0,1,a):d)+n,y=v||1===d;e&&e(p,d,y),u=y?0:l((function(){return t()}))};return s(),function(n){f(u),n&&s(n)}};function _(n,r){if(A(n))for(var t=0;t<n.length&&!1!==r(n[t],t,n);t++);else n&&_(Object.keys(n),(function(t){return r(n[t],t,n)}));return n}var V=function(n,r){return n.indexOf(r)>=0},z=function(n,r){return n.concat(r)},$=function(n,r,t){return t||D(r)||!A(r)?n.push(r):Array.prototype.push.apply(n,r),n},N=function(n){return Array.from(n||[])},F=function(n){return T(n)?n:[n]},B=function(n){return!!n&&!n.length},W=function(n){return N(new Set(n))},Y=function(n,r,t){_(n,(function(n){return n&&n.apply(void 0,r||[])})),!t&&(n.length=0)},J="paddingTop",X="paddingRight",q="paddingLeft",G="paddingBottom",K="marginLeft",U="marginRight",Q="marginBottom",Z="overflowX",nn="overflowY",rn="width",tn="height",en="visible",on="hidden",un="scroll",cn=function(n,r,t,e){if(n&&r){var i=!0;return _(t,(function(t){(e?e(n[t]):n[t])!==(e?e(r[t]):r[t])&&(i=!1)})),i}return!1},an=function(n,r){return cn(n,r,["w","h"])},fn=function(n,r){return cn(n,r,["x","y"])},ln=function(n,r){return cn(n,r,["t","r","b","l"])},sn=function(){},vn=function(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return n.bind.apply(n,[0].concat(t))},dn=function(n){var r,t=n?s:l,e=n?v:f;return[function(i){e(r),r=t((function(){return i()}),k(n)?n():n)},function(){return e(r)}]},pn=function(n,r){var t,e,i,o=sn,u=r||{},c=u.u,a=u.p,d=u._,p=function(r){o(),v(t),t=e=void 0,o=sn,n.apply(this,r)},y=function(n){return d&&e?d(e,n):n},h=function(){o!==sn&&p(y(i)||i)},x=function(){var n=N(arguments),r=k(c)?c():c;if(C(r)&&r>=0){var u=k(a)?a():a,d=C(u)&&u>=0,x=r>0?s:l,g=r>0?v:f,b=y(n)||n,m=p.bind(0,b);o();var w=x(m,r);o=function(){return g(w)},d&&!t&&(t=s(h,u)),e=i=b}else p(n)};return x.m=h,x},yn=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},hn=function(n){return n?Object.keys(n):[]},xn=function n(r,t,e,i,o,u,c){var a=[t,e,i,o,u,c];return"object"==typeof r&&!P(r)||k(r)||(r={}),_(a,(function(t){_(t,(function(e,i){var o=t[i];if(r===o)return!0;var u=T(o);if(o&&H(o)){var c=r[i],a=c;u&&!T(c)?a=[]:u||H(c)||(a={}),r[i]=n(a,o)}else r[i]=u?o.slice():o}))})),r},gn=function n(r,t){return _(xn({},r),(function(r,e,i){void 0===r?delete i[e]:t&&r&&H(r)&&(i[e]=n(r,t))}))},bn=function(n){for(var r in n)return!1;return!0},mn=function(n,r,t){return i(n,o(r,t))},wn=function(n){return N(new Set((T(n)?n:(n||"").split(" ")).filter((function(n){return n}))))},On=function(n,r){return n&&n.getAttribute(r)},Sn=function(n,r){return n&&n.hasAttribute(r)},Pn=function(n,r,t){_(wn(r),(function(r){n&&n.setAttribute(r,String(t||""))}))},Cn=function(n,r){_(wn(r),(function(r){return n&&n.removeAttribute(r)}))},Dn=function(n,r){var t=wn(On(n,r)),e=vn(Pn,n,r),i=function(n,r){var e=new Set(t);return _(wn(n),(function(n){e[r](n)})),N(e).join(" ")};return{S:function(n){return e(i(n,"delete"))},O:function(n){return e(i(n,"add"))},C:function(n){var r=wn(n);return r.reduce((function(n,r){return n&&t.includes(r)}),r.length>0)}}},Mn=function(n,r,t){return Dn(n,r).S(t),vn(kn,n,r,t)},kn=function(n,r,t){return Dn(n,r).O(t),vn(Mn,n,r,t)},Tn=function(n,r,t,e){return(e?kn:Mn)(n,r,t)},En=function(n){return Dn(n,"class")},An=function(n,r){En(n).S(r)},Hn=function(n,r){return En(n).O(r),vn(An,n,r)},In=function(n,r){var t=[],e=r?L(r)&&r:document;return e?$(t,e.querySelectorAll(n)):t},Ln=function(n,r){return!!L(n)&&n.matches(r)},jn=function(n){return Ln(n,"body")},Rn=function(n){return n?N(n.childNodes):[]},_n=function(n){return n&&n.parentElement},Vn=function(n,r){return L(n)&&n.closest(r)},zn=function(n){return(n||document).activeElement},$n=function(n,r,t){var e=Vn(n,r),i=n&&function(n,r){var t=r?L(r)&&r:document;return t?t.querySelector(n):null}(t,e),o=Vn(i,r)===e;return!(!e||!i)&&(e===n||i===n||o&&Vn(Vn(n,t),r)!==e)},Nn=function n(r){if(A(r))_(N(r),(function(r){return n(r)}));else if(r){var t=_n(r);t&&t.removeChild(r)}},Fn=function(n,r,t){if(t&&n){var e,i=r;return A(t)?(e=document.createDocumentFragment(),_(t,(function(n){n===i&&(i=n.previousSibling),e.appendChild(n)}))):e=t,r&&(i?i!==r&&(i=i.nextSibling):i=n.firstChild),n.insertBefore(e,i||null),function(){return Nn(t)}}return sn},Bn=function(n,r){return Fn(n,null,r)},Wn=function(n,r){return Fn(_n(n),n&&n.nextSibling,r)},Yn=function(n){var r=document.createElement("div");return Pn(r,"class",n),r},Jn=function(n){var r=Yn();return r.innerHTML=n.trim(),_(Rn(r),(function(n){return Nn(n)}))},Xn=/^--/,qn=function(n,r){return n.getPropertyValue(r)||n[r]||""},Gn=function(n){var r=n||0;return isFinite(r)?r:0},Kn=function(n){return Gn(parseFloat(n||""))},Un=function(n){return(100*Gn(n)).toFixed(3)+"%"},Qn=function(n){return Gn(n)+"px"};function Zn(n,r){n&&r&&_(r,(function(r,t){try{var e=n.style,i=C(r)?Qn(r):(r||"")+"";Xn.test(t)?e.setProperty(t,i):e[t]=i}catch(o){}}))}function nr(n,r,t){var i=D(r),o=i?"":{};if(n){var u=e.getComputedStyle(n,t)||n.style;o=i?qn(u,r):N(r).reduce((function(n,r){return n[r]=qn(u,r),n}),o)}return o}var rr,tr=function(n,r,t){var e=r?r+"-":"",i=t?"-"+t:"",o=e+"top"+i,u=e+"right"+i,c=e+"bottom"+i,a=e+"left"+i,f=nr(n,[o,u,c,a]);return{t:Kn(f[o]),r:Kn(f[u]),b:Kn(f[c]),l:Kn(f[a])}},er=function(n,r){return"translate"+(E(n)?"("+n.x+","+n.y+")":(r?"X":"Y")+"("+n+")")},ir={w:0,h:0},or=function(n,r){return r?{w:r[n+"Width"],h:r[n+"Height"]}:ir},ur=function(n){return or("inner",n||e)},cr=vn(or,"offset"),ar=vn(or,"client"),fr=vn(or,"scroll"),lr=function(n){var r=parseFloat(nr(n,rn))||0,t=parseFloat(nr(n,tn))||0;return{w:r-u(r),h:t-u(t)}},sr=function(n){return n.getBoundingClientRect()},vr=function(n){return!(!n||!n[tn]&&!n[rn])},dr=function(n,r){var t=vr(n);return!vr(r)&&t},pr=function(n,r,t,e){_(wn(r),(function(r){n&&n.removeEventListener(r,t,e)}))},yr=function(n,r,t,e){var i,o=null==(i=e&&e.A)||i,u=e&&e.H||!1,c=e&&e.T||!1,a={passive:o,capture:u};return vn(Y,wn(r).map((function(r){var e=c?function(i){pr(n,r,e,u),t&&t(i)}:t;return n&&n.addEventListener(r,e,a),vn(pr,n,r,e,u)})))},hr=function(n){return n.stopPropagation()},xr=function(n){return n.preventDefault()},gr=function(n){return hr(n)||xr(n)},br=function(n,r){var t=C(r)?{x:r,y:r}:r||{},e=t.x,i=t.y;C(e)&&(n.scrollLeft=e),C(i)&&(n.scrollTop=i)},mr=function(n){return{x:n.scrollLeft,y:n.scrollTop}},wr=function(n,r){var t=n.P,e=n.D,i=r.w,o=r.h,u=function(n,r,t){var e=a(n)*t,i=a(r)*t;if(e===i){var o=c(n),u=c(r);i=o>u?0:i,e=o<u?0:e}return[(e=e===i?0:e)+0,i+0]},f=u(t.x,e.x,i),l=f[0],s=f[1],v=u(t.y,e.y,o);return{P:{x:l,y:v[0]},D:{x:s,y:v[1]}}},Or=function(n){var r=n.P,t=n.D,e=function(n,r){return 0===n&&n<=r};return{x:e(r.x,t.x),y:e(r.y,t.y)}},Sr=function(n,r){var t=n.P,e=n.D,i=function(n,r,t){return mn(0,1,(n-t)/(n-r)||0)};return{x:i(t.x,e.x,r.x),y:i(t.y,e.y,r.y)}},Pr=function(n){n&&n.focus&&n.focus({preventScroll:!0})},Cr=function(n,r){_(F(r),n)},Dr=function(n){var r=new Map,t=function(n,t){if(n){var e=r.get(n);Cr((function(n){e&&e[n?"delete":"clear"](n)}),t)}else r.forEach((function(n){n.clear()})),r.clear()},e=function n(e,i){if(D(e)){var o=r.get(e)||new Set;return r.set(e,o),Cr((function(n){k(n)&&o.add(n)}),i),vn(t,e,i)}M(i)&&i&&t();var u=hn(e),c=[];return _(u,(function(r){var t=e[r];t&&$(c,n(r,t))})),vn(Y,c)};return e(n||{}),[e,t,function(n,t){_(N(r.get(n)),(function(n){t&&!B(t)?n.apply(0,t):n()}))}]},Mr=function(n){return JSON.stringify(n,(function(n,r){if(k(r))throw 0;return r}))},kr=function(n,r){return n?(""+r).split(".").reduce((function(n,r){return n&&yn(n,r)?n[r]:void 0}),n):void 0},Tr={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"]}},Er=function n(r,t){var e={};return _(z(hn(t),hn(r)),(function(i){var o=r[i],u=t[i];if(E(o)&&E(u))xn(e[i]={},n(o,u)),bn(e[i])&&delete e[i];else if(yn(t,i)&&u!==o){var a=!0;if(T(o)||T(u))try{Mr(o)===Mr(u)&&(a=!1)}catch(c){}a&&(e[i]=u)}})),e},Ar=function(n,r,t){return function(e){return[kr(n,e),t||void 0!==kr(r,e)]}},Hr="data-overlayscrollbars",Ir="os-environment",Lr=Ir+"-scrollbar-hidden",jr=Hr+"-initialize",Rr="noClipping",_r=Hr+"-body",Vr=Hr,zr="host",$r=Hr+"-viewport",Nr=Z,Fr=nn,Br="arrange",Wr="measuring",Yr="scrollbarHidden",Jr="scrollbarPressed",Xr="noContent",qr=Hr+"-padding",Gr=Hr+"-content",Kr="os-size-observer",Ur=Kr+"-appear",Qr=Kr+"-listener",Zr=Qr+"-scroll",nt=Qr+"-item",rt=nt+"-final",tt="os-trinsic-observer",et="os-theme-none",it="os-scrollbar",ot=it+"-rtl",ut=it+"-horizontal",ct=it+"-vertical",at=it+"-track",ft=it+"-handle",lt=it+"-visible",st=it+"-cornerless",vt=it+"-interaction",dt=it+"-unusable",pt=it+"-auto-hide",yt=pt+"-hidden",ht=it+"-wheel",xt=at+"-interactive",gt=ft+"-interactive",bt=function(){return rr||(rr=function(){var n=function(n,r,t){Bn(document.body,n),Bn(document.body,n);var e=ar(n),i=cr(n),o=lr(r);return t&&Nn(n),{x:i.h-e.h+o.h,y:i.w-e.w+o.w}},t=Jn('<div class="'+Ir+'"><div></div><style>'+"."+Ir+"{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}."+Ir+" div{width:200%;height:200%;margin:10px 0}."+Lr+"{scrollbar-width:none!important}."+Lr+"::-webkit-scrollbar,."+Lr+"::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}"+"</style></div>")[0],i=t.firstChild,o=Dr(),u=o[0],c=o[2],a=r({i:n(t,i),v:fn},vn(n,t,i,!0)),f=a[0],l=(0,a[1])()[0],s=function(n){var r=!1,t=Hn(n,Lr);try{r="none"===nr(n,"scrollbar-width")||"none"===nr(n,"display","::-webkit-scrollbar")}catch(e){}return t(),r}(t),v={x:0===l.x,y:0===l.y},d={elements:{host:null,padding:!s,viewport:function(n){return s&&jn(n)&&n},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=xn({},Tr),y=vn(xn,{},p),h=vn(xn,{},d),g={L:l,k:v,I:s,M:!!x,R:vn(u,"r"),V:h,j:function(n){return xn(d,n)&&h()},F:y,N:function(n){return xn(p,n)&&y()},U:xn({},d),q:xn({},p)};return Cn(t,"style"),Nn(t),yr(e,"resize",(function(){c("r",[])})),!k(e.matchMedia)||s||v.x&&v.y||function n(r){var t=e.matchMedia("(resolution: "+e.devicePixelRatio+"dppx)");yr(t,"change",(function(){r(),n(r)}),{T:!0})}((function(){var n=f(),r=n[0],t=n[1];xn(g.L,r),c("r",[t])})),g}()),rr},mt=function(n,r){return k(r)?r.apply(0,n):r},wt=function(n,r,t,e){var i=S(e)?t:e;return mt(n,i)||r.apply(0,n)},Ot=function(n,r,t,e){var i=S(e)?t:e,o=mt(n,i);return!!o&&(I(o)?o:r.apply(0,n))},St=function(n,r){var t=r||{},e=t.nativeScrollbarsOverlaid,i=t.body,o=bt(),u=o.k,c=o.I,a=(0,o.V)().cancel,f=a.nativeScrollbarsOverlaid,l=a.body,s=null!=e?e:f,v=S(i)?l:i,d=(u.x||u.y)&&s,p=n&&(P(v)?!c:v);return!!d||!!p},Pt=new WeakMap,Ct=function(n){return Pt.get(n)},Dt=function(n,r,t,e){var i=!1,o=e||{},u=o.B,c=o.Y,a=o.W,f=o.X,l=o.Z,s=o.K,v=pn((function(){return i&&t(!0)}),{u:33,p:99}),d=function(n,r,t){var e=!1,i=!!t&&new WeakMap,o=function(o){if(i&&t){var u=t.map((function(r){var t=r||[],e=t[0],i=t[1];return[i&&e?(o||In)(e,n):[],i]}));_(u,(function(t){return _(t[0],(function(o){var u=t[1],c=i.get(o)||[];if(n.contains(o)&&u){var a=yr(o,u,(function(n){e?(a(),i.delete(o)):r(n)}));i.set(o,$(c,a))}else Y(c),i.delete(o)}))}))}};return o(),[function(){e=!0},o]}(n,v,a),y=d[0],h=d[1],x=c||[],g=z(u||[],x),b=function(i,o){if(!B(o)){var u=l||sn,c=s||sn,a=[],v=[],d=!1,p=!1;if(_(o,(function(t){var i=t.attributeName,o=t.target,l=t.type,s=t.oldValue,y=t.addedNodes,h=t.removedNodes,g="attributes"===l,b="childList"===l,m=n===o,w=g&&i,O=w&&On(o,i||"")||null,S=w&&s!==O,P=V(x,i)&&S;if(r&&(b||!m)){var C=g&&S,D=C&&f&&Ln(o,f),M=(D?!u(o,i,s,O):!g||C)&&!c(t,!!D,n,e);_(y,(function(n){return $(a,n)})),_(h,(function(n){return $(a,n)})),p=p||M}!r&&m&&S&&!u(o,i,s,O)&&($(v,i),d=d||P)})),h((function(n){return W(a).reduce((function(r,t){return $(r,In(n,t)),Ln(t,n)?$(r,t):r}),[])})),r)return!i&&p&&t(!1),[!1];if(!B(v)||d){var y=[W(v),d];return!i&&t.apply(0,y),y}}},m=new p(vn(b,!1));return[function(){return m.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:g,subtree:r,childList:r,characterData:r}),i=!0,function(){i&&(y(),m.disconnect(),i=!1)}},function(){if(i)return v.m(),b(!0,m.takeRecords())}]},Mt={},kt={},Tt=function(n,r,t){return hn(n).map((function(e){var i=n[e],o=i.static,u=i.instance,c=t||[],a=c[0],f=c[1],l=c[2],s=t?u:o;if(s){var v=t?s(a,f,r):s(r);return(l||kt)[e]=v}}))},Et=function(n){return kt[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.G=!0,n.exports["default"]=n.exports,r.apply(this,arguments)}n.exports=r,n.exports.G=!0,n.exports["default"]=n.exports}({exports:{}});var At="__osOptionsValidationPlugin",Ht="__osSizeObserverPlugin",It=function(n){return(n={})[Ht]={static:function(){return function(n,r,t){var e,i,o=3333333,u="scroll",c=Jn('<div class="'+nt+'" dir="ltr"><div class="'+nt+'"><div class="'+rt+'"></div></div><div class="'+nt+'"><div class="'+rt+'" style="width: 200%; height: 200%"></div></div></div>'),a=c[0],s=a.lastChild,v=a.firstChild,d=null==v?void 0:v.firstChild,p=cr(a),y=p,h=!1,x=function(){br(v,o),br(s,o)},g=function(n){i=0,h&&(p=y,r(!0===n))},b=function(n){y=cr(a),h=!n||!an(y,p),n?(hr(n),h&&!i&&(f(i),i=l(g))):g(!1===n),x()},m=[Bn(n,c),yr(v,u,b),yr(s,u,b)];return Hn(n,Zr),Zn(d,((e={})[rn]=o,e[tn]=o,e)),l(x),[t?vn(b,!1):x,m]}}},n}(),Lt=function(n,r){var t=r.k,e=n("showNativeOverlaidScrollbars"),i=e[0],o=e[1];return[i&&t.x&&t.y,o]},jt=function(n){return 0===n.indexOf(en)},Rt=function(n,r){var t=function(n,r,t,e){var i=n===en?on:n.replace(en+"-",""),o=jt(n),u=jt(t);return r||e?o&&u?en:o?r&&e?i:r?en:on:r?i:u&&e?en:on:on},e={x:t(r.x,n.x,r.y,n.y),y:t(r.y,n.y,r.x,n.x)};return{$:e,J:{x:e.x===un,y:e.y===un}}},_t="__osScrollbarsHidingPlugin",Vt=function(n){return(n={})[_t]={static:function(){return{rr:function(n,r,t,e,i){var o=n.ar,u=n.er,c=e.I,a=e.k,f=e.L,l=!o&&!c&&(a.x||a.y),s=Lt(i,e)[0],v=function(n){var r=n.J,t=c||s?0:42,e=function(n,r,e){return[r&&!c?n?t:e:0,n&&!!t]},i=e(a.x,r.x,f.x),o=i[0],u=i[1],l=e(a.y,r.y,f.y);return{tr:{x:o,y:l[0]},nr:{x:u,y:l[1]}}},d=function(n,t,e){var i=t.ir;if(!o){var u,c=xn({},((u={})[U]=0,u[Q]=0,u[K]=0,u)),a=v(n),f=a.tr,l=a.nr,s=l.x,d=l.y,p=f.x,y=f.y,h=r.vr,x=i?K:U,g=i?q:X,b=h[x],m=h[Q],w=h[g],O=h[G];return c[rn]="calc(100% + "+(y+-1*b)+"px)",c[x]=-y+b,c[Q]=-p+m,e&&(c[g]=w+(d?y:0),c[G]=O+(s?p:0)),c}};return{ur:v,cr:function(n,e,i){if(l){var o=r.vr,c=v(n),a=c.tr,f=c.nr,s=f.x,d=f.y,p=a.x,y=a.y,h=o[t.ir?X:q],x=o.paddingTop,g=e.w+i.w,b=e.h+i.h,m={w:y&&d?y+g-h+"px":"",h:p&&s?p+b-x+"px":""};Zn(u,{"--os-vaw":m.w,"--os-vah":m.h})}return l},lr:function(n){if(l){var e=n||function(){var n=function(n){var r=nr(u,n);return[r,r===un]},r=n(Z),t=r[0],e=r[1],i=n(nn);return{$:{x:t,y:i[0]},J:{x:e,y:i[1]}}}(),i=r.vr,o=v(e).nr,c=o.x,a=o.y,f={},s=function(n){return _(n,(function(n){f[n]=i[n]}))};c&&s([Q,J,G]),a&&s([K,U,q,X]);var p=nr(u,hn(f)),y=Mn(u,$r,Br);return Zn(u,f),[function(){Zn(u,xn({},p,d(e,t,l))),y()},e]}return[sn]},sr:d}}}}},n}(),zt="__osClickScrollPlugin",$t=function(n){return(n={})[zt]={static:function(){return function(n,r,t,e,i){var o=0,u=sn;return function c(a){u=R(a,a+e*Math.sign(t),133,(function(t,a,f){n(t);var l=r();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var v=s((function(){c(t)}),222);u=function(){clearTimeout(v)}}o++}}))}(0),function(){return u()}}}},n}(),Nt=function(n,t,e){var i=(e||{}).dr,o=Et(Ht),u=r({i:!1,o:!0})[0];return function(){var r=[],e=Jn('<div class="'+Kr+'"><div class="'+Qr+'"></div></div>')[0],c=e.firstChild,a=function(n){var r=!1,e=!1;if(n instanceof ResizeObserverEntry){var i=u(n.contentRect),o=i[0],c=i[2],a=vr(o);r=!(e=dr(o,c))&&!a}else e=!0===n;r||t({pr:!0,dr:e})};if(h){var f=new h((function(n){return a(n.pop())}));f.observe(c),$(r,(function(){f.disconnect()}))}else{if(!o)return sn;var l=o(c,a,i),s=l[0],v=l[1];$(r,z([Hn(e,Ur),yr(e,"animationstart",s)],v))}return vn(Y,$(r,Bn(n,e)))}},Ft=function(n,t){var e,i=Yn(tt),o=r({i:!1})[0],u=function(n,r){if(n){var e=o(function(n){return 0===n.h||n.isIntersecting||n.intersectionRatio>0}(n));return e[1]&&!r&&t(e)&&[e]}},c=function(n,r){return u(r.pop(),n)};return[function(){var r=[];if(y)(e=new y(vn(c,!1),{root:n})).observe(i),$(r,(function(){e.disconnect()}));else{var t=function(){var n=cr(i);u(n)};$(r,Nt(i,t)()),t()}return vn(Y,$(r,Bn(n,i)))},function(){return e&&c(!0,e.takeRecords())}]},Bt=function(n,t,e,i){var o,u,c,a,f,l,s=bt().I,v="["+Vr+"]",d="["+$r+"]",p=["wrap","cols","rows"],y=["id","class","style","open"],x=n._r,g=n.gr,b=n.er,m=n.hr,w=n.mr,O=n.br,S=n.ar,P=n.Sr,D=n.yr,M=function(n){return"rtl"===nr(n,"direction")},E={wr:!1,ir:M(x)},A=bt(),H=Et(_t),I=r({v:an,i:{w:0,h:0}},(function(){var r=H&&H.rr(n,t,E,A,e).lr,i=!S&&P(Br),o=i&&mr(m),u=D(Wr,!0),c=i&&r&&r()[0],a=fr(w),f=fr(b),l=lr(b);return c&&c(),br(m,o),u(),{w:f.w+a.w+l.w,h:f.h+a.h+l.h}})),L=I[0],j=O?p:z(y,p),R=pn(i,{u:function(){return o},p:function(){return u},_:function(n,r){var t=n[0],e=r[0];return[z(hn(t),hn(e)).reduce((function(n,r){return n[r]=t[r]||e[r],n}),{})]}}),_=function(n){var r=M(x);xn(n,{Or:l!==r}),xn(E,{ir:r}),l=r},V=function(n,r){var t=n[0],e={Cr:n[1]};return xn(E,{wr:t}),!r&&i(e),e},$=function(n){var r=n.pr,t=n.dr,e=r&&!t||!s?i:R,o={pr:r||t,dr:t};_(o),e(o)},N=function(n,r){var t=L()[1],e={Er:t};return _(e),t&&!r&&(n?i:R)(e),e},F=function(n,r,t){var e={Ar:r};return _(e),r&&!t&&R(e),e},B=A.R,W=w?Ft(g,V):[],Y=W[0],J=W[1],X=!S&&Nt(g,$,{dr:!0}),q=Dt(g,!1,F,{Y:y,B:z(y,[])}),G=q[0],K=q[1],U=S&&h&&new h((function(n){var r=n[n.length-1].contentRect;$({pr:!0,dr:dr(r,f)}),f=r}));return[function(){U&&U.observe(g);var n=X&&X(),r=Y&&Y(),t=G(),e=B((function(n){var r=L()[1];R({Hr:n,Er:r})}));return function(){U&&U.disconnect(),n&&n(),r&&r(),a&&a(),t(),e()}},function(n){var r=n.Tr,t=n.Pr,e=n.Dr,i={},f=r("update.ignoreMutation")[0],l=r("update.attributes"),s=l[0],p=l[1],y=r("update.elementEvents"),h=y[0],x=y[1],g=r("update.debounce"),m=g[0],O=g[1],P=t||e;if(x||p){c&&c(),a&&a();var D=Dt(w||b,!0,N,{B:z(j,s||[]),W:h,X:v,K:function(n,r){var t=n.target,e=n.attributeName;return!(r||!e||S)&&$n(t,v,d)||!!Vn(t,"."+it)||!!function(n){return k(f)&&f(n)}(n)}}),M=D[0],E=D[1];a=M(),c=E}if(O)if(R.m(),T(m)){var A=m[0],H=m[1];o=C(A)&&A,u=C(H)&&H}else C(m)?(o=m,u=!1):(o=!1,u=!1);if(P){var I=K(),L=J&&J(),$=c&&c();I&&xn(i,F(I[0],I[1],P)),L&&xn(i,V(L[0],P)),$&&xn(i,N($[0],P))}return _(i),i},E]},Wt=function(n,r,t,e){var i=(0,bt().V)().scrollbars.slot,o=r._r,u=r.gr,c=r.er,a=r.zr,f=r.hr,l=r.Lr,s=r.ar,v=((a?{}:n).scrollbars||{}).slot,d=new Map,p=function(n){return x&&new x({source:f,axis:n})},y={x:p("x"),y:p("y")},h=Ot([o,u,c],(function(){return s&&l?o:u}),i,v),g=function(n,r){if(r){var e=n?rn:tn,i=r.kr,o=r.Ir,u=sr(o)[e],c=sr(i)[e];return mn(0,1,u/c||0)}var a=n?"x":"y",f=t.Mr,l=t.Rr[a],s=f[a];return mn(0,1,l/(l+s)||0)},b=function(n){return xn(n,{clear:["left"]})},m=function(n){d.forEach((function(r,t){(!n||V(F(n),t))&&(_(r||[],(function(n){n&&n.cancel()})),d.delete(t))}))},w=function(n,r,t,e){var i=d.get(n)||[],o=i.find((function(n){return n&&n.timeline===r}));o?o.effect=new KeyframeEffect(n,t,{composite:e}):d.set(n,z(i,[n.animate(t,{timeline:r,composite:e})]))},O=function(n,r,t){var e=t?Hn:An;_(n,(function(n){e(n.Vr,r)}))},S=function(n,r){_(n,(function(n){var t=r(n);Zn(t[0],t[1])}))},P=function(n,r){S(n,(function(n){var t;return[n.Ir,(t={},t[r?rn:tn]=Un(g(r)),t)]}))},C=function(n,r){var e=t.jr,i=r?"x":"y",o=y[i],u=Or(e)[i],c=function(n,t){return er(Un(function(n,r,t){var e=g(t,n);return 1/e*(1-e)*r}(n,u?t:1-t,r)),r)};o?_(n,(function(n){var r=n.Ir;w(r,o,b({transform:[0,1].map((function(r){return c(n,r)}))}))})):S(n,(function(n){return[n.Ir,{transform:c(n,Sr(e,mr(f))[i])}]}))},D=function(n){return s&&!l&&_n(n)===c},k=[],T=[],E=[],A=function(n,r,t){var e=M(t),i=!e||!t;(!e||t)&&O(T,n,r),i&&O(E,n,r)},H=function(n){var r=Yn(it+" "+(n?ut:ct)),t=Yn(at),i=Yn(ft),o={Vr:r,kr:t,Ir:i};return $(n?T:E,o),$(k,[Bn(r,t),Bn(t,i),vn(Nn,r),m,e(o,A,C,n)]),o},I=vn(H,!0),L=vn(H,!1);return I(),L(),[{Fr:function(){P(T,!0),P(E)},Nr:function(){C(T,!0),C(E)},Ur:function(){if(s){var n=t.Mr,r=t.jr,e=Or(r),i=.5;if(y.x&&y.y)_(z(E,T),(function(r){var t=r.Vr;if(D(t)){var o=function(r){return w(t,y[r],b({transform:[0,e[r]?1:-1].map((function(t){return er(Qn(t*(n[r]-i)),"x"===r)}))}),"add")};o("x"),o("y")}else m(t)}));else{var o=Sr(r,mr(f)),u=function(r){var t=r.Vr,i=D(t)&&t,u=function(n,r,t){var e=r*n;return Qn(t?e:-e)};return[i,i&&{transform:er({x:u(o.x,n.x,e.x),y:u(o.y,n.y,e.y)})}]};S(T,u),S(E,u)}}},qr:A,Br:{M:y.x,Yr:T,Wr:I,Xr:vn(S,T)},Zr:{M:y.y,Yr:E,Wr:L,Xr:vn(S,E)}},function(){return Bn(h,T[0].Vr),Bn(h,E[0].Vr),vn(Y,k)}]},Yt=function(n,r,t,e){return function(i,o,a,f){var l=r.gr,v=r.er,d=r.ar,p=r.hr,y=r.Kr,h=r.yr,x=i.Vr,g=i.kr,b=i.Ir,m=dn(333),w=m[0],O=m[1],S=dn(444),P=S[0],C=S[1],D=dn(),M=D[0],T=D[1],E=vn(a,[i],f),A=function(n){k(p.scrollBy)&&p.scrollBy({behavior:"smooth",left:n.x,top:n.y})},H=f?rn:tn,I=!0,L=function(n){return n.propertyName.indexOf(H)>-1};return vn(Y,[yr(b,"pointermove pointerleave",e),yr(x,"pointerenter",(function(){o(vt,!0)})),yr(x,"pointerleave pointercancel",(function(){o(vt,!1)})),!d&&yr(x,"mousedown",(function(){var n=zn();(Sn(n,$r)||Sn(n,Vr)||n===document.body)&&s(vn(Pr,v),25)})),yr(x,"wheel",(function(n){var r=n.deltaX,t=n.deltaY,e=n.deltaMode;I&&0===e&&_n(x)===l&&A({x:r,y:t}),I=!1,o(ht,!0),w((function(){I=!0,o(ht)})),xr(n)}),{A:!1,H:!0}),yr(b,"transitionstart",(function(n){L(n)&&function n(){E(),M(n)}()})),yr(b,"transitionend transitioncancel",(function(n){L(n)&&(T(),E())})),yr(x,"pointerdown",vn(yr,y,"click",gr,{T:!0,H:!0,A:!1}),{H:!0}),function(){var r="pointerup pointercancel lostpointercapture",e="client"+(f?"X":"Y"),i=f?"left":"top",o=f?"w":"h",a=f?"x":"y",l=function(n,r){return function(e){var i,u=t.Mr,c=cr(g)[o]-cr(b)[o],f=r*e/c*u[a];br(p,((i={})[a]=n+f,i))}};return yr(g,"pointerdown",(function(t){var f=Vn(t.target,"."+ft)===b,s=f?b:g,v=n.scrollbars,d=t.button,x=t.isPrimary,m=t.pointerType,w=v.pointers;if(0===d&&x&&v[f?"dragScroll":"clickScroll"]&&(w||[]).includes(m)){C();var O=!f&&t.shiftKey,S=vn(sr,b),D=vn(sr,g),M=function(n,r){return(n||S())[i]-(r||D())[i]},k=u(sr(p)[H])/cr(p)[o]||1,T=l(mr(p)[a],1/k),E=t[e],I=S(),L=D(),j=I[H],R=M(I,L)+j/2,_=E-L[i],V=f?0:_-R,z=function(n){Y(B),s.releasePointerCapture(n.pointerId)},N=function(){return h(Jr,!0)},F=N(),B=[function(){var n=mr(p);F();var r=mr(p),t={x:r.x-n.x,y:r.y-n.y};(c(t.x)>3||c(t.y)>3)&&(N(),br(p,n),A(t),P(F))},yr(y,r,z),yr(y,"selectstart",(function(n){return xr(n)}),{A:!1}),yr(g,r,z),yr(g,"pointermove",(function(n){var r=n[e]-E;(f||O)&&T(V+r)}))];if(s.setPointerCapture(t.pointerId),O)T(V);else if(!f){var W=Et(zt);W&&$(B,W(T,M,V,j,_))}}}))}(),O,C,T])}},Jt=function(n){var r=bt(),t=r.V,i=r.I,o=t().elements,u=o.host,c=o.padding,a=o.viewport,f=o.content,l=I(n),s=l?{}:n,v=s.elements||{},d=v.host,p=v.padding,y=v.viewport,h=v.content,x=l?n:s.target,g=jn(x),b=Ln(x,"textarea"),m=x.ownerDocument,w=m.documentElement,O=function(){return m.defaultView||e},S=vn(wt,[x]),P=vn(Ot,[x]),C=vn(Yn,""),D=vn(S,C,a),M=vn(P,C,f),k=D(y),T=k===x,E=T&&g,A=!T&&M(h),H=!T&&k===A,L=E?w:k,j=b?S(C,u,d):x,R=E?L:j,_=!T&&P(C,c,p),z=!H&&A,N=[z,L,_,R].map((function(n){return I(n)&&!_n(n)&&n})),F=function(n){return n&&V(N,n)},B=F(L)?x:L,W={_r:x,gr:R,er:L,na:_,mr:z,hr:E?w:L,Gr:E?m:L,ia:g?w:B,Kr:m,br:b,Lr:g,zr:l,ar:T,va:O,Sr:function(n){return function(n,r,t){return Dn(n,r).C(t)}(L,$r,n)},yr:function(n,r){return Tn(L,$r,n,r)}},J=W._r,X=W.gr,q=W.na,G=W.er,K=W.mr,U=[function(){Cn(X,[Vr,jr]),Cn(J,jr),g&&Cn(w,[jr,Vr])}],Q=b&&F(X),Z=b?J:Rn([K,G,q,X,J].find((function(n){return n&&!F(n)}))),nn=E?J:K||G,rn=vn(Y,U);return[W,function(){var n=O(),r=zn(),t=function(n){Bn(_n(n),Rn(n)),Nn(n)},e=function(n){return yr(n,"focusin focusout focus blur",gr,{H:!0,A:!1})},o="tabindex",u=On(G,o),c=e(r);return Pn(X,Vr,T?"":zr),Pn(q,qr,""),Pn(G,$r,""),Pn(K,Gr,""),T||(Pn(G,o,u||"-1"),g&&Pn(w,_r,"")),Q&&(Wn(J,X),$(U,(function(){Wn(X,J),Nn(X)}))),Bn(nn,Z),Bn(X,q),Bn(q||X,!T&&G),Bn(G,K),$(U,[c,function(){var n=zn(),r=F(G),i=r&&n===G?J:n,c=e(i);Cn(q,qr),Cn(K,Gr),Cn(G,$r),g&&Cn(w,_r),u?Pn(G,o,u):Cn(G,o),F(K)&&t(K),r&&t(G),F(q)&&t(q),Pr(i),c()}]),i&&!T&&(kn(G,$r,Yr),$(U,vn(Cn,G,$r))),Pr(!T&&g&&r===J&&n.top===n?G:r),c(),Z=0,rn},rn]},Xt=function(n){var r=n.mr;return function(n){var t,e=n.$r,i=n.oa,o=n.Dr,u=(e||{}).Cr,c=i.wr;r&&(u||o)&&Zn(r,((t={})[tn]=c&&"100%",t))}},qt=function(n,t){var e=n.gr,i=n.na,o=n.er,u=n.ar,c=r({v:ln,i:tr()},vn(tr,e,"padding","")),a=c[0],f=c[1];return function(n){var r=n.Tr,e=n.$r,c=n.oa,l=n.Dr,s=f(l),v=s[0],d=s[1],p=bt().I,y=e||{},h=y.pr,x=y.Er,g=y.Or,b=c.ir,m=r("paddingAbsolute"),w=m[0],O=m[1];if(h||d||l||x){var S=a(l);v=S[0],d=S[1]}var P=!u&&(O||g||d);if(P){var C,D,M=!w||!i&&!p,k=v.r+v.l,T=v.t+v.b,E=((C={})[U]=M&&!b?-k:0,C[Q]=M?-T:0,C[K]=M&&b?-k:0,C.top=M?-v.t:0,C.right=M?b?-v.r:"auto":0,C.left=M?b?"auto":-v.l:0,C[rn]=M&&"calc(100% + "+k+"px)",C),A=((D={})[J]=M?v.t:0,D[X]=M?v.r:0,D[G]=M?v.b:0,D[q]=M?v.l:0,D);Zn(i||o,E),Zn(o,A),xn(t,{na:v,ua:!M,vr:i?A:xn({},E,A)})}return{ca:P}}},Gt=function(n,t){var o=bt(),u=n.gr,c=n.na,a=n.er,f=n.ar,s=n.Gr,v=n.hr,d=n.Lr,p=n.yr,y=n.va,h=o.I,x=d&&f,g=vn(i,0),b=["display","direction","flexDirection","writingMode"],m={v:an,i:{w:0,h:0}},w={v:fn,i:{}},O=function(n,r){var t=e.devicePixelRatio%1!=0?1:0,i={w:g(n.w-r.w),h:g(n.h-r.h)};return{w:i.w>t?i.w:0,h:i.h>t?i.h:0}},S=function(){var n=mr(v),r=p(Xr,!0),t=yr(s,un,(function(r){var t=mr(v);r.isTrusted&&t.x===n.x&&t.y===n.y&&hr(r)}),{H:!0,T:!0});br(v,{x:0,y:0}),r();var e=mr(v),i=fr(v);br(v,{x:i.w,y:i.h});var o=mr(v);br(v,{x:o.x-e.x<1&&-i.w,y:o.y-e.y<1&&-i.h});var u=mr(v);return br(v,n),l((function(){return t()})),{P:e,D:u}},P=function(){return xn({},function(n){return!!n&&function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}(n)}(a)?nr(a,b):{})},C=r(m,vn(lr,a)),D=C[0],M=C[1],k=r(m,vn(fr,a)),T=k[0],E=k[1],A=r(m),H=A[0],I=A[1],L=r(w)[0],j=r(m),R=j[0],V=j[1],z=r(w)[0],$=r({v:function(n,r){return cn(n,r,b)},i:{}}),N=$[0],F=r({v:function(n,r){return fn(n.P,r.P)&&fn(n.D,r.D)},i:{P:{x:0,y:0},D:{x:0,y:0}}}),B=F[0],W=F[1],Y=Et(_t),J=function(n,r){return""+(r?Nr:Fr)+function(n){var r=String(n||"");return r?r[0].toUpperCase()+r.slice(1):""}(n)},X=function(n){var r=n.$;_(hn(r),(function(n){var t="x"===n,e=[en,on,un].map((function(n){return J(n,t)}));p(e.join(" ")),p(J(r[n],t),!0)}))};return function(r,e){var f=r.Tr,l=r.$r,s=r.oa,v=r.Dr,d=e.ca,b=l||{},m=b.pr,w=b.Er,C=b.Or,k=b.dr,A=b.Hr,j=Y&&Y.rr(n,t,s,o,f)||{},_=j.cr,$=j.lr,F=j.sr,J=Lt(f,o),q=J[0],G=J[1],K=f("overflow"),U=K[0],Q=K[1],Z=jt(U.x),nn=jt(U.y),rn=m||d||w||C||A||G,tn=M(v),en=E(v),on=I(v),un=V(v);if(G&&h&&p(Yr,!q),rn){var cn=($?$():[])[0],an=(tn=D(v))[0],fn=(en=T(v))[0],ln=ar(a),sn=fn,vn=ln;cn&&cn();var dn=ur(y()),pn={w:g(i(fn.w,sn.w)+an.w),h:g(i(fn.h,sn.h)+an.h)},yn={w:g((x?dn.w:vn.w+g(ln.w-fn.w))+an.w),h:g((x?dn.h:vn.h+g(ln.h-fn.h))+an.h)};un=R(yn),on=H(O(pn,yn),v)}var hn=un,gn=hn[0],bn=hn[1],mn=on,wn=mn[0],On=mn[1],Sn=en,Pn=Sn[0],Cn=Sn[1],Dn=tn,Mn=Dn[0],kn=Dn[1],En=L({x:wn.w>0,y:wn.h>0}),An=En[0],Hn=En[1],In=Z&&nn&&(An.x||An.y)||Z&&An.x&&!An.y||nn&&An.y&&!An.x,Ln=d||C||A||kn||Cn||bn||On||Q||G||rn,jn=Rt(An,U),Rn=z(jn.$),_n=Rn[0],Vn=Rn[1],zn=N(P(),v)[1],$n=C||k||zn||Hn||v,Nn=$n?B(S(),v):W(),Fn=Nn[0],Bn=Nn[1];return Ln&&(X(jn),F&&_&&Zn(a,F(jn,s,_(jn,Pn,Mn)))),Tn(u,Vr,Rr,In),Tn(c,qr,Rr,In),xn(t,{$:_n,Rr:{x:gn.w,y:gn.h},Mr:{x:wn.w,y:wn.h},ta:An,jr:wr(Fn,wn)}),{aa:Vn,Qr:bn,ra:On,ea:Bn||On,la:$n}}},Kt=function n(r,t,e){var i=bt().F,o=I(r),u=o?r:r.target,c=Ct(u);if(t&&!c){var a=!1,f=[],l={},s=function(n){var r=gn(n,!0),t=Et(At);return t?t(r,!0):r},v=xn({},i(),s(t)),d=Dr(),p=d[0],y=d[1],h=d[2],x=Dr(e),g=x[0],b=x[1],m=x[2],w=function(n,r){m(n,r),h(n,r)},O=function(n,r,t,e){var i=Ar(r,{}),o=function(n){var r,t=Jt(n),e=t[0],i=t[1],o=t[2],u={na:{t:0,r:0,b:0,l:0},ua:!1,vr:(r={},r[U]=0,r[Q]=0,r[K]=0,r[J]=0,r[X]=0,r[G]=0,r[q]=0,r),Rr:{x:0,y:0},Mr:{x:0,y:0},$:{x:on,y:on},ta:{x:!1,y:!1},jr:{P:{x:0,y:0},D:{x:0,y:0}}},c=e._r,a=e.hr,f=e.ar,l=e.yr,s=bt(),v=s.I,d=s.k,p=!v&&(d.x||d.y),y=[Xt(e),qt(e,u),Gt(e,u)];return[i,function(n){var r={},t=p,e=l(Wr,!0),i=t&&mr(a);return _(y,(function(t){xn(r,t(n,r)||{})})),br(a,i),!f&&br(c,0),e(),r},u,e,o]}(n),u=o[0],c=o[1],a=o[2],f=o[3],l=o[4],s=Bt(f,a,i,(function(n){m({},n)})),v=s[0],d=s[1],p=s[2],y=function(n,r,t,e,i,o){var u,c,a,f,l,s=sn,v=0,d=function(n){return"mouse"===n.pointerType},p=dn(),y=p[0],h=p[1],x=dn(100),g=x[0],b=x[1],m=dn(100),w=m[0],O=m[1],S=dn((function(){return v})),P=S[0],C=S[1],D=Wt(n,i,e,Yt(r,i,e,(function(n){return d(n)&&_()}))),M=D[0],k=D[1],T=i.gr,E=i.Gr,A=i.Lr,H=M.qr,I=M.Fr,L=M.Nr,j=M.Ur,R=function(n,r){if(C(),n)H(yt);else{var t=vn(H,yt,!0);v>0&&!r?P(t):t()}},_=function(){(a?u:f)||(R(!0),g((function(){R(!1)})))},V=function(n){H(pt,n,!0),H(pt,n,!1)},z=function(n){d(n)&&(u=a,a&&R(!0))},N=[C,b,O,h,function(){return s()},yr(T,"pointerover",z,{T:!0}),yr(T,"pointerenter",z),yr(T,"pointerleave",(function(n){d(n)&&(u=!1,a&&R(!1))})),yr(T,"pointermove",(function(n){d(n)&&c&&_()})),yr(E,"scroll",(function(n){y((function(){L(),_()})),o(n),j()}))];return[function(){return vn(Y,$(N,k()))},function(n){var r=n.Tr,i=n.Dr,o=n.$r,u=n.Jr||{},d=u.Qr,p=u.ra,y=u.aa,h=u.ea,x=o||{},g=x.Or,b=x.dr,m=t.ir,O=bt().k,S=e.$,P=e.ta,C=r("showNativeOverlaidScrollbars"),D=C[0],M=C[1],k=r("scrollbars.theme"),T=k[0],_=k[1],z=r("scrollbars.visibility"),$=z[0],N=z[1],F=r("scrollbars.autoHide"),B=F[0],W=F[1],Y=r("scrollbars.autoHideSuspend"),J=Y[0],X=Y[1],q=r("scrollbars.autoHideDelay")[0],G=r("scrollbars.dragScroll"),K=G[0],U=G[1],Q=r("scrollbars.clickScroll"),Z=Q[0],nn=Q[1],rn=r("overflow"),tn=rn[0],on=rn[1],cn=b&&!i,an=P.x||P.y,fn=d||p||h||g||i,ln=y||N||on,sn=D&&O.x&&O.y,dn=function(n,r,t){var e=n.includes(un)&&($===en||"auto"===$&&r===un);return H(lt,e,t),e};if(v=q,cn&&(J&&an?(V(!1),s(),w((function(){s=yr(E,"scroll",vn(V,!0),{T:!0})}))):V(!0)),M&&H(et,sn),_&&(H(l),H(T,!0),l=T),X&&!J&&V(!0),W&&(c="move"===B,a="leave"===B,R(f="never"===B,!0)),U&&H(gt,K),nn&&H(xt,Z),ln){var pn=dn(tn.x,S.x,!0),yn=dn(tn.y,S.y,!1);H(st,!(pn&&yn))}fn&&(I(),L(),j(),H(dt,!P.x,!0),H(dt,!P.y,!1),H(ot,m&&!A))},{},M]}(n,r,p,a,f,(function(n){return w("scroll",[T,n])})),h=y[0],x=y[1],g=y[3],b=function(n){return hn(n).some((function(r){return!!n[r]}))},m=function(n,t){var e=n.fa,i=n.Dr,o=n.Pr,u=n.sa,a=e||{},f=!!i,l={Tr:Ar(r,a,f),fa:a,Dr:f};if(u)return x(l),!1;var s=t||d(xn({},l,{Pr:o})),v=c(xn({},l,{oa:p,$r:s}));x(xn({},l,{$r:s,Jr:v}));var y=b(s),h=b(v),g=y||h||!bn(a)||f;return g&&function(n,r){var t=n.fa,e=n.Dr,i=r.$r,o=r.Jr,u=i.pr,c=i.Or,a=i.Cr,f=i.Er,l=i.Ar,s=i.dr,v=o.Qr,d=o.ra,p=o.aa,y=o.ea;w("updated",[T,{updateHints:{sizeChanged:!!u,directionChanged:!!c,heightIntrinsicChanged:!!a,overflowEdgeChanged:!!v,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!y,contentMutation:!!f,hostMutation:!!l,appear:!!s},changedOptions:t||{},force:!!e}])}(n,{$r:s,Jr:v}),g};return[function(){var n=f.ia,r=f.hr,t=(0,f.yr)(Wr,!0),e=mr(n),i=[v(),u(),h()];return br(r,e),t(),vn(Y,i)},m,function(){return{da:p,pa:a}},{_a:f,ga:g},l]}(r,v),S=O[0],P=O[1],C=O[2],D=O[3],M=O[4],k=function(n){!function(n){Pt.delete(n)}(u),Y(f),a=!0,w("destroyed",[T,n]),y(),b()},T={options:function(n,r){if(n){var t=r?i():{},e=Er(v,xn(t,s(n)));bn(e)||(xn(v,e),P({fa:e}))}return xn({},v)},on:g,off:function(n,r){n&&r&&b(n,r)},state:function(){var n=C(),r=n.da,t=n.pa,e=r.ir,i=t.Rr,o=t.Mr,u=t.$,c=t.ta,f=t.na,l=t.ua,s=t.jr;return xn({},{overflowEdge:i,overflowAmount:o,overflowStyle:u,hasOverflow:c,scrollCoordinates:{start:s.P,end:s.D},padding:f,paddingAbsolute:l,directionRTL:e,destroyed:a})},elements:function(){var n=D._a,r=n._r,t=n.gr,e=n.na,i=n.er,o=n.mr,u=n.hr,c=n.Gr,a=D.ga,f=a.Br,l=a.Zr,s=function(n){var r=n.Ir,t=n.kr;return{scrollbar:n.Vr,track:t,handle:r}},v=function(n){var r=n.Yr,t=n.Wr,e=s(r[0]);return xn({},e,{clone:function(){var n=s(t());return P({sa:!0}),n}})};return xn({},{target:r,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:v(f),scrollbarVertical:v(l)})},update:function(n){return P({Dr:n,Pr:!0})},destroy:vn(k,!1),plugin:function(n){return l[hn(n)[0]]}};return $(f,[M]),function(n,r){Pt.set(n,r)}(u,T),Tt(Mt,n,[T,p,l]),St(D._a.Lr,!o&&r.cancel)?(k(!0),T):($(f,S()),w("initialized",[T]),T.update(!0),T)}return c};return Kt.plugin=function(n){var r=T(n),t=r?n:[n],e=t.map((function(n){return Tt(n,Kt)[0]}));return function(n){_(n,(function(n){return _(n,(function(r,t){Mt[t]=n[t]}))}))}(t),r?e:e[0]},Kt.valid=function(n){var r=n&&n.elements,t=k(r)&&r();return H(t)&&!!Ct(t.target)},Kt.env=function(){var n=bt(),r=n.L,t=n.k,e=n.I,i=n.M,o=n.U,u=n.q,c=n.V,a=n.j,f=n.F,l=n.N;return xn({},{scrollbarsSize:r,scrollbarsOverlaid:t,scrollbarsHiding:e,scrollTimeline:i,staticDefaultInitialization:o,staticDefaultOptions:u,getDefaultInitialization:c,setDefaultInitialization:a,getDefaultOptions:f,setDefaultOptions:l})},n.ClickScrollPlugin=$t,n.OverlayScrollbars=Kt,n.ScrollbarsHidingPlugin=Vt,n.SizeObserverPlugin=It,n}({}); |
/*! | ||
* OverlayScrollbars | ||
* Version: 2.8.0 | ||
* Version: 2.8.1 | ||
* | ||
@@ -10,2 +10,2 @@ * Copyright (c) Rene Haas | KingSora. | ||
*/ | ||
var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,i:r,u:o}=t;let s,i=n;const c=(t,e)=>{const n=i,c=t,l=e||(r?!r(n,c):n!==c);return(l||o)&&(i=c,s=n),[i,l,s]};return[e?t=>c(e(i,s),t):c,t=>[i,!!t,s]]},n="undefined"!=typeof window&&"undefined"!=typeof document,r=n?window:{},o=Math.max,s=Math.min,i=Math.round,c=Math.abs,l=Math.sign,a=r.cancelAnimationFrame,u=r.requestAnimationFrame,d=r.setTimeout,p=r.clearTimeout,y=t=>void 0!==r[t]?r[t]:void 0,f=y("MutationObserver"),h=y("IntersectionObserver"),v=y("ResizeObserver"),b=y("ScrollTimeline"),x=n&&Node.ELEMENT_NODE,{toString:g,hasOwnProperty:m}=Object.prototype,w=/^\[object (.+)\]$/,$=t=>void 0===t,S=t=>null===t,O=t=>"number"==typeof t,M=t=>"string"==typeof t,C=t=>"boolean"==typeof t,T=t=>"function"==typeof t,k=t=>Array.isArray(t),A=t=>"object"==typeof t&&!k(t)&&!S(t),E=t=>{const e=!!t&&t.length,n=O(e)&&e>-1&&e%1==0;return!(!(k(t)||!T(t)&&n)||e>0&&A(t)&&!(e-1 in t))},H=t=>{if(!t||!A(t)||"object"!==(t=>$(t)||S(t)?`${t}`:g.call(t).replace(w,"$1").toLowerCase())(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,s=m.call(t,n),i=o&&m.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(e in t);return $(e)||m.call(t,e)},P=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===x)},L=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===x)},D=()=>performance.now(),R=(t,e,n,r,s)=>{let i=0;const c=D(),l=o(0,n),d=n=>{const a=D(),p=a-c>=l,y=n?1:1-(o(0,c+l-a)/l||0),f=(e-t)*(T(s)?s(y,y*l,0,1,l):y)+t,h=p||1===y;r&&r(f,y,h),i=h?0:u((()=>d()))};return d(),t=>{a(i),t&&d(t)}};function _(t,e){if(E(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&_(Object.keys(t),(n=>e(t[n],n,t)));return t}const z=(t,e)=>t.indexOf(e)>=0,I=(t,e)=>t.concat(e),J=(t,e,n)=>(n||M(e)||!E(e)?t.push(e):Array.prototype.push.apply(t,e),t),N=t=>Array.from(t||[]),V=t=>k(t)?t:[t],j=t=>!!t&&!t.length,F=t=>N(new Set(t)),B=(t,e,n)=>{_(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},K="paddingTop",X="paddingRight",Y="paddingLeft",q="paddingBottom",W="marginLeft",G="marginRight",U="marginBottom",Z="overflowX",Q="overflowY",tt="width",et="height",nt="visible",rt="hidden",ot="scroll",st=(t,e,n,r)=>{if(t&&e){let o=!0;return _(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},it=(t,e)=>st(t,e,["w","h"]),ct=(t,e)=>st(t,e,["x","y"]),lt=(t,e)=>st(t,e,["t","r","b","l"]),at=()=>{},ut=(t,...e)=>t.bind(0,...e),dt=t=>{let e;const n=t?d:u,r=t?p:a;return[o=>{r(e),e=n(o,T(t)?t():t)},()=>r(e)]},pt=(t,e)=>{let n,r,o,s=at;const{_:i,p:c,v:l}=e||{},y=function(e){s(),p(n),n=r=void 0,s=at,t.apply(this,e)},f=t=>l&&r?l(r,t):t,h=()=>{s!==at&&y(f(o)||o)},v=function(){const t=N(arguments),e=T(i)?i():i;if(O(e)&&e>=0){const i=T(c)?c():c,l=O(i)&&i>=0,v=e>0?d:u,b=e>0?p:a,x=f(t)||t,g=y.bind(0,x);s();const m=v(g,e);s=()=>b(m),l&&!n&&(n=d(h,i)),r=o=x}else y(t)};return v.S=h,v},yt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ft=t=>t?Object.keys(t):[],ht=(t,e,n,r,o,s,i)=>{const c=[e,n,r,o,s,i];return"object"==typeof t&&!S(t)||T(t)||(t={}),_(c,(e=>{_(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=k(o);if(o&&H(o)){const e=t[r];let n=e;s&&!k(e)?n=[]:s||H(e)||(n={}),t[r]=ht(n,o)}else t[r]=s?o.slice():o}))})),t},vt=(t,e)=>_(ht({},t),((t,n,r)=>{void 0===t?delete r[n]:e&&t&&H(t)&&(r[n]=vt(t,e))})),bt=t=>{for(const e in t)return!1;return!0},xt=(t,e,n)=>o(t,s(e,n)),gt=t=>N(new Set((k(t)?t:(t||"").split(" ")).filter((t=>t)))),mt=(t,e)=>t&&t.getAttribute(e),wt=(t,e)=>t&&t.hasAttribute(e),$t=(t,e,n)=>{_(gt(e),(e=>{t&&t.setAttribute(e,String(n||""))}))},St=(t,e)=>{_(gt(e),(e=>t&&t.removeAttribute(e)))},Ot=(t,e)=>{const n=gt(mt(t,e)),r=ut($t,t,e),o=(t,e)=>{const r=new Set(n);return _(gt(t),(t=>{r[e](t)})),N(r).join(" ")};return{m:t=>r(o(t,"delete")),O:t=>r(o(t,"add")),$:t=>{const e=gt(t);return e.reduce(((t,e)=>t&&n.includes(e)),e.length>0)}}},Mt=(t,e,n)=>(Ot(t,e).m(n),ut(Ct,t,e,n)),Ct=(t,e,n)=>(Ot(t,e).O(n),ut(Mt,t,e,n)),Tt=(t,e,n,r)=>(r?Ct:Mt)(t,e,n),kt=t=>Ot(t,"class"),At=(t,e)=>{kt(t).m(e)},Et=(t,e)=>(kt(t).O(e),ut(At,t,e)),Ht=(t,e)=>{const n=[],r=e?L(e)&&e:document;return r?J(n,r.querySelectorAll(t)):n},Pt=(t,e)=>!!L(t)&&t.matches(e),Lt=t=>Pt(t,"body"),Dt=t=>t?N(t.childNodes):[],Rt=t=>t&&t.parentElement,_t=(t,e)=>L(t)&&t.closest(e),zt=t=>(t||document).activeElement,It=t=>{if(E(t))_(N(t),(t=>It(t)));else if(t){const e=Rt(t);e&&e.removeChild(t)}},Jt=(t,e,n)=>{if(n&&t){let r,o=e;return E(n)?(r=document.createDocumentFragment(),_(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),()=>It(n)}return at},Nt=(t,e)=>Jt(t,null,e),Vt=(t,e)=>Jt(Rt(t),t&&t.nextSibling,e),jt=t=>{const e=document.createElement("div");return $t(e,"class",t),e},Ft=t=>{const e=jt();return e.innerHTML=t.trim(),_(Dt(e),(t=>It(t)))},Bt=/^--/,Kt=(t,e)=>t.getPropertyValue(e)||t[e]||"",Xt=t=>{const e=t||0;return isFinite(e)?e:0},Yt=t=>Xt(parseFloat(t||"")),qt=t=>`${(100*Xt(t)).toFixed(3)}%`,Wt=t=>`${Xt(t)}px`;function Gt(t,e){t&&e&&_(e,((e,n)=>{try{const r=t.style,o=O(e)?Wt(e):(e||"")+"";Bt.test(n)?r.setProperty(n,o):r[n]=o}catch(o){}}))}function Ut(t,e,n){const o=M(e);let s=o?"":{};if(t){const i=r.getComputedStyle(t,n)||t.style;s=o?Kt(i,e):N(e).reduce(((t,e)=>(t[e]=Kt(i,e),t)),s)}return s}const Zt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,i=`${r}right${o}`,c=`${r}bottom${o}`,l=`${r}left${o}`,a=Ut(t,[s,i,c,l]);return{t:Yt(a[s]),r:Yt(a[i]),b:Yt(a[c]),l:Yt(a[l])}},Qt=(t,e)=>`translate${A(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,te={w:0,h:0},ee=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:te,ne=t=>ee("inner",t||r),re=ut(ee,"offset"),oe=ut(ee,"client"),se=ut(ee,"scroll"),ie=t=>{const e=parseFloat(Ut(t,tt))||0,n=parseFloat(Ut(t,et))||0;return{w:e-i(e),h:n-i(n)}},ce=t=>t.getBoundingClientRect(),le=t=>!(!t||!t[et]&&!t[tt]),ae=(t,e)=>{const n=le(t);return!le(e)&&n},ue=(t,e,n,r)=>{_(gt(e),(e=>{t&&t.removeEventListener(e,n,r)}))},de=(t,e,n,r)=>{var o;const s=null==(o=r&&r.C)||o,i=r&&r.H||!1,c=r&&r.A||!1,l={passive:s,capture:i};return ut(B,gt(e).map((e=>{const r=c?o=>{ue(t,e,r,i),n&&n(o)}:n;return t&&t.addEventListener(e,r,l),ut(ue,t,e,r,i)})))},pe=t=>t.stopPropagation(),ye=t=>t.preventDefault(),fe=t=>pe(t)||ye(t),he=(t,e)=>{const{x:n,y:r}=O(e)?{x:e,y:e}:e||{};O(n)&&(t.scrollLeft=n),O(r)&&(t.scrollTop=r)},ve=t=>({x:t.scrollLeft,y:t.scrollTop}),be=(t,e)=>{const{I:n,T:r}=t,{w:o,h:s}=e,i=(t,e,n)=>{let r=l(t)*n,o=l(e)*n;if(r===o){const n=c(t),s=c(e);o=n>s?0:o,r=n<s?0:r}return[r+0,o+0]},[a,u]=i(n.x,r.x,o),[d,p]=i(n.y,r.y,s);return{I:{x:a,y:d},T:{x:u,y:p}}},xe=({I:t,T:e})=>{const n=(t,e)=>0===t&&t<=e;return{x:n(t.x,e.x),y:n(t.y,e.y)}},ge=({I:t,T:e},n)=>{const r=(t,e,n)=>xt(0,1,(t-n)/(t-e)||0);return{x:r(t.x,e.x,n.x),y:r(t.y,e.y,n.y)}},me=(t,e)=>{_(V(e),t)},we=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);me((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(M(t)){const r=e.get(t)||new Set;return e.set(t,r),me((t=>{T(t)&&r.add(t)}),o),ut(n,t,o)}C(o)&&o&&n();const s=ft(t),i=[];return _(s,(e=>{const n=t[e];n&&J(i,r(e,n))})),ut(B,i)};return r(t||{}),[r,n,(t,n)=>{_(N(e.get(t)),(t=>{n&&!j(n)?t.apply(0,n):t()}))}]},$e=t=>JSON.stringify(t,((t,e)=>{if(T(e))throw 0;return e})),Se=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&yt(t,e)?t[e]:void 0),t):void 0,Oe={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 _(I(ft(e),ft(t)),(r=>{const o=t[r],s=e[r];if(A(o)&&A(s))ht(n[r]={},Me(o,s)),bt(n[r])&&delete n[r];else if(yt(e,r)&&s!==o){let t=!0;if(k(o)||k(s))try{$e(o)===$e(s)&&(t=!1)}catch(c){}t&&(n[r]=s)}})),n},Ce=(t,e,n)=>r=>[Se(t,r),n||void 0!==Se(e,r)],Te=`data-overlayscrollbars`,ke="os-environment",Ae=`${ke}-scrollbar-hidden`,Ee=`${Te}-initialize`,He="noClipping",Pe=`${Te}-body`,Le=Te,De="host",Re=`${Te}-viewport`,_e=Z,ze=Q,Ie="arrange",Je="measuring",Ne="scrollbarHidden",Ve="scrollbarPressed",je="noContent",Fe=`${Te}-padding`,Be=`${Te}-content`,Ke="os-size-observer",Xe=`${Ke}-appear`,Ye=`${Ke}-listener`,qe=`${Ye}-scroll`,We=`${Ye}-item`,Ge=`${We}-final`,Ue="os-trinsic-observer",Ze="os-theme-none",Qe="os-scrollbar",tn=`${Qe}-rtl`,en=`${Qe}-horizontal`,nn=`${Qe}-vertical`,rn=`${Qe}-track`,on=`${Qe}-handle`,sn=`${Qe}-visible`,cn=`${Qe}-cornerless`,ln=`${Qe}-interaction`,an=`${Qe}-unusable`,un=`${Qe}-auto-hide`,dn=`${un}-hidden`,pn=`${Qe}-wheel`,yn=`${rn}-interactive`,fn=`${on}-interactive`;let hn;const vn=()=>(hn||(hn=(()=>{const t=(t,e,n)=>{Nt(document.body,t),Nt(document.body,t);const r=oe(t),o=re(t),s=ie(e);return n&&It(t),{x:o.h-r.h+s.h,y:o.w-r.w+s.w}},n=Ft(`<div class="${ke}"><div></div><style>${`.${ke}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${ke} div{width:200%;height:200%;margin:10px 0}.${Ae}{scrollbar-width:none!important}.${Ae}::-webkit-scrollbar,.${Ae}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],o=n.firstChild,[s,,i]=we(),[c,l]=e({o:t(n,o),i:ct},ut(t,n,o,!0)),[a]=l(),u=(t=>{let e=!1;const r=Et(t,Ae);try{e="none"===Ut(t,"scrollbar-width")||"none"===Ut(t,"display","::-webkit-scrollbar")}catch(n){}return r(),e})(n),d={x:0===a.x,y:0===a.y},p={elements:{host:null,padding:!u,viewport:t=>u&&Lt(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},y=ht({},Oe),f=ut(ht,{},y),h=ut(ht,{},p),v={D:a,k:d,M:u,R:!!b,V:ut(s,"r"),L:h,P:t=>ht(p,t)&&h(),U:f,N:t=>ht(y,t)&&f(),j:ht({},p),q:ht({},y)};if(St(n,"style"),It(n),de(r,"resize",(()=>{i("r",[])})),T(r.matchMedia)&&!u&&(!d.x||!d.y)){const t=e=>{const n=r.matchMedia(`(resolution: ${r.devicePixelRatio}dppx)`);de(n,"change",(()=>{e(),t(e)}),{A:!0})};t((()=>{const[t,e]=c();ht(v.D,t),i("r",[e])}))}return v})()),hn),bn=(t,e)=>T(e)?e.apply(0,t):e,xn=(t,e,n,r)=>{const o=$(r)?n:r;return bn(t,o)||e.apply(0,t)},gn=(t,e,n,r)=>{const o=$(r)?n:r,s=bn(t,o);return!!s&&(P(s)?s:e.apply(0,t))},mn=new WeakMap,wn=t=>mn.get(t),$n=(t,e,n,r)=>{let o=!1;const{F:s,B:i,X:c,Y:l,W:a,G:u}=r||{},d=pt((()=>o&&n(!0)),{_:33,p:99}),[p,y]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const i=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||Ht)(n,t):[],r]}));_(i,(n=>_(n[0],(s=>{const i=n[1],c=o.get(s)||[];if(t.contains(s)&&i){const t=de(s,i,(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,J(c,t))}else B(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=i||[],v=I(s||[],h),b=(o,s)=>{if(!j(s)){const i=a||at,c=u||at,d=[],p=[];let f=!1,v=!1;if(_(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:y,removedNodes:b}=n,x="attributes"===a,g="childList"===a,m=t===s,w=x&&o,$=w&&mt(s,o||"")||null,S=w&&u!==$,O=z(h,o)&&S;if(e&&(g||!m)){const e=x&&S,a=e&&l&&Pt(s,l),p=(a?!i(s,o,u,$):!x||e)&&!c(n,!!a,t,r);_(y,(t=>J(d,t))),_(b,(t=>J(d,t))),v=v||p}!e&&m&&S&&!i(s,o,u,$)&&(J(p,o),f=f||O)})),y((t=>F(d).reduce(((e,n)=>(J(e,Ht(t,n)),Pt(n,t)?J(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!j(p)||f){const t=[F(p),f];return!o&&n.apply(0,t),t}}},x=new f(ut(b,!1));return[()=>(x.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),x.disconnect(),o=!1)}),()=>{if(o)return d.S(),b(!0,x.takeRecords())}]},Sn={},On={},Mn=(t,e,n)=>ft(t).map((r=>{const{static:o,instance:s}=t[r],[i,c,l]=n||[],a=n?s:o;if(a){const t=n?a(i,c,e):a(e);return(l||On)[r]=t}})),Cn=t=>On[t],Tn="__osOptionsValidationPlugin",kn="__osSizeObserverPlugin",An=(()=>({[kn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=Ft(`<div class="${We}" dir="ltr"><div class="${We}"><div class="${Ge}"></div></div><div class="${We}"><div class="${Ge}" style="width: 200%; height: 200%"></div></div></div>`),i=s[0],c=i.lastChild,l=i.firstChild,d=null==l?void 0:l.firstChild;let p,y=re(i),f=y,h=!1;const v=()=>{he(l,r),he(c,r)},b=t=>{p=0,h&&(y=f,e(!0===t))},x=t=>{f=re(i),h=!t||!it(f,y),t?(pe(t),h&&!p&&(a(p),p=u(b))):b(!1===t),v()},g=[Nt(t,s),de(l,o,x),de(c,o,x)];return Et(t,qe),Gt(d,{[tt]:r,[et]:r}),u(v),[n?ut(x,!1):v,g]}}}))(),En=(t,e)=>{const{k:n}=e,[r,o]=t("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,o]},Hn=t=>0===t.indexOf(nt),Pn=(t,e)=>{const n=(t,e,n,r)=>{const o=t===nt?rt:t.replace(`${nt}-`,""),s=Hn(t),i=Hn(n);return e||r?s&&i?nt:s?e&&r?o:e?nt:rt:e?o:i&&r?nt:rt:rt},r={x:n(e.x,t.x,e.y,t.y),y:n(e.y,t.y,e.x,t.x)};return{J:r,K:{x:r.x===ot,y:r.y===ot}}},Ln="__osScrollbarsHidingPlugin",Dn=(()=>({[Ln]:{static:()=>({Z:(t,e,n,r,o)=>{const{tt:s,nt:i}=t,{M:c,k:l,D:a}=r,u=!s&&!c&&(l.x||l.y),[d]=En(o,r),p=t=>{const{K:e}=t,n=c||d?0:42,r=(t,e,r)=>[e&&!c?t?n:r:0,t&&!!n],[o,s]=r(l.x,e.x,a.x),[i,u]=r(l.y,e.y,a.y);return{ot:{x:o,y:i},st:{x:s,y:u}}},y=(t,{et:n},r)=>{if(!s){const o=ht({},{[G]:0,[U]:0,[W]:0}),{ot:s,st:i}=p(t),{x:c,y:l}=i,{x:a,y:u}=s,{ct:d}=e,y=n?W:G,f=n?Y:X,h=d[y],v=d[U],b=d[f],x=d[q];return o[tt]=`calc(100% + ${u+-1*h}px)`,o[y]=-u+h,o[U]=-a+v,r&&(o[f]=b+(l?u:0),o[q]=x+(c?a:0)),o}};return{rt:p,lt:(t,r,o)=>{if(u){const{ct:s}=e,{ot:c,st:l}=p(t),{x:a,y:u}=l,{x:d,y}=c,{et:f}=n,h=s[f?X:Y],v=s.paddingTop,b=r.w+o.w,x=r.h+o.h,g={w:y&&u?`${y+b-h}px`:"",h:d&&a?`${d+x-v}px`:""};Gt(i,{"--os-vaw":g.w,"--os-vah":g.h})}return u},it:t=>{if(u){const r=t||(()=>{const t=t=>{const e=Ut(i,t);return[e,e===ot]},[e,n]=t(Z),[r,o]=t(Q);return{J:{x:e,y:r},K:{x:n,y:o}}})(),{ct:o}=e,{st:s}=p(r),{x:c,y:l}=s,a={},d=t=>_(t,(t=>{a[t]=o[t]}));c&&d([U,K,q]),l&&d([W,G,Y,X]);const f=Ut(i,ft(a)),h=Mt(i,Re,Ie);return Gt(i,a),[()=>{Gt(i,ht({},f,y(r,n,u))),h()},r]}return[at]},ut:y}}})}}))(),Rn="__osClickScrollPlugin",_n=(()=>({[Rn]:{static:()=>(t,e,n,r,o)=>{let s=0,i=at;const c=l=>{i=R(l,l+r*Math.sign(n),133,((n,l,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=d((()=>{c(n)}),222);i=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>i()}}}))(),zn=(t,n,r)=>{const{dt:o}=r||{},s=Cn(kn),[i]=e({o:!1,u:!0});return()=>{const e=[],r=Ft(`<div class="${Ke}"><div class="${Ye}"></div></div>`)[0],c=r.firstChild,l=t=>{let e=!1,r=!1;if(t instanceof ResizeObserverEntry){const[n,,o]=i(t.contentRect),s=le(n);r=ae(n,o),e=!r&&!s}else r=!0===t;e||n({_t:!0,dt:r})};if(v){const t=new v((t=>l(t.pop())));t.observe(c),J(e,(()=>{t.disconnect()}))}else{if(!s)return at;{const[t,n]=s(c,l,o);J(e,I([Et(r,Xe),de(r,"animationstart",t)],n))}}return ut(B,J(e,Nt(t,r)))}},In=(t,n)=>{let r;const o=jt(Ue),[s]=e({o:!1}),i=(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)=>i(e.pop(),t);return[()=>{const e=[];if(h)r=new h(ut(c,!1),{root:t}),r.observe(o),J(e,(()=>{r.disconnect()}));else{const t=()=>{const t=re(o);i(t)};J(e,zn(o,t)()),t()}return ut(B,J(e,Nt(t,o)))},()=>r&&c(!0,r.takeRecords())]},Jn=(t,n,r,o)=>{let s,i,c,l,a,u;const{M:d}=vn(),p=`[${Le}]`,y=`[${Re}]`,f=["tabindex"],h=["wrap","cols","rows"],b=["id","class","style","open"],{ft:x,vt:g,nt:m,ht:w,gt:$,bt:S,tt:C,wt:A,yt:E}=t,H=t=>"rtl"===Ut(t,"direction"),P={St:!1,et:H(x)},D=vn(),R=Cn(Ln),[J]=e({i:it,o:{w:0,h:0}},(()=>{const e=R&&R.Z(t,n,P,D,r).it,o=!C&&A(Ie),s=o&&ve(w),i=E(Je,!0),c=o&&e&&e()[0],l=se($),a=se(m),u=ie(m);return c&&c(),he(w,s),i(),{w:a.w+l.w+u.w,h:a.h+l.h+u.h}})),N=S?h:I(b,h),V=pt(o,{_:()=>s,p:()=>i,v(t,e){const[n]=t,[r]=e;return[I(ft(n),ft(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),j=t=>{const e=H(x);ht(t,{Ot:u!==e}),ht(P,{et:e}),u=e},F=t=>{_(t||f,(t=>{if(z(f,t)){const e=mt(g,t);M(e)?$t(m,t,e):St(m,t)}}))},B=(t,e)=>{const[n,r]=t,s={$t:r};return ht(P,{St:n}),!e&&o(s),s},K=({_t:t,dt:e})=>{const n=t&&!e||!d?o:V,r={_t:t||e,dt:e};j(r),n(r)},X=(t,e)=>{const[,n]=J(),r={Ct:n};return j(r),n&&!e&&(t?o:V)(r),r},Y=(t,e,n)=>{const r={xt:e};return j(r),e&&!n?V(r):C||F(t),r},{V:q}=D,[W,G]=$?In(g,B):[],U=!C&&zn(g,K,{dt:!0}),[Z,Q]=$n(g,!1,Y,{B:b,F:I(b,f)}),tt=C&&v&&new v((t=>{const e=t[t.length-1].contentRect;K({_t:!0,dt:ae(e,a)}),a=e}));return[()=>{F(),tt&&tt.observe(g);const t=U&&U(),e=W&&W(),n=Z(),r=q((t=>{const[,e]=J();V({Ht:t,Ct:e})}));return()=>{tt&&tt.disconnect(),t&&t(),e&&e(),l&&l(),n(),r()}},({Et:t,zt:e,At:n})=>{const r={},[o]=t("update.ignoreMutation"),[a,u]=t("update.attributes"),[d,f]=t("update.elementEvents"),[h,v]=t("update.debounce"),b=e||n;if(f||u){c&&c(),l&&l();const[t,e]=$n($||m,!0,X,{F:I(N,a||[]),X:d,Y:p,G:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||C)&&((t,e,n)=>{const r=_t(t,e),o=t&&((t,e)=>{const n=e?L(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=_t(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&_t(_t(t,n),e)!==r)})(n,p,y)||!!_t(n,`.${Qe}`)||!!(t=>T(o)&&o(t))(t)}});l=t(),c=e}if(v)if(V.S(),k(h)){const t=h[0],e=h[1];s=O(t)&&t,i=O(e)&&e}else O(h)?(s=h,i=!1):(s=!1,i=!1);if(b){const t=Q(),e=G&&G(),n=c&&c();t&&ht(r,Y(t[0],t[1],b)),e&&ht(r,B(e[0],b)),n&&ht(r,X(n[0],b))}return j(r),r},P]},Nn=(t,e,n,r)=>{const{L:o}=vn(),{scrollbars:s}=o(),{slot:i}=s,{ft:c,vt:l,nt:a,It:u,ht:d,Tt:p,tt:y}=e,{scrollbars:f}=u?{}:t,{slot:h}=f||{},v=new Map,x=t=>b&&new b({source:d,axis:t}),g={x:x("x"),y:x("y")},m=gn([c,l,a],(()=>y&&p?c:l),i,h),w=(t,e)=>{if(e){const n=t?tt:et,{Dt:r,kt:o}=e,s=ce(o)[n],i=ce(r)[n];return xt(0,1,s/i||0)}const r=t?"x":"y",{Mt:o,Rt:s}=n,i=s[r],c=o[r];return xt(0,1,i/(i+c)||0)},$=t=>ht(t,{clear:["left"]}),S=t=>{v.forEach(((e,n)=>{(!t||z(V(t),n))&&(_(e||[],(t=>{t&&t.cancel()})),v.delete(n))}))},O=(t,e,n,r)=>{const o=v.get(t)||[],s=o.find((t=>t&&t.timeline===e));s?s.effect=new KeyframeEffect(t,n,{composite:r}):v.set(t,I(o,[t.animate(n,{timeline:e,composite:r})]))},M=(t,e,n)=>{const r=n?Et:At;_(t,(t=>{r(t.Vt,e)}))},T=(t,e)=>{_(t,(t=>{const[n,r]=e(t);Gt(n,r)}))},k=(t,e)=>{T(t,(t=>{const{kt:n}=t;return[n,{[e?tt:et]:qt(w(e))}]}))},A=(t,e)=>{const{Lt:r}=n,o=e?"x":"y",s=g[o],i=xe(r)[o],c=(t,n)=>Qt(qt(((t,e,n)=>{const r=w(n,t);return 1/r*(1-r)*e})(t,i?n:1-n,e)),e);s?_(t,(t=>{const{kt:e}=t;O(e,s,$({transform:[0,1].map((e=>c(t,e)))}))})):T(t,(t=>[t.kt,{transform:c(t,ge(r,ve(d))[o])}]))},E=t=>y&&!p&&Rt(t)===a,H=[],P=[],L=[],D=(t,e,n)=>{const r=C(n),o=!r||!n;(!r||n)&&M(P,t,e),o&&M(L,t,e)},R=t=>{const e=jt(`${Qe} ${t?en:nn}`),n=jt(rn),o=jt(on),s={Vt:e,Dt:n,kt:o};return J(t?P:L,s),J(H,[Nt(e,n),Nt(n,o),ut(It,e),S,r(s,D,A,t)]),s},N=ut(R,!0),j=ut(R,!1);return N(),j(),[{Pt:()=>{k(P,!0),k(L)},Ut:()=>{A(P,!0),A(L)},Nt:()=>{if(y){const{Mt:t,Lt:e}=n,r=xe(e),o=.5;if(g.x&&g.y)_(I(L,P),(({Vt:e})=>{if(E(e)){const n=n=>O(e,g[n],$({transform:[0,r[n]?1:-1].map((e=>Qt(Wt(e*(t[n]-o)),"x"===n)))}),"add");n("x"),n("y")}else S(e)}));else{const n=ge(e,ve(d)),o=e=>{const{Vt:o}=e,s=E(o)&&o,i=(t,e,n)=>{const r=e*t;return Wt(n?r:-r)};return[s,s&&{transform:Qt({x:i(n.x,t.x,r.x),y:i(n.y,t.y,r.y)})}]};T(P,o),T(L,o)}}},jt:D,qt:{R:g.x,Ft:P,Bt:N,Xt:ut(T,P)},Yt:{R:g.y,Ft:L,Bt:j,Xt:ut(T,L)}},()=>(Nt(m,P[0].Vt),Nt(m,L[0].Vt),ut(B,H))]},Vn=(t,e,n,r)=>(o,s,l,a)=>{const{vt:u,nt:p,tt:y,ht:f,Wt:h,yt:v}=e,{Vt:b,Dt:x,kt:g}=o,[m,w]=dt(333),[$,S]=dt(444),[O,M]=dt(),C=ut(l,[o],a),k=t=>{T(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:t.x,top:t.y})},A=a?tt:et;let E=!0;const H=t=>t.propertyName.indexOf(A)>-1;return ut(B,[de(g,"pointermove pointerleave",r),de(b,"pointerenter",(()=>{s(ln,!0)})),de(b,"pointerleave pointercancel",(()=>{s(ln,!1)})),!y&&de(b,"mousedown",(()=>{const t=zt();(wt(t,Re)||wt(t,Le)||t===document.body)&&d((()=>{p.focus({preventScroll:!0})}),25)})),de(b,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;E&&0===r&&Rt(b)===u&&k({x:e,y:n}),E=!1,s(pn,!0),m((()=>{E=!0,s(pn)})),ye(t)}),{C:!1,H:!0}),de(g,"transitionstart",(t=>{if(H(t)){const t=()=>{C(),O(t)};t()}})),de(g,"transitionend transitioncancel",(t=>{H(t)&&(M(),C())})),de(b,"pointerdown",ut(de,h,"click",fe,{A:!0,H:!0,C:!1}),{H:!0}),(()=>{const e="pointerup pointercancel lostpointercapture",r=`client${a?"X":"Y"}`,o=a?"left":"top",s=a?"w":"h",l=a?"x":"y",u=(t,e)=>r=>{const{Mt:o}=n,i=re(x)[s]-re(g)[s],c=e*r/i*o[l];he(f,{[l]:t+c})};return de(x,"pointerdown",(n=>{const a=_t(n.target,`.${on}`)===g,d=a?g:x,p=t.scrollbars,{button:y,isPrimary:b,pointerType:m}=n,{pointers:w}=p;if(0===y&&b&&p[a?"dragScroll":"clickScroll"]&&(w||[]).includes(m)){S();const t=!a&&n.shiftKey,p=ut(ce,g),y=ut(ce,x),b=(t,e)=>(t||p())[o]-(e||y())[o],m=i(ce(f)[A])/re(f)[s]||1,w=u(ve(f)[l],1/m),O=n[r],M=p(),C=y(),T=M[A],E=b(M,C)+T/2,H=O-C[o],P=a?0:H-E,L=t=>{B(_),d.releasePointerCapture(t.pointerId)},D=()=>v(Ve,!0),R=D(),_=[()=>{const t=ve(f);R();const e=ve(f),n={x:e.x-t.x,y:e.y-t.y};(c(n.x)>3||c(n.y)>3)&&(D(),he(f,t),k(n),$(R))},de(h,e,L),de(h,"selectstart",(t=>ye(t)),{C:!1}),de(x,e,L),de(x,"pointermove",(e=>{const n=e[r]-O;(a||t)&&w(P+n)}))];if(d.setPointerCapture(n.pointerId),t)w(P);else if(!a){const t=Cn(Rn);t&&J(_,t(w,b,P,T,H))}}}))})(),w,S,M])},jn=t=>{const e=vn(),{L:n,M:o}=e,{elements:s}=n(),{host:i,padding:c,viewport:l,content:a}=s,u=P(t),d=u?{}:t,{elements:p}=d,{host:y,padding:f,viewport:h,content:v}=p||{},b=u?t:d.target,x=Lt(b),g=Pt(b,"textarea"),m=b.ownerDocument,w=m.documentElement,$=()=>m.defaultView||r,S=t=>{t&&t.focus&&t.focus({preventScroll:!0})},O=ut(xn,[b]),M=ut(gn,[b]),C=ut(jt,""),T=ut(O,C,l),k=ut(M,C,a),A=T(h),E=A===b,H=E&&x,L=!E&&k(v),D=!E&&A===L,R=H?w:A,_=g?O(C,i,y):b,I=H?R:_,N=!E&&M(C,c,f),V=!D&&L,j=[V,R,N,I].map((t=>P(t)&&!Rt(t)&&t)),F=t=>t&&z(j,t),K=F(R)?b:R,X={ft:b,vt:I,nt:R,en:N,gt:V,ht:H?w:R,Gt:H?m:R,cn:x?w:K,Wt:m,bt:g,Tt:x,It:u,tt:E,rn:$,wt:t=>((t,e,n)=>Ot(t,e).$(n))(R,Re,t),yt:(t,e)=>Tt(R,Re,t,e)},{ft:Y,vt:q,en:W,nt:G,gt:U}=X,Z=[()=>{St(q,[Le,Ee]),St(Y,Ee),x&&St(w,[Ee,Le])}],Q=g&&F(q);let tt=g?Y:Dt([U,G,W,q,Y].find((t=>t&&!F(t))));const et=H?Y:U||G,nt=ut(B,Z);return[X,()=>{const t=$(),e=zt(),n=t=>{Nt(Rt(t),Dt(t)),It(t)},r=t=>de(t,"focusin focusout focus blur",pe,{H:!0}),s="tabindex",i=mt(G,s),c=r(e);return $t(q,Le,E?"":De),$t(W,Fe,""),$t(G,Re,""),$t(U,Be,""),E||($t(G,s,i||"-1"),x&&$t(w,Pe,"")),Q&&(Vt(Y,q),J(Z,(()=>{Vt(q,Y),It(q)}))),Nt(et,tt),Nt(q,W),Nt(W||q,!E&&G),Nt(G,U),J(Z,[c,()=>{const t=zt(),e=r(t);St(W,Fe),St(U,Be),St(G,Re),x&&St(w,Pe),i?$t(G,s,i):St(G,s),F(U)&&n(U),F(G)&&n(G),F(W)&&n(W),S(t),e()}]),o&&!E&&(Ct(G,Re,Ne),J(Z,ut(St,G,Re))),S(E||e!==b||t.top!==t?e:G),c(),tt=0,nt},nt]},Fn=({gt:t})=>({Jt:e,ln:n,At:r})=>{const{$t:o}=e||{},{St:s}=n;t&&(o||r)&&Gt(t,{[et]:s&&"100%"})},Bn=({vt:t,en:n,nt:r,tt:o},s)=>{const[i,c]=e({i:lt,o:Zt()},ut(Zt,t,"padding",""));return({Et:t,Jt:e,ln:l,At:a})=>{let[u,d]=c(a);const{M:p}=vn(),{_t:y,Ct:f,Ot:h}=e||{},{et:v}=l,[b,x]=t("paddingAbsolute");(y||d||a||f)&&([u,d]=i(a));const g=!o&&(x||h||d);if(g){const t=!b||!n&&!p,e=u.r+u.l,o=u.t+u.b,i={[G]:t&&!v?-e:0,[U]:t?-o:0,[W]:t&&v?-e:0,top:t?-u.t:0,right:t?v?-u.r:"auto":0,left:t?v?"auto":-u.l:0,[tt]:t&&`calc(100% + ${e}px)`},c={[K]:t?u.t:0,[X]:t?u.r:0,[q]:t?u.b:0,[Y]:t?u.l:0};Gt(n||r,i),Gt(r,c),ht(s,{en:u,an:!t,ct:n?c:ht({},i,c)})}return{un:g}}},Kn=(t,n)=>{const s=vn(),{vt:i,en:c,nt:l,tt:a,ht:u,Tt:d,yt:p,rn:y}=t,{M:f}=s,h=d&&a,v=ut(o,0),b=["display","direction","flexDirection","writingMode"],x={i:it,o:{w:0,h:0}},g={i:ct,o:{}},m=(t,e)=>{const n=r.devicePixelRatio%1!=0?1:0,o={w:v(t.w-e.w),h:v(t.h-e.h)};return{w:o.w>n?o.w:0,h:o.h>n?o.h:0}},w=()=>{const t=ve(u),e=p(je,!0),n=de(u,ot,pe,{H:!0});he(u,{x:0,y:0}),e();const r=ve(u),o=se(u);he(u,{x:o.w,y:o.h});const s=ve(u);he(u,{x:s.x-r.x<1&&-o.w,y:s.y-r.y<1&&-o.h});const i=ve(u);return he(u,t),n(),{I:r,T:i}},$=()=>ht({},(t=>!!t&&(t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t))(l)?Ut(l,b):{}),[S,O]=e(x,ut(ie,l)),[M,C]=e(x,ut(se,l)),[T,k]=e(x),[A]=e(g),[E,H]=e(x),[P]=e(g),[L]=e({i:(t,e)=>st(t,e,b),o:{}}),[D,R]=e({i:(t,e)=>ct(t.I,e.I)&&ct(t.T,e.T),o:{I:{x:0,y:0},T:{x:0,y:0}}}),z=Cn(Ln),I=(t,e)=>`${e?_e:ze}${(t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""})(t)}`,J=t=>{const{J:e}=t;_(ft(e),(t=>{const n="x"===t,r=[nt,rt,ot].map((t=>I(t,n)));p(r.join(" ")),p(I(e[t],n),!0)}))};return({Et:e,Jt:r,ln:a,At:u},{un:d})=>{const{_t:b,Ct:x,Ot:g,dt:_,Ht:I}=r||{},N=z&&z.Z(t,n,a,s,e),{lt:V,it:j,ut:F}=N||{},[B,K]=En(e,s),[X,Y]=e("overflow"),q=Hn(X.x),W=Hn(X.y),G=b||d||x||g||I||K;let U=O(u),Z=C(u),Q=k(u),tt=H(u);if(K&&f&&p(Ne,!B),G){const[t]=j?j():[],[e]=U=S(u),[n]=Z=M(u),r=oe(l),s=n,i=r;t&&t();const c=ne(y()),a={w:v(o(n.w,s.w)+e.w),h:v(o(n.h,s.h)+e.h)},d={w:v((h?c.w:i.w+v(r.w-n.w))+e.w),h:v((h?c.h:i.h+v(r.h-n.h))+e.h)};tt=E(d),Q=T(m(a,d),u)}const[et,nt]=tt,[rt,ot]=Q,[st,it]=Z,[ct,lt]=U,[at,ut]=A({x:rt.w>0,y:rt.h>0}),dt=q&&W&&(at.x||at.y)||q&&at.x&&!at.y||W&&at.y&&!at.x,pt=d||g||I||lt||it||nt||ot||Y||K||G,yt=Pn(at,X),[ft,vt]=P(yt.J),[,bt]=L($(),u),xt=g||_||bt||ut||u,[gt,mt]=xt?D(w(),u):R();return pt&&(J(yt),F&&V&&Gt(l,F(yt,a,V(yt,st,ct)))),Tt(i,Le,He,dt),Tt(c,Fe,He,dt),ht(n,{J:ft,Rt:{x:et.w,y:et.h},Mt:{x:rt.w,y:rt.h},sn:at,Lt:be(gt,rt)}),{tn:vt,Qt:nt,Zt:ot,nn:mt||ot}}},Xn=(t,e,n,r)=>{const o=Ce(e,{}),[s,i,c,l,a]=(t=>{const[e,n,r]=jn(t),o={en:{t:0,r:0,b:0,l:0},an:!1,ct:{[G]:0,[U]:0,[W]:0,[K]:0,[X]:0,[q]:0,[Y]:0},Rt:{x:0,y:0},Mt:{x:0,y:0},J:{x:rt,y:rt},sn:{x:!1,y:!1},Lt:{I:{x:0,y:0},T:{x:0,y:0}}},{ft:s,ht:i,tt:c,yt:l}=e,{M:a,k:u}=vn(),d=!a&&(u.x||u.y),p=[Fn(e),Bn(e,o),Kn(e,o)];return[n,t=>{const e={},n=d,r=l(Je,!0),o=n&&ve(i);return _(p,(n=>{ht(e,n(t,e)||{})})),he(i,o),!c&&he(s,0),r(),e},o,e,r]})(t),[u,d,p]=Jn(l,c,o,(t=>{b({},t)})),[y,f,,h]=((t,e,n,r,o,s)=>{let i,c,l,a,u,d=at,p=0;const y=t=>"mouse"===t.pointerType,[f,h]=dt(),[v,b]=dt(100),[x,g]=dt(100),[m,w]=dt((()=>p)),[$,S]=Nn(t,o,r,Vn(e,o,r,(t=>y(t)&&P()))),{vt:O,Gt:M,Tt:C}=o,{jt:T,Pt:k,Ut:A,Nt:E}=$,H=(t,e)=>{if(w(),t)T(dn);else{const t=ut(T,dn,!0);p>0&&!e?m(t):t()}},P=()=>{(l?i:a)||(H(!0),v((()=>{H(!1)})))},L=t=>{T(un,t,!0),T(un,t,!1)},D=t=>{y(t)&&(i=l,l&&H(!0))},R=[w,b,g,h,()=>d(),de(O,"pointerover",D,{A:!0}),de(O,"pointerenter",D),de(O,"pointerleave",(t=>{y(t)&&(i=!1,l&&H(!1))})),de(O,"pointermove",(t=>{y(t)&&c&&P()})),de(M,"scroll",(t=>{f((()=>{A(),P()})),s(t),E()}))];return[()=>ut(B,J(R,S())),({Et:t,At:e,Jt:o,Kt:s})=>{const{Qt:i,Zt:y,tn:f,nn:h}=s||{},{Ot:v,dt:b}=o||{},{et:g}=n,{k:m}=vn(),{J:w,sn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[P,D]=t("scrollbars.theme"),[R,_]=t("scrollbars.visibility"),[z,I]=t("scrollbars.autoHide"),[J,N]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[j,F]=t("scrollbars.dragScroll"),[B,K]=t("scrollbars.clickScroll"),[X,Y]=t("overflow"),q=b&&!e,W=$.x||$.y,G=i||y||h||v||e,U=f||_||Y,Z=S&&m.x&&m.y,Q=(t,e,n)=>{const r=t.includes(ot)&&(R===nt||"auto"===R&&e===ot);return T(sn,r,n),r};if(p=V,q&&(J&&W?(L(!1),d(),x((()=>{d=de(M,"scroll",ut(L,!0),{A:!0})}))):L(!0)),O&&T(Ze,Z),D&&(T(u),T(P,!0),u=P),N&&!J&&L(!0),I&&(c="move"===z,l="leave"===z,a="never"===z,H(a,!0)),F&&T(fn,j),K&&T(yn,B),U){const t=Q(X.x,w.x,!0),e=Q(X.y,w.y,!1);T(cn,!(t&&e))}G&&(k(),A(),E(),T(an,!$.x,!0),T(an,!$.y,!1),T(tn,g&&!C))},{},$]})(t,e,p,c,l,r),v=t=>ft(t).some((e=>!!t[e])),b=(t,r)=>{const{dn:o,At:s,zt:c,_n:l}=t,a=o||{},u=!!s,y={Et:Ce(e,a,u),dn:a,At:u};if(l)return f(y),!1;const h=r||d(ht({},y,{zt:c})),b=i(ht({},y,{ln:p,Jt:h}));f(ht({},y,{Jt:h,Kt:b}));const x=v(h),g=v(b),m=x||g||!bt(a)||u;return m&&n(t,{Jt:h,Kt:b}),m};return[()=>{const{cn:t,ht:e,yt:n}=l,r=n(Je,!0),o=ve(t),i=[u(),s(),y()];return he(e,o),r(),ut(B,i)},b,()=>({fn:p,pn:c}),{vn:l,hn:h},a]},Yn=(t,e,n)=>{const{U:r}=vn(),o=P(t),s=o?t:t.target,i=wn(s);if(e&&!i){let i=!1;const c=[],l={},a=t=>{const e=vt(t,!0),n=Cn(Tn);return n?n(e,!0):e},u=ht({},r(),a(e)),[d,p,y]=we(),[f,h,v]=we(n),b=(t,e)=>{v(t,e),y(t,e)},[x,g,m,w,O]=Xn(t,u,(({dn:t,At:e},{Jt:n,Kt:r})=>{const{_t:o,Ot:s,$t:i,Ct:c,xt:l,dt:a}=n,{Qt:u,Zt:d,tn:p,nn:y}=r;b("updated",[C,{updateHints:{sizeChanged:!!o,directionChanged:!!s,heightIntrinsicChanged:!!i,overflowEdgeChanged:!!u,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!y,contentMutation:!!c,hostMutation:!!l,appear:!!a},changedOptions:t||{},force:!!e}])}),(t=>b("scroll",[C,t]))),M=t=>{(t=>{mn.delete(t)})(s),B(c),i=!0,b("destroyed",[C,t]),p(),h()},C={options(t,e){if(t){const n=e?r():{},o=Me(u,ht(n,a(t)));bt(o)||(ht(u,o),g({dn:o}))}return ht({},u)},on:f,off:(t,e)=>{t&&e&&h(t,e)},state(){const{fn:t,pn:e}=m(),{et:n}=t,{Rt:r,Mt:o,J:s,sn:c,en:l,an:a,Lt:u}=e;return ht({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:c,scrollCoordinates:{start:u.I,end:u.T},padding:l,paddingAbsolute:a,directionRTL:n,destroyed:i})},elements(){const{ft:t,vt:e,en:n,nt:r,gt:o,ht:s,Gt:i}=w.vn,{qt:c,Yt:l}=w.hn,a=t=>{const{kt:e,Dt:n,Vt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{Ft:e,Bt:n}=t,r=a(e[0]);return ht({},r,{clone:()=>{const t=a(n());return g({_n:!0}),t}})};return ht({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:i,scrollbarHorizontal:u(c),scrollbarVertical:u(l)})},update:t=>g({At:t,zt:!0}),destroy:ut(M,!1),plugin:t=>l[ft(t)[0]]};return J(c,[O]),((t,e)=>{mn.set(t,e)})(s,C),Mn(Sn,Yn,[C,d,l]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{k:o,M:s,L:i}=vn(),{nativeScrollbarsOverlaid:c,body:l}=i().cancel,a=null!=n?n:c,u=$(r)?l:r,d=(o.x||o.y)&&a,p=t&&(S(u)?!s:u);return!!d||!!p})(w.vn.Tt,!o&&t.cancel)?(M(!0),C):(J(c,x()),b("initialized",[C]),C.update(!0),C)}return i};return Yn.plugin=t=>{const e=k(t),n=e?t:[t],r=n.map((t=>Mn(t,Yn)[0]));return(t=>{_(t,(t=>_(t,((e,n)=>{Sn[n]=t[n]}))))})(n),e?r:r[0]},Yn.valid=t=>{const e=t&&t.elements,n=T(e)&&e();return H(n)&&!!wn(n.target)},Yn.env=()=>{const{D:t,k:e,M:n,R:r,j:o,q:s,L:i,P:c,U:l,N:a}=vn();return ht({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:o,staticDefaultOptions:s,getDefaultInitialization:i,setDefaultInitialization:c,getDefaultOptions:l,setDefaultOptions:a})},t.ClickScrollPlugin=_n,t.OverlayScrollbars=Yn,t.ScrollbarsHidingPlugin=Dn,t.SizeObserverPlugin=An,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({}); | ||
var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,i:r,u:o}=t;let s,i=n;const c=(t,e)=>{const n=i,c=t,l=e||(r?!r(n,c):n!==c);return(l||o)&&(i=c,s=n),[i,l,s]};return[e?t=>c(e(i,s),t):c,t=>[i,!!t,s]]},n="undefined"!=typeof window&&"undefined"!=typeof document,r=n?window:{},o=Math.max,s=Math.min,i=Math.round,c=Math.abs,l=Math.sign,a=r.cancelAnimationFrame,u=r.requestAnimationFrame,d=r.setTimeout,p=r.clearTimeout,y=t=>void 0!==r[t]?r[t]:void 0,f=y("MutationObserver"),h=y("IntersectionObserver"),v=y("ResizeObserver"),b=y("ScrollTimeline"),x=n&&Node.ELEMENT_NODE,{toString:g,hasOwnProperty:m}=Object.prototype,w=/^\[object (.+)\]$/,$=t=>void 0===t,S=t=>null===t,O=t=>"number"==typeof t,C=t=>"string"==typeof t,M=t=>"boolean"==typeof t,T=t=>"function"==typeof t,k=t=>Array.isArray(t),A=t=>"object"==typeof t&&!k(t)&&!S(t),E=t=>{const e=!!t&&t.length,n=O(e)&&e>-1&&e%1==0;return!(!(k(t)||!T(t)&&n)||e>0&&A(t)&&!(e-1 in t))},H=t=>{if(!t||!A(t)||"object"!==(t=>$(t)||S(t)?`${t}`:g.call(t).replace(w,"$1").toLowerCase())(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,s=m.call(t,n),i=o&&m.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(e in t);return $(e)||m.call(t,e)},P=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===x)},L=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===x)},_=()=>performance.now(),D=(t,e,n,r,s)=>{let i=0;const c=_(),l=o(0,n),d=n=>{const a=_(),p=a-c>=l,y=n?1:1-(o(0,c+l-a)/l||0),f=(e-t)*(T(s)?s(y,y*l,0,1,l):y)+t,h=p||1===y;r&&r(f,y,h),i=h?0:u((()=>d()))};return d(),t=>{a(i),t&&d(t)}};function R(t,e){if(E(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&R(Object.keys(t),(n=>e(t[n],n,t)));return t}const z=(t,e)=>t.indexOf(e)>=0,I=(t,e)=>t.concat(e),J=(t,e,n)=>(n||C(e)||!E(e)?t.push(e):Array.prototype.push.apply(t,e),t),N=t=>Array.from(t||[]),V=t=>k(t)?t:[t],j=t=>!!t&&!t.length,F=t=>N(new Set(t)),B=(t,e,n)=>{R(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},K="paddingTop",X="paddingRight",Y="paddingLeft",q="paddingBottom",G="marginLeft",W="marginRight",U="marginBottom",Z="overflowX",Q="overflowY",tt="width",et="height",nt="visible",rt="hidden",ot="scroll",st=(t,e,n,r)=>{if(t&&e){let o=!0;return R(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},it=(t,e)=>st(t,e,["w","h"]),ct=(t,e)=>st(t,e,["x","y"]),lt=(t,e)=>st(t,e,["t","r","b","l"]),at=()=>{},ut=(t,...e)=>t.bind(0,...e),dt=t=>{let e;const n=t?d:u,r=t?p:a;return[o=>{r(e),e=n((()=>o()),T(t)?t():t)},()=>r(e)]},pt=(t,e)=>{let n,r,o,s=at;const{_:i,p:c,v:l}=e||{},y=function(e){s(),p(n),n=r=void 0,s=at,t.apply(this,e)},f=t=>l&&r?l(r,t):t,h=()=>{s!==at&&y(f(o)||o)},v=function(){const t=N(arguments),e=T(i)?i():i;if(O(e)&&e>=0){const i=T(c)?c():c,l=O(i)&&i>=0,v=e>0?d:u,b=e>0?p:a,x=f(t)||t,g=y.bind(0,x);s();const m=v(g,e);s=()=>b(m),l&&!n&&(n=d(h,i)),r=o=x}else y(t)};return v.S=h,v},yt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ft=t=>t?Object.keys(t):[],ht=(t,e,n,r,o,s,i)=>{const c=[e,n,r,o,s,i];return"object"==typeof t&&!S(t)||T(t)||(t={}),R(c,(e=>{R(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=k(o);if(o&&H(o)){const e=t[r];let n=e;s&&!k(e)?n=[]:s||H(e)||(n={}),t[r]=ht(n,o)}else t[r]=s?o.slice():o}))})),t},vt=(t,e)=>R(ht({},t),((t,n,r)=>{void 0===t?delete r[n]:e&&t&&H(t)&&(r[n]=vt(t,e))})),bt=t=>{for(const e in t)return!1;return!0},xt=(t,e,n)=>o(t,s(e,n)),gt=t=>N(new Set((k(t)?t:(t||"").split(" ")).filter((t=>t)))),mt=(t,e)=>t&&t.getAttribute(e),wt=(t,e)=>t&&t.hasAttribute(e),$t=(t,e,n)=>{R(gt(e),(e=>{t&&t.setAttribute(e,String(n||""))}))},St=(t,e)=>{R(gt(e),(e=>t&&t.removeAttribute(e)))},Ot=(t,e)=>{const n=gt(mt(t,e)),r=ut($t,t,e),o=(t,e)=>{const r=new Set(n);return R(gt(t),(t=>{r[e](t)})),N(r).join(" ")};return{m:t=>r(o(t,"delete")),O:t=>r(o(t,"add")),$:t=>{const e=gt(t);return e.reduce(((t,e)=>t&&n.includes(e)),e.length>0)}}},Ct=(t,e,n)=>(Ot(t,e).m(n),ut(Mt,t,e,n)),Mt=(t,e,n)=>(Ot(t,e).O(n),ut(Ct,t,e,n)),Tt=(t,e,n,r)=>(r?Mt:Ct)(t,e,n),kt=t=>Ot(t,"class"),At=(t,e)=>{kt(t).m(e)},Et=(t,e)=>(kt(t).O(e),ut(At,t,e)),Ht=(t,e)=>{const n=[],r=e?L(e)&&e:document;return r?J(n,r.querySelectorAll(t)):n},Pt=(t,e)=>!!L(t)&&t.matches(e),Lt=t=>Pt(t,"body"),_t=t=>t?N(t.childNodes):[],Dt=t=>t&&t.parentElement,Rt=(t,e)=>L(t)&&t.closest(e),zt=t=>(t||document).activeElement,It=t=>{if(E(t))R(N(t),(t=>It(t)));else if(t){const e=Dt(t);e&&e.removeChild(t)}},Jt=(t,e,n)=>{if(n&&t){let r,o=e;return E(n)?(r=document.createDocumentFragment(),R(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),()=>It(n)}return at},Nt=(t,e)=>Jt(t,null,e),Vt=(t,e)=>Jt(Dt(t),t&&t.nextSibling,e),jt=t=>{const e=document.createElement("div");return $t(e,"class",t),e},Ft=t=>{const e=jt();return e.innerHTML=t.trim(),R(_t(e),(t=>It(t)))},Bt=/^--/,Kt=(t,e)=>t.getPropertyValue(e)||t[e]||"",Xt=t=>{const e=t||0;return isFinite(e)?e:0},Yt=t=>Xt(parseFloat(t||"")),qt=t=>`${(100*Xt(t)).toFixed(3)}%`,Gt=t=>`${Xt(t)}px`;function Wt(t,e){t&&e&&R(e,((e,n)=>{try{const r=t.style,o=O(e)?Gt(e):(e||"")+"";Bt.test(n)?r.setProperty(n,o):r[n]=o}catch(o){}}))}function Ut(t,e,n){const o=C(e);let s=o?"":{};if(t){const i=r.getComputedStyle(t,n)||t.style;s=o?Kt(i,e):N(e).reduce(((t,e)=>(t[e]=Kt(i,e),t)),s)}return s}const Zt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,i=`${r}right${o}`,c=`${r}bottom${o}`,l=`${r}left${o}`,a=Ut(t,[s,i,c,l]);return{t:Yt(a[s]),r:Yt(a[i]),b:Yt(a[c]),l:Yt(a[l])}},Qt=(t,e)=>`translate${A(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,te={w:0,h:0},ee=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:te,ne=t=>ee("inner",t||r),re=ut(ee,"offset"),oe=ut(ee,"client"),se=ut(ee,"scroll"),ie=t=>{const e=parseFloat(Ut(t,tt))||0,n=parseFloat(Ut(t,et))||0;return{w:e-i(e),h:n-i(n)}},ce=t=>t.getBoundingClientRect(),le=t=>!(!t||!t[et]&&!t[tt]),ae=(t,e)=>{const n=le(t);return!le(e)&&n},ue=(t,e,n,r)=>{R(gt(e),(e=>{t&&t.removeEventListener(e,n,r)}))},de=(t,e,n,r)=>{var o;const s=null==(o=r&&r.C)||o,i=r&&r.H||!1,c=r&&r.A||!1,l={passive:s,capture:i};return ut(B,gt(e).map((e=>{const r=c?o=>{ue(t,e,r,i),n&&n(o)}:n;return t&&t.addEventListener(e,r,l),ut(ue,t,e,r,i)})))},pe=t=>t.stopPropagation(),ye=t=>t.preventDefault(),fe=t=>pe(t)||ye(t),he=(t,e)=>{const{x:n,y:r}=O(e)?{x:e,y:e}:e||{};O(n)&&(t.scrollLeft=n),O(r)&&(t.scrollTop=r)},ve=t=>({x:t.scrollLeft,y:t.scrollTop}),be=(t,e)=>{const{I:n,T:r}=t,{w:o,h:s}=e,i=(t,e,n)=>{let r=l(t)*n,o=l(e)*n;if(r===o){const n=c(t),s=c(e);o=n>s?0:o,r=n<s?0:r}return r=r===o?0:r,[r+0,o+0]},[a,u]=i(n.x,r.x,o),[d,p]=i(n.y,r.y,s);return{I:{x:a,y:d},T:{x:u,y:p}}},xe=({I:t,T:e})=>{const n=(t,e)=>0===t&&t<=e;return{x:n(t.x,e.x),y:n(t.y,e.y)}},ge=({I:t,T:e},n)=>{const r=(t,e,n)=>xt(0,1,(t-n)/(t-e)||0);return{x:r(t.x,e.x,n.x),y:r(t.y,e.y,n.y)}},me=t=>{t&&t.focus&&t.focus({preventScroll:!0})},we=(t,e)=>{R(V(e),t)},$e=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);we((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(C(t)){const r=e.get(t)||new Set;return e.set(t,r),we((t=>{T(t)&&r.add(t)}),o),ut(n,t,o)}M(o)&&o&&n();const s=ft(t),i=[];return R(s,(e=>{const n=t[e];n&&J(i,r(e,n))})),ut(B,i)};return r(t||{}),[r,n,(t,n)=>{R(N(e.get(t)),(t=>{n&&!j(n)?t.apply(0,n):t()}))}]},Se=t=>JSON.stringify(t,((t,e)=>{if(T(e))throw 0;return e})),Oe=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&yt(t,e)?t[e]:void 0),t):void 0,Ce={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 R(I(ft(e),ft(t)),(r=>{const o=t[r],s=e[r];if(A(o)&&A(s))ht(n[r]={},Me(o,s)),bt(n[r])&&delete n[r];else if(yt(e,r)&&s!==o){let t=!0;if(k(o)||k(s))try{Se(o)===Se(s)&&(t=!1)}catch(c){}t&&(n[r]=s)}})),n},Te=(t,e,n)=>r=>[Oe(t,r),n||void 0!==Oe(e,r)],ke=`data-overlayscrollbars`,Ae="os-environment",Ee=`${Ae}-scrollbar-hidden`,He=`${ke}-initialize`,Pe="noClipping",Le=`${ke}-body`,_e=ke,De="host",Re=`${ke}-viewport`,ze=Z,Ie=Q,Je="arrange",Ne="measuring",Ve="scrollbarHidden",je="scrollbarPressed",Fe="noContent",Be=`${ke}-padding`,Ke=`${ke}-content`,Xe="os-size-observer",Ye=`${Xe}-appear`,qe=`${Xe}-listener`,Ge=`${qe}-scroll`,We=`${qe}-item`,Ue=`${We}-final`,Ze="os-trinsic-observer",Qe="os-theme-none",tn="os-scrollbar",en=`${tn}-rtl`,nn=`${tn}-horizontal`,rn=`${tn}-vertical`,on=`${tn}-track`,sn=`${tn}-handle`,cn=`${tn}-visible`,ln=`${tn}-cornerless`,an=`${tn}-interaction`,un=`${tn}-unusable`,dn=`${tn}-auto-hide`,pn=`${dn}-hidden`,yn=`${tn}-wheel`,fn=`${on}-interactive`,hn=`${sn}-interactive`;let vn;const bn=()=>(vn||(vn=(()=>{const t=(t,e,n)=>{Nt(document.body,t),Nt(document.body,t);const r=oe(t),o=re(t),s=ie(e);return n&&It(t),{x:o.h-r.h+s.h,y:o.w-r.w+s.w}},n=Ft(`<div class="${Ae}"><div></div><style>${`.${Ae}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Ae} div{width:200%;height:200%;margin:10px 0}.${Ee}{scrollbar-width:none!important}.${Ee}::-webkit-scrollbar,.${Ee}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],o=n.firstChild,[s,,i]=$e(),[c,l]=e({o:t(n,o),i:ct},ut(t,n,o,!0)),[a]=l(),u=(t=>{let e=!1;const r=Et(t,Ee);try{e="none"===Ut(t,"scrollbar-width")||"none"===Ut(t,"display","::-webkit-scrollbar")}catch(n){}return r(),e})(n),d={x:0===a.x,y:0===a.y},p={elements:{host:null,padding:!u,viewport:t=>u&&Lt(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},y=ht({},Ce),f=ut(ht,{},y),h=ut(ht,{},p),v={D:a,k:d,M:u,R:!!b,V:ut(s,"r"),L:h,P:t=>ht(p,t)&&h(),U:f,N:t=>ht(y,t)&&f(),j:ht({},p),q:ht({},y)};if(St(n,"style"),It(n),de(r,"resize",(()=>{i("r",[])})),T(r.matchMedia)&&!u&&(!d.x||!d.y)){const t=e=>{const n=r.matchMedia(`(resolution: ${r.devicePixelRatio}dppx)`);de(n,"change",(()=>{e(),t(e)}),{A:!0})};t((()=>{const[t,e]=c();ht(v.D,t),i("r",[e])}))}return v})()),vn),xn=(t,e)=>T(e)?e.apply(0,t):e,gn=(t,e,n,r)=>{const o=$(r)?n:r;return xn(t,o)||e.apply(0,t)},mn=(t,e,n,r)=>{const o=$(r)?n:r,s=xn(t,o);return!!s&&(P(s)?s:e.apply(0,t))},wn=new WeakMap,$n=t=>wn.get(t),Sn=(t,e,n,r)=>{let o=!1;const{F:s,B:i,X:c,Y:l,W:a,G:u}=r||{},d=pt((()=>o&&n(!0)),{_:33,p:99}),[p,y]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const i=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||Ht)(n,t):[],r]}));R(i,(n=>R(n[0],(s=>{const i=n[1],c=o.get(s)||[];if(t.contains(s)&&i){const t=de(s,i,(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,J(c,t))}else B(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=i||[],v=I(s||[],h),b=(o,s)=>{if(!j(s)){const i=a||at,c=u||at,d=[],p=[];let f=!1,v=!1;if(R(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:y,removedNodes:b}=n,x="attributes"===a,g="childList"===a,m=t===s,w=x&&o,$=w&&mt(s,o||"")||null,S=w&&u!==$,O=z(h,o)&&S;if(e&&(g||!m)){const e=x&&S,a=e&&l&&Pt(s,l),p=(a?!i(s,o,u,$):!x||e)&&!c(n,!!a,t,r);R(y,(t=>J(d,t))),R(b,(t=>J(d,t))),v=v||p}!e&&m&&S&&!i(s,o,u,$)&&(J(p,o),f=f||O)})),y((t=>F(d).reduce(((e,n)=>(J(e,Ht(t,n)),Pt(n,t)?J(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!j(p)||f){const t=[F(p),f];return!o&&n.apply(0,t),t}}},x=new f(ut(b,!1));return[()=>(x.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),x.disconnect(),o=!1)}),()=>{if(o)return d.S(),b(!0,x.takeRecords())}]},On={},Cn={},Mn=(t,e,n)=>ft(t).map((r=>{const{static:o,instance:s}=t[r],[i,c,l]=n||[],a=n?s:o;if(a){const t=n?a(i,c,e):a(e);return(l||Cn)[r]=t}})),Tn=t=>Cn[t],kn="__osOptionsValidationPlugin",An="__osSizeObserverPlugin",En=(()=>({[An]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=Ft(`<div class="${We}" dir="ltr"><div class="${We}"><div class="${Ue}"></div></div><div class="${We}"><div class="${Ue}" style="width: 200%; height: 200%"></div></div></div>`),i=s[0],c=i.lastChild,l=i.firstChild,d=null==l?void 0:l.firstChild;let p,y=re(i),f=y,h=!1;const v=()=>{he(l,r),he(c,r)},b=t=>{p=0,h&&(y=f,e(!0===t))},x=t=>{f=re(i),h=!t||!it(f,y),t?(pe(t),h&&!p&&(a(p),p=u(b))):b(!1===t),v()},g=[Nt(t,s),de(l,o,x),de(c,o,x)];return Et(t,Ge),Wt(d,{[tt]:r,[et]:r}),u(v),[n?ut(x,!1):v,g]}}}))(),Hn=(t,e)=>{const{k:n}=e,[r,o]=t("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,o]},Pn=t=>0===t.indexOf(nt),Ln=(t,e)=>{const n=(t,e,n,r)=>{const o=t===nt?rt:t.replace(`${nt}-`,""),s=Pn(t),i=Pn(n);return e||r?s&&i?nt:s?e&&r?o:e?nt:rt:e?o:i&&r?nt:rt:rt},r={x:n(e.x,t.x,e.y,t.y),y:n(e.y,t.y,e.x,t.x)};return{J:r,K:{x:r.x===ot,y:r.y===ot}}},_n="__osScrollbarsHidingPlugin",Dn=(()=>({[_n]:{static:()=>({Z:(t,e,n,r,o)=>{const{tt:s,nt:i}=t,{M:c,k:l,D:a}=r,u=!s&&!c&&(l.x||l.y),[d]=Hn(o,r),p=t=>{const{K:e}=t,n=c||d?0:42,r=(t,e,r)=>[e&&!c?t?n:r:0,t&&!!n],[o,s]=r(l.x,e.x,a.x),[i,u]=r(l.y,e.y,a.y);return{ot:{x:o,y:i},st:{x:s,y:u}}},y=(t,{et:n},r)=>{if(!s){const o=ht({},{[W]:0,[U]:0,[G]:0}),{ot:s,st:i}=p(t),{x:c,y:l}=i,{x:a,y:u}=s,{ct:d}=e,y=n?G:W,f=n?Y:X,h=d[y],v=d[U],b=d[f],x=d[q];return o[tt]=`calc(100% + ${u+-1*h}px)`,o[y]=-u+h,o[U]=-a+v,r&&(o[f]=b+(l?u:0),o[q]=x+(c?a:0)),o}};return{rt:p,lt:(t,r,o)=>{if(u){const{ct:s}=e,{ot:c,st:l}=p(t),{x:a,y:u}=l,{x:d,y}=c,{et:f}=n,h=s[f?X:Y],v=s.paddingTop,b=r.w+o.w,x=r.h+o.h,g={w:y&&u?`${y+b-h}px`:"",h:d&&a?`${d+x-v}px`:""};Wt(i,{"--os-vaw":g.w,"--os-vah":g.h})}return u},it:t=>{if(u){const r=t||(()=>{const t=t=>{const e=Ut(i,t);return[e,e===ot]},[e,n]=t(Z),[r,o]=t(Q);return{J:{x:e,y:r},K:{x:n,y:o}}})(),{ct:o}=e,{st:s}=p(r),{x:c,y:l}=s,a={},d=t=>R(t,(t=>{a[t]=o[t]}));c&&d([U,K,q]),l&&d([G,W,Y,X]);const f=Ut(i,ft(a)),h=Ct(i,Re,Je);return Wt(i,a),[()=>{Wt(i,ht({},f,y(r,n,u))),h()},r]}return[at]},ut:y}}})}}))(),Rn="__osClickScrollPlugin",zn=(()=>({[Rn]:{static:()=>(t,e,n,r,o)=>{let s=0,i=at;const c=l=>{i=D(l,l+r*Math.sign(n),133,((n,l,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=d((()=>{c(n)}),222);i=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>i()}}}))(),In=(t,n,r)=>{const{dt:o}=r||{},s=Tn(An),[i]=e({o:!1,u:!0});return()=>{const e=[],r=Ft(`<div class="${Xe}"><div class="${qe}"></div></div>`)[0],c=r.firstChild,l=t=>{let e=!1,r=!1;if(t instanceof ResizeObserverEntry){const[n,,o]=i(t.contentRect),s=le(n);r=ae(n,o),e=!r&&!s}else r=!0===t;e||n({_t:!0,dt:r})};if(v){const t=new v((t=>l(t.pop())));t.observe(c),J(e,(()=>{t.disconnect()}))}else{if(!s)return at;{const[t,n]=s(c,l,o);J(e,I([Et(r,Ye),de(r,"animationstart",t)],n))}}return ut(B,J(e,Nt(t,r)))}},Jn=(t,n)=>{let r;const o=jt(Ze),[s]=e({o:!1}),i=(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)=>i(e.pop(),t);return[()=>{const e=[];if(h)r=new h(ut(c,!1),{root:t}),r.observe(o),J(e,(()=>{r.disconnect()}));else{const t=()=>{const t=re(o);i(t)};J(e,In(o,t)()),t()}return ut(B,J(e,Nt(t,o)))},()=>r&&c(!0,r.takeRecords())]},Nn=(t,n,r,o)=>{let s,i,c,l,a,u;const{M:d}=bn(),p=`[${_e}]`,y=`[${Re}]`,f=["wrap","cols","rows"],h=["id","class","style","open"],{ft:b,vt:x,nt:g,ht:m,gt:w,bt:$,tt:S,wt:C,yt:M}=t,A=t=>"rtl"===Ut(t,"direction"),E={St:!1,et:A(b)},H=bn(),P=Tn(_n),[_]=e({i:it,o:{w:0,h:0}},(()=>{const e=P&&P.Z(t,n,E,H,r).it,o=!S&&C(Je),s=o&&ve(m),i=M(Ne,!0),c=o&&e&&e()[0],l=se(w),a=se(g),u=ie(g);return c&&c(),he(m,s),i(),{w:a.w+l.w+u.w,h:a.h+l.h+u.h}})),D=$?f:I(h,f),R=pt(o,{_:()=>s,p:()=>i,v(t,e){const[n]=t,[r]=e;return[I(ft(n),ft(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),z=t=>{const e=A(b);ht(t,{Ot:u!==e}),ht(E,{et:e}),u=e},J=(t,e)=>{const[n,r]=t,s={$t:r};return ht(E,{St:n}),!e&&o(s),s},N=({_t:t,dt:e})=>{const n=t&&!e||!d?o:R,r={_t:t||e,dt:e};z(r),n(r)},V=(t,e)=>{const[,n]=_(),r={Ct:n};return z(r),n&&!e&&(t?o:R)(r),r},j=(t,e,n)=>{const r={xt:e};return z(r),e&&!n&&R(r),r},{V:F}=H,[B,K]=w?Jn(x,J):[],X=!S&&In(x,N,{dt:!0}),[Y,q]=Sn(x,!1,j,{B:h,F:I(h,[])}),G=S&&v&&new v((t=>{const e=t[t.length-1].contentRect;N({_t:!0,dt:ae(e,a)}),a=e}));return[()=>{G&&G.observe(x);const t=X&&X(),e=B&&B(),n=Y(),r=F((t=>{const[,e]=_();R({Ht:t,Ct:e})}));return()=>{G&&G.disconnect(),t&&t(),e&&e(),l&&l(),n(),r()}},({Et:t,zt:e,At:n})=>{const r={},[o]=t("update.ignoreMutation"),[a,u]=t("update.attributes"),[d,f]=t("update.elementEvents"),[h,v]=t("update.debounce"),b=e||n;if(f||u){c&&c(),l&&l();const[t,e]=Sn(w||g,!0,V,{F:I(D,a||[]),X:d,Y:p,G:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||S)&&((t,e,n)=>{const r=Rt(t,e),o=t&&((t,e)=>{const n=e?L(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=Rt(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&Rt(Rt(t,n),e)!==r)})(n,p,y)||!!Rt(n,`.${tn}`)||!!(t=>T(o)&&o(t))(t)}});l=t(),c=e}if(v)if(R.S(),k(h)){const t=h[0],e=h[1];s=O(t)&&t,i=O(e)&&e}else O(h)?(s=h,i=!1):(s=!1,i=!1);if(b){const t=q(),e=K&&K(),n=c&&c();t&&ht(r,j(t[0],t[1],b)),e&&ht(r,J(e[0],b)),n&&ht(r,V(n[0],b))}return z(r),r},E]},Vn=(t,e,n,r)=>{const{L:o}=bn(),{scrollbars:s}=o(),{slot:i}=s,{ft:c,vt:l,nt:a,It:u,ht:d,Tt:p,tt:y}=e,{scrollbars:f}=u?{}:t,{slot:h}=f||{},v=new Map,x=t=>b&&new b({source:d,axis:t}),g={x:x("x"),y:x("y")},m=mn([c,l,a],(()=>y&&p?c:l),i,h),w=(t,e)=>{if(e){const n=t?tt:et,{Dt:r,kt:o}=e,s=ce(o)[n],i=ce(r)[n];return xt(0,1,s/i||0)}const r=t?"x":"y",{Mt:o,Rt:s}=n,i=s[r],c=o[r];return xt(0,1,i/(i+c)||0)},$=t=>ht(t,{clear:["left"]}),S=t=>{v.forEach(((e,n)=>{(!t||z(V(t),n))&&(R(e||[],(t=>{t&&t.cancel()})),v.delete(n))}))},O=(t,e,n,r)=>{const o=v.get(t)||[],s=o.find((t=>t&&t.timeline===e));s?s.effect=new KeyframeEffect(t,n,{composite:r}):v.set(t,I(o,[t.animate(n,{timeline:e,composite:r})]))},C=(t,e,n)=>{const r=n?Et:At;R(t,(t=>{r(t.Vt,e)}))},T=(t,e)=>{R(t,(t=>{const[n,r]=e(t);Wt(n,r)}))},k=(t,e)=>{T(t,(t=>{const{kt:n}=t;return[n,{[e?tt:et]:qt(w(e))}]}))},A=(t,e)=>{const{Lt:r}=n,o=e?"x":"y",s=g[o],i=xe(r)[o],c=(t,n)=>Qt(qt(((t,e,n)=>{const r=w(n,t);return 1/r*(1-r)*e})(t,i?n:1-n,e)),e);s?R(t,(t=>{const{kt:e}=t;O(e,s,$({transform:[0,1].map((e=>c(t,e)))}))})):T(t,(t=>[t.kt,{transform:c(t,ge(r,ve(d))[o])}]))},E=t=>y&&!p&&Dt(t)===a,H=[],P=[],L=[],_=(t,e,n)=>{const r=M(n),o=!r||!n;(!r||n)&&C(P,t,e),o&&C(L,t,e)},D=t=>{const e=jt(`${tn} ${t?nn:rn}`),n=jt(on),o=jt(sn),s={Vt:e,Dt:n,kt:o};return J(t?P:L,s),J(H,[Nt(e,n),Nt(n,o),ut(It,e),S,r(s,_,A,t)]),s},N=ut(D,!0),j=ut(D,!1);return N(),j(),[{Pt:()=>{k(P,!0),k(L)},Ut:()=>{A(P,!0),A(L)},Nt:()=>{if(y){const{Mt:t,Lt:e}=n,r=xe(e),o=.5;if(g.x&&g.y)R(I(L,P),(({Vt:e})=>{if(E(e)){const n=n=>O(e,g[n],$({transform:[0,r[n]?1:-1].map((e=>Qt(Gt(e*(t[n]-o)),"x"===n)))}),"add");n("x"),n("y")}else S(e)}));else{const n=ge(e,ve(d)),o=e=>{const{Vt:o}=e,s=E(o)&&o,i=(t,e,n)=>{const r=e*t;return Gt(n?r:-r)};return[s,s&&{transform:Qt({x:i(n.x,t.x,r.x),y:i(n.y,t.y,r.y)})}]};T(P,o),T(L,o)}}},jt:_,qt:{R:g.x,Ft:P,Bt:N,Xt:ut(T,P)},Yt:{R:g.y,Ft:L,Bt:j,Xt:ut(T,L)}},()=>(Nt(m,P[0].Vt),Nt(m,L[0].Vt),ut(B,H))]},jn=(t,e,n,r)=>(o,s,l,a)=>{const{vt:u,nt:p,tt:y,ht:f,Wt:h,yt:v}=e,{Vt:b,Dt:x,kt:g}=o,[m,w]=dt(333),[$,S]=dt(444),[O,C]=dt(),M=ut(l,[o],a),k=t=>{T(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:t.x,top:t.y})},A=a?tt:et;let E=!0;const H=t=>t.propertyName.indexOf(A)>-1;return ut(B,[de(g,"pointermove pointerleave",r),de(b,"pointerenter",(()=>{s(an,!0)})),de(b,"pointerleave pointercancel",(()=>{s(an,!1)})),!y&&de(b,"mousedown",(()=>{const t=zt();(wt(t,Re)||wt(t,_e)||t===document.body)&&d(ut(me,p),25)})),de(b,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;E&&0===r&&Dt(b)===u&&k({x:e,y:n}),E=!1,s(yn,!0),m((()=>{E=!0,s(yn)})),ye(t)}),{C:!1,H:!0}),de(g,"transitionstart",(t=>{if(H(t)){const t=()=>{M(),O(t)};t()}})),de(g,"transitionend transitioncancel",(t=>{H(t)&&(C(),M())})),de(b,"pointerdown",ut(de,h,"click",fe,{A:!0,H:!0,C:!1}),{H:!0}),(()=>{const e="pointerup pointercancel lostpointercapture",r=`client${a?"X":"Y"}`,o=a?"left":"top",s=a?"w":"h",l=a?"x":"y",u=(t,e)=>r=>{const{Mt:o}=n,i=re(x)[s]-re(g)[s],c=e*r/i*o[l];he(f,{[l]:t+c})};return de(x,"pointerdown",(n=>{const a=Rt(n.target,`.${sn}`)===g,d=a?g:x,p=t.scrollbars,{button:y,isPrimary:b,pointerType:m}=n,{pointers:w}=p;if(0===y&&b&&p[a?"dragScroll":"clickScroll"]&&(w||[]).includes(m)){S();const t=!a&&n.shiftKey,p=ut(ce,g),y=ut(ce,x),b=(t,e)=>(t||p())[o]-(e||y())[o],m=i(ce(f)[A])/re(f)[s]||1,w=u(ve(f)[l],1/m),O=n[r],C=p(),M=y(),T=C[A],E=b(C,M)+T/2,H=O-M[o],P=a?0:H-E,L=t=>{B(R),d.releasePointerCapture(t.pointerId)},_=()=>v(je,!0),D=_(),R=[()=>{const t=ve(f);D();const e=ve(f),n={x:e.x-t.x,y:e.y-t.y};(c(n.x)>3||c(n.y)>3)&&(_(),he(f,t),k(n),$(D))},de(h,e,L),de(h,"selectstart",(t=>ye(t)),{C:!1}),de(x,e,L),de(x,"pointermove",(e=>{const n=e[r]-O;(a||t)&&w(P+n)}))];if(d.setPointerCapture(n.pointerId),t)w(P);else if(!a){const t=Tn(Rn);t&&J(R,t(w,b,P,T,H))}}}))})(),w,S,C])},Fn=t=>{const e=bn(),{L:n,M:o}=e,{elements:s}=n(),{host:i,padding:c,viewport:l,content:a}=s,u=P(t),d=u?{}:t,{elements:p}=d,{host:y,padding:f,viewport:h,content:v}=p||{},b=u?t:d.target,x=Lt(b),g=Pt(b,"textarea"),m=b.ownerDocument,w=m.documentElement,$=()=>m.defaultView||r,S=ut(gn,[b]),O=ut(mn,[b]),C=ut(jt,""),M=ut(S,C,l),T=ut(O,C,a),k=M(h),A=k===b,E=A&&x,H=!A&&T(v),L=!A&&k===H,_=E?w:k,D=g?S(C,i,y):b,R=E?_:D,I=!A&&O(C,c,f),N=!L&&H,V=[N,_,I,R].map((t=>P(t)&&!Dt(t)&&t)),j=t=>t&&z(V,t),F=j(_)?b:_,K={ft:b,vt:R,nt:_,en:I,gt:N,ht:E?w:_,Gt:E?m:_,cn:x?w:F,Wt:m,bt:g,Tt:x,It:u,tt:A,rn:$,wt:t=>((t,e,n)=>Ot(t,e).$(n))(_,Re,t),yt:(t,e)=>Tt(_,Re,t,e)},{ft:X,vt:Y,en:q,nt:G,gt:W}=K,U=[()=>{St(Y,[_e,He]),St(X,He),x&&St(w,[He,_e])}],Z=g&&j(Y);let Q=g?X:_t([W,G,q,Y,X].find((t=>t&&!j(t))));const tt=E?X:W||G,et=ut(B,U);return[K,()=>{const t=$(),e=zt(),n=t=>{Nt(Dt(t),_t(t)),It(t)},r=t=>de(t,"focusin focusout focus blur",fe,{H:!0,C:!1}),s="tabindex",i=mt(G,s),c=r(e);return $t(Y,_e,A?"":De),$t(q,Be,""),$t(G,Re,""),$t(W,Ke,""),A||($t(G,s,i||"-1"),x&&$t(w,Le,"")),Z&&(Vt(X,Y),J(U,(()=>{Vt(Y,X),It(Y)}))),Nt(tt,Q),Nt(Y,q),Nt(q||Y,!A&&G),Nt(G,W),J(U,[c,()=>{const t=zt(),e=j(G),o=e&&t===G?X:t,c=r(o);St(q,Be),St(W,Ke),St(G,Re),x&&St(w,Le),i?$t(G,s,i):St(G,s),j(W)&&n(W),e&&n(G),j(q)&&n(q),me(o),c()}]),o&&!A&&(Mt(G,Re,Ve),J(U,ut(St,G,Re))),me(!A&&x&&e===X&&t.top===t?G:e),c(),Q=0,et},et]},Bn=({gt:t})=>({Jt:e,ln:n,At:r})=>{const{$t:o}=e||{},{St:s}=n;t&&(o||r)&&Wt(t,{[et]:s&&"100%"})},Kn=({vt:t,en:n,nt:r,tt:o},s)=>{const[i,c]=e({i:lt,o:Zt()},ut(Zt,t,"padding",""));return({Et:t,Jt:e,ln:l,At:a})=>{let[u,d]=c(a);const{M:p}=bn(),{_t:y,Ct:f,Ot:h}=e||{},{et:v}=l,[b,x]=t("paddingAbsolute");(y||d||a||f)&&([u,d]=i(a));const g=!o&&(x||h||d);if(g){const t=!b||!n&&!p,e=u.r+u.l,o=u.t+u.b,i={[W]:t&&!v?-e:0,[U]:t?-o:0,[G]:t&&v?-e:0,top:t?-u.t:0,right:t?v?-u.r:"auto":0,left:t?v?"auto":-u.l:0,[tt]:t&&`calc(100% + ${e}px)`},c={[K]:t?u.t:0,[X]:t?u.r:0,[q]:t?u.b:0,[Y]:t?u.l:0};Wt(n||r,i),Wt(r,c),ht(s,{en:u,an:!t,ct:n?c:ht({},i,c)})}return{un:g}}},Xn=(t,n)=>{const s=bn(),{vt:i,en:c,nt:l,tt:a,Gt:d,ht:p,Tt:y,yt:f,rn:h}=t,{M:v}=s,b=y&&a,x=ut(o,0),g=["display","direction","flexDirection","writingMode"],m={i:it,o:{w:0,h:0}},w={i:ct,o:{}},$=(t,e)=>{const n=r.devicePixelRatio%1!=0?1:0,o={w:x(t.w-e.w),h:x(t.h-e.h)};return{w:o.w>n?o.w:0,h:o.h>n?o.h:0}},S=()=>{const t=ve(p),e=f(Fe,!0),n=de(d,ot,(e=>{const n=ve(p);e.isTrusted&&n.x===t.x&&n.y===t.y&&pe(e)}),{H:!0,A:!0});he(p,{x:0,y:0}),e();const r=ve(p),o=se(p);he(p,{x:o.w,y:o.h});const s=ve(p);he(p,{x:s.x-r.x<1&&-o.w,y:s.y-r.y<1&&-o.h});const i=ve(p);return he(p,t),u((()=>n())),{I:r,T:i}},O=()=>ht({},(t=>!!t&&(t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t))(l)?Ut(l,g):{}),[C,M]=e(m,ut(ie,l)),[T,k]=e(m,ut(se,l)),[A,E]=e(m),[H]=e(w),[P,L]=e(m),[_]=e(w),[D]=e({i:(t,e)=>st(t,e,g),o:{}}),[z,I]=e({i:(t,e)=>ct(t.I,e.I)&&ct(t.T,e.T),o:{I:{x:0,y:0},T:{x:0,y:0}}}),J=Tn(_n),N=(t,e)=>`${e?ze:Ie}${(t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""})(t)}`,V=t=>{const{J:e}=t;R(ft(e),(t=>{const n="x"===t,r=[nt,rt,ot].map((t=>N(t,n)));f(r.join(" ")),f(N(e[t],n),!0)}))};return({Et:e,Jt:r,ln:a,At:u},{un:d})=>{const{_t:p,Ct:y,Ot:g,dt:m,Ht:w}=r||{},R=J&&J.Z(t,n,a,s,e),{lt:N,it:j,ut:F}=R||{},[B,K]=Hn(e,s),[X,Y]=e("overflow"),q=Pn(X.x),G=Pn(X.y),W=p||d||y||g||w||K;let U=M(u),Z=k(u),Q=E(u),tt=L(u);if(K&&v&&f(Ve,!B),W){const[t]=j?j():[],[e]=U=C(u),[n]=Z=T(u),r=oe(l),s=n,i=r;t&&t();const c=ne(h()),a={w:x(o(n.w,s.w)+e.w),h:x(o(n.h,s.h)+e.h)},d={w:x((b?c.w:i.w+x(r.w-n.w))+e.w),h:x((b?c.h:i.h+x(r.h-n.h))+e.h)};tt=P(d),Q=A($(a,d),u)}const[et,nt]=tt,[rt,ot]=Q,[st,it]=Z,[ct,lt]=U,[at,ut]=H({x:rt.w>0,y:rt.h>0}),dt=q&&G&&(at.x||at.y)||q&&at.x&&!at.y||G&&at.y&&!at.x,pt=d||g||w||lt||it||nt||ot||Y||K||W,yt=Ln(at,X),[ft,vt]=_(yt.J),[,bt]=D(O(),u),xt=g||m||bt||ut||u,[gt,mt]=xt?z(S(),u):I();return pt&&(V(yt),F&&N&&Wt(l,F(yt,a,N(yt,st,ct)))),Tt(i,_e,Pe,dt),Tt(c,Be,Pe,dt),ht(n,{J:ft,Rt:{x:et.w,y:et.h},Mt:{x:rt.w,y:rt.h},sn:at,Lt:be(gt,rt)}),{tn:vt,Qt:nt,Zt:ot,nn:mt||ot,dn:xt}}},Yn=(t,e,n,r)=>{const o=Te(e,{}),[s,i,c,l,a]=(t=>{const[e,n,r]=Fn(t),o={en:{t:0,r:0,b:0,l:0},an:!1,ct:{[W]:0,[U]:0,[G]:0,[K]:0,[X]:0,[q]:0,[Y]:0},Rt:{x:0,y:0},Mt:{x:0,y:0},J:{x:rt,y:rt},sn:{x:!1,y:!1},Lt:{I:{x:0,y:0},T:{x:0,y:0}}},{ft:s,ht:i,tt:c,yt:l}=e,{M:a,k:u}=bn(),d=!a&&(u.x||u.y),p=[Bn(e),Kn(e,o),Xn(e,o)];return[n,t=>{const e={},n=d,r=l(Ne,!0),o=n&&ve(i);return R(p,(n=>{ht(e,n(t,e)||{})})),he(i,o),!c&&he(s,0),r(),e},o,e,r]})(t),[u,d,p]=Nn(l,c,o,(t=>{b({},t)})),[y,f,,h]=((t,e,n,r,o,s)=>{let i,c,l,a,u,d=at,p=0;const y=t=>"mouse"===t.pointerType,[f,h]=dt(),[v,b]=dt(100),[x,g]=dt(100),[m,w]=dt((()=>p)),[$,S]=Vn(t,o,r,jn(e,o,r,(t=>y(t)&&P()))),{vt:O,Gt:C,Tt:M}=o,{jt:T,Pt:k,Ut:A,Nt:E}=$,H=(t,e)=>{if(w(),t)T(pn);else{const t=ut(T,pn,!0);p>0&&!e?m(t):t()}},P=()=>{(l?i:a)||(H(!0),v((()=>{H(!1)})))},L=t=>{T(dn,t,!0),T(dn,t,!1)},_=t=>{y(t)&&(i=l,l&&H(!0))},D=[w,b,g,h,()=>d(),de(O,"pointerover",_,{A:!0}),de(O,"pointerenter",_),de(O,"pointerleave",(t=>{y(t)&&(i=!1,l&&H(!1))})),de(O,"pointermove",(t=>{y(t)&&c&&P()})),de(C,"scroll",(t=>{f((()=>{A(),P()})),s(t),E()}))];return[()=>ut(B,J(D,S())),({Et:t,At:e,Jt:o,Kt:s})=>{const{Qt:i,Zt:y,tn:f,nn:h}=s||{},{Ot:v,dt:b}=o||{},{et:g}=n,{k:m}=bn(),{J:w,sn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[P,_]=t("scrollbars.theme"),[D,R]=t("scrollbars.visibility"),[z,I]=t("scrollbars.autoHide"),[J,N]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[j,F]=t("scrollbars.dragScroll"),[B,K]=t("scrollbars.clickScroll"),[X,Y]=t("overflow"),q=b&&!e,G=$.x||$.y,W=i||y||h||v||e,U=f||R||Y,Z=S&&m.x&&m.y,Q=(t,e,n)=>{const r=t.includes(ot)&&(D===nt||"auto"===D&&e===ot);return T(cn,r,n),r};if(p=V,q&&(J&&G?(L(!1),d(),x((()=>{d=de(C,"scroll",ut(L,!0),{A:!0})}))):L(!0)),O&&T(Qe,Z),_&&(T(u),T(P,!0),u=P),N&&!J&&L(!0),I&&(c="move"===z,l="leave"===z,a="never"===z,H(a,!0)),F&&T(hn,j),K&&T(fn,B),U){const t=Q(X.x,w.x,!0),e=Q(X.y,w.y,!1);T(ln,!(t&&e))}W&&(k(),A(),E(),T(un,!$.x,!0),T(un,!$.y,!1),T(en,g&&!M))},{},$]})(t,e,p,c,l,r),v=t=>ft(t).some((e=>!!t[e])),b=(t,r)=>{const{_n:o,At:s,zt:c,fn:l}=t,a=o||{},u=!!s,y={Et:Te(e,a,u),_n:a,At:u};if(l)return f(y),!1;const h=r||d(ht({},y,{zt:c})),b=i(ht({},y,{ln:p,Jt:h}));f(ht({},y,{Jt:h,Kt:b}));const x=v(h),g=v(b),m=x||g||!bt(a)||u;return m&&n(t,{Jt:h,Kt:b}),m};return[()=>{const{cn:t,ht:e,yt:n}=l,r=n(Ne,!0),o=ve(t),i=[u(),s(),y()];return he(e,o),r(),ut(B,i)},b,()=>({pn:p,vn:c}),{hn:l,gn:h},a]},qn=(t,e,n)=>{const{U:r}=bn(),o=P(t),s=o?t:t.target,i=$n(s);if(e&&!i){let i=!1;const c=[],l={},a=t=>{const e=vt(t,!0),n=Tn(kn);return n?n(e,!0):e},u=ht({},r(),a(e)),[d,p,y]=$e(),[f,h,v]=$e(n),b=(t,e)=>{v(t,e),y(t,e)},[x,g,m,w,O]=Yn(t,u,(({_n:t,At:e},{Jt:n,Kt:r})=>{const{_t:o,Ot:s,$t:i,Ct:c,xt:l,dt:a}=n,{Qt:u,Zt:d,tn:p,nn:y}=r;b("updated",[M,{updateHints:{sizeChanged:!!o,directionChanged:!!s,heightIntrinsicChanged:!!i,overflowEdgeChanged:!!u,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!y,contentMutation:!!c,hostMutation:!!l,appear:!!a},changedOptions:t||{},force:!!e}])}),(t=>b("scroll",[M,t]))),C=t=>{(t=>{wn.delete(t)})(s),B(c),i=!0,b("destroyed",[M,t]),p(),h()},M={options(t,e){if(t){const n=e?r():{},o=Me(u,ht(n,a(t)));bt(o)||(ht(u,o),g({_n:o}))}return ht({},u)},on:f,off:(t,e)=>{t&&e&&h(t,e)},state(){const{pn:t,vn:e}=m(),{et:n}=t,{Rt:r,Mt:o,J:s,sn:c,en:l,an:a,Lt:u}=e;return ht({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:c,scrollCoordinates:{start:u.I,end:u.T},padding:l,paddingAbsolute:a,directionRTL:n,destroyed:i})},elements(){const{ft:t,vt:e,en:n,nt:r,gt:o,ht:s,Gt:i}=w.hn,{qt:c,Yt:l}=w.gn,a=t=>{const{kt:e,Dt:n,Vt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{Ft:e,Bt:n}=t,r=a(e[0]);return ht({},r,{clone:()=>{const t=a(n());return g({fn:!0}),t}})};return ht({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:i,scrollbarHorizontal:u(c),scrollbarVertical:u(l)})},update:t=>g({At:t,zt:!0}),destroy:ut(C,!1),plugin:t=>l[ft(t)[0]]};return J(c,[O]),((t,e)=>{wn.set(t,e)})(s,M),Mn(On,qn,[M,d,l]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{k:o,M:s,L:i}=bn(),{nativeScrollbarsOverlaid:c,body:l}=i().cancel,a=null!=n?n:c,u=$(r)?l:r,d=(o.x||o.y)&&a,p=t&&(S(u)?!s:u);return!!d||!!p})(w.hn.Tt,!o&&t.cancel)?(C(!0),M):(J(c,x()),b("initialized",[M]),M.update(!0),M)}return i};return qn.plugin=t=>{const e=k(t),n=e?t:[t],r=n.map((t=>Mn(t,qn)[0]));return(t=>{R(t,(t=>R(t,((e,n)=>{On[n]=t[n]}))))})(n),e?r:r[0]},qn.valid=t=>{const e=t&&t.elements,n=T(e)&&e();return H(n)&&!!$n(n.target)},qn.env=()=>{const{D:t,k:e,M:n,R:r,j:o,q:s,L:i,P:c,U:l,N:a}=bn();return ht({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:o,staticDefaultOptions:s,getDefaultInitialization:i,setDefaultInitialization:c,getDefaultOptions:l,setDefaultOptions:a})},t.ClickScrollPlugin=zn,t.OverlayScrollbars=qn,t.ScrollbarsHidingPlugin=Dn,t.SizeObserverPlugin=En,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({}); |
# Changelog | ||
## 2.8.1 | ||
### Improvements | ||
- Improve the `scrollCoordinates` logic introduced in `v2.8.0` to have better defaults in cases of ambiguity. | ||
- The `scroll` event is not propagated if it is an result of `scrollCoordinates` detection during update. | ||
- Focus management improvements. | ||
## 2.8.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "overlayscrollbars", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"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", |
@@ -82,2 +82,4 @@ <div align="center"> | ||
You can use this [Node Example](https://github.com/KingSora/OverlayScrollbars/tree/master/examples/node) as an reference / starting point. | ||
### Manual download & embedding | ||
@@ -98,3 +100,3 @@ | ||
You can then use the global variable `OverlayScrollbarsGlobal` to access the api similar to how you can do it in nodejs / modules: | ||
Use the global variable `OverlayScrollbarsGlobal` to access the api similar to how you can do it in nodejs / modules: | ||
```js | ||
@@ -109,2 +111,4 @@ var { | ||
You can use this [Browser Example](https://github.com/KingSora/OverlayScrollbars/tree/master/examples/browser) as an reference / starting point. | ||
The examples in this documentation will use the `import` syntax instead of the `OverlayScrollbarsGlobal` object. Both versions are equivalent though. | ||
@@ -111,0 +115,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2817783
1297
17526