import{j as I,q as P,r as f,f8 as T,F as C,f6 as M,f9 as V}from"./index-Cox3ZWL0.js";const X=({children:t})=>I.jsx(P,{flexDirection:"column",sx:{gap:20},pb:"60vh",children:t});var A=new Map,v=new WeakMap,E=0,B=void 0;function N(t){return t?(v.has(t)||(E+=1,v.set(t,E.toString())),v.get(t)):"0"}function W(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?N(t.root):t[e]}`).toString()}function D(t){const e=W(t);let r=A.get(e);if(!r){const o=new Map;let u;const n=new IntersectionObserver(i=>{i.forEach(s=>{var a;const b=s.isIntersecting&&u.some(l=>s.intersectionRatio>=l);t.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=b),(a=o.get(s.target))==null||a.forEach(l=>{l(b,s)})})},t);u=n.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),r={id:e,observer:n,elements:o},A.set(e,r)}return r}function F(t,e,r={},o=B){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const a=t.getBoundingClientRect();return e(o,{isIntersecting:o,target:t,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:u,observer:n,elements:i}=D(r),s=i.get(t)||[];return i.has(t)||i.set(t,s),s.push(e),n.observe(t),function(){s.splice(s.indexOf(e),1),s.length===0&&(i.delete(t),n.unobserve(t)),i.size===0&&(n.disconnect(),A.delete(u))}}function $({threshold:t,delay:e,trackVisibility:r,rootMargin:o,root:u,triggerOnce:n,skip:i,initialInView:s,fallbackInView:a,onChange:b}={}){var l;const[p,R]=f.useState(null),m=f.useRef(b),[h,j]=f.useState({inView:!!s,entry:void 0});m.current=b,f.useEffect(()=>{if(i||!p)return;let y;return y=F(p,(_,S)=>{j({inView:_,entry:S}),m.current&&m.current(_,S),S.isIntersecting&&n&&y&&(y(),y=void 0)},{root:u,rootMargin:o,threshold:t,trackVisibility:r,delay:e},a),()=>{y&&y()}},[Array.isArray(t)?t.toString():t,p,u,o,n,i,r,a,e]);const g=(l=h.entry)==null?void 0:l.target,w=f.useRef(void 0);!p&&g&&!n&&!i&&w.current!==g&&(w.current=g,j({inView:!!s,entry:void 0}));const c=[R,h.inView,h.entry];return c.ref=c[0],c.inView=c[1],c.entry=c[2],c}const q={textDecoration:"none",scrollMarginTop:"5vh"},Y=({name:t,children:e})=>{const{setVisibility:r,clear:o}=f.useContext(T),{ref:u}=$({threshold:[0,1],rootMargin:"0% 0% 0% 0%",root:document.getElementById("content"),onChange:(n,i)=>{r({anchor:t,visibility:i.intersectionRatio})}});return f.useEffect(()=>o,[o]),I.jsx(C,{sx:q,ref:u,id:t,children:e})};var O={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(n=u(n,o(s)))}return n}function o(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var s in n)e.call(n,s)&&n[s]&&(i=u(i,s));return i}function u(n,i){return i?n?n+" "+i:n+i:n}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(O);var L=O.exports;const Z=M(L);function k(t,e){if(t==null)return{};var r,o,u=V(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)r=n[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(u[r]=t[r])}return u}function x(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function z(t){if(Array.isArray(t))return x(t)}function H(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function K(t,e){if(t){if(typeof t=="string")return x(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}function U(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tt(t){return z(t)||H(t)||K(t)||U()}function d(t){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(t)}function G(t,e){if(d(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e);if(d(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function J(t){var e=G(t,"string");return d(e)=="symbol"?e:e+""}function et(t,e,r){return(e=J(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}export{X as A,d as _,et as a,K as b,tt as c,H as d,k as e,Z as f,Y as g,L as h,J as t};
