FruitBank/Presentation/Nop.Web/wwwroot/lib_npm/overlayscrollbars/browser/overlayscrollbars.browser.e...

10 lines
28 KiB
JavaScript

/*!
* OverlayScrollbars
* Version: 2.10.0
*
* Copyright (c) Rene Haas | KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
*/
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 HTMLElement&&window.document?window:{},r=Math.max,o=Math.min,s=Math.round,i=Math.abs,c=Math.sign,l=n.cancelAnimationFrame,a=n.requestAnimationFrame,u=n.setTimeout,d=n.clearTimeout,p=t=>void 0!==n[t]?n[t]:void 0,y=p("MutationObserver"),h=p("IntersectionObserver"),f=p("ResizeObserver"),v=p("ScrollTimeline"),b=t=>void 0===t,x=t=>null===t,g=t=>"number"==typeof t,w=t=>"string"==typeof t,m=t=>"boolean"==typeof t,$=t=>"function"==typeof t,S=t=>Array.isArray(t),O=t=>"object"==typeof t&&!S(t)&&!x(t),M=t=>{const e=!!t&&t.length,n=g(e)&&e>-1&&e%1==0;return!(!(S(t)||!$(t)&&n)||e>0&&O(t)&&!(e-1 in t))},C=t=>!!t&&t.constructor===Object,D=t=>t instanceof HTMLElement,T=t=>t instanceof Element,R=()=>performance.now(),k=(t,e,n,o,s)=>{let i=0;const c=R(),u=r(0,n),d=n=>{const l=R(),p=l-c>=u,y=n?1:1-(r(0,c+u-l)/u||0),h=(e-t)*($(s)?s(y,y*u,0,1,u):y)+t,f=p||1===y;o&&o(h,y,f),i=f?0:a((()=>d()))};return d(),t=>{l(i),t&&d(t)}};function H(t,e){if(M(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&H(Object.keys(t),(n=>e(t[n],n,t)));return t}const A=(t,e)=>t.indexOf(e)>=0,P=(t,e)=>t.concat(e),E=(t,e,n)=>(n||w(e)||!M(e)?t.push(e):Array.prototype.push.apply(t,e),t),L=t=>Array.from(t||[]),z=t=>S(t)?t:!w(t)&&M(t)?L(t):[t],I=t=>!!t&&!t.length,_=t=>L(new Set(t)),j=(t,e,n)=>{H(t,(t=>!t||t.apply(void 0,e||[]))),!n&&(t.length=0)},N="paddingTop",F="paddingRight",V="paddingLeft",K="paddingBottom",Z="marginLeft",W="marginRight",B="marginBottom",U="overflowX",Y="overflowY",X="width",q="height",J="visible",G="hidden",Q="scroll",tt=(t,e,n,r)=>{if(t&&e){let o=!0;return H(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},et=(t,e)=>tt(t,e,["w","h"]),nt=(t,e)=>tt(t,e,["x","y"]),rt=(t,e)=>tt(t,e,["t","r","b","l"]),ot=()=>{},st=(t,...e)=>t.bind(0,...e),it=t=>{let e;const n=t?u:a,r=t?d:l;return[o=>{r(e),e=n((()=>o()),$(t)?t():t)},()=>r(e)]},ct=(t,e)=>{const{_:n,v:r,p:o,S:s}=e||{};let i,c,p,y,h=ot;const f=function(e){h(),d(i),y=i=c=void 0,h=ot,t.apply(this,e)},v=t=>s&&c?s(c,t):t,b=()=>{h!==ot&&f(v(p)||p)},x=function(){const t=L(arguments),e=$(n)?n():n;if(g(e)&&e>=0){const n=$(r)?r():r,s=g(n)&&n>=0,x=e>0?u:a,w=e>0?d:l,m=v(t)||t,S=f.bind(0,m);let O;h(),o&&!y?(S(),y=!0,O=x((()=>y=void 0),e)):(O=x(S,e),s&&!i&&(i=u(b,n))),h=()=>w(O),c=p=m}else f(t)};return x.m=b,x},lt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),at=t=>t?Object.keys(t):[],ut=(t,e,n,r,o,s,i)=>{const c=[e,n,r,o,s,i];return"object"==typeof t&&!x(t)||$(t)||(t={}),H(c,(e=>{H(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=S(o);if(o&&C(o)){const e=t[r];let n=e;s&&!S(e)?n=[]:s||C(e)||(n={}),t[r]=ut(n,o)}else t[r]=s?o.slice():o}))})),t},dt=(t,e)=>H(ut({},t),((t,n,r)=>{void 0===t?delete r[n]:e&&t&&C(t)&&(r[n]=dt(t,e))})),pt=t=>!at(t).length,yt=(t,e,n)=>r(t,o(e,n)),ht=t=>_((S(t)?t:(t||"").split(" ")).filter((t=>t))),ft=(t,e)=>t&&t.getAttribute(e),vt=(t,e)=>t&&t.hasAttribute(e),bt=(t,e,n)=>{H(ht(e),(e=>{t&&t.setAttribute(e,String(n||""))}))},xt=(t,e)=>{H(ht(e),(e=>t&&t.removeAttribute(e)))},gt=(t,e)=>{const n=ht(ft(t,e)),r=st(bt,t,e),o=(t,e)=>{const r=new Set(n);return H(ht(t),(t=>{r[e](t)})),L(r).join(" ")};return{O:t=>r(o(t,"delete")),$:t=>r(o(t,"add")),C:t=>{const e=ht(t);return e.reduce(((t,e)=>t&&n.includes(e)),e.length>0)}}},wt=(t,e,n)=>(gt(t,e).O(n),st(mt,t,e,n)),mt=(t,e,n)=>(gt(t,e).$(n),st(wt,t,e,n)),$t=(t,e,n,r)=>(r?mt:wt)(t,e,n),St=(t,e,n)=>gt(t,e).C(n),Ot=t=>gt(t,"class"),Mt=(t,e)=>{Ot(t).O(e)},Ct=(t,e)=>(Ot(t).$(e),st(Mt,t,e)),Dt=(t,e)=>{const n=e?T(e)&&e:document;return n?L(n.querySelectorAll(t)):[]},Tt=(t,e)=>T(t)&&t.matches(e),Rt=t=>Tt(t,"body"),kt=t=>t?L(t.childNodes):[],Ht=t=>t&&t.parentElement,At=(t,e)=>T(t)&&t.closest(e),Pt=t=>(t||document).activeElement,Et=t=>{H(z(t),(t=>{const e=Ht(t);t&&e&&e.removeChild(t)}))},Lt=(t,e)=>st(Et,t&&e&&H(z(e),(e=>{e&&t.appendChild(e)}))),zt=t=>{const e=document.createElement("div");return bt(e,"class",t),e},It=t=>{const e=zt();return e.innerHTML=t.trim(),H(kt(e),(t=>Et(t)))},_t=(t,e)=>t.getPropertyValue(e)||t[e]||"",jt=t=>{const e=t||0;return isFinite(e)?e:0},Nt=t=>jt(parseFloat(t||"")),Ft=t=>Math.round(1e4*t)/1e4,Vt=t=>`${Ft(jt(t))}px`;function Kt(t,e){t&&e&&H(e,((e,n)=>{try{const r=t.style,o=x(e)||m(e)?"":g(e)?Vt(e):e;0===n.indexOf("--")?r.setProperty(n,o):r[n]=o}catch(r){}}))}function Zt(t,e,r){const o=w(e);let s=o?"":{};if(t){const i=n.getComputedStyle(t,r)||t.style;s=o?_t(i,e):L(e).reduce(((t,e)=>(t[e]=_t(i,e),t)),s)}return s}const Wt=(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=Zt(t,[s,i,c,l]);return{t:Nt(a[s]),r:Nt(a[i]),b:Nt(a[c]),l:Nt(a[l])}},Bt=(t,e)=>`translate${O(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,Ut={w:0,h:0},Yt=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:Ut,Xt=t=>Yt("inner",t||n),qt=st(Yt,"offset"),Jt=st(Yt,"client"),Gt=st(Yt,"scroll"),Qt=t=>{const e=parseFloat(Zt(t,X))||0,n=parseFloat(Zt(t,q))||0;return{w:e-s(e),h:n-s(n)}},te=t=>t.getBoundingClientRect(),ee=t=>!(!t||!t[q]&&!t[X]),ne=(t,e)=>{const n=ee(t);return!ee(e)&&n},re=(t,e,n,r)=>{H(ht(e),(e=>{t&&t.removeEventListener(e,n,r)}))},oe=(t,e,n,r)=>{var o;const s=null==(o=r&&r.H)||o,i=r&&r.I||!1,c=r&&r.A||!1,l={passive:s,capture:i};return st(j,ht(e).map((e=>{const r=c?o=>{re(t,e,r,i),n&&n(o)}:n;return t&&t.addEventListener(e,r,l),st(re,t,e,r,i)})))},se=t=>t.stopPropagation(),ie=t=>t.preventDefault(),ce=t=>se(t)||ie(t),le=(t,e)=>{const{x:n,y:r}=g(e)?{x:e,y:e}:e||{};g(n)&&(t.scrollLeft=n),g(r)&&(t.scrollTop=r)},ae=t=>({x:t.scrollLeft,y:t.scrollTop}),ue=(t,e)=>{const{D:n,M:r}=t,{w:o,h:s}=e,l=(t,e,n)=>{let r=c(t)*n,o=c(e)*n;if(r===o){const n=i(t),s=i(e);o=n>s?0:o,r=n<s?0:r}return r=r===o?0:r,[r+0,o+0]},[a,u]=l(n.x,r.x,o),[d,p]=l(n.y,r.y,s);return{D:{x:a,y:d},M:{x:u,y:p}}},de=({D:t,M:e})=>{const n=(t,e)=>0===t&&t<=e;return{x:n(t.x,e.x),y:n(t.y,e.y)}},pe=({D:t,M:e},n)=>{const r=(t,e,n)=>yt(0,1,(t-n)/(t-e)||0);return{x:r(t.x,e.x,n.x),y:r(t.y,e.y,n.y)}},ye=t=>{t&&t.focus&&t.focus({preventScroll:!0})},he=(t,e)=>{H(z(e),t)},fe=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);he((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(w(t)){const r=e.get(t)||new Set;return e.set(t,r),he((t=>{$(t)&&r.add(t)}),o),st(n,t,o)}m(o)&&o&&n();const s=at(t),i=[];return H(s,(e=>{const n=t[e];n&&E(i,r(e,n))})),st(j,i)};return r(t||{}),[r,n,(t,n)=>{H(L(e.get(t)),(t=>{n&&!I(n)?t.apply(0,n):t()}))}]},ve=t=>JSON.stringify(t,((t,e)=>{if($(e))throw 0;return e})),be=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&lt(t,e)?t[e]:void 0),t):void 0,xe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},ge=(t,e)=>{const n={};return H(P(at(e),at(t)),(r=>{const o=t[r],s=e[r];if(O(o)&&O(s))ut(n[r]={},ge(o,s)),pt(n[r])&&delete n[r];else if(lt(e,r)&&s!==o){let t=!0;if(S(o)||S(s))try{ve(o)===ve(s)&&(t=!1)}catch(i){}t&&(n[r]=s)}})),n},we=(t,e,n)=>r=>[be(t,r),n||void 0!==be(e,r)],me=`data-overlayscrollbars`,$e="os-environment",Se=`${$e}-scrollbar-hidden`,Oe=`${me}-initialize`,Me="noClipping",Ce=`${me}-body`,De=me,Te="host",Re=`${me}-viewport`,ke=U,He=Y,Ae="arrange",Pe="measuring",Ee="scrolling",Le="scrollbarHidden",ze="noContent",Ie=`${me}-padding`,_e=`${me}-content`,je="os-size-observer",Ne=`${je}-appear`,Fe=`${je}-listener`,Ve=`${Fe}-scroll`,Ke=`${Fe}-item`,Ze=`${Ke}-final`,We="os-trinsic-observer",Be="os-theme-none",Ue="os-scrollbar",Ye=`${Ue}-rtl`,Xe=`${Ue}-horizontal`,qe=`${Ue}-vertical`,Je=`${Ue}-track`,Ge=`${Ue}-handle`,Qe=`${Ue}-visible`,tn=`${Ue}-cornerless`,en=`${Ue}-interaction`,nn=`${Ue}-unusable`,rn=`${Ue}-auto-hide`,on=`${rn}-hidden`,sn=`${Ue}-wheel`,cn=`${Je}-interactive`,ln=`${Ge}-interactive`;let an,un;const dn=()=>(un||(un=(()=>{const t=(t,e,n)=>{Lt(document.body,t),Lt(document.body,t);const r=Jt(t),o=qt(t),s=Qt(e);return n&&Et(t),{x:o.h-r.h+s.h,y:o.w-r.w+s.w}},r=It(`<div class="${$e}"><div></div><style>${`.${$e}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${$e} div{width:200%;height:200%;margin:10px 0}.${Se}{scrollbar-width:none!important}.${Se}::-webkit-scrollbar,.${Se}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],o=r.firstChild,s=r.lastChild,i=an;i&&(s.nonce=i);const[c,,l]=fe(),[a,u]=e({o:t(r,o),i:nt},st(t,r,o,!0)),[d]=u(),p=(t=>{let e=!1;const n=Ct(t,Se);try{e="none"===Zt(t,"scrollbar-width")||"none"===Zt(t,"display","::-webkit-scrollbar")}catch(r){}return n(),e})(r),y={x:0===d.x,y:0===d.y},h={elements:{host:null,padding:!p,viewport:t=>p&&Rt(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},f=ut({},xe),b=st(ut,{},f),x=st(ut,{},h),g={T:d,k:y,R:p,V:!!v,L:st(c,"r"),U:x,P:t=>ut(h,t)&&x(),N:b,q:t=>ut(f,t)&&b(),j:ut({},h),B:ut({},f)};if(xt(r,"style"),Et(r),oe(n,"resize",(()=>{l("r",[])})),$(n.matchMedia)&&!p&&(!y.x||!y.y)){const t=e=>{const r=n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);oe(r,"change",(()=>{e(),t(e)}),{A:!0})};t((()=>{const[t,e]=a();ut(g.T,t),l("r",[e])}))}return g})()),un),pn=(t,e)=>$(e)?e.apply(0,t):e,yn=(t,e,n,r)=>{const o=b(r)?n:r;return pn(t,o)||e.apply(0,t)},hn=(t,e,n,r)=>{const o=b(r)?n:r,s=pn(t,o);return!!s&&(D(s)?s:e.apply(0,t))},fn=new WeakMap,vn=t=>fn.get(t),bn=(t,e,n,r)=>{let o=!1;const{F:s,X:i,Y:c,W:l,G:a,J:u}=r||{},d=ct((()=>o&&n(!0)),{_:33,v:99}),[p,h]=((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||Dt)(n,t):[],r]}));H(i,(n=>H(n[0],(s=>{const i=n[1],c=o.get(s)||[];if(t.contains(s)&&i){const t=oe(s,i,(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,E(c,t))}else j(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),f=i||[],v=P(s||[],f),b=(o,s)=>{if(!I(s)){const i=a||ot,c=u||ot,d=[],p=[];let y=!1,v=!1;if(H(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:h,removedNodes:b}=n,x="attributes"===a,g="childList"===a,m=t===s,$=x&&o,S=$&&ft(s,o||""),O=w(S)?S:null,M=$&&u!==O,C=A(f,o)&&M;if(e&&(g||!m)){const e=x&&M,a=e&&l&&Tt(s,l),p=(a?!i(s,o,u,O):!x||e)&&!c(n,!!a,t,r);H(h,(t=>E(d,t))),H(b,(t=>E(d,t))),v=v||p}!e&&m&&M&&!i(s,o,u,O)&&(E(p,o),y=y||C)})),h((t=>_(d).reduce(((e,n)=>(E(e,Dt(t,n)),Tt(n,t)?E(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!I(p)||y){const t=[_(p),y];return!o&&n.apply(0,t),t}}},x=new y(st(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.m(),b(!0,x.takeRecords())}]},xn={},gn={},wn=(t,e,n)=>at(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||gn)[r]=t}})),mn=t=>gn[t],$n="__osOptionsValidationPlugin",Sn="__osSizeObserverPlugin",On=(()=>({[Sn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=It(`<div class="${Ke}" dir="ltr"><div class="${Ke}"><div class="${Ze}"></div></div><div class="${Ke}"><div class="${Ze}" style="width: 200%; height: 200%"></div></div></div>`),i=s[0],c=i.lastChild,u=i.firstChild,d=null==u?void 0:u.firstChild;let p,y=qt(i),h=y,f=!1;const v=()=>{le(u,r),le(c,r)},b=t=>{p=0,f&&(y=h,e(!0===t))},x=t=>{h=qt(i),f=!t||!et(h,y),t?(se(t),f&&!p&&(l(p),p=a(b))):b(!1===t),v()},g=[Lt(t,s),oe(u,o,x),oe(c,o,x)];return Ct(t,Ve),Kt(d,{[X]:r,[q]:r}),a(v),[n?st(x,!1):v,g]}}}))(),Mn=(t,e)=>{const{k:n}=e,[r,o]=t("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,o]},Cn=t=>0===t.indexOf(J),Dn=(t,e)=>{const n=(t,e,n,r)=>{const o=t===J?G:t.replace(`${J}-`,""),s=Cn(t),i=Cn(n);return e||r?s&&i?J:s?e&&r?o:e?J:G:e?o:i&&r?J:G:G},r={x:n(e.x,t.x,e.y,t.y),y:n(e.y,t.y,e.x,t.x)};return{K:r,Z:{x:r.x===Q,y:r.y===Q}}},Tn="__osScrollbarsHidingPlugin",Rn=(()=>({[Tn]:{static:()=>({tt:(t,e,n,r,o)=>{const{nt:s,ot:i}=t,{R:c,k:l,T:a}=r,u=!s&&!c&&(l.x||l.y),[d]=Mn(o,r),p=t=>{const{Z: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{st:{x:o,y:i},et:{x:s,y:u}}},y=(t,{ct:n},r)=>{if(!s){const o=ut({},{[W]:0,[B]:0,[Z]:0}),{st:s,et:i}=p(t),{x:c,y:l}=i,{x:a,y:u}=s,{rt:d}=e,y=n?Z:W,h=n?V:F,f=d[y],v=d[B],b=d[h],x=d[K];return o[X]=`calc(100% + ${u+-1*f}px)`,o[y]=-u+f,o[B]=-a+v,r&&(o[h]=b+(l?u:0),o[K]=x+(c?a:0)),o}};return{lt:p,it:(t,r,o)=>{if(u){const{rt:s}=e,{st:c,et:l}=p(t),{x:a,y:u}=l,{x:d,y}=c,{ct:h}=n,f=s[h?F:V],v=s.paddingTop,b=r.w+o.w,x=r.h+o.h,g={w:y&&u?`${y+b-f}px`:"",h:d&&a?`${d+x-v}px`:""};Kt(i,{"--os-vaw":g.w,"--os-vah":g.h})}return u},ut:t=>{if(u){const r=t||(()=>{const t=t=>{const e=Zt(i,t);return[e,e===Q]},[e,n]=t(U),[r,o]=t(Y);return{K:{x:e,y:r},Z:{x:n,y:o}}})(),{rt:o}=e,{et:s}=p(r),{x:c,y:l}=s,a={},d=t=>H(t,(t=>{a[t]=o[t]}));c&&d([B,N,K]),l&&d([Z,W,V,F]);const h=Zt(i,at(a)),f=wt(i,Re,Ae);return Kt(i,a),[()=>{Kt(i,ut({},h,y(r,n,u))),f()},r]}return[ot]},_t:y}}})}}))(),kn="__osClickScrollPlugin",Hn=(()=>({[kn]:{static:()=>(t,e,n,r)=>{let o=!1,s=ot;const i=133,c=222,[l,a]=it(i),u=Math.sign(e),d=n*u,p=d/2,y=t=>1-(1-t)*(1-t),h=(e,n)=>k(e,n,c,t,y),f=(n,r)=>k(n,e-d,i*r,((n,r,o)=>{t(n),o&&(s=h(n,e))})),v=k(0,d,c,((i,c,a)=>{if(t(i),a&&(r(o),!o)){const t=e-i;Math.sign(t-p)===u&&l((()=>{const r=t-d,o=Math.sign(r)===u;s=o?f(i,Math.abs(r)/n):h(i,e)}))}}),y);return t=>{o=!0,t&&v(),a(),s()}}}}))(),An=(t,n,r)=>{const{dt:o}=r||{},s=mn(Sn),[i]=e({o:!1,u:!0});return()=>{const e=[],r=It(`<div class="${je}"><div class="${Fe}"></div></div>`)[0],c=r.firstChild,l=t=>{let e=!1,r=!1;if(t instanceof ResizeObserverEntry){const[n,,o]=i(t.contentRect),s=ee(n);r=ne(n,o),e=!r&&!s}else r=!0===t;e||n({ft:!0,dt:r})};if(f){const t=new f((t=>l(t.pop())));t.observe(c),E(e,(()=>{t.disconnect()}))}else{if(!s)return ot;{const[t,n]=s(c,l,o);E(e,P([Ct(r,Ne),oe(r,"animationstart",t)],n))}}return st(j,E(e,Lt(t,r)))}},Pn=(t,n)=>{let r;const o=zt(We),[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(st(c,!1),{root:t}),r.observe(o),E(e,(()=>{r.disconnect()}));else{const t=()=>{const t=qt(o);i(t)};E(e,An(o,t)()),t()}return st(j,E(e,Lt(t,o)))},()=>r&&c(!0,r.takeRecords())]},En=(t,n,r,o)=>{let s,i,c,l,a,u;const d=`[${De}]`,p=`[${Re}]`,y=["id","class","style","open","wrap","cols","rows"],{vt:h,ht:v,ot:b,gt:x,bt:w,nt:m,yt:O,wt:M,St:C,Ot:D}=t,R=t=>"rtl"===Zt(t,"direction"),k={$t:!1,ct:R(h)},H=dn(),A=mn(Tn),[E]=e({i:et,o:{w:0,h:0}},(()=>{const e=A&&A.tt(t,n,k,H,r).ut,o=!(O&&m)&&St(v,De,Me),s=!m&&M(Ae),i=s&&ae(x),c=i&&D(),l=C(Pe,o),a=s&&e&&e()[0],u=Gt(b),d=Qt(b);return a&&a(),le(x,i),c&&c(),o&&l(),{w:u.w+d.w,h:u.h+d.h}})),L=ct(o,{_:()=>s,v:()=>i,S(t,e){const[n]=t,[r]=e;return[P(at(n),at(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),z=t=>{const e=R(h);ut(t,{Ct:u!==e}),ut(k,{ct:e}),u=e},I=(t,e)=>{const[n,r]=t,s={xt:r};return ut(k,{$t:n}),!e&&o(s),s},_=({ft:t,dt:e})=>{const n=t&&!e||!H.R?o:L,r={ft:t||e,dt:e};z(r),n(r)},j=(t,e)=>{const[,n]=E(),r={Ht:n};return z(r),n&&!e&&(t?o:L)(r),r},N=(t,e,n)=>{const r={Et:e};return z(r),e&&!n&&L(r),r},[F,V]=w?Pn(v,I):[],K=!m&&An(v,_,{dt:!0}),[Z,W]=bn(v,!1,N,{X:y,F:y}),B=m&&f&&new f((t=>{const e=t[t.length-1].contentRect;_({ft:!0,dt:ne(e,a)}),a=e})),U=ct((()=>{const[,t]=E();o({Ht:t})}),{_:222,p:!0});return[()=>{B&&B.observe(v);const t=K&&K(),e=F&&F(),n=Z(),r=H.L((t=>{t?L({zt:t}):U()}));return()=>{B&&B.disconnect(),t&&t(),e&&e(),l&&l(),n(),r()}},({It:t,At:e,Dt:n})=>{const r={},[o]=t("update.ignoreMutation"),[a,u]=t("update.attributes"),[h,f]=t("update.elementEvents"),[v,x]=t("update.debounce"),O=e||n;if(f||u){c&&c(),l&&l();const[t,e]=bn(w||b,!0,j,{F:P(y,a||[]),Y:h,W:d,J:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||m)&&((t,e,n)=>{const r=At(t,e),o=t&&((t,e)=>{const n=e?T(e)&&e:document;return n&&n.querySelector(t)})(n,r),s=At(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&At(At(t,n),e)!==r)})(n,d,p)||!!At(n,`.${Ue}`)||!!(t=>$(o)&&o(t))(t)}});l=t(),c=e}if(x)if(L.m(),S(v)){const t=v[0],e=v[1];s=g(t)&&t,i=g(e)&&e}else g(v)?(s=v,i=!1):(s=!1,i=!1);if(O){const t=W(),e=V&&V(),n=c&&c();t&&ut(r,N(t[0],t[1],O)),e&&ut(r,I(e[0],O)),n&&ut(r,j(n[0],O))}return z(r),r},k]},Ln=(t,e,n,r)=>{const o="--os-viewport-percent",s="--os-scroll-percent",i="--os-scroll-direction",{U:c}=dn(),{scrollbars:l}=c(),{slot:a}=l,{vt:u,ht:d,ot:p,Mt:y,gt:h,yt:f,nt:b}=e,{scrollbars:x}=y?{}:t,{slot:g}=x||{},w=[],$=[],S=[],O=hn([u,d,p],(()=>b&&f?u:d),a,g),M=t=>{if(v){const e=new v({source:h,axis:t}),n=t=>{const n=t.Tt.animate({clear:["left"],[s]:[0,1]},{timeline:e});return()=>n.cancel()};return{kt:n}}},C={x:M("x"),y:M("y")},D=(t,e,n)=>{const r=n?Ct:Mt;H(t,(t=>{r(t.Tt,e)}))},T=(t,e)=>{H(t,(t=>{const[n,r]=e(t);Kt(n,r)}))},R=(t,e,n)=>{const r=m(n),o=!r||!n;(!r||n)&&D($,t,e),o&&D(S,t,e)},k=t=>{const e=t?"x":"y",n=zt(`${Ue} ${t?Xe:qe}`),o=zt(Je),s=zt(Ge),i={Tt:n,Ut:o,Pt:s},c=C[e];return E(t?$:S,i),E(w,[Lt(n,o),Lt(o,s),st(Et,n),c&&c.kt(i),r(i,R,t)]),i},A=st(k,!0),P=st(k,!1);return A(),P(),[{Nt:()=>{const t=(()=>{const{Rt:t,Vt:e}=n,r=(t,e)=>yt(0,1,t/(t+e)||0);return{x:r(e.x,t.x),y:r(e.y,t.y)}})(),e=t=>e=>[e.Tt,{[o]:Ft(t)+""}];T($,e(t.x)),T(S,e(t.y))},qt:()=>{if(!v){const{Lt:t}=n,e=pe(t,ae(h)),r=t=>e=>[e.Tt,{[s]:Ft(t)+""}];T($,r(e.x)),T(S,r(e.y))}},jt:()=>{const{Lt:t}=n,e=de(t),r=t=>e=>[e.Tt,{[i]:t?"0":"1"}];T($,r(e.x)),T(S,r(e.y))},Bt:()=>{if(b&&!f){const{Rt:t,Lt:e}=n,r=de(e),o=pe(e,ae(h)),s=e=>{const{Tt:n}=e,s=Ht(n)===p&&n,i=(t,e,n)=>{const r=e*t;return Vt(n?r:-r)};return[s,s&&{transform:Bt({x:i(o.x,t.x,r.x),y:i(o.y,t.y,r.y)})}]};T($,s),T(S,s)}},Ft:R,Xt:{Yt:$,Wt:A,Gt:st(T,$)},Jt:{Yt:S,Wt:P,Gt:st(T,S)}},()=>(Lt(O,$[0].Tt),Lt(O,S[0].Tt),st(j,w))]},zn=(t,e,n,r)=>(o,c,l)=>{const{ht:a,ot:d,nt:p,gt:y,Kt:h,Ot:f}=e,{Tt:v,Ut:b,Pt:x}=o,[g,w]=it(333),[m,S]=it(444),O=t=>{$(y.scrollBy)&&y.scrollBy({behavior:"smooth",left:t.x,top:t.y})};let M=!0;return st(j,[oe(x,"pointermove pointerleave",r),oe(v,"pointerenter",(()=>{c(en,!0)})),oe(v,"pointerleave pointercancel",(()=>{c(en,!1)})),!p&&oe(v,"mousedown",(()=>{const t=Pt();(vt(t,Re)||vt(t,De)||t===document.body)&&u(st(ye,d),25)})),oe(v,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;M&&0===r&&Ht(v)===a&&O({x:e,y:n}),M=!1,c(sn,!0),g((()=>{M=!0,c(sn)})),ie(t)}),{H:!1,I:!0}),oe(v,"pointerdown",st(oe,h,"click",ce,{A:!0,I:!0,H:!1}),{I:!0}),(()=>{const e="pointerup pointercancel lostpointercapture",r=`client${l?"X":"Y"}`,o=l?X:q,c=l?"left":"top",a=l?"w":"h",u=l?"x":"y",d=(t,e)=>r=>{const{Rt:o}=n,s=qt(b)[a]-qt(x)[a],i=e*r/s*o[u];le(y,{[u]:t+i})},p=[];return oe(b,"pointerdown",(n=>{const l=At(n.target,`.${Ge}`)===x,v=l?x:b,g=t.scrollbars,w=g[l?"dragScroll":"clickScroll"],{button:$,isPrimary:M,pointerType:C}=n,{pointers:D}=g;if(0===$&&M&&w&&(D||[]).includes(C)){j(p),S();const t=!l&&(n.shiftKey||"instant"===w),g=st(te,x),$=st(te,b),M=(t,e)=>(t||g())[c]-(e||$())[c],C=s(te(y)[o])/qt(y)[a]||1,D=d(ae(y)[u],1/C),T=n[r],R=g(),k=$(),H=R[o],A=M(R,k)+H/2,P=T-k[c],L=l?0:P-A,z=t=>{j(N),v.releasePointerCapture(t.pointerId)},I=l||t,_=f(),N=[oe(h,e,z),oe(h,"selectstart",(t=>ie(t)),{H:!1}),oe(b,e,z),I&&oe(b,"pointermove",(t=>D(L+(t[r]-T)))),I&&(()=>{const t=ae(y);_();const e=ae(y),n={x:e.x-t.x,y:e.y-t.y};(i(n.x)>3||i(n.y)>3)&&(f(),le(y,t),O(n),m(_))})];if(v.setPointerCapture(n.pointerId),t)D(L);else if(!l){const t=mn(kn);if(t){const e=t(D,L,H,(t=>{t?_():E(N,_)}));E(N,e),E(p,st(e,!0))}}}}))})(),w,S])},In=t=>{const e=dn(),{U:r,R:o}=e,{elements:s}=r(),{padding:i,viewport:c,content:l}=s,a=D(t),u=a?{}:t,{elements:d}=u,{padding:p,viewport:y,content:h}=d||{},f=a?t:u.target,v=Rt(f),b=f.ownerDocument,x=b.documentElement,g=()=>b.defaultView||n,w=st(yn,[f]),m=st(hn,[f]),$=st(zt,""),S=st(w,$,c),O=st(m,$,l),M=S(y),C=M===f,T=C&&v,R=!C&&O(h),k=!C&&M===R,H=T?x:M,P=T?H:f,L=!C&&m($,i,p),z=!k&&R,I=[z,H,L,P].map((t=>D(t)&&!Ht(t)&&t)),_=t=>t&&A(I,t),N=!_(H)&&(t=>{const e=qt(t),n=Gt(t),r=Zt(t,U),o=Zt(t,Y);return n.w-e.w>0&&!Cn(r)||n.h-e.h>0&&!Cn(o)})(H)?H:f,F=T?x:H,V={vt:f,ht:P,ot:H,ln:L,bt:z,gt:F,Qt:T?b:H,an:v?x:N,Kt:b,yt:v,Mt:a,nt:C,un:g,wt:t=>St(H,Re,t),St:(t,e)=>$t(H,Re,t,e),Ot:()=>$t(F,Re,Ee,!0)},{vt:K,ht:Z,ln:W,ot:B,bt:X}=V,q=[()=>{xt(Z,[De,Oe]),xt(K,Oe),v&&xt(x,[Oe,De])}];let J=kt([X,B,W,Z,K].find((t=>t&&!_(t))));const G=T?K:X||B,Q=st(j,q);return[V,()=>{const t=g(),e=Pt(),n=t=>{Lt(Ht(t),kt(t)),Et(t)},r=t=>oe(t,"focusin focusout focus blur",ce,{I:!0,H:!1}),s="tabindex",i=ft(B,s),c=r(e);return bt(Z,De,C?"":Te),bt(W,Ie,""),bt(B,Re,""),bt(X,_e,""),C||(bt(B,s,i||"-1"),v&&bt(x,Ce,"")),Lt(G,J),Lt(Z,W),Lt(W||Z,!C&&B),Lt(B,X),E(q,[c,()=>{const t=Pt(),e=_(B),o=e&&t===B?K:t,c=r(o);xt(W,Ie),xt(X,_e),xt(B,Re),v&&xt(x,Ce),i?bt(B,s,i):xt(B,s),_(X)&&n(X),e&&n(B),_(W)&&n(W),ye(o),c()}]),o&&!C&&(mt(B,Re,Le),E(q,st(xt,B,Re))),ye(!C&&v&&e===K&&t.top===t?B:e),c(),J=0,Q},Q]},_n=({bt:t})=>({Zt:e,_n:n,Dt:r})=>{const{xt:o}=e||{},{$t:s}=n;t&&(o||r)&&Kt(t,{[q]:s&&"100%"})},jn=({ht:t,ln:n,ot:r,nt:o},s)=>{const[i,c]=e({i:rt,o:Wt()},st(Wt,t,"padding",""));return({It:t,Zt:e,_n:l,Dt:a})=>{let[u,d]=c(a);const{R:p}=dn(),{ft:y,Ht:h,Ct:f}=e||{},{ct:v}=l,[b,x]=t("paddingAbsolute");(y||d||a||h)&&([u,d]=i(a));const g=!o&&(x||f||d);if(g){const t=!b||!n&&!p,e=u.r+u.l,o=u.t+u.b,i={[W]:t&&!v?-e:0,[B]:t?-o:0,[Z]:t&&v?-e:0,top:t?-u.t:0,right:t?v?-u.r:"auto":0,left:t?v?"auto":-u.l:0,[X]:t&&`calc(100% + ${e}px)`},c={[N]:t?u.t:0,[F]:t?u.r:0,[K]:t?u.b:0,[V]:t?u.l:0};Kt(n||r,i),Kt(r,c),ut(s,{ln:u,dn:!t,rt:n?c:ut({},i,c)})}return{fn:g}}},Nn=(t,o)=>{const s=dn(),{ht:i,ln:c,ot:l,nt:u,Qt:d,gt:p,yt:y,St:h,un:f}=t,{R:v}=s,b=y&&u,x=st(r,0),g={display:()=>!1,direction:t=>"ltr"!==t,flexDirection:t=>t.endsWith("-reverse"),writingMode:t=>"horizontal-tb"!==t},w=at(g),m={i:et,o:{w:0,h:0}},$={i:nt,o:{}},S=t=>{h(Pe,!b&&t)},O=t=>{const e=w.some((e=>{const n=t[e];return n&&g[e](n)}));if(!e)return{D:{x:0,y:0},M:{x:1,y:1}};S(!0);const n=ae(p),r=h(ze,!0),o=oe(d,Q,(t=>{const e=ae(p);t.isTrusted&&e.x===n.x&&e.y===n.y&&se(t)}),{I:!0,A:!0});le(p,{x:0,y:0}),r();const s=ae(p),i=Gt(p);le(p,{x:i.w,y:i.h});const c=ae(p);le(p,{x:c.x-s.x<1&&-i.w,y:c.y-s.y<1&&-i.h});const l=ae(p);return le(p,n),a((()=>o())),{D:s,M:l}},M=(t,e)=>{const r=n.devicePixelRatio%1!=0?1:0,o={w:x(t.w-e.w),h:x(t.h-e.h)};return{w:o.w>r?o.w:0,h:o.h>r?o.h:0}},[C,D]=e(m,st(Qt,l)),[T,R]=e(m,st(Gt,l)),[k,H]=e(m),[A]=e($),[P,E]=e(m),[L]=e($),[z]=e({i:(t,e)=>tt(t,e,w),o:{}},(()=>(t=>!!t&&(t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t))(l)?Zt(l,w):{})),[I,_]=e({i:(t,e)=>nt(t.D,e.D)&&nt(t.M,e.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),j=mn(Tn),N=(t,e)=>`${e?ke:He}${(t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""})(t)}`,F=t=>{const e=t=>[J,G,Q].map((e=>N(e,t))),n=e(!0).concat(e()).join(" ");h(n),h(at(t).map((e=>N(t[e],"x"===e))).join(" "),!0)};return({It:e,Zt:n,_n:r,Dt:a},{fn:u})=>{const{ft:d,Ht:p,Ct:y,dt:g,zt:w}=n||{},m=j&&j.tt(t,o,r,s,e),{it:$,ut:N,_t:V}=m||{},[K,Z]=Mn(e,s),[W,B]=e("overflow"),U=Cn(W.x),Y=Cn(W.y);let X=D(a),q=R(a),J=H(a),G=E(a);Z&&v&&h(Le,!K);{St(i,De,Me)&&S(!0);const[t]=N?N():[],[e]=X=C(a),[n]=q=T(a),r=Jt(l),o=b&&Xt(f()),s={w:x(n.w+e.w),h:x(n.h+e.h)},c={w:x((o?o.w:r.w+x(r.w-n.w))+e.w),h:x((o?o.h:r.h+x(r.h-n.h))+e.h)};t&&t(),G=P(c),J=k(M(s,c),a)}const[Q,tt]=G,[et,nt]=J,[rt,ot]=q,[st,it]=X,[ct,lt]=A({x:et.w>0,y:et.h>0}),at=U&&Y&&(ct.x||ct.y)||U&&ct.x&&!ct.y||Y&&ct.y&&!ct.x,dt=u||y||w||it||ot||tt||nt||B||Z||!0,pt=Dn(ct,W),[yt,ht]=L(pt.K),[ft,vt]=z(a),bt=y||g||vt||lt||a,[xt,gt]=bt?I(O(ft),a):_();return dt&&(ht&&F(pt.K),V&&$&&Kt(l,V(pt,r,$(pt,rt,st)))),S(!1),$t(i,De,Me,at),$t(c,Ie,Me,at),ut(o,{K:yt,Vt:{x:Q.w,y:Q.h},Rt:{x:et.w,y:et.h},rn:ct,Lt:ue(xt,et)}),{en:ht,nn:tt,sn:nt,cn:gt||nt,vn:bt}}},Fn=t=>{const[e,n,r]=In(t),o={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[W]:0,[B]:0,[Z]:0,[N]:0,[F]:0,[K]:0,[V]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:G,y:G},rn:{x:!1,y:!1},Lt:{D:{x:0,y:0},M:{x:0,y:0}}},{vt:s,gt:i,nt:c,Ot:l}=e,{R:a,k:u}=dn(),d=!a&&(u.x||u.y),p=[_n(e),jn(e,o),Nn(e,o)];return[n,t=>{const e={},n=d&&ae(i),r=n&&l();return H(p,(n=>{ut(e,n(t,e)||{})})),le(i,n),r&&r(),!c&&le(s,0),e},o,e,r]},Vn=(t,e,n)=>{const{N:r}=dn(),o=D(t),s=o?t:t.target,i=vn(s);if(e&&!i){let i=!1;const c=[],l={},a=t=>{const e=dt(t,!0),n=mn($n);return n?n(e,!0):e},u=ut({},r(),a(e)),[d,p,y]=fe(),[h,f,v]=fe(n),g=(t,e)=>{v(t,e),y(t,e)},[w,m,$,S,O]=((t,e,n,r,o)=>{let s=!1;const i=we(e,{}),[c,l,a,u,d]=Fn(t),[p,y,h]=En(u,a,i,(t=>{w({},t)})),[f,v,,b]=((t,e,n,r,o,s)=>{let i,c,l,a,u,d=ot,p=0;const y=t=>"mouse"===t.pointerType,[h,f]=it(),[v,b]=it(100),[x,g]=it(100),[w,m]=it((()=>p)),[$,S]=Ln(t,o,r,zn(e,o,r,(t=>y(t)&&P()))),{ht:O,Qt:M,yt:C}=o,{Ft:D,Nt:T,qt:R,jt:k,Bt:H}=$,A=(t,e)=>{if(m(),t)D(on);else{const t=st(D,on,!0);p>0&&!e?w(t):t()}},P=()=>{(l?i:a)||(A(!0),v((()=>{A(!1)})))},L=t=>{D(rn,t,!0),D(rn,t,!1)},z=t=>{y(t)&&(i=l,l&&A(!0))},I=[m,b,g,f,()=>d(),oe(O,"pointerover",z,{A:!0}),oe(O,"pointerenter",z),oe(O,"pointerleave",(t=>{y(t)&&(i=!1,l&&A(!1))})),oe(O,"pointermove",(t=>{y(t)&&c&&P()})),oe(M,"scroll",(t=>{h((()=>{R(),P()})),s(t),H()}))];return[()=>st(j,E(I,S())),({It:t,Dt:e,Zt:o,tn:s})=>{const{nn:i,sn:y,en:h,cn:f}=s||{},{Ct:v,dt:b}=o||{},{ct:g}=n,{k:w}=dn(),{K:m,rn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[P,E]=t("scrollbars.theme"),[z,I]=t("scrollbars.visibility"),[_,j]=t("scrollbars.autoHide"),[N,F]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[K,Z]=t("scrollbars.dragScroll"),[W,B]=t("scrollbars.clickScroll"),[U,Y]=t("overflow"),X=b&&!e,q=$.x||$.y,G=i||y||f||v||e,tt=h||I||Y,et=S&&w.x&&w.y,nt=(t,e,n)=>{const r=t.includes(Q)&&(z===J||"auto"===z&&e===Q);return D(Qe,r,n),r};if(p=V,X&&(N&&q?(L(!1),d(),x((()=>{d=oe(M,"scroll",st(L,!0),{A:!0})}))):L(!0)),O&&D(Be,et),E&&(D(u),D(P,!0),u=P),F&&!N&&L(!0),j&&(c="move"===_,l="leave"===_,a="never"===_,A(a,!0)),Z&&D(ln,K),B&&D(cn,!!W),tt){const t=nt(U.x,m.x,!0),e=nt(U.y,m.y,!1);D(tn,!(t&&e))}G&&(R(),T(),H(),f&&k(),D(nn,!$.x,!0),D(nn,!$.y,!1),D(Ye,g&&!C))},{},$]})(t,e,h,a,u,(t=>g("scroll",[C,t]))),x=t=>at(t).some((e=>!!t[e])),w=(t,o)=>{if(n())return!1;const{pn:i,Dt:c,At:a,hn:u}=t,d=i||{},p=!!c||!s,f={It:we(e,d,p),pn:d,Dt:p};if(u)return v(f),!1;const b=o||y(ut({},f,{At:a})),g=l(ut({},f,{_n:h,Zt:b}));v(ut({},f,{Zt:b,tn:g}));const w=x(b),m=x(g),$=w||m||!pt(d)||p;return s=!0,$&&r(t,{Zt:b,tn:g}),$};return[()=>{const{an:t,gt:e,Ot:n}=u,r=ae(t),o=[p(),c(),f()],s=n();return le(e,r),s(),st(j,o)},w,()=>({gn:h,bn:a}),{yn:u,wn:b},d]})(t,u,(()=>i),(({pn:t,Dt:e},{Zt:n,tn:r})=>{const{ft:o,Ct:s,xt:i,Ht:c,Et:l,dt:a}=n,{nn:u,sn:d,en:p,cn:y}=r;g("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}])})),M=t=>{(t=>{fn.delete(t)})(s),j(c),i=!0,g("destroyed",[C,t]),p(),f()},C={options(t,e){if(t){const n=e?r():{},o=ge(u,ut(n,a(t)));pt(o)||(ut(u,o),m({pn:o}))}return ut({},u)},on:h,off:(t,e)=>{t&&e&&f(t,e)},state(){const{gn:t,bn:e}=$(),{ct:n}=t,{Vt:r,Rt:o,K:s,rn:c,ln:l,dn:a,Lt:u}=e;return ut({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:c,scrollCoordinates:{start:u.D,end:u.M},padding:l,paddingAbsolute:a,directionRTL:n,destroyed:i})},elements(){const{vt:t,ht:e,ln:n,ot:r,bt:o,gt:s,Qt:i}=S.yn,{Xt:c,Jt:l}=S.wn,a=t=>{const{Pt:e,Ut:n,Tt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{Yt:e,Wt:n}=t,r=a(e[0]);return ut({},r,{clone:()=>{const t=a(n());return m({hn:!0}),t}})};return ut({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:i,scrollbarHorizontal:u(c),scrollbarVertical:u(l)})},update:t=>m({Dt:t,At:!0}),destroy:st(M,!1),plugin:t=>l[at(t)[0]]};return E(c,[O]),((t,e)=>{fn.set(t,e)})(s,C),wn(xn,Vn,[C,d,l]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{k:o,R:s,U:i}=dn(),{nativeScrollbarsOverlaid:c,body:l}=i().cancel,a=null!=n?n:c,u=b(r)?l:r,d=(o.x||o.y)&&a,p=t&&(x(u)?!s:u);return!!d||!!p})(S.yn.yt,!o&&t.cancel)?(M(!0),C):(E(c,w()),g("initialized",[C]),C.update(),C)}return i};return Vn.plugin=t=>{const e=S(t),n=e?t:[t],r=n.map((t=>wn(t,Vn)[0]));return(t=>{H(t,(t=>H(t,((e,n)=>{xn[n]=t[n]}))))})(n),e?r:r[0]},Vn.valid=t=>{const e=t&&t.elements,n=$(e)&&e();return C(n)&&!!vn(n.target)},Vn.env=()=>{const{T:t,k:e,R:n,V:r,j:o,B:s,U:i,P:c,N:l,q:a}=dn();return ut({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:o,staticDefaultOptions:s,getDefaultInitialization:i,setDefaultInitialization:c,getDefaultOptions:l,setDefaultOptions:a})},Vn.nonce=t=>{an=t},t.ClickScrollPlugin=Hn,t.OverlayScrollbars=Vn,t.ScrollbarsHidingPlugin=Rn,t.SizeObserverPlugin=On,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});