"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5],{244:(e,t,r)=>{r.d(t,{a:()=>l});var n=r(0),i=(Object.defineProperty,new Map),o=new WeakMap,s=0,c=void 0;function a(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:a,observer:l,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(o.has(r)||(s+=1,o.set(r,s.toString())),o.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=i.get(t);if(!r){const n=new Map;let o;const s=new IntersectionObserver((t=>{t.forEach((t=>{var r;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=n.get(t.target))||r.forEach((e=>{e(i,t)}))}))}),e);o=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:s,elements:n},i.set(t,r)}return r}(r),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),l.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),l.unobserve(e)),0===u.size&&(l.disconnect(),i.delete(a))}}function l({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:o,triggerOnce:s,skip:c,initialInView:l,fallbackInView:u,onChange:d}={}){var h;const[f,g]=n.useState(null),v=n.useRef(),[b,y]=n.useState({inView:!!l,entry:void 0});v.current=d,n.useEffect((()=>{if(c||!f)return;let n;return n=a(f,((e,t)=>{y({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&s&&n&&(n(),n=void 0)}),{root:o,rootMargin:i,threshold:e,trackVisibility:r,delay:t},u),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,f,o,i,s,c,r,u,t]);const w=null==(h=b.entry)?void 0:h.target,p=n.useRef();f||!w||s||c||p.current===w||(p.current=w,y({inView:!!l,entry:void 0}));const V=[g,b.inView,b.entry];return V.ref=V[0],V.inView=V[1],V.entry=V[2],V}n.Component}}]);