(function(U,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],I):(U=typeof globalThis<"u"?globalThis:U||self,I(U.VueSmoothScrollbarTs={},U.Vue))})(this,function(U,I){"use strict";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var $r=function(e,r){return $r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])},$r(e,r)};function Vi(e,r){$r(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var F=function(){return F=Object.assign||function(r){for(var t,n=1,a=arguments.length;n=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(r,t,i):o(r,t))||i);return a>3&&i&&Object.defineProperty(r,t,i),i}function Hi(){for(var e=0,r=0,t=arguments.length;r0&&M[0]<4?1:+(M[0]+M[1])),!Ae&&Pr&&(M=Pr.match(/Edge\/(\d+)/),(!M||M[1]>=74)&&(M=Pr.match(/Chrome\/(\d+)/),M&&(Ae=+M[1])));var $o=Ae,Yt=$o,bo=S,So=E,wo=So.String,en=!!Object.getOwnPropertySymbols&&!bo(function(){var e=Symbol("symbol detection");return!wo(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Yt&&Yt<41}),Oo=en,rn=Oo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Io=E,To=Kt,tn=j,Eo=Er,Po=en,_o=rn,re=Io.Symbol,_r=To("wks"),xo=_o?re.for||re:re&&re.withoutSetter||Eo,x=function(e){return tn(_r,e)||(_r[e]=Po&&tn(re,e)?re[e]:xo("Symbol."+e)),_r[e]},xr=typeof document=="object"&&document.all,O=typeof xr>"u"&&xr!==void 0?function(e){return typeof e=="function"||e===xr}:function(e){return typeof e=="function"},Ao=O,T=function(e){return typeof e=="object"?e!==null:Ao(e)},Ro=T,jo=String,Mo=TypeError,N=function(e){if(Ro(e))return e;throw new Mo(jo(e)+" is not an object")},nn={},Co=S,P=!Co(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Do=P,Fo=S,an=Do&&Fo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),C={},No=E,on=T,Ar=No.document,zo=on(Ar)&&on(Ar.createElement),sn=function(e){return zo?Ar.createElement(e):{}},Bo=P,Lo=S,ko=sn,un=!Bo&&!Lo(function(){return Object.defineProperty(ko("div"),"a",{get:function(){return 7}}).a!==7}),Go=br,Re=Function.prototype.call,D=Go?Re.bind(Re):function(){return Re.apply(Re,arguments)},Rr=E,Wo=O,Uo=function(e){return Wo(e)?e:void 0},te=function(e,r){return arguments.length<2?Uo(Rr[e]):Rr[e]&&Rr[e][r]},Vo=$,jr=Vo({}.isPrototypeOf),Ho=te,Ko=O,Xo=jr,qo=rn,Jo=Object,cn=qo?function(e){return typeof e=="symbol"}:function(e){var r=Ho("Symbol");return Ko(r)&&Xo(r.prototype,Jo(e))},Zo=String,Mr=function(e){try{return Zo(e)}catch{return"Object"}},Qo=O,Yo=Mr,es=TypeError,ne=function(e){if(Qo(e))return e;throw new es(Yo(e)+" is not a function")},rs=ne,ts=Y,Cr=function(e,r){var t=e[r];return ts(t)?void 0:rs(t)},Dr=D,Fr=O,Nr=T,ns=TypeError,as=function(e,r){var t,n;if(r==="string"&&Fr(t=e.toString)&&!Nr(n=Dr(t,e))||Fr(t=e.valueOf)&&!Nr(n=Dr(t,e))||r!=="string"&&Fr(t=e.toString)&&!Nr(n=Dr(t,e)))return n;throw new ns("Can't convert object to primitive value")},is=D,fn=T,vn=cn,os=Cr,ss=as,us=x,cs=TypeError,fs=us("toPrimitive"),vs=function(e,r){if(!fn(e)||vn(e))return e;var t=os(e,fs),n;if(t){if(r===void 0&&(r="default"),n=is(t,e,r),!fn(n)||vn(n))return n;throw new cs("Can't convert object to primitive value")}return r===void 0&&(r="number"),ss(e,r)},ls=vs,ds=cn,ln=function(e){var r=ls(e,"string");return ds(r)?r:r+""},hs=P,ps=un,ys=an,je=N,dn=ln,gs=TypeError,zr=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,Br="enumerable",Lr="configurable",kr="writable";C.f=hs?ys?function(r,t,n){if(je(r),t=dn(t),je(n),typeof r=="function"&&t==="prototype"&&"value"in n&&kr in n&&!n[kr]){var a=ms(r,t);a&&a[kr]&&(r[t]=n.value,n={configurable:Lr in n?n[Lr]:a[Lr],enumerable:Br in n?n[Br]:a[Br],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(je(r),t=dn(t),je(n),ps)try{return zr(r,t,n)}catch{}if("get"in n||"set"in n)throw new gs("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var $s=Math.ceil,bs=Math.floor,Ss=Math.trunc||function(r){var t=+r;return(t>0?bs:$s)(t)},ws=Ss,Me=function(e){var r=+e;return r!==r||r===0?0:ws(r)},Os=Me,Is=Math.max,Ts=Math.min,Es=function(e,r){var t=Os(e);return t<0?Is(t+r,0):Ts(t,r)},Ps=Me,_s=Math.min,xs=function(e){var r=Ps(e);return r>0?_s(r,9007199254740991):0},As=xs,Ce=function(e){return As(e.length)},Rs=ee,js=Es,Ms=Ce,hn=function(e){return function(r,t,n){var a=Rs(r),i=Ms(a);if(i===0)return!e&&-1;var o=js(n,i),u;if(e&&t!==t){for(;i>o;)if(u=a[o++],u!==u)return!0}else for(;i>o;o++)if((e||o in a)&&a[o]===t)return e||o||0;return!e&&-1}},Cs={includes:hn(!0),indexOf:hn(!1)},De={},Ds=$,Gr=j,Fs=ee,Ns=Cs.indexOf,zs=De,pn=Ds([].push),yn=function(e,r){var t=Fs(e),n=0,a=[],i;for(i in t)!Gr(zs,i)&&Gr(t,i)&&pn(a,i);for(;r.length>n;)Gr(t,i=r[n++])&&(~Ns(a,i)||pn(a,i));return a},Wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bs=yn,Ls=Wr,gn=Object.keys||function(r){return Bs(r,Ls)},ks=P,Gs=an,Ws=C,Us=N,Vs=ee,Hs=gn;nn.f=ks&&!Gs?Object.defineProperties:function(r,t){Us(r);for(var n=Vs(t),a=Hs(t),i=a.length,o=0,u;i>o;)Ws.f(r,u=a[o++],n[u]);return r};var Ks=te,Xs=Ks("document","documentElement"),qs=Kt,Js=Er,mn=qs("keys"),Ur=function(e){return mn[e]||(mn[e]=Js(e))},Zs=N,Qs=nn,$n=Wr,Ys=De,eu=Xs,ru=sn,tu=Ur,bn=">",Sn="<",Vr="prototype",Hr="script",wn=tu("IE_PROTO"),Kr=function(){},On=function(e){return Sn+Hr+bn+e+Sn+"/"+Hr+bn},In=function(e){e.write(On("")),e.close();var r=e.parentWindow.Object;return e=null,r},nu=function(){var e=ru("iframe"),r="java"+Hr+":",t;return e.style.display="none",eu.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(On("document.F=Object")),t.close(),t.F},Fe,Ne=function(){try{Fe=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Fe?In(Fe):nu():In(Fe);for(var e=$n.length;e--;)delete Ne[Vr][$n[e]];return Ne()};Ys[wn]=!0;var Xr=Object.create||function(r,t){var n;return r!==null?(Kr[Vr]=Zs(r),n=new Kr,Kr[Vr]=null,n[wn]=r):n=Ne(),t===void 0?n:Qs.f(n,t)},au=x,iu=Xr,ou=C.f,qr=au("unscopables"),Jr=Array.prototype;Jr[qr]===void 0&&ou(Jr,qr,{configurable:!0,value:iu(null)});var su=function(e){Jr[qr][e]=!0},pe={},uu=E,cu=O,Tn=uu.WeakMap,En=cu(Tn)&&/native code/.test(String(Tn)),ze=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},fu=P,vu=C,lu=ze,Zr=fu?function(e,r,t){return vu.f(e,r,lu(1,t))}:function(e,r,t){return e[r]=t,e},du=En,Pn=E,hu=T,pu=Zr,Qr=j,Yr=Tr,yu=Ur,gu=De,_n="Object already initialized",et=Pn.TypeError,mu=Pn.WeakMap,Be,ye,Le,$u=function(e){return Le(e)?ye(e):Be(e,{})},bu=function(e){return function(r){var t;if(!hu(r)||(t=ye(r)).type!==e)throw new et("Incompatible receiver, "+e+" required");return t}};if(du||Yr.state){var z=Yr.state||(Yr.state=new mu);z.get=z.get,z.has=z.has,z.set=z.set,Be=function(e,r){if(z.has(e))throw new et(_n);return r.facade=e,z.set(e,r),r},ye=function(e){return z.get(e)||{}},Le=function(e){return z.has(e)}}else{var ae=yu("state");gu[ae]=!0,Be=function(e,r){if(Qr(e,ae))throw new et(_n);return r.facade=e,pu(e,ae,r),r},ye=function(e){return Qr(e,ae)?e[ae]:{}},Le=function(e){return Qr(e,ae)}}var ie={set:Be,get:ye,has:Le,enforce:$u,getterFor:bu},rt={},tt={},xn={}.propertyIsEnumerable,An=Object.getOwnPropertyDescriptor,Su=An&&!xn.call({1:2},1);tt.f=Su?function(r){var t=An(this,r);return!!t&&t.enumerable}:xn;var wu=P,Ou=D,Iu=tt,Tu=ze,Eu=ee,Pu=ln,_u=j,xu=un,Rn=Object.getOwnPropertyDescriptor;rt.f=wu?Rn:function(r,t){if(r=Eu(r),t=Pu(t),xu)try{return Rn(r,t)}catch{}if(_u(r,t))return Tu(!Ou(Iu.f,r,t),r[t])};var jn={exports:{}},nt=P,Au=j,Mn=Function.prototype,Ru=nt&&Object.getOwnPropertyDescriptor,at=Au(Mn,"name"),ju=at&&(function(){}).name==="something",Mu=at&&(!nt||nt&&Ru(Mn,"name").configurable),Cn={EXISTS:at,PROPER:ju,CONFIGURABLE:Mu},Cu=$,Du=O,it=Tr,Fu=Cu(Function.toString);Du(it.inspectSource)||(it.inspectSource=function(e){return Fu(e)});var Dn=it.inspectSource,ot=$,Nu=S,zu=O,ke=j,st=P,Bu=Cn.CONFIGURABLE,Lu=Dn,Fn=ie,ku=Fn.enforce,Gu=Fn.get,Nn=String,Ge=Object.defineProperty,Wu=ot("".slice),Uu=ot("".replace),Vu=ot([].join),Hu=st&&!Nu(function(){return Ge(function(){},"length",{value:8}).length!==8}),Ku=String(String).split("String"),Xu=jn.exports=function(e,r,t){Wu(Nn(r),0,7)==="Symbol("&&(r="["+Uu(Nn(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!ke(e,"name")||Bu&&e.name!==r)&&(st?Ge(e,"name",{value:r,configurable:!0}):e.name=r),Hu&&t&&ke(t,"arity")&&e.length!==t.arity&&Ge(e,"length",{value:t.arity});try{t&&ke(t,"constructor")&&t.constructor?st&&Ge(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=ku(e);return ke(n,"source")||(n.source=Vu(Ku,typeof r=="string"?r:"")),e};Function.prototype.toString=Xu(function(){return zu(this)&&Gu(this).source||Lu(this)},"toString");var zn=jn.exports,qu=O,Ju=C,Zu=zn,Qu=Ir,oe=function(e,r,t,n){n||(n={});var a=n.enumerable,i=n.name!==void 0?n.name:r;if(qu(t)&&Zu(t,i,n),n.global)a?e[r]=t:Qu(r,t);else{try{n.unsafe?e[r]&&(a=!0):delete e[r]}catch{}a?e[r]=t:Ju.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},We={},Yu=yn,ec=Wr,rc=ec.concat("length","prototype");We.f=Object.getOwnPropertyNames||function(r){return Yu(r,rc)};var ut={};ut.f=Object.getOwnPropertySymbols;var tc=te,nc=$,ac=We,ic=ut,oc=N,sc=nc([].concat),uc=tc("Reflect","ownKeys")||function(r){var t=ac.f(oc(r)),n=ic.f;return n?sc(t,n(r)):t},Bn=j,cc=uc,fc=rt,vc=C,lc=function(e,r,t){for(var n=cc(r),a=vc.f,i=fc.f,o=0;o=r.length)return e.target=void 0,He(void 0,!0);switch(e.kind){case"keys":return He(t,!1);case"values":return He(r[t],!1)}return He([t,r[t]],!1)},"values");var ia=ta.Arguments=ta.Array;if(gt("keys"),gt("values"),gt("entries"),Of&&ia.name!=="values")try{Sf(ia,"name",{value:"values"})}catch{}var oa={exports:{}},sa={},Ef=$,Pf=Ef([].slice),_f=Q,xf=ee,ua=We.f,Af=Pf,ca=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rf=function(e){try{return ua(e)}catch{return Af(ca)}};sa.f=function(r){return ca&&_f(r)==="Window"?Rf(r):ua(xf(r))};var jf=S,Mf=jf(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Cf=S,Df=T,Ff=Q,fa=Mf,Ke=Object.isExtensible,Nf=Cf(function(){Ke(1)}),zf=Nf||fa?function(r){return!Df(r)||fa&&Ff(r)==="ArrayBuffer"?!1:Ke?Ke(r):!0}:Ke,Bf=S,va=!Bf(function(){return Object.isExtensible(Object.preventExtensions({}))}),Lf=_,kf=$,Gf=De,Wf=T,mt=j,Uf=C.f,la=We,Vf=sa,$t=zf,Hf=Er,Kf=va,da=!1,G=Hf("meta"),Xf=0,bt=function(e){Uf(e,G,{value:{objectID:"O"+Xf++,weakData:{}}})},qf=function(e,r){if(!Wf(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!mt(e,G)){if(!$t(e))return"F";if(!r)return"E";bt(e)}return e[G].objectID},Jf=function(e,r){if(!mt(e,G)){if(!$t(e))return!0;if(!r)return!1;bt(e)}return e[G].weakData},Zf=function(e){return Kf&&da&&$t(e)&&!mt(e,G)&&bt(e),e},Qf=function(){Yf.enable=function(){},da=!0;var e=la.f,r=kf([].splice),t={};t[G]=1,e(t).length&&(la.f=function(n){for(var a=e(n),i=0,o=a.length;iv;v++)if(d=y(e[v]),d&&ba(wa,d))return d;return new Ye(!1)}c=zv(e,f)}for(h=i?e.next:c.next;!(g=Mv(h,c)).done;){try{d=y(g.value)}catch(p){Sa(c,"throw",p)}if(typeof d=="object"&&d&&ba(wa,d))return d}return new Ye(!1)},kv=jr,Gv=TypeError,Ot=function(e,r){if(kv(r,e))return e;throw new Gv("Incorrect invocation")},Wv=x,Oa=Wv("iterator"),Ia=!1;try{var Uv=0,Ta={next:function(){return{done:!!Uv++}},return:function(){Ia=!0}};Ta[Oa]=function(){return this},Array.from(Ta,function(){throw 2})}catch{}var Ea=function(e,r){try{if(!r&&!Ia)return!1}catch{return!1}var t=!1;try{var n={};n[Oa]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch{}return t},Vv=O,Hv=T,Pa=Xn,Kv=function(e,r,t){var n,a;return Pa&&Vv(n=r.constructor)&&n!==t&&Hv(a=n.prototype)&&a!==t.prototype&&Pa(e,a),e},Xv=_,qv=E,Jv=$,_a=Ln,Zv=oe,Qv=Xe,Yv=er,el=Ot,rl=O,tl=Y,It=T,Tt=S,nl=Ea,al=dt,il=Kv,Et=function(e,r,t){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=qv[e],u=o&&o.prototype,s=o,c={},f=function(y){var p=Jv(u[y]);Zv(u,y,y==="add"?function(w){return p(this,w===0?0:w),this}:y==="delete"?function(b){return a&&!It(b)?!1:p(this,b===0?0:b)}:y==="get"?function(w){return a&&!It(w)?void 0:p(this,w===0?0:w)}:y==="has"?function(w){return a&&!It(w)?!1:p(this,w===0?0:w)}:function(w,Xy){return p(this,w===0?0:w,Xy),this})},v=_a(e,!rl(o)||!(a||u.forEach&&!Tt(function(){new o().entries().next()})));if(v)s=t.getConstructor(r,e,n,i),Qv.enable();else if(_a(e,!0)){var l=new s,d=l[i](a?{}:-0,1)!==l,h=Tt(function(){l.has(1)}),g=nl(function(y){new o(y)}),m=!a&&Tt(function(){for(var y=new o,p=5;p--;)y[i](p,p);return!y.has(-0)});g||(s=r(function(y,p){el(y,u);var b=il(new o,y,s);return tl(p)||Yv(p,b[i],{that:b,AS_ENTRIES:n}),b}),s.prototype=u,u.constructor=s),(h||m)&&(f("delete"),f("has"),n&&f("get")),(m||d)&&f(i),a&&u.clear&&delete u.clear}return c[e]=s,Xv({global:!0,constructor:!0,forced:s!==o},c),al(s,e),a||t.setStrong(s,e,n),s},xa=zn,ol=C,Aa=function(e,r,t){return t.get&&xa(t.get,r,{getter:!0}),t.set&&xa(t.set,r,{setter:!0}),ol.f(e,r,t)},sl=oe,Pt=function(e,r,t){for(var n in r)sl(e,n,r[n],t);return e},ul=te,cl=Aa,fl=x,vl=P,Ra=fl("species"),ll=function(e){var r=ul(e);vl&&r&&!r[Ra]&&cl(r,Ra,{configurable:!0,get:function(){return this}})},ja=Xr,dl=Aa,Ma=Pt,hl=qe,pl=Ot,yl=Y,gl=er,ml=pt,rr=yt,$l=ll,be=P,Ca=Xe.fastKey,Da=ie,Fa=Da.set,_t=Da.getterFor,Na={getConstructor:function(e,r,t,n){var a=e(function(c,f){pl(c,i),Fa(c,{type:r,index:ja(null),first:void 0,last:void 0,size:0}),be||(c.size=0),yl(f)||gl(f,c[n],{that:c,AS_ENTRIES:t})}),i=a.prototype,o=_t(r),u=function(c,f,v){var l=o(c),d=s(c,f),h,g;return d?d.value=v:(l.last=d={index:g=Ca(f,!0),key:f,value:v,previous:h=l.last,next:void 0,removed:!1},l.first||(l.first=d),h&&(h.next=d),be?l.size++:c.size++,g!=="F"&&(l.index[g]=d)),c},s=function(c,f){var v=o(c),l=Ca(f),d;if(l!=="F")return v.index[l];for(d=v.first;d;d=d.next)if(d.key===f)return d};return Ma(i,{clear:function(){for(var f=this,v=o(f),l=v.first;l;)l.removed=!0,l.previous&&(l.previous=l.previous.next=void 0),l=l.next;v.first=v.last=void 0,v.index=ja(null),be?v.size=0:f.size=0},delete:function(c){var f=this,v=o(f),l=s(f,c);if(l){var d=l.next,h=l.previous;delete v.index[l.index],l.removed=!0,h&&(h.next=d),d&&(d.previous=h),v.first===l&&(v.first=d),v.last===l&&(v.last=h),be?v.size--:f.size--}return!!l},forEach:function(f){for(var v=o(this),l=hl(f,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:v.first;)for(l(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(f){return!!s(this,f)}}),Ma(i,t?{get:function(f){var v=s(this,f);return v&&v.value},set:function(f,v){return u(this,f===0?0:f,v)}}:{add:function(f){return u(this,f=f===0?0:f,f)}}),be&&dl(i,"size",{configurable:!0,get:function(){return o(this).size}}),a},setStrong:function(e,r,t){var n=r+" Iterator",a=_t(r),i=_t(n);ml(e,r,function(o,u){Fa(this,{type:n,target:o,state:a(o),kind:u,last:void 0})},function(){for(var o=i(this),u=o.kind,s=o.last;s&&s.removed;)s=s.previous;return!o.target||!(o.last=s=s?s.next:o.state.first)?(o.target=void 0,rr(void 0,!0)):rr(u==="keys"?s.key:u==="values"?s.value:[s.key,s.value],!1)},t?"entries":"values",!t,!0),$l(r)}},bl=Et,Sl=Na;bl("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sl);var tr=$,Se=Map.prototype,wl={Map,set:tr(Se.set),get:tr(Se.get),has:tr(Se.has),remove:tr(Se.delete),proto:Se},Ol=_,Il=$,Tl=ne,El=le,Pl=er,nr=wl,_l=S,za=nr.Map,xl=nr.has,Al=nr.get,Rl=nr.set,jl=Il([].push),Ml=_l(function(){return za.groupBy("ab",function(e){return e}).get("a").length!==1});Ol({target:"Map",stat:!0,forced:Ml},{groupBy:function(r,t){El(r),Tl(t);var n=new za,a=0;return Pl(r,function(i){var o=t(i,a++);xl(n,o)?jl(Al(n,o),i):Rl(n,o,[i])}),n}});var Cl=St,Dl=Ze,Fl=Cl?{}.toString:function(){return"[object "+Dl(this)+"]"},Nl=St,zl=oe,Bl=Fl;Nl||zl(Object.prototype,"toString",Bl,{unsafe:!0});var Ll=Ze,kl=String,Ba=function(e){if(Ll(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return kl(e)},xt=$,Gl=Me,Wl=Ba,Ul=le,Vl=xt("".charAt),La=xt("".charCodeAt),Hl=xt("".slice),ka=function(e){return function(r,t){var n=Wl(Ul(r)),a=Gl(t),i=n.length,o,u;return a<0||a>=i?e?"":void 0:(o=La(n,a),o<55296||o>56319||a+1===i||(u=La(n,a+1))<56320||u>57343?e?Vl(n,a):o:e?Hl(n,a,a+2):(o-55296<<10)+(u-56320)+65536)}},Kl={codeAt:ka(!1),charAt:ka(!0)},Xl=Kl.charAt,ql=Ba,Ga=ie,Jl=pt,Wa=yt,Ua="String Iterator",Zl=Ga.set,Ql=Ga.getterFor(Ua);Jl(String,"String",function(e){Zl(this,{type:Ua,string:ql(e),index:0})},function(){var r=Ql(this),t=r.string,n=r.index,a;return n>=t.length?Wa(void 0,!0):(a=Xl(t,n),r.index+=a.length,Wa(a,!1))});var Yl=E,we=Yl,ed=we;ed.Map;var rd=Et,td=Na;rd("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},td);var At=$,ar=Set.prototype,B={Set,add:At(ar.add),has:At(ar.has),remove:At(ar.delete),proto:ar},nd=B.has,K=function(e){return nd(e),e},ad=D,X=function(e,r,t){for(var n=t?e:e.iterator,a=e.next,i,o;!(i=ad(a,n)).done;)if(o=r(i.value),o!==void 0)return o},Va=$,id=X,Ha=B,od=Ha.Set,Ka=Ha.proto,sd=Va(Ka.forEach),Xa=Va(Ka.keys),ud=Xa(new od).next,Oe=function(e,r,t){return t?id({iterator:Xa(e),next:ud},r):sd(e,r)},qa=B,cd=Oe,fd=qa.Set,vd=qa.add,Rt=function(e){var r=new fd;return cd(e,function(t){vd(r,t)}),r},ld=Kn,dd=B,Ie=ld(dd.proto,"size","get")||function(e){return e.size},hd=function(e){return{iterator:e,next:e.next,done:!1}},Ja=ne,Za=N,Qa=D,pd=Me,yd=hd,Ya="Invalid size",gd=RangeError,md=TypeError,$d=Math.max,ei=function(e,r){this.set=e,this.size=$d(r,0),this.has=Ja(e.has),this.keys=Ja(e.keys)};ei.prototype={getIterator:function(){return yd(Za(Qa(this.keys,this.set)))},includes:function(e){return Qa(this.has,this.set,e)}};var q=function(e){Za(e);var r=+e.size;if(r!==r)throw new md(Ya);var t=pd(r);if(t<0)throw new gd(Ya);return new ei(e,t)},bd=K,ri=B,Sd=Rt,wd=Ie,Od=q,Id=Oe,Td=X,Ed=ri.has,ti=ri.remove,Pd=function(r){var t=bd(this),n=Od(r),a=Sd(t);return wd(t)<=n.size?Id(t,function(i){n.includes(i)&&ti(a,i)}):Td(n.getIterator(),function(i){Ed(t,i)&&ti(a,i)}),a},_d=te,ni=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},J=function(e){var r=_d("Set");try{new r()[e](ni(0));try{return new r()[e](ni(-1)),!1}catch{return!0}}catch{return!1}},xd=_,Ad=Pd,Rd=J;xd({target:"Set",proto:!0,real:!0,forced:!Rd("difference")},{difference:Ad});var jd=K,jt=B,Md=Ie,Cd=q,Dd=Oe,Fd=X,Nd=jt.Set,ai=jt.add,zd=jt.has,Bd=function(r){var t=jd(this),n=Cd(r),a=new Nd;return Md(t)>n.size?Fd(n.getIterator(),function(i){zd(t,i)&&ai(a,i)}):Dd(t,function(i){n.includes(i)&&ai(a,i)}),a},Ld=_,kd=S,Gd=Bd,Wd=J,Ud=!Wd("intersection")||kd(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Ld({target:"Set",proto:!0,real:!0,forced:Ud},{intersection:Gd});var Vd=K,Hd=B.has,Kd=Ie,Xd=q,qd=Oe,Jd=X,Zd=Qe,Qd=function(r){var t=Vd(this),n=Xd(r);if(Kd(t)<=n.size)return qd(t,function(i){if(n.includes(i))return!1},!0)!==!1;var a=n.getIterator();return Jd(a,function(i){if(Hd(t,i))return Zd(a,"normal",!1)})!==!1},Yd=_,eh=Qd,rh=J;Yd({target:"Set",proto:!0,real:!0,forced:!rh("isDisjointFrom")},{isDisjointFrom:eh});var th=K,nh=Ie,ah=Oe,ih=q,oh=function(r){var t=th(this),n=ih(r);return nh(t)>n.size?!1:ah(t,function(a){if(!n.includes(a))return!1},!0)!==!1},sh=_,uh=oh,ch=J;sh({target:"Set",proto:!0,real:!0,forced:!ch("isSubsetOf")},{isSubsetOf:uh});var fh=K,vh=B.has,lh=Ie,dh=q,hh=X,ph=Qe,yh=function(r){var t=fh(this),n=dh(r);if(lh(t)m;m++)if((u||m in d)&&(b=d[m],w=g(b,m,l),e))if(r)p[m]=w;else if(w)switch(e){case 3:return!0;case 5:return b;case 6:return m;case 2:li(p,b)}else switch(e){case 4:return!1;case 7:li(p,b)}return i?-1:n||a?a:p}},cp={forEach:W(0),map:W(1),filter:W(2),some:W(3),every:W(4),find:W(5),findIndex:W(6),filterReject:W(7)},fp=$,di=Pt,ir=Xe.getWeakData,vp=Ot,lp=N,dp=Y,Dt=T,hp=er,hi=cp,pi=j,yi=ie,pp=yi.set,yp=yi.getterFor,gp=hi.find,mp=hi.findIndex,$p=fp([].splice),bp=0,or=function(e){return e.frozen||(e.frozen=new gi)},gi=function(){this.entries=[]},Ft=function(e,r){return gp(e.entries,function(t){return t[0]===r})};gi.prototype={get:function(e){var r=Ft(this,e);if(r)return r[1]},has:function(e){return!!Ft(this,e)},set:function(e,r){var t=Ft(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=mp(this.entries,function(t){return t[0]===e});return~r&&$p(this.entries,r,1),!!~r}};var Sp={getConstructor:function(e,r,t,n){var a=e(function(s,c){vp(s,i),pp(s,{type:r,id:bp++,frozen:void 0}),dp(c)||hp(c,s[n],{that:s,AS_ENTRIES:t})}),i=a.prototype,o=yp(r),u=function(s,c,f){var v=o(s),l=ir(lp(c),!0);return l===!0?or(v).set(c,f):l[v.id]=f,s};return di(i,{delete:function(s){var c=o(this);if(!Dt(s))return!1;var f=ir(s);return f===!0?or(c).delete(s):f&&pi(f,c.id)&&delete f[c.id]},has:function(c){var f=o(this);if(!Dt(c))return!1;var v=ir(c);return v===!0?or(f).has(c):v&&pi(v,f.id)}}),di(i,t?{get:function(c){var f=o(this);if(Dt(c)){var v=ir(c);return v===!0?or(f).get(c):v?v[f.id]:void 0}},set:function(c,f){return u(this,c,f)}}:{add:function(c){return u(this,c,!0)}}),a}},wp=va,mi=E,sr=$,$i=Pt,Op=Xe,Ip=Et,bi=Sp,ur=T,cr=ie.enforce,Tp=S,Ep=En,Ee=Object,Pp=Array.isArray,fr=Ee.isExtensible,Si=Ee.isFrozen,_p=Ee.isSealed,wi=Ee.freeze,xp=Ee.seal,Ap=!mi.ActiveXObject&&"ActiveXObject"in mi,Pe,Oi=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ii=Ip("WeakMap",Oi,bi),se=Ii.prototype,vr=sr(se.set),Rp=function(){return wp&&Tp(function(){var e=wi([]);return vr(new Ii,e,1),!Si(e)})};if(Ep)if(Ap){Pe=bi.getConstructor(Oi,"WeakMap",!0),Op.enable();var Ti=sr(se.delete),lr=sr(se.has),Ei=sr(se.get);$i(se,{delete:function(e){if(ur(e)&&!fr(e)){var r=cr(this);return r.frozen||(r.frozen=new Pe),Ti(this,e)||r.frozen.delete(e)}return Ti(this,e)},has:function(r){if(ur(r)&&!fr(r)){var t=cr(this);return t.frozen||(t.frozen=new Pe),lr(this,r)||t.frozen.has(r)}return lr(this,r)},get:function(r){if(ur(r)&&!fr(r)){var t=cr(this);return t.frozen||(t.frozen=new Pe),lr(this,r)?Ei(this,r):t.frozen.get(r)}return Ei(this,r)},set:function(r,t){if(ur(r)&&!fr(r)){var n=cr(this);n.frozen||(n.frozen=new Pe),lr(this,r)?vr(this,r,t):n.frozen.set(r,t)}else vr(this,r,t);return this}})}else Rp()&&$i(se,{set:function(r,t){var n;return Pp(r)&&(Si(r)?n=wi:_p(r)&&(n=xp)),vr(this,r,t),n&&n(r),this}});var jp=we;jp.WeakMap;var Mp=N,Cp=Qe,Dp=function(e,r,t,n){try{return n?r(Mp(t)[0],t[1]):r(t)}catch(a){Cp(e,"throw",a)}},Fp=P,Np=C,zp=ze,Bp=function(e,r,t){Fp?Np.f(e,r,zp(0,t)):e[r]=t},Lp=qe,kp=D,Gp=he,Wp=Dp,Up=pa,Vp=ci,Hp=Ce,Pi=Bp,Kp=ma,Xp=wt,_i=Array,qp=function(r){var t=Gp(r),n=Vp(this),a=arguments.length,i=a>1?arguments[1]:void 0,o=i!==void 0;o&&(i=Lp(i,a>2?arguments[2]:void 0));var u=Xp(t),s=0,c,f,v,l,d,h;if(u&&!(this===_i&&Up(u)))for(f=n?new this:[],l=Kp(t,u),d=l.next;!(v=kp(d,l)).done;s++)h=o?Wp(l,i,[v.value,s],!0):v.value,Pi(f,s,h);else for(c=Hp(t),f=n?new this(c):_i(c);c>s;s++)h=o?i(t[s],s):t[s],Pi(f,s,h);return f.length=s,f},Jp=_,Zp=qp,Qp=Ea,Yp=!Qp(function(e){Array.from(e)});Jp({target:"Array",stat:!0,forced:Yp},{from:Zp});var ey=we;ey.Array.from;var xi=P,ry=$,ty=D,ny=S,Nt=gn,ay=ut,iy=tt,oy=he,sy=Or,ue=Object.assign,Ai=Object.defineProperty,uy=ry([].concat),cy=!ue||ny(function(){if(xi&&ue({b:1},ue(Ai({},"a",{enumerable:!0,get:function(){Ai(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(a){r[a]=a}),ue({},e)[t]!==7||Nt(ue({},r)).join("")!==n})?function(r,t){for(var n=oy(r),a=arguments.length,i=1,o=ay.f,u=iy.f;a>i;)for(var s=sy(arguments[i++]),c=o?uy(Nt(s),o(s)):Nt(s),f=c.length,v=0,l;f>v;)l=c[v++],(!xi||ty(u,s,l))&&(n[l]=s[l]);return n}:ue,fy=_,Ri=cy;fy({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ri},{assign:Ri});var vy=we;vy.Object.assign;var dr,hr=new WeakMap;function ji(){if(dr!==void 0)return dr;var e=!1;try{var r=function(){},t=Object.defineProperty({},"passive",{enumerable:!0,get:function(){return e=!0,!0}});window.addEventListener("testPassive",r,t),window.removeEventListener("testPassive",r,t)}catch{}return dr=e?{passive:!1}:!1,dr}function ce(e){var r=hr.get(e)||[];return hr.set(e,r),function(n,a,i){function o(u){u.defaultPrevented||i(u)}a.split(/\s+/g).forEach(function(u){r.push({elem:n,eventName:u,handler:o}),n.addEventListener(u,o,ji())})}}function ly(e){var r=hr.get(e);r&&(r.forEach(function(t){var n=t.elem,a=t.eventName,i=t.handler;n.removeEventListener(a,i,ji())}),hr.delete(e))}function dy(e){return e.touches?e.touches[e.touches.length-1]:e}function fe(e){var r=dy(e);return{x:r.clientX,y:r.clientY}}function pr(e,r){return r===void 0&&(r=[]),r.some(function(t){return e===t})}var Mi=["webkit","moz","ms","o"],hy=new RegExp("^-(?!(?:"+Mi.join("|")+")-)");function py(e){var r={};return Object.keys(e).forEach(function(t){if(!hy.test(t)){r[t]=e[t];return}var n=e[t];t=t.replace(/^-/,""),r[t]=n,Mi.forEach(function(a){r["-"+a+"-"+t]=n})}),r}function Z(e,r){r=py(r),Object.keys(r).forEach(function(t){var n=t.replace(/^-/,"").replace(/-([a-z])/g,function(a,i){return i.toUpperCase()});e.style[n]=r[t]})}var yy=function(){function e(r){this.velocityMultiplier=window.devicePixelRatio,this.updateTime=Date.now(),this.delta={x:0,y:0},this.velocity={x:0,y:0},this.lastPosition={x:0,y:0},this.lastPosition=fe(r)}return e.prototype.update=function(r){var t=this,n=t.velocity,a=t.updateTime,i=t.lastPosition,o=Date.now(),u=fe(r),s={x:-(u.x-i.x),y:-(u.y-i.y)},c=o-a||16.7,f=s.x/c*16.7,v=s.y/c*16.7;n.x=f*this.velocityMultiplier,n.y=v*this.velocityMultiplier,this.delta=s,this.updateTime=o,this.lastPosition=u},e}(),gy=function(){function e(){this._touchList={}}return Object.defineProperty(e.prototype,"_primitiveValue",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.isActive=function(){return this._activeTouchID!==void 0},e.prototype.getDelta=function(){var r=this._getActiveTracker();return r?F({},r.delta):this._primitiveValue},e.prototype.getVelocity=function(){var r=this._getActiveTracker();return r?F({},r.velocity):this._primitiveValue},e.prototype.getEasingDistance=function(r){var t=1-r,n={x:0,y:0},a=this.getVelocity();return Object.keys(a).forEach(function(i){for(var o=Math.abs(a[i])<=10?0:a[i];o!==0;)n[i]+=o,o=o*t|0}),n},e.prototype.track=function(r){var t=this,n=r.targetTouches;return Array.from(n).forEach(function(a){t._add(a)}),this._touchList},e.prototype.update=function(r){var t=this,n=r.touches,a=r.changedTouches;return Array.from(n).forEach(function(i){t._renew(i)}),this._setActiveID(a),this._touchList},e.prototype.release=function(r){var t=this;delete this._activeTouchID,Array.from(r.changedTouches).forEach(function(n){t._delete(n)})},e.prototype._add=function(r){this._has(r)&&this._delete(r);var t=new yy(r);this._touchList[r.identifier]=t},e.prototype._renew=function(r){if(this._has(r)){var t=this._touchList[r.identifier];t.update(r)}},e.prototype._delete=function(r){delete this._touchList[r.identifier]},e.prototype._has=function(r){return this._touchList.hasOwnProperty(r.identifier)},e.prototype._setActiveID=function(r){this._activeTouchID=r[r.length-1].identifier},e.prototype._getActiveTracker=function(){var r=this,t=r._touchList,n=r._activeTouchID;return t[n]},e}();function A(e,r,t){return Math.max(r,Math.min(t,e))}function Ci(e,r,t){r===void 0&&(r=0);var n,a=-1/0;return function(){for(var o=this,u=[],s=0;s=r&&e.apply(this,u)}clearTimeout(n),n=setTimeout(function(){e.apply(o,u)},r)}}function Di(e,r){return r===void 0&&(r=1/0),function(t,n){var a="_"+n;Object.defineProperty(t,n,{get:function(){return this[a]},set:function(i){Object.defineProperty(this,a,{value:A(i,e,r),enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}}function zt(e,r){var t="_"+r;Object.defineProperty(e,r,{get:function(){return this[t]},set:function(n){Object.defineProperty(this,t,{value:!!n,enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function Fi(){for(var e=[],r=0;r=n)typeof s=="function"&&s.call(e);else{var w=requestAnimationFrame(y);zi.set(e,w)}}cancelAnimationFrame(zi.get(e)),y()}function Ey(e){return Math.pow(e-1,3)+1}function Py(e,r,t){var n=t===void 0?{}:t,a=n.alignToTop,i=a===void 0?!0:a,o=n.onlyScrollIfNeeded,u=o===void 0?!1:o,s=n.offsetTop,c=s===void 0?0:s,f=n.offsetLeft,v=f===void 0?0:f,l=n.offsetBottom,d=l===void 0?0:l,h=e.containerEl,g=e.bounding,m=e.offset,y=e.limit;if(!(!r||!h.contains(r))){var p=r.getBoundingClientRect();if(!(u&&e.isVisible(r))){var b=i?p.top-g.top-c:p.bottom-g.bottom+d;e.setMomentum(p.left-g.left-v,A(b,-m.y,y.y-m.y))}}}var _y=function(){function e(r,t){var n=this.constructor;this.scrollbar=r,this.name=n.pluginName,this.options=F(F({},n.defaultOptions),t)}return e.prototype.onInit=function(){},e.prototype.onDestroy=function(){},e.prototype.onUpdate=function(){},e.prototype.onRender=function(r){},e.prototype.transformDelta=function(r,t){return F({},r)},e.pluginName="",e.defaultOptions={},e}(),yr={order:new Set,constructors:{}};function xy(){for(var e=[],r=0;ra-v?f.x=s-a+v:si-v?f.y=c-i+v:c"u")){var e=document.createElement("style");e.id=Gi,e.textContent=Vy,document.head&&document.head.appendChild(e),mr=!0}}function Hy(){if(!(!mr||typeof window>"u")){var e=document.getElementById(Gi);!e||!e.parentNode||(e.parentNode.removeChild(e),mr=!1)}}var Ui=function(e){Vi(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.init=function(t,n){if(!t||t.nodeType!==1)throw new TypeError("expect element to be DOM Element, but got "+t);return Wi(),k.has(t)?k.get(t):new ki(t,n)},r.initAll=function(t){return Array.from(document.querySelectorAll("[data-scrollbar]"),function(n){return r.init(n,t)})},r.has=function(t){return k.has(t)},r.get=function(t){return k.get(t)},r.getAll=function(){return Array.from(k.values())},r.destroy=function(t){var n=k.get(t);n&&n.destroy()},r.destroyAll=function(){k.forEach(function(t){t.destroy()})},r.use=function(){for(var t=[],n=0;n({})},plugins:{default:()=>[]},scrollIntoView:{type:Boolean,default:!1}},setup(e){const r=(...c)=>c.reverse().reduce((f,v)=>({...f,...v}),{}),t={damping:.1,thumbMinSize:20,renderByPixels:!0,alwaysShowTracks:!1,continuousScrolling:!0,delegateTo:null,plugins:{}},n=e,a=I.ref(null),i=I.ref(null),o=I.computed(()=>Array.isArray(n.plugins)?!!n.plugins.length:!1),u=()=>{var c;n.scrollIntoView&&((c=i.value)==null||c.containerEl.focus())},s=()=>{I.nextTick(()=>{o.value&&n.plugins.forEach(c=>{Ui.use(c)}),a.value&&(i.value=Ui.init(a.value,r(n.options,t)))})};return I.onMounted(()=>{s()}),I.onBeforeUnmount(()=>{i.value&&i.value.destroy()}),I.onUpdated(()=>{i.value&&i.value.update()}),(c,f)=>(I.openBlock(),I.createElementBlock("div",{class:"smooth-scrollbar c-scroll-view","data-scrollbar":"",onMouseenter:u},[I.createElementVNode("div",{ref_key:"scrollable",ref:a,class:"scrollable c-scroll-view__content"},[I.renderSlot(c.$slots,"default")],512)],32))}});U.VueSmoothScrollbarTs=Ky,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});