diff --git a/docs/assets/index-BgJcEMba.js b/docs/assets/index-BgJcEMba.js new file mode 100644 index 0000000..4827a3e --- /dev/null +++ b/docs/assets/index-BgJcEMba.js @@ -0,0 +1,57 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();function r1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var So={exports:{}},ll={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Um;function o1(){if(Um)return ll;Um=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(r,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var g in c)g!=="key"&&(d[g]=c[g])}else d=c;return c=d.ref,{$$typeof:a,type:r,key:h,ref:c!==void 0?c:null,props:d}}return ll.Fragment=l,ll.jsx=u,ll.jsxs=u,ll}var Bm;function c1(){return Bm||(Bm=1,So.exports=o1()),So.exports}var O=c1(),xo={exports:{}},it={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lm;function f1(){if(Lm)return it;Lm=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),T=Symbol.iterator;function A(S){return S===null||typeof S!="object"?null:(S=T&&S[T]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,X={};function q(S,_,Z){this.props=S,this.context=_,this.refs=X,this.updater=Z||N}q.prototype.isReactComponent={},q.prototype.setState=function(S,_){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,_,"setState")},q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Y(){}Y.prototype=q.prototype;function P(S,_,Z){this.props=S,this.context=_,this.refs=X,this.updater=Z||N}var H=P.prototype=new Y;H.constructor=P,U(H,q.prototype),H.isPureReactComponent=!0;var nt=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},lt=Object.prototype.hasOwnProperty;function ht(S,_,Z,G,F,dt){return Z=dt.ref,{$$typeof:a,type:S,key:_,ref:Z!==void 0?Z:null,props:dt}}function $(S,_){return ht(S.type,_,void 0,void 0,void 0,S.props)}function At(S){return typeof S=="object"&&S!==null&&S.$$typeof===a}function Lt(S){var _={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return _[Z]})}var Wt=/\/+/g;function Ht(S,_){return typeof S=="object"&&S!==null&&S.key!=null?Lt(""+S.key):_.toString(36)}function Ke(){}function Be(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Ke,Ke):(S.status="pending",S.then(function(_){S.status==="pending"&&(S.status="fulfilled",S.value=_)},function(_){S.status==="pending"&&(S.status="rejected",S.reason=_)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function Yt(S,_,Z,G,F){var dt=typeof S;(dt==="undefined"||dt==="boolean")&&(S=null);var at=!1;if(S===null)at=!0;else switch(dt){case"bigint":case"string":case"number":at=!0;break;case"object":switch(S.$$typeof){case a:case l:at=!0;break;case v:return at=S._init,Yt(at(S._payload),_,Z,G,F)}}if(at)return F=F(S),at=G===""?"."+Ht(S,0):G,nt(F)?(Z="",at!=null&&(Z=at.replace(Wt,"$&/")+"/"),Yt(F,_,Z,"",function(fn){return fn})):F!=null&&(At(F)&&(F=$(F,Z+(F.key==null||S&&S.key===F.key?"":(""+F.key).replace(Wt,"$&/")+"/")+at)),_.push(F)),1;at=0;var ce=G===""?".":G+":";if(nt(S))for(var Et=0;Et>>1,S=V[ct];if(0>>1;ct<_;){var Z=2*(ct+1)-1,G=V[Z],F=Z+1,dt=V[F];if(0>c(G,k))Fc(dt,G)?(V[ct]=dt,V[F]=k,ct=F):(V[ct]=G,V[Z]=k,ct=Z);else if(Fc(dt,k))V[ct]=dt,V[F]=k,ct=F;else break t}}return B}function c(V,B){var k=V.sortIndex-B.sortIndex;return k!==0?k:V.id-B.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();a.unstable_now=function(){return h.now()-g}}var y=[],p=[],v=1,T=null,A=3,N=!1,U=!1,X=!1,q=!1,Y=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function nt(V){for(var B=u(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=V)r(p),B.sortIndex=B.expirationTime,l(y,B);else break;B=u(p)}}function L(V){if(X=!1,nt(V),!U)if(u(y)!==null)U=!0,lt||(lt=!0,Ht());else{var B=u(p);B!==null&&Yt(L,B.startTime-V)}}var lt=!1,ht=-1,$=5,At=-1;function Lt(){return q?!0:!(a.unstable_now()-At<$)}function Wt(){if(q=!1,lt){var V=a.unstable_now();At=V;var B=!0;try{t:{U=!1,X&&(X=!1,P(ht),ht=-1),N=!0;var k=A;try{e:{for(nt(V),T=u(y);T!==null&&!(T.expirationTime>V&&Lt());){var ct=T.callback;if(typeof ct=="function"){T.callback=null,A=T.priorityLevel;var S=ct(T.expirationTime<=V);if(V=a.unstable_now(),typeof S=="function"){T.callback=S,nt(V),B=!0;break e}T===u(y)&&r(y),nt(V)}else r(y);T=u(y)}if(T!==null)B=!0;else{var _=u(p);_!==null&&Yt(L,_.startTime-V),B=!1}}break t}finally{T=null,A=k,N=!1}B=void 0}}finally{B?Ht():lt=!1}}}var Ht;if(typeof H=="function")Ht=function(){H(Wt)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Be=Ke.port2;Ke.port1.onmessage=Wt,Ht=function(){Be.postMessage(null)}}else Ht=function(){Y(Wt,0)};function Yt(V,B){ht=Y(function(){V(a.unstable_now())},B)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(V){V.callback=null},a.unstable_forceFrameRate=function(V){0>V||125ct?(V.sortIndex=k,l(p,V),u(y)===null&&V===u(p)&&(X?(P(ht),ht=-1):X=!0,Yt(L,k-ct))):(V.sortIndex=S,l(y,V),U||N||(U=!0,lt||(lt=!0,Ht()))),V},a.unstable_shouldYield=Lt,a.unstable_wrapCallback=function(V){var B=A;return function(){var k=A;A=B;try{return V.apply(this,arguments)}finally{A=k}}}})(Eo)),Eo}var qm;function d1(){return qm||(qm=1,Ao.exports=h1()),Ao.exports}var Mo={exports:{}},te={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gm;function m1(){if(Gm)return te;Gm=1;var a=rc();function l(y){var p="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Mo.exports=m1(),Mo.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zm;function y1(){if(Zm)return sl;Zm=1;var a=d1(),l=rc(),u=p1();function r(t){var e="https://react.dev/errors/"+t;if(1S||(t.current=ct[S],ct[S]=null,S--)}function G(t,e){S++,ct[S]=t.current,t.current=e}var F=_(null),dt=_(null),at=_(null),ce=_(null);function Et(t,e){switch(G(at,e),G(dt,t),G(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?cm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=cm(e),t=fm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Z(F),G(F,t)}function fn(){Z(F),Z(dt),Z(at)}function iu(t){t.memoizedState!==null&&G(ce,t);var e=F.current,n=fm(e,t.type);e!==n&&(G(dt,t),G(F,n))}function El(t){dt.current===t&&(Z(F),Z(dt)),ce.current===t&&(Z(ce),tl._currentValue=k)}var lu=Object.prototype.hasOwnProperty,su=a.unstable_scheduleCallback,uu=a.unstable_cancelCallback,Y0=a.unstable_shouldYield,q0=a.unstable_requestPaint,Le=a.unstable_now,G0=a.unstable_getCurrentPriorityLevel,Xc=a.unstable_ImmediatePriority,Zc=a.unstable_UserBlockingPriority,Ml=a.unstable_NormalPriority,X0=a.unstable_LowPriority,Qc=a.unstable_IdlePriority,Z0=a.log,Q0=a.unstable_setDisableYieldValue,ri=null,fe=null;function hn(t){if(typeof Z0=="function"&&Q0(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(ri,t)}catch{}}var he=Math.clz32?Math.clz32:P0,K0=Math.log,k0=Math.LN2;function P0(t){return t>>>=0,t===0?32:31-(K0(t)/k0|0)|0}var Dl=256,Ol=4194304;function Yn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Rl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,o=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var m=i&134217727;return m!==0?(i=m&~o,i!==0?s=Yn(i):(f&=m,f!==0?s=Yn(f):n||(n=m&~t,n!==0&&(s=Yn(n))))):(m=i&~o,m!==0?s=Yn(m):f!==0?s=Yn(f):n||(n=i&~t,n!==0&&(s=Yn(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function oi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function J0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kc(){var t=Dl;return Dl<<=1,(Dl&4194048)===0&&(Dl=256),t}function kc(){var t=Ol;return Ol<<=1,(Ol&62914560)===0&&(Ol=4194304),t}function ru(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ci(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function F0(t,e,n,i,s,o){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var m=t.entanglements,b=t.expirationTimes,D=t.hiddenUpdates;for(n=f&~n;0)":-1s||b[i]!==D[s]){var C=` +`+b[i].replace(" at new "," at ");return t.displayName&&C.includes("")&&(C=C.replace("",t.displayName)),C}while(1<=i&&0<=s);break}}}finally{mu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ya(n):""}function ng(t){switch(t.tag){case 26:case 27:case 5:return ya(t.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 15:return pu(t.type,!1);case 11:return pu(t.type.render,!1);case 1:return pu(t.type,!0);case 31:return ya("Activity");default:return""}}function af(t){try{var e="";do e+=ng(t),t=t.return;while(t);return e}catch(n){return` +Error generating stack: `+n.message+` +`+n.stack}}function Se(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function lf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ag(t){var e=lf(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){i=""+f,o.call(this,f)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(f){i=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vl(t){t._valueTracker||(t._valueTracker=ag(t))}function sf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=lf(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function zl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ig=/[\n"\\]/g;function xe(t){return t.replace(ig,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yu(t,e,n,i,s,o,f,m){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Se(e)):t.value!==""+Se(e)&&(t.value=""+Se(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?gu(t,f,Se(e)):n!=null?gu(t,f,Se(n)):i!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+Se(m):t.removeAttribute("name")}function uf(t,e,n,i,s,o,f,m){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null))return;n=n!=null?""+Se(n):"",e=e!=null?""+Se(e):n,m||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=m?t.checked:!!i,t.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function gu(t,e,n){e==="number"&&zl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ga(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(Pe)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{Tu=!1}var mn=null,Au=null,wl=null;function mf(){if(wl)return wl;var t,e=Au,n=e.length,i,s="value"in mn?mn.value:mn.textContent,o=s.length;for(t=0;t=gi),Sf=" ",xf=!1;function Tf(t,e){switch(t){case"keyup":return zg.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xa=!1;function wg(t,e){switch(t){case"compositionend":return Af(e);case"keypress":return e.which!==32?null:(xf=!0,Sf);case"textInput":return t=e.data,t===Sf&&xf?null:t;default:return null}}function _g(t,e){if(xa)return t==="compositionend"||!Ru&&Tf(t,e)?(t=mf(),wl=Au=mn=null,xa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Vf(n)}}function Nf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=zl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=zl(t.document)}return e}function Vu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Xg=Pe&&"documentMode"in document&&11>=document.documentMode,Ta=null,zu=null,xi=null,Nu=!1;function _f(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nu||Ta==null||Ta!==zl(i)||(i=Ta,"selectionStart"in i&&Vu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xi&&Si(xi,i)||(xi=i,i=Es(zu,"onSelect"),0>=f,s-=f,Fe=1<<32-he(e)+s|n<o?o:8;var f=V.T,m={};V.T=m,vr(t,!1,e,n);try{var b=s(),D=V.S;if(D!==null&&D(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var C=$g(b,i);Ui(t,e,C,ve(t))}else Ui(t,e,i,ve(t))}catch(w){Ui(t,e,{then:function(){},status:"rejected",reason:w},ve())}finally{B.p=o,V.T=f}}function av(){}function yr(t,e,n,i){if(t.tag!==5)throw Error(r(476));var s=Uh(t).queue;_h(t,s,e,k,n===null?av:function(){return Bh(t),n(i)})}function Uh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:k},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Bh(t){var e=Uh(t).next.queue;Ui(t,e,{},ve())}function gr(){return It(tl)}function Lh(){return Ut().memoizedState}function Hh(){return Ut().memoizedState}function iv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ve();t=gn(n);var i=vn(e,t,n);i!==null&&(be(i,e,n),Ci(i,e,n)),e={cache:ku()},t.payload=e;return}e=e.return}}function lv(t,e,n){var i=ve();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},is(t)?qh(e,n):(n=Bu(t,e,n,i),n!==null&&(be(n,t,i),Gh(n,e,i)))}function Yh(t,e,n){var i=ve();Ui(t,e,n,i)}function Ui(t,e,n,i){var s={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(t))qh(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var f=e.lastRenderedState,m=o(f,n);if(s.hasEagerState=!0,s.eagerState=m,de(m,f))return ql(t,e,s,0),Tt===null&&Yl(),!1}catch{}finally{}if(n=Bu(t,e,s,i),n!==null)return be(n,t,i),Gh(n,e,i),!0}return!1}function vr(t,e,n,i){if(i={lane:2,revertLane:Fr(),action:i,hasEagerState:!1,eagerState:null,next:null},is(t)){if(e)throw Error(r(479))}else e=Bu(t,n,i,2),e!==null&&be(e,t,2)}function is(t){var e=t.alternate;return t===st||e!==null&&e===st}function qh(t,e){za=$l=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Gh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Jc(t,n)}}var ls={readContext:It,use:ts,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useLayoutEffect:zt,useInsertionEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useSyncExternalStore:zt,useId:zt,useHostTransitionStatus:zt,useFormState:zt,useActionState:zt,useOptimistic:zt,useMemoCache:zt,useCacheRefresh:zt},Xh={readContext:It,use:ts,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Dh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,as(4194308,4,Ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return as(4194308,4,t,e)},useInsertionEffect:function(t,e){as(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var i=t();if(In){hn(!0);try{t()}finally{hn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=se();if(n!==void 0){var s=n(e);if(In){hn(!0);try{n(e)}finally{hn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=lv.bind(null,st,t),[i.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=hr(t);var e=t.queue,n=Yh.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:mr,useDeferredValue:function(t,e){var n=se();return pr(n,t,e)},useTransition:function(){var t=hr(!1);return t=_h.bind(null,st,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=st,s=se();if(pt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Tt===null)throw Error(r(349));(ft&124)!==0||ch(i,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Dh(hh.bind(null,i,o,t),[t]),i.flags|=2048,wa(9,ns(),fh.bind(null,i,o,n,e),null),n},useId:function(){var t=se(),e=Tt.identifierPrefix;if(pt){var n=We,i=Fe;n=(i&~(1<<32-he(i)-1)).toString(32)+n,e="«"+e+"R"+n,n=Il++,0I?(Kt=J,J=null):Kt=J.sibling;var mt=R(E,J,M[I],z);if(mt===null){J===null&&(J=Kt);break}t&&J&&mt.alternate===null&&e(E,J),x=o(mt,x,I),ut===null?Q=mt:ut.sibling=mt,ut=mt,J=Kt}if(I===M.length)return n(E,J),pt&&kn(E,I),Q;if(J===null){for(;II?(Kt=J,J=null):Kt=J.sibling;var _n=R(E,J,mt.value,z);if(_n===null){J===null&&(J=Kt);break}t&&J&&_n.alternate===null&&e(E,J),x=o(_n,x,I),ut===null?Q=_n:ut.sibling=_n,ut=_n,J=Kt}if(mt.done)return n(E,J),pt&&kn(E,I),Q;if(J===null){for(;!mt.done;I++,mt=M.next())mt=w(E,mt.value,z),mt!==null&&(x=o(mt,x,I),ut===null?Q=mt:ut.sibling=mt,ut=mt);return pt&&kn(E,I),Q}for(J=i(J);!mt.done;I++,mt=M.next())mt=j(J,E,I,mt.value,z),mt!==null&&(t&&mt.alternate!==null&&J.delete(mt.key===null?I:mt.key),x=o(mt,x,I),ut===null?Q=mt:ut.sibling=mt,ut=mt);return t&&J.forEach(function(u1){return e(E,u1)}),pt&&kn(E,I),Q}function St(E,x,M,z){if(typeof M=="object"&&M!==null&&M.type===U&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case A:t:{for(var Q=M.key;x!==null;){if(x.key===Q){if(Q=M.type,Q===U){if(x.tag===7){n(E,x.sibling),z=s(x,M.props.children),z.return=E,E=z;break t}}else if(x.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===$&&Qh(Q)===x.type){n(E,x.sibling),z=s(x,M.props),Li(z,M),z.return=E,E=z;break t}n(E,x);break}else e(E,x);x=x.sibling}M.type===U?(z=Qn(M.props.children,E.mode,z,M.key),z.return=E,E=z):(z=Xl(M.type,M.key,M.props,null,E.mode,z),Li(z,M),z.return=E,E=z)}return f(E);case N:t:{for(Q=M.key;x!==null;){if(x.key===Q)if(x.tag===4&&x.stateNode.containerInfo===M.containerInfo&&x.stateNode.implementation===M.implementation){n(E,x.sibling),z=s(x,M.children||[]),z.return=E,E=z;break t}else{n(E,x);break}else e(E,x);x=x.sibling}z=Yu(M,E.mode,z),z.return=E,E=z}return f(E);case $:return Q=M._init,M=Q(M._payload),St(E,x,M,z)}if(Yt(M))return tt(E,x,M,z);if(Ht(M)){if(Q=Ht(M),typeof Q!="function")throw Error(r(150));return M=Q.call(M),W(E,x,M,z)}if(typeof M.then=="function")return St(E,x,ss(M),z);if(M.$$typeof===H)return St(E,x,kl(E,M),z);us(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,x!==null&&x.tag===6?(n(E,x.sibling),z=s(x,M),z.return=E,E=z):(n(E,x),z=Hu(M,E.mode,z),z.return=E,E=z),f(E)):n(E,x)}return function(E,x,M,z){try{Bi=0;var Q=St(E,x,M,z);return _a=null,Q}catch(J){if(J===Ri||J===Jl)throw J;var ut=me(29,J,null,E.mode);return ut.lanes=z,ut.return=E,ut}finally{}}}var Ua=Kh(!0),kh=Kh(!1),De=_(null),Ye=null;function Sn(t){var e=t.alternate;G(Gt,Gt.current&1),G(De,t),Ye===null&&(e===null||Va.current!==null||e.memoizedState!==null)&&(Ye=t)}function Ph(t){if(t.tag===22){if(G(Gt,Gt.current),G(De,t),Ye===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ye=t)}}else xn()}function xn(){G(Gt,Gt.current),G(De,De.current)}function en(t){Z(De),Ye===t&&(Ye=null),Z(Gt)}var Gt=_(0);function rs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||ro(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function br(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Sr={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=ve(),s=gn(i);s.payload=e,n!=null&&(s.callback=n),e=vn(t,s,i),e!==null&&(be(e,t,i),Ci(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=ve(),s=gn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=vn(t,s,i),e!==null&&(be(e,t,i),Ci(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ve(),i=gn(n);i.tag=2,e!=null&&(i.callback=e),e=vn(t,i,n),e!==null&&(be(e,t,n),Ci(e,t,n))}};function Jh(t,e,n,i,s,o,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,f):e.prototype&&e.prototype.isPureReactComponent?!Si(n,i)||!Si(s,o):!0}function Fh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Sr.enqueueReplaceState(e,e.state,null)}function ta(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}var os=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Wh(t){os(t)}function $h(t){console.error(t)}function Ih(t){os(t)}function cs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function td(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function xr(t,e,n){return n=gn(n),n.tag=3,n.payload={element:null},n.callback=function(){cs(t,e)},n}function ed(t){return t=gn(t),t.tag=3,t}function nd(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;t.payload=function(){return s(o)},t.callback=function(){td(e,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){td(e,n,i),typeof s!="function"&&(On===null?On=new Set([this]):On.add(this));var m=i.stack;this.componentDidCatch(i.value,{componentStack:m!==null?m:""})})}function uv(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Mi(e,n,s,!0),n=De.current,n!==null){switch(n.tag){case 13:return Ye===null?Qr():n.alternate===null&&Ct===0&&(Ct=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Fu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),kr(t,i,s)),!1;case 22:return n.flags|=65536,i===Fu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),kr(t,i,s)),!1}throw Error(r(435,n.tag))}return kr(t,i,s),Qr(),!1}if(pt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Xu&&(t=Error(r(422),{cause:i}),Ei(Te(t,n)))):(i!==Xu&&(e=Error(r(423),{cause:i}),Ei(Te(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=Te(i,n),s=xr(t.stateNode,i,s),Iu(t,s),Ct!==4&&(Ct=2)),!1;var o=Error(r(520),{cause:i});if(o=Te(o,n),Qi===null?Qi=[o]:Qi.push(o),Ct!==4&&(Ct=2),e===null)return!0;i=Te(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=xr(n.stateNode,i,t),Iu(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(On===null||!On.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=ed(s),nd(s,t,n,i),Iu(n,s),!1}n=n.return}while(n!==null);return!1}var ad=Error(r(461)),Zt=!1;function kt(t,e,n,i){e.child=t===null?kh(e,null,n,i):Ua(e,t.child,n,i)}function id(t,e,n,i,s){n=n.render;var o=e.ref;if("ref"in i){var f={};for(var m in i)m!=="ref"&&(f[m]=i[m])}else f=i;return Wn(e),i=ir(t,e,n,f,o,s),m=lr(),t!==null&&!Zt?(sr(t,e,s),nn(t,e,s)):(pt&&m&&qu(e),e.flags|=1,kt(t,e,i,s),e.child)}function ld(t,e,n,i,s){if(t===null){var o=n.type;return typeof o=="function"&&!Lu(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,sd(t,e,o,i,s)):(t=Xl(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!jr(t,s)){var f=o.memoizedProps;if(n=n.compare,n=n!==null?n:Si,n(f,i)&&t.ref===e.ref)return nn(t,e,s)}return e.flags|=1,t=Je(o,i),t.ref=e.ref,t.return=e,e.child=t}function sd(t,e,n,i,s){if(t!==null){var o=t.memoizedProps;if(Si(o,i)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=i=o,jr(t,s))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,nn(t,e,s)}return Tr(t,e,n,i,s)}function ud(t,e,n){var i=e.pendingProps,s=i.children,o=t!==null?t.memoizedState:null;if(i.mode==="hidden"){if((e.flags&128)!==0){if(i=o!==null?o.baseLanes|n:n,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;e.childLanes=o&~i}else e.childLanes=0,e.child=null;return rd(t,e,i,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Pl(e,o!==null?o.cachePool:null),o!==null?sh(e,o):er(),Ph(e);else return e.lanes=e.childLanes=536870912,rd(t,e,o!==null?o.baseLanes|n:n,n)}else o!==null?(Pl(e,o.cachePool),sh(e,o),xn(),e.memoizedState=null):(t!==null&&Pl(e,null),er(),xn());return kt(t,e,s,n),e.child}function rd(t,e,n,i){var s=Ju();return s=s===null?null:{parent:qt._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&Pl(e,null),er(),Ph(e),t!==null&&Mi(t,e,i,!0),null}function fs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Tr(t,e,n,i,s){return Wn(e),n=ir(t,e,n,i,void 0,s),i=lr(),t!==null&&!Zt?(sr(t,e,s),nn(t,e,s)):(pt&&i&&qu(e),e.flags|=1,kt(t,e,n,s),e.child)}function od(t,e,n,i,s,o){return Wn(e),e.updateQueue=null,n=rh(e,i,n,s),uh(t),i=lr(),t!==null&&!Zt?(sr(t,e,o),nn(t,e,o)):(pt&&i&&qu(e),e.flags|=1,kt(t,e,n,o),e.child)}function cd(t,e,n,i,s){if(Wn(e),e.stateNode===null){var o=Da,f=n.contextType;typeof f=="object"&&f!==null&&(o=It(f)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Sr,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},Wu(e),f=n.contextType,o.context=typeof f=="object"&&f!==null?It(f):Da,o.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(br(e,n,f,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(f=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),f!==o.state&&Sr.enqueueReplaceState(o,o.state,null),zi(e,i,o,s),Vi(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var m=e.memoizedProps,b=ta(n,m);o.props=b;var D=o.context,C=n.contextType;f=Da,typeof C=="object"&&C!==null&&(f=It(C));var w=n.getDerivedStateFromProps;C=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function",m=e.pendingProps!==m,C||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m||D!==f)&&Fh(e,o,i,f),yn=!1;var R=e.memoizedState;o.state=R,zi(e,i,o,s),Vi(),D=e.memoizedState,m||R!==D||yn?(typeof w=="function"&&(br(e,n,w,i),D=e.memoizedState),(b=yn||Jh(e,n,b,i,R,D,f))?(C||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=D),o.props=i,o.state=D,o.context=f,i=b):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,$u(t,e),f=e.memoizedProps,C=ta(n,f),o.props=C,w=e.pendingProps,R=o.context,D=n.contextType,b=Da,typeof D=="object"&&D!==null&&(b=It(D)),m=n.getDerivedStateFromProps,(D=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==w||R!==b)&&Fh(e,o,i,b),yn=!1,R=e.memoizedState,o.state=R,zi(e,i,o,s),Vi();var j=e.memoizedState;f!==w||R!==j||yn||t!==null&&t.dependencies!==null&&Kl(t.dependencies)?(typeof m=="function"&&(br(e,n,m,i),j=e.memoizedState),(C=yn||Jh(e,n,C,i,R,j,b)||t!==null&&t.dependencies!==null&&Kl(t.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,j,b),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,j,b)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=j),o.props=i,o.state=j,o.context=b,i=C):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,fs(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=Ua(e,t.child,null,s),e.child=Ua(e,null,n,s)):kt(t,e,n,s),e.memoizedState=o.state,t=e.child):t=nn(t,e,s),t}function fd(t,e,n,i){return Ai(),e.flags|=256,kt(t,e,n,i),e.child}var Ar={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Er(t){return{baseLanes:t,cachePool:$f()}}function Mr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function hd(t,e,n){var i=e.pendingProps,s=!1,o=(e.flags&128)!==0,f;if((f=o)||(f=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(pt){if(s?Sn(e):xn(),pt){var m=jt,b;if(b=m){t:{for(b=m,m=He;b.nodeType!==8;){if(!m){m=null;break t}if(b=_e(b.nextSibling),b===null){m=null;break t}}m=b}m!==null?(e.memoizedState={dehydrated:m,treeContext:Kn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},b=me(18,null,null,0),b.stateNode=m,b.return=e,e.child=b,ne=e,jt=null,b=!0):b=!1}b||Jn(e)}if(m=e.memoizedState,m!==null&&(m=m.dehydrated,m!==null))return ro(m)?e.lanes=32:e.lanes=536870912,null;en(e)}return m=i.children,i=i.fallback,s?(xn(),s=e.mode,m=hs({mode:"hidden",children:m},s),i=Qn(i,s,n,null),m.return=e,i.return=e,m.sibling=i,e.child=m,s=e.child,s.memoizedState=Er(n),s.childLanes=Mr(t,f,n),e.memoizedState=Ar,i):(Sn(e),Dr(e,m))}if(b=t.memoizedState,b!==null&&(m=b.dehydrated,m!==null)){if(o)e.flags&256?(Sn(e),e.flags&=-257,e=Or(t,e,n)):e.memoizedState!==null?(xn(),e.child=t.child,e.flags|=128,e=null):(xn(),s=i.fallback,m=e.mode,i=hs({mode:"visible",children:i.children},m),s=Qn(s,m,n,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,Ua(e,t.child,null,n),i=e.child,i.memoizedState=Er(n),i.childLanes=Mr(t,f,n),e.memoizedState=Ar,e=s);else if(Sn(e),ro(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var D=f.dgst;f=D,i=Error(r(419)),i.stack="",i.digest=f,Ei({value:i,source:null,stack:null}),e=Or(t,e,n)}else if(Zt||Mi(t,e,n,!1),f=(n&t.childLanes)!==0,Zt||f){if(f=Tt,f!==null&&(i=n&-n,i=(i&42)!==0?1:ou(i),i=(i&(f.suspendedLanes|n))!==0?0:i,i!==0&&i!==b.retryLane))throw b.retryLane=i,Ma(t,i),be(f,t,i),ad;m.data==="$?"||Qr(),e=Or(t,e,n)}else m.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,jt=_e(m.nextSibling),ne=e,pt=!0,Pn=null,He=!1,t!==null&&(Ee[Me++]=Fe,Ee[Me++]=We,Ee[Me++]=Kn,Fe=t.id,We=t.overflow,Kn=e),e=Dr(e,i.children),e.flags|=4096);return e}return s?(xn(),s=i.fallback,m=e.mode,b=t.child,D=b.sibling,i=Je(b,{mode:"hidden",children:i.children}),i.subtreeFlags=b.subtreeFlags&65011712,D!==null?s=Je(D,s):(s=Qn(s,m,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,m=t.child.memoizedState,m===null?m=Er(n):(b=m.cachePool,b!==null?(D=qt._currentValue,b=b.parent!==D?{parent:D,pool:D}:b):b=$f(),m={baseLanes:m.baseLanes|n,cachePool:b}),s.memoizedState=m,s.childLanes=Mr(t,f,n),e.memoizedState=Ar,i):(Sn(e),n=t.child,t=n.sibling,n=Je(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Dr(t,e){return e=hs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function hs(t,e){return t=me(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Or(t,e,n){return Ua(e,t.child,null,n),t=Dr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function dd(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Qu(t.return,e,n)}function Rr(t,e,n,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=s)}function md(t,e,n){var i=e.pendingProps,s=i.revealOrder,o=i.tail;if(kt(t,e,i.children,n),i=Gt.current,(i&2)!==0)i=i&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&dd(t,n,e);else if(t.tag===19)dd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}switch(G(Gt,i),s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&rs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Rr(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&rs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Rr(e,!0,n,null,o);break;case"together":Rr(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function nn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Dn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Mi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=Je(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Je(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function jr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Kl(t)))}function rv(t,e,n){switch(e.tag){case 3:Et(e,e.stateNode.containerInfo),pn(e,qt,t.memoizedState.cache),Ai();break;case 27:case 5:iu(e);break;case 4:Et(e,e.stateNode.containerInfo);break;case 10:pn(e,e.type,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Sn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?hd(t,e,n):(Sn(e),t=nn(t,e,n),t!==null?t.sibling:null);Sn(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Mi(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return md(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),G(Gt,Gt.current),i)break;return null;case 22:case 23:return e.lanes=0,ud(t,e,n);case 24:pn(e,qt,t.memoizedState.cache)}return nn(t,e,n)}function pd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!jr(t,n)&&(e.flags&128)===0)return Zt=!1,rv(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,pt&&(e.flags&1048576)!==0&&Qf(e,Ql,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var i=e.elementType,s=i._init;if(i=s(i._payload),e.type=i,typeof i=="function")Lu(i)?(t=ta(i,t),e.tag=1,e=cd(null,e,i,t,n)):(e.tag=0,e=Tr(null,e,i,t,n));else{if(i!=null){if(s=i.$$typeof,s===nt){e.tag=11,e=id(null,e,i,t,n);break t}else if(s===ht){e.tag=14,e=ld(null,e,i,t,n);break t}}throw e=Be(i)||i,Error(r(306,e,""))}}return e;case 0:return Tr(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ta(i,e.pendingProps),cd(t,e,i,s,n);case 3:t:{if(Et(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var o=e.memoizedState;s=o.element,$u(t,e),zi(e,i,null,n);var f=e.memoizedState;if(i=f.cache,pn(e,qt,i),i!==o.cache&&Ku(e,[qt],n,!0),Vi(),i=f.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=fd(t,e,i,n);break t}else if(i!==s){s=Te(Error(r(424)),e),Ei(s),e=fd(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jt=_e(t.firstChild),ne=e,pt=!0,Pn=null,He=!0,n=kh(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ai(),i===s){e=nn(t,e,n);break t}kt(t,e,i,n)}e=e.child}return e;case 26:return fs(t,e),t===null?(n=bm(e.type,null,e.pendingProps,null))?e.memoizedState=n:pt||(n=e.type,t=e.pendingProps,i=Ds(at.current).createElement(n),i[$t]=e,i[ie]=t,Jt(i,n,t),Xt(i),e.stateNode=i):e.memoizedState=bm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return iu(e),t===null&&pt&&(i=e.stateNode=ym(e.type,e.pendingProps,at.current),ne=e,He=!0,s=jt,Cn(e.type)?(oo=s,jt=_e(i.firstChild)):jt=s),kt(t,e,e.pendingProps.children,n),fs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&pt&&((s=i=jt)&&(i=Uv(i,e.type,e.pendingProps,He),i!==null?(e.stateNode=i,ne=e,jt=_e(i.firstChild),He=!1,s=!0):s=!1),s||Jn(e)),iu(e),s=e.type,o=e.pendingProps,f=t!==null?t.memoizedProps:null,i=o.children,lo(s,o)?i=null:f!==null&&lo(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=ir(t,e,tv,null,null,n),tl._currentValue=s),fs(t,e),kt(t,e,i,n),e.child;case 6:return t===null&&pt&&((t=n=jt)&&(n=Bv(n,e.pendingProps,He),n!==null?(e.stateNode=n,ne=e,jt=null,t=!0):t=!1),t||Jn(e)),null;case 13:return hd(t,e,n);case 4:return Et(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Ua(e,null,i,n):kt(t,e,i,n),e.child;case 11:return id(t,e,e.type,e.pendingProps,n);case 7:return kt(t,e,e.pendingProps,n),e.child;case 8:return kt(t,e,e.pendingProps.children,n),e.child;case 12:return kt(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,pn(e,e.type,i.value),kt(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,Wn(e),s=It(s),i=i(s),e.flags|=1,kt(t,e,i,n),e.child;case 14:return ld(t,e,e.type,e.pendingProps,n);case 15:return sd(t,e,e.type,e.pendingProps,n);case 19:return md(t,e,n);case 31:return i=e.pendingProps,n=e.mode,i={mode:i.mode,children:i.children},t===null?(n=hs(i,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=Je(t.child,i),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return ud(t,e,n);case 24:return Wn(e),i=It(qt),t===null?(s=Ju(),s===null&&(s=Tt,o=ku(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:i,cache:s},Wu(e),pn(e,qt,s)):((t.lanes&n)!==0&&($u(t,e),zi(e,null,null,n),Vi()),s=t.memoizedState,o=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),pn(e,qt,i)):(i=o.cache,pn(e,qt,i),i!==s.cache&&Ku(e,[qt],n,!0))),kt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function an(t){t.flags|=4}function yd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Em(e)){if(e=De.current,e!==null&&((ft&4194048)===ft?Ye!==null:(ft&62914560)!==ft&&(ft&536870912)===0||e!==Ye))throw ji=Fu,If;t.flags|=8192}}function ds(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?kc():536870912,t.lanes|=e,Ya|=e)}function Hi(t,e){if(!pt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ov(t,e,n){var i=e.pendingProps;switch(Gu(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(e),null;case 1:return Ot(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Ie(qt),fn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ti(e)?an(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Pf())),Ot(e),null;case 26:return n=e.memoizedState,t===null?(an(e),n!==null?(Ot(e),yd(e,n)):(Ot(e),e.flags&=-16777217)):n?n!==t.memoizedState?(an(e),Ot(e),yd(e,n)):(Ot(e),e.flags&=-16777217):(t.memoizedProps!==i&&an(e),Ot(e),e.flags&=-16777217),null;case 27:El(e),n=at.current;var s=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==i&&an(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ot(e),null}t=F.current,Ti(e)?Kf(e):(t=ym(s,i,n),e.stateNode=t,an(e))}return Ot(e),null;case 5:if(El(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&an(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ot(e),null}if(t=F.current,Ti(e))Kf(e);else{switch(s=Ds(at.current),t){case 1:t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=s.createElement("div"),t.innerHTML=" - + +
diff --git a/docs/assets/index-C8TGd1Cb.css b/old_docs/assets/index-C8TGd1Cb.css similarity index 100% rename from docs/assets/index-C8TGd1Cb.css rename to old_docs/assets/index-C8TGd1Cb.css diff --git a/docs/assets/index-DgYLXCrh.js b/old_docs/assets/index-DgYLXCrh.js similarity index 100% rename from docs/assets/index-DgYLXCrh.js rename to old_docs/assets/index-DgYLXCrh.js diff --git a/docs/icon/1.png b/old_docs/icon/1.png similarity index 100% rename from docs/icon/1.png rename to old_docs/icon/1.png diff --git a/docs/icon/2.png b/old_docs/icon/2.png similarity index 100% rename from docs/icon/2.png rename to old_docs/icon/2.png diff --git a/docs/icon/3.png b/old_docs/icon/3.png similarity index 100% rename from docs/icon/3.png rename to old_docs/icon/3.png diff --git a/old_docs/icon/Frame 78.svg b/old_docs/icon/Frame 78.svg new file mode 100644 index 0000000..fcdfaaa --- /dev/null +++ b/old_docs/icon/Frame 78.svg @@ -0,0 +1,3 @@ + + + diff --git a/old_docs/icon/Frame 79.svg b/old_docs/icon/Frame 79.svg new file mode 100644 index 0000000..7cc348f --- /dev/null +++ b/old_docs/icon/Frame 79.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/old_docs/icon/close.svg b/old_docs/icon/close.svg new file mode 100644 index 0000000..99192b4 --- /dev/null +++ b/old_docs/icon/close.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/old_docs/icon/dotdot.svg b/old_docs/icon/dotdot.svg new file mode 100644 index 0000000..7876649 --- /dev/null +++ b/old_docs/icon/dotdot.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/old_docs/icon/expand.svg b/old_docs/icon/expand.svg new file mode 100644 index 0000000..79a8da7 --- /dev/null +++ b/old_docs/icon/expand.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/old_docs/icon/mail.svg b/old_docs/icon/mail.svg new file mode 100644 index 0000000..2505516 --- /dev/null +++ b/old_docs/icon/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/old_docs/icon/up.svg b/old_docs/icon/up.svg new file mode 100644 index 0000000..5ae3d26 --- /dev/null +++ b/old_docs/icon/up.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/images/18.2.jpeg b/old_docs/images/18.2.jpeg similarity index 100% rename from docs/images/18.2.jpeg rename to old_docs/images/18.2.jpeg diff --git a/old_docs/images/6-small.jpg b/old_docs/images/6-small.jpg new file mode 100644 index 0000000..8c88c06 Binary files /dev/null and b/old_docs/images/6-small.jpg differ diff --git a/docs/images/6.jpg b/old_docs/images/6.jpg similarity index 100% rename from docs/images/6.jpg rename to old_docs/images/6.jpg diff --git a/old_docs/images/fauna2.gif b/old_docs/images/fauna2.gif new file mode 100644 index 0000000..07ec373 Binary files /dev/null and b/old_docs/images/fauna2.gif differ diff --git a/old_docs/images/flax-s_20-small.jpg b/old_docs/images/flax-s_20-small.jpg new file mode 100644 index 0000000..7018b86 Binary files /dev/null and b/old_docs/images/flax-s_20-small.jpg differ diff --git a/old_docs/images/flax-s_20.jpg b/old_docs/images/flax-s_20.jpg new file mode 100644 index 0000000..0d7b575 Binary files /dev/null and b/old_docs/images/flax-s_20.jpg differ diff --git a/old_docs/images/mm.gif b/old_docs/images/mm.gif new file mode 100644 index 0000000..f40a312 Binary files /dev/null and b/old_docs/images/mm.gif differ diff --git a/old_docs/images/sentinel.gif b/old_docs/images/sentinel.gif new file mode 100644 index 0000000..aee2cc1 Binary files /dev/null and b/old_docs/images/sentinel.gif differ diff --git a/old_docs/images/td.png b/old_docs/images/td.png new file mode 100644 index 0000000..92faade Binary files /dev/null and b/old_docs/images/td.png differ diff --git a/old_docs/images/uf-s-4.png b/old_docs/images/uf-s-4.png new file mode 100644 index 0000000..c920ea0 Binary files /dev/null and b/old_docs/images/uf-s-4.png differ diff --git a/old_docs/images/uf-s-6.png b/old_docs/images/uf-s-6.png new file mode 100644 index 0000000..aafeeb1 Binary files /dev/null and b/old_docs/images/uf-s-6.png differ diff --git a/old_docs/images/uf-s-7.png b/old_docs/images/uf-s-7.png new file mode 100644 index 0000000..b9bdb66 Binary files /dev/null and b/old_docs/images/uf-s-7.png differ diff --git a/old_docs/index.html b/old_docs/index.html new file mode 100644 index 0000000..a21e551 --- /dev/null +++ b/old_docs/index.html @@ -0,0 +1,31 @@ + + + + + + Ida Villadsen Portfolio + + + + + + + + + + + + + + +
+ + + + + +
+ + + + diff --git a/old_docs/sketch/sketch.js b/old_docs/sketch/sketch.js new file mode 100644 index 0000000..46d895a --- /dev/null +++ b/old_docs/sketch/sketch.js @@ -0,0 +1,149 @@ +let pageHeight = 1000; +let pageWidth = 100; +let isReady = true; +let canvas4; +let mousePressed = false; +let particles = []; +let img; + +particlebackground = function (p) { + let particles = []; + let res = 50; + p.preload = function () { + img = p.loadImage("/work/images/6-small.jpg"); + pageHeight = p.select("body").height; + pageWidth = p.select("body").width; + img.resize(pageWidth, pageHeight); + }; + p.setup = function () { + // pageHeight = p.select("body").height; + // pageWidth = p.select("body").width; + canvas4 = p + .createCanvas(pageWidth, pageHeight) + .parent("pfive-container-background"); + canvas4.position(0, 0); + canvas4.style("z-index", "1"); + p.noStroke(); + // paintParticles(); + // img.resize(pageWidth, pageHeight); // pageHeight + }; + p.draw = function () { + paintParticles(); + }; + paintParticles = function () { + for (let i = 0; i < particles.length; i++) { + particles[i].update(); + particles[i].draw(); + } + if (isReady) { + placeParticles(); + canvas4.style("opacity", "1"); + isReady = false; + } + }; + p.windowResized = function () { + resizeTimeout = setTimeout(() => { + clearAllParticles(); + isReady = true; + pageHeight = p.select("body").height; + pageWidth = p.select("body").width; + p.resizeCanvas(pageWidth, pageHeight); + if (img !== undefined) { + img.resize(pageWidth, pageHeight); + } + paintParticles(); + // console.log("window resized and particles repainted!"); + }, 300); // Adjust delay as needed + }; + + function clearAllParticles() { + particles = []; + } + function placeParticles() { + for (let i = 0; i < p.width; i += res) { + for (let j = 0; j < p.height; j += res) { + let x = (i / p.width) * img.width; + let y = (j / p.height) * img.height; + let c = img.get(x, y); + + if (c[0] + c[1] + c[2] != 255 * 3) { + particles.push( + new Particle( + p, + i, //+ p.noise(i * 100, j * 100) * 10, + j, //+ p.noise(-i * 100, -j * 100) * 10, + c, + res + ) + ); + } + } + } + } + + class Particle { + constructor(p, x, y, color, res) { + this.res = res; + this.p = p; + this.x = x; + this.y = y; + + this.homeX = x; + this.homeY = y; + + this.color = color; + + // Add random velocity + this.vx = this.p.random(-10, 2); + this.vy = this.p.random(-10, 2); + } + + fly() { + this.x += this.vx; + this.y += this.vy; + + // Bounce off edges + if (this.x < 0 || this.x > this.p.width) this.vx *= -1; + if (this.y < 0 || this.y > this.p.height) this.vy *= -1; + } + + shuffle() { + this.x = this.p.random(this.p.width); + this.y = this.p.random(this.p.height); + } + + update() { + this.fly(); + // mouse + let mouseD = this.p.dist(this.x, this.y, this.p.mouseX, this.p.mouseY); + let mouseA = this.p.atan2(this.y - this.p.mouseY, this.x - this.p.mouseX); + // let mouseD = this.p.dist(this.x, this.y, 1, 1); + // let mouseA = this.p.atan2(1, 1); + + // home + let homeD = this.p.dist(this.x, this.y, this.homeX, this.homeY); + let homeA = this.p.atan2(this.homeY - this.y, this.homeX - this.x); + // forces + let mouseF = this.p.constrain(this.p.map(mouseD, 0, 200, 10, 0), 0, 10); + //console.log(mouseF); + //let mouseF = this.p.map(mouseD, 0, 100, 10, 0); + let homeF = this.p.map(homeD, 0, 100, 0, 10); + + let vx = this.p.cos(mouseA) * mouseF * 2; + vx += this.p.cos(homeA) * homeF; + + let vy = this.p.sin(mouseA) * mouseF * 2; + vy += this.p.sin(homeA) * homeF; + + this.x += vx; + this.y += vy; + } + + draw() { + this.p.fill(this.color); + this.p.ellipse(this.x, this.y, this.res, this.res); + } + } +}; + +new p5(particlebackground); diff --git a/old_docs/sketch/topSketch.js b/old_docs/sketch/topSketch.js new file mode 100644 index 0000000..dcb71b5 --- /dev/null +++ b/old_docs/sketch/topSketch.js @@ -0,0 +1,51 @@ +let generalMargin = 30; +let flat; +// let textured_output; +let bungeeFont; +let color; +let amount = 100; + +function s1(p) { + p.preload = function () { + // bungeeFont = p.loadFont("images/BungeeSpice-Regular.ttf"); + // textured_output = p.loadModel( + // "images/textured_output.obj", + // true, + // () => { + // console.log("Model loaded successfully"); + // }, + // (err) => { + // console.error("Error loading model:", err); + // } + // ); + }; + + p.setup = function () { + canvas1 = p.createCanvas(500, 500, p.WEBGL).parent("#topSketch"); + canvas1.style("display", "flex"); + p.pixelDensity(1); + + color = p.color(100, 0, 255); + }; + p.draw = function () { + p.background(240, 0, 200, 10); + p.push(); + // p.ambientLight(10, 100, 220); // blue + // p.ambientLight(170, 80, 40); // orange + // p.ambientLight(10, 120, 120); // tyrkis + p.ambientLight(10, 120, 150); // blue + + const angle = p.frameCount * 0.02; + const lx = 150 * Math.cos(angle); + const ly = 200 * Math.sin(angle); + const lz = 100 * Math.sin(angle * 0.98); + + p.directionalLight(255, 20, 100, lx, ly, lz); + + // Draw your object + p.sphere(200, 25, 25); + p.pop(); + }; +} + +new p5(s1); diff --git a/public/icon/1.png b/public/icon/1.png deleted file mode 100644 index f428a31..0000000 Binary files a/public/icon/1.png and /dev/null differ diff --git a/public/icon/2.png b/public/icon/2.png deleted file mode 100644 index 386f9f2..0000000 Binary files a/public/icon/2.png and /dev/null differ diff --git a/public/icon/3.png b/public/icon/3.png deleted file mode 100644 index 10d0115..0000000 Binary files a/public/icon/3.png and /dev/null differ diff --git a/public/images/dots_1.png b/public/images/dots_1.png new file mode 100644 index 0000000..165226c Binary files /dev/null and b/public/images/dots_1.png differ diff --git a/public/images/dots_3.png b/public/images/dots_3.png new file mode 100644 index 0000000..863b76b Binary files /dev/null and b/public/images/dots_3.png differ diff --git a/public/images/dots_4.png b/public/images/dots_4.png new file mode 100644 index 0000000..7785c3f Binary files /dev/null and b/public/images/dots_4.png differ diff --git a/public/images/uf-s-1.png b/public/images/uf-s-1.png deleted file mode 100644 index 3f1abad..0000000 Binary files a/public/images/uf-s-1.png and /dev/null differ diff --git a/public/images/uf-s-2.png b/public/images/uf-s-2.png deleted file mode 100644 index b0aae6a..0000000 Binary files a/public/images/uf-s-2.png and /dev/null differ diff --git a/public/images/uf-s-3.png b/public/images/uf-s-3.png deleted file mode 100644 index 3721acd..0000000 Binary files a/public/images/uf-s-3.png and /dev/null differ diff --git a/public/images/uf-s-5.png b/public/images/uf-s-5.png deleted file mode 100644 index 18e1c37..0000000 Binary files a/public/images/uf-s-5.png and /dev/null differ diff --git a/public/images/urbanf1.png b/public/images/urbanf1.png deleted file mode 100644 index e286eed..0000000 Binary files a/public/images/urbanf1.png and /dev/null differ diff --git a/public/images/urbanf2.png b/public/images/urbanf2.png deleted file mode 100644 index 8278643..0000000 Binary files a/public/images/urbanf2.png and /dev/null differ diff --git a/public/images/urbanf4.png b/public/images/urbanf4.png deleted file mode 100644 index 3f0c36e..0000000 Binary files a/public/images/urbanf4.png and /dev/null differ diff --git a/src/components/About/TopDescription.tsx b/src/components/About/TopDescription.tsx index 86d3509..8589442 100644 --- a/src/components/About/TopDescription.tsx +++ b/src/components/About/TopDescription.tsx @@ -12,7 +12,7 @@ export default function TopDescription({hover}:TopDescriptionType){

{`Passionate about building intuitive tools and user experiences, exploring creative technologies in the intersection of technology and design`}

diff --git a/src/components/Carousel.tsx b/src/components/Carousel.tsx index c1cccd7..438f001 100644 --- a/src/components/Carousel.tsx +++ b/src/components/Carousel.tsx @@ -14,7 +14,7 @@ export default function Carousel({ images }: CarouselProps) { return (
{images.main.map((img, index) => (