'use strict';var se=require('react'),jsxRuntime=require('react/jsx-runtime'),Gt=require('color');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var se__default=/*#__PURE__*/_interopDefault(se);var Gt__default=/*#__PURE__*/_interopDefault(Gt);/** * @license gleamy v2.0.16 * * The MIT License (MIT) Copyright: (C) 2023 Jordy Houtman, (C) 2023 Space Corp Engineering (www.spacecorp.nl) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var wn=Object.create;var ft=Object.defineProperty,bn=Object.defineProperties,xn=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertyNames,Ye=Object.getOwnPropertySymbols,Cn=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable;var ne=Math.pow,Lt=(e,t,r)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))dt.call(t,r)&&Lt(e,r,t[r]);if(Ye)for(var r of Ye(t))jt.call(t,r)&&Lt(e,r,t[r]);return e},zt=(e,t)=>bn(e,En(t));var _=(e,t)=>{var r={};for(var n in e)dt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ye)for(var n of Ye(e))t.indexOf(n)<0&&jt.call(e,n)&&(r[n]=e[n]);return r};var Tn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var _n=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pn(t))!dt.call(e,o)&&o!==r&&ft(e,o,{get:()=>t[o],enumerable:!(n=xn(t,o))||n.enumerable});return e};var An=(e,t,r)=>(r=e!=null?wn(Cn(e)):{},_n(!e||!e.__esModule?ft(r,"default",{value:e,enumerable:!0}):r,e));var Yt=Tn((wi,Ht)=>{Ht.exports=function(t,r,n,o){var i=n?n.call(o,t,r):void 0;if(i!==void 0)return !!i;if(t===r)return !0;if(typeof t!="object"||!t||typeof r!="object"||!r)return !1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return !1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l0?I(ke,--U):0,Ae--,L===10&&(Ae=1,Be--),L}function J(){return L=U2||yt(L)>3?"":" "}function er(e,t){for(;--t&&J()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return Ue(e,je()+(t<6&&me()==32&&J()==32))}function gt(e){for(;J();)switch(L){case e:return U;case 34:case 39:e!==34&&e!==39&>(L);break;case 40:e===41&>(e);break;case 92:J();break}return U}function tr(e,t){for(;J()&&e+L!==57;)if(e+L===84&&me()===47)break;return "/*"+Ue(t,U-1)+"*"+$e(e===47?e:J())}function rr(e){for(;!yt(me());)J();return Ue(e,U)}function ir(e){return Zt(Ke("",null,null,null,[""],e=Kt(e),0,[0],e))}function Ke(e,t,r,n,o,i,a,c,s){for(var l=0,p=0,u=a,d=0,m=0,f=0,S=1,x=1,T=1,P=0,h="",v=o,A=i,E=n,w=h;x;)switch(f=P,P=J()){case 40:if(f!=108&&I(w,u-1)==58){_e(w+=b(Je(P),"&","&\f"),"&\f",mt(l?c[l-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:w+=Je(P);break;case 9:case 10:case 13:case 32:w+=Qt(f);break;case 92:w+=er(je()-1,7);continue;case 47:switch(me()){case 42:case 47:ve(kn(tr(J(),je()),t,r,s),s);break;default:w+="/";}break;case 123*S:c[l++]=Y(w)*T;case 125*S:case 59:case 0:switch(P){case 0:case 125:x=0;case 59+p:T==-1&&(w=b(w,/\f/g,"")),m>0&&Y(w)-u&&ve(m>32?or(w+";",n,r,u-1,s):or(b(w," ","")+";",n,r,u-2,s),s);break;case 59:w+=";";default:if(ve(E=nr(w,t,r,l,p,o,c,h,v=[],A=[],u,i),i),P===123)if(p===0)Ke(w,t,E,E,v,i,u,c,A);else switch(d===99&&I(w,3)===110?100:d){case 100:case 108:case 109:case 115:Ke(e,E,E,n&&ve(nr(e,E,E,0,0,o,c,h,o,v=[],u,A),A),o,A,u,c,n?v:A);break;default:Ke(w,E,E,E,[""],A,0,c,A);}}l=p=m=0,S=T=1,h=w="",u=a;break;case 58:u=1+Y(w),m=f;default:if(S<1){if(P==123)--S;else if(P==125&&S++==0&&Jt()==125)continue}switch(w+=$e(P),P*S){case 38:T=p>0?1:(w+="\f",-1);break;case 44:c[l++]=(Y(w)-1)*T,T=1;break;case 64:me()===45&&(w+=Je(J())),d=me(),p=u=Y(h=w+=rr(je())),P++;break;case 45:f===45&&Y(w)==2&&(S=0);}}return i}function nr(e,t,r,n,o,i,a,c,s,l,p,u){for(var d=o-1,m=o===0?i:[""],f=qe(m),S=0,x=0,T=0;S0?m[P]+" "+h:b(h,/&\f/g,m[P])))&&(s[T++]=v);return Le(e,t,r,o===0?de:c,s,l,p,u)}function kn(e,t,r,n){return Le(e,t,r,Xe,$e(Ut()),oe(e,2,-2),0,n)}function or(e,t,r,n,o){return Le(e,t,r,Te,oe(e,0,n),oe(e,n+1,-1),n,o)}function St(e,t,r){switch(Wt(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+Se+e+D+e+e;case 5936:switch(I(e,t+11)){case 114:return O+e+D+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+D+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+D+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+D+e+e;case 6165:return O+e+D+"flex-"+e+e;case 5187:return O+e+b(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return O+e+D+"flex-item-"+b(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":D+"grid-row-"+b(e,/flex-|-self/g,""))+e;case 4675:return O+e+D+"flex-line-pack"+b(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+D+b(e,"shrink","negative")+e;case 5292:return O+e+D+b(e,"basis","preferred-size")+e;case 6060:return O+"box-"+b(e,"-grow","")+O+e+D+b(e,"grow","positive")+e;case 4554:return O+b(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!te(e,/flex-|baseline/))return D+"grid-column-align"+oe(e,t)+e;break;case 2592:case 3360:return D+b(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,te(n.props,/grid-\w+-end/)})?~_e(e+(r=r[t].value),"span",0)?e:D+b(e,"-start","")+e+D+"grid-row-span:"+(~_e(r,"span",0)?te(r,/\d+/):+te(r,/\d+/)-+te(e,/\d+/))+";":D+b(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return te(n.props,/grid-\w+-start/)})?e:D+b(b(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Y(e)-1-t>6)switch(I(e,t+1)){case 109:if(I(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+Se+(I(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~_e(e,"stretch",0)?St(b(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return b(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,s,l){return D+o+":"+i+l+(a?D+o+"-span:"+(c?s:+s-+i)+l:"")+e});case 4949:if(I(e,t+6)===121)return b(e,":",":"+O)+e;break;case 6444:switch(I(e,I(e,14)===45?18:11)){case 120:return b(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(I(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+D+"$2box$3")+e;case 100:return b(e,":",":"+D)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(e,"scroll-","scroll-snap-")+e}return e}function Oe(e,t){for(var r="",n=0;n-1&&!e.return)switch(e.type){case Te:e.return=St(e.value,e.length,r);return;case Ve:return Oe([ie(e,{value:b(e.value,"@","@"+O)})],n);case de:if(e.length)return qt(r=e.props,function(o){switch(te(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":we(ie(e,{props:[b(o,/:(read-\w+)/,":"+Se+"$1")]})),we(ie(e,{props:[o]})),Fe(e,{props:ht(r,n)});break;case"::placeholder":we(ie(e,{props:[b(o,/:(plac\w+)/,":"+O+"input-$1")]})),we(ie(e,{props:[b(o,/:(plac\w+)/,":"+Se+"$1")]})),we(ie(e,{props:[b(o,/:(plac\w+)/,D+"input-$1")]})),we(ie(e,{props:[o]})),Fe(e,{props:ht(r,n)});break}return ""})}}var pr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ce=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",xr="active",rt="data-styled-version",De="6.1.13",kt=`/*!sc*/ `,nt=typeof window!="undefined"&&"HTMLElement"in window,Rn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY);var at=Object.freeze([]),Me=Object.freeze({});function In(e,t,r){return r===void 0&&(r=Me),e.theme!==r.theme&&e.theme||t||r.theme}var Er=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Gn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$n=/(^-|-$)/g;function ur(e){return e.replace(Gn,"-").replace($n,"")}var Fn=/(a)(d)/gi,Ze=52,fr=function(e){return String.fromCharCode(e+(e>25?39:97))};function Et(e){var t,r="";for(t=Math.abs(e);t>Ze;t=t/Ze|0)r=fr(t%Ze)+r;return (fr(t%Ze)+r).replace(Fn,"$1-$2")}var wt,Pr=5381,Ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Cr=function(e){return Ne(Pr,e)};function Ln(e){return Et(Cr(e)>>>0)}function jn(e){return e.displayName||e.name||"Component"}function bt(e){return typeof e=="string"&&!0}var Tr=typeof Symbol=="function"&&Symbol.for,_r=Tr?Symbol.for("react.memo"):60115,zn=Tr?Symbol.for("react.forward_ref"):60112,Hn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ar={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xn=((wt={})[zn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wt[_r]=Ar,wt);function dr(e){return ("type"in(t=e)&&t.type.$$typeof)===_r?Ar:"$$typeof"in e?Xn[e.$$typeof]:Hn;var t;}var Vn=Object.defineProperty,Wn=Object.getOwnPropertyNames,mr=Object.getOwnPropertySymbols,qn=Object.getOwnPropertyDescriptor,Bn=Object.getPrototypeOf,hr=Object.prototype;function kr(e,t,r){if(typeof t!="string"){if(hr){var n=Bn(t);n&&n!==hr&&kr(e,n,r);}var o=Wn(t);mr&&(o=o.concat(mr(t)));for(var i=dr(e),a=dr(t),c=0;c0?" Args: ".concat(t.join(", ")):""))}var Un=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t;}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw ae(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--;},e.prototype.getRule=function(t){return t0&&(x+="".concat(T,","));}),s+="".concat(f).concat(S,'{content:"').concat(x,'"}').concat(kt);},p=0;p0?".".concat(t):d},p=s.slice();p.push(function(d){d.type===de&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(io,r).replace(n,l));}),a.prefix&&p.push(lr),p.push(ar);var u=function(d,m,f,S){m===void 0&&(m=""),f===void 0&&(f=""),S===void 0&&(S="&"),t=S,r=m,n=new RegExp("\\".concat(r,"\\b"),"g");var x=d.replace(ao,""),T=ir(f||m?"".concat(f," ").concat(m," { ").concat(x," }"):x);a.namespace&&(T=Nr(T,a.namespace));var P=[];return Oe(T,sr(p.concat(cr(function(h){return P.push(h)})))),P};return u.hash=s.length?s.reduce(function(d,m){return m.name||ae(15),Ne(d,m.name)},Pr).toString():"",u}var so=new He,Tt=Dr(),Dt=se__default.default.createContext({shouldForwardProp:void 0,styleSheet:so,stylis:Tt});se__default.default.createContext(void 0);function _t(){return se.useContext(Dt)}var po=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Tt);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"));},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Nt(this,function(){throw ae(12,String(n.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=Tt),this.name+t.hash},e}(),uo=function(e){return e>="A"&&e<="Z"};function Sr(e){for(var t="",r=0;r>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c);}o=be(o,a),this.staticRulesId=a;}else {for(var s=Ne(this.baseHash,n.hash),l="",p=0;p>>0);r.hasNameForId(this.componentId,m)||r.insertRules(this.componentId,m,n(l,".".concat(m),void 0,this.componentId)),o=be(o,m);}}return o},e}(),Gr=se__default.default.createContext(void 0);var xt={};function ho(e,t,r){var n=Ot(e),o=e,i=!bt(e),a=t.attrs,c=a===void 0?at:a,s=t.componentId,l=s===void 0?function(v,A){var E=typeof v!="string"?"sc":ur(v);xt[E]=(xt[E]||0)+1;var w="".concat(E,"-").concat(Ln(De+E+xt[E]));return A?"".concat(A,"-").concat(w):w}(t.displayName,t.parentComponentId):s,p=t.displayName,u=p===void 0?function(v){return bt(v)?"styled.".concat(v):"Styled(".concat(jn(v),")")}(e):p,d=t.displayName&&t.componentId?"".concat(ur(t.displayName),"-").concat(t.componentId):t.componentId||l,m=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,f=t.shouldForwardProp;if(n&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;f=function(v,A){return S(v,A)&&x(v,A)};}else f=S;}var T=new mo(r,d,n?o.componentStyle:void 0);function P(v,A){return function(E,w,K){var re=E.attrs,g=E.componentStyle,M=E.defaultProps,y=E.foldedComponentIds,k=E.styledComponentId,N=E.target,F=se__default.default.useContext(Gr),R=_t(),$=E.shouldForwardProp||R.shouldForwardProp,Z=In(w,F,M)||Me,H=function(pe,ue,W){for(var fe,Q=z(z({},ue),{className:void 0,theme:W}),Pe=0;Pe{if(!e)return;e.style.width=e.style.width||`${e.width}px`,e.style.height=e.style.height||`${e.height}px`;let r=t/96,n=parseFloat(e.style.width),o=parseFloat(e.style.height),i=e.width/n,a=r/i,c=e.cloneNode(!1),s=e.getContext("2d");if(!c)return;let l=c==null?void 0:c.getContext("2d");l&&s&&(e.width=Math.ceil(n*r),e.height=Math.ceil(o*r),l.drawImage(e,0,0),s.setTransform(a,0,0,a,0,0),s.drawImage(c,0,0),s.setTransform(r,0,0,r,0,0));};var go=96,So="mouseMove",vo=1e3,wo=1e3,bo=60,Fr={fps:bo,devicePixelRatio:go,defaultAnimator:So,animationEnd:{x:vo,y:wo}};var ye=se.createContext(Fr);var xe={mouseMove:{x:0,y:0},scroll:{x:0,y:0}},Po=typeof window!="undefined"?window.devicePixelRatio:1,le=!1,Hr=0,Yr=0,Lr=e=>{le||window.requestAnimationFrame(()=>{xe.mouseMove.x=e.clientX,xe.mouseMove.y=e.clientY,le=!1;}),le=!0;},jr=()=>{le||window.requestAnimationFrame(()=>{Hr=window.innerWidth,Yr=window.innerHeight,le=!1;}),le=!0;},zr=()=>{le||window.requestAnimationFrame(()=>{xe.scroll.x=window.scrollX,xe.scroll.y=window.scrollY,le=!1;}),le=!0;};function Co({children:e,options:t={}}){let r=C({fps:60,devicePixelRatio:Po,defaultAnimator:"mouseMove",animators:xe,windowSize:{x:Hr,y:Yr},animationEnd:{x:1e3,y:1e3}},t);return se.useEffect(()=>(window&&(window.addEventListener("mousemove",Lr),window.addEventListener("scroll",zr),window.addEventListener("resize",jr),xe.scroll.x=window.scrollX,xe.scroll.y=window.scrollY),()=>{window.removeEventListener("mousemove",Lr),window.removeEventListener("scroll",zr),window.removeEventListener("resize",jr);}),[]),jsxRuntime.jsx(ye.Provider,{value:r,children:e})}var lt=T=>{var P=T,{animator:e,width:t=100,height:r=100,noFill:n=!1,spread:o=.5,acceleration:i=.9,material:a,clipPathRef:c=null,className:s=void 0,edgeThickness:l=0,rendering:p=!0,clipPathScale:u=1,backgroundColor:d,translucency:m=void 0,hueRotationSpeed:f=void 0,foilVisibility:S=void 0}=P,x=_(P,["animator","width","height","noFill","spread","acceleration","material","clipPathRef","className","edgeThickness","rendering","clipPathScale","backgroundColor","translucency","hueRotationSpeed","foilVisibility"]);let h=se.useContext(ye),v=se.useRef(null),A=se.useRef([]),E=se.useCallback(g=>{if(g===null)return {canvas:null,context:null,elementWidth:0,elementHeight:0};let M=g,y=M.getContext("2d",{alpha:!0,desynchronized:!0,willReadFrequently:!0}),k=g.width,N=g.height;return st(M,((h==null?void 0:h.devicePixelRatio)||1)*96),{canvas:M,context:y,elementWidth:k,elementHeight:N}},[h.devicePixelRatio]);se.useEffect(()=>{if(c!=null&&c.current){let g=Object.values(c.current.querySelectorAll("path"));A.current=[],g.forEach(M=>{let y=M.getAttribute("d")||void 0;y&&A.current.push(y);});}},[c]);let w=se.useCallback(g=>{g.save(),A.current.forEach(M=>{g.beginPath(),g.scale(u,u);let y=new Path2D(M);g.closePath(),g.clip(y);});},[A,u]),K=se.useCallback(g=>{g&&l&&(g.lineWidth=l,g.save(),g.beginPath(),A.current.forEach(M=>{let y=new Path2D(M);g.stroke(y);}),g.closePath(),g.restore());},[l,A,h.devicePixelRatio]),re=se.useCallback(()=>{if(!v.current)return null;let{context:g,elementWidth:M,elementHeight:y}=E(v.current);if(!g)return;let k,{animators:N}=h,F=N?N[h.defaultAnimator||"mouseMove"]:{x:0,y:0};e&&typeof e=="string"?k=N?N[`${e}`]:F:e&&typeof e=="function"?k=e():k=F;let R=ne(k.x,i)||1,$=ne(k.y,i)||1,Z=$,H=R,q=-Z-M*2,B=-H-y*2;g.clearRect(0,0,M,y),d&&(g.fillStyle=d.toString(),g.fillRect(0,0,M,y)),g.save();let V=a({context:g,pos0X:q,pos0Y:B,pos1X:R,pos1Y:$,animatorX:k.x,animatorY:k.y,spread:o,translucency:typeof m=="number"?m:void 0,hueRotationSpeed:typeof f=="number"?f:void 0,foilVisibility:typeof S=="number"?S:void 0});if(c&&w(g),n||(g.save(),g.beginPath(),g.fillStyle=V,g.fillRect(0,0,M,y),g.closePath(),g.restore()),l&&c)g.strokeStyle=a({context:g,pos0X:B,pos0Y:q,pos1X:R,pos1Y:$,animatorX:k.y,animatorY:k.x,spread:o,translucency:typeof m=="number"?m:void 0,hueRotationSpeed:typeof f=="number"?f:void 0,foilVisibility:typeof S=="number"?S:void 0}),K(g);else if(l){let ge=a({context:g,pos0X:B,pos0Y:q,pos1X:R,pos1Y:$,animatorX:k.y,animatorY:k.x,spread:o});g.strokeStyle=ge,g.save(),g.beginPath(),g.lineWidth=l,g.fillStyle=ge,g.rect(0,0,M/((h==null?void 0:h.devicePixelRatio)||1),y/((h==null?void 0:h.devicePixelRatio)||1)),g.stroke(),g.closePath(),g.restore();}},[n,i,a,w,E,K,c,o,l,h,d]);return se.useEffect(()=>{let g=(h==null?void 0:h.fps)||60,M=0,y=1e3/g,k,N=Date.now(),F;function R(){k=Date.now(),F=k-N,F>y&&(N=k-F%y,p&&re()),M=window.requestAnimationFrame(R);}return R(),()=>{window.cancelAnimationFrame(M);}},[x]),jsxRuntime.jsx("canvas",C({ref:v,className:s,width:t,height:r},x))};var Oo=X(lt)` display: block; position: relative; transform: translateZ(0); `,j=se.forwardRef((e,t)=>{let u=e,{width:r,height:n,acceleration:o,rendering:i,noFill:a,edgeThickness:c,spread:s,material:l}=u,p=_(u,["width","height","acceleration","rendering","noFill","edgeThickness","spread","material"]);return jsxRuntime.jsx(Oo,C({ref:t,width:r,height:n,acceleration:o,rendering:i,noFill:a,edgeThickness:c,spread:s,material:l},p))});j.displayName="Metal";var Mo=X(lt)` mix-blend-mode: screen; display: block; position: relative; transform: translateZ(0); `,Ee=se.forwardRef((e,t)=>{let u=e,{width:r,height:n,acceleration:o,rendering:i,noFill:a,edgeThickness:c,spread:s,material:l}=u,p=_(u,["width","height","acceleration","rendering","noFill","edgeThickness","spread","material"]);return jsxRuntime.jsx(Mo,C({ref:t,width:r,height:n,acceleration:o,rendering:i,noFill:a,edgeThickness:c,spread:s,material:l},p))});Ee.displayName="Plastic";var Wr=X.div` display: block; position: relative; `;var G=(e,t,r)=>{let n=e.map(([a])=>parseFloat(a.toString())),o=Math.max(...n),i=Math.min(...n);return e.map(a=>{let[c,s]=a;return [((r-t)*(parseFloat(c.toString())-i)/(o-i)+t).toFixed(2),s]})};var qr=[[0,"#8e8e8e"],[.08,"#2d2d2d"],[.15,"#757575"],[.2,"#222222"],[.3,"#424242"],[.4,"#a8a8a8"],[.5,"#676767"],[.7,"#323232"],[.75,"#717171"],[1,"#8e8e8e"]],pt=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(qr,i,1):qr).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};var Br=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,animatorX:i,animatorY:a,spread:c,translucency:s=1,hueRotationSpeed:l=1,foilVisibility:p=.1})=>{let u=l||1,d=80,m=e.createLinearGradient(t,r,n,o),f=Math.ceil(Math.atan2(a,i)*360/Math.PI*u)||1,S=100,x=100,T=[],P=Math.floor(f-(f/x>0?f/x:-f/x)+u*10),h=(P>0?P:-P)||0,v=-(S-x),A=[[0,`hsla(${h}, ${v}%, 50%, ${p.toString()})`],[.57,`hsla(${h}, ${v}%, 50%, ${p.toString()})`],[.59,`hsla(${f-d}, ${S}%, 50%, ${s.toString()})`],[.6,`hsla(${f}, ${S}%, 50%, ${s.toString()})`],[.61,`hsla(${f+d}, ${S}%, 50%, ${s.toString()})`],[.62,`hsla(${h}, ${v}%, 50%, ${p.toString()})`],[.75,`hsla(${h}, ${v}%, 50%, ${p.toString()})`],[.77,`hsla(${f-d}, ${S}%, 50%, ${s.toString()})`],[.8,`hsla(${f}, ${S}%, 50%, ${s.toString()})`],[.83,`hsla(${f+d}, ${S}%, 50%, ${s})`],[.9,`hsla(${h}, ${v}%, 50%, ${p.toString()})`],[1,`hsla(${h}, ${v}%, 50%, ${p.toString()})`]];return T=G(A,c,1),T.forEach(([E,w])=>{m.addColorStop(parseFloat(E.toString()),w.toString());}),m};var Io=X(Ee)` mix-blend-mode: color-dodge; position: absolute; z-index: 2; `,Go=X(j)` position: absolute; z-index: 1; `;function $o(P){var h=P,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,edgeThickness:o=1,edgeThicknessMetal:i=1,spread:a=.5,clipPathRef:c=null,clipPathRefMetal:s=null,className:l,rendering:p,backgroundColor:u,clipPathScale:d=1,clipPathScaleMetal:m=1,hueRotationSpeed:f=1.2,foilVisibility:S=.02,animator:x}=h,T=_(h,["width","height","noFill","acceleration","edgeThickness","edgeThicknessMetal","spread","clipPathRef","clipPathRefMetal","className","rendering","backgroundColor","clipPathScale","clipPathScaleMetal","hueRotationSpeed","foilVisibility","animator"]);return jsxRuntime.jsxs(Wr,zt(C({className:l},T),{children:[jsxRuntime.jsx(Io,{spread:a,width:e,height:t,noFill:r,acceleration:n,clipPathRef:c,edgeThickness:o,material:Br,rendering:p,clipPathScale:d,animator:x,foilVisibility:S,hueRotationSpeed:f}),jsxRuntime.jsx(Go,{spread:a,width:e,height:t,acceleration:n,clipPathRef:s,edgeThickness:i,material:pt,rendering:p,backgroundColor:u,clipPathScale:m,animator:x})]}))}var jo=({depth:e,particleAmount:t,particleSize:r,elementWidth:n,elementHeight:o})=>{let i=Math.floor(t/e);return Array(e).fill(0).map(()=>{let c=[];for(let s=0;s<=i;s+=1){let l=Math.floor(Math.random()*n),p=Math.floor(Math.random()*o),u=[l,p,r,0,Math.PI*2,!1];c.push(u);}return c})},Kr=P=>{var h=P,{clipPathRef:e=null,width:t=100,height:r=100,acceleration:n=1,material:o,className:i=void 0,particleCoverage:a=5,particleSize:c=1,depth:s=25,particleColor:l="#ff9300",depthAlpha:p=!1,rendering:u=!0,backgroundColor:d="black",clipPathScale:m=1,intensity:f=.5,hueRotationSpeed:S=1,animator:x}=h,T=_(h,["clipPathRef","width","height","acceleration","material","className","particleCoverage","particleSize","depth","particleColor","depthAlpha","rendering","backgroundColor","clipPathScale","intensity","hueRotationSpeed","animator"]);let v=se.useContext(ye),A=se.useRef(null),E=se.useRef([]),w=se.useRef([]),K=Array.isArray(l)&&l.length>s?l.length:s,re=se.useCallback(y=>{if(y===null)return {canvas:null,context:null,position:{top:0,left:0},elementWidth:0,elementHeight:0};let k=y,N=k.getContext("2d",{alpha:!0,desynchronized:!0,willReadFrequently:!0}),F=y.getBoundingClientRect();st(k,((v==null?void 0:v.devicePixelRatio)||1)*96);let R=y.width,$=y.height,H=$*R/c/100*(a>100?100:a);if(w.current.length===0){let q=jo({depth:K,particleAmount:H,particleSize:c,elementWidth:R,elementHeight:$});w.current=[...q];}return {canvas:k,context:N,position:F,elementWidth:R,elementHeight:$}},[a,c,s,v.devicePixelRatio]);se.useEffect(()=>{if(e!=null&&e.current){let y=Object.values(e.current.querySelectorAll("path"));E.current=[],y.forEach(k=>{let N=k.getAttribute("d")||void 0;N&&E.current.push(N);});}},[e,E]);let g=se.useCallback(y=>{y.save(),E.current.forEach(k=>{y.beginPath(),y.scale(m,m);let N=new Path2D(k);y.closePath(),y.clip(N);});},[E,m]),M=se.useCallback(()=>{var ue;if(!A.current)return;let{context:y,position:k,elementWidth:N,elementHeight:F}=re(A.current);if(y===null||!v.defaultAnimator)return;let R,{animators:$}=v,Z=$?$[v.defaultAnimator||"mouseMove"]:{x:0,y:0};x&&typeof x=="string"?R=$?$[`${x}`]:Z:x&&typeof x=="function"?R=x():R=Z;let H=ne(R.x,n)||1,q=ne(R.y,n)||1,B=Math.floor(q-k.top+F),V=Math.floor(H-k.left+N),ge=-B-F*2,Ie=-V-N*2;y.clearRect(0,0,N,F),d&&(y.fillStyle=d.toString(),y.fillRect(0,0,N,F)),y.save(),e&&y&&g(y);let pe=w.current;for(let W=0;W{let y=(v==null?void 0:v.fps)||60,k=0,N=1e3/y,F,R=Date.now(),$;function Z(){F=Date.now(),$=F-R,$>N&&(R=F-$%N,u&&M()),k=window.requestAnimationFrame(Z);}return Z(),()=>{window.cancelAnimationFrame(k);}},[T]),jsxRuntime.jsx("canvas",C({ref:A,className:i,width:t,height:r},T))};var Yo=X(Kr)` display: block; position: relative; transform: translateZ(0); `,It=se.forwardRef((e,t)=>{let s=e,{width:r,height:n,acceleration:o,rendering:i,material:a}=s,c=_(s,["width","height","acceleration","rendering","material"]);return jsxRuntime.jsx(Yo,C({ref:t,width:r,height:n,acceleration:o!=null?o:1,rendering:i!=null?i:!0,material:a},c))});It.displayName="Particle";var $t=e=>Math.floor(e*100)/100,Zr=({context:e,pos1X:t,pos1Y:r,particleColor:n,depthPercentage:o,depthAlpha:i,intensity:a,hueRotationSpeed:c})=>{let s=c&&typeof c=="number"?c:1,l=i?$t(o):.5,p=$t(a*Math.sin((o%2===0?t:r)/1e3*Math.PI*l)),u=Gt__default.default("black");if(n==="holographic"){let d=s*$t(Math.sin((o%2===0?t:r)/1e3*Math.PI));u=Gt__default.default("blue").rotate(d*360).lighten(p>0?p:0).darken(p<0?-p:0);}else u=Gt__default.default(n).darken(p<0?-p:0).lighten(p>0?p:0);i?e.fillStyle=u.fade(l).string():e.fillStyle=u.string();};function Vo(T){var P=T,{width:e=100,height:t=100,acceleration:r,clipPathRef:n,glitterCoverage:o,glitterSize:i,depth:a,depthAlpha:c,glitterColor:s,className:l,rendering:p,backgroundColor:u,clipPathScale:d,intensity:m,hueRotationSpeed:f,animator:S}=P,x=_(P,["width","height","acceleration","clipPathRef","glitterCoverage","glitterSize","depth","depthAlpha","glitterColor","className","rendering","backgroundColor","clipPathScale","intensity","hueRotationSpeed","animator"]);return jsxRuntime.jsx(It,C({width:e,height:t,acceleration:r,clipPathRef:n,material:Zr,particleCoverage:o,particleSize:i,particleColor:s,depth:a,className:l,depthAlpha:c,rendering:p,backgroundColor:u,clipPathScale:d,intensity:m,animator:S,hueRotationSpeed:f},x))}var Qr=[[0,"#7294d1"],[.08,"#80a0d3"],[.15,"#81c4f9"],[.2,"#a4c2e8"],[.3,"#c1d8f4"],[.4,"#96c4ed"],[.5,"#7cb0e2"],[.7,"#5b8ecf"],[.75,"#0b3669"],[.85,"#497cc5"],[.92,"#4477c3"],[1,"#7294d1"]],en=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(Qr,i,1):Qr).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function qo(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:en,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var tn=[[0,"#031627"],[.08,"#14357c"],[.15,"#133179"],[.2,"#0f2451"],[.3,"#0d2046"],[.4,"#11223a"],[.5,"#24467a"],[.7,"#386fbf"],[.8,"#3d78d3"],[.98,"#174486"],[1,"#031627"]],rn=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(tn,i,1):tn).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function Uo(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:rn,className:c,backgroundColor:l,clipPathScale:p,rendering:s,animator:u},d))}var nn=[[0,"#ffd4ac"],[.08,"#a87a60"],[.15,"#cf855b"],[.2,"#efa16d"],[.3,"#83614b"],[.4,"#e4b291"],[.5,"#774532"],[.7,"#984d22"],[1,"#ffd4ac"]],on=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(nn,i,1):nn).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function Ko(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:on,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var an=[[0,"#FFFFAC"],[.08,"#FDB931"],[.15,"#D4AF37"],[.2,"#9f7928"],[.3,"#9f7928"],[.4,"#FFFFAC"],[.5,"#5d4a1f"],[.7,"#5d4a1f"],[.75,"#D1B464"],[1,"#FFFFAC"]],sn=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(an,i,1):an).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function Qo(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:sn,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}function ti(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:pt,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var cn=[[0,"#fee1d6"],[.08,"#9f7573"],[.15,"#fcb2a7"],[.2,"#f5c0ba"],[.3,"#d2aba6"],[.4,"#fee1d6"],[.5,"#4d120e"],[.7,"#9f7573"],[.75,"#f0cfc6"],[.92,"#9f7573"],[1,"#fee1d6"]],ln=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(cn,i,1):cn).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function ni(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:ln,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var pn=[[0,"#fff6ee"],[.08,"#b5a89b"],[.15,"#f0e4dc"],[.2,"#f0e6e0"],[.3,"#dacbc3"],[.4,"#fff7f0"],[.5,"#afa7a0"],[.7,"#9e938b"],[1,"#fff6ee"]],un=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(pn,i,1):pn).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function ii(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:un,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var fn=[[0,"#f6f6f6"],[.08,"#c1c1c1"],[.15,"#d3d3d3"],[.2,"#6a6a6a"],[.3,"#bebebe"],[.4,"#f2f2f2"],[.5,"#9c9c9c"],[.7,"#c3c3c3"],[.76,"#686868"],[.82,"#c1c1c1"],[1,"#f6f6f6"]],dn=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i})=>{let a=e.createLinearGradient(t,r,n,o);return (i?G(fn,i,1):fn).forEach(([s,l])=>{a.addColorStop(parseFloat(s.toString()),l.toString());}),a};function si(m){var f=m,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u}=f,d=_(f,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator"]);return jsxRuntime.jsx(j,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:dn,className:c,backgroundColor:l,rendering:s,clipPathScale:p,animator:u},d))}var mn=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,animatorX:i,animatorY:a,spread:c,translucency:s=1,hueRotationSpeed:l=1,foilVisibility:p=.5})=>{let u=ne(Math.floor(Math.atan2(i,a)*180/Math.PI),l),d=e.createLinearGradient(t,r,n,o),m=ne(100,l),f=ne(45,l),S=[[0,`hsla(${u-f}, ${m}%, 50%, ${p})`],[.5,`hsla(${u-f}, ${m}%, 50%, ${p})`],[.6,`hsla(${-u}, ${m}%, 50%, ${s})`],[.7,`hsla(${u+f}, ${m}%, 50%, ${p})`],[1,`hsla(${u+f}, ${m}%, 50%, ${p})`]];return G(S,c,1).forEach(([T,P])=>{d.addColorStop(parseFloat(T.toString()),P.toString());}),d};var li=X(Ee)` mix-blend-mode: color; `;function pi(x){var T=x,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u,translucency:d=1,foilVisibility:m=.5,hueRotationSpeed:f=1}=T,S=_(T,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","animator","translucency","foilVisibility","hueRotationSpeed"]);return jsxRuntime.jsx(li,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:mn,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:u,translucency:d,hueRotationSpeed:f,foilVisibility:m},S))}var hn=({context:e,pos0X:t,pos0Y:r,pos1X:n,pos1Y:o,spread:i,translucency:a=1,foilVisibility:c=.05})=>{let s=[[0,`rgba(255,255,255, ${c})`],[.48,`rgba(255,255,255, ${c})`],[.5,`rgba(255,255,255, ${a})`],[.52,`rgba(255,255,255, ${c})`],[1,`rgba(255,255,255, ${c})`]],l=e.createLinearGradient(t,r,n,o);return (i?G(s,i,1):s).forEach(([u,d])=>{l.addColorStop(parseFloat(u.toString()),d.toString());}),l};function fi(S){var x=S,{width:e=100,height:t=100,noFill:r=!1,acceleration:n=1,clipPathRef:o=null,edgeThickness:i=1,spread:a=.5,className:c,rendering:s,backgroundColor:l,clipPathScale:p,translucency:u=1,foilVisibility:d=.02,animator:m}=x,f=_(x,["width","height","noFill","acceleration","clipPathRef","edgeThickness","spread","className","rendering","backgroundColor","clipPathScale","translucency","foilVisibility","animator"]);return jsxRuntime.jsx(Ee,C({width:e,height:t,noFill:r,spread:a,acceleration:n,clipPathRef:o,edgeThickness:i,material:hn,className:c,rendering:s,backgroundColor:l,clipPathScale:p,animator:m,translucency:u,foilVisibility:d},f))}exports.BlueSteel=qo;exports.Cobalt=Uo;exports.Copper=Ko;exports.GleamyContext=ye;exports.GleamyProvider=Co;exports.Glitter=Vo;exports.Gold=Qo;exports.Gunmetal=ti;exports.Holographic=$o;exports.Iridescent=pi;exports.Lacquer=fi;exports.RoseGold=ni;exports.Silver=ii;exports.Steel=si;