diff --git a/chunk-About-D3Bw6Gz9.js b/About.js similarity index 98% rename from chunk-About-D3Bw6Gz9.js rename to About.js index d89d7ea6..432cec9d 100644 --- a/chunk-About-D3Bw6Gz9.js +++ b/About.js @@ -1,4 +1,4 @@ -import{c as a,j as e,M as n}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";import{U as r}from"./chunk-users-R8cL96Sh.js";import{S as o}from"./chunk-shield-D5uwo1pE.js";/** +import{c as a,j as e,M as n}from"./script.js";import{m as s}from"./proxy.js";import{U as r}from"./users.js";import{S as o}from"./shield.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/Developers.js b/Developers.js new file mode 100644 index 00000000..ad823649 --- /dev/null +++ b/Developers.js @@ -0,0 +1,11 @@ +var De=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||De("Cannot "+s);var r=(t,e,s)=>(le(t,e,"read from private field"),s?s.call(t):e.get(t)),m=(t,e,s)=>e.has(t)?De("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),l=(t,e,s,i)=>(le(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(le(t,e,"access private method"),s);import{S as Ae,p as Te,d as T,s as ue,e as ne,n as tt,i as de,g as Me,t as st,h as rt,k as it,l as Fe,m as Z,o as nt,r as E,u as qe,c as ze,j as a,B as at,G as ot,q as ct,b as lt}from"./script.js";import{m as M}from"./proxy.js";import{M as ht}from"./map-pin.js";import{U as ut}from"./users.js";import{S as dt}from"./star.js";var S,h,ee,C,L,G,F,D,te,V,K,P,H,U,W,d,Y,fe,pe,me,ge,be,xe,ye,Be,Pe,Ee=(Pe=class extends Ae{constructor(e,s){super();m(this,d);m(this,S);m(this,h);m(this,ee);m(this,C);m(this,L);m(this,G);m(this,F);m(this,D);m(this,te);m(this,V);m(this,K);m(this,P);m(this,H);m(this,U);m(this,W,new Set);this.options=s,l(this,S,e),l(this,D,null),l(this,F,Te()),this.options.experimental_prefetchInRender||r(this,F).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,h).addObserver(this),Ue(r(this,h),this.options)?u(this,d,Y).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,h),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,h),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,be).call(this),u(this,d,xe).call(this),r(this,h).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,h);if(this.options=r(this,S).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof T(this.options.enabled,r(this,h))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,ye).call(this),r(this,h).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,S).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,h),observer:this});const o=this.hasListeners();o&&_e(r(this,h),c,this.options,i)&&u(this,d,Y).call(this),this.updateResult(s),o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||ne(this.options.staleTime,r(this,h))!==ne(i.staleTime,r(this,h)))&&u(this,d,fe).call(this);const n=u(this,d,pe).call(this);o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||n!==r(this,U))&&u(this,d,me).call(this,n)}getOptimisticResult(e){const s=r(this,S).getQueryCache().build(r(this,S),e),i=this.createResult(s,e);return pt(this,i)&&(l(this,C,i),l(this,G,this.options),l(this,L,r(this,h).state)),i}getCurrentResult(){return r(this,C)}trackResult(e,s){const i={};return Object.keys(e).forEach(c=>{Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),e[c])})}),i}trackProp(e){r(this,W).add(e)}getCurrentQuery(){return r(this,h)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,S).defaultQueryOptions(e),i=r(this,S).getQueryCache().build(r(this,S),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,Y).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var ke;const i=r(this,h),c=this.options,o=r(this,C),n=r(this,L),g=r(this,G),f=e!==i?e.state:r(this,ee),{state:R}=e;let p={...R},q=!1,y;if(s._optimisticResults){const j=this.hasListeners(),B=!j&&Ue(e,s),$=j&&_e(e,i,s,c);(B||$)&&(p={...p,...it(R.data,e.options)}),s._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:I,errorUpdatedAt:v,status:x}=p;if(s.select&&p.data!==void 0)if(o&&p.data===(n==null?void 0:n.data)&&s.select===r(this,te))y=r(this,V);else try{l(this,te,s.select),y=s.select(p.data),y=Fe(o==null?void 0:o.data,y,s),l(this,V,y),l(this,D,null)}catch(j){l(this,D,j)}else y=p.data;if(s.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData))j=o.data;else if(j=typeof s.placeholderData=="function"?s.placeholderData((ke=r(this,K))==null?void 0:ke.state.data,r(this,K)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,D,null)}catch(B){l(this,D,B)}j!==void 0&&(x="success",y=Fe(o==null?void 0:o.data,j,s),q=!0)}r(this,D)&&(I=r(this,D),y=r(this,V),v=Date.now(),x="error");const O=p.fetchStatus==="fetching",z=x==="pending",ce=x==="error",Qe=z&&O,Ie=y!==void 0,k={status:x,fetchStatus:p.fetchStatus,isPending:z,isSuccess:x==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:y,dataUpdatedAt:p.dataUpdatedAt,error:I,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!z,isLoadingError:ce&&!Ie,isPaused:p.fetchStatus==="paused",isPlaceholderData:q,isRefetchError:ce&&Ie,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,F)};if(this.options.experimental_prefetchInRender){const j=ie=>{k.status==="error"?ie.reject(k.error):k.data!==void 0&&ie.resolve(k.data)},B=()=>{const ie=l(this,F,k.promise=Te());j(ie)},$=r(this,F);switch($.status){case"pending":e.queryHash===i.queryHash&&j($);break;case"fulfilled":(k.status==="error"||k.data!==$.value)&&B();break;case"rejected":(k.status!=="error"||k.error!==$.reason)&&B();break}}return k}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,L,r(this,h).state),l(this,G,this.options),r(this,L).data!==void 0&&l(this,K,r(this,h)),ue(i,s))return;l(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:n}=this.options,g=typeof n=="function"?n():n;if(g==="all"||!g&&!r(this,W).size)return!0;const b=new Set(g??r(this,W));return this.options.throwOnError&&b.add("error"),Object.keys(r(this,C)).some(f=>{const R=f;return r(this,C)[R]!==s[R]&&b.has(R)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,Be).call(this,{...c,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(this,d,ge).call(this)}},S=new WeakMap,h=new WeakMap,ee=new WeakMap,C=new WeakMap,L=new WeakMap,G=new WeakMap,F=new WeakMap,D=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,P=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,d=new WeakSet,Y=function(e){u(this,d,ye).call(this);let s=r(this,h).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(tt)),s},fe=function(){u(this,d,be).call(this);const e=ne(this.options.staleTime,r(this,h));if(de||r(this,C).isStale||!Me(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,P,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,h)):this.options.refetchInterval)??!1},me=function(e){u(this,d,xe).call(this),l(this,U,e),!(de||T(this.options.enabled,r(this,h))===!1||!Me(r(this,U))||r(this,U)===0)&&l(this,H,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,Y).call(this)},r(this,U)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},be=function(){r(this,P)&&(clearTimeout(r(this,P)),l(this,P,void 0))},xe=function(){r(this,H)&&(clearInterval(r(this,H)),l(this,H,void 0))},ye=function(){const e=r(this,S).getQueryCache().build(r(this,S),this.options);if(e===r(this,h))return;const s=r(this,h);l(this,h,e),l(this,ee,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Z.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,S).getQueryCache().notify({query:r(this,h),type:"observerResultsUpdated"})})},Pe);function ft(t,e){return T(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ue(t,e){return ft(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(T(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function _e(t,e,s,i){return(t!==e||T(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return T(e.enabled,t)!==!1&&t.isStaleByTime(ne(e.staleTime,t))}function pt(t,e){return!ue(t.getCurrentResult(),e)}function Le(t,e){return t.filter(s=>!e.includes(s))}function mt(t,e,s){const i=t.slice(0);return i[e]=s,i}var J,N,A,X,Q,_,se,re,w,we,Re,ae,Oe,je,He,gt=(He=class extends Ae{constructor(e,s,i){super();m(this,w);m(this,J);m(this,N);m(this,A);m(this,X);m(this,Q);m(this,_);m(this,se);m(this,re);l(this,J,e),l(this,X,i),l(this,A,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,w,Oe).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,r(this,Q).forEach(e=>{e.destroy()})}setQueries(e,s,i){l(this,A,e),l(this,X,s),Z.batch(()=>{const c=r(this,Q),o=u(this,w,ae).call(this,r(this,A));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const n=o.map(f=>f.observer),g=n.map(f=>f.getCurrentResult()),b=n.some((f,R)=>f!==c[R]);c.length===n.length&&!b||(l(this,Q,n),l(this,N,g),this.hasListeners()&&(Le(c,n).forEach(f=>{f.destroy()}),Le(n,c).forEach(f=>{f.subscribe(R=>{u(this,w,Oe).call(this,f,R)})}),u(this,w,je).call(this)))})}getCurrentResult(){return r(this,N)}getQueries(){return r(this,Q).map(e=>e.getCurrentQuery())}getObservers(){return r(this,Q)}getOptimisticResult(e,s){const c=u(this,w,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,w,Re).call(this,o??c,s),()=>u(this,w,we).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,A=new WeakMap,X=new WeakMap,Q=new WeakMap,_=new WeakMap,se=new WeakMap,re=new WeakMap,w=new WeakSet,we=function(e,s){const i=u(this,w,ae).call(this,s);return i.map((c,o)=>{const n=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?n:c.observer.trackResult(n,g=>{i.forEach(b=>{b.observer.trackProp(g)})})})},Re=function(e,s){return s?((!r(this,_)||r(this,N)!==r(this,re)||s!==r(this,se))&&(l(this,se,s),l(this,re,r(this,N)),l(this,_,nt(r(this,_),s(e)))),r(this,_)):e},ae=function(e){const s=new Map(r(this,Q).map(c=>[c.options.queryHash,c])),i=[];return e.forEach(c=>{const o=r(this,J).defaultQueryOptions(c),n=s.get(o.queryHash);n?i.push({defaultedQueryOptions:o,observer:n}):i.push({defaultedQueryOptions:o,observer:new Ee(r(this,J),o)})}),i},Oe=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(l(this,N,mt(r(this,N),i,s)),u(this,w,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,_),i=u(this,w,Re).call(this,u(this,w,we).call(this,r(this,N),r(this,A)),(e=r(this,X))==null?void 0:e.combine);s!==i&&Z.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),$e=E.createContext(!1),Ge=()=>E.useContext($e);$e.Provider;function bt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xt=E.createContext(bt()),Ve=()=>E.useContext(xt);function yt(t,e){return typeof t=="function"?t(...e):!!t}function Ce(){}var Ke=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},We=t=>{E.useEffect(()=>{t.clearReset()},[t])},Je=({result:t,errorResetBoundary:e,throwOnError:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&yt(s,[t.error,i]),Xe=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...s)=>Math.max(e(...s),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Se=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,oe=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function vt({queries:t,...e},s){const i=qe(),c=Ge(),o=Ve(),n=E.useMemo(()=>t.map(v=>{const x=i.defaultQueryOptions(v);return x._optimisticResults=c?"isRestoring":"optimistic",x}),[t,i,c]);n.forEach(v=>{Xe(v),Ke(v,o)}),We(o);const[g]=E.useState(()=>new gt(i,n,e)),[b,f,R]=g.getOptimisticResult(n,e.combine),p=!c&&e.subscribed!==!1;E.useSyncExternalStore(E.useCallback(v=>p?g.subscribe(Z.batchCalls(v)):Ce,[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),E.useEffect(()=>{g.setQueries(n,e,{listeners:!1})},[n,e,g]);const y=b.some((v,x)=>Se(n[x],v))?b.flatMap((v,x)=>{const O=n[x];if(O){const z=new Ee(i,O);if(Se(O,v))return oe(O,z,o);Ye(v,c)&&oe(O,z,o)}return[]}):[];if(y.length>0)throw Promise.all(y);const I=b.find((v,x)=>{const O=n[x];return O&&Je({result:v,errorResetBoundary:o,throwOnError:O.throwOnError,query:i.getQueryCache().get(O.queryHash)})});if(I!=null&&I.error)throw I.error;return f(R())}function wt(t,e,s){var p,q,y,I,v;const i=qe(),c=Ge(),o=Ve(),n=i.defaultQueryOptions(t);(q=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||q.call(p,n),n._optimisticResults=c?"isRestoring":"optimistic",Xe(n),Ke(n,o),We(o);const g=!i.getQueryCache().get(n.queryHash),[b]=E.useState(()=>new e(i,n)),f=b.getOptimisticResult(n),R=!c&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(x=>{const O=R?b.subscribe(Z.batchCalls(x)):Ce;return b.updateResult(),O},[b,R]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),E.useEffect(()=>{b.setOptions(n,{listeners:!1})},[n,b]),Se(n,f))throw oe(n,b,o);if(Je({result:f,errorResetBoundary:o,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash)}))throw f.error;if((I=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||I.call(y,n,f),n.experimental_prefetchInRender&&!de&&Ye(f,c)){const x=g?oe(n,b,o):(v=i.getQueryCache().get(n.queryHash))==null?void 0:v.promise;x==null||x.catch(Ce).finally(()=>{b.updateResult()})}return n.notifyOnChangeProps?f:b.trackResult(f)}function Rt(t,e){return wt(t,Ee)}/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ot=ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jt=ze("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function Ct({user:t,role:e,description:s}){return a.jsxs(M.div,{whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},className:"bg-gradient-to-r from-white to-blue-50 shadow-lg rounded-lg p-6 border border-gray-200 flex flex-col justify-between",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full border-2 border-cornflower-blue"}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-gray-900 text-lg",children:t.name||t.login}),a.jsx("p",{className:"text-sm text-cornflower-blue font-medium",children:e}),t.location&&a.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[a.jsx(ht,{className:"h-4 w-4"}),a.jsx("span",{children:t.location})]})]})]}),a.jsx("p",{className:"mt-4 text-gray-600 flex-grow",children:s}),a.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(ut,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(at,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.public_repos," repos"]})]})]}),a.jsxs("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline transition-colors duration-200",children:[a.jsx(ot,{className:"h-4 w-4 mr-2"})," ","View GitHub Profile →"]})]})}function St({repo:t}){return a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{y:-5,scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors","aria-label":`Visit ${t.name} repository`,children:t.name})}),t.description&&a.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),a.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),a.jsx("span",{children:t.language})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(dt,{className:"h-5 w-5 text-yellow-500"}),a.jsx("span",{children:t.stargazers_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(jt,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:t.forks_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:ct(t.updated_at)})]})]})]})}const Ze="https://api.github.com";function Et(t){const e=localStorage.getItem(t);if(!e)return!0;const{timestamp:s}=JSON.parse(e);return Date.now()-s>36e5}async function et(t,e){if(!Et(e)){const o=localStorage.getItem(e);if(o)return console.log("Serving from cache"),JSON.parse(o).data}console.log("Fetching from GitHub API");const s=await fetch(t);if(!s.ok){const o=await s.json().catch(()=>({}));throw console.error(`GitHub API Error (${s.status}):`,o),new Error(`Failed to fetch data: ${s.statusText}`)}const i=await s.json(),c={data:i,timestamp:Date.now()};return localStorage.setItem(e,JSON.stringify(c)),i}async function Nt(t){const e=`github-user-${t}`,s=`${Ze}/users/${t}`;return et(s,e)}async function Qt(t){const e=`github-org-repos-${t}`,s=`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`;return et(s,e)}const he=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Oversees the development and maintenance of the Snigdha OS core system, ensuring a robust and scalable architecture."},{username:"d3v1l0n",role:"Co-Maintainer & Tools Developer",description:"Specializes in integrating security tools and maintaining critical packages for enhanced system functionality."},{username:"XlebyllleK",role:"Key Developer",description:"Plays a pivotal role in core development, focusing on innovative solutions and system optimizations to enhance functionality."},{username:"iconized",role:"Co-Maintainer & Server Designer",description:"Focuses on designing and optimizing server infrastructures for seamless tool integration and performance."},{username:"alokified",role:"Web Infrastructure Developer",description:"Develops and maintains the web infrastructure, ensuring efficient and secure online operations."},{username:"utkrshift",role:"UI/UX Designer for DM/WM",description:"Leads the design and customization of desktop and window manager interfaces to enhance user experience."}];function _t(){const t=vt({queries:he.map(n=>({queryKey:["github-user",n.username],queryFn:()=>Nt(n.username)}))}),{data:e,isLoading:s,error:i}=Rt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Qt("Snigdha-OS")}),c=t.some(n=>n.isLoading)||s,o=t.some(n=>n.isError)||i;return c?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx(lt,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("p",{className:"text-red-500 text-lg font-semibold",children:"Oops! Something went wrong. Please try again later."})}):a.jsx("div",{className:"py-16 bg-gradient-to-b from-gray-50 to-gray-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Meet Our Team"}),a.jsxs("p",{className:"mt-4 text-lg md:text-xl text-gray-600",children:["The talented developers behind ",a.jsx("span",{className:"text-cornflower-blue font-semibold",children:"Snigdha OS"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-10",children:t.map((n,g)=>n.data&&a.jsx(M.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:g*.2},className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(Ct,{user:n.data,role:he[g].role,description:he[g].description})},n.data.login))}),a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:e==null?void 0:e.map(n=>a.jsx(M.div,{className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(St,{repo:n})},n.id))})]})]})})}export{_t as default}; diff --git a/Donate.js b/Donate.js new file mode 100644 index 00000000..8433c54d --- /dev/null +++ b/Donate.js @@ -0,0 +1 @@ +import{j as e,G as f,H as u,r as l}from"./script.js";import{m as a}from"./proxy.js";import{C as y}from"./check.js";import{U as j}from"./users.js";import{S as N}from"./star.js";function w(){return e.jsxs(a.a,{href:"https://github.com/sponsors/eshanized",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},whileTap:{scale:.95},className:"inline-flex items-center gap-3 px-6 py-3 bg-[#2ea44f] text-white rounded-lg shadow-md hover:bg-[#2c974b] transition-all duration-300 ease-out",children:[e.jsx(f,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function h(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const v=.012,S=[{name:"Community Hero",amount:999,description:"Support the ongoing development of Snigdha OS",benefits:["Special recognition on our GitHub repository","Access to sponsor-only updates","Vote on feature priorities"]},{name:"Security Champion",amount:2999,description:"Help shape the future of security testing",benefits:["All Community Hero benefits","Early access to new features","Priority support on GitHub","Exclusive security tips newsletter"],featured:!0},{name:"Enterprise Partner",amount:5999,description:"Perfect for organizations using Snigdha OS",benefits:["All Security Champion benefits","Custom support channel","Training materials access","Team collaboration features","Priority feature requests"]}],m=s=>(s*v).toFixed(2);function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:S.map(s=>e.jsxs(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:`relative rounded-2xl ${s.featured?"bg-gradient-to-b from-cornflower-blue/10 to-cornflower-blue/5 border-2 border-cornflower-blue":"bg-white/80 border border-gray-200"} backdrop-blur-sm p-6 shadow-lg hover:shadow-xl transition-shadow duration-300 transform hover:scale-105`,children:[s.featured&&e.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:e.jsx("span",{className:"px-4 py-1 bg-cornflower-blue text-white text-sm rounded-full",children:"Most Popular"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:s.name}),e.jsxs("div",{className:"mt-2",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:h(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",m(s.amount)]}),e.jsx("span",{className:"text-gray-600",children:" / USD"})]}),e.jsx("p",{className:"mt-2 text-gray-600",children:s.description})]}),e.jsx("ul",{className:"space-y-3 mb-6",children:s.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(y,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:r})]},r))}),e.jsx(a.a,{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${m(s.amount)}`,target:"_blank",rel:"noopener noreferrer",className:`block w-full text-center py-2 px-4 rounded-lg transition-colors ${s.featured?"bg-cornflower-blue text-white hover:bg-blue-600":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:"Make a One-Time Donation"})]},s.name))})}const H=[{label:"Total Sponsors",value:"6+",icon:j,color:"text-blue-500"},{label:"Total Support",value:h(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:N,color:"text-yellow-500"}];function I(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:H.map((s,r)=>e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-white shadow-lg rounded-xl p-6 border border-gray-200 hover:shadow-xl transition-shadow duration-300",children:[e.jsxs("div",{className:"flex items-center mb-4",children:[e.jsx(s.icon,{className:`h-10 w-10 ${s.color} mr-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:s.label})]},s.label))})}const T=[{username:"TIAsCode",description:"Enterprise Partner & Server Provider",amount:"₹82,025.36"},{username:"ixintl",description:"Strategic Development Partner",amount:"₹54,399.36"},{username:"SkullSync",description:"Strategic Development Partner",amount:"₹12,181.36"}],k=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function x(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function _(){const[s,r]=l.useState([]),[c,p]=l.useState([]),[g,d]=l.useState(!0);return l.useEffect(()=>{(async()=>{d(!0);const o=await Promise.all(T.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));r(o);const b=await Promise.all(k.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));p(b),d(!1)})()},[]),g?e.jsx("div",{className:"text-center text-gray-600",children:"Loading..."}):e.jsxs("div",{className:"space-y-16",children:[e.jsxs("div",{className:"bg-gradient-to-r from-cornflower-blue/5 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Key Sponsors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-cornflower-blue/20 shadow-lg hover:shadow-2xl transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-cornflower-blue/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:t.description}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-100/10 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Individual Donors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-indigo-200/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:"Generous Individual Donor"}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]})]})}function G(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 via-white to-gray-100 py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[e.jsx(a.div,{initial:{scale:.8},animate:{scale:1},transition:{duration:.6,bounce:.4},children:e.jsx(u,{className:"h-16 w-16 text-red-500 mx-auto mb-4"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Your support helps us maintain and improve Snigdha OS, keeping it free and open source for the security community."}),e.jsx(a.div,{className:"mt-8",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(w,{})})]}),e.jsxs("div",{className:"space-y-20",children:[e.jsxs("section",{className:"relative",children:[e.jsx("div",{className:"absolute -top-10 -left-10 w-32 h-32 bg-cornflower-blue/10 rounded-full blur-3xl"}),e.jsx(_,{})]}),e.jsx("section",{children:e.jsx(I,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-12",children:"Choose Your Sponsorship Tier"}),e.jsx(D,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-gray-100 rounded-2xl p-10 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:"Your sponsorship directly supports the development of cutting-edge security tools, maintenance of our infrastructure, and helps us keep Snigdha OS at the forefront of security testing. Join our community of sponsors and help shape the future of security testing."})]})]})]})})}export{G as default}; diff --git a/chunk-Download-DiiorW4v.js b/Download.js similarity index 98% rename from chunk-Download-DiiorW4v.js rename to Download.js index 3a73832b..6cb80a78 100644 --- a/chunk-Download-DiiorW4v.js +++ b/Download.js @@ -1,4 +1,4 @@ -import{c as j,j as e,D as u,r as l,f as y,b as N}from"./script.js";import{m as d}from"./chunk-proxy-CI-F7568.js";import{C as v}from"./chunk-check-lgLCXsY5.js";import{S}from"./chunk-shield-D5uwo1pE.js";import{G as k,W as f}from"./chunk-wifi-BISiL0Vq.js";import{M}from"./chunk-map-pin-DTSv2Ukr.js";/** +import{c as j,j as e,D as u,r as l,f as y,b as N}from"./script.js";import{m as d}from"./proxy.js";import{C as v}from"./check.js";import{S}from"./shield.js";import{G as k,W as f}from"./wifi.js";import{M}from"./map-pin.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-Features-DhWphOif.js b/Features.js similarity index 98% rename from chunk-Features-DhWphOif.js rename to Features.js index 350cd411..0e97db5f 100644 --- a/chunk-Features-DhWphOif.js +++ b/Features.js @@ -1,4 +1,4 @@ -import{c as m,j as e,r}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";import{T as p}from"./chunk-terminal-DyNnEeID.js";/** +import{c as m,j as e,r}from"./script.js";import{m as s}from"./proxy.js";import{T as p}from"./terminal.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-Gallery-Bg3-dk_D.js b/Gallery.js similarity index 99% rename from chunk-Gallery-Bg3-dk_D.js rename to Gallery.js index 2dca99cf..b752d74b 100644 --- a/chunk-Gallery-Bg3-dk_D.js +++ b/Gallery.js @@ -1,4 +1,4 @@ -import{c as m,j as a,r,X as d}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";/** +import{c as m,j as a,r,X as d}from"./script.js";import{m as s}from"./proxy.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-Home-C_ighU1S.js b/Home.js similarity index 98% rename from chunk-Home-C_ighU1S.js rename to Home.js index 530edfc1..f8453cfc 100644 --- a/chunk-Home-C_ighU1S.js +++ b/Home.js @@ -1,4 +1,4 @@ -import{c as o,j as e,L as m,D as z,a as V,r as d}from"./script.js";import{m as a}from"./chunk-proxy-CI-F7568.js";import{U as y}from"./chunk-users-R8cL96Sh.js";import{S as f}from"./chunk-star-DZY-YPMg.js";import{G as I,W as H}from"./chunk-wifi-BISiL0Vq.js";import{S as v}from"./chunk-shield-D5uwo1pE.js";import{T as j}from"./chunk-terminal-DyNnEeID.js";/** +import{c as o,j as e,L as m,D as z,a as V,r as d}from"./script.js";import{m as a}from"./proxy.js";import{U as y}from"./users.js";import{S as f}from"./star.js";import{G as I,W as H}from"./wifi.js";import{S as v}from"./shield.js";import{T as j}from"./terminal.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-check-lgLCXsY5.js b/check.js similarity index 100% rename from chunk-check-lgLCXsY5.js rename to check.js diff --git a/chunk-Developers-BvHvri-J.js b/chunk-Developers-BvHvri-J.js deleted file mode 100644 index d30cb5d9..00000000 --- a/chunk-Developers-BvHvri-J.js +++ /dev/null @@ -1,11 +0,0 @@ -var De=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||De("Cannot "+s);var r=(t,e,s)=>(le(t,e,"read from private field"),s?s.call(t):e.get(t)),m=(t,e,s)=>e.has(t)?De("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),l=(t,e,s,i)=>(le(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(le(t,e,"access private method"),s);import{S as Ae,p as Te,d as T,s as ue,e as ne,n as tt,i as de,g as Me,t as st,h as rt,k as it,l as Fe,m as Z,o as nt,r as E,u as qe,c as ze,j as a,B as at,G as ot,q as ct,b as lt}from"./script.js";import{m as M}from"./chunk-proxy-CI-F7568.js";import{M as ht}from"./chunk-map-pin-DTSv2Ukr.js";import{U as ut}from"./chunk-users-R8cL96Sh.js";import{S as dt}from"./chunk-star-DZY-YPMg.js";var S,h,ee,C,L,G,F,D,te,V,K,P,H,U,W,d,Y,fe,pe,me,ge,be,xe,ye,Be,Pe,Ee=(Pe=class extends Ae{constructor(e,s){super();m(this,d);m(this,S);m(this,h);m(this,ee);m(this,C);m(this,L);m(this,G);m(this,F);m(this,D);m(this,te);m(this,V);m(this,K);m(this,P);m(this,H);m(this,U);m(this,W,new Set);this.options=s,l(this,S,e),l(this,D,null),l(this,F,Te()),this.options.experimental_prefetchInRender||r(this,F).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,h).addObserver(this),Ue(r(this,h),this.options)?u(this,d,Y).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,h),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,h),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,be).call(this),u(this,d,xe).call(this),r(this,h).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,h);if(this.options=r(this,S).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof T(this.options.enabled,r(this,h))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,ye).call(this),r(this,h).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,S).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,h),observer:this});const o=this.hasListeners();o&&_e(r(this,h),c,this.options,i)&&u(this,d,Y).call(this),this.updateResult(s),o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||ne(this.options.staleTime,r(this,h))!==ne(i.staleTime,r(this,h)))&&u(this,d,fe).call(this);const n=u(this,d,pe).call(this);o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||n!==r(this,U))&&u(this,d,me).call(this,n)}getOptimisticResult(e){const s=r(this,S).getQueryCache().build(r(this,S),e),i=this.createResult(s,e);return pt(this,i)&&(l(this,C,i),l(this,G,this.options),l(this,L,r(this,h).state)),i}getCurrentResult(){return r(this,C)}trackResult(e,s){const i={};return Object.keys(e).forEach(c=>{Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),e[c])})}),i}trackProp(e){r(this,W).add(e)}getCurrentQuery(){return r(this,h)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,S).defaultQueryOptions(e),i=r(this,S).getQueryCache().build(r(this,S),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,Y).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var ke;const i=r(this,h),c=this.options,o=r(this,C),n=r(this,L),g=r(this,G),f=e!==i?e.state:r(this,ee),{state:R}=e;let p={...R},q=!1,y;if(s._optimisticResults){const j=this.hasListeners(),B=!j&&Ue(e,s),$=j&&_e(e,i,s,c);(B||$)&&(p={...p,...it(R.data,e.options)}),s._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:I,errorUpdatedAt:v,status:x}=p;if(s.select&&p.data!==void 0)if(o&&p.data===(n==null?void 0:n.data)&&s.select===r(this,te))y=r(this,V);else try{l(this,te,s.select),y=s.select(p.data),y=Fe(o==null?void 0:o.data,y,s),l(this,V,y),l(this,D,null)}catch(j){l(this,D,j)}else y=p.data;if(s.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData))j=o.data;else if(j=typeof s.placeholderData=="function"?s.placeholderData((ke=r(this,K))==null?void 0:ke.state.data,r(this,K)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,D,null)}catch(B){l(this,D,B)}j!==void 0&&(x="success",y=Fe(o==null?void 0:o.data,j,s),q=!0)}r(this,D)&&(I=r(this,D),y=r(this,V),v=Date.now(),x="error");const O=p.fetchStatus==="fetching",z=x==="pending",ce=x==="error",Qe=z&&O,Ie=y!==void 0,k={status:x,fetchStatus:p.fetchStatus,isPending:z,isSuccess:x==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:y,dataUpdatedAt:p.dataUpdatedAt,error:I,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!z,isLoadingError:ce&&!Ie,isPaused:p.fetchStatus==="paused",isPlaceholderData:q,isRefetchError:ce&&Ie,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,F)};if(this.options.experimental_prefetchInRender){const j=ie=>{k.status==="error"?ie.reject(k.error):k.data!==void 0&&ie.resolve(k.data)},B=()=>{const ie=l(this,F,k.promise=Te());j(ie)},$=r(this,F);switch($.status){case"pending":e.queryHash===i.queryHash&&j($);break;case"fulfilled":(k.status==="error"||k.data!==$.value)&&B();break;case"rejected":(k.status!=="error"||k.error!==$.reason)&&B();break}}return k}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,L,r(this,h).state),l(this,G,this.options),r(this,L).data!==void 0&&l(this,K,r(this,h)),ue(i,s))return;l(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:n}=this.options,g=typeof n=="function"?n():n;if(g==="all"||!g&&!r(this,W).size)return!0;const b=new Set(g??r(this,W));return this.options.throwOnError&&b.add("error"),Object.keys(r(this,C)).some(f=>{const R=f;return r(this,C)[R]!==s[R]&&b.has(R)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,Be).call(this,{...c,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(this,d,ge).call(this)}},S=new WeakMap,h=new WeakMap,ee=new WeakMap,C=new WeakMap,L=new WeakMap,G=new WeakMap,F=new WeakMap,D=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,P=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,d=new WeakSet,Y=function(e){u(this,d,ye).call(this);let s=r(this,h).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(tt)),s},fe=function(){u(this,d,be).call(this);const e=ne(this.options.staleTime,r(this,h));if(de||r(this,C).isStale||!Me(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,P,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,h)):this.options.refetchInterval)??!1},me=function(e){u(this,d,xe).call(this),l(this,U,e),!(de||T(this.options.enabled,r(this,h))===!1||!Me(r(this,U))||r(this,U)===0)&&l(this,H,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,Y).call(this)},r(this,U)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},be=function(){r(this,P)&&(clearTimeout(r(this,P)),l(this,P,void 0))},xe=function(){r(this,H)&&(clearInterval(r(this,H)),l(this,H,void 0))},ye=function(){const e=r(this,S).getQueryCache().build(r(this,S),this.options);if(e===r(this,h))return;const s=r(this,h);l(this,h,e),l(this,ee,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Z.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,S).getQueryCache().notify({query:r(this,h),type:"observerResultsUpdated"})})},Pe);function ft(t,e){return T(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ue(t,e){return ft(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(T(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function _e(t,e,s,i){return(t!==e||T(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return T(e.enabled,t)!==!1&&t.isStaleByTime(ne(e.staleTime,t))}function pt(t,e){return!ue(t.getCurrentResult(),e)}function Le(t,e){return t.filter(s=>!e.includes(s))}function mt(t,e,s){const i=t.slice(0);return i[e]=s,i}var J,N,A,X,Q,_,se,re,w,we,Re,ae,Oe,je,He,gt=(He=class extends Ae{constructor(e,s,i){super();m(this,w);m(this,J);m(this,N);m(this,A);m(this,X);m(this,Q);m(this,_);m(this,se);m(this,re);l(this,J,e),l(this,X,i),l(this,A,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,w,Oe).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,r(this,Q).forEach(e=>{e.destroy()})}setQueries(e,s,i){l(this,A,e),l(this,X,s),Z.batch(()=>{const c=r(this,Q),o=u(this,w,ae).call(this,r(this,A));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const n=o.map(f=>f.observer),g=n.map(f=>f.getCurrentResult()),b=n.some((f,R)=>f!==c[R]);c.length===n.length&&!b||(l(this,Q,n),l(this,N,g),this.hasListeners()&&(Le(c,n).forEach(f=>{f.destroy()}),Le(n,c).forEach(f=>{f.subscribe(R=>{u(this,w,Oe).call(this,f,R)})}),u(this,w,je).call(this)))})}getCurrentResult(){return r(this,N)}getQueries(){return r(this,Q).map(e=>e.getCurrentQuery())}getObservers(){return r(this,Q)}getOptimisticResult(e,s){const c=u(this,w,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,w,Re).call(this,o??c,s),()=>u(this,w,we).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,A=new WeakMap,X=new WeakMap,Q=new WeakMap,_=new WeakMap,se=new WeakMap,re=new WeakMap,w=new WeakSet,we=function(e,s){const i=u(this,w,ae).call(this,s);return i.map((c,o)=>{const n=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?n:c.observer.trackResult(n,g=>{i.forEach(b=>{b.observer.trackProp(g)})})})},Re=function(e,s){return s?((!r(this,_)||r(this,N)!==r(this,re)||s!==r(this,se))&&(l(this,se,s),l(this,re,r(this,N)),l(this,_,nt(r(this,_),s(e)))),r(this,_)):e},ae=function(e){const s=new Map(r(this,Q).map(c=>[c.options.queryHash,c])),i=[];return e.forEach(c=>{const o=r(this,J).defaultQueryOptions(c),n=s.get(o.queryHash);n?i.push({defaultedQueryOptions:o,observer:n}):i.push({defaultedQueryOptions:o,observer:new Ee(r(this,J),o)})}),i},Oe=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(l(this,N,mt(r(this,N),i,s)),u(this,w,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,_),i=u(this,w,Re).call(this,u(this,w,we).call(this,r(this,N),r(this,A)),(e=r(this,X))==null?void 0:e.combine);s!==i&&Z.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),$e=E.createContext(!1),Ge=()=>E.useContext($e);$e.Provider;function bt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xt=E.createContext(bt()),Ve=()=>E.useContext(xt);function yt(t,e){return typeof t=="function"?t(...e):!!t}function Ce(){}var Ke=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},We=t=>{E.useEffect(()=>{t.clearReset()},[t])},Je=({result:t,errorResetBoundary:e,throwOnError:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&yt(s,[t.error,i]),Xe=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...s)=>Math.max(e(...s),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Se=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,oe=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function vt({queries:t,...e},s){const i=qe(),c=Ge(),o=Ve(),n=E.useMemo(()=>t.map(v=>{const x=i.defaultQueryOptions(v);return x._optimisticResults=c?"isRestoring":"optimistic",x}),[t,i,c]);n.forEach(v=>{Xe(v),Ke(v,o)}),We(o);const[g]=E.useState(()=>new gt(i,n,e)),[b,f,R]=g.getOptimisticResult(n,e.combine),p=!c&&e.subscribed!==!1;E.useSyncExternalStore(E.useCallback(v=>p?g.subscribe(Z.batchCalls(v)):Ce,[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),E.useEffect(()=>{g.setQueries(n,e,{listeners:!1})},[n,e,g]);const y=b.some((v,x)=>Se(n[x],v))?b.flatMap((v,x)=>{const O=n[x];if(O){const z=new Ee(i,O);if(Se(O,v))return oe(O,z,o);Ye(v,c)&&oe(O,z,o)}return[]}):[];if(y.length>0)throw Promise.all(y);const I=b.find((v,x)=>{const O=n[x];return O&&Je({result:v,errorResetBoundary:o,throwOnError:O.throwOnError,query:i.getQueryCache().get(O.queryHash)})});if(I!=null&&I.error)throw I.error;return f(R())}function wt(t,e,s){var p,q,y,I,v;const i=qe(),c=Ge(),o=Ve(),n=i.defaultQueryOptions(t);(q=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||q.call(p,n),n._optimisticResults=c?"isRestoring":"optimistic",Xe(n),Ke(n,o),We(o);const g=!i.getQueryCache().get(n.queryHash),[b]=E.useState(()=>new e(i,n)),f=b.getOptimisticResult(n),R=!c&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(x=>{const O=R?b.subscribe(Z.batchCalls(x)):Ce;return b.updateResult(),O},[b,R]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),E.useEffect(()=>{b.setOptions(n,{listeners:!1})},[n,b]),Se(n,f))throw oe(n,b,o);if(Je({result:f,errorResetBoundary:o,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash)}))throw f.error;if((I=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||I.call(y,n,f),n.experimental_prefetchInRender&&!de&&Ye(f,c)){const x=g?oe(n,b,o):(v=i.getQueryCache().get(n.queryHash))==null?void 0:v.promise;x==null||x.catch(Ce).finally(()=>{b.updateResult()})}return n.notifyOnChangeProps?f:b.trackResult(f)}function Rt(t,e){return wt(t,Ee)}/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ot=ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const jt=ze("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function Ct({user:t,role:e,description:s}){return a.jsxs(M.div,{whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},className:"bg-gradient-to-r from-white to-blue-50 shadow-lg rounded-lg p-6 border border-gray-200 flex flex-col justify-between",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full border-2 border-cornflower-blue"}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-gray-900 text-lg",children:t.name||t.login}),a.jsx("p",{className:"text-sm text-cornflower-blue font-medium",children:e}),t.location&&a.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[a.jsx(ht,{className:"h-4 w-4"}),a.jsx("span",{children:t.location})]})]})]}),a.jsx("p",{className:"mt-4 text-gray-600 flex-grow",children:s}),a.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(ut,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(at,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.public_repos," repos"]})]})]}),a.jsxs("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline transition-colors duration-200",children:[a.jsx(ot,{className:"h-4 w-4 mr-2"})," ","View GitHub Profile →"]})]})}function St({repo:t}){return a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{y:-5,scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors","aria-label":`Visit ${t.name} repository`,children:t.name})}),t.description&&a.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),a.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),a.jsx("span",{children:t.language})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(dt,{className:"h-5 w-5 text-yellow-500"}),a.jsx("span",{children:t.stargazers_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(jt,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:t.forks_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:ct(t.updated_at)})]})]})]})}const Ze="https://api.github.com";function Et(t){const e=localStorage.getItem(t);if(!e)return!0;const{timestamp:s}=JSON.parse(e);return Date.now()-s>36e5}async function et(t,e){if(!Et(e)){const o=localStorage.getItem(e);if(o)return console.log("Serving from cache"),JSON.parse(o).data}console.log("Fetching from GitHub API");const s=await fetch(t);if(!s.ok){const o=await s.json().catch(()=>({}));throw console.error(`GitHub API Error (${s.status}):`,o),new Error(`Failed to fetch data: ${s.statusText}`)}const i=await s.json(),c={data:i,timestamp:Date.now()};return localStorage.setItem(e,JSON.stringify(c)),i}async function Nt(t){const e=`github-user-${t}`,s=`${Ze}/users/${t}`;return et(s,e)}async function Qt(t){const e=`github-org-repos-${t}`,s=`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`;return et(s,e)}const he=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Oversees the development and maintenance of the Snigdha OS core system, ensuring a robust and scalable architecture."},{username:"d3v1l0n",role:"Co-Maintainer & Tools Developer",description:"Specializes in integrating security tools and maintaining critical packages for enhanced system functionality."},{username:"XlebyllleK",role:"Key Developer",description:"Plays a pivotal role in core development, focusing on innovative solutions and system optimizations to enhance functionality."},{username:"iconized",role:"Co-Maintainer & Server Designer",description:"Focuses on designing and optimizing server infrastructures for seamless tool integration and performance."},{username:"alokified",role:"Web Infrastructure Developer",description:"Develops and maintains the web infrastructure, ensuring efficient and secure online operations."},{username:"utkrshift",role:"UI/UX Designer for DM/WM",description:"Leads the design and customization of desktop and window manager interfaces to enhance user experience."}];function _t(){const t=vt({queries:he.map(n=>({queryKey:["github-user",n.username],queryFn:()=>Nt(n.username)}))}),{data:e,isLoading:s,error:i}=Rt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Qt("Snigdha-OS")}),c=t.some(n=>n.isLoading)||s,o=t.some(n=>n.isError)||i;return c?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx(lt,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("p",{className:"text-red-500 text-lg font-semibold",children:"Oops! Something went wrong. Please try again later."})}):a.jsx("div",{className:"py-16 bg-gradient-to-b from-gray-50 to-gray-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Meet Our Team"}),a.jsxs("p",{className:"mt-4 text-lg md:text-xl text-gray-600",children:["The talented developers behind ",a.jsx("span",{className:"text-cornflower-blue font-semibold",children:"Snigdha OS"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-10",children:t.map((n,g)=>n.data&&a.jsx(M.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:g*.2},className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(Ct,{user:n.data,role:he[g].role,description:he[g].description})},n.data.login))}),a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:e==null?void 0:e.map(n=>a.jsx(M.div,{className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(St,{repo:n})},n.id))})]})]})})}export{_t as default}; diff --git a/chunk-Donate-5XXAWH-L.js b/chunk-Donate-5XXAWH-L.js deleted file mode 100644 index 345820af..00000000 --- a/chunk-Donate-5XXAWH-L.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,G as f,H as u,r as l}from"./script.js";import{m as a}from"./chunk-proxy-CI-F7568.js";import{C as y}from"./chunk-check-lgLCXsY5.js";import{U as j}from"./chunk-users-R8cL96Sh.js";import{S as N}from"./chunk-star-DZY-YPMg.js";function w(){return e.jsxs(a.a,{href:"https://github.com/sponsors/eshanized",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},whileTap:{scale:.95},className:"inline-flex items-center gap-3 px-6 py-3 bg-[#2ea44f] text-white rounded-lg shadow-md hover:bg-[#2c974b] transition-all duration-300 ease-out",children:[e.jsx(f,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function h(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const v=.012,S=[{name:"Community Hero",amount:999,description:"Support the ongoing development of Snigdha OS",benefits:["Special recognition on our GitHub repository","Access to sponsor-only updates","Vote on feature priorities"]},{name:"Security Champion",amount:2999,description:"Help shape the future of security testing",benefits:["All Community Hero benefits","Early access to new features","Priority support on GitHub","Exclusive security tips newsletter"],featured:!0},{name:"Enterprise Partner",amount:5999,description:"Perfect for organizations using Snigdha OS",benefits:["All Security Champion benefits","Custom support channel","Training materials access","Team collaboration features","Priority feature requests"]}],m=s=>(s*v).toFixed(2);function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:S.map(s=>e.jsxs(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:`relative rounded-2xl ${s.featured?"bg-gradient-to-b from-cornflower-blue/10 to-cornflower-blue/5 border-2 border-cornflower-blue":"bg-white/80 border border-gray-200"} backdrop-blur-sm p-6 shadow-lg hover:shadow-xl transition-shadow duration-300 transform hover:scale-105`,children:[s.featured&&e.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:e.jsx("span",{className:"px-4 py-1 bg-cornflower-blue text-white text-sm rounded-full",children:"Most Popular"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:s.name}),e.jsxs("div",{className:"mt-2",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:h(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",m(s.amount)]}),e.jsx("span",{className:"text-gray-600",children:" / USD"})]}),e.jsx("p",{className:"mt-2 text-gray-600",children:s.description})]}),e.jsx("ul",{className:"space-y-3 mb-6",children:s.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(y,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:r})]},r))}),e.jsx(a.a,{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${m(s.amount)}`,target:"_blank",rel:"noopener noreferrer",className:`block w-full text-center py-2 px-4 rounded-lg transition-colors ${s.featured?"bg-cornflower-blue text-white hover:bg-blue-600":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:"Make a One-Time Donation"})]},s.name))})}const H=[{label:"Total Sponsors",value:"6+",icon:j,color:"text-blue-500"},{label:"Total Support",value:h(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:N,color:"text-yellow-500"}];function I(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:H.map((s,r)=>e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-white shadow-lg rounded-xl p-6 border border-gray-200 hover:shadow-xl transition-shadow duration-300",children:[e.jsxs("div",{className:"flex items-center mb-4",children:[e.jsx(s.icon,{className:`h-10 w-10 ${s.color} mr-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:s.label})]},s.label))})}const T=[{username:"TIAsCode",description:"Enterprise Partner & Server Provider",amount:"₹82,025.36"},{username:"ixintl",description:"Strategic Development Partner",amount:"₹54,399.36"},{username:"SkullSync",description:"Strategic Development Partner",amount:"₹12,181.36"}],k=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function x(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function _(){const[s,r]=l.useState([]),[c,p]=l.useState([]),[g,d]=l.useState(!0);return l.useEffect(()=>{(async()=>{d(!0);const o=await Promise.all(T.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));r(o);const b=await Promise.all(k.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));p(b),d(!1)})()},[]),g?e.jsx("div",{className:"text-center text-gray-600",children:"Loading..."}):e.jsxs("div",{className:"space-y-16",children:[e.jsxs("div",{className:"bg-gradient-to-r from-cornflower-blue/5 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Key Sponsors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-cornflower-blue/20 shadow-lg hover:shadow-2xl transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-cornflower-blue/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:t.description}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-100/10 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Individual Donors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-indigo-200/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:"Generous Individual Donor"}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]})]})}function G(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 via-white to-gray-100 py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[e.jsx(a.div,{initial:{scale:.8},animate:{scale:1},transition:{duration:.6,bounce:.4},children:e.jsx(u,{className:"h-16 w-16 text-red-500 mx-auto mb-4"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Your support helps us maintain and improve Snigdha OS, keeping it free and open source for the security community."}),e.jsx(a.div,{className:"mt-8",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(w,{})})]}),e.jsxs("div",{className:"space-y-20",children:[e.jsxs("section",{className:"relative",children:[e.jsx("div",{className:"absolute -top-10 -left-10 w-32 h-32 bg-cornflower-blue/10 rounded-full blur-3xl"}),e.jsx(_,{})]}),e.jsx("section",{children:e.jsx(I,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-12",children:"Choose Your Sponsorship Tier"}),e.jsx(D,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-gray-100 rounded-2xl p-10 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:"Your sponsorship directly supports the development of cutting-edge security tools, maintenance of our infrastructure, and helps us keep Snigdha OS at the forefront of security testing. Join our community of sponsors and help shape the future of security testing."})]})]})]})})}export{G as default}; diff --git a/index.html b/index.html index 4e940fb9..616d3d74 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,8 @@ + +