1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47420,t=>{"use strict";var e=t.i(86143),i=t.i(22828);function s(t,e,i){return Math.max(t,Math.min(e,i))}var o=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=s(0,this.currentTime/this.duration,1),o=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*o}else if(this.lerp){var i,o,n,r;this.value=(i=this.value,o=this.to,n=60*this.lerp,(1-(r=1-Math.exp(-n*t)))*i+r*o),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:o,onStart:n,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,n?.(),this.onUpdate=r}},n=class{constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...s){let o=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(o,s)},e)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},r=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t<s;t++)i[t]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}},l=100/6,a={passive:!1},h=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,a),this.element.addEventListener("touchstart",this.onTouchStart,a),this.element.addEventListener("touchmove",this.onTouchMove,a),this.element.addEventListener("touchend",this.onTouchEnd,a)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new r;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,a),this.element.removeEventListener("touchstart",this.onTouchStart,a),this.element.removeEventListener("touchmove",this.onTouchMove,a),this.element.removeEventListener("touchend",this.onTouchEnd,a)}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t,o=1===s?l:2===s?this.window.width:1,n=1===s?l:2===s?this.window.height:1;e*=o,i*=n,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},c=t=>Math.min(1,1.001-Math.pow(2,-10*t)),d=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new o;emitter=new r;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:s=!0,syncTouch:o=!1,syncTouchLerp:r=.075,touchInertiaExponent:l=1.7,duration:a,easing:d,lerp:p=.1,infinite:u=!1,orientation:m="vertical",gestureOrientation:f="horizontal"===m?"both":"vertical",touchMultiplier:v=1,wheelMultiplier:g=1,autoResize:w=!0,prevent:S,virtualScroll:b,overscroll:y=!0,autoRaf:x=!1,anchors:E=!1,autoToggle:T=!1,allowNestedScroll:z=!1,__experimental__naiveDimensions:L=!1,naiveDimensions:N=L,stopInertiaOnNavigate:k=!1}
1={}){window.lenisVersion="1.3.17",t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof d?d=c:"function"==typeof d&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:s,syncTouch:o,syncTouchLerp:r,touchInertiaExponent:l,duration:a,easing:d,lerp:p,infinite:u,gestureOrientation:f,orientation:m,touchMultiplier:v,wheelMultiplier:g,autoResize:w,prevent:S,virtualScroll:b,overscroll:y,autoRaf:x,anchors:E,autoToggle:T,allowNestedScroll:z,naiveDimensions:N,stopInertiaOnNavigate:k},this.dimensions=new n(t,e,{autoResize:w}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new h(i,{touchMultiplier:v,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName.includes("overflow")&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.getAttribute("href"));if(this.options.anchors){let t=e.find(t=>t.getAttribute("href")?.includes("#"));if(t){let e=t.getAttribute("href");if(e){let t="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${e.split("#")[1]}`;this.scrollTo(i,t)}}}this.options.stopInertiaOnNavigate&&e.find(t=>t.host===window.location.host)&&this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let o=s.type.includes("touch"),n=s.type.includes("wheel");this.isTouching="touchstart"===s.type||"touchmove"===s.type;let r=0===e&&0===i;if(this.options.syncTouch&&o&&"touchstart"===s.type&&r&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(r||l)return;let a=s.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let h=this.options.prevent;if(a.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||o&&t.hasAttribute?.("data-lenis-prevent-touch")||n&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:e,deltaY:i}
1))))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&n)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();let d=o&&this.options.syncTouch,p=o&&"touchend"===s.type;p&&(c=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+c,{programmatic:!1,...d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:o=!1,programmatic:n=!0,lerp:r=n?this.options.lerp:void 0,duration:l=n?this.options.duration:void 0,easing:a=n?this.options.easing:void 0,onStart:h,onComplete:d,force:p=!1,userData:u}={}){if(!this.isStopped&&!this.isLocked||p){if("string"==typeof t&&["top","left","start","#"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?(i=document.querySelector(t))||("#top"===t?t=0:console.warn("Lenis: Target not found",t)):t instanceof HTMLElement&&t?.nodeType&&(i=t),i){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let s=i.getBoundingClientRect();t=(this.isHorizontal?s.left:s.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite){if(n){this.targetScroll=this.animatedScroll=this.scroll;let e=t-this.animatedScroll;e>this.limit/2?t-=this.limit:e<-this.limit/2&&(t+=this.limit)}}else t=s(0,t,this.limit);if(t===this.targetScroll){h?.(this),d?.(this);return}if(this.userData=u??{},i){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),d?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}n||(this.targetScroll=t),"number"==typeof l&&"function"!=typeof a?a=c:"function"==typeof a&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,t,{duration:l,easing:a,lerp:r,onStart:()=>{o&&(this.isLocked=!0),this.isScrolling="smooth",h?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),n&&(this.targetScroll=t),e||this.emit
1(),e&&(this.reset(),this.emit(),d?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:i}){let s,o,n,r,l,a,h,c,d,p,u,m,f,v,g=Date.now(),w=t._lenis??={},S=this.options.gestureOrientation;if(g-(w.time??0)>2e3){w.time=Date.now();let e=window.getComputedStyle(t);w.computedStyle=e;let i=e.overflowX,d=e.overflowY;if(s=["auto","overlay","scroll"].includes(i),o=["auto","overlay","scroll"].includes(d),w.hasOverflowX=s,w.hasOverflowY=o,!s&&!o||"vertical"===S&&!o||"horizontal"===S&&!s)return!1;l=t.scrollWidth,a=t.scrollHeight,h=t.clientWidth,c=t.clientHeight,n=l>h,r=a>c,w.isScrollableX=n,w.isScrollableY=r,w.scrollWidth=l,w.scrollHeight=a,w.clientWidth=h,w.clientHeight=c}else n=w.isScrollableX,r=w.isScrollableY,s=w.hasOverflowX,o=w.hasOverflowY,l=w.scrollWidth,a=w.scrollHeight,h=w.clientWidth,c=w.clientHeight;if(!s&&!o||!n&&!r||"vertical"===S&&(!o||!r)||"horizontal"===S&&(!s||!n)||("horizontal"===S?d="x":"vertical"===S?d="y":(0!==e&&s&&n&&(d="x"),0!==i&&o&&r&&(d="y")),!d))return!1;if("x"===d)p=t.scrollLeft,u=l-h,m=e,f=s,v=n;else{if("y"!==d)return!1;p=t.scrollTop,u=a-c,m=i,f=o,v=r}return(m>0?p<u:p>0)&&f&&v}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function p({children:t}){return(0,i.useEffect)(()=>{let t=new d;return requestAnimationFrame(function e(i){t.raf(i),requestAnimationFrame(e)}),()=>{t.destroy()}},[]),(0,e.jsx)(e.Fragment,{children:t})}t.s(["default",()=>p],47420)},44805,t=>{"use strict";var e=t.i(86143),i=t.i(22828),s=t.i(35259);function o(){let t=(0,i.useRef)(null),o=(0,i.useRef)(null),[n,r]=(0,i.useState)(!1),[l,a]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{if(!window.matchMedia("(min-width: 1024px)").matches)return;let e=t.current,i=o.current;if(!e||!i)return;let n=t=>{a(!1);let{clientX:o,clientY:n}=t;s.default.to(e,{x:o,y:n,duration:.1,ease:"power2.out"}),s.default.to(i,{x:o,y:n,duration:.4,ease:"power3.out"})},l=()=>a(!1),h=()=>a(!0),c=()=>{s.default.to([e,i],{scale:.8,duration:.2})},d=()=>{s.default.to([e,i],{scale:1,duration:.2})},p=t=>{let o=t.target;("A"===o.tagName||"BUTTON"===o.tagName||o.closest("a")||o.closest("button")||o.classList.contains("cursor-pointer"))&&(r(!0),s.default.to(e,{scale:2.5,backgroundColor:"rgba(255, 255, 255, 0.1)",duration:.3}),s.default.to(i,{scale:.5,duration:.3}))},u=()=>{r(!1),s.default.to(e,{scale:1,backgroundColor:"transparent",duration:.3}),s.default.to(i,{scale:1,duration:.3})};return window.addEventListener("mousemove",n),window.addEventListener("mouseenter",l),window.addEventListener("mouseleave",h),window.addEventListener("mousedown",c),window.addEventListener("mouseup",d),document.addEventListener("mouseover",p),document.addEventListener("mouseout",u),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseenter",l),window.removeEventListener("mouseleave",h),window.removeEventListener("mousedown",c),window.removeEventListener("mouseup",d),document.removeEventListener("mouseover",p),document.removeEventListener("mouseout",u)}},[]),(0,e.jsxs)("div",{className:`hidden lg:block fixed inset-0 pointer-events-none z-[9999] mix-blend-difference transition-opacity duration-300 ${l?"opacity-0":"opacity-100"}`,children:[(0,e.jsx)("div",{ref:t,className:"fixed top-0 left-0 w-8 h-8 -ml-4 -mt-4 rounded-full border border-white/50 pointer-events-none"}),(0,e.jsx)("div",{ref:o,className:"fixed top-0 left-0 w-1.5 h-1.5 -ml-[3px] -mt-[3px] rounded-full bg-white pointer-events-none"})]})}t.s(["default",()=>o])},37215,t=>{"use strict";var e=t.i(86143),i=t.i(22828);let s=[{id:"default",label:"Original",emoji:"ð¥",color:"#000000"},{id:"dark",label:"Dark",emoji:"ð",color:"#0a0a0f"},{id:"saffron",label:"Saffron",emoji:"ðª·",color:"#1a0f08"},{id:"minimal",label:"Minimal",emoji:"â»ï¸",color:"#fafafa"},{id:"cyberpunk",label:"Cyber",emoji:"â¡",color:"#0a0a12"}],o={default:"#000000",dark:"#0a0a0f",saffron:"#1a0f08",minimal:"#fafafa",cyberpunk:"#0a0a12"};function n(){let[t,n]=(0,i.useState)("default"),[r,l]=(0,i.useState)(!1),[a,h]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),[p,u]=(0,i.useState)(!1),m=(0,i.useRef)(null),f=(0,i.useRef)(null);(0,i.useEffect)(()=>{let t=localStorage.getItem("portfolio-theme");t&&s.some(e=>e.id===t)&&(n(t),document.documentElement.setAttribute("data-theme",t),u(!0))},[]),(0,i.useEffect)(()=>
1{if(p||r)return void d(!1);let t=setInterval(()=>{d(!0),setTimeout(()=>d(!1),4e3)},12e3),e=setTimeout(()=>{p||r||d(!0),setTimeout(()=>d(!1),4e3)},5e3);return()=>{clearInterval(t),clearTimeout(e)}},[p,r]);let v=(0,i.useCallback)(e=>{if(e===t||a)return;u(!0),h(!0),l(!1),d(!1);let i=m.current;i&&(i.style.backgroundColor=o[e],i.style.transform="scale(0)",i.style.opacity="1",i.offsetHeight,i.style.transform="scale(1)",setTimeout(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("portfolio-theme",e),n(e)},350),setTimeout(()=>{i.style.opacity="0"},500),setTimeout(()=>{i.style.transform="scale(0)",h(!1)},900))},[t,a]);return(0,i.useEffect)(()=>{let t=t=>{f.current&&!f.current.contains(t.target)&&l(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{ref:m,style:{position:"fixed",bottom:"30px",right:"30px",width:"200vmax",height:"200vmax",borderRadius:"50%",transform:"scale(0)",transformOrigin:"center center",opacity:0,zIndex:99998,pointerEvents:"none",transition:"transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease",marginBottom:"-100vmax",marginRight:"-100vmax"}}),(0,e.jsxs)("div",{ref:f,className:"fixed bottom-6 right-6 z-[99999]",children:[(0,e.jsxs)("div",{style:{position:"absolute",bottom:"70px",right:"0",whiteSpace:"nowrap",background:"rgba(255, 255, 255, 0.95)",color:"#000",padding:"8px 14px",borderRadius:"12px",fontSize:"12px",fontWeight:600,boxShadow:"0 8px 24px rgba(0,0,0,0.2)",transition:"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",opacity:+!!c,transform:c?"translateY(0) scale(1)":"translateY(10px) scale(0.9)",pointerEvents:"none",display:"flex",alignItems:"center",gap:"6px"},children:[(0,e.jsx)("span",{children:"Try another vibe!"}),(0,e.jsx)("span",{style:{fontSize:"14px"},children:"ð¥"}),(0,e.jsx)("div",{style:{position:"absolute",bottom:"-6px",right:"20px",width:"12px",height:"12px",background:"rgba(255, 255, 255, 0.95)",transform:"rotate(45deg)"}})]}),(0,e.jsxs)("div",{className:`absolute bottom-16 right-0 transition-all duration-300 ${r?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-2 pointer-events-none"}`,style:{background:"rgba(20, 20, 20, 0.95)",backdropFilter:"blur(20px)",borderRadius:"16px",border:"1px solid rgba(255, 255, 255, 0.12)",padding:"8px",minWidth:"170px",boxShadow:"0 12px 40px rgba(0,0,0,0.5)"},children:[(0,e.jsx)("div",{style:{padding:"8px 12px 4px",fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.15em",color:"rgba(255,255,255,0.35)",fontWeight:700},children:"Switch Theme"}),s.map(i=>(0,e.jsxs)("button",{onClick:()=>v(i.id),style:{display:"flex",alignItems:"center",gap:"10px",width:"100%",padding:"10px 12px",border:"none",borderRadius:"10px",background:t===i.id?"rgba(255,255,255,0.12)":"transparent",color:"#fff",fontSize:"13px",fontWeight:t===i.id?600:400,cursor:a?"wait":"pointer",transition:"background 0.2s",textAlign:"left",fontFamily:"system-ui, sans-serif"},onMouseEnter:e=>{t!==i.id&&(e.currentTarget.style.background="rgba(255,255,255,0.06)")},onMouseLeave:e=>{t!==i.id&&(e.currentTarget.style.background="transparent")},children:[(0,e.jsx)("span",{style:{width:"18px",height:"18px",borderRadius:"50%",background:i.color,border:t===i.id?"2px solid #fff":"2px solid rgba(255,255,255,0.2)",flexShrink:0,boxShadow:t===i.id?`0 0 12px ${i.color}`:"none"}}),(0,e.jsx)("span",{children:i.label}),t===i.id&&(0,e.jsx)("span",{style:{marginLeft:"auto",fontSize:"11px",color:"rgba(255,255,255,0.5)"},children:"â"})]},i.id))]}),(0,e.jsx)("button",{onClick:()=>{l(!r),u(!0)},"aria-label":"Toggle theme",style:{width:"50px",height:"50px",borderRadius:"50%",border:"1px solid rgba(255,255,255,0.15)",background:"rgba(20, 20, 20, 0.92)",backdropFilter:"blur(12px)",color:"#fff",fontSize:"20px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"0 4px 20px rgba(0,0,0,0.4)",fontFamily:"system-ui"},children:s.find(e=>e.id===t)?.emoji})]})]})}t.s(["default",()=>n])}]);
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.