<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{j as Y,u as $,e as q,n as B,k as J,l as K,d as N,g as Q,r as O,c as F,a as H,w as U}from"./@vue-DgAJ0pKR.js";function Z(e){return J()?(K(e),!0):!1}function ae(e){let o=!1,t;const n=Y(!0);return(...r)=&gt;(o||(t=n.run(()=&gt;e(...r)),o=!0),t)}function y(e){return typeof e=="function"?e():$(e)}const ee=typeof window&lt;"u"&amp;&amp;typeof document&lt;"u";typeof WorkerGlobalScope&lt;"u"&amp;&amp;globalThis instanceof WorkerGlobalScope;const te=Object.prototype.toString,ne=e=&gt;te.call(e)==="[object Object]",D=()=&gt;{};function I(e,o){function t(...n){return new Promise((r,i)=&gt;{Promise.resolve(e(()=&gt;o.apply(this,n),{fn:o,thisArg:this,args:n})).then(r).catch(i)})}return t}function oe(e,o={}){let t,n,r=D;const i=a=&gt;{clearTimeout(a),r(),r=D};return a=&gt;{const v=y(e),s=y(o.maxWait);return t&amp;&amp;i(t),v&lt;=0||s!==void 0&amp;&amp;s&lt;=0?(n&amp;&amp;(i(n),n=null),Promise.resolve(a())):new Promise((c,u)=&gt;{r=o.rejectOnCancel?u:c,s&amp;&amp;!n&amp;&amp;(n=setTimeout(()=&gt;{t&amp;&amp;i(t),n=null,c(a())},s)),t=setTimeout(()=&gt;{n&amp;&amp;i(n),n=null,c(a())},v)})}}function le(...e){let o=0,t,n=!0,r=D,i,d,a,v,s;!N(e[0])&amp;&amp;typeof e[0]=="object"?{delay:d,trailing:a=!0,leading:v=!0,rejectOnCancel:s=!1}=e[0]:[d,a=!0,v=!0,s=!1]=e;const c=()=&gt;{t&amp;&amp;(clearTimeout(t),t=void 0,r(),r=D)};return m=&gt;{const f=y(d),S=Date.now()-o,x=()=&gt;i=m();return c(),f&lt;=0?(o=Date.now(),x()):(S&gt;f&amp;&amp;(v||!n)?(o=Date.now(),x()):a&amp;&amp;(i=new Promise((w,h)=&gt;{r=s?h:w,t=setTimeout(()=&gt;{o=Date.now(),n=!0,w(x()),c()},Math.max(0,f-S))})),!v&amp;&amp;!t&amp;&amp;(t=setTimeout(()=&gt;n=!0,f)),n=!1,i)}}function re(e){return Q()}function se(e,o=200,t={}){return I(oe(o,t),e)}function ie(e,o=200,t=!1,n=!0,r=!1){return I(le(o,t,n,r),e)}function ce(e,o=!0,t){re()?q(e,t):o?e():B(e)}function V(e){var o;const t=y(e);return(o=t==null?void 0:t.$el)!=null?o:t}const X=ee?window:void 0;function k(...e){let o,t,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,r]=e,o=X):[o,t,n,r]=e,!o)return D;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const i=[],d=()=&gt;{i.forEach(c=&gt;c()),i.length=0},a=(c,u,m,f)=&gt;(c.addEventListener(u,m,f),()=&gt;c.removeEventListener(u,m,f)),v=U(()=&gt;[V(o),y(r)],([c,u])=&gt;{if(d(),!c)return;const m=ne(u)?{...u}:u;i.push(...t.flatMap(f=&gt;n.map(S=&gt;a(c,f,S,m))))},{immediate:!0,flush:"post"}),s=()=&gt;{v(),d()};return Z(s),s}const G=1;function fe(e,o={}){const{throttle:t=0,idle:n=200,onStop:r=D,onScroll:i=D,offset:d={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:v="auto",window:s=X,onError:c=l=&gt;{console.error(l)}}=o,u=O(0),m=O(0),f=F({get(){return u.value},set(l){x(l,void 0)}}),S=F({get(){return m.value},set(l){x(void 0,l)}});function x(l,E){var p,L,j,T;if(!s)return;const b=y(e);if(!b)return;(j=b instanceof Document?s.document.body:b)==null||j.scrollTo({top:(p=y(E))!=null?p:S.value,left:(L=y(l))!=null?L:f.value,behavior:y(v)});const A=((T=b==null?void 0:b.document)==null?void 0:T.documentElement)||(b==null?void 0:b.documentElement)||b;f!=null&amp;&amp;(u.value=A.scrollLeft),S!=null&amp;&amp;(m.value=A.scrollTop)}const w=O(!1),h=H({left:!0,right:!1,top:!0,bottom:!1}),g=H({left:!1,right:!1,top:!1,bottom:!1}),M=l=&gt;{w.value&amp;&amp;(w.value=!1,g.left=!1,g.right=!1,g.top=!1,g.bottom=!1,r(l))},z=se(M,t+n),C=l=&gt;{var E;if(!s)return;const p=((E=l==null?void 0:l.document)==null?void 0:E.documentElement)||(l==null?void 0:l.documentElement)||V(l),{display:L,flexDirection:j}=getComputedStyle(p),T=p.scrollLeft;g.left=T&lt;u.value,g.right=T&gt;u.value;const b=Math.abs(T)&lt;=(d.left||0),A=Math.abs(T)+p.clientWidth&gt;=p.scrollWidth-(d.right||0)-G;L==="flex"&amp;&amp;j==="row-reverse"?(h.left=A,h.right=b):(h.left=b,h.right=A),u.value=T;let _=p.scrollTop;l===s.document&amp;&amp;!_&amp;&amp;(_=s.document.body.scrollTop),g.top=_&lt;m.value,g.bottom=_&gt;m.value;const P=Math.abs(_)&lt;=(d.top||0),R=Math.abs(_)+p.clientHeight&gt;=p.scrollHeight-(d.bottom||0)-G;L==="flex"&amp;&amp;j==="column-reverse"?(h.top=R,h.bottom=P):(h.top=P,h.bottom=R),m.value=_},W=l=&gt;{var E;if(!s)return;const p=(E=l.target.documentElement)!=null?E:l.target;C(p),w.value=!0,z(l),i(l)};return k(e,"scroll",t?ie(W,t,!0,!1):W,a),ce(()=&gt;{try{const l=y(e);if(!l)return;C(l)}catch(l){c(l)}}),k(e,"scrollend",M,a),{x:f,y:S,isScrolling:w,arrivedState:h,directions:g,measure(){const l=y(e);s&amp;&amp;l&amp;&amp;C(l)}}}export{ae as c,fe as u};
</pre></body></html>