{"version":3,"file":"FD.B13-oOA6.mjs","names":["e","u","l","useState","useState"],"sources":["https:/ga.jspm.io/npm:debounce@1.2.1/index.js","https:/ga.jspm.io/npm:react-use-measure@2.1.1/dist/web.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/5PV8VmVn3G6HlJzxf3XJ/qF017DQ9bLpTpqOHOxFg/FD.js"],"sourcesContent":["var e=\"undefined\"!==typeof globalThis?globalThis:\"undefined\"!==typeof self?self:global;var l={};\n/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */function debounce(l,n,u){var t,a,o,i,f;null==n&&(n=100);function later(){var e=Date.now()-i;if(e<n&&e>=0)t=setTimeout(later,n-e);else{t=null;if(!u){f=l.apply(o,a);o=a=null}}}var debounced=function(){o=this||e;a=arguments;i=Date.now();var r=u&&!t;t||(t=setTimeout(later,n));if(r){f=l.apply(o,a);o=a=null}return f};debounced.clear=function(){if(t){clearTimeout(t);t=null}};debounced.flush=function(){if(t){f=l.apply(o,a);o=a=null;clearTimeout(t);t=null}};return debounced}debounce.debounce=debounce;l=debounce;var n=l;export default n;\n\n//# sourceMappingURL=index.js.map","import{useState as e,useRef as r,useEffect as t,useMemo as n}from\"react\";import o from\"debounce\";function useMeasure(s){let{debounce:i,scroll:l,polyfill:c,offsetSize:u}=void 0===s?{debounce:0,scroll:false,offsetSize:false}:s;const f=c||(\"undefined\"===typeof window?class ResizeObserver{}:window.ResizeObserver);if(!f)throw new Error(\"This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills\");const[d,a]=e({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0});const m=r({element:null,scrollContainers:null,resizeObserver:null,lastBounds:d});const v=i?\"number\"===typeof i?i:i.scroll:null;const w=i?\"number\"===typeof i?i:i.resize:null;const h=r(false);t((()=>{h.current=true;return()=>{h.current=false}}));const[b,p,z]=n((()=>{const callback=()=>{if(!m.current.element)return;const{left:e,top:r,width:t,height:n,bottom:o,right:s,x:i,y:l}=m.current.element.getBoundingClientRect();const c={left:e,top:r,width:t,height:n,bottom:o,right:s,x:i,y:l};if(m.current.element instanceof HTMLElement&&u){c.height=m.current.element.offsetHeight;c.width=m.current.element.offsetWidth}Object.freeze(c);h.current&&!areBoundsEqual(m.current.lastBounds,c)&&a(m.current.lastBounds=c)};return[callback,w?o(callback,w):callback,v?o(callback,v):callback]}),[a,u,v,w]);function removeListeners(){if(m.current.scrollContainers){m.current.scrollContainers.forEach((e=>e.removeEventListener(\"scroll\",z,true)));m.current.scrollContainers=null}if(m.current.resizeObserver){m.current.resizeObserver.disconnect();m.current.resizeObserver=null}}function addListeners(){if(m.current.element){m.current.resizeObserver=new f(z);m.current.resizeObserver.observe(m.current.element);l&&m.current.scrollContainers&&m.current.scrollContainers.forEach((e=>e.addEventListener(\"scroll\",z,{capture:true,passive:true})))}}const ref=e=>{if(e&&e!==m.current.element){removeListeners();m.current.element=e;m.current.scrollContainers=findScrollContainers(e);addListeners()}};useOnWindowScroll(z,Boolean(l));useOnWindowResize(p);t((()=>{removeListeners();addListeners()}),[l,z,p]);t((()=>removeListeners),[]);return[ref,d,b]}function useOnWindowResize(e){t((()=>{const r=e;window.addEventListener(\"resize\",r);return()=>{window.removeEventListener(\"resize\",r)}}),[e])}function useOnWindowScroll(e,r){t((()=>{if(r){const r=e;window.addEventListener(\"scroll\",r,{capture:true,passive:true});return()=>{window.removeEventListener(\"scroll\",r,true)}}}),[e,r])}function findScrollContainers(e){const r=[];if(!e||e===document.body)return r;const{overflow:t,overflowX:n,overflowY:o}=window.getComputedStyle(e);[t,n,o].some((e=>\"auto\"===e||\"scroll\"===e))&&r.push(e);return[...r,...findScrollContainers(e.parentElement)]}const s=[\"x\",\"y\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\"];const areBoundsEqual=(e,r)=>s.every((t=>e[t]===r[t]));export{useMeasure as default};\n\n//# sourceMappingURL=web.js.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import useMeasure from\"react-use-measure\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({background:\"#0099FF\"});// ANIMATED BORDER\nconst BORDER_RADIUS=0;const INSET=1;const X_MARGIN=80;export function withAnimatedBorderGradient(Component){return props=>{const[sizeRef,{width,height}]=useMeasure();const aspectRatio=width/height;const styles=`\n      @property --r2 {\n        syntax: '<angle>';\n        inherits: false;\n        initial-value: 0deg;\n      }\n\n      @property --x {\n        syntax: '<length>';\n        inherits: false;\n        initial-value: 0px;\n      }\n\n      .${props.className} .box {\n        background: conic-gradient(\n          from calc(var(--r2) - 80deg) at var(--x) ${height/2}px,\n          #222 0%,\n          #00FF84 20%,\n          #222 25%\n        );\n        animation: -0.64s rotating2 4s linear infinite,\n          -0.64s x 4s linear infinite;\n        width: 100%;\n        height: 100%; \n        border-radius: ${BORDER_RADIUS+INSET}px;\n        position: relative;\n        z-index: 0;\n      }\n\n      .${props.className} .box::after {\n        content: '';\n        display: block;\n        position: absolute;\n        background: #0D0D0D;\n        inset: ${INSET}px;\n        border-radius: ${BORDER_RADIUS}px;\n        z-index: 0;\n        transition: opacity 0.3s ease;\n      }\n\n      @keyframes x {\n        0% {\n          --x: ${X_MARGIN}px;\n        }\n  \n        ${aspectRatio/(aspectRatio+3.14)*.5*100}% {\n          --x: ${width-X_MARGIN}px;\n        }\n        50% {\n          --x: ${width-X_MARGIN}px;\n        }\n    \n        ${aspectRatio/(aspectRatio+3.14)*.5*100+50}% {\n          --x: ${X_MARGIN}px;\n        }\n        100% {\n    --x: ${X_MARGIN}px;\n        }\n      }\n\n      @keyframes rotating2 {\n        0% {\n          --r2: 0deg;\n        }\n        ${aspectRatio/(aspectRatio+3.14)*.5*100}% {\n          --r2: 0deg;\n        }\n        50% {\n          --r2: 180deg;\n        }\n        ${aspectRatio/(aspectRatio+3.14)*.5*100+50}% {\n          --r2: 180deg;\n        }\n        100% {\n          --r2: 360deg;\n        }\n      }\n    `;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsxs(Component,{...props,children:[/*#__PURE__*/_jsx(\"div\",{className:\"box\",ref:sizeRef}),props.children]})]});};}// NAV HIDE ON SCROLL\nexport function withHideOnScroll(Component){return props=>{const[scrollDirection,setScrollDirection]=useState(undefined);const[prevScrollPosition,setPrevScrollPosition]=useState(0);useEffect(()=>{const handleScroll=()=>{const scrollY=window.scrollY;const height=document.body.scrollHeight-window.innerHeight;const progress=scrollY/height;if(scrollY<0||progress>1){return;}if(window.scrollY>prevScrollPosition){setScrollDirection(\"down\");}else{setScrollDirection(\"up\");}setPrevScrollPosition(window.scrollY);};window.addEventListener(\"scroll\",handleScroll,{passive:true});return()=>{window.removeEventListener(\"scroll\",handleScroll);};});return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transition:\"transform 100ms ease-in-out\",transform:scrollDirection===\"down\"?\"translateY(-100%)\":\"translateY(0)\"}});};}// TEXT HIGHTLIGHT\nconst COLOR=\"#141414\";const BACKGROUND_COLOR=\"#F3F901\";const styles=`\n  .overrrides-custom-cursor::selection, .overrrides-custom-cursor *::selection {\n    color: ${COLOR} !important;\n    background: ${BACKGROUND_COLOR} !important;\n  }\n`;export function withCustomTextHighlight(Component){return props=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsx(Component,{...props,className:`overrrides-custom-cursor ${props.className}`})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCustomTextHighlight\":{\"type\":\"reactHoc\",\"name\":\"withCustomTextHighlight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAnimatedBorderGradient\":{\"type\":\"reactHoc\",\"name\":\"withAnimatedBorderGradient\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideOnScroll\":{\"type\":\"reactHoc\",\"name\":\"withHideOnScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FD.map"],"mappings":"uMAcG,SAAS,EAAS,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAY,IAAE,IAAK,SAAS,GAAO,CAAC,IAAIA,EAAE,KAAK,KAAK,CAAC,EAAKA,EAAE,GAAGA,GAAG,EAAE,EAAE,WAAW,EAAM,EAAEA,EAAE,EAAM,EAAE,KAASC,IAAG,EAAEC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,IAAI,EAAU,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,KAAK,KAAK,CAAC,IAAI,EAAED,GAAG,CAAC,EAA2D,MAAzD,CAAI,IAAE,WAAW,EAAM,EAAE,CAAK,IAAG,EAAEC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,MAAY,GAA+I,MAA5I,GAAU,MAAM,UAAU,CAAC,AAAsB,KAAhB,aAAa,EAAE,CAAG,OAAO,EAAU,MAAM,UAAU,CAAC,AAA8C,KAAxC,EAAEA,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,KAAK,aAAa,EAAE,CAAG,OAAc,sBAd3c,EAAgB,OAAO,WAArB,IAAgC,WAAyB,OAAO,KAArB,IAA0B,KAAK,EAcyY,EAAS,SAAS,sBCdla,IAAwB,ICAnB,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,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