1import{bp as V,cS as E,ec as L,cD as Z,cB as ee,aC as A}from"./BL6ubEPe.js";import{f as te,b as ne,r as j}from"./D33WnEV4.js";import{u as re}from"./6YYxauEC.js";import{u as ie}from"./jPvl2cMD.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"[email protected]"};var d=new a.Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="cbd63948-6d85-4080-b9bc-7ee047a81bb9",a._sentryDebugIdIdentifier="sentry-dbid-cbd63948-6d85-4080-b9bc-7ee047a81bb9")}catch{}})();var N,Y;function ae(){if(Y)return N;Y=1;var a=te(),d=function(){return a.Date.now()};return N=d,N}var O,P;function ue(){if(P)return O;P=1;var a=/\s/;function d(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}return O=d,O}var D,U;function le(){if(U)return D;U=1;var a=ue(),d=/^\s+/;function t(e){return e&&e.slice(0,a(e)+1).replace(d,"")}return D=t,D}var z,X;function oe(){if(X)return z;X=1;var a=le(),d=j(),t=ne(),e=NaN,i=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,m=/^0o[0-7]+$/i,S=parseInt;function s(n){if(typeof n=="number")return n;if(t(n))return e;if(d(n)){var c=typeof n.valueOf=="function"?n.valueOf():n;n=d(c)?c+"":c}if(typeof n!="string")return n===0?n:+n;n=a(n);var g=f.test(n);return g||m.test(n)?S(n.slice(2),g?2:8):i.test(n)?e:+n}return z=s,z}var F,G;function se(){if(G)return F;G=1;var a=j(),d=ae(),t=oe(),e="Expected a function",i=Math.max,f=Math.min;function m(S,s,n){var c,g,x,h,r,u,b=0,W=!1,y=!1,I=!0;if(typeof S!="function")throw new TypeError(e);s=t(s)||0,a(n)&&(W=!!n.leading,y="maxWait"in n,x=y?i(t(n.maxWait)||0,s):x,I="trailing"in n?!!n.trailing:I);function T(o){var p=c,l=g;return c=g=void 0,b=o,h=S.apply(l,p),h}function B(o){return b=o,r=setTimeout(w,s),W?T(o):h}function M(o){var p=o-u,l=o-b,v=s-p;return y?f(v,x-l):v}function H(o){var p=o-u,l=o-b;return u===void 0||p>=s||p<0||y&&l>=x}function w(){var o=d();if(H(o))return C(o);r=setTimeout(w,M(o))}function C(o){return r=void 0,I&&c?T(o):(c=g=void 0,h)}function k(){r!==void 0&&clearTimeout(r),b=0,c=u=g=r=void 0}function q(){return r===void 0?h:C(d())}function R(){var o=d(),p=H(o);if(c=arguments,g=this,u=o,p){if(r===void 0)return B(u);if(y)return clearTimeout(r),r=setTimeout(w,s),T(u)}return r===void 0&&(r=setTimeout(w,s)),h}return R.cancel=k,R.flush=q,R}return F=m,F}var $,J;function ve(){if(J)return $;J=1;var a=se(),d=j(),t="Expected a function";function e(i,f,m){var S=!0,s=!0;if(typeof i!="function")throw new TypeError(t);return d(m)&&(S="leading"in m?!!m.leading:S,s="trailing"in m?!!m.trailing:s),a(i,f,{leading:S,maxWait:f,trailing:s})}return $=e,$}var de=ve();const ce=V(de),ge=(a,d,t)=>{const e=E(!1),i=E(0),f=E("down"),{inScreen:m,observeElement:S}=re(),{vssWidth:s}=ie(),n=d||E(window.document.body),c=E(!1);let g=window.scrollY;const x=E(null),h=E(t?.offsetTop||0),r=A(()=>a.value?"getBoundingClientRect"in a.value?a.value:a.value.$el:null),u=A(()=>n.value?"getBoundingClientRect"in n.value?n.value:n.value.$el:null),b=E(0);function W(){if(!u.value||!r.value)return;const l=u.value.getBoundingClientRect(),v=r.value.getBoundingClientRect();b.value=l.height-v.height}const y=A(()=>{if(!u.value||!r.value)return 0;const l=u.value.getBoundingClientRect(),v=r.value.getBoundingClientRect();return l.top-(v.top-h.value)}),I=()=>{if(!r.value||!u.value)return;window.scrollY>g?(f.value!=="down"?x.value=!0:x.value=!1,f.value="down"):(f.value!=="up"?x.value=!0:x.value=!1,f.value="up"),g=window.scrollY;const l=u.value.getBoundingClientRect();if(t?.focusSticky){e.value=l.top<=h.value;return}const v=r.value.getBoundingClientRect(),K=v.top-h.value;if(t?.minScreenWidth&&s.value<t?.minScreenWidth){e.value=!1,i.value=0;return}if(t?.maxScreenWidth&&s.value>t?.maxScreenWidth){e.value=!1,i.value=0;return}if(l.top<=y.value)if(t?.willBeFixed){if(t?.keepStickyAtEnd&&t?.stopBeforeSelector){const _=document.querySelector(t.stopBeforeSelector);if(_&&_.getBoundingClientRect().top<=v.height){i.value=b.value,e.value=!1;return}}if(!t?.keepStickyAtEnd&&(v.height>window.innerHeight?l.bottom:l.bottom+(window.innerHeight-v.height))<=window.innerHeight){i.value=b.value,e.value=!1;return}if(e.value&&x.value){v.height>window.innerHeight&&(i.value=i.value-l.top,e.value=!1);return}e.value||(f.value==="down"?v.bottom<=window.innerHeight&&(i.value=v.height>window.innerHeight?window.innerHeight-v.height:0,e.value=!0):(v.top<=0&&v.bottom<=0&&(i.value=0,e.value=!0),v.top>=0&&(i.value=0,e.value=!0)))}else{const _=Math.min(Math.max(Math.abs(Math.abs(l.top-h.value))-Math.max(r.value.offsetHeight-window.innerHeight,0),0),b.value);if(f.value==="down"){const Q=v.height>window.innerHeight?v.height-window.innerHeight:0;if(K>-Q)return}else if(_<h.value)return;i.value=_,e.value=!0}else i.value=0,e.value=!1},T=ce(()=>{window.requestAnimationFrame(I)},100);let B=null;
1function M(){if(!(!r.value||!u.value)&&(W(),e.value&&!t?.willBeFixed&&(i.value=Math.min(Math.max(i.value,0),b.value)),e.value&&t?.willBeFixed&&i.value<0)){const l=r.value.getBoundingClientRect();i.value=window.innerHeight-l.height}}function H(){B?.disconnect(),B=new ResizeObserver(M),r.value&&B.observe(r.value),u.value&&B.observe(u.value)}const w=E(null),C=E(null);function k(){if(t?.keepShadowHeight&&r.value){const l=r.value?.parentNode;w.value=()=>{if(r.value&&l&&e.value){l.style.minHeight=`${r.value.offsetHeight}px`;return}l&&(l.style.minHeight="")},w.value(),window.addEventListener("resize",w.value),C.value=L(e,()=>{w.value&&w.value()})}}function q(){return!t?.keepStickyAtEnd||!u.value?!1:u.value.getBoundingClientRect().bottom<0}function R(){if(!r.value||!u.value){console.warn("Target or container element not found for useSticky"),e.value=!1,i.value=0,window.removeEventListener("scroll",T);return}if(t?.minScreenWidth||t?.maxScreenWidth){if(s.value===0)return;if((t?.minScreenWidth&&s.value>=t?.minScreenWidth||t?.maxScreenWidth&&s.value<=t?.maxScreenWidth)&&(m.value||q())){c.value||(window.addEventListener("scroll",T),c.value=!0);return}}else if(m.value||q()){c.value||(window.addEventListener("scroll",T),c.value=!0);return}e.value=!1,i.value=0,window.removeEventListener("scroll",T),c.value=!1}let o;function p(){clearTimeout(o),o=setTimeout(R,150)}return L(r,()=>{R(),k(),H()}),L(u,()=>{R(),H()}),L(m,()=>{R()}),Z(()=>{u.value&&S(u.value,{root:null,rootMargin:`${h.value}px`,threshold:[0,1]}),t?.willBeFixed&&I(),R(),k(),H(),window.addEventListener("resize",p)}),ee(()=>{window.removeEventListener("scroll",T),window.removeEventListener("resize",p),B?.disconnect(),w.value&&window.removeEventListener("resize",w.value),C.value&&C.value()}),{isSticky:e,top:i,scrollDirection:f}};export{ge as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.