From 1460a2b8bfbd2430b263230d6ce9fc3bd303da8f Mon Sep 17 00:00:00 2001 From: Satyam Mishra Date: Fri, 20 Dec 2024 18:19:47 +0530 Subject: [PATCH] Updates --- assets/{index-f681c7fa.js => index-de4dd922.js} | 4 ++-- index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename assets/{index-f681c7fa.js => index-de4dd922.js} (98%) diff --git a/assets/index-f681c7fa.js b/assets/index-de4dd922.js similarity index 98% rename from assets/index-f681c7fa.js rename to assets/index-de4dd922.js index 43f0b2e..3f5fa1f 100644 --- a/assets/index-f681c7fa.js +++ b/assets/index-de4dd922.js @@ -72,7 +72,7 @@ Error generating stack: `+s.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(c)}},[e]),q.createElement(EW,{isPresent:e,childRef:i,sizeRef:r},q.cloneElement(n,{ref:i}))}const _w=({children:n,initial:e,isPresent:t,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const a=Rk(AW),l=q.useId(),c=q.useMemo(()=>({id:l,initial:e,isPresent:t,custom:r,onExitComplete:d=>{a.set(d,!0);for(const f of a.values())if(!f)return;i&&i()},register:d=>(a.set(d,!1),()=>a.delete(d))}),s?void 0:[t]);return q.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[t]),q.useEffect(()=>{!t&&!a.size&&i&&i()},[t]),o==="popLayout"&&(n=q.createElement(TW,{isPresent:t},n)),q.createElement(O_.Provider,{value:c},n)};function AW(){return new Map}function MW(n){return q.useEffect(()=>()=>n(),[])}const Ac=n=>n.key||"";function CW(n,e){n.forEach(t=>{const i=Ac(t);e.set(i,t)})}function bW(n){const e=[];return q.Children.forEach(n,t=>{q.isValidElement(t)&&e.push(t)}),e}const TI=({children:n,custom:e,initial:t=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=q.useContext(VA).forceRender||wW()[0],l=DO(),c=bW(n);let d=c;const f=q.useRef(new Map).current,p=q.useRef(d),m=q.useRef(new Map).current,_=q.useRef(!0);if(kA(()=>{_.current=!1,CW(c,m),p.current=d}),MW(()=>{_.current=!0,m.clear(),f.clear()}),_.current)return q.createElement(q.Fragment,null,d.map(E=>q.createElement(_w,{key:Ac(E),isPresent:!0,initial:t?void 0:!1,presenceAffectsLayout:s,mode:o},E)));d=[...d];const S=p.current.map(Ac),x=c.map(Ac),y=S.length;for(let E=0;E{if(x.indexOf(w)!==-1)return;const M=m.get(w);if(!M)return;const O=S.indexOf(w);let k=E;if(!k){const I=()=>{f.delete(w);const P=Array.from(m.keys()).filter(D=>!x.includes(D));if(P.forEach(D=>m.delete(D)),p.current=c.filter(D=>{const A=Ac(D);return A===w||P.includes(A)}),!f.size){if(l.current===!1)return;a(),i&&i()}};k=q.createElement(_w,{key:Ac(M),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:s,mode:o},M),f.set(w,k)}d.splice(O,0,k)}),d=d.map(E=>{const w=E.key;return f.has(w)?E:q.createElement(_w,{key:Ac(E),isPresent:!0,presenceAffectsLayout:s,mode:o},E)}),q.createElement(q.Fragment,null,f.size?d:d.map(E=>q.cloneElement(E)))},sr={paddingX:"sm:px-16 px-6",paddingY:"sm:py-16 py-6",padding:"sm:px-16 px-6 sm:py-16 py-10",heroHeadText:"font-black text-[#373737] lg:text-[80px] sm:text-[60px] xs:text-[50px] text-[40px] lg:leading-[98px] mt-2",heroSubText:"text-[#dfd9ff] font-medium lg:text-[30px] sm:text-[26px] xs:text-[20px] text-[16px] lg:leading-[40px]",sectionHeadText:"text-black font-black md:text-[60px] sm:text-[50px] xs:text-[40px] text-[30px]",sectionSubText:"sm:text-[18px] text-[14px] text-secondary uppercase tracking-wider"},PW="/assets/web-0c6824d5.webp",RW="/assets/mobile-84df6906.webp",IW="/assets/creator-ab86683b.webp",AI=[{id:"HeroSection",title:"Home",type:"route"},{id:"AboutSection",title:"About",type:"route"},{id:"ExperienceSection",title:"Experience",type:"route"},{id:"TechSkillsSection",title:"Skills",type:"route"},{id:"ResumeSection",title:"Resume",type:"route"},{id:"ProjectsSection",title:"Projects",type:"route"},{id:"BlogsSections",title:"Blogs",type:"route"},{id:"ContactSection",title:"Contact",type:"route"},{id:"freetools",title:"Free Tools",type:"tools"}],LW=[{id:"DownloadTube",title:"DownloadTube (Youtube Downloader)",type:"video",url:"https://downloadtube-iota.vercel.app/"}],NW=[{title:"Full Stack Web Development",icon:PW},{title:"Designing",icon:IW},{title:"ML and DL Learner",icon:RW}],DW="/assets/logo-white-f51edd31.webp",kW="/assets/bars-solid-dd6e31d5.svg",OW="/assets/circle-xmark-regular-11645b29.svg",Lm=n=>({hidden:{y:-50,opacity:0},show:{y:0,opacity:1,transition:{type:"spring",duration:1.25,delay:n}}}),Ed=(n,e,t,i)=>({hidden:{x:n==="left"?100:n==="right"?-100:0,y:n==="up"?100:n==="down"?-100:0,opacity:0},show:{x:0,y:0,opacity:1,transition:{type:e,delay:t,duration:i,ease:"easeOut"}}}),UW=(n,e)=>({hidden:{},show:{transition:{staggerChildren:n,delayChildren:e||0}}}),FW=()=>{const[n,e]=q.useState(""),[t,i]=q.useState(!1),[r,s]=q.useState(!1);return B.jsx(er.nav,{className:`${sr.paddingX} w-full flex items-center py-5 fixed top-0 z-20 bg-black`,children:B.jsxs("div",{className:"w-full flex justify-between items-center max-w-7xl mx-auto",children:[B.jsxs("a",{href:"",className:"flex items-center gap-2",onClick:()=>{e(""),window.scrollTo(0,0)},children:[B.jsx("img",{src:DW,className:"w-10 h-10 object-contain",alt:"logo"}),B.jsxs("div",{className:"text-primary text-[18px] md:block lg:flex ",children:[B.jsx("p",{className:"flex",children:"Satyam Mishra  "}),B.jsx("span",{className:"sm:block hidden",children:"| Bedead"})]})]}),B.jsxs("ul",{className:"list-none hidden sm:flex flex-row md:gap-4 items-center",children:[AI.map(o=>B.jsx("li",{className:o.type=="tools"?"bg-secondary text-gray-400 hover:text-primary py-2 px-3 rounded-xl text-[18px] font-medium cursor-pointer":`${n==o.title?"text-primary":"text-gray-400"} + `),()=>{document.head.removeChild(c)}},[e]),q.createElement(EW,{isPresent:e,childRef:i,sizeRef:r},q.cloneElement(n,{ref:i}))}const _w=({children:n,initial:e,isPresent:t,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const a=Rk(AW),l=q.useId(),c=q.useMemo(()=>({id:l,initial:e,isPresent:t,custom:r,onExitComplete:d=>{a.set(d,!0);for(const f of a.values())if(!f)return;i&&i()},register:d=>(a.set(d,!1),()=>a.delete(d))}),s?void 0:[t]);return q.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[t]),q.useEffect(()=>{!t&&!a.size&&i&&i()},[t]),o==="popLayout"&&(n=q.createElement(TW,{isPresent:t},n)),q.createElement(O_.Provider,{value:c},n)};function AW(){return new Map}function MW(n){return q.useEffect(()=>()=>n(),[])}const Ac=n=>n.key||"";function CW(n,e){n.forEach(t=>{const i=Ac(t);e.set(i,t)})}function bW(n){const e=[];return q.Children.forEach(n,t=>{q.isValidElement(t)&&e.push(t)}),e}const TI=({children:n,custom:e,initial:t=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=q.useContext(VA).forceRender||wW()[0],l=DO(),c=bW(n);let d=c;const f=q.useRef(new Map).current,p=q.useRef(d),m=q.useRef(new Map).current,_=q.useRef(!0);if(kA(()=>{_.current=!1,CW(c,m),p.current=d}),MW(()=>{_.current=!0,m.clear(),f.clear()}),_.current)return q.createElement(q.Fragment,null,d.map(E=>q.createElement(_w,{key:Ac(E),isPresent:!0,initial:t?void 0:!1,presenceAffectsLayout:s,mode:o},E)));d=[...d];const S=p.current.map(Ac),x=c.map(Ac),y=S.length;for(let E=0;E{if(x.indexOf(w)!==-1)return;const M=m.get(w);if(!M)return;const O=S.indexOf(w);let k=E;if(!k){const I=()=>{f.delete(w);const P=Array.from(m.keys()).filter(D=>!x.includes(D));if(P.forEach(D=>m.delete(D)),p.current=c.filter(D=>{const A=Ac(D);return A===w||P.includes(A)}),!f.size){if(l.current===!1)return;a(),i&&i()}};k=q.createElement(_w,{key:Ac(M),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:s,mode:o},M),f.set(w,k)}d.splice(O,0,k)}),d=d.map(E=>{const w=E.key;return f.has(w)?E:q.createElement(_w,{key:Ac(E),isPresent:!0,presenceAffectsLayout:s,mode:o},E)}),q.createElement(q.Fragment,null,f.size?d:d.map(E=>q.cloneElement(E)))},sr={paddingX:"sm:px-16 px-6",paddingY:"sm:py-16 py-6",padding:"sm:px-16 px-6 sm:py-16 py-10",heroHeadText:"font-black text-[#373737] lg:text-[80px] sm:text-[60px] xs:text-[50px] text-[40px] lg:leading-[98px] mt-2",heroSubText:"text-[#dfd9ff] font-medium lg:text-[30px] sm:text-[26px] xs:text-[20px] text-[16px] lg:leading-[40px]",sectionHeadText:"text-black font-black md:text-[60px] sm:text-[50px] xs:text-[40px] text-[30px]",sectionSubText:"sm:text-[18px] text-[14px] text-secondary uppercase tracking-wider"},PW="/portfolio-react-threejs/assets/web-0c6824d5.webp",RW="/portfolio-react-threejs/assets/mobile-84df6906.webp",IW="/portfolio-react-threejs/assets/creator-ab86683b.webp",AI=[{id:"HeroSection",title:"Home",type:"route"},{id:"AboutSection",title:"About",type:"route"},{id:"ExperienceSection",title:"Experience",type:"route"},{id:"TechSkillsSection",title:"Skills",type:"route"},{id:"ResumeSection",title:"Resume",type:"route"},{id:"ProjectsSection",title:"Projects",type:"route"},{id:"BlogsSections",title:"Blogs",type:"route"},{id:"ContactSection",title:"Contact",type:"route"},{id:"freetools",title:"Free Tools",type:"tools"}],LW=[{id:"DownloadTube",title:"DownloadTube (Youtube Downloader)",type:"video",url:"https://downloadtube-iota.vercel.app/"}],NW=[{title:"Full Stack Web Development",icon:PW},{title:"Designing",icon:IW},{title:"ML and DL Learner",icon:RW}],DW="/portfolio-react-threejs/assets/logo-white-f51edd31.webp",kW="/portfolio-react-threejs/assets/bars-solid-dd6e31d5.svg",OW="/portfolio-react-threejs/assets/circle-xmark-regular-11645b29.svg",Lm=n=>({hidden:{y:-50,opacity:0},show:{y:0,opacity:1,transition:{type:"spring",duration:1.25,delay:n}}}),Ed=(n,e,t,i)=>({hidden:{x:n==="left"?100:n==="right"?-100:0,y:n==="up"?100:n==="down"?-100:0,opacity:0},show:{x:0,y:0,opacity:1,transition:{type:e,delay:t,duration:i,ease:"easeOut"}}}),UW=(n,e)=>({hidden:{},show:{transition:{staggerChildren:n,delayChildren:e||0}}}),FW=()=>{const[n,e]=q.useState(""),[t,i]=q.useState(!1),[r,s]=q.useState(!1);return B.jsx(er.nav,{className:`${sr.paddingX} w-full flex items-center py-5 fixed top-0 z-20 bg-black`,children:B.jsxs("div",{className:"w-full flex justify-between items-center max-w-7xl mx-auto",children:[B.jsxs("a",{href:"",className:"flex items-center gap-2",onClick:()=>{e(""),window.scrollTo(0,0)},children:[B.jsx("img",{src:DW,className:"w-10 h-10 object-contain",alt:"logo"}),B.jsxs("div",{className:"text-primary text-[18px] md:block lg:flex ",children:[B.jsx("p",{className:"flex",children:"Satyam Mishra  "}),B.jsx("span",{className:"sm:block hidden",children:"| Bedead"})]})]}),B.jsxs("ul",{className:"list-none hidden sm:flex flex-row md:gap-4 items-center",children:[AI.map(o=>B.jsx("li",{className:o.type=="tools"?"bg-secondary text-gray-400 hover:text-primary py-2 px-3 rounded-xl text-[18px] font-medium cursor-pointer":`${n==o.title?"text-primary":"text-gray-400"} hover:text-primary underline-offset-8 text-[18px] font-medium cursor-pointer`,onClick:()=>{e(o.title),o.type=="tools"&&s(!r)},children:o.type=="tools"?o.title:B.jsxs("a",{href:` #${o.id}`,children:[o.title," "]})},o.id))," "]}),B.jsx(TI,{children:r&&B.jsx(er.div,{className:`${r?"flex":"hidden"} p-6 bg-primary absolute top-60 right-40 sm:top-20 sm:right-5 mx-4 my-2 min-w-[140px] z-10 rounded-xl outline`,initial:{scale:.1,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.1,opacity:0},transition:{type:"spring",damping:10},children:B.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-2",children:[LW.map(o=>B.jsx(er.li,{variants:Ed("right","spring",.1,.75),className:`${n==o.title?"text-black underline":"text-secondary"} font-poppins hover:underline underline-offset-8 font-medium cursor-pointer text-[16px] hover:text-secondary`,onClick:()=>{o.type=="tools"&&s(!r),e(o.title),window.open(o.url,"_blank")},children:o.type=="tools"?o.title:B.jsxs("a",{to:`#${o.id}`,children:[o.id," "]})},o.id))," "]})})}),B.jsxs("div",{className:"sm:hidden flex flex-1 justify-end items-center",children:[B.jsx("img",{src:t?OW:kW,alt:"menu",className:"w-[28px] h-[28px] object-contain cursor-pointer",onClick:()=>{i(!t),r==!0&&s(!1)}}),B.jsx(TI,{children:t&&B.jsx(er.div,{className:`${t?"flex":"hidden"} p-6 bg-gradient-to-r from-[#f6f6f6] to-white absolute top-20 right-0 mx-4 my-2 min-w-[140px] z-10 rounded-xl outline`,initial:{scale:.1,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.1,opacity:0},transition:{type:"spring",damping:10},children:B.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-2",children:[AI.map(o=>B.jsx("li",{className:`${n==o.title?"text-black underline":"text-secondary"} font-poppins hover:underline underline-offset-8 font-medium cursor-pointer text-[16px] hover:text-secondary`,onClick:()=>{o.type!="tools"&&i(!t),e(o.title),o.type=="tools"&&s(!r)},children:o.type=="tools"?o.title:B.jsxs("a",{href:`#${o.id}`,children:[o.title," "]})},o.id))," "]})})})]})]})})},VW=()=>B.jsxs("div",{children:[location.pathname==="/"&&B.jsx(FW,{}),B.jsx(dk,{})]});var BW=Object.defineProperty,zW=Object.defineProperties,HW=Object.getOwnPropertyDescriptors,MI=Object.getOwnPropertySymbols,GW=Object.prototype.hasOwnProperty,WW=Object.prototype.propertyIsEnumerable,CI=(n,e,t)=>e in n?BW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,xf=(n,e)=>{for(var t in e||(e={}))GW.call(e,t)&&CI(n,t,e[t]);if(MI)for(var t of MI(e))WW.call(e,t)&&CI(n,t,e[t]);return n},Sf=(n,e)=>zW(n,HW(e)),G_=class extends q.Component{constructor(n){super(n),this.ref=v_.createRef(),this.state={style:{}};const e={reverse:!1,max:35,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:"1.1",speed:"1000",transition:!0,axis:null,reset:!0};this.width=null,this.height=null,this.left=null,this.top=null,this.transitionTimeout=null,this.updateCall=null,this.element=null,this.settings=Object.assign({},e,this.props.options),this.reverse=this.settings.reverse?-1:1,this.onMouseEnter=this.onMouseEnter.bind(this,this.props.onMouseEnter),this.onMouseMove=this.onMouseMove.bind(this,this.props.onMouseMove),this.onMouseLeave=this.onMouseLeave.bind(this,this.props.onMouseLeave)}componentDidMount(){this.element=this.ref.current,setTimeout(()=>{this.element.parentElement.querySelector(":hover")===this.element&&this.onMouseEnter()},0)}componentWillUnmount(){clearTimeout(this.transitionTimeout),cancelAnimationFrame(this.updateCall)}onMouseEnter(n=()=>{},e){return this.updateElementPosition(),this.setState(Object.assign({},this.state,{style:Sf(xf({},this.state.style),{willChange:"transform"})})),this.setTransition(),n(e)}reset(){window.requestAnimationFrame(()=>{this.setState(Object.assign({},this.state,{style:Sf(xf({},this.state.style),{transform:`perspective(${this.settings.perspective}px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`})}))})}onMouseMove(n=()=>{},e){return e.persist(),this.updateCall!==null&&window.cancelAnimationFrame(this.updateCall),this.event=e,this.updateCall=requestAnimationFrame(this.update.bind(this,e)),n(e)}setTransition(){clearTimeout(this.transitionTimeout),this.setState(Object.assign({},this.state,{style:Sf(xf({},this.state.style),{transition:`${this.settings.speed}ms ${this.settings.easing}`})})),this.transitionTimeout=setTimeout(()=>{this.setState(Object.assign({},this.state,{style:Sf(xf({},this.state.style),{transition:""})}))},this.settings.speed)}onMouseLeave(n=()=>{},e){return this.setTransition(),this.settings.reset&&this.reset(),n(e)}getValues(n){const e=(n.nativeEvent.clientX-this.left)/this.width,t=(n.nativeEvent.clientY-this.top)/this.height,i=Math.min(Math.max(e,0),1),r=Math.min(Math.max(t,0),1),s=(this.reverse*(this.settings.max/2-i*this.settings.max)).toFixed(2),o=(this.reverse*(r*this.settings.max-this.settings.max/2)).toFixed(2),a=i*100,l=r*100;return{tiltX:s,tiltY:o,percentageX:a,percentageY:l}}updateElementPosition(){const n=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=n.left,this.top=n.top}update(n){const e=this.getValues(n);this.setState(Object.assign({},this.state,{style:Sf(xf({},this.state.style),{transform:`perspective(${this.settings.perspective}px) rotateX(${this.settings.axis==="x"?0:e.tiltY}deg) rotateY(${this.settings.axis==="y"?0:e.tiltX}deg) scale3d(${this.settings.scale}, ${this.settings.scale}, ${this.settings.scale})`})})),this.updateCall=null}render(){const n=Object.assign({},this.props.style,this.state.style);return B.jsx("div",{style:n,ref:this.ref,className:this.props.className,onMouseEnter:this.onMouseEnter,onMouseMove:this.onMouseMove,onMouseLeave:this.onMouseLeave,children:this.props.children})}};const Td=(n,e)=>function(){return B.jsxs(er.section,{variants:UW(),initial:"hidden",whileInView:"show",viewport:{once:!0,amount:0},exit:"hidden",className:`${sr.padding} max-w-7xl mx-auto relative z-0`,children:[B.jsx("span",{className:"hash-span",id:e,children:" "}),B.jsx(n,{})]})},jW=({index:n,title:e,icon:t})=>B.jsx(G_,{className:"xs:w-[250px] w-full",children:B.jsx(er.div,{variants:Ed("right","spring",.5*n,.75),className:"w-full green-pink-gradient p-[1px] rounded-[20px] shadow-[#fcd4d4] shadow-card",children:B.jsxs("div",{options:{max:45,scale:1,speed:450},className:"bg-primary rounded-[20px] py-5 px-12 min-h-[280px] flex justify-evenly items-center flex-col",children:[B.jsx("img",{src:t,alt:e,className:"w-16 h-16 object-contain"}),B.jsx("h3",{className:"text-black text-[20px] font-bold text-center",children:e})]})})}),XW=()=>B.jsxs("section",{children:[B.jsxs(er.div,{variants:Lm(0),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Overview."}),B.jsxs(er.p,{variants:Ed("","",.1,1),className:`${sr.sectionSubText} text-center`,children:["Introduction? Nahh",B.jsx("br",{}),"I do this 👇"]})]}),B.jsx("div",{className:"mt-20 flex flex-wrap justify-center gap-10",children:NW.map((n,e)=>B.jsx(jW,{index:e,...n},n.title))})]}),qW=Td(XW,"AboutSection");var W_={},kO={exports:{}},$W="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YW=$W,KW=YW;function OO(){}function UO(){}UO.resetWarningCache=OO;var QW=function(){function n(i,r,s,o,a,l){if(l!==KW){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}n.isRequired=n;function e(){return n}var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:UO,resetWarningCache:OO};return t.PropTypes=t,t};kO.exports=QW();var FO=kO.exports,VO={exports:{}};/*! @@ -5863,7 +5863,7 @@ No matching component was found for: void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } - `}),[d]);return q.createElement("group",vm({},k,{ref:pe}),f&&!we&&q.createElement("mesh",{castShadow:m,receiveShadow:_,ref:Re},x||q.createElement("planeGeometry",null),S||q.createElement("shaderMaterial",{side:Bs,vertexShader:dt.vertexShader,fragmentShader:dt.fragmentShader})))});let Ff=0;const ire=t4(n=>(Dh.onStart=(e,t,i)=>{n({active:!0,item:e,loaded:t,total:i,progress:(t-Ff)/(i-Ff)*100})},Dh.onLoad=()=>{n({active:!1})},Dh.onError=e=>n(t=>({errors:[...t.errors,e]})),Dh.onProgress=(e,t,i)=>{t===i&&(Ff=i),n({active:!0,item:e,loaded:t,total:i,progress:(t-Ff)/(i-Ff)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0}));var rre=Object.defineProperty,sre=(n,e,t)=>e in n?rre(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Rt=(n,e,t)=>(sre(n,typeof e!="symbol"?e+"":e,t),t);const av=new yu,yN=new Wo,ore=Math.cos(70*(Math.PI/180)),vN=(n,e)=>(n%e+e)%e;let are=class extends Ys{constructor(e,t){super(),Rt(this,"object"),Rt(this,"domElement"),Rt(this,"enabled",!0),Rt(this,"target",new G),Rt(this,"minDistance",0),Rt(this,"maxDistance",1/0),Rt(this,"minZoom",0),Rt(this,"maxZoom",1/0),Rt(this,"minPolarAngle",0),Rt(this,"maxPolarAngle",Math.PI),Rt(this,"minAzimuthAngle",-1/0),Rt(this,"maxAzimuthAngle",1/0),Rt(this,"enableDamping",!1),Rt(this,"dampingFactor",.05),Rt(this,"enableZoom",!0),Rt(this,"zoomSpeed",1),Rt(this,"enableRotate",!0),Rt(this,"rotateSpeed",1),Rt(this,"enablePan",!0),Rt(this,"panSpeed",1),Rt(this,"screenSpacePanning",!0),Rt(this,"keyPanSpeed",7),Rt(this,"zoomToCursor",!1),Rt(this,"autoRotate",!1),Rt(this,"autoRotateSpeed",2),Rt(this,"reverseOrbit",!1),Rt(this,"reverseHorizontalOrbit",!1),Rt(this,"reverseVerticalOrbit",!1),Rt(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),Rt(this,"mouseButtons",{LEFT:Cc.ROTATE,MIDDLE:Cc.DOLLY,RIGHT:Cc.PAN}),Rt(this,"touches",{ONE:bc.ROTATE,TWO:bc.DOLLY_PAN}),Rt(this,"target0"),Rt(this,"position0"),Rt(this,"zoom0"),Rt(this,"_domElementKeyEvents",null),Rt(this,"getPolarAngle"),Rt(this,"getAzimuthalAngle"),Rt(this,"setPolarAngle"),Rt(this,"setAzimuthalAngle"),Rt(this,"getDistance"),Rt(this,"listenToKeyEvents"),Rt(this,"stopListenToKeyEvents"),Rt(this,"saveState"),Rt(this,"reset"),Rt(this,"update"),Rt(this,"connect"),Rt(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=K=>{let ve=vN(K,2*Math.PI),je=d.phi;je<0&&(je+=2*Math.PI),ve<0&&(ve+=2*Math.PI);let Y=Math.abs(ve-je);2*Math.PI-Y{let ve=vN(K,2*Math.PI),je=d.theta;je<0&&(je+=2*Math.PI),ve<0&&(ve+=2*Math.PI);let Y=Math.abs(ve-je);2*Math.PI-Yi.object.position.distanceTo(i.target),this.listenToKeyEvents=K=>{K.addEventListener("keydown",Ce),this._domElementKeyEvents=K},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",Ce),this._domElementKeyEvents=null},this.saveState=()=>{i.target0.copy(i.target),i.position0.copy(i.object.position),i.zoom0=i.object.zoom},this.reset=()=>{i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(r),i.update(),l=a.NONE},this.update=(()=>{const K=new G,ve=new G(0,1,0),je=new nr().setFromUnitVectors(e.up,ve),Y=je.clone().invert(),Fe=new G,me=new nr,Ae=2*Math.PI;return function(){const $e=i.object.position;je.setFromUnitVectors(e.up,ve),Y.copy(je).invert(),K.copy($e).sub(i.target),K.applyQuaternion(je),d.setFromVector3(K),i.autoRotate&&l===a.NONE&&se(V()),i.enableDamping?(d.theta+=f.theta*i.dampingFactor,d.phi+=f.phi*i.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let At=i.minAzimuthAngle,Bt=i.maxAzimuthAngle;isFinite(At)&&isFinite(Bt)&&(At<-Math.PI?At+=Ae:At>Math.PI&&(At-=Ae),Bt<-Math.PI?Bt+=Ae:Bt>Math.PI&&(Bt-=Ae),At<=Bt?d.theta=Math.max(At,Math.min(Bt,d.theta)):d.theta=d.theta>(At+Bt)/2?Math.max(At,d.theta):Math.min(Bt,d.theta)),d.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,d.phi)),d.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(m,i.dampingFactor):i.target.add(m),i.zoomToCursor&&D||i.object.isOrthographicCamera?d.radius=Me(d.radius):d.radius=Me(d.radius*p),K.setFromSpherical(d),K.applyQuaternion(Y),$e.copy(i.target).add(K),i.object.matrixAutoUpdate||i.object.updateMatrix(),i.object.lookAt(i.target),i.enableDamping===!0?(f.theta*=1-i.dampingFactor,f.phi*=1-i.dampingFactor,m.multiplyScalar(1-i.dampingFactor)):(f.set(0,0,0),m.set(0,0,0));let Cn=!1;if(i.zoomToCursor&&D){let It=null;if(i.object instanceof Dn&&i.object.isPerspectiveCamera){const Sn=K.length();It=Me(Sn*p);const kn=Sn-It;i.object.position.addScaledVector(I,kn),i.object.updateMatrixWorld()}else if(i.object.isOrthographicCamera){const Sn=new G(P.x,P.y,0);Sn.unproject(i.object),i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/p)),i.object.updateProjectionMatrix(),Cn=!0;const kn=new G(P.x,P.y,0);kn.unproject(i.object),i.object.position.sub(kn).add(Sn),i.object.updateMatrixWorld(),It=K.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;It!==null&&(i.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(It).add(i.object.position):(av.origin.copy(i.object.position),av.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(av.direction))c||8*(1-me.dot(i.object.quaternion))>c?(i.dispatchEvent(r),Fe.copy(i.object.position),me.copy(i.object.quaternion),Cn=!1,!0):!1}})(),this.connect=K=>{i.domElement=K,i.domElement.style.touchAction="none",i.domElement.addEventListener("contextmenu",Le),i.domElement.addEventListener("pointerdown",F),i.domElement.addEventListener("pointercancel",_e),i.domElement.addEventListener("wheel",nt)},this.dispose=()=>{var K,ve,je,Y,Fe,me;i.domElement&&(i.domElement.style.touchAction="auto"),(K=i.domElement)==null||K.removeEventListener("contextmenu",Le),(ve=i.domElement)==null||ve.removeEventListener("pointerdown",F),(je=i.domElement)==null||je.removeEventListener("pointercancel",_e),(Y=i.domElement)==null||Y.removeEventListener("wheel",nt),(Fe=i.domElement)==null||Fe.ownerDocument.removeEventListener("pointermove",ae),(me=i.domElement)==null||me.ownerDocument.removeEventListener("pointerup",_e),i._domElementKeyEvents!==null&&i._domElementKeyEvents.removeEventListener("keydown",Ce)};const i=this,r={type:"change"},s={type:"start"},o={type:"end"},a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=a.NONE;const c=1e-6,d=new MT,f=new MT;let p=1;const m=new G,_=new Ee,S=new Ee,x=new Ee,y=new Ee,E=new Ee,w=new Ee,M=new Ee,O=new Ee,k=new Ee,I=new G,P=new Ee;let D=!1;const A=[],R={};function V(){return 2*Math.PI/60/60*i.autoRotateSpeed}function U(){return Math.pow(.95,i.zoomSpeed)}function se(K){i.reverseOrbit||i.reverseHorizontalOrbit?f.theta+=K:f.theta-=K}function le(K){i.reverseOrbit||i.reverseVerticalOrbit?f.phi+=K:f.phi-=K}const ee=(()=>{const K=new G;return function(je,Y){K.setFromMatrixColumn(Y,0),K.multiplyScalar(-je),m.add(K)}})(),pe=(()=>{const K=new G;return function(je,Y){i.screenSpacePanning===!0?K.setFromMatrixColumn(Y,1):(K.setFromMatrixColumn(Y,0),K.crossVectors(i.object.up,K)),K.multiplyScalar(je),m.add(K)}})(),W=(()=>{const K=new G;return function(je,Y){const Fe=i.domElement;if(Fe&&i.object instanceof Dn&&i.object.isPerspectiveCamera){const me=i.object.position;K.copy(me).sub(i.target);let Ae=K.length();Ae*=Math.tan(i.object.fov/2*Math.PI/180),ee(2*je*Ae/Fe.clientHeight,i.object.matrix),pe(2*Y*Ae/Fe.clientHeight,i.object.matrix)}else Fe&&i.object instanceof zs&&i.object.isOrthographicCamera?(ee(je*(i.object.right-i.object.left)/i.object.zoom/Fe.clientWidth,i.object.matrix),pe(Y*(i.object.top-i.object.bottom)/i.object.zoom/Fe.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}})();function J(K){i.object instanceof Dn&&i.object.isPerspectiveCamera||i.object instanceof zs&&i.object.isOrthographicCamera?p/=K:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function Z(K){i.object instanceof Dn&&i.object.isPerspectiveCamera||i.object instanceof zs&&i.object.isOrthographicCamera?p*=K:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function oe(K){if(!i.zoomToCursor||!i.domElement)return;D=!0;const ve=i.domElement.getBoundingClientRect(),je=K.clientX-ve.left,Y=K.clientY-ve.top,Fe=ve.width,me=ve.height;P.x=je/Fe*2-1,P.y=-(Y/me)*2+1,I.set(P.x,P.y,1).unproject(i.object).sub(i.object.position).normalize()}function Me(K){return Math.max(i.minDistance,Math.min(i.maxDistance,K))}function Re(K){_.set(K.clientX,K.clientY)}function he(K){oe(K),M.set(K.clientX,K.clientY)}function we(K){y.set(K.clientX,K.clientY)}function Ne(K){S.set(K.clientX,K.clientY),x.subVectors(S,_).multiplyScalar(i.rotateSpeed);const ve=i.domElement;ve&&(se(2*Math.PI*x.x/ve.clientHeight),le(2*Math.PI*x.y/ve.clientHeight)),_.copy(S),i.update()}function be(K){O.set(K.clientX,K.clientY),k.subVectors(O,M),k.y>0?J(U()):k.y<0&&Z(U()),M.copy(O),i.update()}function ft(K){E.set(K.clientX,K.clientY),w.subVectors(E,y).multiplyScalar(i.panSpeed),W(w.x,w.y),y.copy(E),i.update()}function dt(K){oe(K),K.deltaY<0?Z(U()):K.deltaY>0&&J(U()),i.update()}function Ke(K){let ve=!1;switch(K.code){case i.keys.UP:W(0,i.keyPanSpeed),ve=!0;break;case i.keys.BOTTOM:W(0,-i.keyPanSpeed),ve=!0;break;case i.keys.LEFT:W(i.keyPanSpeed,0),ve=!0;break;case i.keys.RIGHT:W(-i.keyPanSpeed,0),ve=!0;break}ve&&(K.preventDefault(),i.update())}function ke(){if(A.length==1)_.set(A[0].pageX,A[0].pageY);else{const K=.5*(A[0].pageX+A[1].pageX),ve=.5*(A[0].pageY+A[1].pageY);_.set(K,ve)}}function xe(){if(A.length==1)y.set(A[0].pageX,A[0].pageY);else{const K=.5*(A[0].pageX+A[1].pageX),ve=.5*(A[0].pageY+A[1].pageY);y.set(K,ve)}}function j(){const K=A[0].pageX-A[1].pageX,ve=A[0].pageY-A[1].pageY,je=Math.sqrt(K*K+ve*ve);M.set(0,je)}function Ve(){i.enableZoom&&j(),i.enablePan&&xe()}function Oe(){i.enableZoom&&j(),i.enableRotate&&ke()}function Pe(K){if(A.length==1)S.set(K.pageX,K.pageY);else{const je=et(K),Y=.5*(K.pageX+je.x),Fe=.5*(K.pageY+je.y);S.set(Y,Fe)}x.subVectors(S,_).multiplyScalar(i.rotateSpeed);const ve=i.domElement;ve&&(se(2*Math.PI*x.x/ve.clientHeight),le(2*Math.PI*x.y/ve.clientHeight)),_.copy(S)}function Ue(K){if(A.length==1)E.set(K.pageX,K.pageY);else{const ve=et(K),je=.5*(K.pageX+ve.x),Y=.5*(K.pageY+ve.y);E.set(je,Y)}w.subVectors(E,y).multiplyScalar(i.panSpeed),W(w.x,w.y),y.copy(E)}function lt(K){const ve=et(K),je=K.pageX-ve.x,Y=K.pageY-ve.y,Fe=Math.sqrt(je*je+Y*Y);O.set(0,Fe),k.set(0,Math.pow(O.y/M.y,i.zoomSpeed)),J(k.y),M.copy(O)}function We(K){i.enableZoom&<(K),i.enablePan&&Ue(K)}function X(K){i.enableZoom&<(K),i.enableRotate&&Pe(K)}function F(K){var ve,je;i.enabled!==!1&&(A.length===0&&((ve=i.domElement)==null||ve.ownerDocument.addEventListener("pointermove",ae),(je=i.domElement)==null||je.ownerDocument.addEventListener("pointerup",_e)),Ze(K),K.pointerType==="touch"?Ge(K):Te(K))}function ae(K){i.enabled!==!1&&(K.pointerType==="touch"?Lt(K):Se(K))}function _e(K){var ve,je,Y;Et(K),A.length===0&&((ve=i.domElement)==null||ve.releasePointerCapture(K.pointerId),(je=i.domElement)==null||je.ownerDocument.removeEventListener("pointermove",ae),(Y=i.domElement)==null||Y.ownerDocument.removeEventListener("pointerup",_e)),i.dispatchEvent(o),l=a.NONE}function Te(K){let ve;switch(K.button){case 0:ve=i.mouseButtons.LEFT;break;case 1:ve=i.mouseButtons.MIDDLE;break;case 2:ve=i.mouseButtons.RIGHT;break;default:ve=-1}switch(ve){case Cc.DOLLY:if(i.enableZoom===!1)return;he(K),l=a.DOLLY;break;case Cc.ROTATE:if(K.ctrlKey||K.metaKey||K.shiftKey){if(i.enablePan===!1)return;we(K),l=a.PAN}else{if(i.enableRotate===!1)return;Re(K),l=a.ROTATE}break;case Cc.PAN:if(K.ctrlKey||K.metaKey||K.shiftKey){if(i.enableRotate===!1)return;Re(K),l=a.ROTATE}else{if(i.enablePan===!1)return;we(K),l=a.PAN}break;default:l=a.NONE}l!==a.NONE&&i.dispatchEvent(s)}function Se(K){if(i.enabled!==!1)switch(l){case a.ROTATE:if(i.enableRotate===!1)return;Ne(K);break;case a.DOLLY:if(i.enableZoom===!1)return;be(K);break;case a.PAN:if(i.enablePan===!1)return;ft(K);break}}function nt(K){i.enabled===!1||i.enableZoom===!1||l!==a.NONE&&l!==a.ROTATE||(K.preventDefault(),i.dispatchEvent(s),dt(K),i.dispatchEvent(o))}function Ce(K){i.enabled===!1||i.enablePan===!1||Ke(K)}function Ge(K){switch(vt(K),A.length){case 1:switch(i.touches.ONE){case bc.ROTATE:if(i.enableRotate===!1)return;ke(),l=a.TOUCH_ROTATE;break;case bc.PAN:if(i.enablePan===!1)return;xe(),l=a.TOUCH_PAN;break;default:l=a.NONE}break;case 2:switch(i.touches.TWO){case bc.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;Ve(),l=a.TOUCH_DOLLY_PAN;break;case bc.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;Oe(),l=a.TOUCH_DOLLY_ROTATE;break;default:l=a.NONE}break;default:l=a.NONE}l!==a.NONE&&i.dispatchEvent(s)}function Lt(K){switch(vt(K),l){case a.TOUCH_ROTATE:if(i.enableRotate===!1)return;Pe(K),i.update();break;case a.TOUCH_PAN:if(i.enablePan===!1)return;Ue(K),i.update();break;case a.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;We(K),i.update();break;case a.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;X(K),i.update();break;default:l=a.NONE}}function Le(K){i.enabled!==!1&&K.preventDefault()}function Ze(K){A.push(K)}function Et(K){delete R[K.pointerId];for(let ve=0;ve0,O=U>0,k=se>0,I=(M?1:0)+(O?1:0)+(k?1:0),I){case 0:{y.push(S[w]),y.push(S[w+1]),y.push(S[w+2]);break}case 1:{if(M&&(P=S[w+1],D=S[w+2],A=_(S[w],P,x,E),R=_(S[w],D,x,E)),O){P=S[w],D=S[w+2],A=_(S[w+1],P,x,E),R=_(S[w+1],D,x,E),y.push(A),y.push(D.clone()),y.push(P.clone()),y.push(D.clone()),y.push(A.clone()),y.push(R);break}k&&(P=S[w],D=S[w+1],A=_(S[w+2],P,x,E),R=_(S[w+2],D,x,E)),y.push(P.clone()),y.push(D.clone()),y.push(A),y.push(R),y.push(A.clone()),y.push(D.clone());break}case 2:{M||(P=S[w].clone(),D=_(P,S[w+1],x,E),A=_(P,S[w+2],x,E),y.push(P),y.push(D),y.push(A)),O||(P=S[w+1].clone(),D=_(P,S[w+2],x,E),A=_(P,S[w],x,E),y.push(P),y.push(D),y.push(A)),k||(P=S[w+2].clone(),D=_(P,S[w],x,E),A=_(P,S[w+1],x,E),y.push(P),y.push(D),y.push(A));break}}}return y}function _(S,x,y,E){const w=S.position.dot(y)-E,M=x.position.dot(y)-E,O=w/(w-M);return new _N(new G(S.position.x+O*(x.position.x-S.position.x),S.position.y+O*(x.position.y-S.position.y),S.position.z+O*(x.position.z-S.position.z)),new G(S.normal.x+O*(x.normal.x-S.normal.x),S.normal.y+O*(x.normal.y-S.normal.y),S.normal.z+O*(x.normal.z-S.normal.z)))}}}class _N{constructor(e,t){this.position=e,this.normal=t}clone(){return new this.constructor(this.position.clone(),this.normal.clone())}}const C1=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function bC(n,e){const t=Kr(s=>s.gl),i=Qm(kx,C1(n)?Object.values(n):n);return q.useLayoutEffect(()=>{e==null||e(i)},[e]),q.useEffect(()=>{if("initTexture"in t){let s=[];Array.isArray(i)?s=i:i instanceof In?s=[i]:C1(i)&&(s=Object.values(i)),s.forEach(o=>{o instanceof In&&t.initTexture(o)})}},[t,i]),q.useMemo(()=>{if(C1(n)){const s={};let o=0;for(const a in n)s[a]=i[o++];return s}else return i},[n,i])}bC.preload=n=>Qm.preload(kx,n);bC.clear=n=>Qm.clear(kx,n);function cre(n){return Array.isArray(n)}function b1(n=[0,0,0]){return cre(n)?n:n instanceof G||n instanceof _r?[n.x,n.y,n.z]:[n,n,n]}const ure=q.forwardRef(function({debug:e,depthTest:t=!1,polygonOffsetFactor:i=-10,map:r,mesh:s,children:o,position:a,rotation:l,scale:c,...d},f){const p=q.useRef(null);q.useImperativeHandle(f,()=>p.current);const m=q.useRef(null);return q.useLayoutEffect(()=>{const _=(s==null?void 0:s.current)||p.current.parent,S=p.current;if(!(_ instanceof ni))throw new Error('Decal must have a Mesh as parent or specify its "mesh" prop');const x={position:new G,rotation:new _r,scale:new G(1,1,1)};if(_){lo(x,{position:a,scale:c});const y=_.matrixWorld.clone();if(_.matrixWorld.identity(),!l||typeof l=="number"){const E=new Zt;E.position.copy(x.position),E.lookAt(_.position),typeof l=="number"&&E.rotateZ(l),lo(x,{rotation:E.rotation})}else lo(x,{rotation:l});return S.geometry=new lre(_,x.position,x.rotation,x.scale),m.current&&(lo(m.current,x),m.current.traverse(E=>E.raycast=()=>null)),_.matrixWorld=y,()=>{S.geometry.dispose()}}},[s,...b1(a),...b1(c),...b1(l)]),q.createElement("mesh",vm({ref:p,"material-transparent":!0,"material-polygonOffset":!0,"material-polygonOffsetFactor":i,"material-depthTest":t,"material-map":r},d),o,e&&q.createElement("mesh",{ref:m},q.createElement("boxGeometry",null),q.createElement("meshNormalMaterial",{wireframe:!0}),q.createElement("axesHelper",null)))}),hre=q.forwardRef(({makeDefault:n,camera:e,regress:t,domElement:i,enableDamping:r=!0,keyEvents:s=!1,onChange:o,onStart:a,onEnd:l,...c},d)=>{const f=Kr(k=>k.invalidate),p=Kr(k=>k.camera),m=Kr(k=>k.gl),_=Kr(k=>k.events),S=Kr(k=>k.setEvents),x=Kr(k=>k.set),y=Kr(k=>k.get),E=Kr(k=>k.performance),w=e||p,M=i||_.connected||m.domElement,O=q.useMemo(()=>new are(w),[w]);return AC(()=>{O.enabled&&O.update()},-1),q.useEffect(()=>(s&&O.connect(s===!0?M:s),O.connect(M),()=>void O.dispose()),[s,M,t,O,f]),q.useEffect(()=>{const k=D=>{f(),t&&E.regress(),o&&o(D)},I=D=>{a&&a(D)},P=D=>{l&&l(D)};return O.addEventListener("change",k),O.addEventListener("start",I),O.addEventListener("end",P),()=>{O.removeEventListener("start",I),O.removeEventListener("end",P),O.removeEventListener("change",k)}},[o,a,l,O,f,S]),q.useEffect(()=>{if(n){const k=y().controls;return x({controls:O}),()=>x({controls:k})}},[n,O]),q.createElement("primitive",vm({ref:d,object:O,enableDamping:r},c))}),dre=q.forwardRef(({children:n,enabled:e=!0,speed:t=1,rotationIntensity:i=1,floatIntensity:r=1,floatingRange:s=[-.1,.1],autoInvalidate:o=!1,...a},l)=>{const c=q.useRef(null);q.useImperativeHandle(l,()=>c.current,[]);const d=q.useRef(Math.random()*1e4);return AC(f=>{var p,m;if(!e||t===0)return;o&&f.invalidate();const _=d.current+f.clock.getElapsedTime();c.current.rotation.x=Math.cos(_/4*t)/8*i,c.current.rotation.y=Math.sin(_/4*t)/8*i,c.current.rotation.z=Math.sin(_/4*t)/20*i;let S=Math.sin(_/4*t)/10;S=jF.mapLinear(S,-.1,.1,(p=s==null?void 0:s[0])!==null&&p!==void 0?p:-.1,(m=s==null?void 0:s[1])!==null&&m!==void 0?m:.1),c.current.position.y=S*r,c.current.updateMatrix()}),q.createElement("group",a,q.createElement("group",{ref:c,matrixAutoUpdate:!1},n))});function fre({all:n,scene:e,camera:t}){const i=Kr(({gl:o})=>o),r=Kr(({camera:o})=>o),s=Kr(({scene:o})=>o);return q.useLayoutEffect(()=>{const o=[];n&&(e||s).traverse(c=>{c.visible===!1&&(o.push(c),c.visible=!0)}),i.compile(e||s,t||r);const a=new JM(128);new QM(.01,1e5,a).update(i,e||s),a.dispose(),o.forEach(c=>c.visible=!1)},[]),null}const pre=()=>{const{progress:n}=ire(),e={display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},t={fontSize:14,color:"#F1F1F1",fontWeight:800,marginTop:40};return B.jsxs(nre,{as:"div",center:!0,style:e,children:[B.jsx("span",{className:"canvas-loader"}),B.jsxs("p",{style:t,children:[n.toFixed(0),"%"]})]})},mre=n=>{const[e]=bC([n.imgUrl]);return B.jsxs(dre,{speed:1,rotationIntensity:0,floatIntensity:5,children:[B.jsx("ambientLight",{intensity:2.4}),B.jsx("directionalLight",{position:[0,0,.05]}),B.jsxs("mesh",{castShadow:!0,receiveShadow:!0,scale:2.75,children:[B.jsx("icosahedronGeometry",{args:[1,1]}),B.jsx("meshStandardMaterial",{color:"#fcd4d4",polygonOffset:!0,polygonOffsetFactor:-5,flatShading:!0}),B.jsx(ure,{position:[0,0,1],rotation:[2*Math.PI,0,6.25],scale:1,map:e,flatShading:!0})]})]})},gre=({icon:n})=>B.jsxs(Xie,{frameloop:"demand",dpr:[1,2],gl:{preserveDrawingBuffer:!0},children:[B.jsxs(q.Suspense,{fallback:B.jsx(pre,{}),children:[B.jsx(hre,{enableZoom:!1}),B.jsx(mre,{imgUrl:n})]}),B.jsx(fre,{all:!0})]}),yre="/assets/texture-5adaf7bf.webp",vre=()=>B.jsxs("section",{className:"xl:mt-6 flex flex-row flex-wrap justify-center items-center gap-10",children:[B.jsxs(er.div,{variants:Lm(),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Skills & Technologies."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"What have i learnd?"})]}),B.jsx("div",{className:"w-full lg:w-[400px] lg:h-[400px] ",children:B.jsx(gre,{icon:yre})},"skillsBall")]}),_re=Td(vre,"TechSkillsSection"),xre="/assets/cover_img-4c0efeb6.webp",xN="/assets/resume-bb345e2c.pdf",Sre=()=>{const[n,e]=q.useState(!1),t=()=>e(!0),i=()=>e(!1),r=()=>{const s=document.createElement("a");s.href=xN,s.download="Satyam_Mishra_Resume",s.click()};return B.jsxs("section",{className:"-m-5 md:-m-10 max-w-screen-xl mx-auto my-10 space-y-10 max",children:[B.jsxs(er.div,{variants:Lm(0),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Resume."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"Here's my Resume😁"})]}),B.jsx(er.div,{variants:Ed("right","spring",.5*0,.75),className:"md:flex justify-center items-center",children:B.jsxs(G_,{options:{max:45,scale:1,speed:450},className:"group bg-white shadow-[#fcd4d4] shadow-card rounded-2xl mx-auto w-[90%] md:min-w-1/3 md:max-w-3xl h-full",children:[B.jsx("div",{className:"group-hover:opacity-100 relative w-full h-full mb-5",children:B.jsx("img",{src:xre,loading:"lazy",alt:"Resume cover image",className:"w-full h-full object-cover rounded-2xl"})}),B.jsxs("div",{className:"text-primary flex items-center space-x-5 md:space-y-5 justify-center absolute z-10 md:top-10 md:-right-24 md:bottom-0 md:flex-col md:items-center md:justify-center transition-opacity duration-300",children:[B.jsxs("button",{onClick:r,className:"mt-8 bg-blue-500 hover:bg-blue-300 font-bold py-3 px-6 rounded-full flex items-center",children:["Download ",B.jsx("span",{className:"ml-2",children:"▶"})]}),B.jsxs("button",{onClick:t,className:"mt-8 bg-green-500 hover:bg-green-300 font-bold py-3 px-6 rounded-full flex items-center",children:["View ",B.jsx("span",{className:"ml-2",children:"▶"})]})]})]})}),n&&B.jsx("div",{className:"fixed inset-0 z-50 overflow-auto -top-10 bg-black bg-opacity-60 flex items-center justify-center",children:B.jsxs("div",{className:"bg-white p-2 rounded-2xl max-w-screen-lg w-[70%] relative",children:[B.jsx("button",{className:"absolute -top-12 right-0 md:top-2 md:-right-20 bg-black hover:bg-gray-800 py-2 px-3 rounded-xl text-white hover:text-gray-200",onClick:i,children:"Close"}),B.jsx("iframe",{title:"PDF Viewer",src:xN,className:"w-full h-[400px]"})]})})]})},wre=Td(Sre,"ResumeSection"),Ere="data:image/webp;base64,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",Tre="/assets/appstore-0b8f390b.png",Are="/assets/colab-9e4861eb.png",Mre="/assets/huggingface-720eadc9.png",SN="/assets/website-078d1216.gif",Cre=({index:n,name:e,description:t,tags:i,image:r,source_code_link:s,date:o})=>B.jsx(G_,{className:"sm:w-[360px] w-full",children:B.jsx(er.div,{id:n,variants:Ed("right","spring",0,.75),className:"shadow-[#fcd4d4] green-pink-gradient shadow-card p-[1px] rounded-2xl ",children:B.jsxs("div",{className:"bg-primary rounded-2xl py-5 px-8",options:{max:45,scale:1,speed:450},children:[B.jsxs("div",{className:"relative w-full h-[230px]",children:[B.jsx("img",{src:r,alt:"project_image",className:"w-full h-full object-cover rounded-2xl"}),B.jsx("div",{className:"absolute inset-0 z-10 space-y-3 flex-col justify-end m-3 card-img_hover",children:Object.entries(s).map(([a,l])=>B.jsx("div",{onClick:()=>window.open(l,"_blank"),className:"border-black border-2 white-gradient w-10 h-10 rounded-full flex justify-center items-center cursor-pointer",title:a==="Github"?"View in GitHub":a==="Appstore"?"View in App Store":a==="Colab"?"View in Google Colab":a==="Huggingface"?"View in Hugging Face":a==="Live"?"View Live Website":"View Now",children:B.jsx("img",{src:a==="Github"?Ere:a==="Appstore"?Tre:a==="Colab"?Are:a==="Huggingface"?Mre:SN,alt:`${a} link`,className:"w-1/2 h-1/2 object-contain"})},a))})]}),B.jsxs("div",{className:"mt-5",children:[B.jsx("h3",{className:"text-black font-bold text-[24px]",children:e}),B.jsx("p",{className:"mt-2 text-secondary text-[14px]",children:t})]}),B.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[Object.entries(i).map(([a,l])=>B.jsxs("p",{className:`text-[14px] ${l}`,children:["#",a," "]},`${e}-${a}`))," "]}),B.jsx("p",{children:o})]})})}),bre=()=>{const[n,e]=q.useState([]);return q.useEffect(()=>{(async()=>{const r=(await LM(IM(NM,"Projects"))).docs.map(s=>s.data()).sort((s,o)=>o.index-s.index);e(r)})()},[]),B.jsxs("section",{className:"-m-5 md:-m-10 ",children:[B.jsxs(er.div,{variants:Lm(0),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Projects."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"My works? Here they are."})]}),B.jsxs("div",{className:" mt-20 grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:[n.map((t,i)=>B.jsx(Cre,{index:i,...t},`project-${i}`))," "]})]})},Pre=Td(bre,"ProjectsSection"),Rre=({index:n,name:e,date:t,image:i,link:r})=>B.jsx("div",{id:n,children:B.jsx(er.div,{variants:Ed("right","spring",.5,.75),children:B.jsx(G_,{options:{max:45,scale:1,speed:450},className:"bg-white shadow-[#fcd4d4] shadow-card p-5 rounded-2xl sm:w-[360px] w-full",children:B.jsxs("a",{href:r,target:"_blank",children:[B.jsx("div",{className:"relative w-full ",children:B.jsx("img",{src:i,placeholder:e,loading:"lazy",alt:`${e} cover image`,className:"w-full h-52 object-cover rounded-2xl"})}),B.jsx("p",{className:"mt-3 text-left",children:t}),B.jsx("h3",{className:"text-black font-bold text-[24px] text-left",children:e})]})})})});function Ire(){const[n,e]=q.useState([]);return q.useEffect(()=>{(async()=>{const r=(await LM(IM(NM,"Blogs"))).docs.map(s=>s.data()).sort((s,o)=>o.index-s.index);e(r)})()},[]),B.jsxs("div",{className:"my-10",children:[B.jsxs("div",{children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Blogs."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"Blogs written by me"})]}),B.jsx("div",{className:"my-20 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:n.map((t,i)=>B.jsx(Rre,{index:i,...t},`blog-${i}`))})]})}const Lre=Td(Ire,"BlogsSections"),_m={_origin:"https://api.emailjs.com"},Nre=(n,e="https://api.emailjs.com")=>{_m._userID=n,_m._origin=e},A4=(n,e,t)=>{if(!n)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!e)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!t)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class wN{constructor(e){this.status=e?e.status:0,this.text=e?e.responseText:"Network Error"}}const M4=(n,e,t={})=>new Promise((i,r)=>{const s=new XMLHttpRequest;s.addEventListener("load",({target:o})=>{const a=new wN(o);a.status===200||a.text==="OK"?i(a):r(a)}),s.addEventListener("error",({target:o})=>{r(new wN(o))}),s.open("POST",_m._origin+n,!0),Object.keys(t).forEach(o=>{s.setRequestHeader(o,t[o])}),s.send(e)}),Dre=(n,e,t,i)=>{const r=i||_m._userID;return A4(r,n,e),M4("/api/v1.0/email/send",JSON.stringify({lib_version:"3.12.1",user_id:r,service_id:n,template_id:e,template_params:t}),{"Content-type":"application/json"})},kre=n=>{let e;if(typeof n=="string"?e=document.querySelector(n):e=n,!e||e.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return e},Ore=(n,e,t,i)=>{const r=i||_m._userID,s=kre(t);A4(r,n,e);const o=new FormData(s);return o.append("lib_version","3.12.1"),o.append("service_id",n),o.append("template_id",e),o.append("user_id",r),M4("/api/v1.0/email/send-form",o)},EN={init:Nre,send:Dre,sendForm:Ore},Ure=()=>{const n=q.useRef(),[e,t]=q.useState({name:"",email:"",message:""}),[i,r]=q.useState(!1),[s,o]=q.useState(!1),a=c=>{const{target:d}=c,{name:f,value:p}=d;t({...e,[f]:p})},l=c=>{c.preventDefault(),r(!0),EN.init("Tlnn1O7PC8WlYPRT7"),EN.send("service_w2nrv74","template_hmf109b",{from_name:e.name,to_name:"Satyam Mishra",from_email:e.email,to_email:"satyammishra9050@gmail.com",message:e.message}).then(()=>{r(!1),o(!0),t({name:"",email:"",message:""})},d=>{r(!1),console.error(d),alert("Ahh, something went wrong. Please try again.")})};return B.jsxs("footer",{id:"ContactSection",className:"lg:grid lg:grid-cols-5 bg-black h-fit ",children:[B.jsxs("div",{className:"relative p-12 block h-32 lg:col-span-2 lg:h-full",children:[B.jsx("p",{className:`${sr.sectionSubText} text-white`,children:"I am open to work"}),B.jsx("h3",{className:`${sr.sectionHeadText} text-primary`,children:"Get In Touch."}),s?B.jsxs("div",{children:[B.jsx("p",{className:"text-green-500 mt-2",children:"Thank you. I have recieved your msg."}),B.jsx("p",{className:"text-green-500",children:"I will get back to you right on."})]}):B.jsxs("form",{ref:n,onSubmit:l,className:"flex flex-col gap-1",children:[B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Name"}),B.jsx("input",{type:"text",name:"name",value:e.name,onChange:a,placeholder:"What's your good name?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Email"}),B.jsx("input",{type:"email",name:"email",value:e.email,onChange:a,placeholder:"What's your email?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Message"}),B.jsx("textarea",{name:"message",value:e.message,onChange:a,placeholder:"What's your message?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsx("button",{type:"submit","aria-busy":i,className:"mt-6 bg-secondary hover:bg-slate-600 py-3 px-8 rounded-xl outline-none w-fit text-primary font-bold",children:i?"Sending...":"Send"})]})]}),B.jsxs("div",{className:"px-4 py-16 sm:px-6 lg:col-span-3 lg:px-8",children:[B.jsxs("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2",children:[B.jsxs("div",{children:[B.jsxs("p",{children:[B.jsx("span",{className:"text-xs uppercase tracking-wide text-gray-200",children:" Mail me "}),B.jsx("a",{href:"mailto:satyam.work.only@gmail.com?subject=Just%20wondaring&body=Nothing%20much.",className:"animate-pulse block text-2xl font-medium text-gray-400 hover:opacity-75 sm:text-3xl",children:"Click here to mail."})]}),B.jsxs("ul",{className:"text-gray-200 mt-8 flex gap-6",children:[B.jsx("li",{children:B.jsxs("a",{href:"https://www.instagram.com/satyammishra9050/",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Instagram"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://x.com/bedeadmishra",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Twitter"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://github.com/bedead",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"GitHub"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://www.linkedin.com/in/theaiguysatyam/",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Linkedin"}),B.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:B.jsx("path",{d:"M 5.75 3 C 4.2400226 3 3 4.2400226 3 5.75 L 3 18.25 C 3 19.759977 4.2400226 21 5.75 21 L 18.25 21 C 19.759977 21 21 19.759977 21 18.25 L 21 5.75 C 21 4.2400226 19.759977 3 18.25 3 L 5.75 3 z M 5.75 4.5 L 18.25 4.5 C 18.950023 4.5 19.5 5.0499774 19.5 5.75 L 19.5 18.25 C 19.5 18.950023 18.950023 19.5 18.25 19.5 L 5.75 19.5 C 5.0499774 19.5 4.5 18.950023 4.5 18.25 L 4.5 5.75 C 4.5 5.0499774 5.0499774 4.5 5.75 4.5 z M 8.1855469 6.7851562 C 7.4445469 6.7851563 7 7.2293594 7 7.8183594 C 7 8.4113594 7.444375 8.8574219 8.109375 8.8574219 C 8.850375 8.8574219 9.2910156 8.4113594 9.2910156 7.8183594 C 9.2910156 7.2303594 8.8505469 6.7851562 8.1855469 6.7851562 z M 7.0625 9.9628906 L 7.0625 16 L 9.2363281 16 L 9.2363281 9.9628906 L 7.0625 9.9628906 z M 11.033203 9.9628906 L 11.033203 16 L 13.207031 16 L 13.207031 12.697266 C 13.207031 11.718266 13.908141 11.574219 14.119141 11.574219 C 14.330141 11.574219 14.892578 11.785266 14.892578 12.697266 L 14.892578 16 L 17 16 L 17 12.697266 C 17 10.806266 16.154516 9.9628906 15.103516 9.9628906 C 14.052516 9.9628906 13.490031 10.312641 13.207031 10.806641 L 13.207031 9.9628906 L 11.033203 9.9628906 z"})})]})})]})]}),B.jsxs("div",{className:"text-gray-400 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[B.jsxs("div",{children:[B.jsx("p",{className:"font-medium text-gray-200",children:"Top Projects"}),B.jsxs("ul",{className:"mt-6 space-y-4 text-sm",children:[B.jsx("li",{children:B.jsx("a",{href:"https://github.com/bedead/lung-cancer-classification-yoloV8---gradio",className:"transition hover:opacity-75",children:" PATENT - CLASSIFICATION OF LUNG CANCER USING DEEP LEARNING TECHNIQUES. "})}),B.jsx("li",{children:B.jsx("a",{href:"https://colab.research.google.com/drive/1a6LATySYKaS8qqfk_4maSaV4guvTRA-8?usp=sharing",className:"transition hover:opacity-75",children:" ConvoGen AI "})}),B.jsx("li",{children:B.jsx("a",{href:"https://github.com/bedead/Anon-Exchange-chatting",className:"transition hover:opacity-75",children:" Anon Exchange "})})]})]}),B.jsxs("div",{children:[B.jsx("p",{className:"font-medium text-gray-200",children:"Free tools"}),B.jsx("ul",{className:"mt-6 space-y-4 text-sm",children:B.jsx("li",{children:B.jsx("a",{href:"https://downloadtube-iota.vercel.app/",target:"_blank",className:"transition hover:opacity-75",children:" DownloadTube "})})})]})]})]}),B.jsx("div",{className:"mt-12 border-t text-gray-300 border-gray-100 pt-12",children:B.jsx("div",{className:"sm:flex sm:items-center sm:justify-between",children:B.jsx("p",{className:"mt-8 text-sm sm:mt-0",children:"© 2024. Bedead. Made with 💖."})})})]})]})};function Fre(){return B.jsxs("div",{children:[B.jsx(j$,{}),B.jsx(qW,{}),B.jsx(W$,{}),B.jsx(_re,{}),B.jsx(wre,{}),B.jsx(Pre,{}),B.jsx(Lre,{}),B.jsx(Ure,{})]})}function PC(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r(Dh.onStart=(e,t,i)=>{n({active:!0,item:e,loaded:t,total:i,progress:(t-Ff)/(i-Ff)*100})},Dh.onLoad=()=>{n({active:!1})},Dh.onError=e=>n(t=>({errors:[...t.errors,e]})),Dh.onProgress=(e,t,i)=>{t===i&&(Ff=i),n({active:!0,item:e,loaded:t,total:i,progress:(t-Ff)/(i-Ff)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0}));var rre=Object.defineProperty,sre=(n,e,t)=>e in n?rre(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Rt=(n,e,t)=>(sre(n,typeof e!="symbol"?e+"":e,t),t);const av=new yu,yN=new Wo,ore=Math.cos(70*(Math.PI/180)),vN=(n,e)=>(n%e+e)%e;let are=class extends Ys{constructor(e,t){super(),Rt(this,"object"),Rt(this,"domElement"),Rt(this,"enabled",!0),Rt(this,"target",new G),Rt(this,"minDistance",0),Rt(this,"maxDistance",1/0),Rt(this,"minZoom",0),Rt(this,"maxZoom",1/0),Rt(this,"minPolarAngle",0),Rt(this,"maxPolarAngle",Math.PI),Rt(this,"minAzimuthAngle",-1/0),Rt(this,"maxAzimuthAngle",1/0),Rt(this,"enableDamping",!1),Rt(this,"dampingFactor",.05),Rt(this,"enableZoom",!0),Rt(this,"zoomSpeed",1),Rt(this,"enableRotate",!0),Rt(this,"rotateSpeed",1),Rt(this,"enablePan",!0),Rt(this,"panSpeed",1),Rt(this,"screenSpacePanning",!0),Rt(this,"keyPanSpeed",7),Rt(this,"zoomToCursor",!1),Rt(this,"autoRotate",!1),Rt(this,"autoRotateSpeed",2),Rt(this,"reverseOrbit",!1),Rt(this,"reverseHorizontalOrbit",!1),Rt(this,"reverseVerticalOrbit",!1),Rt(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),Rt(this,"mouseButtons",{LEFT:Cc.ROTATE,MIDDLE:Cc.DOLLY,RIGHT:Cc.PAN}),Rt(this,"touches",{ONE:bc.ROTATE,TWO:bc.DOLLY_PAN}),Rt(this,"target0"),Rt(this,"position0"),Rt(this,"zoom0"),Rt(this,"_domElementKeyEvents",null),Rt(this,"getPolarAngle"),Rt(this,"getAzimuthalAngle"),Rt(this,"setPolarAngle"),Rt(this,"setAzimuthalAngle"),Rt(this,"getDistance"),Rt(this,"listenToKeyEvents"),Rt(this,"stopListenToKeyEvents"),Rt(this,"saveState"),Rt(this,"reset"),Rt(this,"update"),Rt(this,"connect"),Rt(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=K=>{let ve=vN(K,2*Math.PI),je=d.phi;je<0&&(je+=2*Math.PI),ve<0&&(ve+=2*Math.PI);let Y=Math.abs(ve-je);2*Math.PI-Y{let ve=vN(K,2*Math.PI),je=d.theta;je<0&&(je+=2*Math.PI),ve<0&&(ve+=2*Math.PI);let Y=Math.abs(ve-je);2*Math.PI-Yi.object.position.distanceTo(i.target),this.listenToKeyEvents=K=>{K.addEventListener("keydown",Ce),this._domElementKeyEvents=K},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",Ce),this._domElementKeyEvents=null},this.saveState=()=>{i.target0.copy(i.target),i.position0.copy(i.object.position),i.zoom0=i.object.zoom},this.reset=()=>{i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(r),i.update(),l=a.NONE},this.update=(()=>{const K=new G,ve=new G(0,1,0),je=new nr().setFromUnitVectors(e.up,ve),Y=je.clone().invert(),Fe=new G,me=new nr,Ae=2*Math.PI;return function(){const $e=i.object.position;je.setFromUnitVectors(e.up,ve),Y.copy(je).invert(),K.copy($e).sub(i.target),K.applyQuaternion(je),d.setFromVector3(K),i.autoRotate&&l===a.NONE&&se(V()),i.enableDamping?(d.theta+=f.theta*i.dampingFactor,d.phi+=f.phi*i.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let At=i.minAzimuthAngle,Bt=i.maxAzimuthAngle;isFinite(At)&&isFinite(Bt)&&(At<-Math.PI?At+=Ae:At>Math.PI&&(At-=Ae),Bt<-Math.PI?Bt+=Ae:Bt>Math.PI&&(Bt-=Ae),At<=Bt?d.theta=Math.max(At,Math.min(Bt,d.theta)):d.theta=d.theta>(At+Bt)/2?Math.max(At,d.theta):Math.min(Bt,d.theta)),d.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,d.phi)),d.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(m,i.dampingFactor):i.target.add(m),i.zoomToCursor&&D||i.object.isOrthographicCamera?d.radius=Me(d.radius):d.radius=Me(d.radius*p),K.setFromSpherical(d),K.applyQuaternion(Y),$e.copy(i.target).add(K),i.object.matrixAutoUpdate||i.object.updateMatrix(),i.object.lookAt(i.target),i.enableDamping===!0?(f.theta*=1-i.dampingFactor,f.phi*=1-i.dampingFactor,m.multiplyScalar(1-i.dampingFactor)):(f.set(0,0,0),m.set(0,0,0));let Cn=!1;if(i.zoomToCursor&&D){let It=null;if(i.object instanceof Dn&&i.object.isPerspectiveCamera){const Sn=K.length();It=Me(Sn*p);const kn=Sn-It;i.object.position.addScaledVector(I,kn),i.object.updateMatrixWorld()}else if(i.object.isOrthographicCamera){const Sn=new G(P.x,P.y,0);Sn.unproject(i.object),i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/p)),i.object.updateProjectionMatrix(),Cn=!0;const kn=new G(P.x,P.y,0);kn.unproject(i.object),i.object.position.sub(kn).add(Sn),i.object.updateMatrixWorld(),It=K.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;It!==null&&(i.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(It).add(i.object.position):(av.origin.copy(i.object.position),av.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(av.direction))c||8*(1-me.dot(i.object.quaternion))>c?(i.dispatchEvent(r),Fe.copy(i.object.position),me.copy(i.object.quaternion),Cn=!1,!0):!1}})(),this.connect=K=>{i.domElement=K,i.domElement.style.touchAction="none",i.domElement.addEventListener("contextmenu",Le),i.domElement.addEventListener("pointerdown",F),i.domElement.addEventListener("pointercancel",_e),i.domElement.addEventListener("wheel",nt)},this.dispose=()=>{var K,ve,je,Y,Fe,me;i.domElement&&(i.domElement.style.touchAction="auto"),(K=i.domElement)==null||K.removeEventListener("contextmenu",Le),(ve=i.domElement)==null||ve.removeEventListener("pointerdown",F),(je=i.domElement)==null||je.removeEventListener("pointercancel",_e),(Y=i.domElement)==null||Y.removeEventListener("wheel",nt),(Fe=i.domElement)==null||Fe.ownerDocument.removeEventListener("pointermove",ae),(me=i.domElement)==null||me.ownerDocument.removeEventListener("pointerup",_e),i._domElementKeyEvents!==null&&i._domElementKeyEvents.removeEventListener("keydown",Ce)};const i=this,r={type:"change"},s={type:"start"},o={type:"end"},a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=a.NONE;const c=1e-6,d=new MT,f=new MT;let p=1;const m=new G,_=new Ee,S=new Ee,x=new Ee,y=new Ee,E=new Ee,w=new Ee,M=new Ee,O=new Ee,k=new Ee,I=new G,P=new Ee;let D=!1;const A=[],R={};function V(){return 2*Math.PI/60/60*i.autoRotateSpeed}function U(){return Math.pow(.95,i.zoomSpeed)}function se(K){i.reverseOrbit||i.reverseHorizontalOrbit?f.theta+=K:f.theta-=K}function le(K){i.reverseOrbit||i.reverseVerticalOrbit?f.phi+=K:f.phi-=K}const ee=(()=>{const K=new G;return function(je,Y){K.setFromMatrixColumn(Y,0),K.multiplyScalar(-je),m.add(K)}})(),pe=(()=>{const K=new G;return function(je,Y){i.screenSpacePanning===!0?K.setFromMatrixColumn(Y,1):(K.setFromMatrixColumn(Y,0),K.crossVectors(i.object.up,K)),K.multiplyScalar(je),m.add(K)}})(),W=(()=>{const K=new G;return function(je,Y){const Fe=i.domElement;if(Fe&&i.object instanceof Dn&&i.object.isPerspectiveCamera){const me=i.object.position;K.copy(me).sub(i.target);let Ae=K.length();Ae*=Math.tan(i.object.fov/2*Math.PI/180),ee(2*je*Ae/Fe.clientHeight,i.object.matrix),pe(2*Y*Ae/Fe.clientHeight,i.object.matrix)}else Fe&&i.object instanceof zs&&i.object.isOrthographicCamera?(ee(je*(i.object.right-i.object.left)/i.object.zoom/Fe.clientWidth,i.object.matrix),pe(Y*(i.object.top-i.object.bottom)/i.object.zoom/Fe.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}})();function J(K){i.object instanceof Dn&&i.object.isPerspectiveCamera||i.object instanceof zs&&i.object.isOrthographicCamera?p/=K:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function Z(K){i.object instanceof Dn&&i.object.isPerspectiveCamera||i.object instanceof zs&&i.object.isOrthographicCamera?p*=K:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function oe(K){if(!i.zoomToCursor||!i.domElement)return;D=!0;const ve=i.domElement.getBoundingClientRect(),je=K.clientX-ve.left,Y=K.clientY-ve.top,Fe=ve.width,me=ve.height;P.x=je/Fe*2-1,P.y=-(Y/me)*2+1,I.set(P.x,P.y,1).unproject(i.object).sub(i.object.position).normalize()}function Me(K){return Math.max(i.minDistance,Math.min(i.maxDistance,K))}function Re(K){_.set(K.clientX,K.clientY)}function he(K){oe(K),M.set(K.clientX,K.clientY)}function we(K){y.set(K.clientX,K.clientY)}function Ne(K){S.set(K.clientX,K.clientY),x.subVectors(S,_).multiplyScalar(i.rotateSpeed);const ve=i.domElement;ve&&(se(2*Math.PI*x.x/ve.clientHeight),le(2*Math.PI*x.y/ve.clientHeight)),_.copy(S),i.update()}function be(K){O.set(K.clientX,K.clientY),k.subVectors(O,M),k.y>0?J(U()):k.y<0&&Z(U()),M.copy(O),i.update()}function ft(K){E.set(K.clientX,K.clientY),w.subVectors(E,y).multiplyScalar(i.panSpeed),W(w.x,w.y),y.copy(E),i.update()}function dt(K){oe(K),K.deltaY<0?Z(U()):K.deltaY>0&&J(U()),i.update()}function Ke(K){let ve=!1;switch(K.code){case i.keys.UP:W(0,i.keyPanSpeed),ve=!0;break;case i.keys.BOTTOM:W(0,-i.keyPanSpeed),ve=!0;break;case i.keys.LEFT:W(i.keyPanSpeed,0),ve=!0;break;case i.keys.RIGHT:W(-i.keyPanSpeed,0),ve=!0;break}ve&&(K.preventDefault(),i.update())}function ke(){if(A.length==1)_.set(A[0].pageX,A[0].pageY);else{const K=.5*(A[0].pageX+A[1].pageX),ve=.5*(A[0].pageY+A[1].pageY);_.set(K,ve)}}function xe(){if(A.length==1)y.set(A[0].pageX,A[0].pageY);else{const K=.5*(A[0].pageX+A[1].pageX),ve=.5*(A[0].pageY+A[1].pageY);y.set(K,ve)}}function j(){const K=A[0].pageX-A[1].pageX,ve=A[0].pageY-A[1].pageY,je=Math.sqrt(K*K+ve*ve);M.set(0,je)}function Ve(){i.enableZoom&&j(),i.enablePan&&xe()}function Oe(){i.enableZoom&&j(),i.enableRotate&&ke()}function Pe(K){if(A.length==1)S.set(K.pageX,K.pageY);else{const je=et(K),Y=.5*(K.pageX+je.x),Fe=.5*(K.pageY+je.y);S.set(Y,Fe)}x.subVectors(S,_).multiplyScalar(i.rotateSpeed);const ve=i.domElement;ve&&(se(2*Math.PI*x.x/ve.clientHeight),le(2*Math.PI*x.y/ve.clientHeight)),_.copy(S)}function Ue(K){if(A.length==1)E.set(K.pageX,K.pageY);else{const ve=et(K),je=.5*(K.pageX+ve.x),Y=.5*(K.pageY+ve.y);E.set(je,Y)}w.subVectors(E,y).multiplyScalar(i.panSpeed),W(w.x,w.y),y.copy(E)}function lt(K){const ve=et(K),je=K.pageX-ve.x,Y=K.pageY-ve.y,Fe=Math.sqrt(je*je+Y*Y);O.set(0,Fe),k.set(0,Math.pow(O.y/M.y,i.zoomSpeed)),J(k.y),M.copy(O)}function We(K){i.enableZoom&<(K),i.enablePan&&Ue(K)}function X(K){i.enableZoom&<(K),i.enableRotate&&Pe(K)}function F(K){var ve,je;i.enabled!==!1&&(A.length===0&&((ve=i.domElement)==null||ve.ownerDocument.addEventListener("pointermove",ae),(je=i.domElement)==null||je.ownerDocument.addEventListener("pointerup",_e)),Ze(K),K.pointerType==="touch"?Ge(K):Te(K))}function ae(K){i.enabled!==!1&&(K.pointerType==="touch"?Lt(K):Se(K))}function _e(K){var ve,je,Y;Et(K),A.length===0&&((ve=i.domElement)==null||ve.releasePointerCapture(K.pointerId),(je=i.domElement)==null||je.ownerDocument.removeEventListener("pointermove",ae),(Y=i.domElement)==null||Y.ownerDocument.removeEventListener("pointerup",_e)),i.dispatchEvent(o),l=a.NONE}function Te(K){let ve;switch(K.button){case 0:ve=i.mouseButtons.LEFT;break;case 1:ve=i.mouseButtons.MIDDLE;break;case 2:ve=i.mouseButtons.RIGHT;break;default:ve=-1}switch(ve){case Cc.DOLLY:if(i.enableZoom===!1)return;he(K),l=a.DOLLY;break;case Cc.ROTATE:if(K.ctrlKey||K.metaKey||K.shiftKey){if(i.enablePan===!1)return;we(K),l=a.PAN}else{if(i.enableRotate===!1)return;Re(K),l=a.ROTATE}break;case Cc.PAN:if(K.ctrlKey||K.metaKey||K.shiftKey){if(i.enableRotate===!1)return;Re(K),l=a.ROTATE}else{if(i.enablePan===!1)return;we(K),l=a.PAN}break;default:l=a.NONE}l!==a.NONE&&i.dispatchEvent(s)}function Se(K){if(i.enabled!==!1)switch(l){case a.ROTATE:if(i.enableRotate===!1)return;Ne(K);break;case a.DOLLY:if(i.enableZoom===!1)return;be(K);break;case a.PAN:if(i.enablePan===!1)return;ft(K);break}}function nt(K){i.enabled===!1||i.enableZoom===!1||l!==a.NONE&&l!==a.ROTATE||(K.preventDefault(),i.dispatchEvent(s),dt(K),i.dispatchEvent(o))}function Ce(K){i.enabled===!1||i.enablePan===!1||Ke(K)}function Ge(K){switch(vt(K),A.length){case 1:switch(i.touches.ONE){case bc.ROTATE:if(i.enableRotate===!1)return;ke(),l=a.TOUCH_ROTATE;break;case bc.PAN:if(i.enablePan===!1)return;xe(),l=a.TOUCH_PAN;break;default:l=a.NONE}break;case 2:switch(i.touches.TWO){case bc.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;Ve(),l=a.TOUCH_DOLLY_PAN;break;case bc.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;Oe(),l=a.TOUCH_DOLLY_ROTATE;break;default:l=a.NONE}break;default:l=a.NONE}l!==a.NONE&&i.dispatchEvent(s)}function Lt(K){switch(vt(K),l){case a.TOUCH_ROTATE:if(i.enableRotate===!1)return;Pe(K),i.update();break;case a.TOUCH_PAN:if(i.enablePan===!1)return;Ue(K),i.update();break;case a.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;We(K),i.update();break;case a.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;X(K),i.update();break;default:l=a.NONE}}function Le(K){i.enabled!==!1&&K.preventDefault()}function Ze(K){A.push(K)}function Et(K){delete R[K.pointerId];for(let ve=0;ve0,O=U>0,k=se>0,I=(M?1:0)+(O?1:0)+(k?1:0),I){case 0:{y.push(S[w]),y.push(S[w+1]),y.push(S[w+2]);break}case 1:{if(M&&(P=S[w+1],D=S[w+2],A=_(S[w],P,x,E),R=_(S[w],D,x,E)),O){P=S[w],D=S[w+2],A=_(S[w+1],P,x,E),R=_(S[w+1],D,x,E),y.push(A),y.push(D.clone()),y.push(P.clone()),y.push(D.clone()),y.push(A.clone()),y.push(R);break}k&&(P=S[w],D=S[w+1],A=_(S[w+2],P,x,E),R=_(S[w+2],D,x,E)),y.push(P.clone()),y.push(D.clone()),y.push(A),y.push(R),y.push(A.clone()),y.push(D.clone());break}case 2:{M||(P=S[w].clone(),D=_(P,S[w+1],x,E),A=_(P,S[w+2],x,E),y.push(P),y.push(D),y.push(A)),O||(P=S[w+1].clone(),D=_(P,S[w+2],x,E),A=_(P,S[w],x,E),y.push(P),y.push(D),y.push(A)),k||(P=S[w+2].clone(),D=_(P,S[w],x,E),A=_(P,S[w+1],x,E),y.push(P),y.push(D),y.push(A));break}}}return y}function _(S,x,y,E){const w=S.position.dot(y)-E,M=x.position.dot(y)-E,O=w/(w-M);return new _N(new G(S.position.x+O*(x.position.x-S.position.x),S.position.y+O*(x.position.y-S.position.y),S.position.z+O*(x.position.z-S.position.z)),new G(S.normal.x+O*(x.normal.x-S.normal.x),S.normal.y+O*(x.normal.y-S.normal.y),S.normal.z+O*(x.normal.z-S.normal.z)))}}}class _N{constructor(e,t){this.position=e,this.normal=t}clone(){return new this.constructor(this.position.clone(),this.normal.clone())}}const C1=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function bC(n,e){const t=Kr(s=>s.gl),i=Qm(kx,C1(n)?Object.values(n):n);return q.useLayoutEffect(()=>{e==null||e(i)},[e]),q.useEffect(()=>{if("initTexture"in t){let s=[];Array.isArray(i)?s=i:i instanceof In?s=[i]:C1(i)&&(s=Object.values(i)),s.forEach(o=>{o instanceof In&&t.initTexture(o)})}},[t,i]),q.useMemo(()=>{if(C1(n)){const s={};let o=0;for(const a in n)s[a]=i[o++];return s}else return i},[n,i])}bC.preload=n=>Qm.preload(kx,n);bC.clear=n=>Qm.clear(kx,n);function cre(n){return Array.isArray(n)}function b1(n=[0,0,0]){return cre(n)?n:n instanceof G||n instanceof _r?[n.x,n.y,n.z]:[n,n,n]}const ure=q.forwardRef(function({debug:e,depthTest:t=!1,polygonOffsetFactor:i=-10,map:r,mesh:s,children:o,position:a,rotation:l,scale:c,...d},f){const p=q.useRef(null);q.useImperativeHandle(f,()=>p.current);const m=q.useRef(null);return q.useLayoutEffect(()=>{const _=(s==null?void 0:s.current)||p.current.parent,S=p.current;if(!(_ instanceof ni))throw new Error('Decal must have a Mesh as parent or specify its "mesh" prop');const x={position:new G,rotation:new _r,scale:new G(1,1,1)};if(_){lo(x,{position:a,scale:c});const y=_.matrixWorld.clone();if(_.matrixWorld.identity(),!l||typeof l=="number"){const E=new Zt;E.position.copy(x.position),E.lookAt(_.position),typeof l=="number"&&E.rotateZ(l),lo(x,{rotation:E.rotation})}else lo(x,{rotation:l});return S.geometry=new lre(_,x.position,x.rotation,x.scale),m.current&&(lo(m.current,x),m.current.traverse(E=>E.raycast=()=>null)),_.matrixWorld=y,()=>{S.geometry.dispose()}}},[s,...b1(a),...b1(c),...b1(l)]),q.createElement("mesh",vm({ref:p,"material-transparent":!0,"material-polygonOffset":!0,"material-polygonOffsetFactor":i,"material-depthTest":t,"material-map":r},d),o,e&&q.createElement("mesh",{ref:m},q.createElement("boxGeometry",null),q.createElement("meshNormalMaterial",{wireframe:!0}),q.createElement("axesHelper",null)))}),hre=q.forwardRef(({makeDefault:n,camera:e,regress:t,domElement:i,enableDamping:r=!0,keyEvents:s=!1,onChange:o,onStart:a,onEnd:l,...c},d)=>{const f=Kr(k=>k.invalidate),p=Kr(k=>k.camera),m=Kr(k=>k.gl),_=Kr(k=>k.events),S=Kr(k=>k.setEvents),x=Kr(k=>k.set),y=Kr(k=>k.get),E=Kr(k=>k.performance),w=e||p,M=i||_.connected||m.domElement,O=q.useMemo(()=>new are(w),[w]);return AC(()=>{O.enabled&&O.update()},-1),q.useEffect(()=>(s&&O.connect(s===!0?M:s),O.connect(M),()=>void O.dispose()),[s,M,t,O,f]),q.useEffect(()=>{const k=D=>{f(),t&&E.regress(),o&&o(D)},I=D=>{a&&a(D)},P=D=>{l&&l(D)};return O.addEventListener("change",k),O.addEventListener("start",I),O.addEventListener("end",P),()=>{O.removeEventListener("start",I),O.removeEventListener("end",P),O.removeEventListener("change",k)}},[o,a,l,O,f,S]),q.useEffect(()=>{if(n){const k=y().controls;return x({controls:O}),()=>x({controls:k})}},[n,O]),q.createElement("primitive",vm({ref:d,object:O,enableDamping:r},c))}),dre=q.forwardRef(({children:n,enabled:e=!0,speed:t=1,rotationIntensity:i=1,floatIntensity:r=1,floatingRange:s=[-.1,.1],autoInvalidate:o=!1,...a},l)=>{const c=q.useRef(null);q.useImperativeHandle(l,()=>c.current,[]);const d=q.useRef(Math.random()*1e4);return AC(f=>{var p,m;if(!e||t===0)return;o&&f.invalidate();const _=d.current+f.clock.getElapsedTime();c.current.rotation.x=Math.cos(_/4*t)/8*i,c.current.rotation.y=Math.sin(_/4*t)/8*i,c.current.rotation.z=Math.sin(_/4*t)/20*i;let S=Math.sin(_/4*t)/10;S=jF.mapLinear(S,-.1,.1,(p=s==null?void 0:s[0])!==null&&p!==void 0?p:-.1,(m=s==null?void 0:s[1])!==null&&m!==void 0?m:.1),c.current.position.y=S*r,c.current.updateMatrix()}),q.createElement("group",a,q.createElement("group",{ref:c,matrixAutoUpdate:!1},n))});function fre({all:n,scene:e,camera:t}){const i=Kr(({gl:o})=>o),r=Kr(({camera:o})=>o),s=Kr(({scene:o})=>o);return q.useLayoutEffect(()=>{const o=[];n&&(e||s).traverse(c=>{c.visible===!1&&(o.push(c),c.visible=!0)}),i.compile(e||s,t||r);const a=new JM(128);new QM(.01,1e5,a).update(i,e||s),a.dispose(),o.forEach(c=>c.visible=!1)},[]),null}const pre=()=>{const{progress:n}=ire(),e={display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},t={fontSize:14,color:"#F1F1F1",fontWeight:800,marginTop:40};return B.jsxs(nre,{as:"div",center:!0,style:e,children:[B.jsx("span",{className:"canvas-loader"}),B.jsxs("p",{style:t,children:[n.toFixed(0),"%"]})]})},mre=n=>{const[e]=bC([n.imgUrl]);return B.jsxs(dre,{speed:1,rotationIntensity:0,floatIntensity:5,children:[B.jsx("ambientLight",{intensity:2.4}),B.jsx("directionalLight",{position:[0,0,.05]}),B.jsxs("mesh",{castShadow:!0,receiveShadow:!0,scale:2.75,children:[B.jsx("icosahedronGeometry",{args:[1,1]}),B.jsx("meshStandardMaterial",{color:"#fcd4d4",polygonOffset:!0,polygonOffsetFactor:-5,flatShading:!0}),B.jsx(ure,{position:[0,0,1],rotation:[2*Math.PI,0,6.25],scale:1,map:e,flatShading:!0})]})]})},gre=({icon:n})=>B.jsxs(Xie,{frameloop:"demand",dpr:[1,2],gl:{preserveDrawingBuffer:!0},children:[B.jsxs(q.Suspense,{fallback:B.jsx(pre,{}),children:[B.jsx(hre,{enableZoom:!1}),B.jsx(mre,{imgUrl:n})]}),B.jsx(fre,{all:!0})]}),yre="/portfolio-react-threejs/assets/texture-5adaf7bf.webp",vre=()=>B.jsxs("section",{className:"xl:mt-6 flex flex-row flex-wrap justify-center items-center gap-10",children:[B.jsxs(er.div,{variants:Lm(),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Skills & Technologies."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"What have i learnd?"})]}),B.jsx("div",{className:"w-full lg:w-[400px] lg:h-[400px] ",children:B.jsx(gre,{icon:yre})},"skillsBall")]}),_re=Td(vre,"TechSkillsSection"),xre="/portfolio-react-threejs/assets/cover_img-4c0efeb6.webp",xN="/portfolio-react-threejs/assets/resume-bb345e2c.pdf",Sre=()=>{const[n,e]=q.useState(!1),t=()=>e(!0),i=()=>e(!1),r=()=>{const s=document.createElement("a");s.href=xN,s.download="Satyam_Mishra_Resume",s.click()};return B.jsxs("section",{className:"-m-5 md:-m-10 max-w-screen-xl mx-auto my-10 space-y-10 max",children:[B.jsxs(er.div,{variants:Lm(0),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Resume."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"Here's my Resume😁"})]}),B.jsx(er.div,{variants:Ed("right","spring",.5*0,.75),className:"md:flex justify-center items-center",children:B.jsxs(G_,{options:{max:45,scale:1,speed:450},className:"group bg-white shadow-[#fcd4d4] shadow-card rounded-2xl mx-auto w-[90%] md:min-w-1/3 md:max-w-3xl h-full",children:[B.jsx("div",{className:"group-hover:opacity-100 relative w-full h-full mb-5",children:B.jsx("img",{src:xre,loading:"lazy",alt:"Resume cover image",className:"w-full h-full object-cover rounded-2xl"})}),B.jsxs("div",{className:"text-primary flex items-center space-x-5 md:space-y-5 justify-center absolute z-10 md:top-10 md:-right-24 md:bottom-0 md:flex-col md:items-center md:justify-center transition-opacity duration-300",children:[B.jsxs("button",{onClick:r,className:"mt-8 bg-blue-500 hover:bg-blue-300 font-bold py-3 px-6 rounded-full flex items-center",children:["Download ",B.jsx("span",{className:"ml-2",children:"▶"})]}),B.jsxs("button",{onClick:t,className:"mt-8 bg-green-500 hover:bg-green-300 font-bold py-3 px-6 rounded-full flex items-center",children:["View ",B.jsx("span",{className:"ml-2",children:"▶"})]})]})]})}),n&&B.jsx("div",{className:"fixed inset-0 z-50 overflow-auto -top-10 bg-black bg-opacity-60 flex items-center justify-center",children:B.jsxs("div",{className:"bg-white p-2 rounded-2xl max-w-screen-lg w-[70%] relative",children:[B.jsx("button",{className:"absolute -top-12 right-0 md:top-2 md:-right-20 bg-black hover:bg-gray-800 py-2 px-3 rounded-xl text-white hover:text-gray-200",onClick:i,children:"Close"}),B.jsx("iframe",{title:"PDF Viewer",src:xN,className:"w-full h-[400px]"})]})})]})},wre=Td(Sre,"ResumeSection"),Ere="data:image/webp;base64,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",Tre="/portfolio-react-threejs/assets/appstore-0b8f390b.png",Are="/portfolio-react-threejs/assets/colab-9e4861eb.png",Mre="/portfolio-react-threejs/assets/huggingface-720eadc9.png",SN="/portfolio-react-threejs/assets/website-078d1216.gif",Cre=({index:n,name:e,description:t,tags:i,image:r,source_code_link:s,date:o})=>B.jsx(G_,{className:"sm:w-[360px] w-full",children:B.jsx(er.div,{id:n,variants:Ed("right","spring",0,.75),className:"shadow-[#fcd4d4] green-pink-gradient shadow-card p-[1px] rounded-2xl ",children:B.jsxs("div",{className:"bg-primary rounded-2xl py-5 px-8",options:{max:45,scale:1,speed:450},children:[B.jsxs("div",{className:"relative w-full h-[230px]",children:[B.jsx("img",{src:r,alt:"project_image",className:"w-full h-full object-cover rounded-2xl"}),B.jsx("div",{className:"absolute inset-0 z-10 space-y-3 flex-col justify-end m-3 card-img_hover",children:Object.entries(s).map(([a,l])=>B.jsx("div",{onClick:()=>window.open(l,"_blank"),className:"border-black border-2 white-gradient w-10 h-10 rounded-full flex justify-center items-center cursor-pointer",title:a==="Github"?"View in GitHub":a==="Appstore"?"View in App Store":a==="Colab"?"View in Google Colab":a==="Huggingface"?"View in Hugging Face":a==="Live"?"View Live Website":"View Now",children:B.jsx("img",{src:a==="Github"?Ere:a==="Appstore"?Tre:a==="Colab"?Are:a==="Huggingface"?Mre:SN,alt:`${a} link`,className:"w-1/2 h-1/2 object-contain"})},a))})]}),B.jsxs("div",{className:"mt-5",children:[B.jsx("h3",{className:"text-black font-bold text-[24px]",children:e}),B.jsx("p",{className:"mt-2 text-secondary text-[14px]",children:t})]}),B.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[Object.entries(i).map(([a,l])=>B.jsxs("p",{className:`text-[14px] ${l}`,children:["#",a," "]},`${e}-${a}`))," "]}),B.jsx("p",{children:o})]})})}),bre=()=>{const[n,e]=q.useState([]);return q.useEffect(()=>{(async()=>{const r=(await LM(IM(NM,"Projects"))).docs.map(s=>s.data()).sort((s,o)=>o.index-s.index);e(r)})()},[]),B.jsxs("section",{className:"-m-5 md:-m-10 ",children:[B.jsxs(er.div,{variants:Lm(0),children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Projects."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"My works? Here they are."})]}),B.jsxs("div",{className:" mt-20 grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:[n.map((t,i)=>B.jsx(Cre,{index:i,...t},`project-${i}`))," "]})]})},Pre=Td(bre,"ProjectsSection"),Rre=({index:n,name:e,date:t,image:i,link:r})=>B.jsx("div",{id:n,children:B.jsx(er.div,{variants:Ed("right","spring",.5,.75),children:B.jsx(G_,{options:{max:45,scale:1,speed:450},className:"bg-white shadow-[#fcd4d4] shadow-card p-5 rounded-2xl sm:w-[360px] w-full",children:B.jsxs("a",{href:r,target:"_blank",children:[B.jsx("div",{className:"relative w-full ",children:B.jsx("img",{src:i,placeholder:e,loading:"lazy",alt:`${e} cover image`,className:"w-full h-52 object-cover rounded-2xl"})}),B.jsx("p",{className:"mt-3 text-left",children:t}),B.jsx("h3",{className:"text-black font-bold text-[24px] text-left",children:e})]})})})});function Ire(){const[n,e]=q.useState([]);return q.useEffect(()=>{(async()=>{const r=(await LM(IM(NM,"Blogs"))).docs.map(s=>s.data()).sort((s,o)=>o.index-s.index);e(r)})()},[]),B.jsxs("div",{className:"my-10",children:[B.jsxs("div",{children:[B.jsx("h2",{className:`${sr.sectionHeadText} text-center`,children:"Blogs."}),B.jsx("p",{className:`${sr.sectionSubText} text-center`,children:"Blogs written by me"})]}),B.jsx("div",{className:"my-20 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:n.map((t,i)=>B.jsx(Rre,{index:i,...t},`blog-${i}`))})]})}const Lre=Td(Ire,"BlogsSections"),_m={_origin:"https://api.emailjs.com"},Nre=(n,e="https://api.emailjs.com")=>{_m._userID=n,_m._origin=e},A4=(n,e,t)=>{if(!n)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!e)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!t)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class wN{constructor(e){this.status=e?e.status:0,this.text=e?e.responseText:"Network Error"}}const M4=(n,e,t={})=>new Promise((i,r)=>{const s=new XMLHttpRequest;s.addEventListener("load",({target:o})=>{const a=new wN(o);a.status===200||a.text==="OK"?i(a):r(a)}),s.addEventListener("error",({target:o})=>{r(new wN(o))}),s.open("POST",_m._origin+n,!0),Object.keys(t).forEach(o=>{s.setRequestHeader(o,t[o])}),s.send(e)}),Dre=(n,e,t,i)=>{const r=i||_m._userID;return A4(r,n,e),M4("/api/v1.0/email/send",JSON.stringify({lib_version:"3.12.1",user_id:r,service_id:n,template_id:e,template_params:t}),{"Content-type":"application/json"})},kre=n=>{let e;if(typeof n=="string"?e=document.querySelector(n):e=n,!e||e.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return e},Ore=(n,e,t,i)=>{const r=i||_m._userID,s=kre(t);A4(r,n,e);const o=new FormData(s);return o.append("lib_version","3.12.1"),o.append("service_id",n),o.append("template_id",e),o.append("user_id",r),M4("/api/v1.0/email/send-form",o)},EN={init:Nre,send:Dre,sendForm:Ore},Ure=()=>{const n=q.useRef(),[e,t]=q.useState({name:"",email:"",message:""}),[i,r]=q.useState(!1),[s,o]=q.useState(!1),a=c=>{const{target:d}=c,{name:f,value:p}=d;t({...e,[f]:p})},l=c=>{c.preventDefault(),r(!0),EN.init("Tlnn1O7PC8WlYPRT7"),EN.send("service_w2nrv74","template_hmf109b",{from_name:e.name,to_name:"Satyam Mishra",from_email:e.email,to_email:"satyammishra9050@gmail.com",message:e.message}).then(()=>{r(!1),o(!0),t({name:"",email:"",message:""})},d=>{r(!1),console.error(d),alert("Ahh, something went wrong. Please try again.")})};return B.jsxs("footer",{id:"ContactSection",className:"lg:grid lg:grid-cols-5 bg-black h-fit ",children:[B.jsxs("div",{className:"relative p-12 block h-32 lg:col-span-2 lg:h-full",children:[B.jsx("p",{className:`${sr.sectionSubText} text-white`,children:"I am open to work"}),B.jsx("h3",{className:`${sr.sectionHeadText} text-primary`,children:"Get In Touch."}),s?B.jsxs("div",{children:[B.jsx("p",{className:"text-green-500 mt-2",children:"Thank you. I have recieved your msg."}),B.jsx("p",{className:"text-green-500",children:"I will get back to you right on."})]}):B.jsxs("form",{ref:n,onSubmit:l,className:"flex flex-col gap-1",children:[B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Name"}),B.jsx("input",{type:"text",name:"name",value:e.name,onChange:a,placeholder:"What's your good name?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Email"}),B.jsx("input",{type:"email",name:"email",value:e.email,onChange:a,placeholder:"What's your email?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsxs("label",{className:"flex flex-col",children:[B.jsx("span",{className:"text-black font-medium mb-1",children:"Your Message"}),B.jsx("textarea",{name:"message",value:e.message,onChange:a,placeholder:"What's your message?",className:"bg-blue-50 py-4 px-6 placeholder:text-secondary text-black rounded-lg outline-none border-none font-medium"})]}),B.jsx("button",{type:"submit","aria-busy":i,className:"mt-6 bg-secondary hover:bg-slate-600 py-3 px-8 rounded-xl outline-none w-fit text-primary font-bold",children:i?"Sending...":"Send"})]})]}),B.jsxs("div",{className:"px-4 py-16 sm:px-6 lg:col-span-3 lg:px-8",children:[B.jsxs("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2",children:[B.jsxs("div",{children:[B.jsxs("p",{children:[B.jsx("span",{className:"text-xs uppercase tracking-wide text-gray-200",children:" Mail me "}),B.jsx("a",{href:"mailto:satyam.work.only@gmail.com?subject=Just%20wondaring&body=Nothing%20much.",className:"animate-pulse block text-2xl font-medium text-gray-400 hover:opacity-75 sm:text-3xl",children:"Click here to mail."})]}),B.jsxs("ul",{className:"text-gray-200 mt-8 flex gap-6",children:[B.jsx("li",{children:B.jsxs("a",{href:"https://www.instagram.com/satyammishra9050/",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Instagram"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://x.com/bedeadmishra",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Twitter"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://github.com/bedead",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"GitHub"}),B.jsx("svg",{className:"size-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})]})}),B.jsx("li",{children:B.jsxs("a",{href:"https://www.linkedin.com/in/theaiguysatyam/",rel:"noreferrer",target:"_blank",className:"transition hover:opacity-75",children:[B.jsx("span",{className:"sr-only",children:"Linkedin"}),B.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:B.jsx("path",{d:"M 5.75 3 C 4.2400226 3 3 4.2400226 3 5.75 L 3 18.25 C 3 19.759977 4.2400226 21 5.75 21 L 18.25 21 C 19.759977 21 21 19.759977 21 18.25 L 21 5.75 C 21 4.2400226 19.759977 3 18.25 3 L 5.75 3 z M 5.75 4.5 L 18.25 4.5 C 18.950023 4.5 19.5 5.0499774 19.5 5.75 L 19.5 18.25 C 19.5 18.950023 18.950023 19.5 18.25 19.5 L 5.75 19.5 C 5.0499774 19.5 4.5 18.950023 4.5 18.25 L 4.5 5.75 C 4.5 5.0499774 5.0499774 4.5 5.75 4.5 z M 8.1855469 6.7851562 C 7.4445469 6.7851563 7 7.2293594 7 7.8183594 C 7 8.4113594 7.444375 8.8574219 8.109375 8.8574219 C 8.850375 8.8574219 9.2910156 8.4113594 9.2910156 7.8183594 C 9.2910156 7.2303594 8.8505469 6.7851562 8.1855469 6.7851562 z M 7.0625 9.9628906 L 7.0625 16 L 9.2363281 16 L 9.2363281 9.9628906 L 7.0625 9.9628906 z M 11.033203 9.9628906 L 11.033203 16 L 13.207031 16 L 13.207031 12.697266 C 13.207031 11.718266 13.908141 11.574219 14.119141 11.574219 C 14.330141 11.574219 14.892578 11.785266 14.892578 12.697266 L 14.892578 16 L 17 16 L 17 12.697266 C 17 10.806266 16.154516 9.9628906 15.103516 9.9628906 C 14.052516 9.9628906 13.490031 10.312641 13.207031 10.806641 L 13.207031 9.9628906 L 11.033203 9.9628906 z"})})]})})]})]}),B.jsxs("div",{className:"text-gray-400 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[B.jsxs("div",{children:[B.jsx("p",{className:"font-medium text-gray-200",children:"Top Projects"}),B.jsxs("ul",{className:"mt-6 space-y-4 text-sm",children:[B.jsx("li",{children:B.jsx("a",{href:"https://github.com/bedead/lung-cancer-classification-yoloV8---gradio",className:"transition hover:opacity-75",children:" PATENT - CLASSIFICATION OF LUNG CANCER USING DEEP LEARNING TECHNIQUES. "})}),B.jsx("li",{children:B.jsx("a",{href:"https://colab.research.google.com/drive/1a6LATySYKaS8qqfk_4maSaV4guvTRA-8?usp=sharing",className:"transition hover:opacity-75",children:" ConvoGen AI "})}),B.jsx("li",{children:B.jsx("a",{href:"https://github.com/bedead/Anon-Exchange-chatting",className:"transition hover:opacity-75",children:" Anon Exchange "})})]})]}),B.jsxs("div",{children:[B.jsx("p",{className:"font-medium text-gray-200",children:"Free tools"}),B.jsx("ul",{className:"mt-6 space-y-4 text-sm",children:B.jsx("li",{children:B.jsx("a",{href:"https://downloadtube-iota.vercel.app/",target:"_blank",className:"transition hover:opacity-75",children:" DownloadTube "})})})]})]})]}),B.jsx("div",{className:"mt-12 border-t text-gray-300 border-gray-100 pt-12",children:B.jsx("div",{className:"sm:flex sm:items-center sm:justify-between",children:B.jsx("p",{className:"mt-8 text-sm sm:mt-0",children:"© 2024. Bedead. Made with 💖."})})})]})]})};function Fre(){return B.jsxs("div",{children:[B.jsx(j$,{}),B.jsx(qW,{}),B.jsx(W$,{}),B.jsx(_re,{}),B.jsx(wre,{}),B.jsx(Pre,{}),B.jsx(Lre,{}),B.jsx(Ure,{})]})}function PC(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r - + Satyam Mishra | Bedead - - + +