diff --git a/dist/assets/Attractor-D1dTGU_K.js b/dist/assets/Attractor-C34BAQYv.js similarity index 92% rename from dist/assets/Attractor-D1dTGU_K.js rename to dist/assets/Attractor-C34BAQYv.js index 42c0688..e1e4400 100644 --- a/dist/assets/Attractor-D1dTGU_K.js +++ b/dist/assets/Attractor-C34BAQYv.js @@ -1 +1 @@ -import{C as v}from"./Ranges-D6O5nK3L.js";import{W as M,L as b,X as E,O as g,q as x,t as O,S as d}from"./index-CbDPnSIu.js";import{Attract as A}from"./index-CoWLkqJw.js";import{E as C}from"./ExternalInteractorBase-CIi3zRdK.js";const q=1,D=1,y=0;function h(s,i,t,a,c){const e=s.actualOptions.interactivity.modes.attract;if(!e)return;const o=s.particles.quadTree.query(a,c);for(const r of o){const{dx:f,dy:n,distance:l}=M(r.position,i),m=e.speed*e.factor,p=b(E(e.easing)(D-l/t)*m,q,e.maxSpeed),k=g.create(l?f/l*p:m,l?n/l*p:m);r.position.subFrom(k)}}function P(s,i){s.attract||(s.attract={particles:[]});const{attract:t}=s;if(t.finish||(t.count||(t.count=0),t.count++,t.count===s.particles.count&&(t.finish=!0)),t.clicking){const a=s.interactivity.mouse.clickPosition,c=s.retina.attractModeDistance;if(!c||ci(e))}else t.clicking===!1&&(t.particles=[])}function R(s,i){const t=s.interactivity.mouse.position,a=s.retina.attractModeDistance;!a||ai(c))}const u="attract";class H extends C{constructor(i,t){super(t),this._engine=i,t.attract||(t.attract={particles:[]}),this.handleClickMode=a=>{const c=this.container.actualOptions,e=c.interactivity.modes.attract;if(!(!e||a!==u)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(const o of t.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},e.duration*x)}}}clear(){}init(){const i=this.container,t=i.actualOptions.interactivity.modes.attract;t&&(i.retina.attractModeDistance=t.distance*i.retina.pixelRatio)}interact(){const i=this.container,t=i.actualOptions,a=i.interactivity.status===O,c=t.interactivity.events,{enable:e,mode:o}=c.onHover,{enable:r,mode:f}=c.onClick;a&&e&&d(u,o)?R(this.container,n=>this.isEnabled(n)):r&&d(u,f)&&P(this.container,n=>this.isEnabled(n))}isEnabled(i){const t=this.container,a=t.actualOptions,c=t.interactivity.mouse,e=((i==null?void 0:i.interactivity)??a.interactivity).events;if((!c.position||!e.onHover.enable)&&(!c.clickPosition||!e.onClick.enable))return!1;const o=e.onHover.mode,r=e.onClick.mode;return d(u,o)||d(u,r)}loadModeOptions(i,...t){i.attract||(i.attract=new A);for(const a of t)i.attract.load(a==null?void 0:a.attract)}reset(){}}export{H as Attractor}; +import{C as v}from"./Ranges-CImPpXf_.js";import{W as M,L as b,X as E,O as g,q as x,t as O,S as d}from"./index-oTx0snEa.js";import{Attract as A}from"./index-trSE1DaG.js";import{E as C}from"./ExternalInteractorBase-CIi3zRdK.js";const q=1,D=1,y=0;function h(s,i,t,a,c){const e=s.actualOptions.interactivity.modes.attract;if(!e)return;const o=s.particles.quadTree.query(a,c);for(const r of o){const{dx:f,dy:n,distance:l}=M(r.position,i),m=e.speed*e.factor,p=b(E(e.easing)(D-l/t)*m,q,e.maxSpeed),k=g.create(l?f/l*p:m,l?n/l*p:m);r.position.subFrom(k)}}function P(s,i){s.attract||(s.attract={particles:[]});const{attract:t}=s;if(t.finish||(t.count||(t.count=0),t.count++,t.count===s.particles.count&&(t.finish=!0)),t.clicking){const a=s.interactivity.mouse.clickPosition,c=s.retina.attractModeDistance;if(!c||ci(e))}else t.clicking===!1&&(t.particles=[])}function R(s,i){const t=s.interactivity.mouse.position,a=s.retina.attractModeDistance;!a||ai(c))}const u="attract";class H extends C{constructor(i,t){super(t),this._engine=i,t.attract||(t.attract={particles:[]}),this.handleClickMode=a=>{const c=this.container.actualOptions,e=c.interactivity.modes.attract;if(!(!e||a!==u)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(const o of t.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},e.duration*x)}}}clear(){}init(){const i=this.container,t=i.actualOptions.interactivity.modes.attract;t&&(i.retina.attractModeDistance=t.distance*i.retina.pixelRatio)}interact(){const i=this.container,t=i.actualOptions,a=i.interactivity.status===O,c=t.interactivity.events,{enable:e,mode:o}=c.onHover,{enable:r,mode:f}=c.onClick;a&&e&&d(u,o)?R(this.container,n=>this.isEnabled(n)):r&&d(u,f)&&P(this.container,n=>this.isEnabled(n))}isEnabled(i){const t=this.container,a=t.actualOptions,c=t.interactivity.mouse,e=((i==null?void 0:i.interactivity)??a.interactivity).events;if((!c.position||!e.onHover.enable)&&(!c.clickPosition||!e.onClick.enable))return!1;const o=e.onHover.mode,r=e.onClick.mode;return d(u,o)||d(u,r)}loadModeOptions(i,...t){i.attract||(i.attract=new A);for(const a of t)i.attract.load(a==null?void 0:a.attract)}reset(){}}export{H as Attractor}; diff --git a/dist/assets/Attractor-90LbQhZk.js b/dist/assets/Attractor-DAxw6_Qb.js similarity index 91% rename from dist/assets/Attractor-90LbQhZk.js rename to dist/assets/Attractor-DAxw6_Qb.js index 454519d..257d3b2 100644 --- a/dist/assets/Attractor-90LbQhZk.js +++ b/dist/assets/Attractor-DAxw6_Qb.js @@ -1 +1 @@ -import{P as x}from"./ParticlesInteractorBase-vfDeBun3.js";import{H as f,W as p}from"./index-CbDPnSIu.js";const l=1e3,g=1;class q extends x{constructor(t){super(t)}clear(){}init(){}interact(t){const o=this.container;t.attractDistance===void 0&&(t.attractDistance=f(t.options.move.attract.distance)*o.retina.pixelRatio);const y=t.attractDistance,i=t.getPosition(),d=o.particles.quadTree.queryCircle(i,y);for(const e of d){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const u=e.getPosition(),{dx:v,dy:m}=p(i,u),r=t.options.move.attract.rotate,c=v/(r.x*l),n=m/(r.y*l),a=e.size.value/t.size.value,s=g/a;t.velocity.x-=c*a,t.velocity.y-=n*a,e.velocity.x+=c*s,e.velocity.y+=n*s}}isEnabled(t){return t.options.move.attract.enable}reset(){}}export{q as Attractor}; +import{P as x}from"./ParticlesInteractorBase-vfDeBun3.js";import{H as f,W as p}from"./index-oTx0snEa.js";const l=1e3,g=1;class q extends x{constructor(t){super(t)}clear(){}init(){}interact(t){const o=this.container;t.attractDistance===void 0&&(t.attractDistance=f(t.options.move.attract.distance)*o.retina.pixelRatio);const y=t.attractDistance,i=t.getPosition(),d=o.particles.quadTree.queryCircle(i,y);for(const e of d){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const u=e.getPosition(),{dx:v,dy:m}=p(i,u),r=t.options.move.attract.rotate,c=v/(r.x*l),n=m/(r.y*l),a=e.size.value/t.size.value,s=g/a;t.velocity.x-=c*a,t.velocity.y-=n*a,e.velocity.x+=c*s,e.velocity.y+=n*s}}isEnabled(t){return t.options.move.attract.enable}reset(){}}export{q as Attractor}; diff --git a/dist/assets/BaseMover-Dlcsp7VI.js b/dist/assets/BaseMover-XcaScd-o.js similarity index 96% rename from dist/assets/BaseMover-Dlcsp7VI.js rename to dist/assets/BaseMover-XcaScd-o.js index e1ccf0b..f22498b 100644 --- a/dist/assets/BaseMover-Dlcsp7VI.js +++ b/dist/assets/BaseMover-XcaScd-o.js @@ -1 +1 @@ -import{W as w,J as F,L as z,K as P,H as m,a3 as T}from"./index-CbDPnSIu.js";const r=.5,h=0,f=1,D=60,M=0,S=.01;function V(n){const o=n.initialPosition,{dx:e,dy:i}=w(o,n.position),a=Math.abs(e),t=Math.abs(i),{maxDistance:s}=n.retina,y=s.horizontal,v=s.vertical;if(!y&&!v)return;const d=(y&&a>=y)??!1,u=(v&&t>=v)??!1;if((d||u)&&!n.misplaced)n.misplaced=!!y&&a>y||!!v&&t>v,y&&(n.velocity.x=n.velocity.y*r-n.velocity.x),v&&(n.velocity.y=n.velocity.x*r-n.velocity.y);else if((!y||ao.x&&c.x>h)&&(c.x*=-F()),v&&(x.yo.y&&c.y>h)&&(c.y*=-F())}}function k(n,o,e,i,a,t){E(n,t);const s=n.gravity,y=s!=null&&s.enable&&s.inverse?-f:f;a&&e&&(n.velocity.x+=a*t.factor/(D*e)),s!=null&&s.enable&&e&&(n.velocity.y+=y*(s.acceleration*t.factor)/(D*e));const v=n.moveDecay;n.velocity.multTo(v);const d=n.velocity.mult(e);s!=null&&s.enable&&i>h&&(!s.inverse&&d.y>=h&&d.y>=i||s.inverse&&d.y<=h&&d.y<=-i)&&(d.y=y*i,e&&(n.velocity.y=d.y/e));const u=n.options.zIndex,x=(f-n.zIndexFactor)**u.velocityRate;d.multTo(x);const{position:c}=n;c.addTo(d),o.vibrate&&(c.x+=Math.sin(c.x*Math.cos(c.y)),c.y+=Math.cos(c.y*Math.sin(c.x)))}function A(n,o){const e=n.container;if(!n.spin)return;const i={x:n.spin.direction==="clockwise"?Math.cos:Math.sin,y:n.spin.direction==="clockwise"?Math.sin:Math.cos};n.position.x=n.spin.center.x+n.spin.radius*i.x(n.spin.angle),n.position.y=n.spin.center.y+n.spin.radius*i.y(n.spin.angle),n.spin.radius+=n.spin.acceleration;const a=Math.max(e.canvas.size.width,e.canvas.size.height),t=a*r;n.spin.radius>t?(n.spin.radius=t,n.spin.acceleration*=-f):n.spin.radius=u?"clockwise":"counter-clockwise",angle:n.velocity.angle,radius:v,acceleration:n.retina.spinAcceleration}}const H=2,O=1,B=1;class J{init(o){const e=o.options,i=e.move.gravity;o.gravity={enable:i.enable,acceleration:m(i.acceleration),inverse:i.inverse},C(o)}isEnabled(o){return!o.destroyed&&o.options.move.enable}move(o,e){var l,b;const i=o.options,a=i.move;if(!a.enable)return;const t=o.container,s=t.retina.pixelRatio;(l=o.retina).moveSpeed??(l.moveSpeed=m(a.speed)*s),(b=o.retina).moveDrift??(b.moveDrift=m(o.options.move.drift)*s);const y=I(o),v=o.retina.moveSpeed*t.retina.reduceFactor,d=o.retina.moveDrift,u=T(i.size.value)*s,x=a.size?o.getRadius()/u:O,c=e.factor||B,g=v*x*y*c/H,R=o.retina.maxSpeed??t.retina.maxSpeed;a.spin.enable?A(o,g):k(o,a,g,R,d,e),V(o)}}export{J as BaseMover}; +import{W as w,J as F,L as z,K as P,H as m,a3 as T}from"./index-oTx0snEa.js";const r=.5,h=0,f=1,D=60,M=0,S=.01;function V(n){const o=n.initialPosition,{dx:e,dy:i}=w(o,n.position),a=Math.abs(e),t=Math.abs(i),{maxDistance:s}=n.retina,y=s.horizontal,v=s.vertical;if(!y&&!v)return;const d=(y&&a>=y)??!1,u=(v&&t>=v)??!1;if((d||u)&&!n.misplaced)n.misplaced=!!y&&a>y||!!v&&t>v,y&&(n.velocity.x=n.velocity.y*r-n.velocity.x),v&&(n.velocity.y=n.velocity.x*r-n.velocity.y);else if((!y||ao.x&&c.x>h)&&(c.x*=-F()),v&&(x.yo.y&&c.y>h)&&(c.y*=-F())}}function k(n,o,e,i,a,t){E(n,t);const s=n.gravity,y=s!=null&&s.enable&&s.inverse?-f:f;a&&e&&(n.velocity.x+=a*t.factor/(D*e)),s!=null&&s.enable&&e&&(n.velocity.y+=y*(s.acceleration*t.factor)/(D*e));const v=n.moveDecay;n.velocity.multTo(v);const d=n.velocity.mult(e);s!=null&&s.enable&&i>h&&(!s.inverse&&d.y>=h&&d.y>=i||s.inverse&&d.y<=h&&d.y<=-i)&&(d.y=y*i,e&&(n.velocity.y=d.y/e));const u=n.options.zIndex,x=(f-n.zIndexFactor)**u.velocityRate;d.multTo(x);const{position:c}=n;c.addTo(d),o.vibrate&&(c.x+=Math.sin(c.x*Math.cos(c.y)),c.y+=Math.cos(c.y*Math.sin(c.x)))}function A(n,o){const e=n.container;if(!n.spin)return;const i={x:n.spin.direction==="clockwise"?Math.cos:Math.sin,y:n.spin.direction==="clockwise"?Math.sin:Math.cos};n.position.x=n.spin.center.x+n.spin.radius*i.x(n.spin.angle),n.position.y=n.spin.center.y+n.spin.radius*i.y(n.spin.angle),n.spin.radius+=n.spin.acceleration;const a=Math.max(e.canvas.size.width,e.canvas.size.height),t=a*r;n.spin.radius>t?(n.spin.radius=t,n.spin.acceleration*=-f):n.spin.radius=u?"clockwise":"counter-clockwise",angle:n.velocity.angle,radius:v,acceleration:n.retina.spinAcceleration}}const H=2,O=1,B=1;class J{init(o){const e=o.options,i=e.move.gravity;o.gravity={enable:i.enable,acceleration:m(i.acceleration),inverse:i.inverse},C(o)}isEnabled(o){return!o.destroyed&&o.options.move.enable}move(o,e){var l,b;const i=o.options,a=i.move;if(!a.enable)return;const t=o.container,s=t.retina.pixelRatio;(l=o.retina).moveSpeed??(l.moveSpeed=m(a.speed)*s),(b=o.retina).moveDrift??(b.moveDrift=m(o.options.move.drift)*s);const y=I(o),v=o.retina.moveSpeed*t.retina.reduceFactor,d=o.retina.moveDrift,u=T(i.size.value)*s,x=a.size?o.getRadius()/u:O,c=e.factor||B,g=v*x*y*c/H,R=o.retina.maxSpeed??t.retina.maxSpeed;a.spin.enable?A(o,g):k(o,a,g,R,d,e),V(o)}}export{J as BaseMover}; diff --git a/dist/assets/Bouncer-D0PwO-CL.js b/dist/assets/Bouncer-B8fX3_Tr.js similarity index 93% rename from dist/assets/Bouncer-D0PwO-CL.js rename to dist/assets/Bouncer-B8fX3_Tr.js index 81e5c4e..c4f53d4 100644 --- a/dist/assets/Bouncer-D0PwO-CL.js +++ b/dist/assets/Bouncer-B8fX3_Tr.js @@ -1 +1 @@ -import{Y as E,Z as M,O as m,$ as R,a0 as g,a1 as q,t as D,S as p,a2 as H}from"./index-CbDPnSIu.js";import{C as d,R as b}from"./Ranges-D6O5nK3L.js";import{Bounce as O}from"./index-waDFwdpY.js";import{E as w}from"./ExternalInteractorBase-CIi3zRdK.js";const I=2,l=.5,P=Math.PI*l,h=2,y=10,S=0;function x(c,e,t,o,s){const i=c.particles.quadTree.query(o,s);for(const n of i)o instanceof d?M(R(n),{position:e,radius:t,mass:t**I*P,velocity:m.origin,factor:m.origin}):o instanceof b&&g(n,q(e,t))}function T(c,e,t,o){const s=document.querySelectorAll(e);s.length&&s.forEach(i=>{const n=i,a=c.retina.pixelRatio,r={x:(n.offsetLeft+n.offsetWidth*l)*a,y:(n.offsetTop+n.offsetHeight*l)*a},v=n.offsetWidth*l*a,u=y*a,B=t.type==="circle"?new d(r.x,r.y,v+u):new b(n.offsetLeft*a-u,n.offsetTop*a-u,n.offsetWidth*a+u*h,n.offsetHeight*a+u*h);o(r,v,B)})}function W(c,e,t,o){E(t,e,(s,i)=>T(c,s,i,(n,a,r)=>x(c,n,a,r,o)))}function A(c,e){const t=c.retina.pixelRatio,o=y*t,s=c.interactivity.mouse.position,i=c.retina.bounceModeDistance;!i||ithis.isEnabled(r)):W(this.container,a,f,r=>this.isEnabled(r))}isEnabled(e){const t=this.container,o=t.actualOptions,s=t.interactivity.mouse,i=((e==null?void 0:e.interactivity)??o.interactivity).events,n=i.onDiv;return!!s.position&&i.onHover.enable&&p(f,i.onHover.mode)||H(f,n)}loadModeOptions(e,...t){e.bounce||(e.bounce=new O);for(const o of t)e.bounce.load(o==null?void 0:o.bounce)}reset(){}}export{Y as Bouncer}; +import{Y as E,Z as M,O as m,$ as R,a0 as g,a1 as q,t as D,S as p,a2 as H}from"./index-oTx0snEa.js";import{C as d,R as b}from"./Ranges-CImPpXf_.js";import{Bounce as O}from"./index-D2MXMviT.js";import{E as w}from"./ExternalInteractorBase-CIi3zRdK.js";const I=2,l=.5,P=Math.PI*l,h=2,y=10,S=0;function x(c,e,t,o,s){const i=c.particles.quadTree.query(o,s);for(const n of i)o instanceof d?M(R(n),{position:e,radius:t,mass:t**I*P,velocity:m.origin,factor:m.origin}):o instanceof b&&g(n,q(e,t))}function T(c,e,t,o){const s=document.querySelectorAll(e);s.length&&s.forEach(i=>{const n=i,a=c.retina.pixelRatio,r={x:(n.offsetLeft+n.offsetWidth*l)*a,y:(n.offsetTop+n.offsetHeight*l)*a},v=n.offsetWidth*l*a,u=y*a,B=t.type==="circle"?new d(r.x,r.y,v+u):new b(n.offsetLeft*a-u,n.offsetTop*a-u,n.offsetWidth*a+u*h,n.offsetHeight*a+u*h);o(r,v,B)})}function W(c,e,t,o){E(t,e,(s,i)=>T(c,s,i,(n,a,r)=>x(c,n,a,r,o)))}function A(c,e){const t=c.retina.pixelRatio,o=y*t,s=c.interactivity.mouse.position,i=c.retina.bounceModeDistance;!i||ithis.isEnabled(r)):W(this.container,a,f,r=>this.isEnabled(r))}isEnabled(e){const t=this.container,o=t.actualOptions,s=t.interactivity.mouse,i=((e==null?void 0:e.interactivity)??o.interactivity).events,n=i.onDiv;return!!s.position&&i.onHover.enable&&p(f,i.onHover.mode)||H(f,n)}loadModeOptions(e,...t){e.bounce||(e.bounce=new O);for(const o of t)e.bounce.load(o==null?void 0:o.bounce)}reset(){}}export{Y as Bouncer}; diff --git a/dist/assets/Bubbler-DtkR7BqZ.js b/dist/assets/Bubbler-BmouqAcE.js similarity index 96% rename from dist/assets/Bubbler-DtkR7BqZ.js rename to dist/assets/Bubbler-BmouqAcE.js index 51a1c02..389e53d 100644 --- a/dist/assets/Bubbler-DtkR7BqZ.js +++ b/dist/assets/Bubbler-BmouqAcE.js @@ -1 +1 @@ -import{Bubble as S}from"./index-CKLG1pGI.js";import{L as _,K as E,q as D,a3 as m,t as B,C as j,Q as q,r as T,a4 as H,a5 as P,a6 as w,S as O,Y as L,a2 as W}from"./index-CbDPnSIu.js";import{E as A}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as F,R as I}from"./Ranges-D6O5nK3L.js";import"./OptionsColor-uNQKa8qH.js";function R(y,i,e,n){if(i>=e){const o=y+(i-e)*n;return _(o,y,i)}else if(i{var b;const e=this.container,n=e.actualOptions,o=e.interactivity.mouse.clickPosition,s=n.interactivity.modes.bubble;if(!s||!o)return;e.bubble||(e.bubble={});const t=e.retina.bubbleModeDistance;if(!t||tthis.isEnabled(l)),{bubble:u}=e;for(const l of a){if(!u.clicking)continue;l.bubble.inRange=!u.durationEnd;const c=l.getPosition(),f=E(c,o),d=(new Date().getTime()-(e.interactivity.mouse.clickTime??K))/D;d>s.duration&&(u.durationEnd=!0),d>s.duration*Q&&(u.clicking=!1,u.durationEnd=!1);const p={bubbleObj:{optValue:e.retina.bubbleModeSize,value:l.bubble.radius},particlesObj:{optValue:m(l.options.size.value)*e.retina.pixelRatio,value:l.size.value},type:"size"};this._process(l,f,d,p);const r={bubbleObj:{optValue:s.opacity,value:l.bubble.opacity},particlesObj:{optValue:m(l.options.opacity.value),value:((b=l.opacity)==null?void 0:b.value)??k},type:"opacity"};this._process(l,f,d,r),!u.durationEnd&&f<=t?this._hoverBubbleColor(l,f):delete l.bubble.color}},this._hoverBubble=()=>{const e=this.container,n=e.interactivity.mouse.position,o=e.retina.bubbleModeDistance;if(!o||othis.isEnabled(t));for(const t of s){t.bubble.inRange=!0;const a=t.getPosition(),u=E(a,n),b=x-u/o;u<=o?b>=G&&e.interactivity.status===B&&(this._hoverBubbleSize(t,b),this._hoverBubbleOpacity(t,b),this._hoverBubbleColor(t,b)):this.reset(t),e.interactivity.status===j&&this.reset(t)}},this._hoverBubbleColor=(e,n,o)=>{const s=this.container.actualOptions,t=o??s.interactivity.modes.bubble;if(t){if(!e.bubble.finalColor){const a=t.color;if(!a)return;const u=q(a);e.bubble.finalColor=T(u)}if(e.bubble.finalColor)if(t.mix){e.bubble.color=void 0;const a=e.getFillColor();e.bubble.color=a?H(P(a,e.bubble.finalColor,x-n,n)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}},this._hoverBubbleOpacity=(e,n,o)=>{var c,f;const s=this.container,t=s.actualOptions,a=(o==null?void 0:o.opacity)??((c=t.interactivity.modes.bubble)==null?void 0:c.opacity);if(!a)return;const u=e.options.opacity.value,b=((f=e.opacity)==null?void 0:f.value)??k,l=R(b,a,m(u),n);l!==void 0&&(e.bubble.opacity=l)},this._hoverBubbleSize=(e,n,o)=>{const s=this.container,t=o!=null&&o.size?o.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(t===void 0)return;const a=m(e.options.size.value)*s.retina.pixelRatio,u=e.size.value,b=R(u,t,a,n);b!==void 0&&(e.bubble.radius=b)},this._process=(e,n,o,s)=>{const t=this.container,a=s.bubbleObj.optValue,u=t.actualOptions,b=u.interactivity.modes.bubble;if(!b||a===void 0)return;const l=b.duration,c=t.retina.bubbleModeDistance,f=s.particlesObj.optValue,d=s.bubbleObj.value,p=s.particlesObj.value??Y,r=s.type;if(!(!c||c{const s=this.container,t=document.querySelectorAll(n),a=s.actualOptions.interactivity.modes.bubble;!a||!t.length||t.forEach(u=>{const b=u,l=s.retina.pixelRatio,c={x:(b.offsetLeft+b.offsetWidth*g)*l,y:(b.offsetTop+b.offsetHeight*g)*l},f=b.offsetWidth*g*l,d=o.type==="circle"?new F(c.x,c.y,f):new I(b.offsetLeft*l,b.offsetTop*l,b.offsetWidth*l,b.offsetHeight*l),p=s.particles.quadTree.query(d,r=>this.isEnabled(r));for(const r of p){if(!d.contains(r.getPosition()))continue;r.bubble.inRange=!0;const M=a.divs,h=w(M,b);(!r.bubble.div||r.bubble.div!==b)&&(this.clear(r,e,!0),r.bubble.div=b),this._hoverBubbleSize(r,z,h),this._hoverBubbleOpacity(r,z,h),this._hoverBubbleColor(r,z,h)}})},i.bubble||(i.bubble={}),this.handleClickMode=e=>{e===v&&(i.bubble||(i.bubble={}),i.bubble.clicking=!0)}}clear(i,e,n){i.bubble.inRange&&!n||(delete i.bubble.div,delete i.bubble.opacity,delete i.bubble.radius,delete i.bubble.color)}init(){const i=this.container,e=i.actualOptions.interactivity.modes.bubble;e&&(i.retina.bubbleModeDistance=e.distance*i.retina.pixelRatio,e.size!==void 0&&(i.retina.bubbleModeSize=e.size*i.retina.pixelRatio))}interact(i){const e=this.container.actualOptions,n=e.interactivity.events,o=n.onHover,s=n.onClick,t=o.enable,a=o.mode,u=s.enable,b=s.mode,l=n.onDiv;t&&O(v,a)?this._hoverBubble():u&&O(v,b)?this._clickBubble():L(v,l,(c,f)=>this._singleSelectorHover(i,c,f))}isEnabled(i){const e=this.container,n=e.actualOptions,o=e.interactivity.mouse,s=((i==null?void 0:i.interactivity)??n.interactivity).events,{onClick:t,onDiv:a,onHover:u}=s,b=W(v,a);return b||u.enable&&o.position||t.enable&&o.clickPosition?O(v,u.mode)||O(v,t.mode)||b:!1}loadModeOptions(i,...e){i.bubble||(i.bubble=new S);for(const n of e)i.bubble.load(n==null?void 0:n.bubble)}reset(i){i.bubble.inRange=!1}}export{$ as Bubbler}; +import{Bubble as S}from"./index-Cs918U9H.js";import{L as _,K as E,q as D,a3 as m,t as B,C as j,Q as q,r as T,a4 as H,a5 as P,a6 as w,S as O,Y as L,a2 as W}from"./index-oTx0snEa.js";import{E as A}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as F,R as I}from"./Ranges-CImPpXf_.js";import"./OptionsColor-CaHN7lKC.js";function R(y,i,e,n){if(i>=e){const o=y+(i-e)*n;return _(o,y,i)}else if(i{var b;const e=this.container,n=e.actualOptions,o=e.interactivity.mouse.clickPosition,s=n.interactivity.modes.bubble;if(!s||!o)return;e.bubble||(e.bubble={});const t=e.retina.bubbleModeDistance;if(!t||tthis.isEnabled(l)),{bubble:u}=e;for(const l of a){if(!u.clicking)continue;l.bubble.inRange=!u.durationEnd;const c=l.getPosition(),f=E(c,o),d=(new Date().getTime()-(e.interactivity.mouse.clickTime??K))/D;d>s.duration&&(u.durationEnd=!0),d>s.duration*Q&&(u.clicking=!1,u.durationEnd=!1);const p={bubbleObj:{optValue:e.retina.bubbleModeSize,value:l.bubble.radius},particlesObj:{optValue:m(l.options.size.value)*e.retina.pixelRatio,value:l.size.value},type:"size"};this._process(l,f,d,p);const r={bubbleObj:{optValue:s.opacity,value:l.bubble.opacity},particlesObj:{optValue:m(l.options.opacity.value),value:((b=l.opacity)==null?void 0:b.value)??k},type:"opacity"};this._process(l,f,d,r),!u.durationEnd&&f<=t?this._hoverBubbleColor(l,f):delete l.bubble.color}},this._hoverBubble=()=>{const e=this.container,n=e.interactivity.mouse.position,o=e.retina.bubbleModeDistance;if(!o||othis.isEnabled(t));for(const t of s){t.bubble.inRange=!0;const a=t.getPosition(),u=E(a,n),b=x-u/o;u<=o?b>=G&&e.interactivity.status===B&&(this._hoverBubbleSize(t,b),this._hoverBubbleOpacity(t,b),this._hoverBubbleColor(t,b)):this.reset(t),e.interactivity.status===j&&this.reset(t)}},this._hoverBubbleColor=(e,n,o)=>{const s=this.container.actualOptions,t=o??s.interactivity.modes.bubble;if(t){if(!e.bubble.finalColor){const a=t.color;if(!a)return;const u=q(a);e.bubble.finalColor=T(u)}if(e.bubble.finalColor)if(t.mix){e.bubble.color=void 0;const a=e.getFillColor();e.bubble.color=a?H(P(a,e.bubble.finalColor,x-n,n)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}},this._hoverBubbleOpacity=(e,n,o)=>{var c,f;const s=this.container,t=s.actualOptions,a=(o==null?void 0:o.opacity)??((c=t.interactivity.modes.bubble)==null?void 0:c.opacity);if(!a)return;const u=e.options.opacity.value,b=((f=e.opacity)==null?void 0:f.value)??k,l=R(b,a,m(u),n);l!==void 0&&(e.bubble.opacity=l)},this._hoverBubbleSize=(e,n,o)=>{const s=this.container,t=o!=null&&o.size?o.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(t===void 0)return;const a=m(e.options.size.value)*s.retina.pixelRatio,u=e.size.value,b=R(u,t,a,n);b!==void 0&&(e.bubble.radius=b)},this._process=(e,n,o,s)=>{const t=this.container,a=s.bubbleObj.optValue,u=t.actualOptions,b=u.interactivity.modes.bubble;if(!b||a===void 0)return;const l=b.duration,c=t.retina.bubbleModeDistance,f=s.particlesObj.optValue,d=s.bubbleObj.value,p=s.particlesObj.value??Y,r=s.type;if(!(!c||c{const s=this.container,t=document.querySelectorAll(n),a=s.actualOptions.interactivity.modes.bubble;!a||!t.length||t.forEach(u=>{const b=u,l=s.retina.pixelRatio,c={x:(b.offsetLeft+b.offsetWidth*g)*l,y:(b.offsetTop+b.offsetHeight*g)*l},f=b.offsetWidth*g*l,d=o.type==="circle"?new F(c.x,c.y,f):new I(b.offsetLeft*l,b.offsetTop*l,b.offsetWidth*l,b.offsetHeight*l),p=s.particles.quadTree.query(d,r=>this.isEnabled(r));for(const r of p){if(!d.contains(r.getPosition()))continue;r.bubble.inRange=!0;const M=a.divs,h=w(M,b);(!r.bubble.div||r.bubble.div!==b)&&(this.clear(r,e,!0),r.bubble.div=b),this._hoverBubbleSize(r,z,h),this._hoverBubbleOpacity(r,z,h),this._hoverBubbleColor(r,z,h)}})},i.bubble||(i.bubble={}),this.handleClickMode=e=>{e===v&&(i.bubble||(i.bubble={}),i.bubble.clicking=!0)}}clear(i,e,n){i.bubble.inRange&&!n||(delete i.bubble.div,delete i.bubble.opacity,delete i.bubble.radius,delete i.bubble.color)}init(){const i=this.container,e=i.actualOptions.interactivity.modes.bubble;e&&(i.retina.bubbleModeDistance=e.distance*i.retina.pixelRatio,e.size!==void 0&&(i.retina.bubbleModeSize=e.size*i.retina.pixelRatio))}interact(i){const e=this.container.actualOptions,n=e.interactivity.events,o=n.onHover,s=n.onClick,t=o.enable,a=o.mode,u=s.enable,b=s.mode,l=n.onDiv;t&&O(v,a)?this._hoverBubble():u&&O(v,b)?this._clickBubble():L(v,l,(c,f)=>this._singleSelectorHover(i,c,f))}isEnabled(i){const e=this.container,n=e.actualOptions,o=e.interactivity.mouse,s=((i==null?void 0:i.interactivity)??n.interactivity).events,{onClick:t,onDiv:a,onHover:u}=s,b=W(v,a);return b||u.enable&&o.position||t.enable&&o.clickPosition?O(v,u.mode)||O(v,t.mode)||b:!1}loadModeOptions(i,...e){i.bubble||(i.bubble=new S);for(const n of e)i.bubble.load(n==null?void 0:n.bubble)}reset(i){i.bubble.inRange=!1}}export{$ as Bubbler}; diff --git a/dist/assets/CanvasUtils-CgNwHWHl.js b/dist/assets/CanvasUtils-C_06btl7.js similarity index 97% rename from dist/assets/CanvasUtils-CgNwHWHl.js rename to dist/assets/CanvasUtils-C_06btl7.js index 219e9b5..fbff6ed 100644 --- a/dist/assets/CanvasUtils-CgNwHWHl.js +++ b/dist/assets/CanvasUtils-C_06btl7.js @@ -1 +1 @@ -import{n as P}from"./index-CbDPnSIu.js";const c={x:0,y:0};function W(r,t,a){r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(a.x,a.y),r.closePath()}function T(r,t,a){r.fillStyle=a??"rgba(0,0,0,0)",r.fillRect(c.x,c.y,t.width,t.height)}function A(r,t,a,e){a&&(r.globalAlpha=e,r.drawImage(a,c.x,c.y,t.width,t.height),r.globalAlpha=1)}function O(r,t){r.clearRect(c.x,c.y,t.width,t.height)}function v(r){const{container:t,context:a,particle:e,delta:s,colorStyles:i,backgroundMask:n,composite:l,radius:o,opacity:u,shadow:f,transform:h}=r,m=e.getPosition(),x=0,y=e.rotation+(e.pathRotation?e.velocity.angle:x),p={sin:Math.sin(y),cos:Math.cos(y)},w=1,d={a:p.cos*(h.a??w),b:p.sin*(h.b??w),c:-p.sin*(h.c??w),d:p.cos*(h.d??w)};a.setTransform(d.a,d.b,d.c,d.d,m.x,m.y),n&&(a.globalCompositeOperation=l);const D=e.shadowColor;f.enable&&D&&(a.shadowBlur=f.blur,a.shadowColor=P(D),a.shadowOffsetX=f.offset.x,a.shadowOffsetY=f.offset.y),i.fill&&(a.fillStyle=i.fill);const k=0,b=e.strokeWidth??k;a.lineWidth=b,i.stroke&&(a.strokeStyle=i.stroke);const g={container:t,context:a,particle:e,radius:o,opacity:u,delta:s,transformData:d,strokeWidth:b};S(g),C(g),R(g),a.globalCompositeOperation="source-over",a.resetTransform()}function R(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.effect)return;const o=t.effectDrawers.get(e.effect);o&&o.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function S(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,strokeWidth:l,transformData:o}=r,u=0;if(!e.shape)return;const f=t.shapeDrawers.get(e.shape);f&&(a.beginPath(),f.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...o}}),e.shapeClose&&a.closePath(),l>u&&a.stroke(),e.shapeFill&&a.fill())}function C(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.shape)return;const o=t.shapeDrawers.get(e.shape);o!=null&&o.afterDraw&&o.afterDraw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function M(r,t,a){t.draw&&t.draw(r,a)}function B(r,t,a,e){t.drawParticle&&t.drawParticle(r,a,e)}function I(r,t,a){return{h:r.h,s:r.s,l:r.l+(t==="darken"?-1:1)*a}}export{A as a,B as b,O as c,v as d,M as e,I as f,W as g,T as p}; +import{n as P}from"./index-oTx0snEa.js";const c={x:0,y:0};function W(r,t,a){r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(a.x,a.y),r.closePath()}function T(r,t,a){r.fillStyle=a??"rgba(0,0,0,0)",r.fillRect(c.x,c.y,t.width,t.height)}function A(r,t,a,e){a&&(r.globalAlpha=e,r.drawImage(a,c.x,c.y,t.width,t.height),r.globalAlpha=1)}function O(r,t){r.clearRect(c.x,c.y,t.width,t.height)}function v(r){const{container:t,context:a,particle:e,delta:s,colorStyles:i,backgroundMask:n,composite:l,radius:o,opacity:u,shadow:f,transform:h}=r,m=e.getPosition(),x=0,y=e.rotation+(e.pathRotation?e.velocity.angle:x),p={sin:Math.sin(y),cos:Math.cos(y)},w=1,d={a:p.cos*(h.a??w),b:p.sin*(h.b??w),c:-p.sin*(h.c??w),d:p.cos*(h.d??w)};a.setTransform(d.a,d.b,d.c,d.d,m.x,m.y),n&&(a.globalCompositeOperation=l);const D=e.shadowColor;f.enable&&D&&(a.shadowBlur=f.blur,a.shadowColor=P(D),a.shadowOffsetX=f.offset.x,a.shadowOffsetY=f.offset.y),i.fill&&(a.fillStyle=i.fill);const k=0,b=e.strokeWidth??k;a.lineWidth=b,i.stroke&&(a.strokeStyle=i.stroke);const g={container:t,context:a,particle:e,radius:o,opacity:u,delta:s,transformData:d,strokeWidth:b};S(g),C(g),R(g),a.globalCompositeOperation="source-over",a.resetTransform()}function R(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.effect)return;const o=t.effectDrawers.get(e.effect);o&&o.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function S(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,strokeWidth:l,transformData:o}=r,u=0;if(!e.shape)return;const f=t.shapeDrawers.get(e.shape);f&&(a.beginPath(),f.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...o}}),e.shapeClose&&a.closePath(),l>u&&a.stroke(),e.shapeFill&&a.fill())}function C(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.shape)return;const o=t.shapeDrawers.get(e.shape);o!=null&&o.afterDraw&&o.afterDraw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function M(r,t,a){t.draw&&t.draw(r,a)}function B(r,t,a,e){t.drawParticle&&t.drawParticle(r,a,e)}function I(r,t,a){return{h:r.h,s:r.s,l:r.l+(t==="darken"?-1:1)*a}}export{A as a,B as b,O as c,v as d,M as e,I as f,W as g,T as p}; diff --git a/dist/assets/CircleDrawer-DwcaGyny.js b/dist/assets/CircleDrawer-CCZLkeBE.js similarity index 86% rename from dist/assets/CircleDrawer-DwcaGyny.js rename to dist/assets/CircleDrawer-CCZLkeBE.js index 370d39a..9af48d7 100644 --- a/dist/assets/CircleDrawer-DwcaGyny.js +++ b/dist/assets/CircleDrawer-CCZLkeBE.js @@ -1 +1 @@ -import{j as m,G as c}from"./index-CbDPnSIu.js";const o=2,s=Math.PI*o,g=0,t={x:0,y:0};function x(r){const{context:i,particle:e,radius:a}=r;e.circleRange||(e.circleRange={min:g,max:s});const n=e.circleRange;i.arc(t.x,t.y,a,n.min,n.max,!1)}const d=12,u=360,l=0;class f{draw(i){x(i)}getSidesCount(){return d}particleInit(i,e){const a=e.shapeData,n=(a==null?void 0:a.angle)??{max:u,min:l};e.circleRange=m(n)?{min:c(n.min),max:c(n.max)}:{min:l,max:c(n)}}}export{f as CircleDrawer}; +import{j as m,G as c}from"./index-oTx0snEa.js";const o=2,s=Math.PI*o,g=0,t={x:0,y:0};function x(r){const{context:i,particle:e,radius:a}=r;e.circleRange||(e.circleRange={min:g,max:s});const n=e.circleRange;i.arc(t.x,t.y,a,n.min,n.max,!1)}const d=12,u=360,l=0;class f{draw(i){x(i)}getSidesCount(){return d}particleInit(i,e){const a=e.shapeData,n=(a==null?void 0:a.angle)??{max:u,min:l};e.circleRange=m(n)?{min:c(n.min),max:c(n.max)}:{min:l,max:c(n)}}}export{f as CircleDrawer}; diff --git a/dist/assets/Collider-D3jNlpTg.js b/dist/assets/Collider-CHVutL-A.js similarity index 96% rename from dist/assets/Collider-D3jNlpTg.js rename to dist/assets/Collider-CHVutL-A.js index 080404c..1b7a4a6 100644 --- a/dist/assets/Collider-D3jNlpTg.js +++ b/dist/assets/Collider-CHVutL-A.js @@ -1 +1 @@ -import{L as R,Z as m,$ as l,H as h,K as x}from"./index-CbDPnSIu.js";import{P}from"./ParticlesInteractorBase-vfDeBun3.js";const M=.5,v=10,S=0;function u(e,i,n,t,o,s){const d=R(e.options.collisions.absorb.speed*o.factor/v,S,t);e.size.value+=d*M,n.size.value-=d,t<=s&&(n.size.value=0,n.destroy())}function k(e,i,n,t){const o=e.getRadius(),s=i.getRadius();o===void 0&&s!==void 0?e.destroy():o!==void 0&&s===void 0?i.destroy():o!==void 0&&s!==void 0&&(o>=s?u(e,o,i,s,n,t):u(i,s,e,o,n,t))}const f=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=h(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function b(e,i){m(l(e),l(i)),f(e),f(i)}function z(e,i){!e.unbreakable&&!i.unbreakable&&b(e,i),e.getRadius()===void 0&&i.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&i.getRadius()===void 0?i.destroy():e.getRadius()!==void 0&&i.getRadius()!==void 0&&(e.getRadius()>=i.getRadius()?i:e).destroy()}function B(e,i,n,t){switch(e.options.collisions.mode){case"absorb":{k(e,i,n,t);break}case"bounce":{b(e,i);break}case"destroy":{z(e,i);break}}}const q=2;class F extends P{constructor(i){super(i)}clear(){}init(){}interact(i,n){if(i.destroyed||i.spawning)return;const t=this.container,o=i.getPosition(),s=i.getRadius(),d=t.particles.quadTree.queryCircle(o,s*q);for(const a of d){if(i===a||!a.options.collisions.enable||i.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const r=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(o.z)-Math.round(r.z))>s+c)continue;const g=x(o,r),y=s+c;g>y||B(i,a,n,t.retina.pixelRatio)}}isEnabled(i){return i.options.collisions.enable}reset(){}}export{F as Collider}; +import{L as R,Z as m,$ as l,H as h,K as x}from"./index-oTx0snEa.js";import{P}from"./ParticlesInteractorBase-vfDeBun3.js";const M=.5,v=10,S=0;function u(e,i,n,t,o,s){const d=R(e.options.collisions.absorb.speed*o.factor/v,S,t);e.size.value+=d*M,n.size.value-=d,t<=s&&(n.size.value=0,n.destroy())}function k(e,i,n,t){const o=e.getRadius(),s=i.getRadius();o===void 0&&s!==void 0?e.destroy():o!==void 0&&s===void 0?i.destroy():o!==void 0&&s!==void 0&&(o>=s?u(e,o,i,s,n,t):u(i,s,e,o,n,t))}const f=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=h(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function b(e,i){m(l(e),l(i)),f(e),f(i)}function z(e,i){!e.unbreakable&&!i.unbreakable&&b(e,i),e.getRadius()===void 0&&i.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&i.getRadius()===void 0?i.destroy():e.getRadius()!==void 0&&i.getRadius()!==void 0&&(e.getRadius()>=i.getRadius()?i:e).destroy()}function B(e,i,n,t){switch(e.options.collisions.mode){case"absorb":{k(e,i,n,t);break}case"bounce":{b(e,i);break}case"destroy":{z(e,i);break}}}const q=2;class F extends P{constructor(i){super(i)}clear(){}init(){}interact(i,n){if(i.destroyed||i.spawning)return;const t=this.container,o=i.getPosition(),s=i.getRadius(),d=t.particles.quadTree.queryCircle(o,s*q);for(const a of d){if(i===a||!a.options.collisions.enable||i.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const r=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(o.z)-Math.round(r.z))>s+c)continue;const g=x(o,r),y=s+c;g>y||B(i,a,n,t.retina.pixelRatio)}}isEnabled(i){return i.options.collisions.enable}reset(){}}export{F as Collider}; diff --git a/dist/assets/ColorUpdater-DoYghHGj.js b/dist/assets/ColorUpdater-8XTLckPk.js similarity index 88% rename from dist/assets/ColorUpdater-DoYghHGj.js rename to dist/assets/ColorUpdater-8XTLckPk.js index d4a30ae..4332022 100644 --- a/dist/assets/ColorUpdater-DoYghHGj.js +++ b/dist/assets/ColorUpdater-8XTLckPk.js @@ -1 +1 @@ -import{r as a,ac as t,ad as d}from"./index-CbDPnSIu.js";class u{constructor(n){this.container=n}init(n){const e=a(n.options.color,n.id,n.options.reduceDuplicates);e&&(n.color=t(e,n.options.color.animation,this.container.retina.reduceFactor))}isEnabled(n){const{h:e,s:i,l:s}=n.options.color.animation,{color:o}=n;return!n.destroyed&&!n.spawning&&((o==null?void 0:o.h.value)!==void 0&&e.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&s.enable)}update(n,e){d(n.color,e)}}export{u as ColorUpdater}; +import{r as a,ac as t,ad as d}from"./index-oTx0snEa.js";class u{constructor(n){this.container=n}init(n){const e=a(n.options.color,n.id,n.options.reduceDuplicates);e&&(n.color=t(e,n.options.color.animation,this.container.retina.reduceFactor))}isEnabled(n){const{h:e,s:i,l:s}=n.options.color.animation,{color:o}=n;return!n.destroyed&&!n.spawning&&((o==null?void 0:o.h.value)!==void 0&&e.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&s.enable)}update(n,e){d(n.color,e)}}export{u as ColorUpdater}; diff --git a/dist/assets/Connector-DcjojRCq.js b/dist/assets/Connector-CjpfQzEL.js similarity index 90% rename from dist/assets/Connector-DcjojRCq.js rename to dist/assets/Connector-CjpfQzEL.js index 8fbe00f..fdee798 100644 --- a/dist/assets/Connector-DcjojRCq.js +++ b/dist/assets/Connector-CjpfQzEL.js @@ -1 +1 @@ -import{Connect as x}from"./index-DMU0kD1I.js";import{g as C}from"./CanvasUtils-CgNwHWHl.js";import{a5 as R,g as m,L as P,n as S,S as O}from"./index-CbDPnSIu.js";import{E as k}from"./ExternalInteractorBase-CIi3zRdK.js";const y=0,v=1,w=0;function D(i,t,n,o){const e=Math.floor(n.getRadius()/t.getRadius()),s=t.getFillColor(),a=n.getFillColor();if(!s||!a)return;const d=t.getPosition(),r=n.getPosition(),l=R(s,a,t.getRadius(),n.getRadius()),c=i.createLinearGradient(d.x,d.y,r.x,r.y);return c.addColorStop(y,m(s,o)),c.addColorStop(P(e,y,v),S(l,o)),c.addColorStop(v,m(a,o)),c}function E(i,t,n,o,e){C(i,o,e),i.lineWidth=t,i.strokeStyle=n,i.stroke()}function L(i,t,n,o){const e=i.actualOptions,s=e.interactivity.modes.connect;if(s)return D(t,n,o,s.links.opacity)}function F(i,t,n){i.canvas.draw(o=>{const e=L(i,o,t,n);if(!e)return;const s=t.getPosition(),a=n.getPosition();E(o,t.retina.linksWidth??w,e,s,a)})}const H="connect",M=0;class B extends k{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const o=t.interactivity.mouse.position,{connectModeDistance:e,connectModeRadius:s}=t.retina;if(!e||ethis.isEnabled(r));d.forEach((r,l)=>{const c=r.getPosition(),p=1;for(const u of d.slice(l+p)){const f=u.getPosition(),g=Math.abs(e),h=Math.abs(c.x-f.x),b=Math.abs(c.y-f.y);h{const e=L(i,o,t,n);if(!e)return;const s=t.getPosition(),a=n.getPosition();E(o,t.retina.linksWidth??w,e,s,a)})}const H="connect",M=0;class B extends k{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const o=t.interactivity.mouse.position,{connectModeDistance:e,connectModeRadius:s}=t.retina;if(!e||ethis.isEnabled(r));d.forEach((r,l)=>{const c=r.getPosition(),p=1;for(const u of d.slice(l+p)){const f=u.getPosition(),g=Math.abs(e),h=Math.abs(c.x-f.x),b=Math.abs(c.y-f.y);h{const s=new fe;return s.load(i),s})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class zt{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Me{constructor(e,t){this.detectsOn="window",this.events=new wt,this.modes=new zt(e,t)}load(e){if(!e)return;const t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}const de=50;class xt{load(e){e&&(e.position&&(this.position={x:e.position.x??de,y:e.position.y??de,mode:e.position.mode??"percent"}),e.options&&(this.options=w({},e.options)))}}class Ot{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=w({},e.options)))}}class Ct{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Pt{constructor(){this.name="",this.default=new Ct}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=w({},e.options)))}}class kt{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Rt{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class pe extends Z{constructor(){super(),this.value=1}}class Ee{constructor(){this.horizontal=new pe,this.vertical=new pe}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class St{constructor(){this.absorb=new kt,this.bounce=new Ee,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Rt}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Tt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Mt{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=b(e.offset)),e.value!==void 0&&(this.value=b(e.value)))}}class Et{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=b(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;t!==void 0&&(this.rotate.x=t);const i=e.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class It{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Dt{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)))}}class Lt{constructor(){this.clamp=!0,this.delay=new Z,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=w(this.options,e.options)))}}class Ft{load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class At{constructor(){this.enable=!1,this.length=10,this.fill=new Ft}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}class Vt{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Bt{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=w({},e.position)))}}class Ht{constructor(){this.angle=new Mt,this.attract=new Et,this.center=new It,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Dt,this.path=new Lt,this.outModes=new Vt,this.random=!1,this.size=!1,this.speed=2,this.spin=new Bt,this.straight=!1,this.trail=new At,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(ie(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=b(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=ie(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=b(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;t!==void 0&&(Fe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=b(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Ut extends Se{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Wt extends Te{constructor(){super(),this.animation=new Ut,this.value=1}load(e){if(!e)return;super.load(e);const t=e.animation;t!==void 0&&this.animation.load(t)}}class qt{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const t=e.width;t!==void 0&&(this.width=t);const i=e.height;i!==void 0&&(this.height=i)}}class Gt{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Xt{constructor(){this.density=new qt,this.limit=new Gt,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}class Yt{constructor(){this.blur=0,this.color=new R,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=R.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}class Nt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class $t extends Se{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Zt extends Te{constructor(){super(),this.animation=new $t,this.value=3}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&this.animation.load(t)}}class me{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=F.create(this.color,e.color)),e.width!==void 0&&(this.width=b(e.width)),e.opacity!==void 0&&(this.opacity=b(e.opacity)))}}class jt extends Z{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class Qt{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Ee,this.collisions=new St,this.color=new F,this.color.value="#fff",this.effect=new Tt,this.groups={},this.move=new Ht,this.number=new Xt,this.opacity=new Wt,this.reduceDuplicates=!1,this.shadow=new Yt,this.shape=new Nt,this.size=new Zt,this.stroke=new me,this.zIndex=new jt}load(e){if(!e)return;if(e.groups!==void 0)for(const i of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,i))continue;const s=e.groups[i];s!==void 0&&(this.groups[i]=w(this.groups[i]??{},s))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(F.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=w({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=W(t,i=>{const s=new me;return s.load(i),s})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const n of i)n.loadOptions&&n.loadOptions(this,e);const s=this._engine.interactors.get(this._container);if(s)for(const n of s)n.loadParticlesOptions&&n.loadParticlesOptions(this,e)}}}function Ie(l,...e){for(const t of e)l.load(t)}function De(l,e,...t){const i=new Qt(l,e);return Ie(i,...t),i}class Jt{constructor(e,t){this._findDefaultTheme=i=>this.themes.find(s=>s.default.value&&s.default.mode===i)??this.themes.find(s=>s.default.value&&s.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new dt,this.backgroundMask=new mt,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new gt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me(e,t),this.manualParticles=[],this.particles=De(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){var r,o;if(!e)return;e.preset!==void 0&&W(e.preset,h=>this._importPreset(h)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=b(e.delay));const t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=b(e.duration));const i=e.fpsLimit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const s=e.fullScreen;Ce(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(h=>{const a=new xt;return a.load(h),a})),this.particles.load(e.particles),this.style=w(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const h of n)h.loadOptions&&h.loadOptions(this,e);if(e.responsive!==void 0)for(const h of e.responsive){const a=new Ot;a.load(h),this.responsive.push(a)}if(this.responsive.sort((h,a)=>h.maxWidth-a.maxWidth),e.themes!==void 0)for(const h of e.themes){const a=this.themes.find(c=>c.name===h.name);if(a)a.load(h);else{const c=new Pt;c.load(h),this.themes.push(c)}}this.defaultThemes.dark=(r=this._findDefaultTheme("dark"))==null?void 0:r.name,this.defaultThemes.light=(o=this._findDefaultTheme("light"))==null?void 0:o.name}setResponsive(e,t,i){this.load(i);const s=this.responsive.find(n=>n.mode==="screen"&&screen?n.maxWidth>screen.availWidth:n.maxWidth*t>e);return this.load(s==null?void 0:s.options),s==null?void 0:s.maxWidth}setTheme(e){if(e){const t=this.themes.find(i=>i.name===e);t&&this.load(t.options)}else{const t=Pe("(prefers-color-scheme: dark)"),i=t&&t.matches,s=this._findDefaultTheme(i?"dark":"light");s&&this.load(s.options)}}}function Kt(l,e,t){const i=e[t],s=1;i!==void 0&&(l[t]=(l[t]??s)*i)}function ge(l,e,t=!1){if(!e)return;const i=l;if(!i)return;const s=i.style;if(s)for(const n in e){const r=e[n];r&&s.setProperty(n,r,t?"important":"")}}class ei{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{var i;for(const s of this._postDrawUpdaters)(i=s.afterDraw)==null||i.call(s,t)},this._applyPreDrawUpdaters=(t,i,s,n,r,o)=>{var h;for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:c,stroke:u}=a.getColorStyles(i,t,s,n);c&&(r.fill=c),u&&(r.stroke=u)}if(a.getTransformValues){const c=a.getTransformValues(i);for(const u in c)Kt(o,c,u)}(h=a.beforeDraw)==null||h.call(a,i)}},this._applyResizePlugins=()=>{var t;for(const i of this._resizePlugins)(t=i.resize)==null||t.call(i)},this._getPluginParticleColors=t=>{let i,s;for(const n of this._colorPlugins)if(!i&&n.particleFillColor&&(i=se(n.particleFillColor(t))),!s&&n.particleStrokeColor&&(s=se(n.particleStrokeColor(t))),i&&s)break;return[i,s]},this._initCover=async()=>{const t=this.container.actualOptions,i=t.backgroundMask.cover,s=i.color;if(s){const n=V(s);if(n){const r={...n,a:i.opacity};this._coverColorStyle=q(r,r.a)}}else await new Promise((n,r)=>{if(!i.image)return;const o=document.createElement("img");o.addEventListener("load",()=>{this._coverImage={image:o,opacity:i.opacity},n()}),o.addEventListener("error",h=>{r(h.error)}),o.src=i.image})},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=w({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const s in i.style){if(!s||!i.style)continue;const n=i.style[s];n&&t.style.setProperty(s,n,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions,i=t.particles.move.trail,s=i.fill;if(!i.enable)return;const n=1,r=n/i.length;if(s.color){const o=V(s.color);if(!o)return;this._trailFill={color:{...o},opacity:r}}else await new Promise((o,h)=>{if(!s.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:r},o()}),a.addEventListener("error",c=>{h(c.error)}),a.src=s.image})},this._paintBase=t=>{this.draw(i=>st(i,this.size,t))},this._paintImage=(t,i)=>{this.draw(s=>nt(s,this.size,t,i))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&ge(t,i)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;ge(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>0&&i?i.color?this._paintBase(q(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):e.clear&&this.draw(n=>{G(n,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e==null||e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const n=e.getFillColor(),r=e.getStrokeColor()??n;let[o,h]=this._getPluginParticleColors(e);o||(o=n),h||(h=r),!(!o&&!h)&&this.draw(a=>{var I;const c=this.container,u=c.actualOptions,f=e.options.zIndex,m=1,d=m-e.zIndexFactor,p=d**f.opacityRate,y=1,C=e.bubble.opacity??((I=e.opacity)==null?void 0:I.value)??y,P=e.strokeOpacity??C,M=C*p,E=P*p,v={},g={fill:o?ne(o,M):void 0};g.stroke=h?ne(h,E):g.fill,this._applyPreDrawUpdaters(a,e,i,M,g,v),ot({container:c,context:a,particle:e,delta:t,colorStyles:g,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:i*d**f.sizeRate,opacity:M,shadow:e.options.shadow,transform:v}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,i){this.draw(s=>rt(s,e,t,i))}drawPlugin(e,t){this.draw(i=>ht(i,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Ae(e=>{for(const t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){B().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,t=e.background,i=this.element;if(!i)return;const s=i.style;if(s){if(t.color){const n=V(t.color);s.backgroundColor=n?q(n,t.opacity):""}else s.backgroundColor="";s.backgroundImage=t.image||"",s.backgroundPosition=t.position||"",s.backgroundRepeat=t.repeat||"",s.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&oe in e.dataset?e.dataset[oe]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=w({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(G(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,t=e.retina.pixelRatio,i=e.canvas.size,s={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*t,this.element.height=i.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>G(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}const _e=2;function O(l,e,t,i,s){if(i){let n={passive:!0};Ce(s)?n.capture=s:s!==void 0&&(n=s),l.addEventListener(e,t,n)}else{const n=s;l.removeEventListener(e,t,n)}}class ti{constructor(e){this.container=e,this._doMouseTouchClick=t=>{const i=this.container,s=i.actualOptions;if(this._canPush){const n=i.interactivity.mouse,r=n.position;if(!r)return;n.clickPosition={...r},n.clickTime=new Date().getTime();const o=s.interactivity.events.onClick;W(o.mode,h=>this.container.handleClickMode(h))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{const i=t,s=this.container,n=s.options,r=n.defaultThemes,o=i.matches?r.dark:r.light,h=n.themes.find(a=>a.name===o);h&&h.default.auto&&s.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*k)},this._manageInteractivityListeners=(t,i)=>{const s=this._handlers,n=this.container,r=n.actualOptions,o=n.interactivity.element;if(!o)return;const h=o,a=n.canvas.element;a&&(a.style.pointerEvents=h===a?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(O(o,re,s.mouseMove,i),O(o,Ve,s.touchStart,i),O(o,Be,s.touchMove,i),r.interactivity.events.onClick.enable?(O(o,he,s.touchEndClick,i),O(o,He,s.mouseUp,i),O(o,Ue,s.mouseDown,i)):O(o,he,s.touchEnd,i),O(o,t,s.mouseLeave,i),O(o,We,s.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,s=this.container,n=s.actualOptions,r=n.interactivity.detectsOn,o=s.canvas.element;let h=ae;r==="window"?(s.interactivity.element=window,h=Xe):r==="parent"&&o?s.interactivity.element=o.parentElement??o.parentNode:s.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(h,t),document&&O(document,qe,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers,s=Pe("(prefers-color-scheme: dark)");if(s){if(s.addEventListener!==void 0){O(s,"change",i.themeChange,t);return}s.addListener!==void 0&&(t?s.addListener(i.oldThemeChange):s.removeListener(i.oldThemeChange))}},this._manageResize=t=>{const i=this._handlers,s=this.container;if(!s.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){O(window,Ge,i.resize,t);return}const r=s.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(o=>{o.find(a=>a.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,s=i.actualOptions,{mouse:n}=i.interactivity;n.inside=!0;let r=!1;const o=n.position;if(!(!o||!s.interactivity.events.onClick.enable)){for(const[,h]of i.plugins)if(h.clickPositionValid&&(r=h.clickPositionValid(o),r))break;r||this._doMouseTouchClick(t),n.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=ae,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,s=i.actualOptions,n=i.interactivity,r=i.canvas.element;if(!(n!=null&&n.element))return;n.mouse.inside=!0;let o;if(t.type.startsWith("pointer")){this._canPush=!0;const a=t;if(n.element===window){if(r){const c=r.getBoundingClientRect();o={x:a.clientX-c.left,y:a.clientY-c.top}}}else if(s.interactivity.detectsOn==="parent"){const c=a.target,u=a.currentTarget;if(c&&u&&r){const f=c.getBoundingClientRect(),m=u.getBoundingClientRect(),d=r.getBoundingClientRect();o={x:a.offsetX+_e*f.left-(m.left+d.left),y:a.offsetY+_e*f.top-(m.top+d.top)}}else o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY}}else a.target===r&&(o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY})}else if(this._canPush=t.type!=="touchmove",r){const a=t,c=1,u=a.touches[a.touches.length-c],f=r.getBoundingClientRect(),m=0;o={x:u.clientX-(f.left??m),y:u.clientY-(f.top??m)}}const h=i.retina.pixelRatio;o&&(o.x*=h,o.y*=h),n.mouse.position=o,n.status=re},this._touchEnd=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.set(n.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ii{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){var t;for(const i of this._externalInteractors)(t=i.handleClickMode)==null||t.call(i,e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(const i of this._externalInteractors)i.clear(e,t);for(const i of this._particleInteractors)i.isEnabled(e)&&i.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}const ye=0,$=2,A=.5,si=2;function ni(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function oi(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function ve(l){if(!et(l.outMode,l.checkModes))return;const e=l.radius*$;l.coord>l.maxCoord-e?l.setCb(-l.radius):l.coord{for(const[,d]of i.plugins){const p=d.particlePosition!==void 0?d.particlePosition(s,this):void 0;if(p)return le.create(p.x,p.y,n)}const o=i.canvas.size,h=Ye({size:o,position:s}),a=le.create(h.x,h.y,n),c=this.getRadius(),u=this.options.move.outModes,f=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.x,maxCoord:i.canvas.size.width,setCb:p=>a.x+=p,radius:c})},m=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.y,maxCoord:i.canvas.size.height,setCb:p=>a.y+=p,radius:c})};return f(u.left??u.default),f(u.right??u.default),m(u.top??u.default),m(u.bottom??u.default),this._checkOverlap(a,r)?this._calcPosition(i,void 0,n,r+1):a},this._calculateVelocity=()=>{const i=Ne(this.direction),s=i.copy(),n=this.options.move;if(n.direction==="inside"||n.direction==="outside")return s;const r=ce(x(n.angle.value)),o=ce(x(n.angle.offset)),h={left:o-r*A,right:o+r*A};return n.straight||(s.angle+=$e(b(h.left,h.right))),n.random&&typeof n.speed=="number"&&(s.length*=Ze()),s},this._checkOverlap=(i,s=ye)=>{const n=this.options.collisions,r=this.getRadius();if(!n.enable)return!1;const o=n.overlap;if(o.enable)return!1;const h=o.retries;if(h>=0&&s>h)throw new Error(`${H} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>ke(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const s=1,n=0,r=this.roll.horizontal&&this.roll.vertical?$*s:s,o=this.roll.horizontal?Math.PI*A:n;return Math.floor(((this.roll.angle??n)+o)/(Math.PI/r))%$?this.backColor?this.backColor:this.roll.alter?at(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const s=this.container,n=x(this.options.zIndex.value),r=0;this.position=this._calcPosition(s,i,je(n,r,s.zLayers)),this.initialPosition=this.position.copy();const o=s.canvas.size,h=0;switch(this.moveCenter={...Re(this.options.move.center,o),radius:this.options.move.center.radius??h,mode:this.options.move.center.mode??"percent"},this.direction=Qe(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Je.origin},this._engine=e}destroy(e){var n,r,o;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,i=this.pathGenerator,s=t.shapeDrawers.get(this.shape);(n=s==null?void 0:s.particleDestroy)==null||n.call(s,this);for(const[,h]of t.plugins)(r=h.particleDestroyed)==null||r.call(h,this,e);for(const h of t.particles.updaters)(o=h.particleDestroyed)==null||o.call(h,this,e);i==null||i.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){const t=this.container,i=t.canvas;for(const[,s]of t.plugins)i.drawParticlePlugin(s,this,e);i.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??ue(this.color))}getMass(){return this.getRadius()**si*Math.PI*A}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ue(this.strokeColor))}init(e,t,i,s){var j,Q,J,K,ee,te;const n=this.container,r=this._engine;this.id=e,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const o=n.retina.pixelRatio,h=n.actualOptions,a=De(this._engine,n,h.particles),c=a.effect.type,u=a.shape.type,{reduceDuplicates:f}=a;this.effect=T(c,this.id,f),this.shape=T(u,this.id,f);const m=a.effect,d=a.shape;if(i){if((j=i.effect)!=null&&j.type){const z=i.effect.type,D=T(z,this.id,f);D&&(this.effect=D,m.load(i.effect))}if((Q=i.shape)!=null&&Q.type){const z=i.shape.type,D=T(z,this.id,f);D&&(this.shape=D,d.load(i.shape))}}this.effectData=ni(this.effect,m,this.id,f),this.shapeData=oi(this.shape,d,this.id,f),a.load(i);const p=this.effectData;p&&a.load(p.particles);const y=this.shapeData;y&&a.load(y.particles);const C=new Me(r,n);C.load(n.actualOptions.interactivity),C.load(a.interactivity),this.interactivity=C,this.effectFill=(p==null?void 0:p.fill)??a.effect.fill,this.effectClose=(p==null?void 0:p.close)??a.effect.close,this.shapeFill=(y==null?void 0:y.fill)??a.shape.fill,this.shapeClose=(y==null?void 0:y.close)??a.shape.close,this.options=a;const P=this.options.move.path;this.pathDelay=x(P.delay.value)*k,P.generator&&(this.pathGenerator=this._engine.getPathGenerator(P.generator),this.pathGenerator&&n.addPath(P.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=Ke(this.options.size,o),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const M=1;this.moveDecay=M-x(this.options.move.decay);const E=n.particles;E.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let v=n.effectDrawers.get(this.effect);v||(v=this._engine.getEffectDrawer(this.effect),v&&n.effectDrawers.set(this.effect,v)),v!=null&&v.loadEffect&&v.loadEffect(this);let g=n.shapeDrawers.get(this.shape);g||(g=this._engine.getShapeDrawer(this.shape),g&&n.shapeDrawers.set(this.shape,g)),g!=null&&g.loadShape&&g.loadShape(this);const I=g==null?void 0:g.getSidesCount;I&&(this.sides=I(this)),this.spawning=!1,this.shadowColor=V(this.options.shadow.color);for(const z of E.updaters)z.init(this);for(const z of E.movers)(J=z.init)==null||J.call(z,this);(K=v==null?void 0:v.particleInit)==null||K.call(v,n,this),(ee=g==null?void 0:g.particleInit)==null||ee.call(g,n,this);for(const[,z]of n.plugins)(te=z.particleCreated)==null||te.call(z,this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,i=this.position;return i.x>=-e&&i.y>=-e&&i.y<=t.height+e&&i.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var e;for(const t of this.container.particles.updaters)(e=t.reset)==null||e.call(t,this)}}const L=.5,hi=2,ai=4;class U{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:i,y:s}=this.rectangle.position,{width:n,height:r}=this.rectangle.size,{capacity:o}=this;for(let h=0;ht.insert(e))):!1}query(e,t){const i=[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&ke(e.position,s.position)>s.particle.getRadius()&&(!t||t(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(e,t));return i}queryCircle(e,t,i){return this.query(new ct(e.x,e.y,t),i)}queryRectangle(e,t,i){return this.query(new N(e.x,e.y,t.width,t.height),i)}}const be=4,li=2,ci=1,we=l=>{const{height:e,width:t}=l,i=-.25,s=1.5;return new N(i*t,i*e,s*t,s*e)};class ui{constructor(e,t){this._addToPool=(...s)=>{for(const n of s)this._pool.push(n)},this._applyDensity=(s,n,r)=>{var d;const o=s.number;if(!((d=s.number.density)!=null&&d.enable)){r===void 0?this._limit=o.limit.value:o.limit&&this._groupLimits.set(r,o.limit.value);return}const h=this._initDensityFactor(o.density),a=o.value,c=0,u=o.limit.value>c?o.limit.value:a,f=Math.min(a,u)*h+n,m=Math.min(this.count,this.filter(p=>p.group===r).length);r===void 0?this._limit=o.limit.value*h:this._groupLimits.set(r,o.limit.value*h),mf&&this.removeQuantity(m-f,r)},this._initDensityFactor=s=>{const n=this._container,r=1;if(!n.canvas.element||!s.enable)return r;const o=n.canvas.element,h=n.retina.pixelRatio;return o.width*o.height/(s.height*s.width*h**li)},this._pushParticle=(s,n,r,o)=>{try{let h=this._pool.pop();h||(h=new ri(this._engine,this._container)),h.init(this._nextId,s,n,r);let a=!0;return o&&(a=o(h)),a?(this._array.push(h),this._zArray.push(h),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:h}}),h):void 0}catch(h){B().warning(`${H} adding particle: ${h}`)}},this._removeParticle=(s,n,r)=>{const o=this._array[s];if(!o||o.group!==n)return!1;const h=this._zArray.indexOf(o),a=1;return this._array.splice(s,a),this._zArray.splice(h,a),o.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:o}}),this._addToPool(o),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ii(e,t),this._pluginsInitialized=!1;const i=t.canvas.size;this.quadTree=new U(we(i),be),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container,t=e.actualOptions;for(const i of t.manualParticles)this.addParticle(i.position?Re(i.position,e.canvas.size):void 0,i.options)}addParticle(e,t,i,s){const n=this._container.actualOptions.particles.number.limit,r=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(r>0){if(n.mode==="delete"){const u=o+1-r;u>0&&this.removeQuantity(u)}else if(n.mode==="wait"&&o>=r)return}return this._pushParticle(e,t,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,i=t.canvas;i.clear(),this.update(e);for(const[,s]of t.plugins)i.drawPlugin(s,e);for(const s of this._zArray)s.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){var s;const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(i=n.particlesInitialization()),i)break;if(this.addManualParticles(),!i){const n=t.particles,r=n.groups;for(const o in r){const h=r[o];for(let a=this.count,c=0;c<((s=h.number)==null?void 0:s.value)&&athis.count)return;let r=0;for(let o=e;r!i.has(h);this._array=this.filter(o),this._zArray=this._zArray.filter(o);for(const h of i)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:h}});this._addToPool(...i)}this._interactionManager.externalInteract(e);for(const o of this._array){for(const h of this.updaters)h.update(o,e);!o.destroyed&&!o.spawning&&this._interactionManager.particlesInteract(o,e)}if(delete this._resizeFactor,this._needsSort){const o=this._zArray;o.sort((a,c)=>c.position.z-a.position.z||a.id-c.id);const h=1;this._lastZIndex=o[o.length-h].position.z,this._needsSort=!1}}}const ze=1,xe=1;class fi{constructor(e){this.container=e,this.pixelRatio=ze,this.reduceFactor=xe}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||tt()?ze:window.devicePixelRatio,this.reduceFactor=xe;const i=this.pixelRatio,s=e.canvas;if(s.element){const o=s.element;s.size.width=o.offsetWidth*i,s.size.height=o.offsetHeight*i}const n=t.particles,r=n.move;this.maxSpeed=x(r.gravity.maxSpeed)*i,this.sizeAnimationSpeed=x(n.size.animation.speed)*i}initParticle(e){const t=e.options,i=this.pixelRatio,s=t.move,n=s.distance,r=e.retina;r.moveDrift=x(s.drift)*i,r.moveSpeed=x(s.speed)*i,r.sizeAnimationSpeed=x(t.size.animation.speed)*i;const o=r.maxDistance;o.horizontal=n.horizontal!==void 0?n.horizontal*i:void 0,o.vertical=n.vertical!==void 0?n.vertical*i:void 0,r.maxSpeed=x(s.gravity.maxSpeed)*i}}function _(l){return l&&!l.destroyed}const Y=60;function di(l,e=Y,t=!1){return{value:l,factor:t?Y/e:Y*l/k}}function S(l,e,...t){const i=new Jt(l,e);return Ie(i,...t),i}class vi{constructor(e,t,i){this._intersectionManager=s=>{if(!(!_(this)||!this.actualOptions.pauseOnOutsideViewport))for(const n of s)n.target===this.interactivity.element&&(n.isIntersecting?this.play():this.pause())},this._nextFrame=s=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&sk){this.draw(!1);return}if(this.particles.draw(n),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(n){B().error(`${H} in animation loop`,n)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new fi(this),this.canvas=new ei(this),this.particles=new ui(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this),this._eventListeners=new ti(this),this._intersectionObserver=it(s=>this._intersectionManager(s)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&_(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!_(this))return;const t=this.interactivity.element;if(!t)return;const i=(u,f,m)=>{if(!_(this))return;const d=this.retina.pixelRatio,p={x:f.x*d,y:f.y*d},y=this.particles.quadTree.queryCircle(p,m*d);e(u,y)},s=u=>{if(!_(this))return;const f=u,m={x:f.offsetX||f.clientX,y:f.offsetY||f.clientY};i(u,m,1)},n=()=>{_(this)&&(a=!0,c=!1)},r=()=>{_(this)&&(c=!0)},o=u=>{if(_(this)){if(a&&!c){const f=u,m=1;let d=f.touches[f.touches.length-m];if(!d&&(d=f.changedTouches[f.changedTouches.length-m],!d))return;const p=this.canvas.element,y=p?p.getBoundingClientRect():void 0,C=0,P={x:d.clientX-(y?y.left:C),y:d.clientY-(y?y.top:C)};i(u,P,Math.max(d.radiusX,d.radiusY))}a=!1,c=!1}},h=()=>{_(this)&&(a=!1,c=!1)};let a=!1,c=!1;t.addEventListener("click",s),t.addEventListener("touchstart",n),t.addEventListener("touchmove",r),t.addEventListener("touchend",o),t.addEventListener("touchcancel",h)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,i=!1){return!_(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){var s,n;if(!_(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,r]of this.effectDrawers)(s=r.destroy)==null||s.call(r,this);for(const[,r]of this.shapeDrawers)(n=r.destroy)==null||n.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);this._engine.clearPlugins(this),this.destroyed=!0;const e=this._engine.dom(),t=e.findIndex(r=>r===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!_(this))return;let t=e;const i=s=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(s)};this._drawAnimationFrame=requestAnimationFrame(s=>i(s))}async export(e,t={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(e,t);if(s.supported)return s.blob}B().error(`${H} - Export plugin with type ${e} not found`)}handleClickMode(e){var t;if(_(this)){this.particles.handleClickMode(e);for(const[,i]of this.plugins)(t=i.handleClickMode)==null||t.call(i,e)}}async init(){var r,o,h,a;if(!_(this))return;const e=this._engine.getSupportedEffects();for(const c of e){const u=this._engine.getEffectDrawer(c);u&&this.effectDrawers.set(c,u)}const t=this._engine.getSupportedShapes();for(const c of t){const u=this._engine.getShapeDrawer(c);u&&this.shapeDrawers.set(c,u)}await this.particles.initPlugins(),this._options=S(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=S(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[c,u]of i)this.plugins.set(c,u);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=x(this.actualOptions.duration)*k,this._delay=x(this.actualOptions.delay)*k,this._lifeTime=0;const s=120,n=0;this.fpsLimit=this.actualOptions.fpsLimit>n?this.actualOptions.fpsLimit:s,this._smooth=this.actualOptions.smooth;for(const[,c]of this.effectDrawers)await((r=c.init)==null?void 0:r.call(c,this));for(const[,c]of this.shapeDrawers)await((o=c.init)==null?void 0:o.call(c,this));for(const[,c]of this.plugins)await((h=c.init)==null?void 0:h.call(c));this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,c]of this.plugins)(a=c.particlesSetup)==null||a.call(c);this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){_(this)&&(this._currentTheme=e,await this.refresh())}pause(){var e;if(_(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)(e=t.pause)==null||e.call(t);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!_(this))return;const t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(_(this))return this.stop(),this.start()}async reset(){if(_(this))return this._initialSourceOptions=void 0,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this,this._options),this.refresh()}async start(){!_(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,s]of this.plugins)await((i=s.start)==null?void 0:i.call(s));this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){var e;if(!(!_(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)(e=t.stop)==null||e.call(t);for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}export{vi as Container}; +import{s as b,d as Oe,i as Le,e as W,f as w,h as ie,j as Fe,k as Ce,l as Pe,r as se,m as V,n as q,g as ne,o as Ae,b as B,p as oe,q as k,t as re,u as Ve,v as Be,w as he,x as He,y as Ue,z as We,A as qe,B as Ge,C as ae,D as Xe,V as le,E as Ye,F as Ne,G as ce,H as x,I as $e,J as Ze,c as H,K as ke,L as je,M as Re,N as Qe,O as Je,P as ue,Q as T,R as Ke,S as et,T as tt,U as it}from"./index-oTx0snEa.js";import{p as st,a as nt,c as G,d as ot,b as rt,e as ht,f as at}from"./CanvasUtils-C_06btl7.js";import{O as R}from"./OptionsColor-CaHN7lKC.js";import{A as lt,V as Z,R as Se,a as Te}from"./ValueWithRandom-D5hQ_OLE.js";import{R as N,C as ct}from"./Ranges-CImPpXf_.js";class ut{constructor(e,t){this.position=e,this.particle=t}}class X extends lt{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),e&&e.offset!==void 0&&(this.offset=b(e.offset))}}class ft{constructor(){this.h=new X,this.s=new X,this.l=new X}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class F extends R{constructor(){super(),this.animation=new ft}static create(e,t){const i=new F;return i.load(e),t!==void 0&&(Oe(t)||Le(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&(t.enable!==void 0?this.animation.h.load(t):this.animation.load(e.animation))}}class dt{constructor(){this.color=new R,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class pt{constructor(){this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}class mt{constructor(){this.composite="destination-out",this.cover=new pt,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const t=e.cover,i=Oe(e.cover)?{color:e.cover}:e.cover;this.cover.load(t.color!==void 0||t.image!==void 0?t:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class gt{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class _t{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class fe{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(e){e&&(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}class yt{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class vt{constructor(){this.enable=!1,this.mode=[],this.parallax=new yt}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class bt{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class wt{constructor(){this.onClick=new _t,this.onDiv=new fe,this.onHover=new vt,this.resize=new bt}load(e){if(!e)return;this.onClick.load(e.onClick);const t=e.onDiv;t!==void 0&&(this.onDiv=W(t,i=>{const s=new fe;return s.load(i),s})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class zt{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Me{constructor(e,t){this.detectsOn="window",this.events=new wt,this.modes=new zt(e,t)}load(e){if(!e)return;const t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}const de=50;class xt{load(e){e&&(e.position&&(this.position={x:e.position.x??de,y:e.position.y??de,mode:e.position.mode??"percent"}),e.options&&(this.options=w({},e.options)))}}class Ot{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=w({},e.options)))}}class Ct{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Pt{constructor(){this.name="",this.default=new Ct}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=w({},e.options)))}}class kt{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Rt{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class pe extends Z{constructor(){super(),this.value=1}}class Ee{constructor(){this.horizontal=new pe,this.vertical=new pe}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class St{constructor(){this.absorb=new kt,this.bounce=new Ee,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Rt}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Tt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Mt{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=b(e.offset)),e.value!==void 0&&(this.value=b(e.value)))}}class Et{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=b(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;t!==void 0&&(this.rotate.x=t);const i=e.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class It{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Dt{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)))}}class Lt{constructor(){this.clamp=!0,this.delay=new Z,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=w(this.options,e.options)))}}class Ft{load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class At{constructor(){this.enable=!1,this.length=10,this.fill=new Ft}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}class Vt{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Bt{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=w({},e.position)))}}class Ht{constructor(){this.angle=new Mt,this.attract=new Et,this.center=new It,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Dt,this.path=new Lt,this.outModes=new Vt,this.random=!1,this.size=!1,this.speed=2,this.spin=new Bt,this.straight=!1,this.trail=new At,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(ie(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=b(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=ie(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=b(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;t!==void 0&&(Fe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=b(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Ut extends Se{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Wt extends Te{constructor(){super(),this.animation=new Ut,this.value=1}load(e){if(!e)return;super.load(e);const t=e.animation;t!==void 0&&this.animation.load(t)}}class qt{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const t=e.width;t!==void 0&&(this.width=t);const i=e.height;i!==void 0&&(this.height=i)}}class Gt{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Xt{constructor(){this.density=new qt,this.limit=new Gt,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}class Yt{constructor(){this.blur=0,this.color=new R,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=R.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}class Nt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class $t extends Se{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Zt extends Te{constructor(){super(),this.animation=new $t,this.value=3}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&this.animation.load(t)}}class me{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=F.create(this.color,e.color)),e.width!==void 0&&(this.width=b(e.width)),e.opacity!==void 0&&(this.opacity=b(e.opacity)))}}class jt extends Z{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class Qt{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Ee,this.collisions=new St,this.color=new F,this.color.value="#fff",this.effect=new Tt,this.groups={},this.move=new Ht,this.number=new Xt,this.opacity=new Wt,this.reduceDuplicates=!1,this.shadow=new Yt,this.shape=new Nt,this.size=new Zt,this.stroke=new me,this.zIndex=new jt}load(e){if(!e)return;if(e.groups!==void 0)for(const i of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,i))continue;const s=e.groups[i];s!==void 0&&(this.groups[i]=w(this.groups[i]??{},s))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(F.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=w({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=W(t,i=>{const s=new me;return s.load(i),s})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const n of i)n.loadOptions&&n.loadOptions(this,e);const s=this._engine.interactors.get(this._container);if(s)for(const n of s)n.loadParticlesOptions&&n.loadParticlesOptions(this,e)}}}function Ie(l,...e){for(const t of e)l.load(t)}function De(l,e,...t){const i=new Qt(l,e);return Ie(i,...t),i}class Jt{constructor(e,t){this._findDefaultTheme=i=>this.themes.find(s=>s.default.value&&s.default.mode===i)??this.themes.find(s=>s.default.value&&s.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new dt,this.backgroundMask=new mt,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new gt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me(e,t),this.manualParticles=[],this.particles=De(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){var r,o;if(!e)return;e.preset!==void 0&&W(e.preset,h=>this._importPreset(h)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=b(e.delay));const t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=b(e.duration));const i=e.fpsLimit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const s=e.fullScreen;Ce(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(h=>{const a=new xt;return a.load(h),a})),this.particles.load(e.particles),this.style=w(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const h of n)h.loadOptions&&h.loadOptions(this,e);if(e.responsive!==void 0)for(const h of e.responsive){const a=new Ot;a.load(h),this.responsive.push(a)}if(this.responsive.sort((h,a)=>h.maxWidth-a.maxWidth),e.themes!==void 0)for(const h of e.themes){const a=this.themes.find(c=>c.name===h.name);if(a)a.load(h);else{const c=new Pt;c.load(h),this.themes.push(c)}}this.defaultThemes.dark=(r=this._findDefaultTheme("dark"))==null?void 0:r.name,this.defaultThemes.light=(o=this._findDefaultTheme("light"))==null?void 0:o.name}setResponsive(e,t,i){this.load(i);const s=this.responsive.find(n=>n.mode==="screen"&&screen?n.maxWidth>screen.availWidth:n.maxWidth*t>e);return this.load(s==null?void 0:s.options),s==null?void 0:s.maxWidth}setTheme(e){if(e){const t=this.themes.find(i=>i.name===e);t&&this.load(t.options)}else{const t=Pe("(prefers-color-scheme: dark)"),i=t&&t.matches,s=this._findDefaultTheme(i?"dark":"light");s&&this.load(s.options)}}}function Kt(l,e,t){const i=e[t],s=1;i!==void 0&&(l[t]=(l[t]??s)*i)}function ge(l,e,t=!1){if(!e)return;const i=l;if(!i)return;const s=i.style;if(s)for(const n in e){const r=e[n];r&&s.setProperty(n,r,t?"important":"")}}class ei{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{var i;for(const s of this._postDrawUpdaters)(i=s.afterDraw)==null||i.call(s,t)},this._applyPreDrawUpdaters=(t,i,s,n,r,o)=>{var h;for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:c,stroke:u}=a.getColorStyles(i,t,s,n);c&&(r.fill=c),u&&(r.stroke=u)}if(a.getTransformValues){const c=a.getTransformValues(i);for(const u in c)Kt(o,c,u)}(h=a.beforeDraw)==null||h.call(a,i)}},this._applyResizePlugins=()=>{var t;for(const i of this._resizePlugins)(t=i.resize)==null||t.call(i)},this._getPluginParticleColors=t=>{let i,s;for(const n of this._colorPlugins)if(!i&&n.particleFillColor&&(i=se(n.particleFillColor(t))),!s&&n.particleStrokeColor&&(s=se(n.particleStrokeColor(t))),i&&s)break;return[i,s]},this._initCover=async()=>{const t=this.container.actualOptions,i=t.backgroundMask.cover,s=i.color;if(s){const n=V(s);if(n){const r={...n,a:i.opacity};this._coverColorStyle=q(r,r.a)}}else await new Promise((n,r)=>{if(!i.image)return;const o=document.createElement("img");o.addEventListener("load",()=>{this._coverImage={image:o,opacity:i.opacity},n()}),o.addEventListener("error",h=>{r(h.error)}),o.src=i.image})},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=w({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const s in i.style){if(!s||!i.style)continue;const n=i.style[s];n&&t.style.setProperty(s,n,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions,i=t.particles.move.trail,s=i.fill;if(!i.enable)return;const n=1,r=n/i.length;if(s.color){const o=V(s.color);if(!o)return;this._trailFill={color:{...o},opacity:r}}else await new Promise((o,h)=>{if(!s.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:r},o()}),a.addEventListener("error",c=>{h(c.error)}),a.src=s.image})},this._paintBase=t=>{this.draw(i=>st(i,this.size,t))},this._paintImage=(t,i)=>{this.draw(s=>nt(s,this.size,t,i))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&ge(t,i)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;ge(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>0&&i?i.color?this._paintBase(q(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):e.clear&&this.draw(n=>{G(n,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e==null||e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const n=e.getFillColor(),r=e.getStrokeColor()??n;let[o,h]=this._getPluginParticleColors(e);o||(o=n),h||(h=r),!(!o&&!h)&&this.draw(a=>{var I;const c=this.container,u=c.actualOptions,f=e.options.zIndex,m=1,d=m-e.zIndexFactor,p=d**f.opacityRate,y=1,C=e.bubble.opacity??((I=e.opacity)==null?void 0:I.value)??y,P=e.strokeOpacity??C,M=C*p,E=P*p,v={},g={fill:o?ne(o,M):void 0};g.stroke=h?ne(h,E):g.fill,this._applyPreDrawUpdaters(a,e,i,M,g,v),ot({container:c,context:a,particle:e,delta:t,colorStyles:g,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:i*d**f.sizeRate,opacity:M,shadow:e.options.shadow,transform:v}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,i){this.draw(s=>rt(s,e,t,i))}drawPlugin(e,t){this.draw(i=>ht(i,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Ae(e=>{for(const t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){B().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,t=e.background,i=this.element;if(!i)return;const s=i.style;if(s){if(t.color){const n=V(t.color);s.backgroundColor=n?q(n,t.opacity):""}else s.backgroundColor="";s.backgroundImage=t.image||"",s.backgroundPosition=t.position||"",s.backgroundRepeat=t.repeat||"",s.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&oe in e.dataset?e.dataset[oe]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=w({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(G(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,t=e.retina.pixelRatio,i=e.canvas.size,s={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*t,this.element.height=i.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>G(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}const _e=2;function O(l,e,t,i,s){if(i){let n={passive:!0};Ce(s)?n.capture=s:s!==void 0&&(n=s),l.addEventListener(e,t,n)}else{const n=s;l.removeEventListener(e,t,n)}}class ti{constructor(e){this.container=e,this._doMouseTouchClick=t=>{const i=this.container,s=i.actualOptions;if(this._canPush){const n=i.interactivity.mouse,r=n.position;if(!r)return;n.clickPosition={...r},n.clickTime=new Date().getTime();const o=s.interactivity.events.onClick;W(o.mode,h=>this.container.handleClickMode(h))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{const i=t,s=this.container,n=s.options,r=n.defaultThemes,o=i.matches?r.dark:r.light,h=n.themes.find(a=>a.name===o);h&&h.default.auto&&s.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*k)},this._manageInteractivityListeners=(t,i)=>{const s=this._handlers,n=this.container,r=n.actualOptions,o=n.interactivity.element;if(!o)return;const h=o,a=n.canvas.element;a&&(a.style.pointerEvents=h===a?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(O(o,re,s.mouseMove,i),O(o,Ve,s.touchStart,i),O(o,Be,s.touchMove,i),r.interactivity.events.onClick.enable?(O(o,he,s.touchEndClick,i),O(o,He,s.mouseUp,i),O(o,Ue,s.mouseDown,i)):O(o,he,s.touchEnd,i),O(o,t,s.mouseLeave,i),O(o,We,s.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,s=this.container,n=s.actualOptions,r=n.interactivity.detectsOn,o=s.canvas.element;let h=ae;r==="window"?(s.interactivity.element=window,h=Xe):r==="parent"&&o?s.interactivity.element=o.parentElement??o.parentNode:s.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(h,t),document&&O(document,qe,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers,s=Pe("(prefers-color-scheme: dark)");if(s){if(s.addEventListener!==void 0){O(s,"change",i.themeChange,t);return}s.addListener!==void 0&&(t?s.addListener(i.oldThemeChange):s.removeListener(i.oldThemeChange))}},this._manageResize=t=>{const i=this._handlers,s=this.container;if(!s.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){O(window,Ge,i.resize,t);return}const r=s.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(o=>{o.find(a=>a.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,s=i.actualOptions,{mouse:n}=i.interactivity;n.inside=!0;let r=!1;const o=n.position;if(!(!o||!s.interactivity.events.onClick.enable)){for(const[,h]of i.plugins)if(h.clickPositionValid&&(r=h.clickPositionValid(o),r))break;r||this._doMouseTouchClick(t),n.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=ae,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,s=i.actualOptions,n=i.interactivity,r=i.canvas.element;if(!(n!=null&&n.element))return;n.mouse.inside=!0;let o;if(t.type.startsWith("pointer")){this._canPush=!0;const a=t;if(n.element===window){if(r){const c=r.getBoundingClientRect();o={x:a.clientX-c.left,y:a.clientY-c.top}}}else if(s.interactivity.detectsOn==="parent"){const c=a.target,u=a.currentTarget;if(c&&u&&r){const f=c.getBoundingClientRect(),m=u.getBoundingClientRect(),d=r.getBoundingClientRect();o={x:a.offsetX+_e*f.left-(m.left+d.left),y:a.offsetY+_e*f.top-(m.top+d.top)}}else o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY}}else a.target===r&&(o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY})}else if(this._canPush=t.type!=="touchmove",r){const a=t,c=1,u=a.touches[a.touches.length-c],f=r.getBoundingClientRect(),m=0;o={x:u.clientX-(f.left??m),y:u.clientY-(f.top??m)}}const h=i.retina.pixelRatio;o&&(o.x*=h,o.y*=h),n.mouse.position=o,n.status=re},this._touchEnd=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.set(n.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ii{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){var t;for(const i of this._externalInteractors)(t=i.handleClickMode)==null||t.call(i,e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(const i of this._externalInteractors)i.clear(e,t);for(const i of this._particleInteractors)i.isEnabled(e)&&i.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}const ye=0,$=2,A=.5,si=2;function ni(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function oi(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function ve(l){if(!et(l.outMode,l.checkModes))return;const e=l.radius*$;l.coord>l.maxCoord-e?l.setCb(-l.radius):l.coord{for(const[,d]of i.plugins){const p=d.particlePosition!==void 0?d.particlePosition(s,this):void 0;if(p)return le.create(p.x,p.y,n)}const o=i.canvas.size,h=Ye({size:o,position:s}),a=le.create(h.x,h.y,n),c=this.getRadius(),u=this.options.move.outModes,f=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.x,maxCoord:i.canvas.size.width,setCb:p=>a.x+=p,radius:c})},m=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.y,maxCoord:i.canvas.size.height,setCb:p=>a.y+=p,radius:c})};return f(u.left??u.default),f(u.right??u.default),m(u.top??u.default),m(u.bottom??u.default),this._checkOverlap(a,r)?this._calcPosition(i,void 0,n,r+1):a},this._calculateVelocity=()=>{const i=Ne(this.direction),s=i.copy(),n=this.options.move;if(n.direction==="inside"||n.direction==="outside")return s;const r=ce(x(n.angle.value)),o=ce(x(n.angle.offset)),h={left:o-r*A,right:o+r*A};return n.straight||(s.angle+=$e(b(h.left,h.right))),n.random&&typeof n.speed=="number"&&(s.length*=Ze()),s},this._checkOverlap=(i,s=ye)=>{const n=this.options.collisions,r=this.getRadius();if(!n.enable)return!1;const o=n.overlap;if(o.enable)return!1;const h=o.retries;if(h>=0&&s>h)throw new Error(`${H} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>ke(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const s=1,n=0,r=this.roll.horizontal&&this.roll.vertical?$*s:s,o=this.roll.horizontal?Math.PI*A:n;return Math.floor(((this.roll.angle??n)+o)/(Math.PI/r))%$?this.backColor?this.backColor:this.roll.alter?at(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const s=this.container,n=x(this.options.zIndex.value),r=0;this.position=this._calcPosition(s,i,je(n,r,s.zLayers)),this.initialPosition=this.position.copy();const o=s.canvas.size,h=0;switch(this.moveCenter={...Re(this.options.move.center,o),radius:this.options.move.center.radius??h,mode:this.options.move.center.mode??"percent"},this.direction=Qe(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Je.origin},this._engine=e}destroy(e){var n,r,o;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,i=this.pathGenerator,s=t.shapeDrawers.get(this.shape);(n=s==null?void 0:s.particleDestroy)==null||n.call(s,this);for(const[,h]of t.plugins)(r=h.particleDestroyed)==null||r.call(h,this,e);for(const h of t.particles.updaters)(o=h.particleDestroyed)==null||o.call(h,this,e);i==null||i.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){const t=this.container,i=t.canvas;for(const[,s]of t.plugins)i.drawParticlePlugin(s,this,e);i.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??ue(this.color))}getMass(){return this.getRadius()**si*Math.PI*A}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ue(this.strokeColor))}init(e,t,i,s){var j,Q,J,K,ee,te;const n=this.container,r=this._engine;this.id=e,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const o=n.retina.pixelRatio,h=n.actualOptions,a=De(this._engine,n,h.particles),c=a.effect.type,u=a.shape.type,{reduceDuplicates:f}=a;this.effect=T(c,this.id,f),this.shape=T(u,this.id,f);const m=a.effect,d=a.shape;if(i){if((j=i.effect)!=null&&j.type){const z=i.effect.type,D=T(z,this.id,f);D&&(this.effect=D,m.load(i.effect))}if((Q=i.shape)!=null&&Q.type){const z=i.shape.type,D=T(z,this.id,f);D&&(this.shape=D,d.load(i.shape))}}this.effectData=ni(this.effect,m,this.id,f),this.shapeData=oi(this.shape,d,this.id,f),a.load(i);const p=this.effectData;p&&a.load(p.particles);const y=this.shapeData;y&&a.load(y.particles);const C=new Me(r,n);C.load(n.actualOptions.interactivity),C.load(a.interactivity),this.interactivity=C,this.effectFill=(p==null?void 0:p.fill)??a.effect.fill,this.effectClose=(p==null?void 0:p.close)??a.effect.close,this.shapeFill=(y==null?void 0:y.fill)??a.shape.fill,this.shapeClose=(y==null?void 0:y.close)??a.shape.close,this.options=a;const P=this.options.move.path;this.pathDelay=x(P.delay.value)*k,P.generator&&(this.pathGenerator=this._engine.getPathGenerator(P.generator),this.pathGenerator&&n.addPath(P.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=Ke(this.options.size,o),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const M=1;this.moveDecay=M-x(this.options.move.decay);const E=n.particles;E.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let v=n.effectDrawers.get(this.effect);v||(v=this._engine.getEffectDrawer(this.effect),v&&n.effectDrawers.set(this.effect,v)),v!=null&&v.loadEffect&&v.loadEffect(this);let g=n.shapeDrawers.get(this.shape);g||(g=this._engine.getShapeDrawer(this.shape),g&&n.shapeDrawers.set(this.shape,g)),g!=null&&g.loadShape&&g.loadShape(this);const I=g==null?void 0:g.getSidesCount;I&&(this.sides=I(this)),this.spawning=!1,this.shadowColor=V(this.options.shadow.color);for(const z of E.updaters)z.init(this);for(const z of E.movers)(J=z.init)==null||J.call(z,this);(K=v==null?void 0:v.particleInit)==null||K.call(v,n,this),(ee=g==null?void 0:g.particleInit)==null||ee.call(g,n,this);for(const[,z]of n.plugins)(te=z.particleCreated)==null||te.call(z,this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,i=this.position;return i.x>=-e&&i.y>=-e&&i.y<=t.height+e&&i.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var e;for(const t of this.container.particles.updaters)(e=t.reset)==null||e.call(t,this)}}const L=.5,hi=2,ai=4;class U{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:i,y:s}=this.rectangle.position,{width:n,height:r}=this.rectangle.size,{capacity:o}=this;for(let h=0;ht.insert(e))):!1}query(e,t){const i=[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&ke(e.position,s.position)>s.particle.getRadius()&&(!t||t(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(e,t));return i}queryCircle(e,t,i){return this.query(new ct(e.x,e.y,t),i)}queryRectangle(e,t,i){return this.query(new N(e.x,e.y,t.width,t.height),i)}}const be=4,li=2,ci=1,we=l=>{const{height:e,width:t}=l,i=-.25,s=1.5;return new N(i*t,i*e,s*t,s*e)};class ui{constructor(e,t){this._addToPool=(...s)=>{for(const n of s)this._pool.push(n)},this._applyDensity=(s,n,r)=>{var d;const o=s.number;if(!((d=s.number.density)!=null&&d.enable)){r===void 0?this._limit=o.limit.value:o.limit&&this._groupLimits.set(r,o.limit.value);return}const h=this._initDensityFactor(o.density),a=o.value,c=0,u=o.limit.value>c?o.limit.value:a,f=Math.min(a,u)*h+n,m=Math.min(this.count,this.filter(p=>p.group===r).length);r===void 0?this._limit=o.limit.value*h:this._groupLimits.set(r,o.limit.value*h),mf&&this.removeQuantity(m-f,r)},this._initDensityFactor=s=>{const n=this._container,r=1;if(!n.canvas.element||!s.enable)return r;const o=n.canvas.element,h=n.retina.pixelRatio;return o.width*o.height/(s.height*s.width*h**li)},this._pushParticle=(s,n,r,o)=>{try{let h=this._pool.pop();h||(h=new ri(this._engine,this._container)),h.init(this._nextId,s,n,r);let a=!0;return o&&(a=o(h)),a?(this._array.push(h),this._zArray.push(h),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:h}}),h):void 0}catch(h){B().warning(`${H} adding particle: ${h}`)}},this._removeParticle=(s,n,r)=>{const o=this._array[s];if(!o||o.group!==n)return!1;const h=this._zArray.indexOf(o),a=1;return this._array.splice(s,a),this._zArray.splice(h,a),o.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:o}}),this._addToPool(o),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ii(e,t),this._pluginsInitialized=!1;const i=t.canvas.size;this.quadTree=new U(we(i),be),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container,t=e.actualOptions;for(const i of t.manualParticles)this.addParticle(i.position?Re(i.position,e.canvas.size):void 0,i.options)}addParticle(e,t,i,s){const n=this._container.actualOptions.particles.number.limit,r=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(r>0){if(n.mode==="delete"){const u=o+1-r;u>0&&this.removeQuantity(u)}else if(n.mode==="wait"&&o>=r)return}return this._pushParticle(e,t,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,i=t.canvas;i.clear(),this.update(e);for(const[,s]of t.plugins)i.drawPlugin(s,e);for(const s of this._zArray)s.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){var s;const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(i=n.particlesInitialization()),i)break;if(this.addManualParticles(),!i){const n=t.particles,r=n.groups;for(const o in r){const h=r[o];for(let a=this.count,c=0;c<((s=h.number)==null?void 0:s.value)&&athis.count)return;let r=0;for(let o=e;r!i.has(h);this._array=this.filter(o),this._zArray=this._zArray.filter(o);for(const h of i)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:h}});this._addToPool(...i)}this._interactionManager.externalInteract(e);for(const o of this._array){for(const h of this.updaters)h.update(o,e);!o.destroyed&&!o.spawning&&this._interactionManager.particlesInteract(o,e)}if(delete this._resizeFactor,this._needsSort){const o=this._zArray;o.sort((a,c)=>c.position.z-a.position.z||a.id-c.id);const h=1;this._lastZIndex=o[o.length-h].position.z,this._needsSort=!1}}}const ze=1,xe=1;class fi{constructor(e){this.container=e,this.pixelRatio=ze,this.reduceFactor=xe}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||tt()?ze:window.devicePixelRatio,this.reduceFactor=xe;const i=this.pixelRatio,s=e.canvas;if(s.element){const o=s.element;s.size.width=o.offsetWidth*i,s.size.height=o.offsetHeight*i}const n=t.particles,r=n.move;this.maxSpeed=x(r.gravity.maxSpeed)*i,this.sizeAnimationSpeed=x(n.size.animation.speed)*i}initParticle(e){const t=e.options,i=this.pixelRatio,s=t.move,n=s.distance,r=e.retina;r.moveDrift=x(s.drift)*i,r.moveSpeed=x(s.speed)*i,r.sizeAnimationSpeed=x(t.size.animation.speed)*i;const o=r.maxDistance;o.horizontal=n.horizontal!==void 0?n.horizontal*i:void 0,o.vertical=n.vertical!==void 0?n.vertical*i:void 0,r.maxSpeed=x(s.gravity.maxSpeed)*i}}function _(l){return l&&!l.destroyed}const Y=60;function di(l,e=Y,t=!1){return{value:l,factor:t?Y/e:Y*l/k}}function S(l,e,...t){const i=new Jt(l,e);return Ie(i,...t),i}class vi{constructor(e,t,i){this._intersectionManager=s=>{if(!(!_(this)||!this.actualOptions.pauseOnOutsideViewport))for(const n of s)n.target===this.interactivity.element&&(n.isIntersecting?this.play():this.pause())},this._nextFrame=s=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&sk){this.draw(!1);return}if(this.particles.draw(n),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(n){B().error(`${H} in animation loop`,n)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new fi(this),this.canvas=new ei(this),this.particles=new ui(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this),this._eventListeners=new ti(this),this._intersectionObserver=it(s=>this._intersectionManager(s)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&_(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!_(this))return;const t=this.interactivity.element;if(!t)return;const i=(u,f,m)=>{if(!_(this))return;const d=this.retina.pixelRatio,p={x:f.x*d,y:f.y*d},y=this.particles.quadTree.queryCircle(p,m*d);e(u,y)},s=u=>{if(!_(this))return;const f=u,m={x:f.offsetX||f.clientX,y:f.offsetY||f.clientY};i(u,m,1)},n=()=>{_(this)&&(a=!0,c=!1)},r=()=>{_(this)&&(c=!0)},o=u=>{if(_(this)){if(a&&!c){const f=u,m=1;let d=f.touches[f.touches.length-m];if(!d&&(d=f.changedTouches[f.changedTouches.length-m],!d))return;const p=this.canvas.element,y=p?p.getBoundingClientRect():void 0,C=0,P={x:d.clientX-(y?y.left:C),y:d.clientY-(y?y.top:C)};i(u,P,Math.max(d.radiusX,d.radiusY))}a=!1,c=!1}},h=()=>{_(this)&&(a=!1,c=!1)};let a=!1,c=!1;t.addEventListener("click",s),t.addEventListener("touchstart",n),t.addEventListener("touchmove",r),t.addEventListener("touchend",o),t.addEventListener("touchcancel",h)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,i=!1){return!_(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){var s,n;if(!_(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,r]of this.effectDrawers)(s=r.destroy)==null||s.call(r,this);for(const[,r]of this.shapeDrawers)(n=r.destroy)==null||n.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);this._engine.clearPlugins(this),this.destroyed=!0;const e=this._engine.dom(),t=e.findIndex(r=>r===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!_(this))return;let t=e;const i=s=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(s)};this._drawAnimationFrame=requestAnimationFrame(s=>i(s))}async export(e,t={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(e,t);if(s.supported)return s.blob}B().error(`${H} - Export plugin with type ${e} not found`)}handleClickMode(e){var t;if(_(this)){this.particles.handleClickMode(e);for(const[,i]of this.plugins)(t=i.handleClickMode)==null||t.call(i,e)}}async init(){var r,o,h,a;if(!_(this))return;const e=this._engine.getSupportedEffects();for(const c of e){const u=this._engine.getEffectDrawer(c);u&&this.effectDrawers.set(c,u)}const t=this._engine.getSupportedShapes();for(const c of t){const u=this._engine.getShapeDrawer(c);u&&this.shapeDrawers.set(c,u)}await this.particles.initPlugins(),this._options=S(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=S(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[c,u]of i)this.plugins.set(c,u);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=x(this.actualOptions.duration)*k,this._delay=x(this.actualOptions.delay)*k,this._lifeTime=0;const s=120,n=0;this.fpsLimit=this.actualOptions.fpsLimit>n?this.actualOptions.fpsLimit:s,this._smooth=this.actualOptions.smooth;for(const[,c]of this.effectDrawers)await((r=c.init)==null?void 0:r.call(c,this));for(const[,c]of this.shapeDrawers)await((o=c.init)==null?void 0:o.call(c,this));for(const[,c]of this.plugins)await((h=c.init)==null?void 0:h.call(c));this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,c]of this.plugins)(a=c.particlesSetup)==null||a.call(c);this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){_(this)&&(this._currentTheme=e,await this.refresh())}pause(){var e;if(_(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)(e=t.pause)==null||e.call(t);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!_(this))return;const t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(_(this))return this.stop(),this.start()}async reset(){if(_(this))return this._initialSourceOptions=void 0,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this,this._options),this.refresh()}async start(){!_(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,s]of this.plugins)await((i=s.start)==null?void 0:i.call(s));this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){var e;if(!(!_(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)(e=t.stop)==null||e.call(t);for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}export{vi as Container}; diff --git a/dist/assets/EmojiDrawer-D7x4UA07.js b/dist/assets/EmojiDrawer-9mjzhNZh.js similarity index 91% rename from dist/assets/EmojiDrawer-D7x4UA07.js rename to dist/assets/EmojiDrawer-9mjzhNZh.js index d957fe3..a2cda8b 100644 --- a/dist/assets/EmojiDrawer-D7x4UA07.js +++ b/dist/assets/EmojiDrawer-9mjzhNZh.js @@ -1 +1 @@ -import{v as u}from"./index-9OwJQEAY.js";import{S as j,aa as h,e as D,Q as v,a3 as x}from"./index-CbDPnSIu.js";function S(d){const{context:o,particle:e,radius:n,opacity:i}=d,t=e.emojiData,r=2,c=n*r,m=o.globalAlpha;t&&(o.globalAlpha=i,o.drawImage(t,-n,-n,c,c),o.globalAlpha=m)}const g='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class b{constructor(){this._emojiShapeDict=new Map}destroy(){for(const[o,e]of this._emojiShapeDict)e instanceof ImageBitmap&&(e==null||e.close(),this._emojiShapeDict.delete(o))}draw(o){S(o)}async init(o){const e=o.actualOptions;if(!u.find(t=>j(t,e.particles.shape.type)))return;const n=[h(g)],i=u.map(t=>e.particles.shape.options[t]).find(t=>!!t);i&&D(i,t=>{t.font&&n.push(h(t.font))}),await Promise.all(n)}particleDestroy(o){delete o.emojiData}particleInit(o,e){const i=e.shapeData;if(!(i!=null&&i.value))return;const t=v(i.value,e.randomIndexData),r=i.font??g;if(!t)return;const c=`${t}_${r}`,m=this._emojiShapeDict.get(c);if(m){e.emojiData=m;return}const f=x(e.size.value)*2;let p;const l=x(e.size.value);if(typeof OffscreenCanvas<"u"){const s=new OffscreenCanvas(f,f),a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s.transferToImageBitmap()}else{const s=document.createElement("canvas");s.width=f,s.height=f;const a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s}this._emojiShapeDict.set(c,p),e.emojiData=p}}export{b as EmojiDrawer}; +import{v as u}from"./index-CcTVH4mc.js";import{S as j,aa as h,e as D,Q as v,a3 as x}from"./index-oTx0snEa.js";function S(d){const{context:o,particle:e,radius:n,opacity:i}=d,t=e.emojiData,r=2,c=n*r,m=o.globalAlpha;t&&(o.globalAlpha=i,o.drawImage(t,-n,-n,c,c),o.globalAlpha=m)}const g='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class b{constructor(){this._emojiShapeDict=new Map}destroy(){for(const[o,e]of this._emojiShapeDict)e instanceof ImageBitmap&&(e==null||e.close(),this._emojiShapeDict.delete(o))}draw(o){S(o)}async init(o){const e=o.actualOptions;if(!u.find(t=>j(t,e.particles.shape.type)))return;const n=[h(g)],i=u.map(t=>e.particles.shape.options[t]).find(t=>!!t);i&&D(i,t=>{t.font&&n.push(h(t.font))}),await Promise.all(n)}particleDestroy(o){delete o.emojiData}particleInit(o,e){const i=e.shapeData;if(!(i!=null&&i.value))return;const t=v(i.value,e.randomIndexData),r=i.font??g;if(!t)return;const c=`${t}_${r}`,m=this._emojiShapeDict.get(c);if(m){e.emojiData=m;return}const f=x(e.size.value)*2;let p;const l=x(e.size.value);if(typeof OffscreenCanvas<"u"){const s=new OffscreenCanvas(f,f),a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s.transferToImageBitmap()}else{const s=document.createElement("canvas");s.width=f,s.height=f;const a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s}this._emojiShapeDict.set(c,p),e.emojiData=p}}export{b as EmojiDrawer}; diff --git a/dist/assets/Grabber-B5LcMKWv.js b/dist/assets/Grabber-Bzlu04C2.js similarity index 84% rename from dist/assets/Grabber-B5LcMKWv.js rename to dist/assets/Grabber-Bzlu04C2.js index 940e7ed..4d5c79e 100644 --- a/dist/assets/Grabber-B5LcMKWv.js +++ b/dist/assets/Grabber-Bzlu04C2.js @@ -1 +1 @@ -import{Grab as v}from"./index-BA8kTSU-.js";import{g as y}from"./CanvasUtils-CgNwHWHl.js";import{n as k,t as L,K as O,a7 as h,a8 as C,S as w}from"./index-CbDPnSIu.js";import{E as D}from"./ExternalInteractorBase-CIi3zRdK.js";import"./OptionsColor-uNQKa8qH.js";const E=0;function M(r,t,n,i,o,e){y(r,n,i),r.strokeStyle=k(o,e),r.lineWidth=t,r.stroke()}function G(r,t,n,i,o){r.canvas.draw(e=>{const s=t.getPosition();M(e,t.retina.linksWidth??E,s,o,n,i)})}const P="grab",q=0,H=0;class A extends D{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var c;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==L)return;const o=t.interactivity.mouse.position;if(!o)return;const e=t.retina.grabModeDistance;if(!e||ethis.isEnabled(a));for(const a of s){const f=a.getPosition(),l=O(f,o);if(l>e)continue;const b=i.modes.grab.links,d=b.opacity,g=d-l*d/e;if(g<=H)continue;const u=b.color??((c=a.options.links)==null?void 0:c.color);if(!t.particles.grabLineColor&&u){const p=i.modes.grab.links;t.particles.grabLineColor=h(u,p.blink,p.consent)}const m=C(a,void 0,t.particles.grabLineColor);m&&G(t,a,m,g,o)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&w(P,o.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new v);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}export{A as Grabber}; +import{Grab as v}from"./index-DGh6NlmN.js";import{g as y}from"./CanvasUtils-C_06btl7.js";import{n as k,t as L,K as O,a7 as h,a8 as C,S as w}from"./index-oTx0snEa.js";import{E as D}from"./ExternalInteractorBase-CIi3zRdK.js";import"./OptionsColor-CaHN7lKC.js";const E=0;function M(r,t,n,i,o,e){y(r,n,i),r.strokeStyle=k(o,e),r.lineWidth=t,r.stroke()}function G(r,t,n,i,o){r.canvas.draw(e=>{const s=t.getPosition();M(e,t.retina.linksWidth??E,s,o,n,i)})}const P="grab",q=0,H=0;class A extends D{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var c;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==L)return;const o=t.interactivity.mouse.position;if(!o)return;const e=t.retina.grabModeDistance;if(!e||ethis.isEnabled(a));for(const a of s){const f=a.getPosition(),l=O(f,o);if(l>e)continue;const b=i.modes.grab.links,d=b.opacity,g=d-l*d/e;if(g<=H)continue;const u=b.color??((c=a.options.links)==null?void 0:c.color);if(!t.particles.grabLineColor&&u){const p=i.modes.grab.links;t.particles.grabLineColor=h(u,p.blink,p.consent)}const m=C(a,void 0,t.particles.grabLineColor);m&&G(t,a,m,g,o)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&w(P,o.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new v);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}export{A as Grabber}; diff --git a/dist/assets/ImageDrawer-BWuYTgl0.js b/dist/assets/ImageDrawer-C0ekws-d.js similarity index 93% rename from dist/assets/ImageDrawer-BWuYTgl0.js rename to dist/assets/ImageDrawer-C0ekws-d.js index 785139b..5de0016 100644 --- a/dist/assets/ImageDrawer-BWuYTgl0.js +++ b/dist/assets/ImageDrawer-C0ekws-d.js @@ -1 +1 @@ -import{r as h}from"./index-D88zuU4-.js";import{drawGif as f}from"./Utils-DvoUm1uE.js";import{c as d}from"./index-CbDPnSIu.js";const c=2,p=1,u=12,_=1;class y{constructor(o){this.loadImageShape=async e=>{if(!this._engine.loadImage)throw new Error(`${d} image shape not initialized`);await this._engine.loadImage({gif:e.gif,name:e.name,replaceColor:e.replaceColor??!1,src:e.src})},this._engine=o}addImage(o){this._engine.images||(this._engine.images=[]),this._engine.images.push(o)}draw(o){const{context:e,radius:t,particle:a,opacity:n}=o,i=a.image,r=i==null?void 0:i.element;if(i){if(e.globalAlpha=n,i.gif&&i.gifData)f(o);else if(r){const s=i.ratio,g={x:-t,y:-t},l=t*c;e.drawImage(r,g.x,g.y,l,l/s)}e.globalAlpha=p}}getSidesCount(){return u}async init(o){const e=o.actualOptions;if(!(!e.preload||!this._engine.loadImage))for(const t of e.preload)await this._engine.loadImage(t)}loadShape(o){if(o.shape!=="image"&&o.shape!=="images")return;this._engine.images||(this._engine.images=[]);const e=o.shapeData;if(!e)return;this._engine.images.find(a=>a.name===e.name||a.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(o)})}particleInit(o,e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const t=this._engine.images,a=e.shapeData;if(!a)return;const n=e.getFillColor(),i=t.find(s=>s.name===a.name||s.source===a.src);if(!i)return;const r=a.replaceColor??i.replaceColor;if(i.loading){setTimeout(()=>{this.particleInit(o,e)});return}(async()=>{let s;i.svgData&&n?s=await h(i,a,n,e):s={color:n,data:i,element:i.element,gif:i.gif,gifData:i.gifData,gifLoopCount:i.gifLoopCount,loaded:!0,ratio:a.width&&a.height?a.width/a.height:i.ratio??_,replaceColor:r,source:a.src},s.ratio||(s.ratio=1);const g=a.fill??e.shapeFill,l=a.close??e.shapeClose,m={image:s,fill:g,close:l};e.image=m.image,e.shapeFill=m.fill,e.shapeClose=m.close})()}}export{y as ImageDrawer}; +import{r as h}from"./index-B3nXYzwg.js";import{drawGif as f}from"./Utils-C0lchmwz.js";import{c as d}from"./index-oTx0snEa.js";const c=2,p=1,u=12,_=1;class y{constructor(o){this.loadImageShape=async e=>{if(!this._engine.loadImage)throw new Error(`${d} image shape not initialized`);await this._engine.loadImage({gif:e.gif,name:e.name,replaceColor:e.replaceColor??!1,src:e.src})},this._engine=o}addImage(o){this._engine.images||(this._engine.images=[]),this._engine.images.push(o)}draw(o){const{context:e,radius:t,particle:a,opacity:n}=o,i=a.image,r=i==null?void 0:i.element;if(i){if(e.globalAlpha=n,i.gif&&i.gifData)f(o);else if(r){const s=i.ratio,g={x:-t,y:-t},l=t*c;e.drawImage(r,g.x,g.y,l,l/s)}e.globalAlpha=p}}getSidesCount(){return u}async init(o){const e=o.actualOptions;if(!(!e.preload||!this._engine.loadImage))for(const t of e.preload)await this._engine.loadImage(t)}loadShape(o){if(o.shape!=="image"&&o.shape!=="images")return;this._engine.images||(this._engine.images=[]);const e=o.shapeData;if(!e)return;this._engine.images.find(a=>a.name===e.name||a.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(o)})}particleInit(o,e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const t=this._engine.images,a=e.shapeData;if(!a)return;const n=e.getFillColor(),i=t.find(s=>s.name===a.name||s.source===a.src);if(!i)return;const r=a.replaceColor??i.replaceColor;if(i.loading){setTimeout(()=>{this.particleInit(o,e)});return}(async()=>{let s;i.svgData&&n?s=await h(i,a,n,e):s={color:n,data:i,element:i.element,gif:i.gif,gifData:i.gifData,gifLoopCount:i.gifLoopCount,loaded:!0,ratio:a.width&&a.height?a.width/a.height:i.ratio??_,replaceColor:r,source:a.src},s.ratio||(s.ratio=1);const g=a.fill??e.shapeFill,l=a.close??e.shapeClose,m={image:s,fill:g,close:l};e.image=m.image,e.shapeFill=m.fill,e.shapeClose=m.close})()}}export{y as ImageDrawer}; diff --git a/dist/assets/LifeUpdater-CxFylUl7.js b/dist/assets/LifeUpdater-YiDIx2yX.js similarity index 92% rename from dist/assets/LifeUpdater-CxFylUl7.js rename to dist/assets/LifeUpdater-YiDIx2yX.js index 580dd24..6defdec 100644 --- a/dist/assets/LifeUpdater-CxFylUl7.js +++ b/dist/assets/LifeUpdater-YiDIx2yX.js @@ -1 +1 @@ -import{V as w}from"./ValueWithRandom-kjUuQ2nW.js";import{s as a,I as l,H as f,q as d,J as c}from"./index-CbDPnSIu.js";class R extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class L extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class V{constructor(){this.count=0,this.delay=new R,this.duration=new L}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}const u=0,x=-1,y=0,m=0;function F(i,e,s){if(!i.life)return;const n=i.life;let t=!1;if(i.spawning)if(n.delayTime+=e.value,n.delayTime>=i.life.delay)t=!0,i.spawning=!1,n.delayTime=u,n.time=u;else return;if(n.duration===x||i.spawning||(t?n.time=u:n.time+=e.value,n.timey&&i.life.count--,i.life.count===y){i.destroy();return}const T=a(m,s.width),v=a(m,s.width);i.position.x=l(T),i.position.y=l(v),i.spawning=!0,n.delayTime=u,n.time=u,i.reset();const r=i.options.life;r&&(n.delay=f(r.delay.value)*d,n.duration=f(r.duration.value)*d)}const o=0,h=1,g=-1;class D{constructor(e){this.container=e}init(e){const s=this.container,n=e.options,t=n.life;t&&(e.life={delay:s.retina.reduceFactor?f(t.delay.value)*(t.delay.sync?h:c())/s.retina.reduceFactor*d:o,delayTime:o,duration:s.retina.reduceFactor?f(t.duration.value)*(t.duration.sync?h:c())/s.retina.reduceFactor*d:o,time:o,count:t.count},e.life.duration<=o&&(e.life.duration=g),e.life.count<=o&&(e.life.count=g),e.life&&(e.spawning=e.life.delay>o))}isEnabled(e){return!e.destroyed}loadOptions(e,...s){e.life||(e.life=new V);for(const n of s)e.life.load(n==null?void 0:n.life)}update(e,s){!this.isEnabled(e)||!e.life||F(e,s,this.container.canvas.size)}}export{D as LifeUpdater}; +import{V as w}from"./ValueWithRandom-D5hQ_OLE.js";import{s as a,I as l,H as f,q as d,J as c}from"./index-oTx0snEa.js";class R extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class L extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class V{constructor(){this.count=0,this.delay=new R,this.duration=new L}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}const u=0,x=-1,y=0,m=0;function F(i,e,s){if(!i.life)return;const n=i.life;let t=!1;if(i.spawning)if(n.delayTime+=e.value,n.delayTime>=i.life.delay)t=!0,i.spawning=!1,n.delayTime=u,n.time=u;else return;if(n.duration===x||i.spawning||(t?n.time=u:n.time+=e.value,n.timey&&i.life.count--,i.life.count===y){i.destroy();return}const T=a(m,s.width),v=a(m,s.width);i.position.x=l(T),i.position.y=l(v),i.spawning=!0,n.delayTime=u,n.time=u,i.reset();const r=i.options.life;r&&(n.delay=f(r.delay.value)*d,n.duration=f(r.duration.value)*d)}const o=0,h=1,g=-1;class D{constructor(e){this.container=e}init(e){const s=this.container,n=e.options,t=n.life;t&&(e.life={delay:s.retina.reduceFactor?f(t.delay.value)*(t.delay.sync?h:c())/s.retina.reduceFactor*d:o,delayTime:o,duration:s.retina.reduceFactor?f(t.duration.value)*(t.duration.sync?h:c())/s.retina.reduceFactor*d:o,time:o,count:t.count},e.life.duration<=o&&(e.life.duration=g),e.life.count<=o&&(e.life.count=g),e.life&&(e.spawning=e.life.delay>o))}isEnabled(e){return!e.destroyed}loadOptions(e,...s){e.life||(e.life=new V);for(const n of s)e.life.load(n==null?void 0:n.life)}update(e,s){!this.isEnabled(e)||!e.life||F(e,s,this.container.canvas.size)}}export{D as LifeUpdater}; diff --git a/dist/assets/LinkInstance-CHCZzynu.js b/dist/assets/LinkInstance-QNcpNoGo.js similarity index 98% rename from dist/assets/LinkInstance-CHCZzynu.js rename to dist/assets/LinkInstance-QNcpNoGo.js index 71f00b6..6a44055 100644 --- a/dist/assets/LinkInstance-CHCZzynu.js +++ b/dist/assets/LinkInstance-QNcpNoGo.js @@ -1 +1 @@ -import{K as m,W as q,n as T,m as C,J as S,H as W,a8 as D}from"./index-CbDPnSIu.js";import{g as L}from"./CanvasUtils-CgNwHWHl.js";function R(l,o,n,i){l.beginPath(),l.moveTo(o.x,o.y),l.lineTo(n.x,n.y),l.lineTo(i.x,i.y),l.closePath()}function O(l){let o=!1;const{begin:n,end:i,maxDistance:e,context:t,canvasSize:s,width:r,backgroundMask:y,colorLine:u,opacity:h,links:d}=l;if(m(n,i)<=e)L(t,n,i),o=!0;else if(d.warp){let a,g;const x={x:i.x-s.width,y:i.y},p=q(n,x);if(p.distance<=e){const k=n.y-p.dy/p.dx*n.x;a={x:0,y:k},g={x:s.width,y:k}}else{const k={x:i.x,y:i.y-s.height},f=q(n,k);if(f.distance<=e){const w=-(n.y-f.dy/f.dx*n.x)/(f.dy/f.dx);a={x:w,y:0},g={x:w,y:s.height}}else{const b={x:i.x-s.width,y:i.y-s.height},w=q(n,b);if(w.distance<=e){const F=n.y-w.dy/w.dx*n.x;a={x:-F/(w.dy/w.dx),y:F},g={x:a.x+s.width,y:a.y+s.height}}}}a&&g&&(L(t,n,a),L(t,i,g),o=!0)}if(!o)return;t.lineWidth=r,y.enable&&(t.globalCompositeOperation=y.composite),t.strokeStyle=T(u,h);const{shadow:c}=d;if(c.enable){const a=C(c.color);a&&(t.shadowBlur=c.blur,t.shadowColor=T(a))}t.stroke()}function z(l){const{context:o,pos1:n,pos2:i,pos3:e,backgroundMask:t,colorTriangle:s,opacityTriangle:r}=l;R(o,n,i,e),t.enable&&(o.globalCompositeOperation=t.composite),o.fillStyle=T(s,r),o.fill()}function E(l){return l.sort((o,n)=>o-n),l.join("_")}function M(l,o){const n=E(l.map(e=>e.id));let i=o.get(n);return i===void 0&&(i=S(),o.set(n,i)),i}const P=0,_=0,v=0,I=.5,K=1;class J{constructor(o){this.container=o,this._drawLinkLine=(n,i)=>{const e=n.options.links;if(!(e!=null&&e.enable))return;const t=this.container,s=t.actualOptions,r=i.destination,y=n.getPosition(),u=r.getPosition();let h=i.opacity;t.canvas.draw(d=>{var k;let c;const a=(k=n.options.twinkle)==null?void 0:k.lines;if(a!=null&&a.enable){const f=a.frequency,b=C(a.color);S(){const t=n.options.links;if(!(t!=null&&t.enable))return;const s=t.triangles;if(!s.enable)return;const r=this.container,y=r.actualOptions,u=i.destination,h=e.destination,d=s.opacity??(i.opacity+e.opacity)*I;d<=P||r.canvas.draw(c=>{const a=n.getPosition(),g=u.getPosition(),x=h.getPosition(),p=n.retina.linksDistance??v;if(m(a,g)>p||m(x,g)>p||m(x,a)>p)return;let k=C(s.color);if(!k){const f=t.id!==void 0?r.particles.linksColors.get(t.id):r.particles.linksColor;k=D(n,u,f)}k&&z({context:c,pos1:a,pos2:g,pos3:x,backgroundMask:y.backgroundMask,colorTriangle:k,opacityTriangle:d})})},this._drawTriangles=(n,i,e,t)=>{var y,u,h;const s=e.destination;if(!((y=n.links)!=null&&y.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const r=(h=s.links)==null?void 0:h.filter(d=>{const c=this._getLinkFrequency(s,d.destination);return s.options.links&&c<=s.options.links.frequency&&t.findIndex(g=>g.destination===d.destination)>=0});if(r!=null&&r.length)for(const d of r){const c=d.destination;this._getTriangleFrequency(i,s,c)>n.links.triangles.frequency||this._drawLinkTriangle(i,e,d)}},this._getLinkFrequency=(n,i)=>M([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,e)=>M([n,i,e],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(o,n){const{links:i,options:e}=n;if(!(i!=null&&i.length))return;const t=i.filter(s=>e.links&&(e.links.frequency>=K||this._getLinkFrequency(n,s.destination)<=e.links.frequency));for(const s of t)this._drawTriangles(e,n,s,t),s.opacity>P&&(n.retina.linksWidth??_)>_&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(o){if(o.links=[],!o.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=o,{distance:e,width:t}=o.options.links;i.linksDistance=e*n,i.linksWidth=t*n}particleDestroyed(o){o.links=[]}}export{J as LinkInstance}; +import{K as m,W as q,n as T,m as C,J as S,H as W,a8 as D}from"./index-oTx0snEa.js";import{g as L}from"./CanvasUtils-C_06btl7.js";function R(l,o,n,i){l.beginPath(),l.moveTo(o.x,o.y),l.lineTo(n.x,n.y),l.lineTo(i.x,i.y),l.closePath()}function O(l){let o=!1;const{begin:n,end:i,maxDistance:e,context:t,canvasSize:s,width:r,backgroundMask:y,colorLine:u,opacity:h,links:d}=l;if(m(n,i)<=e)L(t,n,i),o=!0;else if(d.warp){let a,g;const x={x:i.x-s.width,y:i.y},p=q(n,x);if(p.distance<=e){const k=n.y-p.dy/p.dx*n.x;a={x:0,y:k},g={x:s.width,y:k}}else{const k={x:i.x,y:i.y-s.height},f=q(n,k);if(f.distance<=e){const w=-(n.y-f.dy/f.dx*n.x)/(f.dy/f.dx);a={x:w,y:0},g={x:w,y:s.height}}else{const b={x:i.x-s.width,y:i.y-s.height},w=q(n,b);if(w.distance<=e){const F=n.y-w.dy/w.dx*n.x;a={x:-F/(w.dy/w.dx),y:F},g={x:a.x+s.width,y:a.y+s.height}}}}a&&g&&(L(t,n,a),L(t,i,g),o=!0)}if(!o)return;t.lineWidth=r,y.enable&&(t.globalCompositeOperation=y.composite),t.strokeStyle=T(u,h);const{shadow:c}=d;if(c.enable){const a=C(c.color);a&&(t.shadowBlur=c.blur,t.shadowColor=T(a))}t.stroke()}function z(l){const{context:o,pos1:n,pos2:i,pos3:e,backgroundMask:t,colorTriangle:s,opacityTriangle:r}=l;R(o,n,i,e),t.enable&&(o.globalCompositeOperation=t.composite),o.fillStyle=T(s,r),o.fill()}function E(l){return l.sort((o,n)=>o-n),l.join("_")}function M(l,o){const n=E(l.map(e=>e.id));let i=o.get(n);return i===void 0&&(i=S(),o.set(n,i)),i}const P=0,_=0,v=0,I=.5,K=1;class J{constructor(o){this.container=o,this._drawLinkLine=(n,i)=>{const e=n.options.links;if(!(e!=null&&e.enable))return;const t=this.container,s=t.actualOptions,r=i.destination,y=n.getPosition(),u=r.getPosition();let h=i.opacity;t.canvas.draw(d=>{var k;let c;const a=(k=n.options.twinkle)==null?void 0:k.lines;if(a!=null&&a.enable){const f=a.frequency,b=C(a.color);S(){const t=n.options.links;if(!(t!=null&&t.enable))return;const s=t.triangles;if(!s.enable)return;const r=this.container,y=r.actualOptions,u=i.destination,h=e.destination,d=s.opacity??(i.opacity+e.opacity)*I;d<=P||r.canvas.draw(c=>{const a=n.getPosition(),g=u.getPosition(),x=h.getPosition(),p=n.retina.linksDistance??v;if(m(a,g)>p||m(x,g)>p||m(x,a)>p)return;let k=C(s.color);if(!k){const f=t.id!==void 0?r.particles.linksColors.get(t.id):r.particles.linksColor;k=D(n,u,f)}k&&z({context:c,pos1:a,pos2:g,pos3:x,backgroundMask:y.backgroundMask,colorTriangle:k,opacityTriangle:d})})},this._drawTriangles=(n,i,e,t)=>{var y,u,h;const s=e.destination;if(!((y=n.links)!=null&&y.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const r=(h=s.links)==null?void 0:h.filter(d=>{const c=this._getLinkFrequency(s,d.destination);return s.options.links&&c<=s.options.links.frequency&&t.findIndex(g=>g.destination===d.destination)>=0});if(r!=null&&r.length)for(const d of r){const c=d.destination;this._getTriangleFrequency(i,s,c)>n.links.triangles.frequency||this._drawLinkTriangle(i,e,d)}},this._getLinkFrequency=(n,i)=>M([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,e)=>M([n,i,e],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(o,n){const{links:i,options:e}=n;if(!(i!=null&&i.length))return;const t=i.filter(s=>e.links&&(e.links.frequency>=K||this._getLinkFrequency(n,s.destination)<=e.links.frequency));for(const s of t)this._drawTriangles(e,n,s,t),s.opacity>P&&(n.retina.linksWidth??_)>_&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(o){if(o.links=[],!o.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=o,{distance:e,width:t}=o.options.links;i.linksDistance=e*n,i.linksWidth=t*n}particleDestroyed(o){o.links=[]}}export{J as LinkInstance}; diff --git a/dist/assets/Linker-BrqHc-_q.js b/dist/assets/Linker-qPHNENzQ.js similarity index 89% rename from dist/assets/Linker-BrqHc-_q.js rename to dist/assets/Linker-qPHNENzQ.js index 081304b..0f9b6bb 100644 --- a/dist/assets/Linker-BrqHc-_q.js +++ b/dist/assets/Linker-qPHNENzQ.js @@ -1 +1 @@ -import{C as y,R as g}from"./Ranges-D6O5nK3L.js";import{Links as b}from"./index-Dyr8Xn4o.js";import{P as z}from"./ParticlesInteractorBase-vfDeBun3.js";import{a7 as D,W as P}from"./index-CbDPnSIu.js";import"./OptionsColor-uNQKa8qH.js";const k=2;class M extends y{constructor(i,n,t,s){super(i,n,t),this.canvasSize=s,this.canvasSize={...s}}contains(i){const{width:n,height:t}=this.canvasSize,{x:s,y:e}=i;return super.contains(i)||super.contains({x:s-n,y:e})||super.contains({x:s-n,y:e-t})||super.contains({x:s,y:e-t})}intersects(i){if(super.intersects(i))return!0;const n=i,t=i,s={x:i.position.x-this.canvasSize.width,y:i.position.y-this.canvasSize.height};if(t.radius!==void 0){const e=new y(s.x,s.y,t.radius*k);return super.intersects(e)}else if(n.size!==void 0){const e=new g(s.x,s.y,n.size.width*k,n.size.height*k);return super.intersects(e)}return!1}}const w=2,q=1,p={x:0,y:0},v=0;function L(h,i,n,t,s){const{dx:e,dy:l,distance:r}=P(h,i);if(!s||r<=n)return r;const a={x:Math.abs(e),y:Math.abs(l)},c={x:Math.min(a.x,t.width-a.x),y:Math.min(a.y,t.height-a.y)};return Math.sqrt(c.x**w+c.y**w)}class B extends z{constructor(i){super(i),this._setColor=n=>{if(!n.options.links)return;const t=this.linkContainer,s=n.options.links;let e=s.id===void 0?t.particles.linksColor:t.particles.linksColors.get(s.id);if(e)return;const l=s.color;e=D(l,s.blink,s.consent),s.id===void 0?t.particles.linksColor=e:t.particles.linksColors.set(s.id,e)},this.linkContainer=i}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(i){if(!i.options.links)return;i.links=[];const n=i.getPosition(),t=this.container,s=t.canvas.size;if(n.xs.width||n.y>s.height)return;const e=i.options.links,l=e.opacity,r=i.retina.linksDistance??v,a=e.warp;let c;a?c=new M(n.x,n.y,r,s):c=new y(n.x,n.y,r);const C=t.particles.quadTree.query(c);for(const o of C){const d=o.options.links;if(i===o||!(d!=null&&d.enable)||e.id!==d.id||o.spawning||o.destroyed||!o.links||i.links.some(f=>f.destination===o)||o.links.some(f=>f.destination===i))continue;const u=o.getPosition();if(u.xs.width||u.y>s.height)continue;const x=L(n,u,r,s,a&&d.warp);if(x>r)continue;const m=(q-x/r)*l;this._setColor(i),i.links.push({destination:o,opacity:m})}}isEnabled(i){var n;return!!((n=i.options.links)!=null&&n.enable)}loadParticlesOptions(i,...n){i.links||(i.links=new b);for(const t of n)i.links.load(t==null?void 0:t.links)}reset(){}}export{B as Linker}; +import{C as y,R as g}from"./Ranges-CImPpXf_.js";import{Links as b}from"./index-DrocrkVf.js";import{P as z}from"./ParticlesInteractorBase-vfDeBun3.js";import{a7 as D,W as P}from"./index-oTx0snEa.js";import"./OptionsColor-CaHN7lKC.js";const k=2;class M extends y{constructor(i,n,t,s){super(i,n,t),this.canvasSize=s,this.canvasSize={...s}}contains(i){const{width:n,height:t}=this.canvasSize,{x:s,y:e}=i;return super.contains(i)||super.contains({x:s-n,y:e})||super.contains({x:s-n,y:e-t})||super.contains({x:s,y:e-t})}intersects(i){if(super.intersects(i))return!0;const n=i,t=i,s={x:i.position.x-this.canvasSize.width,y:i.position.y-this.canvasSize.height};if(t.radius!==void 0){const e=new y(s.x,s.y,t.radius*k);return super.intersects(e)}else if(n.size!==void 0){const e=new g(s.x,s.y,n.size.width*k,n.size.height*k);return super.intersects(e)}return!1}}const w=2,q=1,p={x:0,y:0},v=0;function L(h,i,n,t,s){const{dx:e,dy:l,distance:r}=P(h,i);if(!s||r<=n)return r;const a={x:Math.abs(e),y:Math.abs(l)},c={x:Math.min(a.x,t.width-a.x),y:Math.min(a.y,t.height-a.y)};return Math.sqrt(c.x**w+c.y**w)}class B extends z{constructor(i){super(i),this._setColor=n=>{if(!n.options.links)return;const t=this.linkContainer,s=n.options.links;let e=s.id===void 0?t.particles.linksColor:t.particles.linksColors.get(s.id);if(e)return;const l=s.color;e=D(l,s.blink,s.consent),s.id===void 0?t.particles.linksColor=e:t.particles.linksColors.set(s.id,e)},this.linkContainer=i}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(i){if(!i.options.links)return;i.links=[];const n=i.getPosition(),t=this.container,s=t.canvas.size;if(n.xs.width||n.y>s.height)return;const e=i.options.links,l=e.opacity,r=i.retina.linksDistance??v,a=e.warp;let c;a?c=new M(n.x,n.y,r,s):c=new y(n.x,n.y,r);const C=t.particles.quadTree.query(c);for(const o of C){const d=o.options.links;if(i===o||!(d!=null&&d.enable)||e.id!==d.id||o.spawning||o.destroyed||!o.links||i.links.some(f=>f.destination===o)||o.links.some(f=>f.destination===i))continue;const u=o.getPosition();if(u.xs.width||u.y>s.height)continue;const x=L(n,u,r,s,a&&d.warp);if(x>r)continue;const m=(q-x/r)*l;this._setColor(i),i.links.push({destination:o,opacity:m})}}isEnabled(i){var n;return!!((n=i.options.links)!=null&&n.enable)}loadParticlesOptions(i,...n){i.links||(i.links=new b);for(const t of n)i.links.load(t==null?void 0:t.links)}reset(){}}export{B as Linker}; diff --git a/dist/assets/LinksPlugin-8reD8mLj.js b/dist/assets/LinksPlugin-C32Tin05.js similarity index 50% rename from dist/assets/LinksPlugin-8reD8mLj.js rename to dist/assets/LinksPlugin-C32Tin05.js index fbc5846..b72b937 100644 --- a/dist/assets/LinksPlugin-8reD8mLj.js +++ b/dist/assets/LinksPlugin-C32Tin05.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LinkInstance-CHCZzynu.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/CanvasUtils-CgNwHWHl.js"] + __vite__mapDeps.viteFileDeps = ["assets/LinkInstance-QNcpNoGo.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/CanvasUtils-C_06btl7.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-CbDPnSIu.js";class s{constructor(){this.id="links"}async getPlugin(n){const{LinkInstance:t}=await i(()=>import("./LinkInstance-CHCZzynu.js"),__vite__mapDeps([0,1,2,3]));return new t(n)}loadOptions(){}needsPlugin(){return!0}}export{s as LinksPlugin}; +import{_ as i}from"./index-oTx0snEa.js";class s{constructor(){this.id="links"}async getPlugin(n){const{LinkInstance:t}=await i(()=>import("./LinkInstance-QNcpNoGo.js"),__vite__mapDeps([0,1,2,3]));return new t(n)}loadOptions(){}needsPlugin(){return!0}}export{s as LinksPlugin}; diff --git a/dist/assets/OpacityUpdater-DJfWMM1C.js b/dist/assets/OpacityUpdater-pZD3tZAR.js similarity index 80% rename from dist/assets/OpacityUpdater-DJfWMM1C.js rename to dist/assets/OpacityUpdater-pZD3tZAR.js index a9f8cd2..63a187f 100644 --- a/dist/assets/OpacityUpdater-DJfWMM1C.js +++ b/dist/assets/OpacityUpdater-pZD3tZAR.js @@ -1 +1 @@ -import{R as a,H as e,ae as s,J as y,ab as p}from"./index-CbDPnSIu.js";class d{constructor(o){this.container=o}init(o){const n=o.options.opacity,i=1;o.opacity=a(n,i);const t=n.animation;t.enable&&(o.opacity.velocity=e(t.speed)/s*this.container.retina.reduceFactor,t.sync||(o.opacity.velocity*=y()))}isEnabled(o){return!o.destroyed&&!o.spawning&&!!o.opacity&&o.opacity.enable&&((o.opacity.maxLoops??0)<=0||(o.opacity.maxLoops??0)>0&&(o.opacity.loops??0)<(o.opacity.maxLoops??0))}reset(o){o.opacity&&(o.opacity.time=0,o.opacity.loops=0)}update(o,n){!this.isEnabled(o)||!o.opacity||p(o,o.opacity,!0,o.options.opacity.animation.destroy,n)}}export{d as OpacityUpdater}; +import{R as a,H as e,ae as s,J as y,ab as p}from"./index-oTx0snEa.js";class d{constructor(o){this.container=o}init(o){const n=o.options.opacity,i=1;o.opacity=a(n,i);const t=n.animation;t.enable&&(o.opacity.velocity=e(t.speed)/s*this.container.retina.reduceFactor,t.sync||(o.opacity.velocity*=y()))}isEnabled(o){return!o.destroyed&&!o.spawning&&!!o.opacity&&o.opacity.enable&&((o.opacity.maxLoops??0)<=0||(o.opacity.maxLoops??0)>0&&(o.opacity.loops??0)<(o.opacity.maxLoops??0))}reset(o){o.opacity&&(o.opacity.time=0,o.opacity.loops=0)}update(o,n){!this.isEnabled(o)||!o.opacity||p(o,o.opacity,!0,o.options.opacity.animation.destroy,n)}}export{d as OpacityUpdater}; diff --git a/dist/assets/OptionsColor-uNQKa8qH.js b/dist/assets/OptionsColor-CaHN7lKC.js similarity index 76% rename from dist/assets/OptionsColor-uNQKa8qH.js rename to dist/assets/OptionsColor-CaHN7lKC.js index b5ff3d0..182180b 100644 --- a/dist/assets/OptionsColor-uNQKa8qH.js +++ b/dist/assets/OptionsColor-CaHN7lKC.js @@ -1 +1 @@ -import{d as l,i as o}from"./index-CbDPnSIu.js";class s{constructor(){this.value=""}static create(e,r){const i=new s;return i.load(e),r!==void 0&&(l(r)||o(r)?i.load({value:r}):i.load(r)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}export{s as O}; +import{d as l,i as o}from"./index-oTx0snEa.js";class s{constructor(){this.value=""}static create(e,r){const i=new s;return i.load(e),r!==void 0&&(l(r)||o(r)?i.load({value:r}):i.load(r)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}export{s as O}; diff --git a/dist/assets/OutOfCanvasUpdater-Bcazql3G.js b/dist/assets/OutOfCanvasUpdater-BqPCE_GX.js similarity index 98% rename from dist/assets/OutOfCanvasUpdater-Bcazql3G.js rename to dist/assets/OutOfCanvasUpdater-BqPCE_GX.js index c5446ec..1f35c4a 100644 --- a/dist/assets/OutOfCanvasUpdater-Bcazql3G.js +++ b/dist/assets/OutOfCanvasUpdater-BqPCE_GX.js @@ -1 +1 @@ -import{H as P,a1 as R,W as M,af as O,O as c,J as g,I as b}from"./index-CbDPnSIu.js";const C=0,v=0;function S(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.righti.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);const o=i.particle.velocity.x;let s=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&o>C||i.direction==="left"&&i.bounds.left<=v&&o=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-u:i.bounds.left<=v&&i.direction==="left"&&(i.particle.position.x=u),i.outMode==="split"&&i.particle.destroy()}function V(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottomi.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);const o=i.particle.velocity.y;let s=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&o>C||i.direction==="top"&&i.bounds.top<=v&&o=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-u:i.bounds.top<=v&&i.direction==="top"&&(i.particle.position.y=u),i.outMode==="split"&&i.particle.destroy()}class k{constructor(o){this.container=o,this.modes=["bounce","split"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;let n=!1;for(const[,d]of f.plugins)if(d.particleBounce!==void 0&&(n=d.particleBounce(o,u,s)),n)break;if(n)return;const t=o.getPosition(),e=o.offset,r=o.getRadius(),y=R(t,r),m=f.canvas.size;S({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r}),V({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r})}}const x=0;class _{constructor(o){this.container=o,this.modes=["destroy"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"normal":case"outside":if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;break;case"inside":{const{dx:n,dy:t}=M(o.position,o.moveCenter),{x:e,y:r}=o.velocity;if(eo.moveCenter.radius||ro.moveCenter.radius||e>=x&&n<-o.moveCenter.radius||r>=x&&t<-o.moveCenter.radius)return;break}}f.particles.remove(o,void 0,!0)}}const z=0;class B{constructor(o){this.container=o,this.modes=["none"]}update(o,s,u,h){if(!this.modes.includes(h)||((o.options.move.distance.horizontal&&(s==="left"||s==="right"))??(o.options.move.distance.vertical&&(s==="top"||s==="bottom"))))return;const f=o.options.move.gravity,n=this.container,t=n.canvas.size,e=o.getRadius();if(f.enable){const r=o.position;(!f.inverse&&r.y>t.height+e&&s==="bottom"||f.inverse&&r.y<-e&&s==="top")&&n.particles.remove(o)}else{if(o.velocity.y>z&&o.position.y<=t.height+e||o.velocity.y=-e||o.velocity.x>z&&o.position.x<=t.width+e||o.velocity.x=-e)return;O(o.position,n.canvas.size,c.origin,e,s)||n.particles.remove(o)}}}const l=0,p=0;class D{constructor(o){this.container=o,this.modes=["out"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"inside":{const{x:n,y:t}=o.velocity,e=c.origin;e.length=o.moveCenter.radius,e.angle=o.velocity.angle+Math.PI,e.addTo(c.create(o.moveCenter));const{dx:r,dy:y}=M(o.position,e);if(n<=l&&r>=p||t<=l&&y>=p||n>=l&&r<=p||t>=l&&y<=p)return;o.position.x=Math.floor(b({min:0,max:f.canvas.size.width})),o.position.y=Math.floor(b({min:0,max:f.canvas.size.height}));const{dx:m,dy:d}=M(o.position,o.moveCenter);o.direction=Math.atan2(-d,-m),o.velocity.angle=o.direction;break}default:{if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;switch(o.outType){case"outside":{o.position.x=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.x,o.position.y=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.y;const{dx:n,dy:t}=M(o.position,o.moveCenter);o.moveCenter.radius&&(o.direction=Math.atan2(t,n),o.velocity.angle=o.direction);break}case"normal":{const n=o.options.move.warp,t=f.canvas.size,e={bottom:t.height+o.getRadius()+o.offset.y,left:-o.getRadius()-o.offset.x,right:t.width+o.getRadius()+o.offset.x,top:-o.getRadius()-o.offset.y},r=o.getRadius(),y=R(o.position,r);s==="right"&&y.left>t.width+o.offset.x?(o.position.x=e.left,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)):s==="left"&&y.right<-o.offset.x&&(o.position.x=e.right,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)),s==="bottom"&&y.top>t.height+o.offset.y?(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.top,o.initialPosition.y=o.position.y):s==="top"&&y.bottom<-o.offset.y&&(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.bottom,o.initialPosition.y=o.position.y);break}}break}}}}const w=(i,o)=>i.default===o||i.bottom===o||i.left===o||i.right===o||i.top===o;class T{constructor(o){this._updateOutMode=(s,u,h,f)=>{for(const n of this.updaters)n.update(s,f,u,h)},this.container=o,this.updaters=[]}init(o){this.updaters=[];const s=o.options.move.outModes;w(s,"bounce")?this.updaters.push(new k(this.container)):w(s,"out")?this.updaters.push(new D(this.container)):w(s,"destroy")?this.updaters.push(new _(this.container)):w(s,"none")&&this.updaters.push(new B(this.container))}isEnabled(o){return!o.destroyed&&!o.spawning}update(o,s){const u=o.options.move.outModes;this._updateOutMode(o,s,u.bottom??u.default,"bottom"),this._updateOutMode(o,s,u.left??u.default,"left"),this._updateOutMode(o,s,u.right??u.default,"right"),this._updateOutMode(o,s,u.top??u.default,"top")}}export{T as OutOfCanvasUpdater}; +import{H as P,a1 as R,W as M,af as O,O as c,J as g,I as b}from"./index-oTx0snEa.js";const C=0,v=0;function S(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.righti.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);const o=i.particle.velocity.x;let s=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&o>C||i.direction==="left"&&i.bounds.left<=v&&o=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-u:i.bounds.left<=v&&i.direction==="left"&&(i.particle.position.x=u),i.outMode==="split"&&i.particle.destroy()}function V(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottomi.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);const o=i.particle.velocity.y;let s=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&o>C||i.direction==="top"&&i.bounds.top<=v&&o=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-u:i.bounds.top<=v&&i.direction==="top"&&(i.particle.position.y=u),i.outMode==="split"&&i.particle.destroy()}class k{constructor(o){this.container=o,this.modes=["bounce","split"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;let n=!1;for(const[,d]of f.plugins)if(d.particleBounce!==void 0&&(n=d.particleBounce(o,u,s)),n)break;if(n)return;const t=o.getPosition(),e=o.offset,r=o.getRadius(),y=R(t,r),m=f.canvas.size;S({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r}),V({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r})}}const x=0;class _{constructor(o){this.container=o,this.modes=["destroy"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"normal":case"outside":if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;break;case"inside":{const{dx:n,dy:t}=M(o.position,o.moveCenter),{x:e,y:r}=o.velocity;if(eo.moveCenter.radius||ro.moveCenter.radius||e>=x&&n<-o.moveCenter.radius||r>=x&&t<-o.moveCenter.radius)return;break}}f.particles.remove(o,void 0,!0)}}const z=0;class B{constructor(o){this.container=o,this.modes=["none"]}update(o,s,u,h){if(!this.modes.includes(h)||((o.options.move.distance.horizontal&&(s==="left"||s==="right"))??(o.options.move.distance.vertical&&(s==="top"||s==="bottom"))))return;const f=o.options.move.gravity,n=this.container,t=n.canvas.size,e=o.getRadius();if(f.enable){const r=o.position;(!f.inverse&&r.y>t.height+e&&s==="bottom"||f.inverse&&r.y<-e&&s==="top")&&n.particles.remove(o)}else{if(o.velocity.y>z&&o.position.y<=t.height+e||o.velocity.y=-e||o.velocity.x>z&&o.position.x<=t.width+e||o.velocity.x=-e)return;O(o.position,n.canvas.size,c.origin,e,s)||n.particles.remove(o)}}}const l=0,p=0;class D{constructor(o){this.container=o,this.modes=["out"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"inside":{const{x:n,y:t}=o.velocity,e=c.origin;e.length=o.moveCenter.radius,e.angle=o.velocity.angle+Math.PI,e.addTo(c.create(o.moveCenter));const{dx:r,dy:y}=M(o.position,e);if(n<=l&&r>=p||t<=l&&y>=p||n>=l&&r<=p||t>=l&&y<=p)return;o.position.x=Math.floor(b({min:0,max:f.canvas.size.width})),o.position.y=Math.floor(b({min:0,max:f.canvas.size.height}));const{dx:m,dy:d}=M(o.position,o.moveCenter);o.direction=Math.atan2(-d,-m),o.velocity.angle=o.direction;break}default:{if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;switch(o.outType){case"outside":{o.position.x=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.x,o.position.y=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.y;const{dx:n,dy:t}=M(o.position,o.moveCenter);o.moveCenter.radius&&(o.direction=Math.atan2(t,n),o.velocity.angle=o.direction);break}case"normal":{const n=o.options.move.warp,t=f.canvas.size,e={bottom:t.height+o.getRadius()+o.offset.y,left:-o.getRadius()-o.offset.x,right:t.width+o.getRadius()+o.offset.x,top:-o.getRadius()-o.offset.y},r=o.getRadius(),y=R(o.position,r);s==="right"&&y.left>t.width+o.offset.x?(o.position.x=e.left,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)):s==="left"&&y.right<-o.offset.x&&(o.position.x=e.right,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)),s==="bottom"&&y.top>t.height+o.offset.y?(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.top,o.initialPosition.y=o.position.y):s==="top"&&y.bottom<-o.offset.y&&(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.bottom,o.initialPosition.y=o.position.y);break}}break}}}}const w=(i,o)=>i.default===o||i.bottom===o||i.left===o||i.right===o||i.top===o;class T{constructor(o){this._updateOutMode=(s,u,h,f)=>{for(const n of this.updaters)n.update(s,f,u,h)},this.container=o,this.updaters=[]}init(o){this.updaters=[];const s=o.options.move.outModes;w(s,"bounce")?this.updaters.push(new k(this.container)):w(s,"out")?this.updaters.push(new D(this.container)):w(s,"destroy")?this.updaters.push(new _(this.container)):w(s,"none")&&this.updaters.push(new B(this.container))}isEnabled(o){return!o.destroyed&&!o.spawning}update(o,s){const u=o.options.move.outModes;this._updateOutMode(o,s,u.bottom??u.default,"bottom"),this._updateOutMode(o,s,u.left??u.default,"left"),this._updateOutMode(o,s,u.right??u.default,"right"),this._updateOutMode(o,s,u.top??u.default,"top")}}export{T as OutOfCanvasUpdater}; diff --git a/dist/assets/ParallaxMover-7FUMtVYT.js b/dist/assets/ParallaxMover-BZB7s3ib.js similarity index 88% rename from dist/assets/ParallaxMover-7FUMtVYT.js rename to dist/assets/ParallaxMover-BZB7s3ib.js index 69668fd..3d0b0fd 100644 --- a/dist/assets/ParallaxMover-7FUMtVYT.js +++ b/dist/assets/ParallaxMover-BZB7s3ib.js @@ -1 +1 @@ -import{T as x}from"./index-CbDPnSIu.js";const v=.5;class m{init(){}isEnabled(a){return!x()&&!a.destroyed&&a.container.actualOptions.interactivity.events.onHover.parallax.enable}move(a){const e=a.container,y=e.actualOptions,n=y.interactivity.events.onHover.parallax;if(x()||!n.enable)return;const p=n.force,o=e.interactivity.mouse.position;if(!o)return;const s=e.canvas.size,i={x:s.width*v,y:s.height*v},r=n.smooth,c=a.getRadius()/p,l={x:(o.x-i.x)*c,y:(o.y-i.y)*c},{offset:t}=a;t.x+=(l.x-t.x)/r,t.y+=(l.y-t.y)/r}}export{m as ParallaxMover}; +import{T as x}from"./index-oTx0snEa.js";const v=.5;class m{init(){}isEnabled(a){return!x()&&!a.destroyed&&a.container.actualOptions.interactivity.events.onHover.parallax.enable}move(a){const e=a.container,y=e.actualOptions,n=y.interactivity.events.onHover.parallax;if(x()||!n.enable)return;const p=n.force,o=e.interactivity.mouse.position;if(!o)return;const s=e.canvas.size,i={x:s.width*v,y:s.height*v},r=n.smooth,c=a.getRadius()/p,l={x:(o.x-i.x)*c,y:(o.y-i.y)*c},{offset:t}=a;t.x+=(l.x-t.x)/r,t.y+=(l.y-t.y)/r}}export{m as ParallaxMover}; diff --git a/dist/assets/PolygonDrawer-DCIAvTsD.js b/dist/assets/PolygonDrawer-BMyW1y6Y.js similarity index 56% rename from dist/assets/PolygonDrawer-DCIAvTsD.js rename to dist/assets/PolygonDrawer-BMyW1y6Y.js index 9ae61d0..966513f 100644 --- a/dist/assets/PolygonDrawer-DCIAvTsD.js +++ b/dist/assets/PolygonDrawer-BMyW1y6Y.js @@ -1 +1 @@ -import{P as n}from"./PolygonDrawerBase-dd0t8LQt.js";import"./index-CbDPnSIu.js";const o=3.5,s=2.66,a=3;class g extends n{getCenter(t,e){return{x:-e/(t.sides/o),y:-e/(s/o)}}getSidesData(t,e){const r=t.sides;return{count:{denominator:1,numerator:r},length:e*s/(r/a)}}}export{g as PolygonDrawer}; +import{P as n}from"./PolygonDrawerBase-B3NsPTUa.js";import"./index-oTx0snEa.js";const o=3.5,s=2.66,a=3;class g extends n{getCenter(t,e){return{x:-e/(t.sides/o),y:-e/(s/o)}}getSidesData(t,e){const r=t.sides;return{count:{denominator:1,numerator:r},length:e*s/(r/a)}}}export{g as PolygonDrawer}; diff --git a/dist/assets/PolygonDrawerBase-dd0t8LQt.js b/dist/assets/PolygonDrawerBase-B3NsPTUa.js similarity index 88% rename from dist/assets/PolygonDrawerBase-dd0t8LQt.js rename to dist/assets/PolygonDrawerBase-B3NsPTUa.js index 3fb10da..23f5ca8 100644 --- a/dist/assets/PolygonDrawerBase-dd0t8LQt.js +++ b/dist/assets/PolygonDrawerBase-B3NsPTUa.js @@ -1 +1 @@ -import{G as c,H as l}from"./index-CbDPnSIu.js";const d=180,r={x:0,y:0},h=2;function m(s,n,t){const{context:e}=s,a=t.count.numerator*t.count.denominator,o=t.count.numerator/t.count.denominator,g=d*(o-h)/o,u=Math.PI-c(g);if(e){e.beginPath(),e.translate(n.x,n.y),e.moveTo(r.x,r.y);for(let i=0;i{if(n!==h)return;const t=this.container,o=t.actualOptions,r=o.interactivity.modes.push;if(!r)return;const i=p(r.quantity);if(i<=l)return;const s=c([void 0,...r.groups]),u=s!==void 0?t.actualOptions.particles.groups[s]:void 0;t.particles.push(i,t.interactivity.mouse,u,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new a);for(const t of n)e.push.load(t==null?void 0:t.push)}reset(){}}export{O as Pusher}; +import{Push as a}from"./index-YWtmZL0O.js";import{H as p,a9 as c}from"./index-oTx0snEa.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";const h="push",l=0;class O extends d{constructor(e){super(e),this.handleClickMode=n=>{if(n!==h)return;const t=this.container,o=t.actualOptions,r=o.interactivity.modes.push;if(!r)return;const i=p(r.quantity);if(i<=l)return;const s=c([void 0,...r.groups]),u=s!==void 0?t.actualOptions.particles.groups[s]:void 0;t.particles.push(i,t.interactivity.mouse,u,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new a);for(const t of n)e.push.load(t==null?void 0:t.push)}reset(){}}export{O as Pusher}; diff --git a/dist/assets/Ranges-D6O5nK3L.js b/dist/assets/Ranges-CImPpXf_.js similarity index 94% rename from dist/assets/Ranges-D6O5nK3L.js rename to dist/assets/Ranges-CImPpXf_.js index 551040f..7c5f89a 100644 --- a/dist/assets/Ranges-D6O5nK3L.js +++ b/dist/assets/Ranges-CImPpXf_.js @@ -1 +1 @@ -import{K as y}from"./index-CbDPnSIu.js";const r=2;class p{constructor(s,i,e){this.position={x:s,y:i},this.type=e}}class a extends p{constructor(s,i,e){super(s,i,"circle"),this.radius=e}contains(s){return y(s,this.position)<=this.radius}intersects(s){const i=this.position,e=s.position,t={x:Math.abs(e.x-i.x),y:Math.abs(e.y-i.y)},h=this.radius;if(s instanceof a||s.type==="circle"){const n=s,o=h+n.radius,c=Math.sqrt(t.x**r+t.y**r);return o>c}else if(s instanceof x||s.type==="rectangle"){const n=s,{width:o,height:c}=n.size;return Math.pow(t.x-o,r)+Math.pow(t.y-c,r)<=h**r||t.x<=h+o&&t.y<=h+c||t.x<=o||t.y<=c}return!1}}class x extends p{constructor(s,i,e,t){super(s,i,"rectangle"),this.size={height:t,width:e}}contains(s){const i=this.size.width,e=this.size.height,t=this.position;return s.x>=t.x&&s.x<=t.x+i&&s.y>=t.y&&s.y<=t.y+e}intersects(s){if(s instanceof a)return s.intersects(this);const i=this.size.width,e=this.size.height,t=this.position,h=s.position,n=s instanceof x?s.size:{width:0,height:0},o=n.width,c=n.height;return h.xt.x&&h.yt.y}}export{a as C,x as R}; +import{K as y}from"./index-oTx0snEa.js";const r=2;class p{constructor(s,i,e){this.position={x:s,y:i},this.type=e}}class a extends p{constructor(s,i,e){super(s,i,"circle"),this.radius=e}contains(s){return y(s,this.position)<=this.radius}intersects(s){const i=this.position,e=s.position,t={x:Math.abs(e.x-i.x),y:Math.abs(e.y-i.y)},h=this.radius;if(s instanceof a||s.type==="circle"){const n=s,o=h+n.radius,c=Math.sqrt(t.x**r+t.y**r);return o>c}else if(s instanceof x||s.type==="rectangle"){const n=s,{width:o,height:c}=n.size;return Math.pow(t.x-o,r)+Math.pow(t.y-c,r)<=h**r||t.x<=h+o&&t.y<=h+c||t.x<=o||t.y<=c}return!1}}class x extends p{constructor(s,i,e,t){super(s,i,"rectangle"),this.size={height:t,width:e}}contains(s){const i=this.size.width,e=this.size.height,t=this.position;return s.x>=t.x&&s.x<=t.x+i&&s.y>=t.y&&s.y<=t.y+e}intersects(s){if(s instanceof a)return s.intersects(this);const i=this.size.width,e=this.size.height,t=this.position,h=s.position,n=s instanceof x?s.size:{width:0,height:0},o=n.width,c=n.height;return h.xt.x&&h.yt.y}}export{a as C,x as R}; diff --git a/dist/assets/Remover-COiGBi5X.js b/dist/assets/Remover-B9_ej8y-.js similarity index 78% rename from dist/assets/Remover-COiGBi5X.js rename to dist/assets/Remover-B9_ej8y-.js index 19b74ef..93f874c 100644 --- a/dist/assets/Remover-COiGBi5X.js +++ b/dist/assets/Remover-B9_ej8y-.js @@ -1 +1 @@ -import{Remove as i}from"./index-BP0n4XC6.js";import{E as a}from"./ExternalInteractorBase-CIi3zRdK.js";import{H as m}from"./index-CbDPnSIu.js";const s="remove";class u extends a{constructor(t){super(t),this.handleClickMode=r=>{const e=this.container,o=e.actualOptions;if(!o.interactivity.modes.remove||r!==s)return;const n=m(o.interactivity.modes.remove.quantity);e.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...r){t.remove||(t.remove=new i);for(const e of r)t.remove.load(e==null?void 0:e.remove)}reset(){}}export{u as Remover}; +import{Remove as i}from"./index-Bk3F-R7Q.js";import{E as a}from"./ExternalInteractorBase-CIi3zRdK.js";import{H as m}from"./index-oTx0snEa.js";const s="remove";class u extends a{constructor(t){super(t),this.handleClickMode=r=>{const e=this.container,o=e.actualOptions;if(!o.interactivity.modes.remove||r!==s)return;const n=m(o.interactivity.modes.remove.quantity);e.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...r){t.remove||(t.remove=new i);for(const e of r)t.remove.load(e==null?void 0:e.remove)}reset(){}}export{u as Remover}; diff --git a/dist/assets/Repulser-ByapOynY.js b/dist/assets/Repulser--3uzCoY_.js similarity index 94% rename from dist/assets/Repulser-ByapOynY.js rename to dist/assets/Repulser--3uzCoY_.js index 06987ab..c032763 100644 --- a/dist/assets/Repulser-ByapOynY.js +++ b/dist/assets/Repulser--3uzCoY_.js @@ -1 +1 @@ -import{Repulse as T}from"./index-Bdcr2kqX.js";import{E as _}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as M,R as D}from"./Ranges-D6O5nK3L.js";import{W as O,O as b,X as w,L as S,a6 as C,q as P,t as H,S as g,Y as V,a2 as W}from"./index-CbDPnSIu.js";const h="repulse",F=0,L=6,A=3,I=2,B=0,X=0,Y=1,x=.5;class N extends _{constructor(c,n){super(n),this._clickRepulse=()=>{const t=this.container,i=t.actualOptions.interactivity.modes.repulse;if(!i)return;const e=t.repulse??{particles:[]};if(e.finish||(e.count||(e.count=0),e.count++,e.count===t.particles.count&&(e.finish=!0)),e.clicking){const s=t.retina.repulseModeDistance;if(!s||sthis.isEnabled(l));for(const l of a){const{dx:p,dy:f,distance:m}=O(u,l.position),d=m**I,v=i.speed,k=-r*v/d;if(d<=r){e.particles.push(l);const R=b.create(p,f);R.length=k,l.velocity.setTo(R)}}}else if(e.clicking===!1){for(const s of e.particles)s.velocity.setTo(s.initialVelocity);e.particles=[]}},this._hoverRepulse=()=>{const t=this.container,i=t.interactivity.mouse.position,e=t.retina.repulseModeDistance;!e||e{const r=this.container,u=r.particles.quadTree.query(e,v=>this.isEnabled(v)),o=r.actualOptions.interactivity.modes.repulse;if(!o)return;const{easing:a,speed:l,factor:p,maxSpeed:f}=o,m=w(a),d=((s==null?void 0:s.speed)??l)*p;for(const v of u){const{dx:k,dy:R,distance:y}=O(v.position,t),E=S(m(Y-y/i)*d,X,f),q=b.create(y?k/y*E:d,y?R/y*E:d);v.position.addTo(q)}},this._singleSelectorRepulse=(t,i)=>{const e=this.container,s=e.actualOptions.interactivity.modes.repulse;if(!s)return;const r=document.querySelectorAll(t);r.length&&r.forEach(u=>{const o=u,a=e.retina.pixelRatio,l={x:(o.offsetLeft+o.offsetWidth*x)*a,y:(o.offsetTop+o.offsetHeight*x)*a},p=o.offsetWidth*x*a,f=i.type==="circle"?new M(l.x,l.y,p):new D(o.offsetLeft*a,o.offsetTop*a,o.offsetWidth*a,o.offsetHeight*a),m=s.divs,d=C(m,o);this._processRepulse(l,p,f,d)})},this._engine=c,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions,e=i.interactivity.modes.repulse;if(!e||t!==h)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const r of n.repulse.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},e.duration*P)}}clear(){}init(){const c=this.container,n=c.actualOptions.interactivity.modes.repulse;n&&(c.retina.repulseModeDistance=n.distance*c.retina.pixelRatio)}interact(){const c=this.container,n=c.actualOptions,t=c.interactivity.status===H,i=n.interactivity.events,e=i.onHover,s=e.enable,r=e.mode,u=i.onClick,o=u.enable,a=u.mode,l=i.onDiv;t&&s&&g(h,r)?this._hoverRepulse():o&&g(h,a)?this._clickRepulse():V(h,l,(p,f)=>this._singleSelectorRepulse(p,f))}isEnabled(c){const n=this.container,t=n.actualOptions,i=n.interactivity.mouse,e=((c==null?void 0:c.interactivity)??t.interactivity).events,s=e.onDiv,r=e.onHover,u=e.onClick,o=W(h,s);if(!(o||r.enable&&i.position||u.enable&&i.clickPosition))return!1;const a=r.mode,l=u.mode;return g(h,a)||g(h,l)||o}loadModeOptions(c,...n){c.repulse||(c.repulse=new T);for(const t of n)c.repulse.load(t==null?void 0:t.repulse)}reset(){}}export{N as Repulser}; +import{Repulse as T}from"./index-Bzro8MKl.js";import{E as _}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as M,R as D}from"./Ranges-CImPpXf_.js";import{W as O,O as b,X as w,L as S,a6 as C,q as P,t as H,S as g,Y as V,a2 as W}from"./index-oTx0snEa.js";const h="repulse",F=0,L=6,A=3,I=2,B=0,X=0,Y=1,x=.5;class N extends _{constructor(c,n){super(n),this._clickRepulse=()=>{const t=this.container,i=t.actualOptions.interactivity.modes.repulse;if(!i)return;const e=t.repulse??{particles:[]};if(e.finish||(e.count||(e.count=0),e.count++,e.count===t.particles.count&&(e.finish=!0)),e.clicking){const s=t.retina.repulseModeDistance;if(!s||sthis.isEnabled(l));for(const l of a){const{dx:p,dy:f,distance:m}=O(u,l.position),d=m**I,v=i.speed,k=-r*v/d;if(d<=r){e.particles.push(l);const R=b.create(p,f);R.length=k,l.velocity.setTo(R)}}}else if(e.clicking===!1){for(const s of e.particles)s.velocity.setTo(s.initialVelocity);e.particles=[]}},this._hoverRepulse=()=>{const t=this.container,i=t.interactivity.mouse.position,e=t.retina.repulseModeDistance;!e||e{const r=this.container,u=r.particles.quadTree.query(e,v=>this.isEnabled(v)),o=r.actualOptions.interactivity.modes.repulse;if(!o)return;const{easing:a,speed:l,factor:p,maxSpeed:f}=o,m=w(a),d=((s==null?void 0:s.speed)??l)*p;for(const v of u){const{dx:k,dy:R,distance:y}=O(v.position,t),E=S(m(Y-y/i)*d,X,f),q=b.create(y?k/y*E:d,y?R/y*E:d);v.position.addTo(q)}},this._singleSelectorRepulse=(t,i)=>{const e=this.container,s=e.actualOptions.interactivity.modes.repulse;if(!s)return;const r=document.querySelectorAll(t);r.length&&r.forEach(u=>{const o=u,a=e.retina.pixelRatio,l={x:(o.offsetLeft+o.offsetWidth*x)*a,y:(o.offsetTop+o.offsetHeight*x)*a},p=o.offsetWidth*x*a,f=i.type==="circle"?new M(l.x,l.y,p):new D(o.offsetLeft*a,o.offsetTop*a,o.offsetWidth*a,o.offsetHeight*a),m=s.divs,d=C(m,o);this._processRepulse(l,p,f,d)})},this._engine=c,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions,e=i.interactivity.modes.repulse;if(!e||t!==h)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const r of n.repulse.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},e.duration*P)}}clear(){}init(){const c=this.container,n=c.actualOptions.interactivity.modes.repulse;n&&(c.retina.repulseModeDistance=n.distance*c.retina.pixelRatio)}interact(){const c=this.container,n=c.actualOptions,t=c.interactivity.status===H,i=n.interactivity.events,e=i.onHover,s=e.enable,r=e.mode,u=i.onClick,o=u.enable,a=u.mode,l=i.onDiv;t&&s&&g(h,r)?this._hoverRepulse():o&&g(h,a)?this._clickRepulse():V(h,l,(p,f)=>this._singleSelectorRepulse(p,f))}isEnabled(c){const n=this.container,t=n.actualOptions,i=n.interactivity.mouse,e=((c==null?void 0:c.interactivity)??t.interactivity).events,s=e.onDiv,r=e.onHover,u=e.onClick,o=W(h,s);if(!(o||r.enable&&i.position||u.enable&&i.clickPosition))return!1;const a=r.mode,l=u.mode;return g(h,a)||g(h,l)||o}loadModeOptions(c,...n){c.repulse||(c.repulse=new T);for(const t of n)c.repulse.load(t==null?void 0:t.repulse)}reset(){}}export{N as Repulser}; diff --git a/dist/assets/RotateUpdater-CipNpjj6.js b/dist/assets/RotateUpdater-B_bxt6OZ.js similarity index 91% rename from dist/assets/RotateUpdater-CipNpjj6.js rename to dist/assets/RotateUpdater-B_bxt6OZ.js index 5cdd88f..c0cccd0 100644 --- a/dist/assets/RotateUpdater-CipNpjj6.js +++ b/dist/assets/RotateUpdater-B_bxt6OZ.js @@ -1 +1 @@ -import{s as a,G as c,H as i,J as r,ab as u}from"./index-CbDPnSIu.js";import{V as f}from"./ValueWithRandom-kjUuQ2nW.js";class h{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=a(e.speed)),e.decay!==void 0&&(this.decay=a(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}class l extends f{constructor(){super(),this.animation=new h,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}const d=2,m=Math.PI*d,b=1,y=360;class p{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:c(i(t.value)),min:0,max:m},e.pathRotation=t.path;let n=t.direction;switch(n==="random"&&(n=Math.floor(r()*d)>0?"counter-clockwise":"clockwise"),n){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const o=t.animation;o.enable&&(e.rotate.decay=b-i(o.decay),e.rotate.velocity=i(o.speed)/y*this.container.retina.reduceFactor,o.sync||(e.rotate.velocity*=r())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new l);for(const n of t)e.rotate.load(n==null?void 0:n.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(u(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}export{p as RotateUpdater}; +import{s as a,G as c,H as i,J as r,ab as u}from"./index-oTx0snEa.js";import{V as f}from"./ValueWithRandom-D5hQ_OLE.js";class h{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=a(e.speed)),e.decay!==void 0&&(this.decay=a(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}class l extends f{constructor(){super(),this.animation=new h,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}const d=2,m=Math.PI*d,b=1,y=360;class p{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:c(i(t.value)),min:0,max:m},e.pathRotation=t.path;let n=t.direction;switch(n==="random"&&(n=Math.floor(r()*d)>0?"counter-clockwise":"clockwise"),n){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const o=t.animation;o.enable&&(e.rotate.decay=b-i(o.decay),e.rotate.velocity=i(o.speed)/y*this.container.retina.reduceFactor,o.sync||(e.rotate.velocity*=r())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new l);for(const n of t)e.rotate.load(n==null?void 0:n.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(u(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}export{p as RotateUpdater}; diff --git a/dist/assets/SizeUpdater-BuF1cNXU.js b/dist/assets/SizeUpdater-Dqp69Yen.js similarity index 88% rename from dist/assets/SizeUpdater-BuF1cNXU.js rename to dist/assets/SizeUpdater-Dqp69Yen.js index 616064e..48f221e 100644 --- a/dist/assets/SizeUpdater-BuF1cNXU.js +++ b/dist/assets/SizeUpdater-Dqp69Yen.js @@ -1 +1 @@ -import{ae as t,J as a,ab as z}from"./index-CbDPnSIu.js";const n=0;class r{init(e){const s=e.container,i=e.options.size,o=i.animation;o.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/t*s.retina.reduceFactor,o.sync||(e.size.velocity*=a()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??n)<=n||(e.size.maxLoops??n)>n&&(e.size.loops??n)<(e.size.maxLoops??n))}reset(e){e.size.loops=n}update(e,s){this.isEnabled(e)&&z(e,e.size,!0,e.options.size.animation.destroy,s)}}export{r as SizeUpdater}; +import{ae as t,J as a,ab as z}from"./index-oTx0snEa.js";const n=0;class r{init(e){const s=e.container,i=e.options.size,o=i.animation;o.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/t*s.retina.reduceFactor,o.sync||(e.size.velocity*=a()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??n)<=n||(e.size.maxLoops??n)>n&&(e.size.loops??n)<(e.size.maxLoops??n))}reset(e){e.size.loops=n}update(e,s){this.isEnabled(e)&&z(e,e.size,!0,e.options.size.animation.destroy,s)}}export{r as SizeUpdater}; diff --git a/dist/assets/Slower-pThPJGFh.js b/dist/assets/Slower-CyiQ80af.js similarity index 87% rename from dist/assets/Slower-pThPJGFh.js rename to dist/assets/Slower-CyiQ80af.js index 843f1ff..4eddd42 100644 --- a/dist/assets/Slower-pThPJGFh.js +++ b/dist/assets/Slower-CyiQ80af.js @@ -1 +1 @@ -import{Slow as u}from"./index-DrAI_B4E.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";import{S as m,K as f}from"./index-CbDPnSIu.js";const v="slow",y=0;class O extends d{constructor(o){super(o)}clear(o,t,i){o.slow.inRange&&!i||(o.slow.factor=1)}init(){const o=this.container,t=o.actualOptions.interactivity.modes.slow;t&&(o.retina.slowModeRadius=t.radius*o.retina.pixelRatio)}interact(){}isEnabled(o){const t=this.container,i=t.interactivity.mouse,s=((o==null?void 0:o.interactivity)??t.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&m(v,s.onHover.mode)}loadModeOptions(o,...t){o.slow||(o.slow=new u);for(const i of t)o.slow.load(i==null?void 0:i.slow)}reset(o){o.slow.inRange=!1;const t=this.container,i=t.actualOptions,s=t.interactivity.mouse.position,n=t.retina.slowModeRadius,e=i.interactivity.modes.slow;if(!e||!n||nn||(a.inRange=!0,a.factor=l/w)}}export{O as Slower}; +import{Slow as u}from"./index-CCm-dUC4.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";import{S as m,K as f}from"./index-oTx0snEa.js";const v="slow",y=0;class O extends d{constructor(o){super(o)}clear(o,t,i){o.slow.inRange&&!i||(o.slow.factor=1)}init(){const o=this.container,t=o.actualOptions.interactivity.modes.slow;t&&(o.retina.slowModeRadius=t.radius*o.retina.pixelRatio)}interact(){}isEnabled(o){const t=this.container,i=t.interactivity.mouse,s=((o==null?void 0:o.interactivity)??t.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&m(v,s.onHover.mode)}loadModeOptions(o,...t){o.slow||(o.slow=new u);for(const i of t)o.slow.load(i==null?void 0:i.slow)}reset(o){o.slow.inRange=!1;const t=this.container,i=t.actualOptions,s=t.interactivity.mouse.position,n=t.retina.slowModeRadius,e=i.interactivity.modes.slow;if(!e||!n||nn||(a.inRange=!0,a.factor=l/w)}}export{O as Slower}; diff --git a/dist/assets/StarDrawer-Dtnjxe3A.js b/dist/assets/StarDrawer-Cgx7yWk3.js similarity index 87% rename from dist/assets/StarDrawer-Dtnjxe3A.js rename to dist/assets/StarDrawer-Cgx7yWk3.js index c7bb57f..c39c521 100644 --- a/dist/assets/StarDrawer-Dtnjxe3A.js +++ b/dist/assets/StarDrawer-Cgx7yWk3.js @@ -1 +1 @@ -import{H as i}from"./index-CbDPnSIu.js";const c=2,s={x:0,y:0};function l(o){const{context:t,particle:e,radius:a}=o,n=e.sides,d=e.starInset??c;t.moveTo(s.x,s.y-a);for(let r=0;r __vite__mapDeps.viteFileDeps[i]) } -import{_ as O}from"./index-CbDPnSIu.js";const R=[0,4,2,1],G=[8,8,4,2];class U{constructor(a){this.pos=0,this.data=new Uint8ClampedArray(a)}getString(a){const s=this.data.slice(this.pos,this.pos+a);return this.pos+=s.length,s.reduce((n,f)=>n+String.fromCharCode(f),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let a="",s=0;const n=0,f=0;do{s=this.data[this.pos++];for(let e=s;--e>=n;a+=String.fromCharCode(this.data[this.pos++]));}while(s!==f);return a}readSubBlocksBin(){let a=this.data[this.pos],s=0;const n=0,f=1;for(let o=0;a!==n;o+=a+f,a=this.data[this.pos+o])s+=a;const e=new Uint8Array(s);a=this.data[this.pos++];for(let o=0;a!==n;a=this.data[this.pos++])for(let r=a;--r>=n;e[o++]=this.data[this.pos++]);return e}skipSubBlocks(){for(const a=1,s=0;this.data[this.pos]!==s;this.pos+=this.data[this.pos]+a);this.pos++}}const u={x:0,y:0},N=0,L=.5,$=0,A=0,z=0;function _(t,a){const s=[];for(let n=0;n>>5,f.disposalMethod=(e&28)>>>2,f.userInputDelayFlag=(e&2)===2;const o=(e&1)===1;f.delayTime=t.nextTwoBytes()*10;const r=t.nextByte();o&&n(r),t.pos++;break}case 255:{t.pos++;const f={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};a.applicationExtensions.push(f);break}case 254:{a.comments.push([s(!1),t.readSubBlocks()]);break}case 1:{if(a.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,a.frames[s(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function W(t,a,s,n,f,e){const o=a.frames[n(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const r=t.nextByte(),x=(r&128)===128,d=(r&64)===64;o.sortFlag=(r&32)===32,o.reserved=(r&24)>>>3;const c=1<<(r&7)+1;x&&(o.localColorTable=_(t,c));const m=l=>{const{r:h,g:p,b:i}=(x?o.localColorTable:a.globalColorTable)[l];return l!==f(null)?{r:h,g:p,b:i,a:255}:{r:h,g:p,b:i,a:s?~~((h+p+i)/3):0}},B=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(l){if(l instanceof DOMException&&l.name==="IndexSizeError")return null;throw l}})();if(B==null)throw new EvalError("GIF frame size is to large");const D=t.nextByte(),b=t.readSubBlocksBin(),w=1<{const p=l>>>3,i=l&7;return(b[p]+(b[p+1]<<8)+(b[p+2]<<16)&(1<>>i};if(d){for(let l=0,h=D+1,p=0,i=[[0]],I=0;I<4;I++){if(R[I]=i.length?i.push(i[E].concat(i[E][0])):E!==w&&i.push(i[E].concat(i[l][0]));for(const C of i[l]){const{r:v,g:F,b:P,a:M}=m(C);B.data.set([v,F,P,M],R[I]*o.width+G[I]*y+g%(o.width*4)),g+=4}i.length===1<=o.height&&(T=!0))}}e==null||e(t.pos/(t.data.length-1),n(!1)+1,B,{x:o.left,y:o.top},{width:a.width,height:a.height})}o.image=B,o.bitmap=await createImageBitmap(B)}else{let l=0,h=D+1,p=0,i=-4,I=!1;const g=[[0]];for(;!I;){const y=l;if(l=k(p,h),p+=h,l===w){h=D+1,g.length=w+2;for(let T=0;T=g.length?g.push(g[y].concat(g[y][0])):y!==w&&g.push(g[y].concat(g[l][0]));for(const T of g[l]){const{r:E,g:C,b:v,a:F}=m(T);B.data.set([E,C,v,F],i+=4)}g.length>=1<>>4,e.sortFlag=(r&8)===8;const d=1<<(r&7)+1,c=o.nextByte();e.pixelAspectRatio=o.nextByte(),e.pixelAspectRatio!==0&&(e.pixelAspectRatio=(e.pixelAspectRatio+15)/64),x&&(e.globalColorTable=_(o,d));const m=(()=>{try{return new ImageData(e.width,e.height,{colorSpace:"srgb"})}catch(i){if(i instanceof DOMException&&i.name==="IndexSizeError")return null;throw i}})();if(m==null)throw new Error("GIF frame size is to large");const{r:B,g:D,b}=e.globalColorTable[c];m.data.set(x?[B,D,b,255]:[0,0,0,0]);for(let i=4;i(i&&(k=!0),w),p=i=>(i!=null&&(l=i),l);try{do k&&(e.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),w++,l=-1,k=!1);while(!await j(o,e,s,h,p,a));e.frames.length--;for(const i of e.frames){if(i.userInputDelayFlag&&i.delayTime===0){e.totalTime=1/0;break}e.totalTime+=i.delayTime}return e}catch(i){throw i instanceof EvalError?new Error(`error while parsing frame ${w} "${i.message}"`):i}}function K(t){const{context:a,radius:s,particle:n,delta:f}=t,e=n.image;if(!(e!=null&&e.gifData)||!e.gif)return;const o=new OffscreenCanvas(e.gifData.width,e.gifData.height),r=o.getContext("2d");if(!r)throw new Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(u.x,u.y,o.width,o.height),n.gifLoopCount===void 0&&(n.gifLoopCount=e.gifLoopCount??z);let x=n.gifFrame??N;const d={x:-e.gifData.width*L,y:-e.gifData.height*L},c=e.gifData.frames[x];if(n.gifTime===void 0&&(n.gifTime=$),!!c.bitmap){switch(a.scale(s/e.gifData.width,s/e.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height);break;case 1:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y);break;case 2:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),e.gifData.globalColorTable.length?r.putImageData(e.gifData.backgroundImage,d.x,d.y):r.putImageData(e.gifData.frames[A].image,d.x+c.left,d.y+c.top);break;case 3:{const m=r.getImageData(u.x,u.y,o.width,o.height);r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),r.putImageData(m,u.x,u.y)}break}if(n.gifTime+=f.value,n.gifTime>c.delayTime){if(n.gifTime-=c.delayTime,++x>=e.gifData.frames.length){if(--n.gifLoopCount<=z)return;x=A,r.clearRect(u.x,u.y,o.width,o.height)}n.gifFrame=x}a.scale(e.gifData.width/s,e.gifData.height/s)}}async function V(t){if(t.type!=="gif"){const{loadImage:a}=await O(()=>import("./index-D88zuU4-.js").then(s=>s.U),__vite__mapDeps([0,1,2]));await a(t);return}t.loading=!0;try{t.gifData=await H(t.source),t.gifLoopCount=q(t.gifData)??z,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}export{H as decodeGIF,K as drawGif,q as getGIFLoopAmount,V as loadGifImage}; +import{_ as O}from"./index-oTx0snEa.js";const R=[0,4,2,1],G=[8,8,4,2];class U{constructor(a){this.pos=0,this.data=new Uint8ClampedArray(a)}getString(a){const s=this.data.slice(this.pos,this.pos+a);return this.pos+=s.length,s.reduce((n,f)=>n+String.fromCharCode(f),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let a="",s=0;const n=0,f=0;do{s=this.data[this.pos++];for(let e=s;--e>=n;a+=String.fromCharCode(this.data[this.pos++]));}while(s!==f);return a}readSubBlocksBin(){let a=this.data[this.pos],s=0;const n=0,f=1;for(let o=0;a!==n;o+=a+f,a=this.data[this.pos+o])s+=a;const e=new Uint8Array(s);a=this.data[this.pos++];for(let o=0;a!==n;a=this.data[this.pos++])for(let r=a;--r>=n;e[o++]=this.data[this.pos++]);return e}skipSubBlocks(){for(const a=1,s=0;this.data[this.pos]!==s;this.pos+=this.data[this.pos]+a);this.pos++}}const u={x:0,y:0},N=0,L=.5,$=0,A=0,z=0;function _(t,a){const s=[];for(let n=0;n>>5,f.disposalMethod=(e&28)>>>2,f.userInputDelayFlag=(e&2)===2;const o=(e&1)===1;f.delayTime=t.nextTwoBytes()*10;const r=t.nextByte();o&&n(r),t.pos++;break}case 255:{t.pos++;const f={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};a.applicationExtensions.push(f);break}case 254:{a.comments.push([s(!1),t.readSubBlocks()]);break}case 1:{if(a.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,a.frames[s(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function W(t,a,s,n,f,e){const o=a.frames[n(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const r=t.nextByte(),x=(r&128)===128,d=(r&64)===64;o.sortFlag=(r&32)===32,o.reserved=(r&24)>>>3;const c=1<<(r&7)+1;x&&(o.localColorTable=_(t,c));const m=l=>{const{r:h,g:p,b:i}=(x?o.localColorTable:a.globalColorTable)[l];return l!==f(null)?{r:h,g:p,b:i,a:255}:{r:h,g:p,b:i,a:s?~~((h+p+i)/3):0}},B=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(l){if(l instanceof DOMException&&l.name==="IndexSizeError")return null;throw l}})();if(B==null)throw new EvalError("GIF frame size is to large");const D=t.nextByte(),b=t.readSubBlocksBin(),w=1<{const p=l>>>3,i=l&7;return(b[p]+(b[p+1]<<8)+(b[p+2]<<16)&(1<>>i};if(d){for(let l=0,h=D+1,p=0,i=[[0]],I=0;I<4;I++){if(R[I]=i.length?i.push(i[E].concat(i[E][0])):E!==w&&i.push(i[E].concat(i[l][0]));for(const C of i[l]){const{r:v,g:F,b:P,a:M}=m(C);B.data.set([v,F,P,M],R[I]*o.width+G[I]*y+g%(o.width*4)),g+=4}i.length===1<=o.height&&(T=!0))}}e==null||e(t.pos/(t.data.length-1),n(!1)+1,B,{x:o.left,y:o.top},{width:a.width,height:a.height})}o.image=B,o.bitmap=await createImageBitmap(B)}else{let l=0,h=D+1,p=0,i=-4,I=!1;const g=[[0]];for(;!I;){const y=l;if(l=k(p,h),p+=h,l===w){h=D+1,g.length=w+2;for(let T=0;T=g.length?g.push(g[y].concat(g[y][0])):y!==w&&g.push(g[y].concat(g[l][0]));for(const T of g[l]){const{r:E,g:C,b:v,a:F}=m(T);B.data.set([E,C,v,F],i+=4)}g.length>=1<>>4,e.sortFlag=(r&8)===8;const d=1<<(r&7)+1,c=o.nextByte();e.pixelAspectRatio=o.nextByte(),e.pixelAspectRatio!==0&&(e.pixelAspectRatio=(e.pixelAspectRatio+15)/64),x&&(e.globalColorTable=_(o,d));const m=(()=>{try{return new ImageData(e.width,e.height,{colorSpace:"srgb"})}catch(i){if(i instanceof DOMException&&i.name==="IndexSizeError")return null;throw i}})();if(m==null)throw new Error("GIF frame size is to large");const{r:B,g:D,b}=e.globalColorTable[c];m.data.set(x?[B,D,b,255]:[0,0,0,0]);for(let i=4;i(i&&(k=!0),w),p=i=>(i!=null&&(l=i),l);try{do k&&(e.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),w++,l=-1,k=!1);while(!await j(o,e,s,h,p,a));e.frames.length--;for(const i of e.frames){if(i.userInputDelayFlag&&i.delayTime===0){e.totalTime=1/0;break}e.totalTime+=i.delayTime}return e}catch(i){throw i instanceof EvalError?new Error(`error while parsing frame ${w} "${i.message}"`):i}}function K(t){const{context:a,radius:s,particle:n,delta:f}=t,e=n.image;if(!(e!=null&&e.gifData)||!e.gif)return;const o=new OffscreenCanvas(e.gifData.width,e.gifData.height),r=o.getContext("2d");if(!r)throw new Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(u.x,u.y,o.width,o.height),n.gifLoopCount===void 0&&(n.gifLoopCount=e.gifLoopCount??z);let x=n.gifFrame??N;const d={x:-e.gifData.width*L,y:-e.gifData.height*L},c=e.gifData.frames[x];if(n.gifTime===void 0&&(n.gifTime=$),!!c.bitmap){switch(a.scale(s/e.gifData.width,s/e.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height);break;case 1:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y);break;case 2:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),e.gifData.globalColorTable.length?r.putImageData(e.gifData.backgroundImage,d.x,d.y):r.putImageData(e.gifData.frames[A].image,d.x+c.left,d.y+c.top);break;case 3:{const m=r.getImageData(u.x,u.y,o.width,o.height);r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),r.putImageData(m,u.x,u.y)}break}if(n.gifTime+=f.value,n.gifTime>c.delayTime){if(n.gifTime-=c.delayTime,++x>=e.gifData.frames.length){if(--n.gifLoopCount<=z)return;x=A,r.clearRect(u.x,u.y,o.width,o.height)}n.gifFrame=x}a.scale(e.gifData.width/s,e.gifData.height/s)}}async function V(t){if(t.type!=="gif"){const{loadImage:a}=await O(()=>import("./index-B3nXYzwg.js").then(s=>s.U),__vite__mapDeps([0,1,2]));await a(t);return}t.loading=!0;try{t.gifData=await H(t.source),t.gifLoopCount=q(t.gifData)??z,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}export{H as decodeGIF,K as drawGif,q as getGIFLoopAmount,V as loadGifImage}; diff --git a/dist/assets/ValueWithRandom-kjUuQ2nW.js b/dist/assets/ValueWithRandom-D5hQ_OLE.js similarity index 93% rename from dist/assets/ValueWithRandom-kjUuQ2nW.js rename to dist/assets/ValueWithRandom-D5hQ_OLE.js index eb8326c..8b99e2b 100644 --- a/dist/assets/ValueWithRandom-kjUuQ2nW.js +++ b/dist/assets/ValueWithRandom-D5hQ_OLE.js @@ -1 +1 @@ -import{s as n}from"./index-CbDPnSIu.js";class t{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=n(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=n(e.speed)),e.decay!==void 0&&(this.decay=n(e.decay)),e.delay!==void 0&&(this.delay=n(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class o extends t{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class u{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=n(e.value))}}class l extends u{constructor(){super(),this.animation=new t}load(e){if(super.load(e),!e)return;const s=e.animation;s!==void 0&&this.animation.load(s)}}class r extends l{constructor(){super(),this.animation=new o}load(e){super.load(e)}}export{t as A,o as R,u as V,r as a}; +import{s as n}from"./index-oTx0snEa.js";class t{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=n(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=n(e.speed)),e.decay!==void 0&&(this.decay=n(e.decay)),e.delay!==void 0&&(this.delay=n(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class o extends t{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class u{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=n(e.value))}}class l extends u{constructor(){super(),this.animation=new t}load(e){if(super.load(e),!e)return;const s=e.animation;s!==void 0&&this.animation.load(s)}}class r extends l{constructor(){super(),this.animation=new o}load(e){super.load(e)}}export{t as A,o as R,u as V,r as a}; diff --git a/dist/assets/image 3-C7hDAp5O.png b/dist/assets/image 3-C7hDAp5O.png deleted file mode 100644 index 560f00f..0000000 Binary files a/dist/assets/image 3-C7hDAp5O.png and /dev/null differ diff --git a/dist/assets/image 8-BkCXtRCr.png b/dist/assets/image 8-BkCXtRCr.png deleted file mode 100644 index 2bf8140..0000000 Binary files a/dist/assets/image 8-BkCXtRCr.png and /dev/null differ diff --git a/dist/assets/index-1EK2DznA.js b/dist/assets/index-1EK2DznA.js new file mode 100644 index 0000000..03b7a04 --- /dev/null +++ b/dist/assets/index-1EK2DznA.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/index-CyLeXEWe.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/index-BJycpAwg.js","assets/index-Bw__r20K.js","assets/index-CTSBAsgv.js","assets/index-Sft8gFf2.js","assets/index-BMjOnTlA.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as t}from"./index-oTx0snEa.js";async function s(a,_=!0){const{loadBaseMover:o}=await t(()=>import("./index-CyLeXEWe.js"),__vite__mapDeps([0,1,2])),{loadCircleShape:i}=await t(()=>import("./index-BJycpAwg.js"),__vite__mapDeps([3,1,2])),{loadColorUpdater:r}=await t(()=>import("./index-Bw__r20K.js"),__vite__mapDeps([4,1,2])),{loadOpacityUpdater:d}=await t(()=>import("./index-CTSBAsgv.js"),__vite__mapDeps([5,1,2])),{loadOutModesUpdater:e}=await t(()=>import("./index-Sft8gFf2.js"),__vite__mapDeps([6,1,2])),{loadSizeUpdater:l}=await t(()=>import("./index-BMjOnTlA.js"),__vite__mapDeps([7,1,2]));await o(a,!1),await i(a,!1),await r(a,!1),await d(a,!1),await e(a,!1),await l(a,!1),await a.refresh(_)}export{s as loadBasic}; diff --git a/dist/assets/index-60u0t76u.js b/dist/assets/index-60u0t76u.js new file mode 100644 index 0000000..f0672ef --- /dev/null +++ b/dist/assets/index-60u0t76u.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/StrokeColorUpdater-_3HxsYjU.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as e}from"./index-oTx0snEa.js";async function i(r,o=!0){await r.addParticleUpdater("strokeColor",async t=>{const{StrokeColorUpdater:a}=await e(()=>import("./StrokeColorUpdater-_3HxsYjU.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadStrokeColorUpdater}; diff --git a/dist/assets/index-BSf9gbQ8.js b/dist/assets/index-B0PQzHkc.js similarity index 72% rename from dist/assets/index-BSf9gbQ8.js rename to dist/assets/index-B0PQzHkc.js index debb582..12246f7 100644 --- a/dist/assets/index-BSf9gbQ8.js +++ b/dist/assets/index-B0PQzHkc.js @@ -1 +1 @@ -import{a as i}from"./index-CbDPnSIu.js";async function s(){i("ease-in-quad",a=>a**2),i("ease-out-quad",a=>1-(1-a)**2),i("ease-in-out-quad",a=>a<.5?2*a**2:1-(-2*a+2)**2/2),await Promise.resolve()}export{s as loadEasingQuadPlugin}; +import{a as i}from"./index-oTx0snEa.js";async function s(){i("ease-in-quad",a=>a**2),i("ease-out-quad",a=>1-(1-a)**2),i("ease-in-out-quad",a=>a<.5?2*a**2:1-(-2*a+2)**2/2),await Promise.resolve()}export{s as loadEasingQuadPlugin}; diff --git a/dist/assets/index-D5i61_SE.js b/dist/assets/index-B165eDFn.js similarity index 56% rename from dist/assets/index-D5i61_SE.js rename to dist/assets/index-B165eDFn.js index 8569455..42e38b1 100644 --- a/dist/assets/index-D5i61_SE.js +++ b/dist/assets/index-B165eDFn.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Collider-D3jNlpTg.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ParticlesInteractorBase-vfDeBun3.js"] + __vite__mapDeps.viteFileDeps = ["assets/Collider-CHVutL-A.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ParticlesInteractorBase-vfDeBun3.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as a}from"./index-CbDPnSIu.js";async function n(t,o=!0){await t.addInteractor("particlesCollisions",async i=>{const{Collider:r}=await a(()=>import("./Collider-D3jNlpTg.js"),__vite__mapDeps([0,1,2,3]));return new r(i)},o)}export{n as loadParticlesCollisionsInteraction}; +import{_ as a}from"./index-oTx0snEa.js";async function n(t,o=!0){await t.addInteractor("particlesCollisions",async i=>{const{Collider:r}=await a(()=>import("./Collider-CHVutL-A.js"),__vite__mapDeps([0,1,2,3]));return new r(i)},o)}export{n as loadParticlesCollisionsInteraction}; diff --git a/dist/assets/index-B2af72G9.js b/dist/assets/index-B2af72G9.js deleted file mode 100644 index d244fe4..0000000 --- a/dist/assets/index-B2af72G9.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/StrokeColorUpdater-MGxlvsK-.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as e}from"./index-CbDPnSIu.js";async function i(r,o=!0){await r.addParticleUpdater("strokeColor",async t=>{const{StrokeColorUpdater:a}=await e(()=>import("./StrokeColorUpdater-MGxlvsK-.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadStrokeColorUpdater}; diff --git a/dist/assets/index-D88zuU4-.js b/dist/assets/index-B3nXYzwg.js similarity index 88% rename from dist/assets/index-D88zuU4-.js rename to dist/assets/index-B3nXYzwg.js index eafcfc5..65e3f40 100644 --- a/dist/assets/index-D88zuU4-.js +++ b/dist/assets/index-B3nXYzwg.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Utils-DvoUm1uE.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ImageDrawer-BWuYTgl0.js"] + __vite__mapDeps.viteFileDeps = ["assets/Utils-C0lchmwz.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ImageDrawer-C0ekws-d.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{g as h,b as m,c as i,_ as u}from"./index-CbDPnSIu.js";const y=0,I=1,b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function L(r,e,o){const{svgData:t}=r;if(!t)return"";const n=h(e,o);if(t.includes("fill"))return t.replace(b,()=>n);const s=t.indexOf(">");return`${t.substring(y,s)} fill="${n}"${t.substring(s)}`}async function a(r){return new Promise(e=>{r.loading=!0;const o=new Image;r.element=o,o.addEventListener("load",()=>{r.loading=!1,e()}),o.addEventListener("error",()=>{r.element=void 0,r.error=!0,r.loading=!1,m().error(`${i} loading image: ${r.source}`),e()}),o.src=r.source})}async function p(r){if(r.type!=="svg"){await a(r);return}r.loading=!0;const e=await fetch(r.source);e.ok?r.svgData=await e.text():(m().error(`${i} Image not found`),r.error=!0),r.loading=!1}function E(r,e,o,t){var g;const n=L(r,o,((g=t.opacity)==null?void 0:g.value)??I),s={color:o,gif:e.gif,data:{...r,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(f=>{const _=new Blob([n],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(_),l=new Image;l.addEventListener("load",()=>{s.loaded=!0,s.element=l,f(s),c.revokeObjectURL(d)});const v=async()=>{c.revokeObjectURL(d);const w={...r,error:!1,loading:!0};await a(w),s.loaded=!0,s.element=w.element,f(s)};l.addEventListener("error",()=>void v()),l.src=d})}const x=Object.freeze(Object.defineProperty({__proto__:null,downloadSvgImage:p,loadImage:a,replaceImageColor:E},Symbol.toStringTag,{value:"Module"})),O=3;function P(r){r.loadImage||(r.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${i} no image source provided`);if(r.images||(r.images=[]),!r.images.find(o=>o.name===e.name||o.source===e.src))try{const o={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-O),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};r.images.push(o);let t;if(e.gif){const{loadGifImage:n}=await u(()=>import("./Utils-DvoUm1uE.js"),__vite__mapDeps([0,1,2]));t=n}else t=e.replaceColor?p:a;await t(o)}catch{throw new Error(`${i} ${e.name??e.src} not found`)}})}async function R(r,e=!0){P(r);const{ImagePreloaderPlugin:o}=await u(()=>import("./ImagePreloader-wDGOXDcw.js"),[]),{ImageDrawer:t}=await u(()=>import("./ImageDrawer-BWuYTgl0.js"),__vite__mapDeps([3,0,1,2])),n=new o(r);await r.addPlugin(n,e),await r.addShape(["image","images"],new t(r),e)}const C=Object.freeze(Object.defineProperty({__proto__:null,loadImageShape:R},Symbol.toStringTag,{value:"Module"}));export{x as U,C as i,E as r}; +import{g as h,b as m,c as i,_ as u}from"./index-oTx0snEa.js";const y=0,I=1,b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function L(r,e,o){const{svgData:t}=r;if(!t)return"";const n=h(e,o);if(t.includes("fill"))return t.replace(b,()=>n);const s=t.indexOf(">");return`${t.substring(y,s)} fill="${n}"${t.substring(s)}`}async function a(r){return new Promise(e=>{r.loading=!0;const o=new Image;r.element=o,o.addEventListener("load",()=>{r.loading=!1,e()}),o.addEventListener("error",()=>{r.element=void 0,r.error=!0,r.loading=!1,m().error(`${i} loading image: ${r.source}`),e()}),o.src=r.source})}async function p(r){if(r.type!=="svg"){await a(r);return}r.loading=!0;const e=await fetch(r.source);e.ok?r.svgData=await e.text():(m().error(`${i} Image not found`),r.error=!0),r.loading=!1}function E(r,e,o,t){var g;const n=L(r,o,((g=t.opacity)==null?void 0:g.value)??I),s={color:o,gif:e.gif,data:{...r,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(f=>{const _=new Blob([n],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(_),l=new Image;l.addEventListener("load",()=>{s.loaded=!0,s.element=l,f(s),c.revokeObjectURL(d)});const v=async()=>{c.revokeObjectURL(d);const w={...r,error:!1,loading:!0};await a(w),s.loaded=!0,s.element=w.element,f(s)};l.addEventListener("error",()=>void v()),l.src=d})}const x=Object.freeze(Object.defineProperty({__proto__:null,downloadSvgImage:p,loadImage:a,replaceImageColor:E},Symbol.toStringTag,{value:"Module"})),O=3;function P(r){r.loadImage||(r.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${i} no image source provided`);if(r.images||(r.images=[]),!r.images.find(o=>o.name===e.name||o.source===e.src))try{const o={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-O),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};r.images.push(o);let t;if(e.gif){const{loadGifImage:n}=await u(()=>import("./Utils-C0lchmwz.js"),__vite__mapDeps([0,1,2]));t=n}else t=e.replaceColor?p:a;await t(o)}catch{throw new Error(`${i} ${e.name??e.src} not found`)}})}async function R(r,e=!0){P(r);const{ImagePreloaderPlugin:o}=await u(()=>import("./ImagePreloader-wDGOXDcw.js"),[]),{ImageDrawer:t}=await u(()=>import("./ImageDrawer-C0ekws-d.js"),__vite__mapDeps([3,0,1,2])),n=new o(r);await r.addPlugin(n,e),await r.addShape(["image","images"],new t(r),e)}const C=Object.freeze(Object.defineProperty({__proto__:null,loadImageShape:R},Symbol.toStringTag,{value:"Module"}));export{x as U,C as i,E as r}; diff --git a/dist/assets/index-B5-8JYOL.js b/dist/assets/index-B5-8JYOL.js deleted file mode 100644 index 1b56f30..0000000 --- a/dist/assets/index-B5-8JYOL.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/PolygonDrawer-DCIAvTsD.js","assets/PolygonDrawerBase-dd0t8LQt.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/TriangleDrawer-DqC0zbH_.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as n}from"./index-CbDPnSIu.js";async function e(a,o=!0){const{PolygonDrawer:t}=await n(()=>import("./PolygonDrawer-DCIAvTsD.js"),__vite__mapDeps([0,1,2,3]));await a.addShape("polygon",new t,o)}async function i(a,o=!0){const{TriangleDrawer:t}=await n(()=>import("./TriangleDrawer-DqC0zbH_.js"),__vite__mapDeps([4,1,2,3]));await a.addShape("triangle",new t,o)}async function _(a,o=!0){await e(a,o),await i(a,o)}export{e as loadGenericPolygonShape,_ as loadPolygonShape,i as loadTriangleShape}; diff --git a/dist/assets/index-BG0_Xxds.js b/dist/assets/index-BG0_Xxds.js deleted file mode 100644 index 9e06168..0000000 --- a/dist/assets/index-BG0_Xxds.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/RotateUpdater-CipNpjj6.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ValueWithRandom-kjUuQ2nW.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as o}from"./index-CbDPnSIu.js";async function i(t,a=!0){await t.addParticleUpdater("rotate",async e=>{const{RotateUpdater:r}=await o(()=>import("./RotateUpdater-CipNpjj6.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{i as loadRotateUpdater}; diff --git a/dist/assets/index-BJycpAwg.js b/dist/assets/index-BJycpAwg.js new file mode 100644 index 0000000..e1e908e --- /dev/null +++ b/dist/assets/index-BJycpAwg.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/CircleDrawer-CCZLkeBE.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as i}from"./index-oTx0snEa.js";async function o(a,e=!0){const{CircleDrawer:r}=await i(()=>import("./CircleDrawer-CCZLkeBE.js"),__vite__mapDeps([0,1,2]));await a.addShape("circle",new r,e)}export{o as loadCircleShape}; diff --git a/dist/assets/index-DNwylqum.js b/dist/assets/index-BMjOnTlA.js similarity index 51% rename from dist/assets/index-DNwylqum.js rename to dist/assets/index-BMjOnTlA.js index 9863f15..79b1fac 100644 --- a/dist/assets/index-DNwylqum.js +++ b/dist/assets/index-BMjOnTlA.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/SizeUpdater-BuF1cNXU.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/SizeUpdater-Dqp69Yen.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as r}from"./index-CbDPnSIu.js";async function o(t,a=!0){await t.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await r(()=>import("./SizeUpdater-BuF1cNXU.js"),__vite__mapDeps([0,1,2]));return new e},a)}export{o as loadSizeUpdater}; +import{_ as r}from"./index-oTx0snEa.js";async function o(t,a=!0){await t.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await r(()=>import("./SizeUpdater-Dqp69Yen.js"),__vite__mapDeps([0,1,2]));return new e},a)}export{o as loadSizeUpdater}; diff --git a/dist/assets/index-BYKb1fZz.js b/dist/assets/index-BYKb1fZz.js deleted file mode 100644 index 76ea5e4..0000000 --- a/dist/assets/index-BYKb1fZz.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-DOqMzA2Y.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/index-Dp4lHfZX.js","assets/index-DgvHJ33D.js","assets/index-BFdOZjxk.js","assets/index-97AWNjhu.js","assets/index-DNwylqum.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as t}from"./index-CbDPnSIu.js";async function s(a,_=!0){const{loadBaseMover:o}=await t(()=>import("./index-DOqMzA2Y.js"),__vite__mapDeps([0,1,2])),{loadCircleShape:i}=await t(()=>import("./index-Dp4lHfZX.js"),__vite__mapDeps([3,1,2])),{loadColorUpdater:r}=await t(()=>import("./index-DgvHJ33D.js"),__vite__mapDeps([4,1,2])),{loadOpacityUpdater:d}=await t(()=>import("./index-BFdOZjxk.js"),__vite__mapDeps([5,1,2])),{loadOutModesUpdater:e}=await t(()=>import("./index-97AWNjhu.js"),__vite__mapDeps([6,1,2])),{loadSizeUpdater:l}=await t(()=>import("./index-DNwylqum.js"),__vite__mapDeps([7,1,2]));await o(a,!1),await i(a,!1),await r(a,!1),await d(a,!1),await e(a,!1),await l(a,!1),await a.refresh(_)}export{s as loadBasic}; diff --git a/dist/assets/index-BP0n4XC6.js b/dist/assets/index-Bk3F-R7Q.js similarity index 58% rename from dist/assets/index-BP0n4XC6.js rename to dist/assets/index-Bk3F-R7Q.js index 725fc50..4c38e55 100644 --- a/dist/assets/index-BP0n4XC6.js +++ b/dist/assets/index-Bk3F-R7Q.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Remover-COiGBi5X.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/Remover-B9_ej8y-.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{s as o,_ as r}from"./index-CbDPnSIu.js";class s{constructor(){this.quantity=2}load(t){if(!t)return;const e=t.quantity;e!==void 0&&(this.quantity=o(e))}}async function u(n,t=!0){await n.addInteractor("externalRemove",async e=>{const{Remover:a}=await r(()=>import("./Remover-COiGBi5X.js"),__vite__mapDeps([0,1,2,3]));return new a(e)},t)}export{s as Remove,u as loadExternalRemoveInteraction}; +import{s as o,_ as r}from"./index-oTx0snEa.js";class s{constructor(){this.quantity=2}load(t){if(!t)return;const e=t.quantity;e!==void 0&&(this.quantity=o(e))}}async function u(n,t=!0){await n.addInteractor("externalRemove",async e=>{const{Remover:a}=await r(()=>import("./Remover-B9_ej8y-.js"),__vite__mapDeps([0,1,2,3]));return new a(e)},t)}export{s as Remove,u as loadExternalRemoveInteraction}; diff --git a/dist/assets/index-DgvHJ33D.js b/dist/assets/index-Bw__r20K.js similarity index 51% rename from dist/assets/index-DgvHJ33D.js rename to dist/assets/index-Bw__r20K.js index dab978f..1205af9 100644 --- a/dist/assets/index-DgvHJ33D.js +++ b/dist/assets/index-Bw__r20K.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ColorUpdater-DoYghHGj.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/ColorUpdater-8XTLckPk.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-CbDPnSIu.js";async function i(r,o=!0){await r.addParticleUpdater("color",async t=>{const{ColorUpdater:a}=await e(()=>import("./ColorUpdater-DoYghHGj.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadColorUpdater}; +import{_ as e}from"./index-oTx0snEa.js";async function i(r,o=!0){await r.addParticleUpdater("color",async t=>{const{ColorUpdater:a}=await e(()=>import("./ColorUpdater-8XTLckPk.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadColorUpdater}; diff --git a/dist/assets/index-Bdcr2kqX.js b/dist/assets/index-Bzro8MKl.js similarity index 75% rename from dist/assets/index-Bdcr2kqX.js rename to dist/assets/index-Bzro8MKl.js index 9ad9918..98f1807 100644 --- a/dist/assets/index-Bdcr2kqX.js +++ b/dist/assets/index-Bzro8MKl.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Repulser-ByapOynY.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-D6O5nK3L.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/Repulser--3uzCoY_.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-CImPpXf_.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{e as r,_ as o}from"./index-CbDPnSIu.js";class t{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class u extends t{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class c extends t{load(e){super.load(e),e&&(this.divs=r(e.divs,n=>{const i=new u;return i.load(n),i}))}}async function l(s,e=!0){await s.addInteractor("externalRepulse",async n=>{const{Repulser:i}=await o(()=>import("./Repulser-ByapOynY.js"),__vite__mapDeps([0,1,2,3,4]));return new i(s,n)},e)}export{c as Repulse,t as RepulseBase,u as RepulseDiv,l as loadExternalRepulseInteraction}; +import{e as r,_ as o}from"./index-oTx0snEa.js";class t{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class u extends t{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class c extends t{load(e){super.load(e),e&&(this.divs=r(e.divs,n=>{const i=new u;return i.load(n),i}))}}async function l(s,e=!0){await s.addInteractor("externalRepulse",async n=>{const{Repulser:i}=await o(()=>import("./Repulser--3uzCoY_.js"),__vite__mapDeps([0,1,2,3,4]));return new i(s,n)},e)}export{c as Repulse,t as RepulseBase,u as RepulseDiv,l as loadExternalRepulseInteraction}; diff --git a/dist/assets/index-CBPcvhNo.js b/dist/assets/index-CBPcvhNo.js new file mode 100644 index 0000000..1048243 --- /dev/null +++ b/dist/assets/index-CBPcvhNo.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/RotateUpdater-B_bxt6OZ.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ValueWithRandom-D5hQ_OLE.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as o}from"./index-oTx0snEa.js";async function i(t,a=!0){await t.addParticleUpdater("rotate",async e=>{const{RotateUpdater:r}=await o(()=>import("./RotateUpdater-B_bxt6OZ.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{i as loadRotateUpdater}; diff --git a/dist/assets/index-DrAI_B4E.js b/dist/assets/index-CCm-dUC4.js similarity index 59% rename from dist/assets/index-DrAI_B4E.js rename to dist/assets/index-CCm-dUC4.js index acb91ce..6404b86 100644 --- a/dist/assets/index-DrAI_B4E.js +++ b/dist/assets/index-CCm-dUC4.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Slower-pThPJGFh.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/Slower-CyiQ80af.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-CbDPnSIu.js";class a{constructor(){this.factor=3,this.radius=200}load(r){r&&(r.factor!==void 0&&(this.factor=r.factor),r.radius!==void 0&&(this.radius=r.radius))}}async function s(t,r=!0){await t.addInteractor("externalSlow",async o=>{const{Slower:i}=await e(()=>import("./Slower-pThPJGFh.js"),__vite__mapDeps([0,1,2,3]));return new i(o)},r)}export{a as Slow,s as loadExternalSlowInteraction}; +import{_ as e}from"./index-oTx0snEa.js";class a{constructor(){this.factor=3,this.radius=200}load(r){r&&(r.factor!==void 0&&(this.factor=r.factor),r.radius!==void 0&&(this.radius=r.radius))}}async function s(t,r=!0){await t.addInteractor("externalSlow",async o=>{const{Slower:i}=await e(()=>import("./Slower-CyiQ80af.js"),__vite__mapDeps([0,1,2,3]));return new i(o)},r)}export{a as Slow,s as loadExternalSlowInteraction}; diff --git a/dist/assets/index-gtmV3PGV.js b/dist/assets/index-CD6hWZu-.js similarity index 87% rename from dist/assets/index-gtmV3PGV.js rename to dist/assets/index-CD6hWZu-.js index 90a0034..23f5e76 100644 --- a/dist/assets/index-gtmV3PGV.js +++ b/dist/assets/index-CD6hWZu-.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as n}from"./index-CbDPnSIu.js";async function i(a,t=!0){await a.addInteractor("externalPause",async e=>{const{Pauser:r}=await n(()=>import("./Pauser-DNnHNTke.js"),__vite__mapDeps([0,1]));return new r(e)},t)}export{i as loadExternalPauseInteraction}; +import{_ as n}from"./index-oTx0snEa.js";async function i(a,t=!0){await a.addInteractor("externalPause",async e=>{const{Pauser:r}=await n(()=>import("./Pauser-DNnHNTke.js"),__vite__mapDeps([0,1]));return new r(e)},t)}export{i as loadExternalPauseInteraction}; diff --git a/dist/assets/index-DMU0kD1I.js b/dist/assets/index-CDIuD2sl.js similarity index 72% rename from dist/assets/index-DMU0kD1I.js rename to dist/assets/index-CDIuD2sl.js index c4c0486..78ca77b 100644 --- a/dist/assets/index-DMU0kD1I.js +++ b/dist/assets/index-CDIuD2sl.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Connector-DcjojRCq.js","assets/CanvasUtils-CgNwHWHl.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Connector-CjpfQzEL.js","assets/CanvasUtils-C_06btl7.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-CbDPnSIu.js";class o{constructor(){this.opacity=.5}load(n){n&&n.opacity!==void 0&&(this.opacity=n.opacity)}}class c{constructor(){this.distance=80,this.links=new o,this.radius=60}load(n){n&&(n.distance!==void 0&&(this.distance=n.distance),this.links.load(n.links),n.radius!==void 0&&(this.radius=n.radius))}}async function a(i,n=!0){await i.addInteractor("externalConnect",async t=>{const{Connector:e}=await s(()=>import("./Connector-DcjojRCq.js"),__vite__mapDeps([0,1,2,3,4]));return new e(t)},n)}export{c as Connect,o as ConnectLinks,a as loadExternalConnectInteraction}; +import{_ as s}from"./index-oTx0snEa.js";class o{constructor(){this.opacity=.5}load(n){n&&n.opacity!==void 0&&(this.opacity=n.opacity)}}class c{constructor(){this.distance=80,this.links=new o,this.radius=60}load(n){n&&(n.distance!==void 0&&(this.distance=n.distance),this.links.load(n.links),n.radius!==void 0&&(this.radius=n.radius))}}async function a(i,n=!0){await i.addInteractor("externalConnect",async t=>{const{Connector:e}=await s(()=>import("./Connector-CjpfQzEL.js"),__vite__mapDeps([0,1,2,3,4]));return new e(t)},n)}export{c as Connect,o as ConnectLinks,a as loadExternalConnectInteraction}; diff --git a/dist/assets/index-BFdOZjxk.js b/dist/assets/index-CTSBAsgv.js similarity index 52% rename from dist/assets/index-BFdOZjxk.js rename to dist/assets/index-CTSBAsgv.js index d0085cb..3b24cef 100644 --- a/dist/assets/index-BFdOZjxk.js +++ b/dist/assets/index-CTSBAsgv.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/OpacityUpdater-DJfWMM1C.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/OpacityUpdater-pZD3tZAR.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-CbDPnSIu.js";async function p(t,a=!0){await t.addParticleUpdater("opacity",async r=>{const{OpacityUpdater:e}=await i(()=>import("./OpacityUpdater-DJfWMM1C.js"),__vite__mapDeps([0,1,2]));return new e(r)},a)}export{p as loadOpacityUpdater}; +import{_ as i}from"./index-oTx0snEa.js";async function p(t,a=!0){await t.addParticleUpdater("opacity",async r=>{const{OpacityUpdater:e}=await i(()=>import("./OpacityUpdater-pZD3tZAR.js"),__vite__mapDeps([0,1,2]));return new e(r)},a)}export{p as loadOpacityUpdater}; diff --git a/dist/assets/index-CbDPnSIu.js b/dist/assets/index-CbDPnSIu.js deleted file mode 100644 index f49da83..0000000 --- a/dist/assets/index-CbDPnSIu.js +++ /dev/null @@ -1,264 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Container-B_zY_gSG.js","assets/CanvasUtils-CgNwHWHl.js","assets/OptionsColor-uNQKa8qH.js","assets/ValueWithRandom-kjUuQ2nW.js","assets/Ranges-D6O5nK3L.js","assets/index-CKLG1pGI.js","assets/index-BA8kTSU-.js","assets/index-Dyr8Xn4o.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -var Dp=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var M=(e,t,n)=>(Dp(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},W=(e,t,n,r)=>(Dp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Nu=(e,t,n,r)=>({set _(i){W(e,t,i,n)},get _(){return M(e,t,r)}}),le=(e,t,n)=>(Dp(e,t,"access private method"),n);function lM(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _r(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var oE={exports:{}},Jd={},aE={exports:{}},oe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var du=Symbol.for("react.element"),uM=Symbol.for("react.portal"),cM=Symbol.for("react.fragment"),dM=Symbol.for("react.strict_mode"),fM=Symbol.for("react.profiler"),pM=Symbol.for("react.provider"),hM=Symbol.for("react.context"),mM=Symbol.for("react.forward_ref"),gM=Symbol.for("react.suspense"),vM=Symbol.for("react.memo"),yM=Symbol.for("react.lazy"),r1=Symbol.iterator;function xM(e){return e===null||typeof e!="object"?null:(e=r1&&e[r1]||e["@@iterator"],typeof e=="function"?e:null)}var lE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uE=Object.assign,cE={};function Xo(e,t,n){this.props=e,this.context=t,this.refs=cE,this.updater=n||lE}Xo.prototype.isReactComponent={};Xo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dE(){}dE.prototype=Xo.prototype;function mv(e,t,n){this.props=e,this.context=t,this.refs=cE,this.updater=n||lE}var gv=mv.prototype=new dE;gv.constructor=mv;uE(gv,Xo.prototype);gv.isPureReactComponent=!0;var i1=Array.isArray,fE=Object.prototype.hasOwnProperty,vv={current:null},pE={key:!0,ref:!0,__self:!0,__source:!0};function hE(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)fE.call(t,r)&&!pE.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ne=O[K];if(0>>1;Ki(dt,V))iei(U,dt)?(O[K]=U,O[ie]=V,K=ie):(O[K]=dt,O[ge]=V,K=ge);else if(iei(U,V))O[K]=U,O[ie]=V,K=ie;else break e}}return j}function i(O,j){var V=O.sortIndex-j.sortIndex;return V!==0?V:O.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(O){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=O)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function w(O){if(m=!1,v(O),!h)if(n(l)!==null)h=!0,z(S);else{var j=n(u);j!==null&&q(w,j.startTime-O)}}function S(O,j){h=!1,m&&(m=!1,g(C),C=-1),p=!0;var V=f;try{for(v(j),d=n(l);d!==null&&(!(d.expirationTime>j)||O&&!R());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ne=K(d.expirationTime<=j);j=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),v(j)}else r(l);d=n(l)}if(d!==null)var Ze=!0;else{var ge=n(u);ge!==null&&q(w,ge.startTime-j),Ze=!1}return Ze}finally{d=null,f=V,p=!1}}var P=!1,T=null,C=-1,k=5,A=-1;function R(){return!(e.unstable_now()-AO||125K?(O.sortIndex=V,t(u,O),n(l)===null&&O===n(u)&&(m?(g(C),C=-1):m=!0,q(w,V-K))):(O.sortIndex=ne,t(l,O),h||p||(h=!0,z(S))),O},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(O){var j=f;return function(){var V=f;f=j;try{return O.apply(this,arguments)}finally{f=V}}}})(yE);vE.exports=yE;var OM=vE.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xE=b,Yt=OM;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lm=Object.prototype.hasOwnProperty,RM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,o1={},a1={};function _M(e){return lm.call(a1,e)?!0:lm.call(o1,e)?!1:RM.test(e)?a1[e]=!0:(o1[e]=!0,!1)}function IM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LM(e,t,n,r){if(t===null||typeof t>"u"||IM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vt[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xv=/[\-:]([a-z])/g;function wv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xv,wv);vt[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xv,wv);vt[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xv,wv);vt[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bv(e,t,n,r){var i=vt.hasOwnProperty(t)?vt[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{$p=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ra(e):""}function jM(e){switch(e.tag){case 5:return Ra(e.type);case 16:return Ra("Lazy");case 13:return Ra("Suspense");case 19:return Ra("SuspenseList");case 0:case 2:case 15:return e=zp(e.type,!1),e;case 11:return e=zp(e.type.render,!1),e;case 1:return e=zp(e.type,!0),e;default:return""}}function fm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Us:return"Fragment";case Bs:return"Portal";case um:return"Profiler";case Sv:return"StrictMode";case cm:return"Suspense";case dm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case SE:return(e.displayName||"Context")+".Consumer";case bE:return(e._context.displayName||"Context")+".Provider";case Ev:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pv:return t=e.displayName||null,t!==null?t:fm(e.type)||"Memo";case Qr:t=e._payload,e=e._init;try{return fm(e(t))}catch{}}return null}function DM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fm(t);case 8:return t===Sv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Oi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NM(e){var t=PE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zu(e){e._valueTracker||(e._valueTracker=NM(e))}function CE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pm(e,t){var n=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Oi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function TE(e,t){t=t.checked,t!=null&&bv(e,"checked",t,!1)}function hm(e,t){TE(e,t);var n=Oi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mm(e,t.type,n):t.hasOwnProperty("defaultValue")&&mm(e,t.type,Oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function c1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mm(e,t,n){(t!=="number"||Hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _a=Array.isArray;function ao(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Vu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Va={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FM=["Webkit","ms","Moz","O"];Object.keys(Va).forEach(function(e){FM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Va[t]=Va[e]})});function OE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Va.hasOwnProperty(e)&&Va[e]?(""+t).trim():t+"px"}function RE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=OE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $M=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ym(e,t){if(t){if($M[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function xm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wm=null;function Cv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bm=null,lo=null,uo=null;function p1(e){if(e=hu(e)){if(typeof bm!="function")throw Error(F(280));var t=e.stateNode;t&&(t=sf(t),bm(e.stateNode,e.type,t))}}function _E(e){lo?uo?uo.push(e):uo=[e]:lo=e}function IE(){if(lo){var e=lo,t=uo;if(uo=lo=null,p1(e),t)for(e=0;e>>=0,e===0?32:31-(XM(e)/YM|0)|0}var Bu=64,Uu=4194304;function Ia(e){switch(e&-e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ia(a):(s&=o,s!==0&&(r=Ia(s)))}else o=n&~i,o!==0?r=Ia(o):s!==0&&(r=Ia(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fn(t),e[t]=n}function tO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ua),S1=" ",E1=!1;function JE(e,t){switch(e){case"keyup":return MO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ws=!1;function RO(e,t){switch(e){case"compositionend":return eP(t);case"keypress":return t.which!==32?null:(E1=!0,S1);case"textInput":return e=t.data,e===S1&&E1?null:e;default:return null}}function _O(e,t){if(Ws)return e==="compositionend"||!Iv&&JE(e,t)?(e=YE(),yc=Ov=ai=null,Ws=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=A1(n)}}function iP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sP(){for(var e=window,t=Hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hc(e.document)}return t}function Lv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function VO(e){var t=sP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&iP(n.ownerDocument.documentElement,n)){if(r!==null&&Lv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=k1(n,s);var o=k1(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hs=null,Am=null,Ha=null,km=!1;function M1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;km||Hs==null||Hs!==Hc(r)||(r=Hs,"selectionStart"in r&&Lv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ha&&vl(Ha,r)||(Ha=r,r=Zc(Am,"onSelect"),0qs||(e.current=Lm[qs],Lm[qs]=null,qs--)}function Ce(e,t){qs++,Lm[qs]=e.current,e.current=t}var Ri={},kt=Di(Ri),$t=Di(!1),gs=Ri;function Do(e,t){var n=e.type.contextTypes;if(!n)return Ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function ed(){ke($t),ke(kt)}function D1(e,t,n){if(kt.current!==Ri)throw Error(F(168));Ce(kt,t),Ce($t,n)}function hP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,DM(e)||"Unknown",i));return je({},n,r)}function td(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,gs=kt.current,Ce(kt,e),Ce($t,$t.current),!0}function N1(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=hP(e,t,gs),r.__reactInternalMemoizedMergedChildContext=e,ke($t),ke(kt),Ce(kt,e)):ke($t),Ce($t,n)}var hr=null,of=!1,eh=!1;function mP(e){hr===null?hr=[e]:hr.push(e)}function JO(e){of=!0,mP(e)}function Ni(){if(!eh&&hr!==null){eh=!0;var e=0,t=xe;try{var n=hr;for(xe=1;e>=o,i-=o,mr=1<<32-Fn(t)+i|n<C?(k=T,T=null):k=T.sibling;var A=f(g,T,v[C],w);if(A===null){T===null&&(T=k);break}e&&T&&A.alternate===null&&t(g,T),y=s(A,y,C),P===null?S=A:P.sibling=A,P=A,T=k}if(C===v.length)return n(g,T),Re&&Wi(g,C),S;if(T===null){for(;CC?(k=T,T=null):k=T.sibling;var R=f(g,T,A.value,w);if(R===null){T===null&&(T=k);break}e&&T&&R.alternate===null&&t(g,T),y=s(R,y,C),P===null?S=R:P.sibling=R,P=R,T=k}if(A.done)return n(g,T),Re&&Wi(g,C),S;if(T===null){for(;!A.done;C++,A=v.next())A=d(g,A.value,w),A!==null&&(y=s(A,y,C),P===null?S=A:P.sibling=A,P=A);return Re&&Wi(g,C),S}for(T=r(g,T);!A.done;C++,A=v.next())A=p(T,g,C,A.value,w),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?C:A.key),y=s(A,y,C),P===null?S=A:P.sibling=A,P=A);return e&&T.forEach(function(I){return t(g,I)}),Re&&Wi(g,C),S}function x(g,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Us&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case $u:e:{for(var S=v.key,P=y;P!==null;){if(P.key===S){if(S=v.type,S===Us){if(P.tag===7){n(g,P.sibling),y=i(P,v.props.children),y.return=g,g=y;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Qr&&W1(S)===P.type){n(g,P.sibling),y=i(P,v.props),y.ref=va(g,P,v),y.return=g,g=y;break e}n(g,P);break}else t(g,P);P=P.sibling}v.type===Us?(y=ps(v.props.children,g.mode,w,v.key),y.return=g,g=y):(w=Tc(v.type,v.key,v.props,null,g.mode,w),w.ref=va(g,y,v),w.return=g,g=w)}return o(g);case Bs:e:{for(P=v.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=lh(v,g.mode,w),y.return=g,g=y}return o(g);case Qr:return P=v._init,x(g,y,P(v._payload),w)}if(_a(v))return h(g,y,v,w);if(fa(v))return m(g,y,v,w);Xu(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=ah(v,g.mode,w),y.return=g,g=y),o(g)):n(g,y)}return x}var Fo=EP(!0),PP=EP(!1),mu={},nr=Di(mu),bl=Di(mu),Sl=Di(mu);function Ji(e){if(e===mu)throw Error(F(174));return e}function Uv(e,t){switch(Ce(Sl,t),Ce(bl,e),Ce(nr,mu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vm(t,e)}ke(nr),Ce(nr,t)}function $o(){ke(nr),ke(bl),ke(Sl)}function CP(e){Ji(Sl.current);var t=Ji(nr.current),n=vm(t,e.type);t!==n&&(Ce(bl,e),Ce(nr,n))}function Wv(e){bl.current===e&&(ke(nr),ke(bl))}var _e=Di(0);function ad(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var th=[];function Hv(){for(var e=0;en?n:4,e(!0);var r=nh.transition;nh.transition={};try{e(!1),t()}finally{xe=n,nh.transition=r}}function VP(){return En().memoizedState}function rR(e,t,n){var r=wi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},BP(e))UP(t,n);else if(n=xP(e,t,n,r),n!==null){var i=_t();$n(n,e,r,i),WP(n,t,r)}}function iR(e,t,n){var r=wi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(BP(e))UP(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,zn(a,o)){var l=t.interleaved;l===null?(i.next=i,Vv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=xP(e,t,i,r),n!==null&&(i=_t(),$n(n,e,r,i),WP(n,t,r))}}function BP(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function UP(e,t){Ga=ld=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function WP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Av(e,n)}}var ud={readContext:Sn,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},sR={readContext:Sn,useCallback:function(e,t){return Wn().memoizedState=[e,t===void 0?null:t],e},useContext:Sn,useEffect:G1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sc(4194308,4,DP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sc(4,2,e,t)},useMemo:function(e,t){var n=Wn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rR.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Wn();return e={current:e},t.memoizedState=e},useState:H1,useDebugValue:Xv,useDeferredValue:function(e){return Wn().memoizedState=e},useTransition:function(){var e=H1(!1),t=e[0];return e=nR.bind(null,e[1]),Wn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Wn();if(Re){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),lt===null)throw Error(F(349));ys&30||kP(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,G1(OP.bind(null,r,s,e),[e]),r.flags|=2048,Cl(9,MP.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wn(),t=lt.identifierPrefix;if(Re){var n=gr,r=mr;n=(r&~(1<<32-Fn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=El++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Jn]=t,e[wl]=r,JP(e,t,!1,!1),t.stateNode=e;e:{switch(o=xm(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),i=r;break;case"iframe":case"object":case"embed":Ae("load",e),i=r;break;case"video":case"audio":for(i=0;iVo&&(t.flags|=128,r=!0,ya(s,!1),t.lanes=4194304)}else{if(!r)if(e=ad(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ya(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Re)return St(t),null}else 2*Ue()-s.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,ya(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ue(),t.sibling=null,n=_e.current,Ce(_e,r?n&1|2:n&1),t):(St(t),null);case 22:case 23:return n0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function pR(e,t){switch(Dv(t),t.tag){case 1:return zt(t.type)&&ed(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),ke($t),ke(kt),Hv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wv(t),null;case 13:if(ke(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(_e),null;case 4:return $o(),null;case 10:return zv(t.type._context),null;case 22:case 23:return n0(),null;case 24:return null;default:return null}}var Zu=!1,Tt=!1,hR=typeof WeakSet=="function"?WeakSet:Set,G=null;function Zs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Gm(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var tx=!1;function mR(e,t){if(Mm=Xc,e=sP(),Lv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Om={focusedElem:e,selectionRange:n},Xc=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,x=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:_n(t.type,m),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){Ve(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return h=tx,tx=!1,h}function Ka(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Gm(t,n,s)}i=i.next}while(i!==r)}}function uf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Km(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nC(e){var t=e.alternate;t!==null&&(e.alternate=null,nC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jn],delete t[wl],delete t[Im],delete t[YO],delete t[ZO])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rC(e){return e.tag===5||e.tag===3||e.tag===4}function nx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jc));else if(r!==4&&(e=e.child,e!==null))for(qm(e,t,n),e=e.sibling;e!==null;)qm(e,t,n),e=e.sibling}function Qm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qm(e,t,n),e=e.sibling;e!==null;)Qm(e,t,n),e=e.sibling}var ft=null,Ln=!1;function Nr(e,t,n){for(n=n.child;n!==null;)iC(e,t,n),n=n.sibling}function iC(e,t,n){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(ef,n)}catch{}switch(n.tag){case 5:Tt||Zs(n,t);case 6:var r=ft,i=Ln;ft=null,Nr(e,t,n),ft=r,Ln=i,ft!==null&&(Ln?(e=ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ft.removeChild(n.stateNode));break;case 18:ft!==null&&(Ln?(e=ft,n=n.stateNode,e.nodeType===8?Jp(e.parentNode,n):e.nodeType===1&&Jp(e,n),ml(e)):Jp(ft,n.stateNode));break;case 4:r=ft,i=Ln,ft=n.stateNode.containerInfo,Ln=!0,Nr(e,t,n),ft=r,Ln=i;break;case 0:case 11:case 14:case 15:if(!Tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Gm(n,t,o),i=i.next}while(i!==r)}Nr(e,t,n);break;case 1:if(!Tt&&(Zs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}Nr(e,t,n);break;case 21:Nr(e,t,n);break;case 22:n.mode&1?(Tt=(r=Tt)||n.memoizedState!==null,Nr(e,t,n),Tt=r):Nr(e,t,n);break;default:Nr(e,t,n)}}function rx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hR),t.forEach(function(r){var i=PR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function On(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vR(r/1960))-r,10e?16:e,li===null)var r=!1;else{if(e=li,li=null,fd=0,pe&6)throw Error(F(331));var i=pe;for(pe|=4,G=e.current;G!==null;){var s=G,o=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lUe()-e0?fs(e,0):Jv|=n),Vt(e,t)}function fC(e,t){t===0&&(e.mode&1?(t=Uu,Uu<<=1,!(Uu&130023424)&&(Uu=4194304)):t=1);var n=_t();e=Mr(e,t),e!==null&&(fu(e,t,n),Vt(e,n))}function ER(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fC(e,n)}function PR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),fC(e,n)}var pC;pC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$t.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,dR(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,Re&&t.flags&1048576&&gP(t,rd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ec(e,t),e=t.pendingProps;var i=Do(t,kt.current);fo(t,n),i=Kv(null,t,r,e,i,n);var s=qv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(r)?(s=!0,td(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bv(t),i.updater=af,t.stateNode=i,i._reactInternals=t,$m(t,r,e,n),t=Bm(null,t,r,!0,s,n)):(t.tag=0,Re&&s&&jv(t),Rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ec(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=TR(r),e=_n(r,e),i){case 0:t=Vm(null,t,r,e,n);break e;case 1:t=Z1(null,t,r,e,n);break e;case 11:t=X1(null,t,r,e,n);break e;case 14:t=Y1(null,t,r,_n(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),Vm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),Z1(e,t,r,i,n);case 3:e:{if(XP(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,i=s.element,wP(e,t),od(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=zo(Error(F(423)),t),t=J1(e,t,r,n,i);break e}else if(r!==i){i=zo(Error(F(424)),t),t=J1(e,t,r,n,i);break e}else for(Kt=vi(t.stateNode.containerInfo.firstChild),Qt=t,Re=!0,jn=null,n=PP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(No(),r===i){t=Or(e,t,n);break e}Rt(e,t,r,n)}t=t.child}return t;case 5:return CP(t),e===null&&Dm(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Rm(r,i)?o=null:s!==null&&Rm(r,s)&&(t.flags|=32),QP(e,t),Rt(e,t,o,n),t.child;case 6:return e===null&&Dm(t),null;case 13:return YP(e,t,n);case 4:return Uv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fo(t,null,r,n):Rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),X1(e,t,r,i,n);case 7:return Rt(e,t,t.pendingProps,n),t.child;case 8:return Rt(e,t,t.pendingProps.children,n),t.child;case 12:return Rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Ce(id,r._currentValue),r._currentValue=o,s!==null)if(zn(s.value,o)){if(s.children===i.children&&!$t.current){t=Or(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=wr(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Nm(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nm(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fo(t,n),i=Sn(i),r=r(i),t.flags|=1,Rt(e,t,r,n),t.child;case 14:return r=t.type,i=_n(r,t.pendingProps),i=_n(r.type,i),Y1(e,t,r,i,n);case 15:return KP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_n(r,i),Ec(e,t),t.tag=1,zt(r)?(e=!0,td(t)):e=!1,fo(t,n),SP(t,r,i),$m(t,r,i,n),Bm(null,t,r,!0,e,n);case 19:return ZP(e,t,n);case 22:return qP(e,t,n)}throw Error(F(156,t.tag))};function hC(e,t){return zE(e,t)}function CR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,r){return new CR(e,t,n,r)}function i0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TR(e){if(typeof e=="function")return i0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ev)return 11;if(e===Pv)return 14}return 2}function bi(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")i0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Us:return ps(n.children,i,s,t);case Sv:o=8,i|=8;break;case um:return e=yn(12,n,t,i|2),e.elementType=um,e.lanes=s,e;case cm:return e=yn(13,n,t,i),e.elementType=cm,e.lanes=s,e;case dm:return e=yn(19,n,t,i),e.elementType=dm,e.lanes=s,e;case EE:return df(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bE:o=10;break e;case SE:o=9;break e;case Ev:o=11;break e;case Pv:o=14;break e;case Qr:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=yn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function ps(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function df(e,t,n,r){return e=yn(22,e,r,t),e.elementType=EE,e.lanes=n,e.stateNode={isHidden:!1},e}function ah(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function lh(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bp(0),this.expirationTimes=Bp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s0(e,t,n,r,i,s,o,a,l){return e=new AR(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=yn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bv(s),e}function kR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yC)}catch(e){console.error(e)}}yC(),gE.exports=Jt;var gf=gE.exports;const tc=sE(gf);var dx=gf;am.createRoot=dx.createRoot,am.hydrateRoot=dx.hydrateRoot;/** - * @remix-run/router v1.15.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LR(){return Math.random().toString(36).substr(2,8)}function px(e,t){return{usr:e.state,key:e.key,idx:t}}function eg(e,t,n,r){return n===void 0&&(n=null),Al({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jo(t):t,{state:n,key:t&&t.key||r||LR()})}function md(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Jo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jR(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=ui.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Al({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=ui.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:g})}function f(x,g){a=ui.Push;let y=eg(m.location,x,g);n&&n(y,x),u=c()+1;let v=px(y,u),w=m.createHref(y);try{o.pushState(v,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}s&&l&&l({action:a,location:m.location,delta:1})}function p(x,g){a=ui.Replace;let y=eg(m.location,x,g);n&&n(y,x),u=c();let v=px(y,u),w=m.createHref(y);o.replaceState(v,"",w),s&&l&&l({action:a,location:m.location,delta:0})}function h(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof x=="string"?x:md(x);return y=y.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(fx,d),l=x,()=>{i.removeEventListener(fx,d),l=null}},createHref(x){return t(i,x)},createURL:h,encodeLocation(x){let g=h(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(x){return o.go(x)}};return m}var hx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hx||(hx={}));function DR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Jo(t):t,i=u0(r.pathname||"/",n);if(i==null)return null;let s=wC(e);NR(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Si([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Qe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wC(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:WR(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of bC(s.path))i(s,o,l)}),t}function bC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=bC(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function NR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const FR=/^:[\w-]+$/,$R=3,zR=2,VR=1,BR=10,UR=-2,mx=e=>e==="*";function WR(e,t){let n=e.split("/"),r=n.length;return n.some(mx)&&(r+=UR),t&&(r+=zR),n.filter(i=>!mx(i)).reduce((i,s)=>i+(FR.test(s)?$R:s===""?VR:BR),r)}function HR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function GR(e,t){let{routesMeta:n}=e,r={},i="/",s=[];for(let o=0;o{let{paramName:f,isOptional:p}=c;if(f==="*"){let m=a[d]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const h=a[d];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function qR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function QR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function u0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function XR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Jo(e):e;return{pathname:n?n.startsWith("/")?n:YR(n,t):t,search:e5(r),hash:t5(i)}}function YR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function uh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ZR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SC(e,t){let n=ZR(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EC(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Jo(e):(i=Al({},e),Qe(!i.pathname||!i.pathname.includes("?"),uh("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),uh("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),uh("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=XR(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Si=e=>e.join("/").replace(/\/\/+/g,"/"),JR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),e5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,t5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function n5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PC=["post","put","patch","delete"];new Set(PC);const r5=["get",...PC];new Set(r5);/** - * React Router v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=EC(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Si([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}const a5=b.createContext(null);function l5(e){let t=b.useContext(Lr).outlet;return t&&b.createElement(a5.Provider,{value:e},t)}function u5(){let{matches:e}=b.useContext(Lr),t=e[e.length-1];return t?t.params:{}}function kC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Ts),{matches:i}=b.useContext(Lr),{pathname:s}=yf(),o=JSON.stringify(SC(i,r.v7_relativeSplatPath));return b.useMemo(()=>EC(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function c5(e,t){return d5(e,t)}function d5(e,t,n,r){gu()||Qe(!1);let{navigator:i}=b.useContext(Ts),{matches:s}=b.useContext(Lr),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=yf(),c;if(t){var d;let x=typeof t=="string"?Jo(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Qe(!1),c=x}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=DR(e,{pathname:p}),m=g5(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Si([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Si([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&m?b.createElement(vf.Provider,{value:{location:kl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ui.Pop}},m):m}function f5(){let e=w5(),t=n5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const p5=b.createElement(f5,null);class h5 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Lr.Provider,{value:this.props.routeContext},b.createElement(CC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function m5(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(c0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Lr.Provider,{value:t},r)}function g5(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||Qe(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let p,h=!1,m=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||p5,l&&(u<0&&f===0?(S5("route-fallback",!1),h=!0,x=null):u===f&&(h=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),y=()=>{let v;return p?v=m:h?v=x:d.route.Component?v=b.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,b.createElement(m5,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(h5,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var MC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(MC||{}),gd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(gd||{});function v5(e){let t=b.useContext(c0);return t||Qe(!1),t}function y5(e){let t=b.useContext(i5);return t||Qe(!1),t}function x5(e){let t=b.useContext(Lr);return t||Qe(!1),t}function OC(e){let t=x5(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function w5(){var e;let t=b.useContext(CC),n=y5(gd.UseRouteError),r=OC(gd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function b5(){let{router:e}=v5(MC.UseNavigateStable),t=OC(gd.UseNavigateStable),n=b.useRef(!1);return TC(()=>{n.current=!0}),b.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,kl({fromRouteId:t},s)))},[e,t])}const gx={};function S5(e,t,n){!t&&!gx[e]&&(gx[e]=!0)}function E5(e){return l5(e.context)}function ja(e){Qe(!1)}function P5(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ui.Pop,navigator:s,static:o=!1,future:a}=e;gu()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:s,static:o,future:kl({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Jo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=b.useMemo(()=>{let x=u0(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:h},navigationType:i}},[l,c,d,f,p,h,i]);return m==null?null:b.createElement(Ts.Provider,{value:u},b.createElement(vf.Provider,{children:n,value:m}))}function C5(e){let{children:t,location:n}=e;return c5(tg(t),n)}new Promise(()=>{});function tg(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let s=[...t,i];if(r.type===b.Fragment){n.push.apply(n,tg(r.props.children,s));return}r.type!==ja&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=tg(r.props.children,s)),n.push(o)}),n}/** - * React Router DOM v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function A5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function k5(e,t){return e.button===0&&(!t||t==="_self")&&!A5(e)}const M5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],O5="6";try{window.__reactRouterVersion=O5}catch{}const R5="startTransition",vx=Wc[R5];function _5(e){let{basename:t,children:n,future:r,window:i}=e,s=b.useRef();s.current==null&&(s.current=IR({window:i,v5Compat:!0}));let o=s.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=b.useCallback(d=>{u&&vx?vx(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.createElement(P5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const I5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j5=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=T5(t,M5),{basename:p}=b.useContext(Ts),h,m=!1;if(typeof u=="string"&&L5.test(u)&&(h=u,I5))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=u0(w.pathname,p);w.origin===v.origin&&S!=null?u=S+w.search+w.hash:m=!0}catch{}let x=s5(u,{relative:i}),g=D5(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function y(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",ng({},f,{href:h||x,onClick:m||s?r:y,ref:n,target:l}))});var yx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yx||(yx={}));var xx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xx||(xx={}));function D5(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,l=AC(),u=yf(),c=kC(e,{relative:o});return b.useCallback(d=>{if(k5(d,n)){d.preventDefault();let f=r!==void 0?r:md(u)===md(c);l(e,{replace:f,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=RC(e[n])}),t}function rr(e,t,n={clone:!0}){const r=n.clone?_({},e):e;return ei(e)&&ei(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ei(t[i])&&i in e&&ei(e[i])?r[i]=rr(e[i],t[i],n):n.clone?r[i]=ei(t[i])?RC(t[i]):t[i]:r[i]=t[i])}),r}const N5=Object.freeze(Object.defineProperty({__proto__:null,default:rr,isPlainObject:ei},Symbol.toStringTag,{value:"Module"}));function Ml(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function DC(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function H5(e,t){return()=>null}function G5(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function br(e){return e&&e.ownerDocument||document}function ea(e){return br(e).defaultView||window}function K5(e,t){return()=>null}function vd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ol=typeof window<"u"?b.useLayoutEffect:b.useEffect;let Sx=0;function q5(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Sx+=1,n(`mui-${Sx}`))},[t]),r}const Ex=Wc.useId;function Q5(e){if(Ex!==void 0){const t=Ex();return e??t}return q5(e)}function X5(e,t,n,r,i){return null}function Y5({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[s,o]=b.useState(t),a=i?e:s,l=b.useCallback(u=>{i||o(u)},[]);return[a,l]}function es(e){const t=b.useRef(e);return Ol(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Pn(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{vd(n,t)})},e)}const Px={};function Z5(e,t){const n=b.useRef(Px);return n.current===Px&&(n.current=e(t)),n}const J5=[];function e_(e){b.useEffect(e,J5)}class Mf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function t_(){const e=Z5(Mf.create).current;return e_(e.disposeEffect),e}let Of=!0,ig=!1;const n_=new Mf,r_={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i_(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&r_[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function s_(e){e.metaKey||e.altKey||e.ctrlKey||(Of=!0)}function ch(){Of=!1}function o_(){this.visibilityState==="hidden"&&ig&&(Of=!0)}function a_(e){e.addEventListener("keydown",s_,!0),e.addEventListener("mousedown",ch,!0),e.addEventListener("pointerdown",ch,!0),e.addEventListener("touchstart",ch,!0),e.addEventListener("visibilitychange",o_,!0)}function l_(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Of||i_(t)}function p0(){const e=b.useCallback(i=>{i!=null&&a_(i.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(ig=!0,n_.start(100,()=>{ig=!1}),t.current=!1,!0):!1}function r(i){return l_(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function u_(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function NC(e,t){const n=_({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=_({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=_({},s),Object.keys(i).forEach(o=>{n[r][o]=NC(i[o],s[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((s,o)=>{if(o){const a=t(o);a!==""&&s.push(a),n&&n[o]&&s.push(n[o])}return s},[]).join(" ")}),r}const Cx=e=>e,c_=()=>{let e=Cx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cx}}},d_=c_(),h0=d_,f_={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(e,t,n="Mui"){const r=f_[t];return r?`${n}-${r}`:`${h0.generate(e)}-${t}`}function Ye(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=tt(e,i,n)}),r}function p_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const h_=Object.freeze(Object.defineProperty({__proto__:null,default:p_},Symbol.toStringTag,{value:"Module"}));function se(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function FC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>_({},n,{[r.key]:r.val}),{})};function zC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=se(e,m_),s=g_(t),o=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[o[h]]=="number"?t[o[h]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1`@media (min-width:${m0[e]}px)`};function Cn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Tx;return t.reduce((o,a,l)=>(o[s.up(s.keys[l])]=n(t[l]),o),{})}if(typeof t=="object"){const s=r.breakpoints||Tx;return Object.keys(t).reduce((o,a)=>{if(Object.keys(s.values||m0).indexOf(a)!==-1){const l=s.up(a);o[l]=n(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return n(t)}function x_(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const s=e.up(i);return r[s]={},r},{}))||{}}function w_(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function b_(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,s)=>{s{e[i]!=null&&(n[i]=!0)}),n}function Rf({values:e,breakpoints:t,base:n}){const r=n||b_(e,t),i=Object.keys(r);if(i.length===0)return e;let s;return i.reduce((o,a,l)=>(Array.isArray(e)?(o[a]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[s],s=a):o[a]=e,o),{})}function Bo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function yd(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Bo(e,n)||r,t&&(i=t(i,r,e)),i}function He(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,u=Bo(l,r)||{};return Cn(o,a,d=>{let f=yd(u,i,d);return d===f&&typeof d=="string"&&(f=yd(u,i,`${t}${d==="default"?"":Q(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function S_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const E_={m:"margin",p:"padding"},P_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ax={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},C_=S_(e=>{if(e.length>2)if(Ax[e])e=Ax[e];else return[e];const[t,n]=e.split(""),r=E_[t],i=P_[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),g0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...g0,...v0];function vu(e,t,n,r){var i;const s=(i=Bo(e,t,!1))!=null?i:n;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function VC(e){return vu(e,"spacing",8)}function yu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function T_(e,t){return n=>e.reduce((r,i)=>(r[i]=yu(t,n),r),{})}function A_(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=C_(n),s=T_(i,r),o=e[n];return Cn(e,o,s)}function BC(e,t){const n=VC(e.theme);return Object.keys(e).map(r=>A_(e,t,r,n)).reduce(Xa,{})}function Fe(e){return BC(e,g0)}Fe.propTypes={};Fe.filterProps=g0;function $e(e){return BC(e,v0)}$e.propTypes={};$e.filterProps=v0;function k_(e=8){if(e.mui)return e;const t=VC({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function _f(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?Xa(i,t[s](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function kn(e,t){return He({prop:e,themeKey:"borders",transform:t})}const M_=kn("border",mn),O_=kn("borderTop",mn),R_=kn("borderRight",mn),__=kn("borderBottom",mn),I_=kn("borderLeft",mn),L_=kn("borderColor"),j_=kn("borderTopColor"),D_=kn("borderRightColor"),N_=kn("borderBottomColor"),F_=kn("borderLeftColor"),$_=kn("outline",mn),z_=kn("outlineColor"),If=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yu(t,r)});return Cn(e,e.borderRadius,n)}return null};If.propTypes={};If.filterProps=["borderRadius"];_f(M_,O_,R_,__,I_,L_,j_,D_,N_,F_,If,$_,z_);const Lf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vu(e.theme,"spacing",8),n=r=>({gap:yu(t,r)});return Cn(e,e.gap,n)}return null};Lf.propTypes={};Lf.filterProps=["gap"];const jf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vu(e.theme,"spacing",8),n=r=>({columnGap:yu(t,r)});return Cn(e,e.columnGap,n)}return null};jf.propTypes={};jf.filterProps=["columnGap"];const Df=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vu(e.theme,"spacing",8),n=r=>({rowGap:yu(t,r)});return Cn(e,e.rowGap,n)}return null};Df.propTypes={};Df.filterProps=["rowGap"];const V_=He({prop:"gridColumn"}),B_=He({prop:"gridRow"}),U_=He({prop:"gridAutoFlow"}),W_=He({prop:"gridAutoColumns"}),H_=He({prop:"gridAutoRows"}),G_=He({prop:"gridTemplateColumns"}),K_=He({prop:"gridTemplateRows"}),q_=He({prop:"gridTemplateAreas"}),Q_=He({prop:"gridArea"});_f(Lf,jf,Df,V_,B_,U_,W_,H_,G_,K_,q_,Q_);function ho(e,t){return t==="grey"?t:e}const X_=He({prop:"color",themeKey:"palette",transform:ho}),Y_=He({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ho}),Z_=He({prop:"backgroundColor",themeKey:"palette",transform:ho});_f(X_,Y_,Z_);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const J_=He({prop:"width",transform:Gt}),y0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||m0[n];return s?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Gt(n)}};return Cn(e,e.maxWidth,t)}return null};y0.filterProps=["maxWidth"];const eI=He({prop:"minWidth",transform:Gt}),tI=He({prop:"height",transform:Gt}),nI=He({prop:"maxHeight",transform:Gt}),rI=He({prop:"minHeight",transform:Gt});He({prop:"size",cssProperty:"width",transform:Gt});He({prop:"size",cssProperty:"height",transform:Gt});const iI=He({prop:"boxSizing"});_f(J_,y0,eI,tI,nI,rI,iI);const sI={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:If},color:{themeKey:"palette",transform:ho},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ho},backgroundColor:{themeKey:"palette",transform:ho},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Fe},mt:{style:Fe},mr:{style:Fe},mb:{style:Fe},ml:{style:Fe},mx:{style:Fe},my:{style:Fe},margin:{style:Fe},marginTop:{style:Fe},marginRight:{style:Fe},marginBottom:{style:Fe},marginLeft:{style:Fe},marginX:{style:Fe},marginY:{style:Fe},marginInline:{style:Fe},marginInlineStart:{style:Fe},marginInlineEnd:{style:Fe},marginBlock:{style:Fe},marginBlockStart:{style:Fe},marginBlockEnd:{style:Fe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Lf},rowGap:{style:Df},columnGap:{style:jf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:y0},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xu=sI;function oI(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function aI(e,t){return typeof e=="function"?e(t):e}function UC(){function e(n,r,i,s){const o={[n]:r,theme:i},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Bo(i,u)||{};return d?d(o):Cn(o,r,h=>{let m=yd(f,c,h);return h===m&&typeof h=="string"&&(m=yd(f,c,`${n}${h==="default"?"":Q(h)}`,h)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const o=(r=s.unstable_sxConfig)!=null?r:xu;function a(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=x_(s.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=aI(u[p],s);if(h!=null)if(typeof h=="object")if(o[p])f=Xa(f,e(p,h,s,o));else{const m=Cn({theme:s},h,x=>({[p]:x}));oI(m,h)?f[p]=t({sx:h,theme:s}):f=Xa(f,m)}else f=Xa(f,e(p,h,s,o))}),w_(d,f)}return Array.isArray(i)?i.map(a):a(i)}return t}const wu=UC();wu.filterProps=["sx"];function WC(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const lI=["breakpoints","palette","spacing","shape"];function x0(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=e,o=se(e,lI),a=zC(n),l=k_(i);let u=rr({breakpoints:a,direction:"ltr",components:{},palette:_({mode:"light"},r),spacing:l,shape:_({},y_,s)},o);return u.applyStyles=WC,u=t.reduce((c,d)=>rr(c,d),u),u.unstable_sxConfig=_({},xu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return wu({sx:d,theme:this})},u}const uI=Object.freeze(Object.defineProperty({__proto__:null,default:x0,private_createBreakpoints:zC,unstable_applyStyles:WC},Symbol.toStringTag,{value:"Module"}));function HC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dI=HC(function(e){return cI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function fI(e){if(e.sheet)return e.sheet;for(var t=0;t0?pt(ta,--Bt):0,Uo--,Ke===10&&(Uo=1,Ff--),Ke}function Xt(){return Ke=Bt2||_l(Ke)>3?"":" "}function CI(e,t){for(;--t&&Xt()&&!(Ke<48||Ke>102||Ke>57&&Ke<65||Ke>70&&Ke<97););return bu(e,Ac()+(t<6&&ir()==32&&Xt()==32))}function og(e){for(;Xt();)switch(Ke){case e:return Bt;case 34:case 39:e!==34&&e!==39&&og(Ke);break;case 40:e===41&&og(e);break;case 92:Xt();break}return Bt}function TI(e,t){for(;Xt()&&e+Ke!==57;)if(e+Ke===84&&ir()===47)break;return"/*"+bu(t,Bt-1)+"*"+Nf(e===47?e:Xt())}function AI(e){for(;!_l(ir());)Xt();return bu(e,Bt)}function kI(e){return YC(Mc("",null,null,null,[""],e=XC(e),0,[0],e))}function Mc(e,t,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,f=0,p=0,h=0,m=1,x=1,g=1,y=0,v="",w=i,S=s,P=r,T=v;x;)switch(h=y,y=Xt()){case 40:if(h!=108&&pt(T,d-1)==58){sg(T+=ye(kc(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=kc(y);break;case 9:case 10:case 13:case 32:T+=PI(h);break;case 92:T+=CI(Ac()-1,7);continue;case 47:switch(ir()){case 42:case 47:nc(MI(TI(Xt(),Ac()),t,n),l);break;default:T+="/"}break;case 123*m:a[u++]=Yn(T)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:g==-1&&(T=ye(T,/\f/g,"")),p>0&&Yn(T)-d&&nc(p>32?Mx(T+";",r,n,d-1):Mx(ye(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(nc(P=kx(T,t,n,u,c,i,a,v,w=[],S=[],d),s),y===123)if(c===0)Mc(T,t,P,P,w,s,d,a,S);else switch(f===99&&pt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Mc(e,P,P,r&&nc(kx(e,P,P,0,0,i,a,v,i,w=[],d),S),i,S,d,a,r?w:S);break;default:Mc(T,P,P,P,[""],S,0,a,S)}}u=c=p=0,m=g=1,v=T="",d=o;break;case 58:d=1+Yn(T),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&EI()==125)continue}switch(T+=Nf(y),y*m){case 38:g=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Yn(T)-1)*g,g=1;break;case 64:ir()===45&&(T+=kc(Xt())),f=ir(),c=d=Yn(v=T+=AI(Ac())),y++;break;case 45:h===45&&Yn(T)==2&&(m=0)}}return s}function kx(e,t,n,r,i,s,o,a,l,u,c){for(var d=i-1,f=i===0?s:[""],p=S0(f),h=0,m=0,x=0;h0?f[g]+" "+y:ye(y,/&\f/g,f[g])))&&(l[x++]=v);return $f(e,t,n,i===0?w0:a,l,u,c)}function MI(e,t,n){return $f(e,t,n,GC,Nf(SI()),Rl(e,2,-2),0)}function Mx(e,t,n,r){return $f(e,t,n,b0,Rl(e,0,r),Rl(e,r+1,-1),r)}function mo(e,t){for(var n="",r=S0(e),i=0;i6)switch(pt(e,t+1)){case 109:if(pt(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+xd+(pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sg(e,"stretch")?ZC(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pt(e,t+1)!==115)break;case 6444:switch(pt(e,Yn(e)-3-(~sg(e,"!important")&&10))){case 107:return ye(e,":",":"+ve)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(pt(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(pt(e,t+11)){case 114:return ve+e+Et+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+Et+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+Et+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+Et+e+e}return e}var FI=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case b0:t.return=ZC(t.value,t.length);break;case KC:return mo([wa(t,{value:ye(t.value,"@","@"+ve)})],i);case w0:if(t.length)return bI(t.props,function(s){switch(wI(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mo([wa(t,{props:[ye(s,/:(read-\w+)/,":"+xd+"$1")]})],i);case"::placeholder":return mo([wa(t,{props:[ye(s,/:(plac\w+)/,":"+ve+"input-$1")]}),wa(t,{props:[ye(s,/:(plac\w+)/,":"+xd+"$1")]}),wa(t,{props:[ye(s,/:(plac\w+)/,Et+"input-$1")]})],i)}return""})}},$I=[FI],JC=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||$I,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),g=1;g=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var YI={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},ZI=/[A-Z]|^ms/g,JI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oT=function(t){return t.charCodeAt(1)===45},Rx=function(t){return t!=null&&typeof t!="boolean"},dh=HC(function(e){return oT(e)?e:e.replace(ZI,"-$&").toLowerCase()}),_x=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JI,function(r,i,s){return Zn={name:i,styles:s,next:Zn},i})}return YI[t]!==1&&!oT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Il(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Zn={name:n.name,styles:n.styles,next:Zn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Zn={name:r.name,styles:r.styles,next:Zn},r=r.next;var i=n.styles+";";return i}return e3(e,t,n)}case"function":{if(e!==void 0){var s=Zn,o=n(e);return Zn=s,Il(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function e3(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?s3:o3},Nx=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},a3=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return iT(n,r,i),n3(function(){return sT(n,r,i)}),null},l3=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,o;n!==void 0&&(s=n.label,o=n.target);var a=Nx(t,n,r),l=a||Dx(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(d3(i)?n:i):t;return E.jsx(i3,{styles:r})}function fT(e,t){return ag(e,t)}const f3=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},p3=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:dT,StyledEngineProvider:c3,ThemeContext:Su,css:Xf,default:fT,internal_processStyles:f3,keyframes:na},Symbol.toStringTag,{value:"Module"}));function h3(e){return Object.keys(e).length===0}function A0(e=null){const t=b.useContext(Su);return!t||h3(t)?e:t}const m3=x0();function Yf(e=m3){return A0(e)}function g3({props:e,name:t,defaultTheme:n,themeId:r}){let i=Yf(n);return r&&(i=i[r]||i),$C({theme:i,name:t,props:e})}const v3=["sx"],y3=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:xu;return Object.keys(e).forEach(s=>{i[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Zf(e){const{sx:t}=e,n=se(e,v3),{systemProps:r,otherProps:i}=y3(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...o)=>{const a=t(...o);return ei(a)?_({},r,a):r}:s=_({},r,t),_({},i,{sx:s})}const x3=Object.freeze(Object.defineProperty({__proto__:null,default:wu,extendSxProp:Zf,unstable_createStyleFunctionSx:UC,unstable_defaultSxConfig:xu},Symbol.toStringTag,{value:"Module"}));function w3(e,t){return _({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ge={},pT={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(pT);var k0=pT.exports;const b3=_r(F5),S3=_r(h_);var hT=k0;Object.defineProperty(Ge,"__esModule",{value:!0});var Pt=Ge.alpha=yT;Ge.blend=I3;Ge.colorChannel=void 0;var ug=Ge.darken=O0;Ge.decomposeColor=Tn;Ge.emphasize=xT;var E3=Ge.getContrastRatio=k3;Ge.getLuminance=wd;Ge.hexToRgb=mT;Ge.hslToRgb=vT;var cg=Ge.lighten=R0;Ge.private_safeAlpha=M3;Ge.private_safeColorChannel=void 0;Ge.private_safeDarken=O3;Ge.private_safeEmphasize=_3;Ge.private_safeLighten=R3;Ge.recomposeColor=ra;Ge.rgbToHex=A3;var Fx=hT(b3),P3=hT(S3);function M0(e,t=0,n=1){return(0,P3.default)(e,t,n)}function mT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function C3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Tn(e){if(e.type)return e;if(e.charAt(0)==="#")return Tn(mT(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Fx.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,Fx.default)(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const gT=e=>{const t=Tn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ge.colorChannel=gT;const T3=(e,t)=>{try{return gT(e)}catch{return e}};Ge.private_safeColorChannel=T3;function ra(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function A3(e){if(e.indexOf("#")===0)return e;const{values:t}=Tn(e);return`#${t.map((n,r)=>C3(r===3?Math.round(255*n):n)).join("")}`}function vT(e){e=Tn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),o=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),ra({type:a,values:l})}function wd(e){e=Tn(e);let t=e.type==="hsl"||e.type==="hsla"?Tn(vT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function k3(e,t){const n=wd(e),r=wd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yT(e,t){return e=Tn(e),t=M0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ra(e)}function M3(e,t,n){try{return yT(e,t)}catch{return e}}function O0(e,t){if(e=Tn(e),t=M0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ra(e)}function O3(e,t,n){try{return O0(e,t)}catch{return e}}function R0(e,t){if(e=Tn(e),t=M0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ra(e)}function R3(e,t,n){try{return R0(e,t)}catch{return e}}function xT(e,t=.15){return wd(e)>.5?O0(e,t):R0(e,t)}function _3(e,t,n){try{return xT(e,t)}catch{return e}}function I3(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),s=Tn(e),o=Tn(t),a=[i(s.values[0],o.values[0]),i(s.values[1],o.values[1]),i(s.values[2],o.values[2])];return ra({type:"rgb",values:a})}const L3={black:"#000",white:"#fff"},Ll=L3,j3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},D3=j3,N3={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Is=N3,F3={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ls=F3,$3={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ba=$3,z3={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},js=z3,V3={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ds=V3,B3={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ns=B3,U3=["mode","contrastThreshold","tonalOffset"],$x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ll.white,default:Ll.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ph={text:{primary:Ll.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ll.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function zx(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=cg(e.main,i):t==="dark"&&(e.dark=ug(e.main,s)))}function W3(e="light"){return e==="dark"?{main:js[200],light:js[50],dark:js[400]}:{main:js[700],light:js[400],dark:js[800]}}function H3(e="light"){return e==="dark"?{main:Is[200],light:Is[50],dark:Is[400]}:{main:Is[500],light:Is[300],dark:Is[700]}}function G3(e="light"){return e==="dark"?{main:Ls[500],light:Ls[300],dark:Ls[700]}:{main:Ls[700],light:Ls[400],dark:Ls[800]}}function K3(e="light"){return e==="dark"?{main:Ds[400],light:Ds[300],dark:Ds[700]}:{main:Ds[700],light:Ds[500],dark:Ds[900]}}function q3(e="light"){return e==="dark"?{main:Ns[400],light:Ns[300],dark:Ns[700]}:{main:Ns[800],light:Ns[500],dark:Ns[900]}}function Q3(e="light"){return e==="dark"?{main:ba[400],light:ba[300],dark:ba[700]}:{main:"#ed6c02",light:ba[500],dark:ba[900]}}function X3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=se(e,U3),s=e.primary||W3(t),o=e.secondary||H3(t),a=e.error||G3(t),l=e.info||K3(t),u=e.success||q3(t),c=e.warning||Q3(t);function d(m){return E3(m,ph.text.primary)>=n?ph.text.primary:$x.text.primary}const f=({color:m,name:x,mainShade:g=500,lightShade:y=300,darkShade:v=700})=>{if(m=_({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Ml(11,x?` (${x})`:"",g));if(typeof m.main!="string")throw new Error(Ml(12,x?` (${x})`:"",JSON.stringify(m.main)));return zx(m,"light",y,r),zx(m,"dark",v,r),m.contrastText||(m.contrastText=d(m.main)),m},p={dark:ph,light:$x};return rr(_({common:_({},Ll),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:D3,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),i)}const Y3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Z3(e){return Math.round(e*1e5)/1e5}const Vx={textTransform:"uppercase"},Bx='"Roboto", "Helvetica", "Arial", sans-serif';function J3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Bx,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,Y3),p=i/14,h=d||(g=>`${g/u*p}rem`),m=(g,y,v,w,S)=>_({fontFamily:r,fontWeight:g,fontSize:h(y),lineHeight:v},r===Bx?{letterSpacing:`${Z3(w/y)}em`}:{},S,c),x={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(a,14,1.75,.4,Vx),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,Vx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rr(_({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},x),f,{clone:!1})}const e4=.2,t4=.14,n4=.12;function Oe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${e4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${t4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${n4})`].join(",")}const r4=["none",Oe(0,2,1,-1,0,1,1,0,0,1,3,0),Oe(0,3,1,-2,0,2,2,0,0,1,5,0),Oe(0,3,3,-2,0,3,4,0,0,1,8,0),Oe(0,2,4,-1,0,4,5,0,0,1,10,0),Oe(0,3,5,-1,0,5,8,0,0,1,14,0),Oe(0,3,5,-1,0,6,10,0,0,1,18,0),Oe(0,4,5,-2,0,7,10,1,0,2,16,1),Oe(0,5,5,-3,0,8,10,1,0,3,14,2),Oe(0,5,6,-3,0,9,12,1,0,3,16,2),Oe(0,6,6,-3,0,10,14,1,0,4,18,3),Oe(0,6,7,-4,0,11,15,1,0,4,20,3),Oe(0,7,8,-4,0,12,17,2,0,5,22,4),Oe(0,7,8,-4,0,13,19,2,0,5,24,4),Oe(0,7,9,-4,0,14,21,2,0,5,26,4),Oe(0,8,9,-5,0,15,22,2,0,6,28,5),Oe(0,8,10,-5,0,16,24,2,0,6,30,5),Oe(0,8,11,-5,0,17,26,2,0,6,32,5),Oe(0,9,11,-5,0,18,28,2,0,7,34,6),Oe(0,9,12,-6,0,19,29,2,0,7,36,6),Oe(0,10,13,-6,0,20,31,3,0,8,38,7),Oe(0,10,13,-6,0,21,33,3,0,8,40,7),Oe(0,10,14,-6,0,22,35,3,0,8,42,7),Oe(0,11,14,-7,0,23,36,3,0,9,44,8),Oe(0,11,15,-7,0,24,38,3,0,9,46,8)],i4=["duration","easing","delay"],s4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ux(e){return`${Math.round(e)}ms`}function a4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function l4(e){const t=_({},s4,e.easing),n=_({},o4,e.duration);return _({getAutoHeightDuration:a4,create:(i=["all"],s={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0}=s;return se(s,i4),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Ux(o)} ${a} ${typeof l=="string"?l:Ux(l)}`).join(",")}},e,{easing:t,duration:n})}const u4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},c4=u4,d4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _0(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=e,o=se(e,d4);if(e.vars)throw new Error(Ml(18));const a=X3(r),l=x0(e);let u=rr(l,{mixins:w3(l.breakpoints,n),palette:a,shadows:r4.slice(),typography:J3(a,s),transitions:l4(i),zIndex:_({},c4)});return u=rr(u,o),u=t.reduce((c,d)=>rr(c,d),u),u.unstable_sxConfig=_({},xu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return wu({sx:d,theme:this})},u}const f4=_0(),Jf=f4,bs="$$material";function nt({props:e,name:t}){return g3({props:e,name:t,defaultTheme:Jf,themeId:bs})}var Eu={},hh={exports:{}},Wx;function p4(){return Wx||(Wx=1,function(e){function t(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,a;for(a=0;a=0)&&(i[o]=n[o]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hh)),hh.exports}const h4=_r(p3),m4=_r(N5),g4=_r(W5),v4=_r(U5),y4=_r(uI),x4=_r(x3);var ia=k0;Object.defineProperty(Eu,"__esModule",{value:!0});var w4=Eu.default=I4;Eu.shouldForwardProp=Oc;Eu.systemDefaultTheme=void 0;var cn=ia(cT()),dg=ia(p4()),Hx=A4(h4),b4=m4;ia(g4);ia(v4);var S4=ia(y4),E4=ia(x4);const P4=["ownerState"],C4=["variants"],T4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(wT=function(r){return r?n:t})(e)}function A4(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=wT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function k4(e){return Object.keys(e).length===0}function M4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Oc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const O4=Eu.systemDefaultTheme=(0,S4.default)(),R4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function rc({defaultTheme:e,theme:t,themeId:n}){return k4(t)?e:t[n]||t}function _4(e){return e?(t,n)=>n[e]:null}function Rc(e,t){let{ownerState:n}=t,r=(0,dg.default)(t,P4);const i=typeof e=="function"?e((0,cn.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(s=>Rc(s,(0,cn.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:s=[]}=i;let a=(0,dg.default)(i,C4);return s.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,cn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,cn.default)({ownerState:n},r,n)):l.style))}),a}return i}function I4(e={}){const{themeId:t,defaultTheme:n=O4,rootShouldForwardProp:r=Oc,slotShouldForwardProp:i=Oc}=e,s=o=>(0,E4.default)((0,cn.default)({},o,{theme:rc((0,cn.default)({},o,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(o,a={})=>{(0,Hx.internal_processStyles)(o,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=_4(R4(u))}=a,p=(0,dg.default)(a,T4),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let x,g=Oc;u==="Root"||u==="root"?g=r:u?g=i:M4(o)&&(g=void 0);const y=(0,Hx.default)(o,(0,cn.default)({shouldForwardProp:g,label:x},p)),v=S=>typeof S=="function"&&S.__emotion_real!==S||(0,b4.isPlainObject)(S)?P=>Rc(S,(0,cn.default)({},P,{theme:rc({theme:P.theme,defaultTheme:n,themeId:t})})):S,w=(S,...P)=>{let T=v(S);const C=P?P.map(v):[];l&&f&&C.push(R=>{const I=rc((0,cn.default)({},R,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[l]||!I.components[l].styleOverrides)return null;const L=I.components[l].styleOverrides,N={};return Object.entries(L).forEach(([B,z])=>{N[B]=Rc(z,(0,cn.default)({},R,{theme:I}))}),f(R,N)}),l&&!h&&C.push(R=>{var I;const L=rc((0,cn.default)({},R,{defaultTheme:n,themeId:t})),N=L==null||(I=L.components)==null||(I=I[l])==null?void 0:I.variants;return Rc({variants:N},(0,cn.default)({},R,{theme:L}))}),m||C.push(s);const k=C.length-P.length;if(Array.isArray(S)&&k>0){const R=new Array(k).fill("");T=[...S,...R],T.raw=[...S.raw,...R]}const A=y(T,...C);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(w.withConfig=y.withConfig),w}}function L4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const j4=e=>L4(e)&&e!=="classes",bT=j4,me=w4({themeId:bs,defaultTheme:Jf,rootShouldForwardProp:bT});function D4(e){return tt("MuiSvgIcon",e)}Ye("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],F4=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return ut(i,D4,r)},$4=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,s,o,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),fg=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,N4),h=b.isValidElement(i)&&i.type==="svg",m=_({},r,{color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),x={};c||(x.viewBox=f);const g=F4(m);return E.jsxs($4,_({as:a,className:re(g.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,p,h&&i.props,{ownerState:m,children:[h?i.props.children:i,d?E.jsx("title",{children:d}):null]}))});fg.muiName="SvgIcon";function nn(e,t){function n(r,i){return E.jsx(fg,_({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=fg.muiName,b.memo(b.forwardRef(n))}const z4={configure:e=>{h0.configure(e)}},V4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Q,createChainedFunction:rg,createSvgIcon:nn,debounce:DC,deprecatedPropType:H5,isMuiElement:G5,ownerDocument:br,ownerWindow:ea,requirePropFactory:K5,setRef:vd,unstable_ClassNameGenerator:z4,unstable_useEnhancedEffect:Ol,unstable_useId:Q5,unsupportedProp:X5,useControlled:Y5,useEventCallback:es,useForkRef:Pn,useIsFocusVisible:p0},Symbol.toStringTag,{value:"Module"})),ST=nn(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),B4=nn(E.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),U4=nn(E.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),W4=nn(E.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),H4=nn(E.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");function G4({styles:e,themeId:t,defaultTheme:n={}}){const r=Yf(n),i=typeof e=="function"?e(t&&r[t]||r):e;return E.jsx(dT,{styles:i})}const K4=["className","component"];function q4(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=fT("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(wu);return b.forwardRef(function(l,u){const c=Yf(n),d=Zf(l),{className:f,component:p="div"}=d,h=se(d,K4);return E.jsx(s,_({as:p,ref:u,className:re(f,i?i(r):r),theme:t&&c[t]||c},h))})}function Q4(e,t,n,r,i){const[s,o]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ol(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&o(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),s}const ET=b.useSyncExternalStore;function X4(e,t,n,r,i){const s=b.useCallback(()=>t,[t]),o=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return s},[s,e,r,i,n]),[a,l]=b.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[s,n,e]);return ET(l,a,o)}function Y4(e,t={}){const n=A0(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=$C({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(ET!==void 0?X4:Q4)(l,i,s,o,a)}const Z4=b.createContext(null),PT=Z4;function CT(){return b.useContext(PT)}const J4=typeof Symbol=="function"&&Symbol.for,eL=J4?Symbol.for("mui.nested"):"__THEME_NESTED__";function tL(e,t){return typeof t=="function"?t(e):_({},e,t)}function nL(e){const{children:t,theme:n}=e,r=CT(),i=b.useMemo(()=>{const s=r===null?n:tL(r,n);return s!=null&&(s[eL]=r!==null),s},[n,r]);return E.jsx(PT.Provider,{value:i,children:t})}const rL=["value"],TT=b.createContext();function iL(e){let{value:t}=e,n=se(e,rL);return E.jsx(TT.Provider,_({value:t??!0},n))}const sL=()=>{const e=b.useContext(TT);return e??!1},Gx={};function Kx(e,t,n,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const s=n(i),o=e?_({},t,{[e]:s}):s;return r?()=>o:o}return e?_({},t,{[e]:n}):_({},t,n)},[e,t,n,r])}function oL(e){const{children:t,theme:n,themeId:r}=e,i=A0(Gx),s=CT()||Gx,o=Kx(r,i,n),a=Kx(r,s,n,!0),l=o.direction==="rtl";return E.jsx(nL,{theme:a,children:E.jsx(Su.Provider,{value:o,children:E.jsx(iL,{value:l,children:t})})})}function ep(){const e=Yf(Jf);return e[bs]||e}const aL=["theme"];function lL(e){let{theme:t}=e,n=se(e,aL);const r=t[bs];return E.jsx(oL,_({},n,{themeId:r?bs:void 0,theme:r||t}))}const qx=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function AT(e){return nt}function pg(e,t){return pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pg(e,t)}function kT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pg(e,t)}const Qx={disabled:!1},bd=H.createContext(null);var uL=function(t){return t.scrollTop},Da="unmounted",Gi="exited",Ki="entering",Vs="entered",hg="exiting",jr=function(e){kT(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Gi,s.appearStatus=Ki):l=Vs:r.unmountOnExit||r.mountOnEnter?l=Da:l=Gi,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===Da?{status:Gi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ki&&o!==Vs&&(s=Ki):(o===Ki||o===Vs)&&(s=hg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===Ki){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:tc.findDOMNode(this);o&&uL(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Gi&&this.setState({status:Da})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[tc.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!o||Qx.disabled){this.safeSetState({status:Vs},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ki},function(){s.props.onEntering(u,c),s.onTransitionEnd(f,function(){s.safeSetState({status:Vs},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:tc.findDOMNode(this);if(!s||Qx.disabled){this.safeSetState({status:Gi},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:hg},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Gi},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:tc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Da)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=se(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(bd.Provider,{value:null},typeof o=="function"?o(i,a):H.cloneElement(H.Children.only(o),a))},t}(H.Component);jr.contextType=bd;jr.propTypes={};function Fs(){}jr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fs,onEntering:Fs,onEntered:Fs,onExit:Fs,onExiting:Fs,onExited:Fs};jr.UNMOUNTED=Da;jr.EXITED=Gi;jr.ENTERING=Ki;jr.ENTERED=Vs;jr.EXITING=hg;const MT=jr;function cL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I0(e,t){var n=function(s){return t&&b.isValidElement(s)?t(s):s},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function dL(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var o,a={};for(var l in t){if(r[l])for(o=0;oe.scrollTop;function Sd(e,t){var n,r;const{timeout:i,easing:s,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:o.transitionDelay}}function vL(e){return tt("MuiPaper",e)}Ye("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const yL=["className","component","elevation","square","variant"],xL=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ut(s,vL,i)},wL=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return _({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&_({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Pt("#fff",qx(t.elevation))}, ${Pt("#fff",qx(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),bL=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaper"}),{className:i,component:s="div",elevation:o=1,square:a=!1,variant:l="elevation"}=r,u=se(r,yL),c=_({},r,{component:s,elevation:o,square:a,variant:l}),d=xL(c);return E.jsx(wL,_({as:s,ownerState:c,className:re(d.root,i),ref:n},u))}),jl=bL;function SL(e){return typeof e=="string"}function RT(e,t,n){return e===void 0||SL(e)?t:_({},t,{ownerState:_({},t.ownerState,n)})}function _T(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function IT(e,t,n){return typeof e=="function"?e(t,n):e}function Xx(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function LT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const p=re(n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),h=_({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=_({},n,i,r);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const o=_T(_({},i,r)),a=Xx(r),l=Xx(i),u=t(o),c=re(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),d=_({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=_({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const EL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yx(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:s=!1}=e,o=se(e,EL),a=s?{}:IT(r,i),{props:l,internalRef:u}=LT(_({},o,{externalSlotProps:a})),c=Pn(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return RT(n,_({},l,{ref:c}),i)}const PL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],CL=["component","slots","slotProps"],TL=["component"];function mg(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,getSlotOwnerState:o,internalForwardedProps:a}=t,l=se(t,PL),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=s,f=se(s,CL),p=c[e]||r,h=IT(d[e],i),m=LT(_({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h})),{props:{component:x},internalRef:g}=m,y=se(m.props,TL),v=Pn(g,h==null?void 0:h.ref,t.ref),w=o?o(y):{},S=_({},i,w),P=e==="root"?x||u:x,T=RT(p,_({},e==="root"&&!u&&!c[e]&&a,e!=="root"&&!c[e]&&a,y,P&&{as:P},{ref:v}),S);return Object.keys(w).forEach(C=>{delete T[C]}),[p,T]}function AL(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:o,in:a,onExited:l,timeout:u}=e,[c,d]=b.useState(!1),f=re(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+s,left:-(o/2)+i},h=re(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),b.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),E.jsx("span",{className:f,style:p,children:E.jsx("span",{className:h})})}const fn=Ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kL=["center","classes","className"];let tp=e=>e,Zx,Jx,ew,tw;const gg=550,ML=80,OL=na(Zx||(Zx=tp` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),RL=na(Jx||(Jx=tp` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),_L=na(ew||(ew=tp` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),IL=me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LL=me(AL,{name:"MuiTouchRipple",slot:"Ripple"})(tw||(tw=tp` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),fn.rippleVisible,OL,gg,({theme:e})=>e.transitions.easing.easeInOut,fn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fn.child,fn.childLeaving,RL,gg,({theme:e})=>e.transitions.easing.easeInOut,fn.childPulsate,_L,({theme:e})=>e.transitions.easing.easeInOut),jL=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:o}=r,a=se(r,kL),[l,u]=b.useState([]),c=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),p=t_(),h=b.useRef(null),m=b.useRef(null),x=b.useCallback(w=>{const{pulsate:S,rippleX:P,rippleY:T,rippleSize:C,cb:k}=w;u(A=>[...A,E.jsx(LL,{classes:{ripple:re(s.ripple,fn.ripple),rippleVisible:re(s.rippleVisible,fn.rippleVisible),ripplePulsate:re(s.ripplePulsate,fn.ripplePulsate),child:re(s.child,fn.child),childLeaving:re(s.childLeaving,fn.childLeaving),childPulsate:re(s.childPulsate,fn.childPulsate)},timeout:gg,pulsate:S,rippleX:P,rippleY:T,rippleSize:C},c.current)]),c.current+=1,d.current=k},[s]),g=b.useCallback((w={},S={},P=()=>{})=>{const{pulsate:T=!1,center:C=i||S.pulsate,fakeElement:k=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const A=k?null:m.current,R=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,L,N;if(C||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)I=Math.round(R.width/2),L=Math.round(R.height/2);else{const{clientX:B,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;I=Math.round(B-R.left),L=Math.round(z-R.top)}if(C)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const B=Math.max(Math.abs((A?A.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((A?A.clientHeight:0)-L),L)*2+2;N=Math.sqrt(B**2+z**2)}w!=null&&w.touches?h.current===null&&(h.current=()=>{x({pulsate:T,rippleX:I,rippleY:L,rippleSize:N,cb:P})},p.start(ML,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:T,rippleX:I,rippleY:L,rippleSize:N,cb:P})},[i,x,p]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),v=b.useCallback((w,S)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{v(w,S)});return}h.current=null,u(P=>P.length>0?P.slice(1):P),d.current=S},[p]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:v}),[y,g,v]),E.jsx(IL,_({className:re(fn.root,s.root,o),ref:m},a,{children:E.jsx(gL,{component:null,exit:!0,children:l})}))}),DL=jL;function NL(e){return tt("MuiButtonBase",e)}const FL=Ye("MuiButtonBase",["root","disabled","focusVisible"]),$L=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],zL=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=ut({root:["root",t&&"disabled",n&&"focusVisible"]},NL,i);return n&&r&&(o.root+=` ${r}`),o},VL=me("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${FL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BL=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:S,onMouseDown:P,onMouseLeave:T,onMouseUp:C,onTouchEnd:k,onTouchMove:A,onTouchStart:R,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:N,type:B}=r,z=se(r,$L),q=b.useRef(null),O=b.useRef(null),j=Pn(O,N),{isFocusVisibleRef:V,onFocus:K,onBlur:ne,ref:Ze}=p0(),[ge,dt]=b.useState(!1);u&&ge&&dt(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{dt(!0),q.current.focus()}}),[]);const[ie,U]=b.useState(!1);b.useEffect(()=>{U(!0)},[]);const ae=ie&&!c&&!u;b.useEffect(()=>{ge&&f&&!c&&ie&&O.current.pulsate()},[c,f,ge,ie]);function fe(ee,ju,jp=d){return es(Du=>(ju&&ju(Du),!jp&&O.current&&O.current[ee](Du),!0))}const Me=fe("start",P),De=fe("stop",x),rt=fe("stop",g),yt=fe("stop",C),sn=fe("stop",ee=>{ge&&ee.preventDefault(),T&&T(ee)}),$i=fe("start",R),xt=fe("stop",k),wt=fe("stop",A),Mn=fe("stop",ee=>{ne(ee),V.current===!1&&dt(!1),h&&h(ee)},!1),Os=es(ee=>{q.current||(q.current=ee.currentTarget),K(ee),V.current===!0&&(dt(!0),v&&v(ee)),y&&y(ee)}),zi=()=>{const ee=q.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},Vi=b.useRef(!1),_p=es(ee=>{f&&!Vi.current&&ge&&O.current&&ee.key===" "&&(Vi.current=!0,O.current.stop(ee,()=>{O.current.start(ee)})),ee.target===ee.currentTarget&&zi()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&zi()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),m&&m(ee))}),Rs=es(ee=>{f&&ee.key===" "&&O.current&&ge&&!ee.defaultPrevented&&(Vi.current=!1,O.current.stop(ee,()=>{O.current.pulsate(ee)})),S&&S(ee),m&&ee.target===ee.currentTarget&&zi()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let Bi=l;Bi==="button"&&(z.href||z.to)&&(Bi=p);const Dr={};Bi==="button"?(Dr.type=B===void 0?"button":B,Dr.disabled=u):(!z.href&&!z.to&&(Dr.role="button"),u&&(Dr["aria-disabled"]=u));const Ip=Pn(n,Ze,q),Lu=_({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:ge}),Lp=zL(Lu);return E.jsxs(VL,_({as:Bi,className:re(Lp.root,a),ownerState:Lu,onBlur:Mn,onClick:m,onContextMenu:De,onFocus:Os,onKeyDown:_p,onKeyUp:Rs,onMouseDown:Me,onMouseLeave:sn,onMouseUp:yt,onDragLeave:rt,onTouchEnd:xt,onTouchMove:wt,onTouchStart:$i,ref:Ip,tabIndex:u?-1:I,type:B},Dr,z,{children:[o,ae?E.jsx(DL,_({ref:j,center:s},L)):null]}))}),vg=BL;function UL(e){return tt("MuiAlert",e)}const WL=Ye("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),nw=WL;function HL(e){return tt("MuiIconButton",e)}const GL=Ye("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),KL=["edge","children","className","color","disabled","disableFocusRipple","size"],qL=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Q(r)}`,i&&`edge${Q(i)}`,`size${Q(s)}`]};return ut(o,HL,t)},QL=me(vg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(({theme:e,ownerState:t})=>_({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return _({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&_({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":_({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${GL.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),XL=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:o,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,KL),f=_({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),p=qL(f);return E.jsx(QL,_({className:re(p.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},d,{ownerState:f,children:s}))}),Ed=XL,YL=nn(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ZL=nn(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),JL=nn(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ej=nn(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),tj=nn(E.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),nj=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],rj=AT(),ij=e=>{const{variant:t,color:n,severity:r,classes:i}=e,s={root:["root",`color${Q(n||r)}`,`${t}${Q(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ut(s,UL,i)},sj=me(jl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?ug:cg,n=e.palette.mode==="light"?cg:ug;return _({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${nw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${nw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:_({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),oj=me("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),aj=me("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),rw=me("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),iw={success:E.jsx(YL,{fontSize:"inherit"}),warning:E.jsx(ZL,{fontSize:"inherit"}),error:E.jsx(JL,{fontSize:"inherit"}),info:E.jsx(ej,{fontSize:"inherit"})},lj=b.forwardRef(function(t,n){const r=rj({props:t,name:"MuiAlert"}),{action:i,children:s,className:o,closeText:a="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:f=iw,onClose:p,role:h="alert",severity:m="success",slotProps:x={},slots:g={},variant:y="standard"}=r,v=se(r,nj),w=_({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),S=ij(w),P={slots:_({closeButton:u.CloseButton,closeIcon:u.CloseIcon},g),slotProps:_({},c,x)},[T,C]=mg("closeButton",{elementType:Ed,externalForwardedProps:P,ownerState:w}),[k,A]=mg("closeIcon",{elementType:tj,externalForwardedProps:P,ownerState:w});return E.jsxs(sj,_({role:h,elevation:0,ownerState:w,className:re(S.root,o),ref:n},v,{children:[d!==!1?E.jsx(oj,{ownerState:w,className:S.icon,children:d||f[m]||iw[m]}):null,E.jsx(aj,{ownerState:w,className:S.message,children:s}),i!=null?E.jsx(rw,{ownerState:w,className:S.action,children:i}):null,i==null&&p?E.jsx(rw,{ownerState:w,className:S.action,children:E.jsx(T,_({size:"small","aria-label":a,title:a,color:"inherit",onClick:p},C,{children:E.jsx(k,_({fontSize:"small"},A))}))}):null]}))}),uj=lj;function cj(e){return tt("MuiTypography",e)}Ye("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fj=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:o}=e,a={root:["root",s,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ut(a,cj,o)},pj=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>_({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),sw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mj=e=>hj[e]||e,gj=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTypography"}),i=mj(r.color),s=Zf(_({},r,{color:i})),{align:o="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=sw}=s,h=se(s,dj),m=_({},s,{align:o,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),x=l||(d?"p":p[f]||sw[f])||"span",g=fj(m);return E.jsx(pj,_({as:x,ref:n,ownerState:m,className:re(g.root,a)},h))}),Se=gj,vj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yj(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function xj(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function wj(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||xj(e))}function bj(e){const t=[],n=[];return Array.from(e.querySelectorAll(vj)).forEach((r,i)=>{const s=yj(r);s===-1||!wj(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Sj(){return!0}function Ej(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=bj,isEnabled:o=Sj,open:a}=e,l=b.useRef(!1),u=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),h=b.useRef(null),m=Pn(t.ref,h),x=b.useRef(null);b.useEffect(()=>{!a||!h.current||(p.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!h.current)return;const v=br(h.current);return h.current.contains(v.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!h.current)return;const v=br(h.current),w=T=>{x.current=T,!(r||!o()||T.key!=="Tab")&&v.activeElement===h.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const T=h.current;if(T===null)return;if(!v.hasFocus()||!o()||l.current){l.current=!1;return}if(T.contains(v.activeElement)||r&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let C=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(C=s(h.current)),C.length>0){var k,A;const R=!!((k=x.current)!=null&&k.shiftKey&&((A=x.current)==null?void 0:A.key)==="Tab"),I=C[0],L=C[C.length-1];typeof I!="string"&&typeof L!="string"&&(R?L.focus():I.focus())}else T.focus()};v.addEventListener("focusin",S),v.addEventListener("keydown",w,!0);const P=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),v.removeEventListener("focusin",S),v.removeEventListener("keydown",w,!0)}},[n,r,i,o,a,s]);const g=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,f.current=v.target;const w=t.props.onFocus;w&&w(v)},y=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return E.jsxs(b.Fragment,{children:[E.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),E.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Pj(e){return typeof e=="function"?e():e}const Cj=b.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[o,a]=b.useState(null),l=Pn(b.isValidElement(r)?r.ref:null,n);if(Ol(()=>{s||a(Pj(i)||document.body)},[i,s]),Ol(()=>{if(o&&!s)return vd(n,o),()=>{vd(n,null)}},[n,o,s]),s){if(b.isValidElement(r)){const u={ref:l};return b.cloneElement(r,u)}return E.jsx(b.Fragment,{children:r})}return E.jsx(b.Fragment,{children:o&&gf.createPortal(r,o)})});function Tj(e){const t=br(e);return t.body===e?ea(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ya(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ow(e){return parseInt(ea(e).getComputedStyle(e).paddingRight,10)||0}function Aj(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function aw(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,o=>{const a=s.indexOf(o)===-1,l=!Aj(o);a&&l&&Ya(o,i)})}function mh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function kj(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Tj(r)){const o=u_(br(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ow(r)+o}px`;const a=br(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ow(l)+o}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=br(r).body;else{const o=r.parentElement,a=ea(r);s=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:o,property:a})=>{s?o.style.setProperty(a,s):o.style.removeProperty(a)})}}function Mj(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Oj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ya(t.modalRef,!1);const i=Mj(n);aw(n,t.mount,t.modalRef,i,!0);const s=mh(this.containers,o=>o.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=mh(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=kj(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=mh(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Ya(t.modalRef,n),aw(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=s.modals[s.modals.length-1];o.modalRef&&Ya(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Rj(e){return typeof e=="function"?e():e}function _j(e){return e?e.props.hasOwnProperty("in"):!1}const Ij=new Oj;function Lj(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Ij,closeAfterTransition:s=!1,onTransitionEnter:o,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,f=b.useRef({}),p=b.useRef(null),h=b.useRef(null),m=Pn(h,d),[x,g]=b.useState(!c),y=_j(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>br(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),P=()=>{i.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},T=es(()=>{const z=Rj(t)||w().body;i.add(S(),z),h.current&&P()}),C=b.useCallback(()=>i.isTopModal(S()),[i]),k=es(z=>{p.current=z,z&&(c&&C()?P():h.current&&Ya(h.current,v))}),A=b.useCallback(()=>{i.remove(S(),v)},[v,i]);b.useEffect(()=>()=>{A()},[A]),b.useEffect(()=>{c?T():(!y||!s)&&A()},[c,A,y,s,T]);const R=z=>q=>{var O;(O=z.onKeyDown)==null||O.call(z,q),!(q.key!=="Escape"||q.which===229||!C())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},I=z=>q=>{var O;(O=z.onClick)==null||O.call(z,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(z={})=>{const q=_T(e);delete q.onTransitionEnter,delete q.onTransitionExited;const O=_({},q,z);return _({role:"presentation"},O,{onKeyDown:R(O),ref:m})},getBackdropProps:(z={})=>{const q=z;return _({"aria-hidden":!0},q,{onClick:I(q),open:c})},getTransitionProps:()=>{const z=()=>{g(!1),o&&o()},q=()=>{g(!0),a&&a(),s&&A()};return{onEnter:rg(z,l==null?void 0:l.props.onEnter),onExited:rg(q,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:k,isTopModal:C,exited:x,hasTransition:y}}const jj=nn(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Dj(e){return tt("MuiChip",e)}const Nj=Ye("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),he=Nj,Fj=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],$j=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:s,onDelete:o,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Q(r)}`,`color${Q(i)}`,a&&"clickable",a&&`clickableColor${Q(i)}`,o&&"deletable",o&&`deletableColor${Q(i)}`,`${l}${Q(i)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(i)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(i)}`,`deleteIcon${Q(l)}Color${Q(i)}`]};return ut(u,Dj,t)},zj=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:s,onDelete:o,size:a,variant:l}=n;return[{[`& .${he.avatar}`]:t.avatar},{[`& .${he.avatar}`]:t[`avatar${Q(a)}`]},{[`& .${he.avatar}`]:t[`avatarColor${Q(r)}`]},{[`& .${he.icon}`]:t.icon},{[`& .${he.icon}`]:t[`icon${Q(a)}`]},{[`& .${he.icon}`]:t[`iconColor${Q(i)}`]},{[`& .${he.deleteIcon}`]:t.deleteIcon},{[`& .${he.deleteIcon}`]:t[`deleteIcon${Q(a)}`]},{[`& .${he.deleteIcon}`]:t[`deleteIconColor${Q(r)}`]},{[`& .${he.deleteIcon}`]:t[`deleteIcon${Q(l)}Color${Q(r)}`]},t.root,t[`size${Q(a)}`],t[`color${Q(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Q(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Q(r)}`],t[l],t[`${l}${Q(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return _({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${he.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${he.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${he.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${he.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${he.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${he.icon}`]:_({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&_({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${he.deleteIcon}`]:_({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Pt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>_({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>_({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${he.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${he.avatar}`]:{marginLeft:4},[`& .${he.avatarSmall}`]:{marginLeft:2},[`& .${he.icon}`]:{marginLeft:4},[`& .${he.iconSmall}`]:{marginLeft:2},[`& .${he.deleteIcon}`]:{marginRight:5},[`& .${he.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Pt(e.palette[t.color].main,.7)}`,[`&.${he.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Pt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${he.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Pt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Vj=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Q(r)}`]]}})(({ownerState:e})=>_({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function lw(e){return e.key==="Backspace"||e.key==="Delete"}const Bj=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:o,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:m,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,S=se(r,Fj),P=b.useRef(null),T=Pn(P,n),C=j=>{j.stopPropagation(),h&&h(j)},k=j=>{j.currentTarget===j.target&&lw(j)&&j.preventDefault(),m&&m(j)},A=j=>{j.currentTarget===j.target&&(h&&lw(j)?h(j):j.key==="Escape"&&P.current&&P.current.blur()),x&&x(j)},R=o!==!1&&p?!0:o,I=R||h?vg:l||"div",L=_({},r,{component:I,disabled:c,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:R,variant:y}),N=$j(L),B=I===vg?_({component:l||"div",focusVisibleClassName:N.focusVisible},h&&{disableRipple:!0}):{};let z=null;h&&(z=u&&b.isValidElement(u)?b.cloneElement(u,{className:re(u.props.className,N.deleteIcon),onClick:C}):E.jsx(jj,{className:re(N.deleteIcon),onClick:C}));let q=null;i&&b.isValidElement(i)&&(q=b.cloneElement(i,{className:re(N.avatar,i.props.className)}));let O=null;return d&&b.isValidElement(d)&&(O=b.cloneElement(d,{className:re(N.icon,d.props.className)})),E.jsxs(zj,_({as:I,className:re(N.root,s),disabled:R&&c?!0:void 0,onClick:p,onKeyDown:k,onKeyUp:A,ref:T,tabIndex:w&&c?-1:v,ownerState:L},B,S,{children:[q||O,E.jsx(Vj,{className:re(N.label),ownerState:L,children:f}),z]}))}),Uj=Bj;function Wj(e){return E.jsx(G4,_({},e,{defaultTheme:Jf,themeId:bs}))}const Hj=nn(E.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Gj(e){return tt("MuiAvatar",e)}Ye("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kj=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],qj=AT(),Qj=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ut({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Gj,t)},Xj=me("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:_({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:_({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Yj=me("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Zj=me(Hj,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jj({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;s(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&s("loaded")},a.onerror=()=>{o&&s("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}},[e,t,n,r]),i}const eD=b.forwardRef(function(t,n){const r=qj({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:o,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:p,variant:h="circular"}=r,m=se(r,Kj);let x=null;const g=Jj(_({},c,{src:f,srcSet:p})),y=f||p,v=y&&g!=="error",w=_({},r,{colorDefault:!v,component:a,variant:h}),S=Qj(w),[P,T]=mg("img",{className:S.img,elementType:Yj,externalForwardedProps:{slots:l,slotProps:{img:_({},c,u.img)}},additionalProps:{alt:i,src:f,srcSet:p,sizes:d},ownerState:w});return v?x=E.jsx(P,_({},T)):s||s===0?x=s:y&&i?x=i[0]:x=E.jsx(Zj,{ownerState:w,className:S.fallback}),E.jsx(Xj,_({as:a,ownerState:w,className:re(S.root,o),ref:n},m,{children:x}))}),Pd=eD,tD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nD={entering:{opacity:1},entered:{opacity:1}},rD=b.forwardRef(function(t,n){const r=ep(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:x,timeout:g=i,TransitionComponent:y=MT}=t,v=se(t,tD),w=b.useRef(null),S=Pn(w,a.ref,n),P=N=>B=>{if(N){const z=w.current;B===void 0?N(z):N(z,B)}},T=P(f),C=P((N,B)=>{OT(N);const z=Sd({style:x,timeout:g,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",z),N.style.transition=r.transitions.create("opacity",z),c&&c(N,B)}),k=P(d),A=P(m),R=P(N=>{const B=Sd({style:x,timeout:g,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",B),N.style.transition=r.transitions.create("opacity",B),p&&p(N)}),I=P(h),L=N=>{s&&s(w.current,N)};return E.jsx(y,_({appear:o,in:u,nodeRef:w,onEnter:C,onEntered:k,onEntering:T,onExit:R,onExited:I,onExiting:A,addEndListener:L,timeout:g},v,{children:(N,B)=>b.cloneElement(a,_({style:_({opacity:0,visibility:N==="exited"&&!u?"hidden":void 0},nD[N],x,a.props.style),ref:S},B))}))}),iD=rD;function sD(e){return tt("MuiBackdrop",e)}Ye("MuiBackdrop",["root","invisible"]);const oD=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aD=e=>{const{classes:t,invisible:n}=e;return ut({root:["root",n&&"invisible"]},sD,t)},lD=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>_({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),uD=b.forwardRef(function(t,n){var r,i,s;const o=nt({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:h={},slots:m={},TransitionComponent:x=iD,transitionDuration:g}=o,y=se(o,oD),v=_({},o,{component:u,invisible:f}),w=aD(v),S=(r=h.root)!=null?r:d.root;return E.jsx(x,_({in:p,timeout:g},y,{children:E.jsx(lD,_({"aria-hidden":!0},S,{as:(i=(s=m.root)!=null?s:c.Root)!=null?i:u,className:re(w.root,l,S==null?void 0:S.className),ownerState:_({},v,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))}),cD=uD,dD=Ye("MuiBox",["root"]),fD=dD,pD=_0(),hD=q4({themeId:bs,defaultTheme:pD,defaultClassName:fD.root,generateClassName:h0.generate}),Z=hD;function mD(e){return tt("MuiCard",e)}Ye("MuiCard",["root"]);const gD=["className","raised"],vD=e=>{const{classes:t}=e;return ut({root:["root"]},mD,t)},yD=me(jl,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),xD=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:i,raised:s=!1}=r,o=se(r,gD),a=_({},r,{raised:s}),l=vD(a);return E.jsx(yD,_({className:re(l.root,i),elevation:s?8:void 0,ref:n,ownerState:a},o))}),wD=xD;function bD(e){return tt("MuiCardMedia",e)}Ye("MuiCardMedia",["root","media","img"]);const SD=["children","className","component","image","src","style"],ED=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ut({root:["root",n&&"media",r&&"img"]},bD,t)},PD=me("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>_({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),CD=["video","audio","picture","iframe","img"],TD=["picture","img"],AD=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardMedia"}),{children:i,className:s,component:o="div",image:a,src:l,style:u}=r,c=se(r,SD),d=CD.indexOf(o)!==-1,f=!d&&a?_({backgroundImage:`url("${a}")`},u):u,p=_({},r,{component:o,isMediaComponent:d,isImageComponent:TD.indexOf(o)!==-1}),h=ED(p);return E.jsx(PD,_({className:re(h.root,s),as:o,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:p,src:d?a||l:void 0},c,{children:i}))}),kD=AD;function MD(e){return tt("MuiCircularProgress",e)}Ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const OD=["className","color","disableShrink","size","style","thickness","value","variant"];let np=e=>e,uw,cw,dw,fw;const Fr=44,RD=na(uw||(uw=np` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),_D=na(cw||(cw=np` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),ID=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${Q(r)}`],svg:["svg"],circle:["circle",`circle${Q(n)}`,i&&"circleDisableShrink"]};return ut(s,MD,t)},LD=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Q(n.color)}`]]}})(({ownerState:e,theme:t})=>_({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Xf(dw||(dw=np` - animation: ${0} 1.4s linear infinite; - `),RD)),jD=me("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),DD=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Q(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>_({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xf(fw||(fw=np` - animation: ${0} 1.4s ease-in-out infinite; - `),_D)),ND=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:o=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=se(r,OD),p=_({},r,{color:s,disableShrink:o,size:a,thickness:u,value:c,variant:d}),h=ID(p),m={},x={},g={};if(d==="determinate"){const y=2*Math.PI*((Fr-u)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,x.transform="rotate(-90deg)"}return E.jsx(LD,_({className:re(h.root,i),style:_({width:a,height:a},x,l),ownerState:p,ref:n,role:"progressbar"},g,f,{children:E.jsx(jD,{className:h.svg,ownerState:p,viewBox:`${Fr/2} ${Fr/2} ${Fr} ${Fr}`,children:E.jsx(DD,{className:h.circle,style:m,ownerState:p,cx:Fr,cy:Fr,r:(Fr-u)/2,fill:"none",strokeWidth:u})})}))}),FD=ND,$D=(e,t)=>_({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),zD=e=>_({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),VD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,a])=>{var l;r[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=_({html:$D(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:_({margin:0},zD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(i=[i,s]),i};function BD(e){const t=nt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return E.jsxs(b.Fragment,{children:[E.jsx(Wj,{styles:i=>VD(i,r)}),n]})}function UD(e){return tt("MuiModal",e)}Ye("MuiModal",["root","hidden","backdrop"]);const WD=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],HD=e=>{const{open:t,exited:n,classes:r}=e;return ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UD,r)},GD=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>_({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),KD=me(cD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qD=b.forwardRef(function(t,n){var r,i,s,o,a,l;const u=nt({name:"MuiModal",props:t}),{BackdropComponent:c=KD,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:x,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:T=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:A=!1,onBackdropClick:R,open:I,slotProps:L,slots:N}=u,B=se(u,WD),z=_({},u,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:T,disableScrollLock:C,hideBackdrop:k,keepMounted:A}),{getRootProps:q,getBackdropProps:O,getTransitionProps:j,portalRef:V,isTopModal:K,exited:ne,hasTransition:Ze}=Lj(_({},z,{rootRef:n})),ge=_({},z,{exited:ne}),dt=HD(ge),ie={};if(h.props.tabIndex===void 0&&(ie.tabIndex="-1"),Ze){const{onEnter:yt,onExited:sn}=j();ie.onEnter=yt,ie.onExited=sn}const U=(r=(i=N==null?void 0:N.root)!=null?i:g.Root)!=null?r:GD,ae=(s=(o=N==null?void 0:N.backdrop)!=null?o:g.Backdrop)!=null?s:c,fe=(a=L==null?void 0:L.root)!=null?a:y.root,Me=(l=L==null?void 0:L.backdrop)!=null?l:y.backdrop,De=Yx({elementType:U,externalSlotProps:fe,externalForwardedProps:B,getSlotProps:q,additionalProps:{ref:n,as:x},ownerState:ge,className:re(f,fe==null?void 0:fe.className,dt==null?void 0:dt.root,!ge.open&&ge.exited&&(dt==null?void 0:dt.hidden))}),rt=Yx({elementType:ae,externalSlotProps:Me,additionalProps:d,getSlotProps:yt=>O(_({},yt,{onClick:sn=>{R&&R(sn),yt!=null&&yt.onClick&&yt.onClick(sn)}})),className:re(Me==null?void 0:Me.className,d==null?void 0:d.className,dt==null?void 0:dt.backdrop),ownerState:ge});return!A&&!I&&(!Ze||ne)?null:E.jsx(Cj,{ref:V,container:m,disablePortal:P,children:E.jsxs(U,_({},De,{children:[!k&&c?E.jsx(ae,_({},rt)):null,E.jsx(Ej,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:T,isEnabled:K,open:I,children:b.cloneElement(h,ie)})]}))})}),QD=qD;function XD(e){return tt("MuiDivider",e)}Ye("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const YD=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZD=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:o,textAlign:a,variant:l}=e;return ut({root:["root",t&&"absolute",l,s&&"light",o==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",a==="right"&&o!=="vertical"&&"textAlignRight",a==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},XD,r)},JD=me("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>_({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>_({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>_({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>_({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>_({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),eN=me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>_({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jT=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:o,component:a=s?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,h=se(r,YD),m=_({},r,{absolute:i,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:p}),x=ZD(m);return E.jsx(JD,_({as:a,className:re(x.root,o),role:d,ref:n,ownerState:m},h,{children:s?E.jsx(eN,{className:x.wrapper,ownerState:m,children:s}):null}))});jT.muiSkipListHighlight=!0;const j0=jT,tN=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nN(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),s=ea(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=s.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${s.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${s.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function rN(e){return typeof e=="function"?e():e}function ic(e,t,n){const r=rN(n),i=nN(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const iN=b.forwardRef(function(t,n){const r=ep(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,container:u,direction:c="down",easing:d=i,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:x,onExited:g,onExiting:y,style:v,timeout:w=s,TransitionComponent:S=MT}=t,P=se(t,tN),T=b.useRef(null),C=Pn(l.ref,T,n),k=O=>j=>{O&&(j===void 0?O(T.current):O(T.current,j))},A=k((O,j)=>{ic(c,O,u),OT(O),p&&p(O,j)}),R=k((O,j)=>{const V=Sd({timeout:w,style:v,easing:d},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",_({},V)),O.style.transition=r.transitions.create("transform",_({},V)),O.style.webkitTransform="none",O.style.transform="none",m&&m(O,j)}),I=k(h),L=k(y),N=k(O=>{const j=Sd({timeout:w,style:v,easing:d},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",j),O.style.transition=r.transitions.create("transform",j),ic(c,O,u),x&&x(O)}),B=k(O=>{O.style.webkitTransition="",O.style.transition="",g&&g(O)}),z=O=>{o&&o(T.current,O)},q=b.useCallback(()=>{T.current&&ic(c,T.current,u)},[c,u]);return b.useEffect(()=>{if(f||c==="down"||c==="right")return;const O=DC(()=>{T.current&&ic(c,T.current,u)}),j=ea(T.current);return j.addEventListener("resize",O),()=>{O.clear(),j.removeEventListener("resize",O)}},[c,f,u]),b.useEffect(()=>{f||q()},[f,q]),E.jsx(S,_({nodeRef:T,onEnter:A,onEntered:I,onEntering:R,onExit:N,onExited:B,onExiting:L,addEndListener:z,appear:a,in:f,timeout:w},P,{children:(O,j)=>b.cloneElement(l,_({ref:C,style:_({visibility:O==="exited"&&!f?"hidden":void 0},v,l.props.style)},j))}))}),sN=iN;function oN(e){return tt("MuiDrawer",e)}Ye("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const aN=["BackdropProps"],lN=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],DT=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},uN=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Q(n)}`,r!=="temporary"&&`paperAnchorDocked${Q(n)}`]};return ut(i,oN,t)},cN=me(QD,{name:"MuiDrawer",slot:"Root",overridesResolver:DT})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pw=me("div",{shouldForwardProp:bT,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DT})({flex:"0 0 auto"}),dN=me(jl,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Q(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Q(n.anchor)}`]]}})(({theme:e,ownerState:t})=>_({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),NT={left:"right",right:"left",top:"down",bottom:"up"};function fN(e){return["left","right"].indexOf(e)!==-1}function pN({direction:e},t){return e==="rtl"&&fN(t)?NT[t]:t}const hN=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),i=ep(),s=sL(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:x={},SlideProps:g,TransitionComponent:y=sN,transitionDuration:v=o,variant:w="temporary"}=r,S=se(r.ModalProps,aN),P=se(r,lN),T=b.useRef(!1);b.useEffect(()=>{T.current=!0},[]);const C=pN({direction:s?"rtl":"ltr"},a),A=_({},r,{anchor:a,elevation:d,open:m,variant:w},P),R=uN(A),I=E.jsx(dN,_({elevation:w==="temporary"?d:0,square:!0},x,{className:re(R.paper,x.className),ownerState:A,children:u}));if(w==="permanent")return E.jsx(pw,_({className:re(R.root,R.docked,c),ownerState:A,ref:n},P,{children:I}));const L=E.jsx(y,_({in:m,direction:NT[C],timeout:v,appear:T.current},g,{children:I}));return w==="persistent"?E.jsx(pw,_({className:re(R.root,R.docked,c),ownerState:A,ref:n},P,{children:L})):E.jsx(cN,_({BackdropProps:_({},l,p,{transitionDuration:v}),className:re(R.root,R.modal,c),open:m,ownerState:A,onClose:h,hideBackdrop:f,ref:n},P,S,{children:L}))}),mN=hN,gN=b.createContext(),hw=gN;function vN(e){return tt("MuiGrid",e)}const yN=[0,1,2,3,4,5,6,7,8,9,10],xN=["column-reverse","column","row-reverse","row"],wN=["nowrap","wrap-reverse","wrap"],Sa=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Dl=Ye("MuiGrid",["root","container","item","zeroMinWidth",...yN.map(e=>`spacing-xs-${e}`),...xN.map(e=>`direction-xs-${e}`),...wN.map(e=>`wrap-xs-${e}`),...Sa.map(e=>`grid-xs-${e}`),...Sa.map(e=>`grid-sm-${e}`),...Sa.map(e=>`grid-md-${e}`),...Sa.map(e=>`grid-lg-${e}`),...Sa.map(e=>`grid-xl-${e}`)]),bN=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function go(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function SN({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let s={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=Rf({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[i]:o;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${go(c)})`;u={flexBasis:d,maxWidth:d}}}s=_({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,s):r[e.breakpoints.up(i)]=s,r},{})}function EN({theme:e,ownerState:t}){const n=Rf({values:t.direction,breakpoints:e.breakpoints.values});return Cn({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Dl.item}`]={maxWidth:"none"}),i})}function FT({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,s)=>e[i]-e[s]);return r.slice(0,r.indexOf(n))}function PN({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const s=Rf({values:r,breakpoints:e.breakpoints.values});let o;typeof s=="object"&&(o=FT({breakpoints:e.breakpoints.values,values:s})),i=Cn({theme:e},s,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${go(c)}`,[`& > .${Dl.item}`]:{paddingTop:go(c)}}:(u=o)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Dl.item}`]:{paddingTop:0}}})}return i}function CN({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const s=Rf({values:r,breakpoints:e.breakpoints.values});let o;typeof s=="object"&&(o=FT({breakpoints:e.breakpoints.values,values:s})),i=Cn({theme:e},s,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${go(c)})`,marginLeft:`-${go(c)}`,[`& > .${Dl.item}`]:{paddingLeft:go(c)}}:(u=o)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Dl.item}`]:{paddingLeft:0}}})}return i}function TN(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const s=e[i];Number(s)>0&&r.push(n[`spacing-${i}-${String(s)}`])}),r}const AN=me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:s,spacing:o,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=TN(o,u,t));const d=[];return u.forEach(f=>{const p=n[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>_({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),EN,PN,CN,SN);function kN(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const s=`spacing-${r}-${String(i)}`;n.push(s)}}),n}const MN=e=>{const{classes:t,container:n,direction:r,item:i,spacing:s,wrap:o,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=kN(s,l));const c=[];l.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return ut(d,vN,t)},ON=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiGrid"}),{breakpoints:i}=ep(),s=Zf(r),{className:o,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:m="wrap",zeroMinWidth:x=!1}=s,g=se(s,bN),y=p||h,v=l||h,w=b.useContext(hw),S=c?a||12:w,P={},T=_({},g);i.keys.forEach(A=>{g[A]!=null&&(P[A]=g[A],delete T[A])});const C=_({},s,{columns:S,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:v,wrap:m,zeroMinWidth:x,spacing:h},P,{breakpoints:i.keys}),k=MN(C);return E.jsx(hw.Provider,{value:S,children:E.jsx(AN,_({ownerState:C,className:re(k.root,o),as:u,ref:n},T))})}),Un=ON;function RN(e){return tt("MuiLink",e)}const _N=Ye("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),IN=_N,$T={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LN=e=>$T[e]||e,jN=({theme:e,ownerState:t})=>{const n=LN(t.color),r=Bo(e,`palette.${n}`,!1)||t.color,i=Bo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Pt(r,.4)},DN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],NN=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,s={root:["root",`underline${Q(i)}`,n==="button"&&"button",r&&"focusVisible"]};return ut(s,RN,t)},FN=me(Se,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Q(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>_({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&_({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jN({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${IN.focusVisible}`]:{outline:"auto"}})),$N=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLink"}),{className:i,color:s="primary",component:o="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:f}=r,p=se(r,DN),{isFocusVisibleRef:h,onBlur:m,onFocus:x,ref:g}=p0(),[y,v]=b.useState(!1),w=Pn(n,g),S=k=>{m(k),h.current===!1&&v(!1),a&&a(k)},P=k=>{x(k),h.current===!0&&v(!0),l&&l(k)},T=_({},r,{color:s,component:o,focusVisible:y,underline:c,variant:d}),C=NN(T);return E.jsx(FN,_({color:s,className:re(C.root,i),classes:u,component:o,onBlur:S,onFocus:P,ref:w,ownerState:T,variant:d,sx:[...Object.keys($T).includes(s)?[]:[{color:s}],...Array.isArray(f)?f:[f]]},p))}),yg=$N;function zN(e){return tt("MuiToolbar",e)}Ye("MuiToolbar",["root","gutters","regular","dense"]);const VN=["className","component","disableGutters","variant"],BN=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ut({root:["root",!n&&"gutters",r]},zN,t)},UN=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>_({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),WN=b.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToolbar"}),{className:i,component:s="div",disableGutters:o=!1,variant:a="regular"}=r,l=se(r,VN),u=_({},r,{component:s,disableGutters:o,variant:a}),c=BN(u);return E.jsx(UN,_({as:s,className:re(c.root,i),ref:n,ownerState:u},l))}),HN=WN;function zT(e){const[t,n]=H.useState(!1),r=()=>{window.localStorage.setItem("events-visible","false"),n(!1)};return H.useEffect(()=>{window.localStorage.getItem("events-visible")==null&&window.localStorage.setItem("events-visible","true");const i=window.localStorage.getItem("events-visible");n(i!=null?JSON.parse(i):!0)},[]),E.jsxs(Z,{sx:{background:"#16F4D0",color:"#000000",fontWeight:600,display:t?"flex":"none",justifyContent:"center",alignItems:"center",height:"30px"},children:[E.jsx(Z,{sx:{flexGrow:1,display:"flex",justifyContent:"center"},children:e.events.map(i=>E.jsx(yg,{underline:"hover",href:i.href,color:"inherit",children:i.title},`${i.title}::${i.href}`))}),E.jsx(Ed,{"data-testid":"events-close-button",onClick:r,sx:{color:"inherit",width:"25px",height:"25px",marginRight:"5px"},children:E.jsx(ST,{sx:{color:"inherit"}})})]})}var D0={},gh={};const GN=_r(V4);var mw;function KN(){return mw||(mw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=GN}(gh)),gh}var qN=k0;Object.defineProperty(D0,"__esModule",{value:!0});var VT=D0.default=void 0,QN=qN(KN()),XN=E;VT=D0.default=(0,QN.default)((0,XN.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Cd(e){const[t,n]=H.useState(!1);return E.jsx(Z,{sx:{...e.sx,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:E.jsxs(HN,{sx:{background:e.translucent?"rgba(67,86,127, 0.5)":"transparent",backdropFilter:e.translucent?"blur(20px)":"unset",margin:"5px 0px",borderRadius:"41px",paddingLeft:"40px !important",paddingRight:"40px !important",boxShadow:e.translucent?3:0,width:e.fullWidth?"100%":"90%",height:"80px",userSelect:"none"},children:[E.jsx(Z,{sx:{height:"65%",display:"flex",flexGrow:1},children:E.jsxs(j5,{to:"/",style:{display:"flex",alignItems:"center",textDecoration:"none",color:"white"},children:[E.jsx("img",{alt:"adc-logo",src:"/logo256.png",style:{maxHeight:"100%",margin:"10px 0px 10px 0px"}}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:"bold",marginLeft:"15px"},children:"App Dev Club"})]})}),E.jsx(Z,{sx:{display:{xs:"none",md:"flex"}},children:e.links.map(r=>E.jsx(yg,{href:r.anchor,underline:"hover",sx:{fontSize:"1rem",fontWeight:600,marginLeft:"15px",marginRight:"10px",color:"inherit",":hover":{cursor:"pointer"}},children:r.title},`${r.title}::${r.anchor}`))}),E.jsx(Ed,{onClick:()=>{n(!0)},sx:{color:"inherit",display:{xs:"flex",md:"none"}},children:E.jsx(VT,{sx:{fontSize:"1.8rem"}})}),E.jsxs(mN,{anchor:"right",open:t,onClose:()=>{n(!1)},PaperProps:{sx:{width:"180px",bgcolor:"background.default",padding:"25px",backgroundImage:"unset"}},children:[E.jsx(Ed,{onClick:()=>{n(!1)},sx:{alignSelf:"end",maxWidth:"40px",marginBottom:"10px"},children:E.jsx(ST,{})}),e.links.map((r,i)=>E.jsx(yg,{underline:"hover",color:"inherit",sx:{fontSize:"1.3rem",marginTop:"7px",marginBottom:"7px"},children:r.title},i))]})]})})}var BT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gw=H.createContext&&H.createContext(BT),YN=["attr","size","title"];function ZN(e,t){if(e==null)return{};var n=JN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;tH.createElement(t.tag,Ad({key:n},t.attr),UT(t.child)))}function rF(e){return t=>H.createElement(iF,Td({attr:Ad({},e.attr)},t),UT(e.child))}function iF(e){var t=n=>{var{attr:r,size:i,title:s}=e,o=ZN(e,YN),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),H.createElement("svg",Td({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ad(Ad({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&H.createElement("title",null,s),e.children)};return gw!==void 0?H.createElement(gw.Consumer,null,n=>t(n)):t(BT)}function sF(e){return rF({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.593 10.971c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055.011-.581-.427-1.055-.968-1.055zm3.468 0c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055-.001-.581-.427-1.055-.968-1.055z"},child:[]},{tag:"path",attr:{d:"M17.678 3H4.947A1.952 1.952 0 0 0 3 4.957v12.844c0 1.083.874 1.957 1.947 1.957H15.72l-.505-1.759 1.217 1.131 1.149 1.064L19.625 22V4.957A1.952 1.952 0 0 0 17.678 3zM14.01 15.407s-.342-.408-.626-.771c1.244-.352 1.719-1.13 1.719-1.13-.39.256-.76.438-1.093.562a6.679 6.679 0 0 1-3.838.398 7.944 7.944 0 0 1-1.396-.41 5.402 5.402 0 0 1-.693-.321c-.029-.021-.057-.029-.085-.048a.117.117 0 0 1-.039-.03c-.171-.094-.266-.16-.266-.16s.456.76 1.663 1.121c-.285.36-.637.789-.637.789-2.099-.067-2.896-1.444-2.896-1.444 0-3.059 1.368-5.538 1.368-5.538 1.368-1.027 2.669-.998 2.669-.998l.095.114c-1.71.495-2.499 1.245-2.499 1.245s.21-.114.561-.275c1.016-.446 1.823-.57 2.156-.599.057-.009.105-.019.162-.019a7.756 7.756 0 0 1 4.778.893s-.751-.712-2.366-1.206l.133-.152s1.302-.029 2.669.998c0 0 1.368 2.479 1.368 5.538 0-.001-.807 1.376-2.907 1.443z"},child:[]}]})(e)}function WT(e){const n=new Date().getFullYear();return E.jsxs(Z,{sx:{...e.sx,display:"flex",width:"100%",height:"75px",padding:"30px",alignItems:"center",justifyContent:"center"},children:[E.jsxs(Se,{style:{fontSize:"18px",flexGrow:1},children:["© ",n," App Dev Club"]}),E.jsx("img",{src:"../logo256.png",style:{maxHeight:"50px"}}),E.jsxs(Z,{sx:{display:"flex",gap:"10px",flexGrow:1,justifyContent:"end"},children:[E.jsx(W4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(H4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(U4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(B4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(sF,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}})]})]})}const yw=[{title:"About",anchor:"#about"},{title:"Projects",anchor:"#projects"},{title:"Our Team",anchor:"#team"},{title:"Sponsors",anchor:"#sponsors"},{title:"Highlights",anchor:"#highlights"},{title:"Contact Us",anchor:"#contact"}];function oF(){const[e,t]=H.useState(-120),[n]=H.useState([{title:"General Body Meeting, 3/25 8pm @ Iribe"}]);return H.useEffect(()=>{function r(){const i=window.scrollY;t(Math.min(i-120,0))}return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[]),E.jsxs(E.Fragment,{children:[n.length<1?E.jsx(E.Fragment,{}):E.jsx(zT,{events:n}),E.jsx(Cd,{links:yw,fullWidth:!0,sx:{backgroundColor:"transparent"}}),E.jsx(Cd,{links:yw,translucent:!0,sx:{zIndex:2,marginTop:"25px",position:"fixed",top:`${e}px`,left:"0px"}}),E.jsx(E5,{}),E.jsx(Z,{sx:{position:"relative"},children:E.jsx(WT,{})})]})}const aF=_0({palette:{mode:"dark",text:{primary:"#FFFFFF"},background:{default:"#14213D"}},typography:{fontFamily:"Inter, sans-serif"}}),HT={baseTheme:aF};function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&typeof ae>"u"){var Me=fe?p:f;U=Me.left+Me.width/2,ae=Me.top+Me.height/2}var De=0,rt=0,yt=f,sn=yt.top,$i=yt.left,xt=yt.width,wt=yt.height,Mn;if(fe){var Rs=p,Bi=Rs.top,Dr=Rs.left,Ip=Rs.width,Lu=Rs.height,Lp=$i-Dr,ee=sn-Bi,ju=xt/2+Lp,jp=wt/2+ee,Du=U-Dr,n1=ae-Bi;rt=l.rotateYMax*(Du-ju)/(Ip-xt/2)*-1,De=l.rotateXMax*(n1-jp)/(Lu-wt/2),Mn=U-$i+"px "+(ae-sn)+"px"}else{var Os=xt/2,zi=wt/2,Vi=U-$i,_p=ae-sn;rt=l.rotateYMax*(Vi-Os)/(xt/2)*-1,De=l.rotateXMax*(_p-zi)/(wt/2)}De=Math.min(Math.max(-De,-l.rotateXMax),l.rotateXMax),l.rotateXInvert&&(De=-De),rt=Math.min(Math.max(-rt,-l.rotateYMax),l.rotateYMax),l.rotateYInvert&&(rt=-rt);var ca=De/l.rotateXMax*100,da=rt/l.rotateYMax*100,sM=(fe?da/100*l.stretchX:0)*(l.rotateYInvert?-1:1),oM=(fe?ca/100*l.stretchY:0)*(l.rotateXInvert?-1:1),aM=fe?Math.max(Math.abs(ca),Math.abs(da))/100*l.stretchZ:0;C(u,"translate3d("+sM+"%, "+-oM+"%, "+-aM+"px) rotateX("+De+"deg) rotateY("+rt+"deg)"),Mn&&l.commonOrigin&&A(u,Mn),m&&(P(m,l.duration+"ms"),T(m,"ease-out"),C(m,"translate3d("+-da*.25+"%, "+ca*.25+"%, 0)"),k(m,Math.max(Math.abs(ca),Math.abs(da))/100)),B({rotateXPercentage:ca,rotateYPercentage:da,duration:l.duration+"ms",easeOut:!0}),typeof l.onRotate=="function"&&l.onRotate(De,rt)},q=function(){v.push(function(){return n.classList.add("atropos-active")}),P(u,l.duration+"ms"),T(u,"ease-out"),C(c,"translate3d(0,0, "+l.activeOffset+"px)"),P(c,l.duration+"ms"),T(c,"ease-out"),h&&(P(h,l.duration+"ms"),T(h,"ease-out")),a.isActive=!0},O=function(U){if(x=void 0,!(U.type==="pointerdown"&&U.pointerType==="mouse")&&!(U.type==="pointerenter"&&U.pointerType!=="mouse")){if(U.type==="pointerdown"&&U.preventDefault(),g=U.clientX,y=U.clientY,l.alwaysActive){f=void 0,p=void 0;return}q(),typeof l.onEnter=="function"&&l.onEnter()}},j=function(U){x===!1&&U.cancelable&&U.preventDefault()},V=function(U){if(!(!l.rotate||!a.isActive)){if(U.pointerType!=="mouse"){if(!l.rotateTouch)return;U.preventDefault()}var ae=U.clientX,fe=U.clientY,Me=ae-g,De=fe-y;if(typeof l.rotateTouch=="string"&&(Me!==0||De!==0)&&typeof x>"u"){if(Me*Me+De*De>=25){var rt=Math.atan2(Math.abs(De),Math.abs(Me))*180/Math.PI;x=l.rotateTouch==="scroll-y"?rt>45:90-rt>45}x===!1&&(n.classList.add("atropos-rotate-touch"),U.cancelable&&U.preventDefault())}U.pointerType!=="mouse"&&x||z(ae,fe)}},K=function(U){if(f=void 0,p=void 0,!!a.isActive&&!(U&&U.type==="pointerup"&&U.pointerType==="mouse")&&!(U&&U.type==="pointerleave"&&U.pointerType!=="mouse")){if(typeof l.rotateTouch=="string"&&x&&n.classList.remove("atropos-rotate-touch"),l.alwaysActive){z(),typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave();return}v.push(function(){return n.classList.remove("atropos-active")}),P(c,l.duration+"ms"),T(c,""),C(c,"translate3d(0,0, 0px)"),h&&(P(h,l.duration+"ms"),T(h,"")),m&&(P(m,l.duration+"ms"),T(m,""),C(m,"translate3d(0, 0, 0)"),k(m,0)),P(u,l.duration+"ms"),T(u,""),C(u,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),B({duration:l.duration+"ms"}),a.isActive=!1,typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave()}},ne=function(U){var ae=U.target;!r.contains(ae)&&ae!==r&&a.isActive&&K()},Ze=function(){typeof n=="string"&&(n=$r(document,n)),n&&(n.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=$r(document,r)):r=n,o=s?n.parentNode.host:n,Object.assign(a,{el:n}),u=$r(n,".atropos-rotate"),c=$r(n,".atropos-scale"),d=$r(n,".atropos-inner"),n.__atropos__=a))},ge=function(){Ze(),!(!n||!r)&&(l.shadow&&L(),l.highlight&&N(),l.rotateTouch&&(typeof l.rotateTouch=="string"?n.classList.add("atropos-rotate-touch-"+l.rotateTouch):n.classList.add("atropos-rotate-touch")),$r(o,"[data-atropos-opacity]")&&B({opacityOnly:!0}),R(document,"click",ne),R(r,"pointerdown",O),R(r,"pointerenter",O),R(r,"pointermove",V),R(r,"touchmove",j),R(r,"pointerleave",K),R(r,"pointerup",K),R(r,"lostpointercapture",K),l.alwaysActive&&(q(),z()))},dt=function(){a.destroyed=!0,cancelAnimationFrame(w),I(document,"click",ne),I(r,"pointerdown",O),I(r,"pointerenter",O),I(r,"pointermove",V),I(r,"touchmove",j),I(r,"pointerleave",K),I(r,"pointerup",K),I(r,"lostpointercapture",K),delete n.__atropos__};return a.destroy=dt,ge(),a}var fF=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var GT=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],hF=function(t){var n={};return Object.keys(t).forEach(function(r){GT.includes(r)||(n[r]=t[r])}),n},mF=function(t){var n={};return Object.keys(t).forEach(function(r){GT.includes(r)&&(n[r]=t[r])}),n};function gF(e){var t=e.component,n=t===void 0?"div":t,r=e.children,i=e.rootChildren,s=e.scaleChildren,o=e.rotateChildren,a=e.className,l=a===void 0?"":a,u=e.scaleClassName,c=u===void 0?"":u,d=e.rotateClassName,f=d===void 0?"":d,p=e.innerClassName,h=p===void 0?"":p,m=pF(e,fF),x=b.useRef(null),g=b.useRef(null),y=n,v=function(){for(var T=arguments.length,C=new Array(T),k=0;k"u")&&H.createElement("span",{className:"atropos-highlight"})),o,(e.shadow||typeof e.shadow>"u")&&H.createElement("span",{className:"atropos-shadow"})),s),i)}function vF(e){let t=0,n;for(n=0;n>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r}function KT(e){return{sx:{bgcolor:vF(e)},children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`}}var qT={};function yF(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(qT,"__esModule",{value:!0});var Ne=b;function xF(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var zr=xF(Ne);yF(`.rfm-marquee-container { - overflow-x: hidden; - display: flex; - flex-direction: row; - position: relative; - width: var(--width); - transform: var(--transform); -} -.rfm-marquee-container:hover div { - animation-play-state: var(--pause-on-hover); -} -.rfm-marquee-container:active div { - animation-play-state: var(--pause-on-click); -} - -.rfm-overlay { - position: absolute; - width: 100%; - height: 100%; -} -.rfm-overlay::before, .rfm-overlay::after { - background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0)); - content: ""; - height: 100%; - position: absolute; - width: var(--gradient-width); - z-index: 2; - pointer-events: none; - touch-action: none; -} -.rfm-overlay::after { - right: 0; - top: 0; - transform: rotateZ(180deg); -} -.rfm-overlay::before { - left: 0; - top: 0; -} - -.rfm-marquee { - flex: 0 0 auto; - min-width: var(--min-width); - z-index: 1; - display: flex; - flex-direction: row; - align-items: center; - animation: scroll var(--duration) linear var(--delay) var(--iteration-count); - animation-play-state: var(--play); - animation-delay: var(--delay); - animation-direction: var(--direction); -} -@keyframes scroll { - 0% { - transform: translateX(0%); - } - 100% { - transform: translateX(-100%); - } -} - -.rfm-initial-child-container { - flex: 0 0 auto; - display: flex; - min-width: auto; - flex-direction: row; - align-items: center; -} - -.rfm-child { - transform: var(--transform); -}`);const wF=Ne.forwardRef(function({style:t={},className:n="",autoFill:r=!1,play:i=!0,pauseOnHover:s=!1,pauseOnClick:o=!1,direction:a="left",speed:l=50,delay:u=0,loop:c=0,gradient:d=!1,gradientColor:f="white",gradientWidth:p=200,onFinish:h,onCycleComplete:m,onMount:x,children:g},y){const[v,w]=Ne.useState(0),[S,P]=Ne.useState(0),[T,C]=Ne.useState(1),[k,A]=Ne.useState(!1),R=Ne.useRef(null),I=y||R,L=Ne.useRef(null),N=Ne.useCallback(()=>{if(L.current&&I.current){const K=I.current.getBoundingClientRect(),ne=L.current.getBoundingClientRect();let Ze=K.width,ge=ne.width;(a==="up"||a==="down")&&(Ze=K.height,ge=ne.height),C(r&&Ze&&ge&&ge{if(k&&(N(),L.current&&I.current)){const K=new ResizeObserver(()=>N());return K.observe(I.current),K.observe(L.current),()=>{K&&K.disconnect()}}},[N,I,k]),Ne.useEffect(()=>{N()},[N,g]),Ne.useEffect(()=>{A(!0)},[]),Ne.useEffect(()=>{typeof x=="function"&&x()},[]);const B=Ne.useMemo(()=>r?S*T/l:SObject.assign(Object.assign({},t),{"--pause-on-hover":!i||s?"paused":"running","--pause-on-click":!i||s&&!o||o?"paused":"running","--width":a==="up"||a==="down"?"100vh":"100%","--transform":a==="up"?"rotate(-90deg)":a==="down"?"rotate(90deg)":"none"}),[t,i,s,o,a]),q=Ne.useMemo(()=>({"--gradient-color":f,"--gradient-width":typeof p=="number"?`${p}px`:p}),[f,p]),O=Ne.useMemo(()=>({"--play":i?"running":"paused","--direction":a==="left"?"normal":"reverse","--duration":`${B}s`,"--delay":`${u}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":r?"auto":"100%"}),[i,a,B,u,c,r]),j=Ne.useMemo(()=>({"--transform":a==="up"?"rotate(90deg)":a==="down"?"rotate(-90deg)":"none"}),[a]),V=Ne.useCallback(K=>[...Array(Number.isFinite(K)&&K>=0?K:0)].map((ne,Ze)=>zr.default.createElement(Ne.Fragment,{key:Ze},Ne.Children.map(g,ge=>zr.default.createElement("div",{style:j,className:"rfm-child"},ge)))),[j,g]);return k?zr.default.createElement("div",{ref:I,style:z,className:"rfm-marquee-container "+n},d&&zr.default.createElement("div",{style:q,className:"rfm-overlay"}),zr.default.createElement("div",{className:"rfm-marquee",style:O,onAnimationIteration:m,onAnimationEnd:h},zr.default.createElement("div",{className:"rfm-initial-child-container",ref:L},Ne.Children.map(g,K=>zr.default.createElement("div",{style:j,className:"rfm-child"},K))),V(T-1)),zr.default.createElement("div",{className:"rfm-marquee",style:O},V(T))):null});var bF=qT.default=wF;function xw(e){const t=AC(),n=r=>t(`/project/${r._id}`);return e.mobileView?E.jsxs(jl,{elevation:5,sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",flexDirection:"column",gap:"15px",color:"#000000",bgcolor:"#ffffff",maxWidth:"100%",height:"400px",overflow:"hidden"},children:[E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",width:"100%"},children:[E.jsx(Se,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),E.jsx(Se,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description})]}),E.jsx(ww,{autoScroll:!0,members:e.project.members})]}):E.jsx(gF,{highlight:!1,onClick:()=>{n(e.project)},style:{minWidth:"800px",height:"60vh",cursor:"pointer"},children:E.jsx(jl,{sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",gap:"15px",color:"#000000",bgcolor:"#ffffff",width:"100%",height:"100%"},children:E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[E.jsx(Se,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),E.jsx(Se,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description}),E.jsx(ww,{members:e.project.members})]})})})}function ww(e){function t(){return E.jsx(E.Fragment,{children:e.members.map((n,r)=>E.jsx(Uj,{label:`${n.memberInfo.firstName} ${n.memberInfo.lastName}`,variant:"outlined",sx:{color:"black",margin:"5px"},avatar:n.memberInfo.profileUrl?E.jsx(Pd,{src:n.memberInfo.profileUrl}):E.jsx(Pd,{...KT(`${n.memberInfo.firstName} ${n.memberInfo.lastName}`)})},r))})}return e.autoScroll?E.jsx(bF,{children:E.jsx(t,{})}):E.jsx(Z,{sx:{marginTop:"10px",display:"flex",flexWrap:"wrap"},children:E.jsx(t,{})})}function bw(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function N0(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:bw(t[n])&&bw(e[n])&&Object.keys(t[n]).length>0&&N0(e[n],t[n])})}const QT={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Sr(){const e=typeof document<"u"?document:{};return N0(e,QT),e}const SF={document:QT,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function rn(){const e=typeof window<"u"?window:{};return N0(e,SF),e}function EF(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function PF(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function wg(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Md(){return Date.now()}function CF(e){const t=rn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function TF(e,t){t===void 0&&(t="x");const n=rn();let r,i,s;const o=CF(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function sc(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function AF(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ht(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(s)<0);for(let s=0,o=i.length;ss?"next":"prev",c=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,d=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=s+p*(n-s);if(c(h,n)&&(h=n),t.wrapperEl.scrollTo({[r]:h}),c(h,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function F0(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function vr(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Od(e){try{console.warn(e);return}catch{}}function Rd(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:EF(t)),n}function kF(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function MF(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function ci(e,t){return rn().getComputedStyle(e,null).getPropertyValue(t)}function Sw(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function OF(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Ew(e,t,n){const r=rn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let vh;function RF(){const e=rn(),t=Sr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function YT(){return vh||(vh=RF()),vh}let yh;function _F(e){let{userAgent:t}=e===void 0?{}:e;const n=YT(),r=rn(),i=r.navigator.platform,s=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!p&&(o.os="android",o.android=!0),(c||f||d)&&(o.os="ios",o.ios=!0),o}function ZT(e){return e===void 0&&(e={}),yh||(yh=_F(e)),yh}let xh;function IF(){const e=rn(),t=ZT();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),o=s||i&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function LF(){return xh||(xh=IF()),xh}function jF(e){let{swiper:t,on:n,emit:r}=e;const i=rn();let s=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,m=p;d.forEach(x=>{let{contentBoxSize:g,contentRect:y,target:v}=x;v&&v!==t.el||(h=y?y.width:(g[0]||g).inlineSize,m=y?y.height:(g[0]||g).blockSize)}),(h!==f||m!==p)&&a()})}),s.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function DF(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s=[],o=rn(),a=function(c,d){d===void 0&&(d={});const f=o.MutationObserver||o.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const m=function(){i("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});p.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),s.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=OF(t.hostEl);for(let d=0;d{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var NF={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,s=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(u=>{u.apply(r,n)})}),e}};function FF(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(ci(r,"padding-left")||0,10)-parseInt(ci(r,"padding-right")||0,10),n=n-parseInt(ci(r,"padding-top")||0,10)-parseInt(ci(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function $F(){const e=this;function t(A,R){return parseFloat(A.getPropertyValue(e.getDirectionLabel(R))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:s,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=vr(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,y=e.slidesGrid.length;let v=n.spaceBetween,w=-m,S=0,P=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,c.forEach(A=>{o?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(oc(r,"--swiper-centered-offset-before",""),oc(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C;const k=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(A=>typeof n.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A1&&f.push(e.virtualSize-s)}if(l&&n.loop){const A=h[0]+v;if(n.slidesPerGroup>1){const R=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),I=A*n.slidesPerGroup;for(let L=0;L!n.cssMode||n.loop?!0:I!==c.length-1).forEach(R=>{R.style[A]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let A=0;h.forEach(I=>{A+=I+(v||0)}),A-=v;const R=A-s;f=f.map(I=>I<=0?-m:I>R?R+x:I)}if(n.centerInsufficientSlides){let A=0;if(h.forEach(R=>{A+=R+(v||0)}),A-=v,A{f[L]=I-R}),p.forEach((I,L)=>{p[L]=I+R})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){oc(r,"--swiper-centered-offset-before",`${-f[0]}px`),oc(r,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const A=-e.snapGrid[0],R=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+A),e.slidesGrid=e.slidesGrid.map(I=>I+R)}if(d!==u&&e.emit("slidesLengthChange"),f.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const A=`${n.containerModifierClass}backface-hidden`,R=e.el.classList.contains(A);d<=n.maxBackfaceHiddenSlides?R||e.el.classList.add(A):R&&e.el.classList.remove(A)}}function zF(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;st.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(s=0;si?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function VF(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&p<=t.size-t.slidesSizesGrid[l];(p>=0&&p1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),m&&r[l].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-f:f}}function UF(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:o,progressLoop:a}=t;const l=s,u=o;if(r===0)i=0,s=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?a=(m-f)/h:a=(m+h-p)/h,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}const wh=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function WF(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>vr(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(s)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else o?(l=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):l=t[i];l&&(o||(c=MF(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=kF(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{wh(d,d===l,n.slideActiveClass),wh(d,d===c,n.slideNextClass),wh(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}const _c=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},bh=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},bg=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,a=[o-t];a.push(...Array.from({length:t}).map((l,u)=>o+r+u)),e.slides.forEach((l,u)=>{a.includes(l.column)&&bh(e,u)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=s+t;o+=1){const a=(o%n+n)%n;(as)&&bh(e,a)}else for(let o=Math.max(i-t,0);o<=Math.min(s+t,n-1);o+=1)o!==i&&(o>s||o=t[s]&&r=t[s]&&r=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function GF(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:o,snapIndex:a}=t;let l=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=HF(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(i.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===s&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(l);else if(d){const p=t.slides.filter(m=>m.column===l)[0];let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l}),t.initialized&&bg(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function KF(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let s=!1,o;if(i){for(let a=0;al?c=l:r&&eo?a="next":s"u"&&(t=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,o);let x=m+Math.floor((o-m)/s.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const g=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=S&&w=S&&w=S&&(o=v)}if(s.initialized&&o!==d&&(!s.allowSlideNext&&(f?g>s.translate&&g>s.minTranslate():gs.translate&&g>s.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let y;if(o>d?y="next":o0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[v?"scrollLeft":"scrollTop"]=w})):p[v?"scrollLeft":"scrollTop"]=w,S&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return XT({swiper:s,targetPosition:w,side:v?"left":"top"}),!0;p.scrollTo({[v?"left":"top"]:w,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,y),t===0?s.transitionEnd(n,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(w){!s||s.destroyed||w.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,y))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function o6(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let a;if(s){const f=o*i.params.grid.rows;a=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=i.getSlideIndexByData(o);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=l-ap.getAttribute("data-swiper-slide-index")*1===f)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function a6(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:s,animating:o}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function l6(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=s.map(g=>f(g));let m=s[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;s.forEach((y,v)=>{p>=y&&(g=v)}),typeof g<"u"&&(m=s[g>0?g-1:g])}let x=0;if(typeof m<"u"&&(x=o.indexOf(m),x<0&&(x=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(x,e,t,n)}),!0;return r.slideTo(x,e,t,n)}function u6(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function c6(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*r&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function d6(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(vr(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),wg(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(vr(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),wg(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var f6={slideTo:s6,slideToLoop:o6,slideNext:a6,slidePrev:l6,slideReset:u6,slideToClosest:c6,slideToClickedSlide:d6};function p6(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{vr(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},s=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(s?n.grid.rows:1),a=t.slides.length%o!==0,l=s&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?s=l.getSlideIndex(u.filter(L=>L.classList.contains(p.slideActiveClass))[0]):S=s;const P=r==="next"||!r,T=r==="prev"||!r;let C=0,k=0;const A=y?Math.ceil(u.length/p.grid.rows):u.length,I=(y?u[s].column:s)+(h&&typeof i>"u"?-m/2+.5:0);if(I=0;z-=1)u[z].column===B&&v.push(z)}else v.push(A-N-1)}}else if(I+m>A-g){k=Math.max(I-(A-g*2),x);for(let L=0;L{B.column===N&&w.push(z)}):w.push(N)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),T&&v.forEach(L=>{u[L].swiperLoopMoveDOM=!0,f.prepend(u[L]),u[L].swiperLoopMoveDOM=!1}),P&&w.forEach(L=>{u[L].swiperLoopMoveDOM=!0,f.append(u[L]),u[L].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(v.length>0&&T||w.length>0&&P)&&l.slides.forEach((L,N)=>{l.grid.updateSlide(N,L,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(v.length>0&&T){if(typeof t>"u"){const L=l.slidesGrid[S],B=l.slidesGrid[S+C]-L;a?l.setTranslate(l.translate-B):(l.slideTo(S+Math.ceil(C),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else if(i){const L=y?v.length/p.grid.rows:v.length;l.slideTo(l.activeIndex+L,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&P)if(typeof t>"u"){const L=l.slidesGrid[S],B=l.slidesGrid[S-k]-L;a?l.setTranslate(l.translate-B):(l.slideTo(S-k,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else{const L=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-L,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const L={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(N=>{!N.destroyed&&N.params.loop&&N.loopFix({...L,slideTo:N.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...L,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function m6(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var g6={loopCreate:p6,loopFix:h6,loopDestroy:m6};function v6(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function y6(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var x6={setGrabCursor:v6,unsetGrabCursor:y6};function w6(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Sr()||r===rn())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Pw(e,t,n){const r=rn(),{params:i}=e,s=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return s&&(n<=o||n>=r.innerWidth-o)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function b6(e){const t=this,n=Sr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Pw(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=t;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(f?w6(d,l):l.closest(d))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const p=o.currentX,h=o.currentY;if(!Pw(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,i.touchStartTime=Md(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const x=m&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function S6(e){const t=Sr(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(P=>P.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Md());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(ds.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cs.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=d;const f=s.currentX-s.startX,p=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)"u"){let P;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?P>i.touchAngle:90-P>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),m=Math.abs(m)*(o?1:-1)),s.diff=h,h*=i.touchRatio,o&&(h=-h,m=-m);const x=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(P)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let w=!0,S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),h>0?(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**S))):h<0&&(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function E6(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(S=>S.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Md(),f=d-n.touchStartTime;if(t.allowClick){const S=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(S&&S[0]||r.target,S),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Md(),wg(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(o.followFinger?p=l?t.translate:-t.translate:p=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let S=0;S=u[S]&&p=u[S])&&(m=S,x=u[u.length-1]-u[u.length-2])}let g=null,y=null;o.rewind&&(t.isBeginning?y=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(p-u[m])/x,w=mo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:m+w):t.slideTo(m)),t.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?t.slideTo(m+w):y!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:m+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:m))}}function Cw(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function P6(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function C6(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function T6(e){const t=this;_c(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function A6(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const e2=(e,t)=>{const n=Sr(),{params:r,el:i,wrapperEl:s,device:o}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cw,!0):e[u]("observerUpdate",Cw,!0),i[l]("load",e.onLoad,{capture:!0})};function k6(){const e=this,{params:t}=e;e.onTouchStart=b6.bind(e),e.onTouchMove=S6.bind(e),e.onTouchEnd=E6.bind(e),e.onDocumentTouchStart=A6.bind(e),t.cssMode&&(e.onScroll=C6.bind(e)),e.onClick=P6.bind(e),e.onLoad=T6.bind(e),e2(e,"on")}function M6(){e2(this,"off")}var O6={attachEvents:k6,detachEvents:M6};const Tw=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function R6(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||e.originalParams,u=Tw(e,r),c=Tw(e,l),d=e.params.grabCursor,f=l.grabCursor,p=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!f?e.unsetGrabCursor():!d&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const w=r[v]&&r[v].enabled,S=l[v]&&l[v].enabled;w&&!S&&e[v].disable(),!w&&S&&e[v].enable()});const h=l.direction&&l.direction!==r.direction,m=r.loop&&(l.slidesPerView!==r.slidesPerView||h),x=r.loop;h&&n&&e.changeDirection(),Ht(e.params,l);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),n&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&y?(e.loopCreate(t),e.updateSlides()):x&&!y&&e.loopDestroy()),e.emit("breakpoint",l)}function _6(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=rn(),s=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function j6(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,o=L6(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function D6(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var N6={addClasses:j6,removeClasses:D6};function F6(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var $6={checkOverflow:F6},Sg={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function z6(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){Ht(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in s)){Ht(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Ht(t,r)}}const Sh={eventsEmitter:NF,update:qF,translate:e6,transition:i6,slide:f6,loop:g6,grabCursor:x6,events:O6,breakpoints:I6,checkOverflow:$6,classes:N6},Eh={};let $0=class cr{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),s=0;s1){const c=[];return o.querySelectorAll(n.el).forEach(d=>{const f=Ht({},n,{el:d});c.push(new cr(f))}),c}const a=this;a.__swiper__=!0,a.support=YT(),a.device=ZT({userAgent:n.userAgent}),a.browser=LF(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:z6(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Ht({},Sg,l);return a.params=Ht({},u,Eh,n),a.originalParams=Ht({},a.params),a.passedParams=Ht({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=vr(n,`.${r.slideClass}, swiper-slide`),s=Sw(i[0]);return Sw(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=vr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=s[u]?Math.ceil(s[u].swiperSlideSize):0,f;for(let p=u+1;pl&&(f=!0));for(let p=u-1;p>=0;p-=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,c+=1,d>l&&(f=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)o[u]-o[d]{o.complete&&_c(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(o.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):vr(r,i())[0];return!o&&n.params.createElements&&(o=Rd("div",n.params.wrapperClass),r.append(o),vr(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ci(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ci(r,"direction")==="rtl"),wrongRTL:ci(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?_c(n,s):s.addEventListener("load",o=>{_c(n,o.target)})}),bg(n),n.initialized=!0,bg(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:s,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,PF(r)),r.destroyed=!0),null}static extendDefaults(t){Ht(Eh,t)}static get extendedDefaults(){return Eh}static get defaults(){return Sg}static installModule(t){cr.prototype.__modules__||(cr.prototype.__modules__=[]);const n=cr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>cr.installModule(n)),cr):(cr.installModule(t),cr)}};Object.keys(Sh).forEach(e=>{Object.keys(Sh[e]).forEach(t=>{$0.prototype[t]=Sh[e][t]})});$0.use([jF,DF]);const t2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ss(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function vo(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ss(t[r])&&Ss(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:vo(e[r],t[r]):e[r]=t[r]})}function n2(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function r2(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function i2(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function s2(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function V6(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function B6(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:o,scrollbarEl:a,paginationEl:l}=e;const u=i.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:c,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:m}=t;let x,g,y,v,w,S,P,T;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(v=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const C=k=>{t[k]&&(t[k].destroy(),k==="navigation"?(t.isElement&&(t[k].prevEl.remove(),t[k].nextEl.remove()),c[k].prevEl=void 0,c[k].nextEl=void 0,t[k].prevEl=void 0,t[k].nextEl=void 0):(t.isElement&&t[k].el.remove(),c[k].el=void 0,t[k].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?S=!0:!c.loop&&r.loop?P=!0:T=!0),u.forEach(k=>{if(Ss(c[k])&&Ss(r[k]))Object.assign(c[k],r[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in r[k]&&!r[k].enabled&&C(k);else{const A=r[k];(A===!0||A===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?A===!1&&C(k):c[k]=r[k]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&h&&c.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(n&&(h.slides=n),h.update(!0)),i.includes("children")&&n&&c.loop&&(T=!0),x&&m.init()&&m.update(!0),g&&(t.controller.control=c.controller.control),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),v&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),w&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),s&&(c.navigation.nextEl=s),o&&(c.navigation.prevEl=o),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(S||T)&&t.loopDestroy(),(P||T)&&t.loopCreate(),t.update()}function U6(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};vo(n,Sg),n._emitClasses=!0,n.init=!1;const s={},o=t2.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(o.indexOf(l)>=0?Ss(e[l])?(n[l]={},i[l]={},vo(n[l],e[l]),vo(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:s,events:r}}function W6(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:s,scrollbarEl:o,swiper:a}=e;n2(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),r2(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),i2(t)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(n)}function H6(e,t,n,r,i){const s=[];if(!t)return s;const o=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return t2.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Ss(e[l])&&Ss(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?o(l):(u.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}),c.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}))}else e[l]!==t[l]&&o(l)}),s}const G6=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o2(n)?t.push(n):n.props&&n.props.children&&a2(n.props.children).forEach(r=>t.push(r))}),t}function K6(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return H.Children.toArray(e).forEach(r=>{if(o2(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=a2(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function q6(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:o}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=s&&c<=o&&u.push(t[r(c)]);return u.map((c,d)=>H.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function Za(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const Aw=b.createContext(null),Q6=b.createContext(null),l2=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:o,...a}=e===void 0?{}:e,l=!1;const[u,c]=b.useState("swiper"),[d,f]=b.useState(null),[p,h]=b.useState(!1),m=b.useRef(!1),x=b.useRef(null),g=b.useRef(null),y=b.useRef(null),v=b.useRef(null),w=b.useRef(null),S=b.useRef(null),P=b.useRef(null),T=b.useRef(null),{params:C,passedParams:k,rest:A,events:R}=U6(a),{slides:I,slots:L}=K6(s),N=()=>{h(!p)};Object.assign(C.on,{_containerClasses(j,V){c(V)}});const B=()=>{Object.assign(C.on,R),l=!0;const j={...C};if(delete j.wrapperClass,g.current=new $0(j),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=I;const V={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};vo(g.current.params.virtual,V),vo(g.current.originalParams.virtual,V)}};x.current||B(),g.current&&g.current.on("_beforeBreakpoint",N);const z=()=>{l||!R||!g.current||Object.keys(R).forEach(j=>{g.current.on(j,R[j])})},q=()=>{!R||!g.current||Object.keys(R).forEach(j=>{g.current.off(j,R[j])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",N)}),b.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),Za(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&B(),W6({el:x.current,nextEl:w.current,prevEl:S.current,paginationEl:P.current,scrollbarEl:T.current,swiper:g.current},C),o&&!g.current.destroyed&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Za(()=>{z();const j=H6(k,y.current,I,v.current,V=>V.key);return y.current=k,v.current=I,j.length&&g.current&&!g.current.destroyed&&B6({swiper:g.current,slides:I,passedParams:k,changedParams:j,nextEl:w.current,prevEl:S.current,scrollbarEl:T.current,paginationEl:P.current}),()=>{q()}}),Za(()=>{G6(g.current)},[d]);function O(){return C.virtual?q6(g.current,I,d):I.map((j,V)=>H.cloneElement(j,{swiper:g.current,swiperSlideIndex:V}))}return H.createElement(r,_d({ref:x,className:s2(`${u}${n?` ${n}`:""}`)},A),H.createElement(Q6.Provider,{value:g.current},L["container-start"],H.createElement(i,{className:V6(C.wrapperClass)},L["wrapper-start"],O(),L["wrapper-end"]),n2(C)&&H.createElement(H.Fragment,null,H.createElement("div",{ref:S,className:"swiper-button-prev"}),H.createElement("div",{ref:w,className:"swiper-button-next"})),i2(C)&&H.createElement("div",{ref:T,className:"swiper-scrollbar"}),r2(C)&&H.createElement("div",{ref:P,className:"swiper-pagination"}),L["container-end"]))});l2.displayName="Swiper";const u2=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=b.useRef(null),[f,p]=b.useState("swiper-slide"),[h,m]=b.useState(!1);function x(w,S,P){S===d.current&&p(P)}Za(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!s)){if(s.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return s.on("_slideClass",x),()=>{s&&s.off("_slideClass",x)}}}),Za(()=>{s&&d.current&&!s.destroyed&&p(s.getSlideClasses(d.current))},[s]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof r=="function"?r(g):r,v=()=>{m(!0)};return H.createElement(n,_d({ref:d,className:s2(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:v},c),o&&H.createElement(Aw.Provider,{value:g},H.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},y(),a&&!h&&H.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&H.createElement(Aw.Provider,{value:g},y(),a&&!h&&H.createElement("div",{className:"swiper-lazy-preloader"})))});u2.displayName="SwiperSlide";function X6(e){let{swiper:t,extendParams:n,on:r,emit:i,params:s}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,d=new Date().getTime(),f,p,h,m,x,g,y;function v(O){!t||t.destroyed||!t.wrapperEl||O.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!y&&A())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?f=!0:f&&(u=c,f=!1);const O=t.autoplay.paused?c:d+u-new Date().getTime();t.autoplay.timeLeft=O,i("autoplayTimeLeft",O,O/l),a=requestAnimationFrame(()=>{w()})},S=()=>{let O;return t.virtual&&t.params.virtual.enabled?O=t.slides.filter(V=>V.classList.contains("swiper-slide-active"))[0]:O=t.slides[t.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},P=O=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let j=typeof O>"u"?t.params.autoplay.delay:O;l=t.params.autoplay.delay,u=t.params.autoplay.delay;const V=S();!Number.isNaN(V)&&V>0&&typeof O>"u"&&(j=V,l=V,u=V),c=j;const K=t.params.speed,ne=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,K,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,K,!0,!0),i("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return j>0?(clearTimeout(o),o=setTimeout(()=>{ne()},j)):requestAnimationFrame(()=>{ne()}),j},T=()=>{d=new Date().getTime(),t.autoplay.running=!0,P(),i("autoplayStart")},C=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},k=(O,j)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),O||(g=!0);const V=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):A()};if(t.autoplay.paused=!0,j){x&&(c=t.params.autoplay.delay),x=!1,V();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),V())},A=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),g?(g=!1,P(c)):P(),t.autoplay.paused=!1,i("autoplayResume"))},R=()=>{if(t.destroyed||!t.autoplay.running)return;const O=Sr();O.visibilityState==="hidden"&&(g=!0,k(!0)),O.visibilityState==="visible"&&A()},I=O=>{O.pointerType==="mouse"&&(g=!0,y=!0,!(t.animating||t.autoplay.paused)&&k(!0))},L=O=>{O.pointerType==="mouse"&&(y=!1,t.autoplay.paused&&A())},N=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",I),t.el.addEventListener("pointerleave",L))},B=()=>{t.el.removeEventListener("pointerenter",I),t.el.removeEventListener("pointerleave",L)},z=()=>{Sr().addEventListener("visibilitychange",R)},q=()=>{Sr().removeEventListener("visibilitychange",R)};r("init",()=>{t.params.autoplay.enabled&&(N(),z(),T())}),r("destroy",()=>{B(),q(),t.autoplay.running&&C()}),r("_freeModeStaticRelease",()=>{(h||g)&&A()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?C():k(!0,!0)}),r("beforeTransitionStart",(O,j,V)=>{t.destroyed||!t.autoplay.running||(V||!t.params.autoplay.disableOnInteraction?k(!0,!0):C())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){C();return}p=!0,h=!1,g=!1,m=setTimeout(()=>{g=!0,h=!0,k(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(o),t.params.autoplay.disableOnInteraction){h=!1,p=!1;return}h&&t.params.cssMode&&A(),h=!1,p=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(x=!0)}),Object.assign(t.autoplay,{start:T,stop:C,pause:k,resume:A})}function Y6(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=o?o():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===t&&i()}),r("setTransition",(d,f)=>{n.params.effect===t&&s(f)}),r("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let c;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)}))})}function Z6(e,t){const n=F0(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function kw(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=F0(t);let s=i.querySelector(`.${r.split(" ").join(".")}`);return s||(s=Rd("div",r.split(" ")),i.append(s)),s}function J6(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Y6({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:o,height:a,slides:l,slidesSizesGrid:u}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),f=t.translate,p=d?-f+o/2:-f+a/2,h=d?c.rotate:-c.rotate,m=c.depth;for(let x=0,g=l.length;x0?P:0),q&&(q.style.opacity=-P>0?-P:0)}}},setTransition:o=>{t.slides.map(l=>F0(l)).forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function c2(e,t){return function(){return e.apply(t,arguments)}}const{toString:e$}=Object.prototype,{getPrototypeOf:z0}=Object,rp=(e=>t=>{const n=e$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lr=e=>(e=e.toLowerCase(),t=>rp(t)===e),ip=e=>t=>typeof t===e,{isArray:sa}=Array,Nl=ip("undefined");function t$(e){return e!==null&&!Nl(e)&&e.constructor!==null&&!Nl(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d2=lr("ArrayBuffer");function n$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&d2(e.buffer),t}const r$=ip("string"),bn=ip("function"),f2=ip("number"),sp=e=>e!==null&&typeof e=="object",i$=e=>e===!0||e===!1,Ic=e=>{if(rp(e)!=="object")return!1;const t=z0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},s$=lr("Date"),o$=lr("File"),a$=lr("Blob"),l$=lr("FileList"),u$=e=>sp(e)&&bn(e.pipe),c$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bn(e.append)&&((t=rp(e))==="formdata"||t==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"))},d$=lr("URLSearchParams"),f$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const h2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,m2=e=>!Nl(e)&&e!==h2;function Eg(){const{caseless:e}=m2(this)&&this||{},t={},n=(r,i)=>{const s=e&&p2(t,i)||i;Ic(t[s])&&Ic(r)?t[s]=Eg(t[s],r):Ic(r)?t[s]=Eg({},r):sa(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(Pu(t,(i,s)=>{n&&bn(i)?e[s]=c2(i,n):e[s]=i},{allOwnKeys:r}),e),h$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},g$=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&z0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},v$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y$=e=>{if(!e)return null;if(sa(e))return e;let t=e.length;if(!f2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},x$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&z0(Uint8Array)),w$=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},b$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S$=lr("HTMLFormElement"),E$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Mw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P$=lr("RegExp"),g2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pu(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},C$=e=>{g2(e,(t,n)=>{if(bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(bn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},T$=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return sa(e)?r(e):r(String(e).split(t)),n},A$=()=>{},k$=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ph="abcdefghijklmnopqrstuvwxyz",Ow="0123456789",v2={DIGIT:Ow,ALPHA:Ph,ALPHA_DIGIT:Ph+Ph.toUpperCase()+Ow},M$=(e=16,t=v2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function O$(e){return!!(e&&bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const R$=e=>{const t=new Array(10),n=(r,i)=>{if(sp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=sa(r)?[]:{};return Pu(r,(o,a)=>{const l=n(o,i+1);!Nl(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},_$=lr("AsyncFunction"),I$=e=>e&&(sp(e)||bn(e))&&bn(e.then)&&bn(e.catch),D={isArray:sa,isArrayBuffer:d2,isBuffer:t$,isFormData:c$,isArrayBufferView:n$,isString:r$,isNumber:f2,isBoolean:i$,isObject:sp,isPlainObject:Ic,isUndefined:Nl,isDate:s$,isFile:o$,isBlob:a$,isRegExp:P$,isFunction:bn,isStream:u$,isURLSearchParams:d$,isTypedArray:x$,isFileList:l$,forEach:Pu,merge:Eg,extend:p$,trim:f$,stripBOM:h$,inherits:m$,toFlatObject:g$,kindOf:rp,kindOfTest:lr,endsWith:v$,toArray:y$,forEachEntry:w$,matchAll:b$,isHTMLForm:S$,hasOwnProperty:Mw,hasOwnProp:Mw,reduceDescriptors:g2,freezeMethods:C$,toObjectSet:T$,toCamelCase:E$,noop:A$,toFiniteNumber:k$,findKey:p2,global:h2,isContextDefined:m2,ALPHABET:v2,generateString:M$,isSpecCompliantForm:O$,toJSONObject:R$,isAsyncFn:_$,isThenable:I$};function ce(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y2=ce.prototype,x2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{x2[e]={value:e}});Object.defineProperties(ce,x2);Object.defineProperty(y2,"isAxiosError",{value:!0});ce.from=(e,t,n,r,i,s)=>{const o=Object.create(y2);return D.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ce.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const L$=null;function Pg(e){return D.isPlainObject(e)||D.isArray(e)}function w2(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function Rw(e,t,n){return e?e.concat(t).map(function(i,s){return i=w2(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function j$(e){return D.isArray(e)&&!e.some(Pg)}const D$=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function op(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!D.isUndefined(x[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(D.isDate(h))return h.toISOString();if(!l&&D.isBlob(h))throw new ce("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(h)||D.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,x){let g=h;if(h&&!x&&typeof h=="object"){if(D.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(D.isArray(h)&&j$(h)||(D.isFileList(h)||D.endsWith(m,"[]"))&&(g=D.toArray(h)))return m=w2(m),g.forEach(function(v,w){!(D.isUndefined(v)||v===null)&&t.append(o===!0?Rw([m],w,s):o===null?m:m+"[]",u(v))}),!1}return Pg(h)?!0:(t.append(Rw(x,m,s),u(h)),!1)}const d=[],f=Object.assign(D$,{defaultVisitor:c,convertValue:u,isVisitable:Pg});function p(h,m){if(!D.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),D.forEach(h,function(g,y){(!(D.isUndefined(g)||g===null)&&i.call(t,g,D.isString(y)?y.trim():y,m,f))===!0&&p(g,m?m.concat(y):[y])}),d.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return p(e),t}function _w(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function V0(e,t){this._pairs=[],e&&op(e,this,t)}const b2=V0.prototype;b2.append=function(t,n){this._pairs.push([t,n])};b2.toString=function(t){const n=t?function(r){return t.call(this,r,_w)}:_w;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function N$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function S2(e,t,n){if(!t)return e;const r=n&&n.encode||N$,i=n&&n.serialize;let s;if(i?s=i(t,n):s=D.isURLSearchParams(t)?t.toString():new V0(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Iw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const E2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F$=typeof URLSearchParams<"u"?URLSearchParams:V0,$$=typeof FormData<"u"?FormData:null,z$=typeof Blob<"u"?Blob:null,V$={isBrowser:!0,classes:{URLSearchParams:F$,FormData:$$,Blob:z$},protocols:["http","https","file","blob","url","data"]},P2=typeof window<"u"&&typeof document<"u",B$=(e=>P2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),U$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:P2,hasStandardBrowserEnv:B$,hasStandardBrowserWebWorkerEnv:U$},Symbol.toStringTag,{value:"Module"})),er={...W$,...V$};function H$(e,t){return op(e,new er.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return er.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function G$(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K$(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&D.isArray(i)?i.length:o,l?(D.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!D.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&D.isArray(i[o])&&(i[o]=K$(i[o])),!a)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(G$(r),i,n,0)}),n}return null}function q$(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const B0={transitional:E2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=D.isObject(t);if(s&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(C2(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return H$(t,this.formSerializer).toString();if((a=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return op(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),q$(t)):t}],transformResponse:[function(t){const n=this.transitional||B0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&D.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ce.from(a,ce.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:er.classes.FormData,Blob:er.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{B0.headers[e]={}});const U0=B0,Q$=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X$=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Q$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lw=Symbol("internals");function Ea(e){return e&&String(e).trim().toLowerCase()}function Lc(e){return e===!1||e==null?e:D.isArray(e)?e.map(Lc):String(e)}function Y$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Z$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ch(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function J$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ez(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class ap{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=Ea(l);if(!c)throw new Error("header name must be a non-empty string");const d=D.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Lc(a))}const o=(a,l)=>D.forEach(a,(u,c)=>s(u,c,l));return D.isPlainObject(t)||t instanceof this.constructor?o(t,n):D.isString(t)&&(t=t.trim())&&!Z$(t)?o(X$(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ea(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Y$(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ea(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ch(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Ea(o),o){const a=D.findKey(r,o);a&&(!n||Ch(r,r[a],a,n))&&(delete r[a],i=!0)}}return D.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Ch(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return D.forEach(this,(i,s)=>{const o=D.findKey(r,s);if(o){n[o]=Lc(i),delete n[s];return}const a=t?J$(s):String(s).trim();a!==s&&delete n[s],n[a]=Lc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Lw]=this[Lw]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Ea(o);r[a]||(ez(i,o),r[a]=!0)}return D.isArray(t)?t.forEach(s):s(t),this}}ap.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(ap.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(ap);const Er=ap;function Th(e,t){const n=this||U0,r=t||n,i=Er.from(r.headers);let s=r.data;return D.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function T2(e){return!!(e&&e.__CANCEL__)}function Cu(e,t,n){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Cu,ce,{__CANCEL__:!0});function tz(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const nz=er.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),D.isString(r)&&o.push("path="+r),D.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iz(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function A2(e,t){return e&&!rz(t)?iz(e,t):t}const sz=er.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=D.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function oz(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function az(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),u=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-s)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const lz=typeof XMLHttpRequest<"u",uz=lz&&function(e){return new Promise(function(n,r){let i=e.data;const s=Er.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(D.isFormData(i)){if(er.hasStandardBrowserEnv||er.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[m,...x]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...x].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+x))}const f=A2(e.baseURL,e.url);d.open(e.method.toUpperCase(),S2(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const m=Er.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};tz(function(v){n(v),u()},function(v){r(v),u()},g),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new ce("Request aborted",ce.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new ce("Network Error",ce.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||E2;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new ce(x,g.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,d)),d=null},er.hasStandardBrowserEnv&&(a&&D.isFunction(a)&&(a=a(e)),a||a!==!1&&sz(f))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&nz.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in d&&D.forEach(s.toJSON(),function(x,g){d.setRequestHeader(g,x)}),D.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",jw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",jw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{d&&(r(!m||m.type?new Cu(null,e,d):m),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=oz(f);if(h&&er.protocols.indexOf(h)===-1){r(new ce("Unsupported protocol "+h+":",ce.ERR_BAD_REQUEST,e));return}d.send(i||null)})},Cg={http:L$,xhr:uz};D.forEach(Cg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Dw=e=>`- ${e}`,cz=e=>D.isFunction(e)||e===null||e===!1,k2={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : -`+s.map(Dw).join(` -`):" "+Dw(s[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Cg};function Ah(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cu(null,e)}function Nw(e){return Ah(e),e.headers=Er.from(e.headers),e.data=Th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),k2.getAdapter(e.adapter||U0.adapter)(e).then(function(r){return Ah(e),r.data=Th.call(e,e.transformResponse,r),r.headers=Er.from(r.headers),r},function(r){return T2(r)||(Ah(e),r&&r.response&&(r.response.data=Th.call(e,e.transformResponse,r.response),r.response.headers=Er.from(r.response.headers))),Promise.reject(r)})}const Fw=e=>e instanceof Er?{...e}:e;function Wo(e,t){t=t||{};const n={};function r(u,c,d){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:d},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,d){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!D.isUndefined(c))return r(void 0,c)}function o(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>i(Fw(u),Fw(c),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,f=d(e[c],t[c],c);D.isUndefined(f)&&d!==a||(n[c]=f)}),n}const M2="1.6.8",W0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{W0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $w={};W0.transitional=function(t,n,r){function i(s,o){return"[Axios v"+M2+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new ce(i(o," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED);return n&&!$w[o]&&($w[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function dz(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new ce("option "+s+" must be "+l,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}const Tg={assertOptions:dz,validators:W0},Vr=Tg.validators;class Id{constructor(t){this.defaults=t,this.interceptors={request:new Iw,response:new Iw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Tg.assertOptions(r,{silentJSONParsing:Vr.transitional(Vr.boolean),forcedJSONParsing:Vr.transitional(Vr.boolean),clarifyTimeoutError:Vr.transitional(Vr.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:Tg.assertOptions(i,{encode:Vr.function,serialize:Vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&D.merge(s.common,s[n.method]);s&&D.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),n.headers=Er.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const h=[Nw.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),f=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Cu(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new H0(function(i){t=i}),cancel:t}}}const fz=H0;function pz(e){return function(n){return e.apply(null,n)}}function hz(e){return D.isObject(e)&&e.isAxiosError===!0}const Ag={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ag).forEach(([e,t])=>{Ag[t]=e});const mz=Ag;function O2(e){const t=new jc(e),n=c2(jc.prototype.request,t);return D.extend(n,jc.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return O2(Wo(e,i))},n}const Xe=O2(U0);Xe.Axios=jc;Xe.CanceledError=Cu;Xe.CancelToken=fz;Xe.isCancel=T2;Xe.VERSION=M2;Xe.toFormData=op;Xe.AxiosError=ce;Xe.Cancel=Xe.CanceledError;Xe.all=function(t){return Promise.all(t)};Xe.spread=pz;Xe.isAxiosError=hz;Xe.mergeConfig=Wo;Xe.AxiosHeaders=Er;Xe.formToJSON=e=>C2(D.isHTMLForm(e)?new FormData(e):e);Xe.getAdapter=k2.getAdapter;Xe.HttpStatusCode=mz;Xe.default=Xe;const lp=Xe.create({baseURL:"https://webv2-backend.appdevclub.com"});function gz(e){let t=`${e.firstName}-${e.lastName}`;return t=t.toLowerCase().replace(" ","-"),`${lp.getUri()}/team-images/${t}.jpeg`}function vz(e){let t="";return t=e.leadership.join(", "),t}function yz(e){const[t,n]=H.useState([]);return H.useEffect(()=>{lp.get("members/leaders/").then(r=>{n(()=>r.data)})},[]),E.jsxs(Z,{...e,sx:{...e==null?void 0:e.sx,borderRadius:"35px",display:"flex",flexDirection:"column",gap:"15px",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:[E.jsx(Se,{sx:{fontSize:"3rem",fontWeight:"bold",marginBottom:"30px"},children:"Our Team"}),t.length<1?E.jsx(E.Fragment,{}):E.jsx(l2,{modules:[J6,X6],effect:"coverflow",centeredSlides:!0,loop:!0,loopAdditionalSlides:2,slidesPerView:"auto",spaceBetween:3,coverflowEffect:{rotate:0,stretch:0,depth:200,modifier:1},autoplay:{delay:1200,disableOnInteraction:!1},children:t.map(r=>E.jsx(u2,{children:E.jsxs(Z,{sx:{position:"relative",overflow:"hidden",width:"100%"},children:[E.jsx("img",{src:gz(r),alt:"member_image"}),E.jsxs(Z,{sx:{position:"absolute",bottom:"0px",color:"white",width:"100%",height:"130px",left:"50%",transform:"translateX(-50%)",background:"linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",textAlign:"center",paddingBottom:"20px"},children:[E.jsx(Se,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:`${r.firstName} ${r.lastName}`}),E.jsx(Se,{sx:{fontSize:"1rem"},children:vz(r)})]})]})}))})]})}var xz=Object.defineProperty,wz=(e,t)=>{for(var n in t)xz(e,n,{get:t[n],enumerable:!0})},Vn={};wz(Vn,{assign:()=>Ez,colors:()=>Ei,createStringInterpolator:()=>Z0,skipAnimation:()=>N2,to:()=>D2,willAdvance:()=>J0});var G0=Au(),J=e=>Tu(e,G0),K0=Au();J.write=e=>Tu(e,K0);var up=Au();J.onStart=e=>Tu(e,up);var q0=Au();J.onFrame=e=>Tu(e,q0);var Q0=Au();J.onFinish=e=>Tu(e,Q0);var yo=[];J.setTimeout=(e,t)=>{const n=J.now()+t,r=()=>{const s=yo.findIndex(o=>o.cancel==r);~s&&yo.splice(s,1),fi-=~s?1:0},i={time:n,handler:e,cancel:r};return yo.splice(R2(n),0,i),fi+=1,_2(),i};var R2=e=>~(~yo.findIndex(t=>t.time>e)||~yo.length);J.cancel=e=>{up.delete(e),q0.delete(e),Q0.delete(e),G0.delete(e),K0.delete(e)};J.sync=e=>{kg=!0,J.batchedUpdates(e),kg=!1};J.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,J.onStart(n)}return r.handler=e,r.cancel=()=>{up.delete(n),t=null},r};var X0=typeof window<"u"?window.requestAnimationFrame:()=>{};J.use=e=>X0=e;J.now=typeof performance<"u"?()=>performance.now():Date.now;J.batchedUpdates=e=>e();J.catch=console.error;J.frameLoop="always";J.advance=()=>{J.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):L2()};var di=-1,fi=0,kg=!1;function Tu(e,t){kg?(t.delete(e),e(0)):(t.add(e),_2())}function _2(){di<0&&(di=0,J.frameLoop!=="demand"&&X0(I2))}function bz(){di=-1}function I2(){~di&&(X0(I2),J.batchedUpdates(L2))}function L2(){const e=di;di=J.now();const t=R2(di);if(t&&(j2(yo.splice(0,t),n=>n.handler()),fi-=t),!fi){bz();return}up.flush(),G0.flush(e?Math.min(64,di-e):16.667),q0.flush(),K0.flush(),Q0.flush()}function Au(){let e=new Set,t=e;return{add(n){fi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return fi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,fi-=t.size,j2(t,r=>r(n)&&e.add(r)),fi+=e.size,t=e)}}}function j2(e,t){e.forEach(n=>{try{t(n)}catch(r){J.catch(r)}})}function Mg(){}var Sz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function pr(e,t){if($.arr(e)){if(!$.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function or(e,t,n){if($.arr(e)){for(let r=0;r$.und(e)?[]:$.arr(e)?e:[e];function Ja(e,t){if(e.size){const n=Array.from(e);e.clear(),ue(n,t)}}var Na=(e,...t)=>Ja(e,n=>n(...t)),Y0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Z0,D2,Ei=null,N2=!1,J0=Mg,Ez=e=>{e.to&&(D2=e.to),e.now&&(J.now=e.now),e.colors!==void 0&&(Ei=e.colors),e.skipAnimation!=null&&(N2=e.skipAnimation),e.createStringInterpolator&&(Z0=e.createStringInterpolator),e.requestAnimationFrame&&J.use(e.requestAnimationFrame),e.batchedUpdates&&(J.batchedUpdates=e.batchedUpdates),e.willAdvance&&(J0=e.willAdvance),e.frameLoop&&(J.frameLoop=e.frameLoop)},el=new Set,vn=[],kh=[],Ld=0,cp={get idle(){return!el.size&&!vn.length},start(e){Ld>e.priority?(el.add(e),J.onStart(Pz)):(F2(e),J(Og))},advance:Og,sort(e){if(Ld)J.onFrame(()=>cp.sort(e));else{const t=vn.indexOf(e);~t&&(vn.splice(t,1),$2(e))}},clear(){vn=[],el.clear()}};function Pz(){el.forEach(F2),el.clear(),J(Og)}function F2(e){vn.includes(e)||$2(e)}function $2(e){vn.splice(Cz(vn,t=>t.priority>e.priority),0,e)}function Og(e){const t=kh;for(let n=0;n0}function Cz(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Tz=(e,t,n)=>Math.min(Math.max(n,e),t),Az={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Nn="[-+]?\\d*\\.?\\d+",jd=Nn+"%";function dp(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var kz=new RegExp("rgb"+dp(Nn,Nn,Nn)),Mz=new RegExp("rgba"+dp(Nn,Nn,Nn,Nn)),Oz=new RegExp("hsl"+dp(Nn,jd,jd)),Rz=new RegExp("hsla"+dp(Nn,jd,jd,Nn)),_z=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Iz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Lz=/^#([0-9a-fA-F]{6})$/,jz=/^#([0-9a-fA-F]{8})$/;function Dz(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Lz.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ei&&Ei[e]!==void 0?Ei[e]:(t=kz.exec(e))?($s(t[1])<<24|$s(t[2])<<16|$s(t[3])<<8|255)>>>0:(t=Mz.exec(e))?($s(t[1])<<24|$s(t[2])<<16|$s(t[3])<<8|Bw(t[4]))>>>0:(t=_z.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=jz.exec(e))?parseInt(t[1],16)>>>0:(t=Iz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Oz.exec(e))?(zw(Vw(t[1]),ac(t[2]),ac(t[3]))|255)>>>0:(t=Rz.exec(e))?(zw(Vw(t[1]),ac(t[2]),ac(t[3]))|Bw(t[4]))>>>0:null}function Mh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=Mh(i,r,e+1/3),o=Mh(i,r,e),a=Mh(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function $s(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Vw(e){return(parseFloat(e)%360+360)%360/360}function Bw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ac(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Uw(e){let t=Dz(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var Fl=(e,t,n)=>{if($.fun(e))return e;if($.arr(e))return Fl({range:e,output:t,extrapolate:n});if($.str(e.output[0]))return Z0(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Fz(u,s);return Nz(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function Nz(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Fz(e,t){for(var n=1;n=e);++n);return n-1}var $z=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Tz(0,1,i/e)},Dd=1.70158,lc=Dd*1.525,Ww=Dd+1,Hw=2*Math.PI/3,Gw=2*Math.PI/4.5,uc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,zz={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ww*e*e*e-Dd*e*e,easeOutBack:e=>1+Ww*Math.pow(e-1,3)+Dd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((lc+1)*2*e-lc)/2:(Math.pow(2*e-2,2)*((lc+1)*(e*2-2)+lc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Hw),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Hw)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Gw))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Gw)/2+1,easeInBounce:e=>1-uc(1-e),easeOutBounce:uc,easeInOutBounce:e=>e<.5?(1-uc(1-2*e))/2:(1+uc(2*e-1))/2,steps:$z},$l=Symbol.for("FluidValue.get"),Ho=Symbol.for("FluidValue.observers"),gn=e=>!!(e&&e[$l]),Dt=e=>e&&e[$l]?e[$l]():e,Kw=e=>e[Ho]||null;function Vz(e,t){e.eventObserved?e.eventObserved(t):e(t)}function zl(e,t){const n=e[Ho];n&&n.forEach(r=>{Vz(r,t)})}var z2=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Bz(this,e)}},Bz=(e,t)=>V2(e,$l,t);function oa(e,t){if(e[$l]){let n=e[Ho];n||V2(e,Ho,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Vl(e,t){const n=e[Ho];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ho]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var V2=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Dc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Uz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qw=new RegExp(`(${Dc.source})(%|[a-z]+)`,"i"),Wz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,B2=e=>{const[t,n]=Hz(e);if(!t||Y0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&fp.test(n))return B2(n);if(n)return n}return e},Hz=e=>{const t=fp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Oh,Gz=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,U2=e=>{Oh||(Oh=Ei?new RegExp(`(${Object.keys(Ei).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Dt(s).replace(fp,B2).replace(Uz,Uw).replace(Oh,Uw)),n=t.map(s=>s.match(Dc).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>Fl({...e,output:s}));return s=>{var l;const o=!qw.test(t[0])&&((l=t.find(u=>qw.test(u)))==null?void 0:l.replace(Dc,""));let a=0;return t[0].replace(Dc,()=>`${i[a++](s)}${o||""}`).replace(Wz,Gz)}},ey="react-spring: ",W2=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ey}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Kz=W2(console.warn);function qz(){Kz(`${ey}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Qz=W2(console.warn);function Xz(){Qz(`${ey}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function pp(e){return $.str(e)&&(e[0]=="#"||/\d/.test(e)||!Y0()&&fp.test(e)||e in(Ei||{}))}var ty=Y0()?b.useEffect:b.useLayoutEffect,Yz=()=>{const e=b.useRef(!1);return ty(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function H2(){const e=b.useState()[1],t=Yz();return()=>{t.current&&e(Math.random())}}function Zz(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&Jz(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Jz(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,e8),e8=[];function Qw(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Bl=Symbol.for("Animated:node"),t8=e=>!!e&&e[Bl]===e,Hn=e=>e&&e[Bl],ny=(e,t)=>Sz(e,Bl,t),hp=e=>e&&e[Bl]&&e[Bl].getPayload(),K2=class{constructor(){ny(this,this)}getPayload(){return this.payload||[]}},ku=class extends K2{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ku(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,$.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ul=class extends ku{constructor(e){super(0),this._string=null,this._toString=Fl({output:[e,e]})}static create(e){return new Ul(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if($.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Fl({output:[this.getValue(),e]})),this._value=0,super.reset()}},Nd={dependencies:null},mp=class extends K2{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return or(this.source,(n,r)=>{t8(n)?t[r]=n.getValue(e):gn(n)?t[r]=Dt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ue(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return or(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Nd.dependencies&&gn(e)&&Nd.dependencies.add(e);const t=hp(e);t&&ue(t,n=>this.add(n))}},q2=class extends mp{constructor(e){super(e)}static create(e){return new q2(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(n8)),!0)}};function n8(e){return(pp(e)?Ul:ku).create(e)}function Rg(e){const t=Hn(e);return t?t.constructor:$.arr(e)?q2:pp(e)?Ul:ku}var Xw=(e,t)=>{const n=!$.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(h=>{s.current=s8(i,h)},[i]),[a,l]=i8(r,t),u=H2(),c=()=>{const h=s.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new r8(c,l),f=b.useRef();ty(()=>(f.current=d,ue(l,h=>oa(h,d)),()=>{f.current&&(ue(f.current.deps,h=>Vl(h,f.current)),J.cancel(f.current.update))})),b.useEffect(c,[]),G2(()=>()=>{const h=f.current;ue(h.deps,m=>Vl(m,h))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:o})})},r8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&J.write(this.update)}};function i8(e,t){const n=new Set;return Nd.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new mp(e),Nd.dependencies=null,[e,n]}function s8(e,t){return e&&($.fun(e)?e(t):e.current=t),t}var Yw=Symbol.for("AnimatedComponent"),o8=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new mp(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=Zw(o)||"Anonymous";return $.str(o)?o=s[o]||(s[o]=Xw(o,i)):o=o[Yw]||(o[Yw]=Xw(o,i)),o.displayName=`Animated(${a})`,o};return or(e,(o,a)=>{$.arr(e)&&(a=Zw(o)),s[a]=s(o)}),{animated:s}},Zw=e=>$.str(e)?e:e&&$.str(e.displayName)?e.displayName:$.fun(e)&&e.name||null;function Xi(e,...t){return $.fun(e)?e(...t):e}var tl=(e,t)=>e===!0||!!(t&&e&&($.fun(e)?e(t):qt(e).includes(t))),Q2=(e,t)=>$.obj(e)?t&&e[t]:e,X2=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,a8=e=>e,ry=(e,t=a8)=>{let n=l8;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);$.und(s)||(r[i]=s)}return r},l8=["config","onProps","onStart","onChange","onPause","onResume","onRest"],u8={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function c8(e){const t={};let n=0;if(or(e,(r,i)=>{u8[i]||(t[i]=r,n++)}),n)return t}function Y2(e){const t=c8(e);if(t){const n={to:t};return or(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Wl(e){return e=Dt(e),$.arr(e)?e.map(Wl):pp(e)?Vn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function d8(e){for(const t in e)return!0;return!1}function _g(e){return $.fun(e)||$.arr(e)&&$.obj(e[0])}function f8(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function p8(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var h8={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Ig={...h8.default,mass:1,damping:1,easing:zz.linear,clamp:!1},m8=class{constructor(){this.velocity=0,Object.assign(this,Ig)}};function g8(e,t,n){n&&(n={...n},Jw(n,t),t={...n,...t}),Jw(e,t),Object.assign(e,t);for(const o in Ig)e[o]==null&&(e[o]=Ig[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return $.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Jw(e,t){if(!$.und(t.decay))e.duration=void 0;else{const n=!$.und(t.tension)||!$.und(t.friction);(n||!$.und(t.frequency)||!$.und(t.damping)||!$.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var eb=[],v8=class{constructor(){this.changed=!1,this.values=eb,this.toValues=null,this.fromValues=eb,this.config=new m8,this.immediate=!1}};function Z2(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=tl(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{$.und(n.pause)||(i.paused=tl(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=i.paused||tl(h,t)),l=Xi(n.delay||0,t),h?(i.resumeQueue.add(f),s.pause()):(s.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-J.now()}function f(){l>0&&!Vn.skipAnimation?(i.delayed=!0,u=J.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(u)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(h){a(h)}}})}var iy=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?xo(e.get()):t.every(n=>n.noop)?J2(e.get()):Dn(e.get(),t.every(n=>n.finished)),J2=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Dn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xo=e=>({value:e,cancelled:!0,finished:!1});function eA(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ry(t,(x,g)=>g==="onRest"?void 0:x);let c,d;const f=new Promise((x,g)=>(c=x,d=g)),p=x=>{const g=i<=(n.cancelId||0)&&xo(r)||i!==n.asyncId&&Dn(r,!1);if(g)throw x.result=g,d(x),x},h=(x,g)=>{const y=new tb,v=new nb;return(async()=>{if(Vn.skipAnimation)throw Hl(n),v.result=Dn(r,!1),d(v),v;p(y);const w=$.obj(x)?{...x}:{...g,to:x};w.parentId=i,or(u,(P,T)=>{$.und(w[T])&&(w[T]=P)});const S=await r.start(w);return p(y),n.paused&&await new Promise(P=>{n.resumeQueue.add(P)}),S})()};let m;if(Vn.skipAnimation)return Hl(n),Dn(r,!1);try{let x;$.arr(e)?x=(async g=>{for(const y of g)await h(y)})(e):x=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([x.then(c),f]),m=Dn(r.get(),!0,!1)}catch(x){if(x instanceof tb)m=x.result;else if(x instanceof nb)m=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return $.fun(o)&&J.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Hl(e,t){Ja(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tb=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nb=class extends Error{constructor(){super("SkipAnimationSignal")}},Lg=e=>e instanceof sy,y8=1,sy=class extends z2{constructor(){super(...arguments),this.id=y8++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Hn(this);return e&&e.getValue()}to(...e){return Vn.to(this,e)}interpolate(...e){return qz(),Vn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){zl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||cp.sort(this),zl(this,{type:"priority",parent:this,priority:e})}},Es=Symbol.for("SpringPhase"),tA=1,jg=2,Dg=4,Rh=e=>(e[Es]&tA)>0,Br=e=>(e[Es]&jg)>0,Pa=e=>(e[Es]&Dg)>0,rb=(e,t)=>t?e[Es]|=jg|tA:e[Es]&=~jg,ib=(e,t)=>t?e[Es]|=Dg:e[Es]&=~Dg,x8=class extends sy{constructor(e,t){if(super(),this.animation=new v8,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$.und(e)||!$.und(t)){const n=$.obj(e)?{...e}:{...t,from:e};$.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Br(this)||this._state.asyncTo)||Pa(this)}get goal(){return Dt(this.animation.to)}get velocity(){const e=Hn(this);return e instanceof ku?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Rh(this)}get isAnimating(){return Br(this)}get isPaused(){return Pa(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=hp(r.to);!o&&gn(r.to)&&(i=qt(Dt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ul?1:o?o[c].lastPosition:i[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,s.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const m=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=$.arr(s.velocity)?s.velocity[c]:s.velocity;let g;const y=s.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if($.und(s.duration))if(s.decay){const v=s.decay===!0?.998:s.decay,w=Math.exp(-(1-v)*h);p=m+x/(1-v)*(1-w),f=Math.abs(u.lastPosition-p)<=y,g=x*w}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=s.restVelocity||y/10,w=s.clamp?0:s.bounce,S=!$.und(w),P=m==d?u.v0>0:mv,!(!T&&(f=Math.abs(d-p)<=y,f)));++R){S&&(C=p==d||p>d==P,C&&(g=-g*w,p=d));const I=-s.tension*1e-6*(p-d),L=-s.friction*.001*g,N=(I+L)/s.mass;g=g+N*k,p=p+g*k}}else{let v=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(s.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),p=m+s.easing(v)*(d-m),g=(p-u.lastPosition)/e,f=v==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,s.round)&&(n=!0)});const a=Hn(this),l=a.getValue();if(t){const u=Dt(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return J.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Br(this)){const{to:e,config:t}=this.animation;J.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return $.und(e)?(n=this.queue||[],this.queue=[]):n=[$.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>iy(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Hl(this._state,e&&this._lastCallId),J.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=$.obj(n)?n[t]:n,(n==null||_g(n))&&(n=void 0),r=$.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Rh(this)||(e.reverse&&([n,r]=[r,n]),r=Dt(r),$.und(r)?Hn(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ry(e,(o,a)=>/^on/.test(a)?Q2(o,n):o)),ob(this,e,"onProps"),Ta(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Z2(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{Pa(this)||(ib(this,!0),Na(s.pauseQueue),Ta(this,"onPause",Dn(this,Ca(this,this.animation.to)),this))},resume:()=>{Pa(this)&&(ib(this,!1),Br(this)&&this._resume(),Na(s.resumeQueue),Ta(this,"onResume",Dn(this,Ca(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=nA(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xo(this));const r=!$.und(e.to),i=!$.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(xo(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||$.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!pr(d,u);f&&(a.from=d),d=Dt(d);const p=!pr(c,l);p&&this._focus(c);const h=_g(t.to),{config:m}=a,{decay:x,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!h&&g8(m,Xi(t.config,s),t.config!==o.config?Xi(o.config,s):void 0);let y=Hn(this);if(!y||$.und(c))return n(Dn(this,!0));const v=$.und(t.reset)?i&&!t.default:!$.und(d)&&tl(t.reset,s),w=v?d:this.get(),S=Wl(c),P=$.num(S)||$.arr(S)||pp(S),T=!h&&(!P||tl(o.immediate||t.immediate,s));if(p){const R=Rg(c);if(R!==y.constructor)if(T)y=this._set(S);else throw Error(`Cannot animate between ${y.constructor.name} and ${R.name}, as the "to" prop suggests`)}const C=y.constructor;let k=gn(c),A=!1;if(!k){const R=v||!Rh(this)&&f;(p||R)&&(A=pr(Wl(w),S),k=!A),(!pr(a.immediate,T)&&!T||!pr(m.decay,x)||!pr(m.velocity,g))&&(k=!0)}if(A&&Br(this)&&(a.changed&&!v?k=!0:k||this._stop(l)),!h&&((k||gn(l))&&(a.values=y.getPayload(),a.toValues=gn(c)?null:C==Ul?[1]:qt(S)),a.immediate!=T&&(a.immediate=T,!T&&!v&&this._set(l)),k)){const{onRest:R}=a;ue(b8,L=>ob(this,t,L));const I=Dn(this,Ca(this,l));Na(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&J.batchedUpdates(()=>{var L;a.changed=!v,R==null||R(I,this),v?Xi(o.onRest,I):(L=a.onStart)==null||L.call(a,I,this)})}v&&this._set(w),h?n(eA(t.to,t,this._state,this)):k?this._start():Br(this)&&!p?this._pendingCalls.add(n):n(J2(w))}_focus(e){const t=this.animation;e!==t.to&&(Kw(this)&&this._detach(),t.to=e,Kw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;gn(t)&&(oa(t,this),Lg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;gn(e)&&Vl(e,this)}_set(e,t=!0){const n=Dt(e);if(!$.und(n)){const r=Hn(this);if(!r||!pr(n,r.getValue())){const i=Rg(n);!r||r.constructor!=i?ny(this,i.create(n)):r.setValue(n),r&&J.batchedUpdates(()=>{this._onChange(n,t)})}}return Hn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ta(this,"onStart",Dn(this,Ca(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Xi(this.animation.onChange,e,this)),Xi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Hn(this).reset(Dt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Br(this)||(rb(this,!0),Pa(this)||this._resume())}_resume(){Vn.skipAnimation?this.finish():cp.start(this)}_stop(e,t){if(Br(this)){rb(this,!1);const n=this.animation;ue(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zl(this,{type:"idle",parent:this});const r=t?xo(this.get()):Dn(this.get(),Ca(this,e??n.to));Na(this._pendingCalls,r),n.changed&&(n.changed=!1,Ta(this,"onRest",r,this))}}};function Ca(e,t){const n=Wl(t),r=Wl(e.get());return pr(r,n)}function nA(e,t=e.loop,n=e.to){const r=Xi(t);if(r){const i=r!==!0&&Y2(r),s=(i||e).reverse,o=!i||i.reset;return Gl({...e,loop:t,default:!1,pause:void 0,to:!s||_g(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Gl(e){const{to:t,from:n}=e=Y2(e),r=new Set;return $.obj(t)&&sb(t,r),$.obj(n)&&sb(n,r),e.keys=r.size?Array.from(r):null,e}function w8(e){const t=Gl(e);return $.und(t.default)&&(t.default=ry(t)),t}function sb(e,t){or(e,(n,r)=>n!=null&&t.add(r))}var b8=["onStart","onRest","onChange","onPause","onResume"];function ob(e,t,n){e.animation[n]=t[n]!==X2(t,n)?Q2(t[n],e.key):void 0}function Ta(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var S8=["onStart","onChange","onRest"],E8=1,P8=class{constructor(e,t){this.id=E8++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];$.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Gl(e)),this}start(e){let{queue:t}=this;return e?t=qt(e).map(Gl):this.queue=[],this._flush?this._flush(this,t):(aA(this,t),Ng(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ue(qt(t),r=>n[r].stop(!!e))}else Hl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if($.und(e))this.start({pause:!0});else{const t=this.springs;ue(qt(e),n=>t[n].pause())}return this}resume(e){if($.und(e))this.start({pause:!1});else{const t=this.springs;ue(qt(e),n=>t[n].resume())}return this}each(e){or(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ja(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Ja(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Ja(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;J.onFrame(this._onFrame)}};function Ng(e,t){return Promise.all(t.map(n=>rA(e,n))).then(n=>iy(e,n))}async function rA(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=$.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=$.arr(i)||$.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ue(S8,m=>{const x=t[m];if($.fun(x)){const g=e._events[m];t[m]=({finished:y,cancelled:v})=>{const w=g.get(x);w?(y||(w.finished=!1),v&&(w.cancelled=!0)):g.set(x,{value:null,finished:y||!1,cancelled:v||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Na(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||X2(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push(Z2(++e._lastAsyncId,{props:t,state:d,actions:{pause:Mg,resume:Mg,start(m,x){p?(Hl(d,e._lastAsyncId),x(xo(e))):(m.onRest=a,x(eA(c,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const h=iy(e,await Promise.all(f));if(o&&h.finished&&!(n&&h.noop)){const m=nA(t,o,i);if(m)return aA(e,[m]),rA(e,m,!0)}return l&&J.batchedUpdates(()=>l(h,e,e.item)),h}function ab(e,t){const n={...e.springs};return t&&ue(qt(t),r=>{$.und(r.keys)&&(r=Gl(r)),$.obj(r.to)||(r={...r,to:void 0}),oA(n,r,i=>sA(i))}),iA(e,n),n}function iA(e,t){or(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,oa(n,e))})}function sA(e,t){const n=new x8;return n.key=e,t&&oa(n,t),n}function oA(e,t,n){t.keys&&ue(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function aA(e,t){ue(t,n=>{oA(e.springs,n,r=>sA(r,e))})}var gp=({children:e,...t})=>{const n=b.useContext(Fd),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=Zz(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Fd;return b.createElement(s,{value:t},e)},Fd=C8(gp,{});gp.Provider=Fd.Provider;gp.Consumer=Fd.Consumer;function C8(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var T8=()=>{const e=[],t=function(r){Xz();const i=[];return ue(e,(s,o)=>{if($.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ue(e,r=>r.pause(...arguments)),this},t.resume=function(){return ue(e,r=>r.resume(...arguments)),this},t.set=function(r){ue(e,(i,s)=>{const o=$.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return ue(e,(s,o)=>{if($.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return ue(e,r=>r.stop(...arguments)),this},t.update=function(r){return ue(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return $.fun(r)?r(s,i):r};return t._getProps=n,t};function A8(e,t,n){const r=$.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?T8():void 0,[]),s=b.useRef(0),o=H2(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const v=ab(g,y);return s.current>0&&!a.queue.length&&!Object.keys(v).some(S=>!g.springs[S])?Ng(g,y):new Promise(S=>{iA(g,v),a.queue.push(()=>{S(Ng(g,y))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Qw(e)||0;b.useMemo(()=>{ue(l.current.slice(e,c),g=>{f8(g,i),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,y){for(let v=g;vab(g,u[y])),p=b.useContext(gp),h=Qw(p),m=p!==h&&d8(p);ty(()=>{s.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],ue(g,y=>y())),ue(l.current,(y,v)=>{i==null||i.add(y),m&&y.start({default:p});const w=u[v];w&&(p8(y,w.ref),y.ref?y.queue.push(w):y.start(w))})}),G2(()=>()=>{ue(a.ctrls,g=>g.stop(!0))});const x=f.map(g=>({...g}));return i?[x,i]:x}function k8(e,t){const n=$.fun(e),[[r],i]=A8(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var M8=class extends sy{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Fl(...t);const n=this._get(),r=Rg(n);ny(this,r.create(n))}advance(e){const t=this._get(),n=this.get();pr(t,n)||(Hn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&lb(this._active)&&_h(this)}_get(){const e=$.arr(this.source)?this.source.map(Dt):qt(Dt(this.source));return this.calc(...e)}_start(){this.idle&&!lb(this._active)&&(this.idle=!1,ue(hp(this),e=>{e.done=!1}),Vn.skipAnimation?(J.batchedUpdates(()=>this.advance()),_h(this)):cp.start(this))}_attach(){let e=1;ue(qt(this.source),t=>{gn(t)&&oa(t,this),Lg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ue(qt(this.source),e=>{gn(e)&&Vl(e,this)}),this._active.clear(),_h(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=qt(this.source).reduce((t,n)=>Math.max(t,(Lg(n)?n.priority:0)+1),0))}};function O8(e){return e.idle!==!1}function lb(e){return!e.size||Array.from(e).every(O8)}function _h(e){e.idle||(e.idle=!0,ue(hp(e),t=>{t.done=!0}),zl(e,{type:"idle",parent:e}))}Vn.assign({createStringInterpolator:U2,to:(e,t)=>new M8(e,t)});var lA=/^--/;function R8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!lA.test(e)&&!(nl.hasOwnProperty(e)&&nl[e])?t+"px":(""+t).trim()}var ub={};function _8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:ub[d]||(ub[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const f=R8(d,r[d]);lA.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var nl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),L8=["Webkit","Ms","Moz","O"];nl=Object.keys(nl).reduce((e,t)=>(L8.forEach(n=>e[I8(n,t)]=e[t]),e),nl);var j8=/^(matrix|translate|scale|rotate|skew)/,D8=/^(translate)/,N8=/^(rotate|skew)/,Ih=(e,t)=>$.num(e)&&e!==0?e+t:e,Nc=(e,t)=>$.arr(e)?e.every(n=>Nc(n,t)):$.num(e)?e===t:parseFloat(e)===t,F8=class extends mp{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>Ih(a,"px")).join(",")})`,Nc(o,0)])),or(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if(j8.test(a)){if(delete r[a],$.und(o))return;const l=D8.test(a)?"px":N8.test(a)?"deg":"";i.push(qt(o)),s.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${Ih(f,l)})`,Nc(f,0)]:u=>[`${a}(${u.map(c=>Ih(c,l)).join(",")})`,Nc(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new $8(i,s)),super(r)}},$8=class extends z2{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ue(this.inputs,(n,r)=>{const i=Dt(n[0]),[s,o]=this.transforms[r]($.arr(i)?i:n.map(Dt));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ue(this.inputs,t=>ue(t,n=>gn(n)&&oa(n,this)))}observerRemoved(e){e==0&&ue(this.inputs,t=>ue(t,n=>gn(n)&&Vl(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),zl(this,e)}},z8=["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","head","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Vn.assign({batchedUpdates:gf.unstable_batchedUpdates,createStringInterpolator:U2,colors:Az});var V8=o8(z8,{applyAnimatedValues:_8,createAnimatedStyle:e=>new F8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),B8=V8.animated;const U8=B8(Se);function Lh({end:e,title:t,prefix:n,start:r,minWidth:i,alignSelf:s}){const{number:o}=k8({from:{number:r||0},number:e,config:{mass:1,tension:20,friction:10}});return E.jsx(Z,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",flex:1,minWidth:i},children:E.jsxs(Z,{sx:{display:"flex",flex:1,alignItems:"center",flexDirection:"column"},children:[E.jsx(Z,{sx:{display:"flex",flex:1,alignItems:"flex-start",alignSelf:s||"center"},children:E.jsxs(Z,{sx:{flexDirection:"row",alignItems:"center",alignSelf:"center",justifyContent:"center",display:"flex",flex:1},children:[E.jsx(Se,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:n}),E.jsx(U8,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:o.to(a=>Math.floor(a).toLocaleString("en-US"))}),E.jsx(Se,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:"+"})]})}),E.jsx(Se,{sx:{fontSize:"calc(15px + 0.5vw)",alignSelf:s||"center"},children:t})]})})}var Mu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Go=typeof window>"u"||"Deno"in globalThis;function dn(){}function W8(e,t){return typeof e=="function"?e(t):e}function Fg(e){return typeof e=="number"&&e>=0&&e!==1/0}function uA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cb(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==oy(o,t.options))return!1}else if(!ql(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function db(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Kl(t.options.mutationKey)!==Kl(s))return!1}else if(!ql(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function oy(e,t){return((t==null?void 0:t.queryKeyHashFn)||Kl)(e)}function Kl(e){return JSON.stringify(e,(t,n)=>zg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ql(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ql(e[n],t[n])):!1}function cA(e,t){if(e===t)return e;const n=fb(e)&&fb(t);if(n||zg(e)&&zg(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Vg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cA(e,t):t}function G8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function K8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ay=Symbol(),is,ti,bo,XS,q8=(XS=class extends Mu{constructor(){super();X(this,is,void 0);X(this,ti,void 0);X(this,bo,void 0);W(this,bo,t=>{if(!Go&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,ti)||this.setEventListener(M(this,bo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,ti))==null||t.call(this),W(this,ti,void 0))}setEventListener(t){var n;W(this,bo,t),(n=M(this,ti))==null||n.call(this),W(this,ti,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,is)!==t&&(W(this,is,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,is)=="boolean"?M(this,is):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},is=new WeakMap,ti=new WeakMap,bo=new WeakMap,XS),ly=new q8,So,ni,Eo,YS,Q8=(YS=class extends Mu{constructor(){super();X(this,So,!0);X(this,ni,void 0);X(this,Eo,void 0);W(this,Eo,t=>{if(!Go&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,ni)||this.setEventListener(M(this,Eo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,ni))==null||t.call(this),W(this,ni,void 0))}setEventListener(t){var n;W(this,Eo,t),(n=M(this,ni))==null||n.call(this),W(this,ni,t(this.setOnline.bind(this)))}setOnline(t){M(this,So)!==t&&(W(this,So,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return M(this,So)}},So=new WeakMap,ni=new WeakMap,Eo=new WeakMap,YS),$d=new Q8;function X8(e){return Math.min(1e3*2**e,3e4)}function uy(e){return(e??"online")==="online"?$d.isOnline():!0}var dA=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jh(e){return e instanceof dA}function fA(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,g)=>{s=x,o=g}),l=x=>{var g;r||(p(new dA(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!ly.isFocused()||e.networkMode!=="always"&&!$d.isOnline(),f=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),i==null||i(),s(x))},p=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),i==null||i(),o(x))},h=()=>new Promise(x=>{var g;i=y=>{const v=r||!d();return v&&x(y),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;i=void 0,r||(x=e.onContinue)==null||x.call(e)}),m=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var P;if(r)return;const y=e.retry??(Go?0:3),v=e.retryDelay??X8,w=typeof v=="function"?v(n,g):v,S=y===!0||typeof y=="number"&&n{if(d())return h()}).then(()=>{t?p(g):m()})})};return uy(e.networkMode)?m():h().then(m),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function Y8(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=f=>setTimeout(f,0);const s=f=>{i=f},o=f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},a=f=>{t?e.push(f):i(()=>{n(f)})},l=f=>(...p)=>{a(()=>{f(...p)})},u=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:o,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:s}}var ht=Y8(),ss,ZS,pA=(ZS=class{constructor(){X(this,ss,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fg(this.gcTime)&&W(this,ss,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Go?1/0:5*60*1e3))}clearGcTimeout(){M(this,ss)&&(clearTimeout(M(this,ss)),W(this,ss,void 0))}},ss=new WeakMap,ZS),Po,Co,ln,Mt,it,Jl,os,In,dr,JS,Z8=(JS=class extends pA{constructor(t){super();X(this,In);X(this,Po,void 0);X(this,Co,void 0);X(this,ln,void 0);X(this,Mt,void 0);X(this,it,void 0);X(this,Jl,void 0);X(this,os,void 0);W(this,os,!1),W(this,Jl,t.defaultOptions),this.setOptions(t.options),W(this,it,[]),W(this,ln,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,Po,t.state||J8(this.options)),this.state=M(this,Po),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...M(this,Jl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!M(this,it).length&&this.state.fetchStatus==="idle"&&M(this,ln).remove(this)}setData(t,n){const r=Vg(this.state.data,t,this.options);return le(this,In,dr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){le(this,In,dr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=M(this,Mt))==null?void 0:r.promise;return(i=M(this,Mt))==null||i.cancel(t),n?n.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Po))}isActive(){return M(this,it).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?M(this,it).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!uA(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=M(this,it).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Mt))==null||n.continue()}onOnline(){var n;const t=M(this,it).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Mt))==null||n.continue()}addObserver(t){M(this,it).includes(t)||(M(this,it).push(t),this.clearGcTimeout(),M(this,ln).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){M(this,it).includes(t)&&(W(this,it,M(this,it).filter(n=>n!==t)),M(this,it).length||(M(this,Mt)&&(M(this,os)?M(this,Mt).cancel({revert:!0}):M(this,Mt).cancelRetry()),this.scheduleGc()),M(this,ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return M(this,it).length}invalidate(){this.state.isInvalidated||le(this,In,dr).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,Mt))return M(this,Mt).continueRetry(),M(this,Mt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=M(this,it).find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(W(this,os,!0),r.signal)})};s(i);const o=()=>!this.options.queryFn||this.options.queryFn===ay?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(W(this,os,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(a),(u=this.options.behavior)==null||u.onFetch(a,this),W(this,Co,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&le(this,In,dr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,m,x;jh(f)&&f.silent||le(this,In,dr).call(this,{type:"error",error:f}),jh(f)||((h=(p=M(this,ln).config).onError)==null||h.call(p,f,this),(x=(m=M(this,ln).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return W(this,Mt,fA({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(h=(p=M(this,ln).config).onSuccess)==null||h.call(p,f,this),(x=(m=M(this,ln).config).onSettled)==null||x.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(f,p)=>{le(this,In,dr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{le(this,In,dr).call(this,{type:"pause"})},onContinue:()=>{le(this,In,dr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),M(this,Mt).promise}},Po=new WeakMap,Co=new WeakMap,ln=new WeakMap,Mt=new WeakMap,it=new WeakMap,Jl=new WeakMap,os=new WeakMap,In=new WeakSet,dr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hA(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return jh(i)&&i.revert&&M(this,Co)?{...M(this,Co),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ht.batch(()=>{M(this,it).forEach(r=>{r.onQueryUpdate()}),M(this,ln).notify({query:this,type:"updated",action:t})})},JS);function hA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function J8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Kn,eE,e9=(eE=class extends Mu{constructor(t={}){super();X(this,Kn,void 0);this.config=t,W(this,Kn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??oy(i,n);let o=this.get(s);return o||(o=new Z8({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){M(this,Kn).has(t.queryHash)||(M(this,Kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,Kn).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,Kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ht.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,Kn).get(t)}getAll(){return[...M(this,Kn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cb(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>cb(t,r)):n}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kn=new WeakMap,eE),qn,eu,Ut,To,Qn,Gr,tE,t9=(tE=class extends pA{constructor(t){super();X(this,Qn);X(this,qn,void 0);X(this,eu,void 0);X(this,Ut,void 0);X(this,To,void 0);this.mutationId=t.mutationId,W(this,eu,t.defaultOptions),W(this,Ut,t.mutationCache),W(this,qn,[]),this.state=t.state||n9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...M(this,eu),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,qn).includes(t)||(M(this,qn).push(t),this.clearGcTimeout(),M(this,Ut).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,qn,M(this,qn).filter(n=>n!==t)),this.scheduleGc(),M(this,Ut).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,qn).length||(this.state.status==="pending"?this.scheduleGc():M(this,Ut).remove(this))}continue(){var t;return((t=M(this,To))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,u,c,d,f,p,h,m,x,g,y,v,w,S,P,T;const n=()=>(W(this,To,fA({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,k)=>{le(this,Qn,Gr).call(this,{type:"failed",failureCount:C,error:k})},onPause:()=>{le(this,Qn,Gr).call(this,{type:"pause"})},onContinue:()=>{le(this,Qn,Gr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),M(this,To).promise),r=this.state.status==="pending";try{if(!r){le(this,Qn,Gr).call(this,{type:"pending",variables:t}),await((s=(i=M(this,Ut).config).onMutate)==null?void 0:s.call(i,t,this));const k=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));k!==this.state.context&&le(this,Qn,Gr).call(this,{type:"pending",context:k,variables:t})}const C=await n();return await((u=(l=M(this,Ut).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,C,t,this.state.context)),await((p=(f=M(this,Ut).config).onSettled)==null?void 0:p.call(f,C,null,this.state.variables,this.state.context,this)),await((m=(h=this.options).onSettled)==null?void 0:m.call(h,C,null,t,this.state.context)),le(this,Qn,Gr).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(x=M(this,Ut).config).onError)==null?void 0:g.call(x,C,t,this.state.context,this)),await((v=(y=this.options).onError)==null?void 0:v.call(y,C,t,this.state.context)),await((S=(w=M(this,Ut).config).onSettled)==null?void 0:S.call(w,void 0,C,this.state.variables,this.state.context,this)),await((T=(P=this.options).onSettled)==null?void 0:T.call(P,void 0,C,t,this.state.context)),C}finally{le(this,Qn,Gr).call(this,{type:"error",error:C})}}}},qn=new WeakMap,eu=new WeakMap,Ut=new WeakMap,To=new WeakMap,Qn=new WeakSet,Gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!uy(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ht.batch(()=>{M(this,qn).forEach(r=>{r.onMutationUpdate(t)}),M(this,Ut).notify({mutation:this,type:"updated",action:t})})},tE);function n9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var un,tu,as,nE,r9=(nE=class extends Mu{constructor(t={}){super();X(this,un,void 0);X(this,tu,void 0);X(this,as,void 0);this.config=t,W(this,un,[]),W(this,tu,0)}build(t,n,r){const i=new t9({mutationCache:this,mutationId:++Nu(this,tu)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){M(this,un).push(t),this.notify({type:"added",mutation:t})}remove(t){W(this,un,M(this,un).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){ht.batch(()=>{M(this,un).forEach(t=>{this.remove(t)})})}getAll(){return M(this,un)}find(t){const n={exact:!0,...t};return M(this,un).find(r=>db(n,r))}findAll(t={}){return M(this,un).filter(n=>db(t,n))}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return W(this,as,(M(this,as)??Promise.resolve()).then(()=>{const t=M(this,un).filter(n=>n.state.isPaused);return ht.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(dn)),Promise.resolve()))}).then(()=>{W(this,as,void 0)})),M(this,as)}},un=new WeakMap,tu=new WeakMap,as=new WeakMap,nE);function i9(e){return{onFetch:(t,n)=>{const r=async()=>{var h,m,x,g,y;const i=t.options,s=(x=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:x.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn&&t.options.queryFn!==ay?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),f=async(v,w,S)=>{if(u)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const P={queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};c(P);const T=await d(P),{maxPages:C}=t.options,k=S?K8:G8;return{pages:k(v.pages,T,C),pageParams:k(v.pageParams,w,C)}};let p;if(s&&o.length){const v=s==="backward",w=v?s9:hb,S={pages:o,pageParams:a},P=w(i,S);p=await f(S,P,v)}else{p=await f(l,a[0]??i.initialPageParam);const v=e??o.length;for(let w=1;w{var i,s;return(s=(i=t.options).persister)==null?void 0:s.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function hb(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function s9(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var ze,ri,ii,Ao,ko,si,Mo,Oo,rE,o9=(rE=class{constructor(e={}){X(this,ze,void 0);X(this,ri,void 0);X(this,ii,void 0);X(this,Ao,void 0);X(this,ko,void 0);X(this,si,void 0);X(this,Mo,void 0);X(this,Oo,void 0);W(this,ze,e.queryCache||new e9),W(this,ri,e.mutationCache||new r9),W(this,ii,e.defaultOptions||{}),W(this,Ao,new Map),W(this,ko,new Map),W(this,si,0)}mount(){Nu(this,si)._++,M(this,si)===1&&(W(this,Mo,ly.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ze).onFocus())})),W(this,Oo,$d.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ze).onOnline())})))}unmount(){var e,t;Nu(this,si)._--,M(this,si)===0&&((e=M(this,Mo))==null||e.call(this),W(this,Mo,void 0),(t=M(this,Oo))==null||t.call(this),W(this,Oo,void 0))}isFetching(e){return M(this,ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ri).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ze).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=M(this,ze).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return M(this,ze).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=M(this,ze).get(r.queryHash),s=i==null?void 0:i.state.data,o=W8(t,s);if(o!==void 0)return M(this,ze).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ht.batch(()=>M(this,ze).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ze).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,ze);ht.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,ze),r={type:"active",...e};return ht.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ht.batch(()=>M(this,ze).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(dn).catch(dn)}invalidateQueries(e={},t={}){return ht.batch(()=>{if(M(this,ze).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ht.batch(()=>M(this,ze).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(dn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,ze).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dn).catch(dn)}fetchInfiniteQuery(e){return e.behavior=i9(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dn).catch(dn)}resumePausedMutations(){return $d.isOnline()?M(this,ri).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ze)}getMutationCache(){return M(this,ri)}getDefaultOptions(){return M(this,ii)}setDefaultOptions(e){W(this,ii,e)}setQueryDefaults(e,t){M(this,Ao).set(Kl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Ao).values()];let n={};return t.forEach(r=>{ql(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){M(this,ko).set(Kl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,ko).values()];let n={};return t.forEach(r=>{ql(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,ii).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=oy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===ay&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,ii).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ze).clear(),M(this,ri).clear()}},ze=new WeakMap,ri=new WeakMap,ii=new WeakMap,Ao=new WeakMap,ko=new WeakMap,si=new WeakMap,Mo=new WeakMap,Oo=new WeakMap,rE),jt,Pe,nu,Ot,ls,Ro,Xn,ru,_o,Io,us,cs,oi,Lo,ds,Fa,iu,Bg,su,Ug,ou,Wg,au,Hg,lu,Gg,uu,Kg,cu,qg,Zd,mA,iE,a9=(iE=class extends Mu{constructor(t,n){super();X(this,ds);X(this,iu);X(this,su);X(this,ou);X(this,au);X(this,lu);X(this,uu);X(this,cu);X(this,Zd);X(this,jt,void 0);X(this,Pe,void 0);X(this,nu,void 0);X(this,Ot,void 0);X(this,ls,void 0);X(this,Ro,void 0);X(this,Xn,void 0);X(this,ru,void 0);X(this,_o,void 0);X(this,Io,void 0);X(this,us,void 0);X(this,cs,void 0);X(this,oi,void 0);X(this,Lo,new Set);this.options=n,W(this,jt,t),W(this,Xn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Pe).addObserver(this),mb(M(this,Pe),this.options)?le(this,ds,Fa).call(this):this.updateResult(),le(this,au,Hg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qg(M(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qg(M(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,le(this,lu,Gg).call(this),le(this,uu,Kg).call(this),M(this,Pe).removeObserver(this)}setOptions(t,n){const r=this.options,i=M(this,Pe);if(this.options=M(this,jt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");le(this,cu,qg).call(this),M(this,Pe).setOptions(this.options),r._defaulted&&!$g(this.options,r)&&M(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Pe),observer:this});const s=this.hasListeners();s&&gb(M(this,Pe),i,this.options,r)&&le(this,ds,Fa).call(this),this.updateResult(n),s&&(M(this,Pe)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&le(this,iu,Bg).call(this);const o=le(this,su,Ug).call(this);s&&(M(this,Pe)!==i||this.options.enabled!==r.enabled||o!==M(this,oi))&&le(this,ou,Wg).call(this,o)}getOptimisticResult(t){const n=M(this,jt).getQueryCache().build(M(this,jt),t),r=this.createResult(n,t);return u9(this,r)&&(W(this,Ot,r),W(this,Ro,this.options),W(this,ls,M(this,Pe).state)),r}getCurrentResult(){return M(this,Ot)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){M(this,Lo).add(t)}getCurrentQuery(){return M(this,Pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,jt).defaultQueryOptions(t),r=M(this,jt).getQueryCache().build(M(this,jt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return le(this,ds,Fa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ot)))}createResult(t,n){var T;const r=M(this,Pe),i=this.options,s=M(this,Ot),o=M(this,ls),a=M(this,Ro),u=t!==r?t.state:M(this,nu),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const C=this.hasListeners(),k=!C&&mb(t,n),A=C&&gb(t,r,n,i);(k||A)&&(d={...d,...hA(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:x}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(o==null?void 0:o.data)&&n.select===M(this,ru))p=M(this,_o);else try{W(this,ru,n.select),p=n.select(d.data),p=Vg(s==null?void 0:s.data,p,n),W(this,_o,p),W(this,Xn,null)}catch(C){W(this,Xn,C)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let C;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))C=s.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((T=M(this,Io))==null?void 0:T.state.data,M(this,Io)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),W(this,Xn,null)}catch(k){W(this,Xn,k)}C!==void 0&&(x="success",p=Vg(s==null?void 0:s.data,C,n),f=!0)}M(this,Xn)&&(h=M(this,Xn),p=M(this,_o),m=Date.now(),x="error");const g=d.fetchStatus==="fetching",y=x==="pending",v=x==="error",w=y&&g,S=p!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:y,isSuccess:x==="success",isError:v,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:v&&S,isStale:cy(t,n),refetch:this.refetch}}updateResult(t){const n=M(this,Ot),r=this.createResult(M(this,Pe),this.options);if(W(this,ls,M(this,Pe).state),W(this,Ro,this.options),M(this,ls).data!==void 0&&W(this,Io,M(this,Pe)),$g(r,n))return;W(this,Ot,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!M(this,Lo).size)return!0;const l=new Set(a??M(this,Lo));return this.options.throwOnError&&l.add("error"),Object.keys(M(this,Ot)).some(u=>{const c=u;return M(this,Ot)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),le(this,Zd,mA).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&le(this,au,Hg).call(this)}},jt=new WeakMap,Pe=new WeakMap,nu=new WeakMap,Ot=new WeakMap,ls=new WeakMap,Ro=new WeakMap,Xn=new WeakMap,ru=new WeakMap,_o=new WeakMap,Io=new WeakMap,us=new WeakMap,cs=new WeakMap,oi=new WeakMap,Lo=new WeakMap,ds=new WeakSet,Fa=function(t){le(this,cu,qg).call(this);let n=M(this,Pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(dn)),n},iu=new WeakSet,Bg=function(){if(le(this,lu,Gg).call(this),Go||M(this,Ot).isStale||!Fg(this.options.staleTime))return;const n=uA(M(this,Ot).dataUpdatedAt,this.options.staleTime)+1;W(this,us,setTimeout(()=>{M(this,Ot).isStale||this.updateResult()},n))},su=new WeakSet,Ug=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Pe)):this.options.refetchInterval)??!1},ou=new WeakSet,Wg=function(t){le(this,uu,Kg).call(this),W(this,oi,t),!(Go||this.options.enabled===!1||!Fg(M(this,oi))||M(this,oi)===0)&&W(this,cs,setInterval(()=>{(this.options.refetchIntervalInBackground||ly.isFocused())&&le(this,ds,Fa).call(this)},M(this,oi)))},au=new WeakSet,Hg=function(){le(this,iu,Bg).call(this),le(this,ou,Wg).call(this,le(this,su,Ug).call(this))},lu=new WeakSet,Gg=function(){M(this,us)&&(clearTimeout(M(this,us)),W(this,us,void 0))},uu=new WeakSet,Kg=function(){M(this,cs)&&(clearInterval(M(this,cs)),W(this,cs,void 0))},cu=new WeakSet,qg=function(){const t=M(this,jt).getQueryCache().build(M(this,jt),this.options);if(t===M(this,Pe))return;const n=M(this,Pe);W(this,Pe,t),W(this,nu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Zd=new WeakSet,mA=function(t){ht.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ot))}),M(this,jt).getQueryCache().notify({query:M(this,Pe),type:"observerResultsUpdated"})})},iE);function l9(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mb(e,t){return l9(e,t)||e.state.data!==void 0&&Qg(e,t,t.refetchOnMount)}function Qg(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cy(e,t)}return!1}function gb(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&cy(e,n)}function cy(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function u9(e,t){return!$g(e.getCurrentResult(),t)}var gA=b.createContext(void 0),c9=e=>{const t=b.useContext(gA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},d9=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(gA.Provider,{value:e,children:t})),vA=b.createContext(!1),f9=()=>b.useContext(vA);vA.Provider;function p9(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var h9=b.createContext(p9()),m9=()=>b.useContext(h9);function g9(e,t){return typeof e=="function"?e(...t):!!e}var v9=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},y9=e=>{b.useEffect(()=>{e.clearReset()},[e])},x9=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&g9(n,[e.error,r]),w9=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},b9=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,S9=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function E9(e,t,n){const r=c9(n),i=f9(),s=m9(),o=r.defaultQueryOptions(e);o._optimisticResults=i?"isRestoring":"optimistic",w9(o),v9(o,s),y9(s);const[a]=b.useState(()=>new t(r,o)),l=a.getOptimisticResult(o);if(b.useSyncExternalStore(b.useCallback(u=>{const c=i?()=>{}:a.subscribe(ht.batchCalls(u));return a.updateResult(),c},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),b.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),b9(o,l))throw S9(o,a,s);if(x9({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function yA(e,t){return E9(e,a9,t)}async function P9(){try{return(await lp.get("/projects")).data}catch{return[{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],cover:null,semester:"Fall 2023",__v:0},{_id:"66292f8768dc79f8d04536b9",name:"Pattern of Life Application",organization:"Praxis Engineering",description:`The Fall 2023 GDIT project was a "pattern of life" understanding system. This Android application collects key data metrics from users including location, application usage, and message data and coallates it to form an understanding of a user's pattern of life.`,members:[{memberInfo:{_id:"66292f8768dc79f8d0453670",firstName:"Aidan",lastName:"Melvin",profileUrl:"https://gravatar.com/avatar/5e99dcb1de10b83cd0e90620d77b046c13ff633b688f72dbb5a3c22202b2f1d7"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453695",firstName:"Mohammad",lastName:"Abd-Elmoniem",profileUrl:"https://gravatar.com/avatar/767766ff1d10a3d06a4e222b42a3ae7ff16a11bb83e25385202089a77efab30e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453697",firstName:"Nishkal",lastName:"Hundia",profileUrl:"https://gravatar.com/avatar/bb1facd1c2182bdc9f840b9b4c396e67ea94ad2395f76a4fac43a7d43b6a437e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453699",firstName:"Ojas",lastName:"Jagtap",profileUrl:"https://gravatar.com/avatar/68e78c20b977b3ff0f44d1e1f9f5a0ec6be745620062d6709fcbf8a73ff773df"},role:"Full-stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369b",firstName:"Josiah",lastName:"Lim",profileUrl:"https://gravatar.com/avatar/b277c291ff3c46b46124f62ae5f8d9fc5cd052300814f5bdbd89580759bcc027"},role:"ML Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369d",firstName:"Om",lastName:"Duggineni",profileUrl:"https://gravatar.com/avatar/00b197895f49ed34677306f551bddceaaa7c65756a238e2aee72b6ef95fd8525"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369f",firstName:"Dev",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/fb0bc07ce80323d4513cf2b60118de6dca5dd70a9edf08d12aa2b3c4451733ab"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a1",firstName:"Ananth",lastName:"Sankaralingam",profileUrl:"https://gravatar.com/avatar/ef0cd3559a6c30fc53bebd50c1533136de0d10c69b6b7a5df1fbe607b6b19e7d"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a3",firstName:"Advik",lastName:"Sachdeva",profileUrl:"https://gravatar.com/avatar/3b4653ea5eec167a3498fce281baf6ad961c465805b7758b0d77a090a3b666eb"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a5",firstName:"Rahul",lastName:"Ramasubramanian",profileUrl:"https://gravatar.com/avatar/9b42bb4f4bdb330a258afce57cee5b14b67de14c5ebbcc86814fcd270fff669c"},role:"Full-Stack Engineer"}],cover:null,semester:"Fall 2023",__v:0}]}}async function C9(e){try{return(await lp.get(`/projects/${e}`)).data}catch{return{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],demo:"https://www.youtube.com/embed/UFwHEMrSO-M?si=NmlpAyAtZwOLEPiE",cover:null,semester:"Fall 2023",__v:0}}}const xA={getAll:P9,getById:C9};var $a={},wA={},vp={},eo=de&&de.__assign||function(){return eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(!((c=h==null?void 0:h.in)===null||c===void 0)&&c.style)&&(h.in.style.transform=function(v){return m.in.map(function(w){return vb(w,v)}).join(" ")}),m.out.length>0&&(!((d=h==null?void 0:h.out)===null||d===void 0)&&d.style)&&(h.out.style.transform=function(v){return m.out.map(function(w){return vb(w,v)}).join(" ")}),h};vp.batch=T9;var Pi={},As={},dy={},Xg=de&&de.__assign||function(){return Xg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")){if(t==="height")return yb&&xb?window.screen.height-80:window.innerHeight;if(t==="width")return yb&&xb?window.screen.width:window.innerWidth}}});fy.default=k9;var yp={};Object.defineProperty(yp,"__esModule",{value:!0});yp.SimpleInterpolation=void 0;var M9=function(e,t,n){return e*(1-n)+t*n};yp.SimpleInterpolation=M9;(function(e){var t=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.computeStyle=e.SimpleInterpolation=e.environment=void 0;var n=t(dy);e.computeStyle=n.default;var r=t(fy);e.environment=r.default;var i=yp;Object.defineProperty(e,"SimpleInterpolation",{enumerable:!0,get:function(){return i.SimpleInterpolation}})})(As);Object.defineProperty(Pi,"__esModule",{value:!0});Pi.FadeOut=Pi.FadeIn=Pi.Fade=void 0;var zd=As,O9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,zd.SimpleInterpolation)(e,t,n)}}},out:{style:{opacity:function(n){return(0,zd.SimpleInterpolation)(t,e,n)}}}}};Pi.Fade=O9;var R9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,zd.SimpleInterpolation)(e,t,n)}}}}};Pi.FadeIn=R9;var _9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{out:{style:{opacity:function(n){return(0,zd.SimpleInterpolation)(e,t,n)}}}}};Pi.FadeOut=_9;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.MoveOut=Ci.MoveIn=Ci.Move=void 0;var pi=As,I9=function(e,t,n,r){return e===void 0&&(e=0),t===void 0&&(t=100),n===void 0&&(n=null),r===void 0&&(r=-100),{in:{style:{transform:function(i){return"translate(".concat((0,pi.SimpleInterpolation)(e,0,i),"px, ").concat((0,pi.SimpleInterpolation)(t,0,i),"px)")}}},out:{style:{transform:function(i){return"translate(".concat((0,pi.SimpleInterpolation)(0,n||e,i),"px, ").concat((0,pi.SimpleInterpolation)(0,r||t,i),"px)")}}}}};Ci.Move=I9;var L9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=100),{in:{style:{transform:function(n){return"translate(".concat((0,pi.SimpleInterpolation)(e,0,n),"px, ").concat((0,pi.SimpleInterpolation)(t,0,n),"px)")}}}}};Ci.MoveIn=L9;var j9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=-100),{out:{style:{transform:function(n){return"translate(".concat((0,pi.SimpleInterpolation)(0,e,n),"px, ").concat((0,pi.SimpleInterpolation)(0,t,n),"px)")}}}}};Ci.MoveOut=j9;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.StickyOut=Ti.StickyIn=Ti.Sticky=void 0;var xn=As,D9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}}}};Ti.Sticky=D9;var N9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"absolute"}}}};Ti.StickyIn=N9;var F9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:"".concat(e*xn.environment.width/100,"px"),top:"".concat(t*xn.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"absolute"}},out:{style:{left:"".concat(e*xn.environment.width/100,"px"),top:"".concat(t*xn.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"fixed"}}}};Ti.StickyOut=F9;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.ZoomOut=Ai.ZoomIn=Ai.Zoom=void 0;var Vd=As,$9=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Vd.SimpleInterpolation)(e,t,n),")")}}},out:{style:{transform:function(n){return"scale(".concat((0,Vd.SimpleInterpolation)(t,e,n),")")}}}}};Ai.Zoom=$9;var z9=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Vd.SimpleInterpolation)(e,t,n),")")}}}}};Ai.ZoomIn=z9;var V9=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=10),{out:{style:{transform:function(n){return"scale(".concat((0,Vd.SimpleInterpolation)(e,t,n),")")}}}}};Ai.ZoomOut=V9;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomOut=e.ZoomIn=e.Zoom=e.StickyOut=e.StickyIn=e.Sticky=e.MoveOut=e.MoveIn=e.Move=e.FadeOut=e.FadeIn=e.Fade=e.batch=void 0;var t=vp;Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return t.batch}});var n=Pi;Object.defineProperty(e,"Fade",{enumerable:!0,get:function(){return n.Fade}}),Object.defineProperty(e,"FadeIn",{enumerable:!0,get:function(){return n.FadeIn}}),Object.defineProperty(e,"FadeOut",{enumerable:!0,get:function(){return n.FadeOut}});var r=Ci;Object.defineProperty(e,"Move",{enumerable:!0,get:function(){return r.Move}}),Object.defineProperty(e,"MoveIn",{enumerable:!0,get:function(){return r.MoveIn}}),Object.defineProperty(e,"MoveOut",{enumerable:!0,get:function(){return r.MoveOut}});var i=Ti;Object.defineProperty(e,"Sticky",{enumerable:!0,get:function(){return i.Sticky}}),Object.defineProperty(e,"StickyIn",{enumerable:!0,get:function(){return i.StickyIn}}),Object.defineProperty(e,"StickyOut",{enumerable:!0,get:function(){return i.StickyOut}});var s=Ai;Object.defineProperty(e,"Zoom",{enumerable:!0,get:function(){return s.Zoom}}),Object.defineProperty(e,"ZoomIn",{enumerable:!0,get:function(){return s.ZoomIn}}),Object.defineProperty(e,"ZoomOut",{enumerable:!0,get:function(){return s.ZoomOut}})})(wA);var py={},xp={},wp={},_i={},hy={};Object.defineProperty(hy,"__esModule",{value:!0});var B9={currentY:0,viewportHeight:0,totalPage:0,totalHeight:0,totalProgress:0,realPage:0,currentPage:0,currentProgress:0};hy.default=B9;var my={};Object.defineProperty(my,"__esModule",{value:!0});var U9={page:0};my.default=U9;var bA=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});_i.initialScrollPage=_i.initialScrollData=void 0;var W9=bA(hy);_i.initialScrollData=W9.default;var H9=bA(my);_i.initialScrollPage=H9.default;Object.defineProperty(wp,"__esModule",{value:!0});wp.ScrollDataContext=void 0;var G9=b,K9=_i;wp.ScrollDataContext=(0,G9.createContext)(K9.initialScrollData);var bp={};Object.defineProperty(bp,"__esModule",{value:!0});bp.ScrollPageContext=void 0;var q9=b,Q9=_i;bp.ScrollPageContext=(0,q9.createContext)(Q9.initialScrollPage);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollPageContext=e.ScrollDataContext=void 0;var t=wp;Object.defineProperty(e,"ScrollDataContext",{enumerable:!0,get:function(){return t.ScrollDataContext}});var n=bp;Object.defineProperty(e,"ScrollPageContext",{enumerable:!0,get:function(){return n.ScrollPageContext}})})(xp);var to=de&&de.__assign||function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{t.current=new IntersectionObserver(([i])=>r(i.isIntersecting))},[]),b.useEffect(()=>{if(t.current)return t.current.observe(e.current),()=>{t.current&&t.current.disconnect()}},[e]),n}const fV="modulepreload",pV=function(e){return"/"+e},Eb={},Ee=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=pV(l),l in Eb)return;Eb[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const h=s[p];if(h.href===l&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":fV,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Bh="generated",SG="pointerdown",EG="pointerup",PG="pointerleave",CG="pointerout",TG="pointermove",AG="touchstart",kG="touchend",MG="touchmove",OG="touchcancel",RG="resize",_G="visibilitychange",yy="tsParticles - Error",no=100,Pb=.5,SA=1e3;function IG(e){return typeof e=="boolean"}function Ql(e){return typeof e=="string"}function aa(e){return typeof e=="number"}function cc(e){return typeof e=="object"&&e!==null}function ks(e){return Array.isArray(e)}const Gn={x:0,y:0,z:0},Cb=2,hV=1;class Rn{constructor(t,n,r){if(this._updateFromAngle=(i,s)=>{this.x=Math.cos(i)*s,this.y=Math.sin(i)*s},!aa(t)&&t){this.x=t.x,this.y=t.y;const i=t;this.z=i.z?i.z:Gn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=r??Gn.z;else throw new Error(`${yy} Vector3d not initialized correctly`)}static get origin(){return Rn.create(Gn.x,Gn.y,Gn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return Rn.create(t.x,t.y,t.z)}static create(t,n,r){return new Rn(t,n,r)}add(t){return Rn.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return Rn.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return Rn.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Cb+this.y**Cb}mult(t){return Rn.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(hV/t)}rotate(t){return Rn.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Gn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Gn.z}sub(t){return Rn.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class hs extends Rn{constructor(t,n){super(t,n,Gn.z)}static get origin(){return hs.create(Gn.x,Gn.y)}static clone(t){return hs.create(t.x,t.y)}static create(t,n){return new hs(t,n)}}let mV=Math.random;const Yg=new Map,gV=2,vV=Math.PI*gV;function LG(e,t){Yg.get(e)||Yg.set(e,t)}function jG(e){return Yg.get(e)??(t=>t)}function ar(){return xy(mV(),0,1-Number.EPSILON)}function xy(e,t,n){return Math.min(Math.max(e,t),n)}function Uh(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function wo(e){const t=Ep(e),n=0;let r=Sp(e);return t===r&&(r=n),ar()*(t-r)+r}function at(e){return aa(e)?e:wo(e)}function Sp(e){return aa(e)?e:e.min}function Ep(e){return aa(e)?e:e.max}function il(e,t){if(e===t||t===void 0&&aa(e))return e;const n=Sp(e),r=Ep(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(r,t)}:il(n,r)}function EA(e,t){const n=e.x-t.x,r=e.y-t.y,i=2;return{dx:n,dy:r,distance:Math.sqrt(n**i+r**i)}}function DG(e,t){return EA(e,t).distance}function yV(e){return e*Math.PI/180}function NG(e,t,n){if(aa(e))return yV(e);const r=0,i=.5,s=.25,o=i+s;switch(e){case"top":return-Math.PI*i;case"top-right":return-Math.PI*s;case"right":return r;case"bottom-right":return Math.PI*s;case"bottom":return Math.PI*i;case"bottom-left":return Math.PI*o;case"left":return Math.PI;case"top-left":return-Math.PI*o;case"inside":return Math.atan2(n.y-t.y,n.x-t.x);case"outside":return Math.atan2(t.y-n.y,t.x-n.x);default:return ar()*vV}}function FG(e){const t=hs.origin;return t.length=1,t.angle=e,t}function Tb(e,t,n,r){return hs.create(e.x*(n-r)/(n+r)+t.x*2*r/(n+r),e.y)}function $G(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??ar()*e.size.width,y:((n=e.position)==null?void 0:n.y)??ar()*e.size.height}}function PA(e){return e?e.endsWith("%")?parseFloat(e)/no:parseFloat(e):1}const xV={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function wV(){return xV}function Ab(e){const t={bounced:!1},{pSide:n,pOtherSide:r,rectSide:i,rectOtherSide:s,velocity:o,factor:a}=e,l=.5,u=0;return r.mins.max||r.maxs.max||(n.max>=i.min&&n.max<=(i.max+i.min)*l&&o>u||n.min<=i.max&&n.min>(i.max+i.min)*l&&oe.matches(r));return ks(n)?n.some(r=>r):n}function Pp(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function SV(){return!Pp()&&typeof matchMedia<"u"}function zG(e){if(SV())return matchMedia(e)}function VG(e){if(!(Pp()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function BG(e){if(!(Pp()||typeof MutationObserver>"u"))return new MutationObserver(e)}function CA(e,t){return e===t||ks(t)&&t.indexOf(e)>-1}async function UG(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function EV(e){return Math.floor(ar()*e.length)}function wy(e,t,n=!0){return e[t!==void 0&&n?t%e.length:EV(e)]}function WG(e,t,n,r,i){return PV(TA(e,r??0),t,n,i)}function PV(e,t,n,r){let i=!0;return(!r||r==="bottom")&&(i=e.topn.x),i&&(!r||r==="right")&&(i=e.leftn.y),i}function TA(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function kb(e,...t){for(const n of t){if(n==null)continue;if(!cc(n)){e=n;continue}const r=Array.isArray(n);r&&(cc(e)||!e||!Array.isArray(e))?e=[]:!r&&(cc(e)||!e||Array.isArray(e))&&(e={});for(const i in n){if(i==="__proto__")continue;const s=n,o=s[i],a=e;a[i]=cc(o)&&Array.isArray(o)?o.map(l=>kb(a[i],l)):kb(a[i],o)}}return e}function HG(e,t){return!!kA(t,n=>n.enable&&CA(e,n.mode))}function GG(e,t,n){Xl(t,r=>{const i=r.mode;r.enable&&CA(e,i)&&CV(r,n)})}function CV(e,t){const n=e.selectors;Xl(n,r=>{t(r,e)})}function KG(e,t){if(!(!t||!e))return kA(e,n=>bV(t,n.selectors))}function qG(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:hs.create(at(e.options.bounce.horizontal.value),at(e.options.bounce.vertical.value))}}function QG(e,t){const{x:n,y:r}=e.velocity.sub(t.velocity),[i,s]=[e.position,t.position],{dx:o,dy:a}=EA(s,i);if(n*o+r*a<0)return;const u=-Math.atan2(a,o),c=e.mass,d=t.mass,f=e.velocity.rotate(u),p=t.velocity.rotate(u),h=Tb(f,p,c,d),m=Tb(p,f,c,d),x=h.rotate(-u),g=m.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function XG(e,t){const n=e.getPosition(),r=e.getRadius(),i=TA(n,r),s=e.options.bounce,o=Ab({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:at(s.horizontal.value)});o.bounced&&(o.velocity!==void 0&&(e.velocity.x=o.velocity),o.position!==void 0&&(e.position.x=o.position));const a=Ab({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:at(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function Xl(e,t){return ks(e)?e.map((r,i)=>t(r,i)):t(e,0)}function AA(e,t,n){return ks(e)?wy(e,t,n):e}function kA(e,t){return ks(e)?e.find((r,i)=>t(r,i)):t(e,0)?e:void 0}function YG(e,t){const n=e.value,r=e.animation,i={delayTime:at(r.delay)*SA,enable:r.enable,value:at(e.value)*t,max:Ep(n)*t,min:Sp(n)*t,loops:0,maxLoops:at(r.count),time:0},s=1;if(r.enable){switch(i.decay=s-at(r.decay),r.mode){case"increase":i.status="increasing";break;case"decrease":i.status="decreasing";break;case"random":i.status=ar()>=Pb?"increasing":"decreasing";break}const o=r.mode==="auto";switch(r.startValue){case"min":i.value=i.min,o&&(i.status="increasing");break;case"max":i.value=i.max,o&&(i.status="decreasing");break;case"random":default:i.value=wo(i),o&&(i.status=ar()>=Pb?"increasing":"decreasing");break}}return i.initialValue=i.value,i}function TV(e,t){if(!(e.mode==="percent")){const{mode:i,...s}=e;return s}return"x"in e?{x:e.x/no*t.width,y:e.y/no*t.height}:{width:e.width/no*t.width,height:e.height/no*t.height}}function ZG(e,t){return TV(e,t)}function AV(e,t,n,r,i){switch(t){case"max":n>=i&&e.destroy();break;case"min":n<=r&&e.destroy();break}}function JG(e,t,n,r,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*i.factor,d=t.min,f=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case"increasing":t.value>=f?(n?t.status="decreasing":t.value-=f,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case"decreasing":t.value<=d?(n?t.status="increasing":t.value+=f,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),AV(e,r,t.value,d,f),e.destroyed||(t.value=xy(t.value,d,f))}}class kV{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let r=this._listeners.get(t);r||(r=[],this._listeners.set(t,r)),r.push(n)}dispatchEvent(t,n){const r=this._listeners.get(t);r==null||r.forEach(i=>i(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const r=this._listeners.get(t);if(!r)return;const i=r.length,s=r.indexOf(n);if(s<0)return;const a=1;i===a?this._listeners.delete(t):r.splice(s,a)}}async function Wh(e,t,n,r=!1){let i=t.get(e);return(!i||r)&&(i=await Promise.all([...n.values()].map(s=>s(e))),t.set(e,i)),i}async function MV(e){const t=AA(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(wV().error(`${yy} ${n.status} while retrieving config file`),e.fallback)}class OV{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new kV,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,r]of this._configs)t[n]=r;return t}get version(){return"3.3.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:n,config:t}})}async addEffect(t,n,r=!0){Xl(t,i=>{this.getEffectDrawer(i)||this.effectDrawers.set(i,n)}),await this.refresh(r)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,r=!0){this._initializers.interactors.set(t,n),await this.refresh(r)}async addMover(t,n,r=!0){this._initializers.movers.set(t,n),await this.refresh(r)}async addParticleUpdater(t,n,r=!0){this._initializers.updaters.set(t,n),await this.refresh(r)}async addPathGenerator(t,n,r=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(r)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,r=!1,i=!0){(r||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(i)}async addShape(t,n,r=!0){Xl(t,i=>{this.getShapeDrawer(i)||this.shapeDrawers.set(i,n)}),await this.refresh(r)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this._domArray}domItem(t){const n=this.dom(),r=n[t];if(!r||r.destroyed){n.splice(t,1);return}return r}async getAvailablePlugins(t){const n=new Map;for(const r of this.plugins)r.needsPlugin(t.actualOptions)&&n.set(r.id,await r.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return await Wh(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return await Wh(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return await Wh(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}async load(t){var m;const r=t.id??((m=t.element)==null?void 0:m.id)??`tsparticles${Math.floor(ar()*1e4)}`,{index:i,url:s}=t,o=s?await MV({fallback:t.options,url:s,index:i}):t.options;let a=t.element??document.getElementById(r);a||(a=document.createElement("div"),a.id=r,document.body.append(a));const l=AA(o,i),u=this.dom(),c=u.findIndex(x=>x.id.description===r),d=0;if(c>=d){const x=this.domItem(c);x&&!x.destroyed&&(x.destroy(),u.splice(c,1))}let f;if(a.tagName.toLowerCase()==="canvas")f=a,f.dataset[Bh]="false";else{const x=a.getElementsByTagName("canvas");x.length?(f=x[0],f.dataset[Bh]="false"):(f=document.createElement("canvas"),f.dataset[Bh]="true",a.appendChild(f))}f.style.width||(f.style.width="100%"),f.style.height||(f.style.height="100%");const{Container:p}=await Ee(()=>import("./Container-B_zY_gSG.js"),__vite__mapDeps([0,1,2,3,4])),h=new p(this,r,l);return c>=d?u.splice(c,0,h):u.push(h),h.canvas.loadCanvas(f),await h.start(),h}loadOptions(t,n){for(const r of this.plugins)r.loadOptions(t,n)}loadParticlesOptions(t,n,...r){var s;const i=this.updaters.get(t);if(i)for(const o of i)(s=o.loadOptions)==null||s.call(o,n,...r)}async refresh(t=!0){t&&await Promise.all(this.dom().map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const n=this.dom();if(!n.length)throw new Error(`${yy} can only set click handlers after calling tsParticles.load()`);for(const r of n)r.addClickHandler(t)}}const Ud="random",Fc="mid",Cp=new Map;function Mb(e){Cp.set(e.key,e)}function RV(e){for(const[,l]of Cp)if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,d,f)=>u+u+c+c+d+d+(f!==void 0?f+f:"")),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=r.exec(n),s=16;return i?{a:i[4]!==void 0?parseInt(i[4],s)/255:1,b:parseInt(i[3],s),g:parseInt(i[2],s),r:parseInt(i[1],s)}:void 0}function Wd(e,t,n=!0){if(!e)return;const r=Ql(e)?{value:e}:e;if(Ql(r.value))return MA(r.value,t,n);if(ks(r.value))return Wd({value:wy(r.value,t,n)});for(const[,i]of Cp){const s=i.handleRangeColor(r);if(s)return s}}function MA(e,t,n=!0){if(!e)return;const r=Ql(e)?{value:e}:e;if(Ql(r.value))return r.value===Ud?OA():IV(r.value);if(ks(r.value))return MA({value:wy(r.value,t,n)});for(const[,i]of Cp){const s=i.handleColor(r);if(s)return s}}function eK(e,t,n=!0){const r=Wd(e,t,n);return r?_V(r):void 0}function _V(e){const c=e.r/255,d=e.g/255,f=e.b/255,p=Math.max(c,d,f),h=Math.min(c,d,f),m={h:0,l:(p+h)*.5,s:0};return p!==h&&(m.s=m.l<.5?(p-h)/(p+h):(p-h)/(2-p-h),m.h=c===p?(d-f)/(p-h):m.h=d===p?2+(f-c)/(p-h):2*2+(c-d)/(p-h)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function IV(e){return RV(e)}function Ko(e){const o=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=o/360,c=a/100,d=l/100,f=255,p=3;if(a===0){const k=Math.round(d*f);return{r:k,g:k,b:k}}const h=.5,m=2,x=(k,A,R)=>{if(R<0&&R++,R>1&&R--,R*6<1)return k+(A-k)*6*R;if(R*m<1)return A;if(R*p<1*m){const B=m/p;return k+(A-k)*(B-R)*6}return k},g=1,y=d0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?wo(e.offset):0,d=(e.velocity??0)*r.factor+c*3.6,f=e.decay??1,p=Ep(t),h=Sp(t);!n||e.status==="increasing"?(e.value+=d,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status="decreasing":e.value-=p)):(e.value-=d,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing")),e.velocity&&f!==1&&(e.velocity*=f),e.value=xy(e.value,h,p)}function aK(e,t){if(!e)return;const{h:n,s:r,l:i}=e,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Gh(n,s.h,!1,t),r&&Gh(r,s.s,!0,t),i&&Gh(i,s.l,!0,t)}class DV{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.s!==void 0&&r.l!==void 0)return Ko(r)}handleRangeColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.l!==void 0)return Ko({h:at(r.h),l:at(r.l),s:at(r.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=4,s=1,o=10;return r?LV({a:r.length>i?PA(r[5]):s,h:parseInt(r[1],o),l:parseInt(r[3],o),s:parseInt(r[2],o)}):void 0}}class NV{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return r}handleRangeColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return{r:at(r.r),g:at(r.g),b:at(r.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=10;return r?{a:r.length>4?PA(r[5]):1,b:parseInt(r[3],i),g:parseInt(r[2],i),r:parseInt(r[1],i)}:void 0}}function FV(){const e=new NV,t=new DV;Mb(e),Mb(t);const n=new OV;return n.init(),n}const by=FV();Pp()||(window.tsParticles=by);const $V=e=>{const t=e.id??"tsparticles";return b.useEffect(()=>{let n;return by.load({id:t,url:e.url,options:e.options}).then(r=>{var i;n=r,(i=e.particlesLoaded)==null||i.call(e,r)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),E.jsx("div",{id:t,className:e.className})};async function zV(e){await e(by)}async function VV(e,t=!0){const{loadParallaxMover:n}=await Ee(()=>import("./index-DIXDNPUm.js"),[]),{loadExternalAttractInteraction:r}=await Ee(()=>import("./index-CoWLkqJw.js"),[]),{loadExternalBounceInteraction:i}=await Ee(()=>import("./index-waDFwdpY.js"),[]),{loadExternalBubbleInteraction:s}=await Ee(()=>import("./index-CKLG1pGI.js"),__vite__mapDeps([5,2])),{loadExternalConnectInteraction:o}=await Ee(()=>import("./index-DMU0kD1I.js"),[]),{loadExternalGrabInteraction:a}=await Ee(()=>import("./index-BA8kTSU-.js"),__vite__mapDeps([6,2])),{loadExternalPauseInteraction:l}=await Ee(()=>import("./index-gtmV3PGV.js"),[]),{loadExternalPushInteraction:u}=await Ee(()=>import("./index-Bb9-9aB9.js"),[]),{loadExternalRemoveInteraction:c}=await Ee(()=>import("./index-BP0n4XC6.js"),[]),{loadExternalRepulseInteraction:d}=await Ee(()=>import("./index-Bdcr2kqX.js"),[]),{loadExternalSlowInteraction:f}=await Ee(()=>import("./index-DrAI_B4E.js"),[]),{loadParticlesAttractInteraction:p}=await Ee(()=>import("./index-D67SAAtJ.js"),[]),{loadParticlesCollisionsInteraction:h}=await Ee(()=>import("./index-D5i61_SE.js"),[]),{loadParticlesLinksInteraction:m}=await Ee(()=>import("./index-Dyr8Xn4o.js"),__vite__mapDeps([7,2])),{loadEasingQuadPlugin:x}=await Ee(()=>import("./index-BSf9gbQ8.js"),[]),{loadEmojiShape:g}=await Ee(()=>import("./index-9OwJQEAY.js").then(R=>R.i),[]),{loadImageShape:y}=await Ee(()=>import("./index-D88zuU4-.js").then(R=>R.i),[]),{loadLineShape:v}=await Ee(()=>import("./index-BMg955LU.js"),[]),{loadPolygonShape:w}=await Ee(()=>import("./index-B5-8JYOL.js"),[]),{loadSquareShape:S}=await Ee(()=>import("./index-DRJNGGWz.js"),[]),{loadStarShape:P}=await Ee(()=>import("./index-z6BLfaeE.js"),[]),{loadLifeUpdater:T}=await Ee(()=>import("./index-BuoU-80l.js"),[]),{loadRotateUpdater:C}=await Ee(()=>import("./index-BG0_Xxds.js"),[]),{loadStrokeColorUpdater:k}=await Ee(()=>import("./index-B2af72G9.js"),[]),{loadBasic:A}=await Ee(()=>import("./index-BYKb1fZz.js"),[]);await n(e,!1),await r(e,!1),await i(e,!1),await s(e,!1),await o(e,!1),await a(e,!1),await l(e,!1),await u(e,!1),await c(e,!1),await d(e,!1),await f(e,!1),await p(e,!1),await h(e,!1),await m(e,!1),await x(),await g(e,!1),await y(e,!1),await v(e,!1),await w(e,!1),await S(e,!1),await P(e,!1),await T(e,!1),await C(e,!1),await k(e,!1),await A(e,t)}const Sy="-";function BV(e){const t=WV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(Sy);return a[0]===""&&a.length!==1&&a.shift(),RA(a,t)||UV(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function RA(e,t){var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?RA(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Sy);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId}const Ob=/^\[(.+)\]$/;function UV(e){if(Ob.test(e)){const t=Ob.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function WV(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return GV(Object.entries(e.classGroups),n).forEach(([s,o])=>{Zg(o,r,s,t)}),r}function Zg(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Rb(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(HV(i)){Zg(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Zg(o,Rb(t,s),n,r)})})}function Rb(e,t){let n=e;return t.split(Sy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function HV(e){return e.isThemeGetter}function GV(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function KV(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const _A="!";function qV(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(o){const a=[];let l=0,u=0,c;for(let m=0;mu?c-u:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}}}function QV(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function XV(e){return{cache:KV(e.cacheSize),splitModifiers:qV(e),...BV(e)}}const YV=/\s+/;function ZV(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(YV).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(o);let d=r(c?u.substring(0,c):u),f=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:o};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const p=QV(a).join(":");return{isTailwindClass:!0,modifierId:l?p+_A:p,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return s.has(c)?!1:(s.add(c),i(l,u).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function JV(){let e=0,t,n,r="";for(;ed(c),e());return n=XV(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=ZV(l,n);return i(l,c),c}return function(){return s(JV.apply(null,arguments))}}function Te(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const LA=/^\[(?:([a-z-]+):)?(.+)\]$/i,t7=/^\d+\/\d+$/,n7=new Set(["px","full","screen"]),r7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,i7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,s7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,o7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,a7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ur(e){return ns(e)||n7.has(e)||t7.test(e)}function Wr(e){return la(e,"length",m7)}function ns(e){return!!e&&!Number.isNaN(Number(e))}function dc(e){return la(e,"number",ns)}function Aa(e){return!!e&&Number.isInteger(Number(e))}function l7(e){return e.endsWith("%")&&ns(e.slice(0,-1))}function te(e){return LA.test(e)}function Hr(e){return r7.test(e)}const u7=new Set(["length","size","percentage"]);function c7(e){return la(e,u7,jA)}function d7(e){return la(e,"position",jA)}const f7=new Set(["image","url"]);function p7(e){return la(e,f7,v7)}function h7(e){return la(e,"",g7)}function ka(){return!0}function la(e,t,n){const r=LA.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function m7(e){return i7.test(e)&&!s7.test(e)}function jA(){return!1}function g7(e){return o7.test(e)}function v7(e){return a7.test(e)}function y7(){const e=Te("colors"),t=Te("spacing"),n=Te("blur"),r=Te("brightness"),i=Te("borderColor"),s=Te("borderRadius"),o=Te("borderSpacing"),a=Te("borderWidth"),l=Te("contrast"),u=Te("grayscale"),c=Te("hueRotate"),d=Te("invert"),f=Te("gap"),p=Te("gradientColorStops"),h=Te("gradientColorStopPositions"),m=Te("inset"),x=Te("margin"),g=Te("opacity"),y=Te("padding"),v=Te("saturate"),w=Te("scale"),S=Te("sepia"),P=Te("skew"),T=Te("space"),C=Te("translate"),k=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",te,t],I=()=>[te,t],L=()=>["",ur,Wr],N=()=>["auto",ns,te],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",te],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[ns,dc],ne=()=>[ns,te];return{cacheSize:500,separator:":",theme:{colors:[ka],spacing:[ur,Wr],blur:["none","",Hr,te],brightness:K(),borderColor:[e],borderRadius:["none","","full",Hr,te],borderSpacing:I(),borderWidth:L(),contrast:K(),grayscale:j(),hueRotate:ne(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[l7,Wr],inset:R(),margin:R(),opacity:K(),padding:I(),saturate:K(),scale:K(),sepia:j(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Hr]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),te]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Aa,te]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Aa,te]}],"grid-cols":[{"grid-cols":[ka]}],"col-start-end":[{col:["auto",{span:["full",Aa,te]},te]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[ka]}],"row-start-end":[{row:["auto",{span:[Aa,te]},te]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Hr]},Hr]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Hr,Wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dc]}],"font-family":[{font:[ka]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",ns,dc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ur,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ur,Wr]}],"underline-offset":[{"underline-offset":["auto",ur,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),d7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",c7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},p7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[ur,te]}],"outline-w":[{outline:[ur,Wr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ur,Wr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hr,h7]}],"shadow-color":[{shadow:[ka]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Hr,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Aa,te]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ur,Wr,dc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const x7=e7(y7);function _b(...e){return x7(re(e))}const DA=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Tp=b.createContext({}),Ey=b.createContext(null),Py=typeof document<"u",Cy=Py?b.useLayoutEffect:b.useEffect,NA=b.createContext({strict:!1}),Ty=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),w7="framerAppearId",FA="data-"+Ty(w7),b7={skipAnimations:!1,useManualTiming:!1};class Ib{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function S7(e){let t=new Ib,n=new Ib,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,f=d?t:n;return u&&o.add(l),f.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=S7(()=>n=!0),d),{}),o=d=>{s[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,E7),1),i.timestamp=d,i.isProcessing=!0,fc.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:fc.reduce((d,f)=>{const p=s[f];return d[f]=(h,m=!1,x=!1)=>(n||l(),p.schedule(h,m,x)),d},{}),cancel:d=>fc.forEach(f=>s[f].cancel(d)),state:i,steps:s}}const{schedule:Ay,cancel:lK}=$A(queueMicrotask,!1);function P7(e,t,n,r){const{visualElement:i}=b.useContext(Tp),s=b.useContext(NA),o=b.useContext(Ey),a=b.useContext(DA).reducedMotion,l=b.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;b.useInsertionEffect(()=>{u&&u.update(n,o)});const c=b.useRef(!!(n[FA]&&!window.HandoffComplete));return Cy(()=>{u&&(Ay.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),b.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C7(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ro(n)&&(n.current=r))},[t])}function Yl(e){return typeof e=="string"||Array.isArray(e)}function Ap(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ky=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],My=["initial",...ky];function kp(e){return Ap(e.animate)||My.some(t=>Yl(e[t]))}function zA(e){return!!(kp(e)||e.variants)}function T7(e,t){if(kp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Yl(n)?n:void 0,animate:Yl(r)?r:void 0}}return e.inherit!==!1?t:{}}function A7(e){const{initial:t,animate:n}=T7(e,b.useContext(Tp));return b.useMemo(()=>({initial:t,animate:n}),[Lb(t),Lb(n)])}function Lb(e){return Array.isArray(e)?e.join(" "):e}const jb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zl={};for(const e in jb)Zl[e]={isEnabled:t=>jb[e].some(n=>!!t[n])};function k7(e){for(const t in e)Zl[t]={...Zl[t],...e[t]}}const VA=b.createContext({}),BA=b.createContext({}),M7=Symbol.for("motionComponentSymbol");function O7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&k7(e);function s(a,l){let u;const c={...b.useContext(DA),...a,layoutId:R7(a)},{isStatic:d}=c,f=A7(a),p=r(a,d);if(!d&&Py){f.visualElement=P7(i,p,c,t);const h=b.useContext(BA),m=b.useContext(NA).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,m,e,h))}return E.jsxs(Tp.Provider,{value:f,children:[u&&f.visualElement?E.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,C7(p,f.visualElement,l),p,d,f.visualElement)]})}const o=b.forwardRef(s);return o[M7]=i,o}function R7({layoutId:e}){const t=b.useContext(VA).id;return t&&e!==void 0?t+"-"+e:e}function _7(e){function t(r,i={}){return O7(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const I7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Oy(e){return typeof e!="string"||e.includes("-")?!1:!!(I7.indexOf(e)>-1||/[A-Z]/u.test(e))}const Hd={};function L7(e){Object.assign(Hd,e)}const Ou=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ms=new Set(Ou);function UA(e,{layout:t,layoutId:n}){return Ms.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hd[e]||e==="opacity")}const At=e=>!!(e&&e.getVelocity),j7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D7=Ou.length;function N7(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),HA=WA("--"),F7=WA("var(--"),Ry=e=>F7(e)?$7.test(e.split("/*")[0].trim()):!1,$7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,z7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ii=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},sl={...ua,transform:e=>Ii(0,1,e)},pc={...ua,default:1},ol=e=>Math.round(e*1e5)/1e5,_y=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,V7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,B7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ru(e){return typeof e=="string"}const _u=e=>({test:t=>Ru(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kr=_u("deg"),sr=_u("%"),Y=_u("px"),U7=_u("vh"),W7=_u("vw"),Db={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},Nb={...ua,transform:Math.round},GA={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:Kr,rotateX:Kr,rotateY:Kr,rotateZ:Kr,scale:pc,scaleX:pc,scaleY:pc,scaleZ:pc,skew:Kr,skewX:Kr,skewY:Kr,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sl,originX:Db,originY:Db,originZ:Y,zIndex:Nb,backgroundPositionX:Y,backgroundPositionY:Y,fillOpacity:sl,strokeOpacity:sl,numOctaves:Nb};function Iy(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(HA(d)){s[d]=f;continue}const p=GA[d],h=z7(f,p);if(Ms.has(d)){if(l=!0,o[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=h):i[d]=h}if(t.transform||(l||r?i.transform=N7(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${f} ${p}`}}const Ly=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function KA(e,t,n){for(const r in t)!At(t[r])&&!UA(r,n)&&(e[r]=t[r])}function H7({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Ly();return Iy(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function G7(e,t,n){const r=e.style||{},i={};return KA(i,r,e),Object.assign(i,H7(e,t,n)),i}function K7(e,t,n){const r={},i=G7(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const q7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||q7.has(e)}let qA=e=>!Gd(e);function Q7(e){e&&(qA=t=>t.startsWith("on")?!Gd(t):e(t))}try{Q7(require("@emotion/is-prop-valid").default)}catch{}function X7(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qA(i)||n===!0&&Gd(i)||!t&&!Gd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Fb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function Y7(e,t,n){const r=Fb(t,e.x,e.width),i=Fb(n,e.y,e.height);return`${r} ${i}`}const Z7={offset:"stroke-dashoffset",array:"stroke-dasharray"},J7={offset:"strokeDashoffset",array:"strokeDasharray"};function eB(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Z7:J7;e[s.offset]=Y.transform(-r);const o=Y.transform(t),a=Y.transform(n);e[s.array]=`${o} ${a}`}function jy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Iy(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=Y7(m,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&eB(p,o,a,l,!1)}const QA=()=>({...Ly(),attrs:{}}),Dy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tB(e,t,n,r){const i=b.useMemo(()=>{const s=QA();return jy(s,t,{enableHardwareAcceleration:!1},Dy(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};KA(s,e.style,e),i.style={...s,...i.style}}return i}function nB(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Oy(n)?tB:K7)(r,s,o,n),u=X7(r,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=b.useMemo(()=>At(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function XA(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const YA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZA(e,t,n,r){XA(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YA.has(i)?i:Ty(i),t.attrs[i])}function Ny(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(At(i[o])||t.style&&At(t.style[o])||UA(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function JA(e,t,n){const r=Ny(e,t,n);for(const i in e)if(At(e[i])||At(t[i])){const s=Ou.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Fy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function $y(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jg=e=>Array.isArray(e),rB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iB=e=>Jg(e)?e[e.length-1]||0:e;function $c(e){const t=At(e)?e.get():e;return rB(t)?t.toValue():t}function sB({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:oB(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const ek=e=>(t,n)=>{const r=b.useContext(Tp),i=b.useContext(Ey),s=()=>sB(e,t,r,i);return n?s():$y(s)};function oB(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=$c(s[f]);let{initial:o,animate:a}=e;const l=kp(e),u=zA(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!Ap(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=Fy(e,p);if(!h)return;const{transitionEnd:m,transition:x,...g}=h;for(const y in g){let v=g[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in m)i[y]=m[y]}),i}const gt=e=>e,{schedule:We,cancel:Rr,state:st,steps:Kh}=$A(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),aB={useVisualState:ek({scrapeMotionValuesFromProps:JA,createRenderState:QA,onMount:(e,t,{renderState:n,latestValues:r})=>{We.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),We.render(()=>{jy(n,r,{enableHardwareAcceleration:!1},Dy(t.tagName),e.transformTemplate),ZA(t,n)})}})},lB={useVisualState:ek({scrapeMotionValuesFromProps:Ny,createRenderState:Ly})};function uB(e,{forwardMotionProps:t=!1},n,r){return{...Oy(e)?aB:lB,preloadedFeatures:n,useRender:nB(t),createVisualElement:r,Component:e}}function yr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Mp(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const cB=e=>t=>tk(t)&&e(t,Mp(t));function Pr(e,t,n,r){return yr(e,t,cB(n),r)}const dB=(e,t)=>n=>t(e(n)),Cr=(...e)=>e.reduce(dB);function nk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $b=nk("dragHorizontal"),zb=nk("dragVertical");function rk(e){let t=!1;if(e==="y")t=zb();else if(e==="x")t=$b();else{const n=$b(),r=zb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ik(){const e=rk(!0);return e?(e(),!1):!0}class Fi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||ik())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&l(s,o)};return Pr(e.current,n,i,{passive:!e.getProps()[r]})}class fB extends Fi{mount(){this.unmount=Cr(Vb(this.node,!0),Vb(this.node,!1))}unmount(){}}class pB extends Fi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cr(yr(this.node.current,"focus",()=>this.onFocus()),yr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const sk=(e,t)=>t?e===t?!0:sk(e,t.parentElement):!1;function qh(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Mp(n))}class hB extends Fi{constructor(){super(...arguments),this.removeStartListeners=gt,this.removeEndListeners=gt,this.removeAccessibleListeners=gt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=Pr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!sk(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)},{passive:!(r.onTap||r.onPointerUp)}),o=Pr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Cr(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||qh("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=yr(this.node.current,"keyup",o),qh("down",(a,l)=>{this.startPress(a,l)})},n=yr(this.node.current,"keydown",t),r=()=>{this.isPressing&&qh("cancel",(s,o)=>this.cancelPress(s,o))},i=yr(this.node.current,"blur",r);this.removeAccessibleListeners=Cr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ik()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Pr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Cr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ev=new WeakMap,Qh=new WeakMap,mB=e=>{const t=ev.get(e.target);t&&t(e)},gB=e=>{e.forEach(mB)};function vB({root:e,...t}){const n=e||document;Qh.has(n)||Qh.set(n,{});const r=Qh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gB,{root:e,...t})),r[i]}function yB(e,t,n){const r=vB(t);return ev.set(e,n),r.observe(e),()=>{ev.delete(e),r.unobserve(e)}}const xB={some:0,all:1};class wB extends Fi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xB[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yB(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bB(t,n))&&this.startObserver()}unmount(){}}function bB({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const SB={inView:{Feature:wB},tap:{Feature:hB},focus:{Feature:pB},hover:{Feature:fB}};function ok(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function PB(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Op(e,t,n){const r=e.getProps();return Fy(r,t,n!==void 0?n:r.custom,EB(e),PB(e))}const ki=e=>e*1e3,Tr=e=>e/1e3,CB={type:"spring",stiffness:500,damping:25,restSpeed:10},TB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AB={type:"keyframes",duration:.8},kB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MB=(e,{keyframes:t})=>t.length>2?AB:Ms.has(e)?e.startsWith("scale")?TB(t[1]):CB:kB;function OB({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function zy(e,t){return e[t]||e.default||e}const RB=e=>e!==null;function Rp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(RB),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}let zc;function _B(){zc=void 0}const Mi={now:()=>(zc===void 0&&Mi.set(st.isProcessing||b7.useManualTiming?st.timestamp:performance.now()),zc),set:e=>{zc=e,queueMicrotask(_B)}},ak=e=>/^0[^.\s]+$/u.test(e);function IB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ak(e):!0}let LB=gt,Vy=gt;const lk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DB(e){const t=jB.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function uk(e,t,n=1){const[r,i]=DB(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return lk(o)?parseFloat(o):o}return Ry(i)?uk(i,t,n+1):i}const NB=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bb=e=>e===ua||e===Y,Ub=(e,t)=>parseFloat(e.split(", ")[t]),Wb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Ub(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Ub(s[1],e):0}},FB=new Set(["x","y","z"]),$B=Ou.filter(e=>!FB.has(e));function zB(e){const t=[];return $B.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Wb(4,13),y:Wb(5,14)};qo.translateX=qo.x;qo.translateY=qo.y;const ck=e=>t=>t.test(e),VB={test:e=>e==="auto",parse:e=>e},dk=[ua,Y,sr,Kr,W7,U7,VB],Hb=e=>dk.find(ck(e)),ms=new Set;let tv=!1,nv=!1;function fk(){if(nv){const e=Array.from(ms).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=zB(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}nv=!1,tv=!1,ms.forEach(e=>e.complete()),ms.clear()}function pk(){ms.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nv=!0)})}function BB(){pk(),fk()}class By{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ms.add(this),tv||(tv=!0,We.read(pk),We.resolveKeyframes(fk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sn=>!!(Ru(n)&&B7.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),hk=(e,t,n)=>r=>{if(!Ru(r))return r;const[i,s,o,a]=r.match(_y);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},UB=e=>Ii(0,255,e),Xh={...ua,transform:e=>Math.round(UB(e))},rs={test:Uy("rgb","red"),parse:hk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xh.transform(e)+", "+Xh.transform(t)+", "+Xh.transform(n)+", "+ol(sl.transform(r))+")"};function WB(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const rv={test:Uy("#"),parse:WB,transform:rs.transform},io={test:Uy("hsl","hue"),parse:hk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sr.transform(ol(t))+", "+sr.transform(ol(n))+", "+ol(sl.transform(r))+")"},Ct={test:e=>rs.test(e)||rv.test(e)||io.test(e),parse:e=>rs.test(e)?rs.parse(e):io.test(e)?io.parse(e):rv.parse(e),transform:e=>Ru(e)?e:e.hasOwnProperty("red")?rs.transform(e):io.transform(e)};function HB(e){var t,n;return isNaN(e)&&Ru(e)&&(((t=e.match(_y))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(V7))===null||n===void 0?void 0:n.length)||0)>0}const mk="number",gk="color",GB="var",KB="var(",Gb="${}",qB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Kd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(qB,l=>(Ct.test(l)?(r.color.push(s),i.push(gk),n.push(Ct.parse(l))):l.startsWith(KB)?(r.var.push(s),i.push(GB),n.push(l)):(r.number.push(s),i.push(mk),n.push(parseFloat(l))),++s,Gb)).split(Gb);return{values:n,split:a,indexes:r,types:i}}function vk(e){return Kd(e).values}function yk(e){const{split:t,types:n}=Kd(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function XB(e){const t=vk(e);return yk(e)(t.map(QB))}const Li={test:HB,parse:vk,createTransformer:yk,getAnimatableNone:XB},YB=new Set(["brightness","contrast","saturate","opacity"]);function ZB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_y)||[];if(!r)return e;const i=n.replace(r,"");let s=YB.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const JB=/\b([a-z-]*)\(.*?\)/gu,iv={...Li,getAnimatableNone:e=>{const t=e.match(JB);return t?t.map(ZB).join(" "):e}},eU={...GA,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:iv,WebkitFilter:iv},Wy=e=>eU[e];function xk(e,t){let n=Wy(e);return n!==iv&&(n=Li),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function tU(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function nU(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Li.test(e)||e==="0")&&!e.startsWith("url("));function rU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function Hy(e,t){return t?e*(1e3/t):0}const sU=5;function Sk(e,t,n){const r=Math.max(t-sU,0);return Hy(n-e(r),t-r)}const Yh=.001,oU=.01,aU=10,lU=.05,uU=1;function cU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Ii(lU,uU,o),e=Ii(oU,aU,Tr(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,p=sv(u,o),h=Math.exp(-d);return Yh-f/p*h},s=u=>{const d=u*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,h=Math.exp(-d),m=sv(Math.pow(u,2),o);return(-i(u)+Yh>0?-1:1)*((f-p)*h)/m}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Yh+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=fU(i,s,a);if(e=ki(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const dU=12;function fU(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function mU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!qb(e,hU)&&qb(e,pU)){const n=cU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ek({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=mU({...r,velocity:-Tr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),m=s-i,x=Tr(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let y;if(h<1){const v=sv(x,h);y=w=>{const S=Math.exp(-h*x*w);return s-S*((p+h*x*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(h===1)y=v=>s-Math.exp(-x*v)*(m+(p+x*m)*v);else{const v=x*Math.sqrt(h*h-1);y=w=>{const S=Math.exp(-h*x*w),P=Math.min(v*w,300);return s-S*((p+h*x*m)*Math.sinh(P)+v*m*Math.cosh(P))/v}}return{calculatedDuration:f&&c||null,next:v=>{const w=y(v);if(f)o.done=v>=c;else{let S=p;v!==0&&(h<1?S=Sk(y,v,w):S=0);const P=Math.abs(S)<=n,T=Math.abs(s-w)<=t;o.done=P&&T}return o.value=o.done?s:w,o}}}function Qb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=C=>a!==void 0&&Cl,h=C=>a===void 0?l:l===void 0||Math.abs(a-C)-m*Math.exp(-C/r),v=C=>g+y(C),w=C=>{const k=y(C),A=v(C);f.done=Math.abs(k)<=u,f.value=f.done?g:A};let S,P;const T=C=>{p(f.value)&&(S=C,P=Ek({keyframes:[f.value,h(f.value)],velocity:Sk(v,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:C=>{let k=!1;return!P&&S===void 0&&(k=!0,w(C),T(C)),S!==void 0&&C>=S?P.next(C-S):(!k&&w(C),f)}}}const Pk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gU=1e-7,vU=12;function yU(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Pk(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>gU&&++ayU(s,0,1,e,n);return s=>s===0||s===1?s:Pk(i(s),t,r)}const xU=Iu(.42,0,1,1),wU=Iu(0,0,.58,1),Ck=Iu(.42,0,.58,1),bU=e=>Array.isArray(e)&&typeof e[0]!="number",Tk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ak=e=>t=>1-e(1-t),Gy=e=>1-Math.sin(Math.acos(e)),kk=Ak(Gy),SU=Tk(Gy),Mk=Iu(.33,1.53,.69,.99),Ky=Ak(Mk),EU=Tk(Ky),PU=e=>(e*=2)<1?.5*Ky(e):.5*(2-Math.pow(2,-10*(e-1))),CU={linear:gt,easeIn:xU,easeInOut:Ck,easeOut:wU,circIn:Gy,circInOut:SU,circOut:kk,backIn:Ky,backInOut:EU,backOut:Mk,anticipate:PU},Xb=e=>{if(Array.isArray(e)){Vy(e.length===4);const[t,n,r,i]=e;return Iu(t,n,r,i)}else if(typeof e=="string")return CU[e];return e},Qo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ie=(e,t,n)=>e+(t-e)*n;function Zh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Zh(l,a,e+1/3),s=Zh(l,a,e),o=Zh(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const Jh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},AU=[rv,rs,io],kU=e=>AU.find(t=>t.test(e));function Yb(e){const t=kU(e);let n=t.parse(e);return t===io&&(n=TU(n)),n}const Zb=(e,t)=>{const n=Yb(e),r=Yb(t),i={...n};return s=>(i.red=Jh(n.red,r.red,s),i.green=Jh(n.green,r.green,s),i.blue=Jh(n.blue,r.blue,s),i.alpha=Ie(n.alpha,r.alpha,s),rs.transform(i))};function ov(e,t){return n=>n>0?t:e}function MU(e,t){return n=>Ie(e,t,n)}function qy(e){return typeof e=="number"?MU:typeof e=="string"?Ry(e)?ov:Ct.test(e)?Zb:_U:Array.isArray(e)?Ok:typeof e=="object"?Ct.test(e)?Zb:OU:ov}function Ok(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>qy(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function RU(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=Li.createTransformer(t),r=Kd(e),i=Kd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Cr(Ok(RU(r,i),i.values),n):ov(e,t)};function Rk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ie(e,t,n):qy(e)(e,t)}function IU(e,t,n){const r=[],i=n||Rk,s=e.length-1;for(let o=0;ot[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=IU(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(Ii(e[0],e[s-1],u)):l}function LU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qo(0,t,r);e.push(Ie(n,1,i))}}function Ik(e){const t=[0];return LU(t,e.length-1),t}function jU(e,t){return e.map(n=>n*t)}function DU(e,t){return e.map(()=>t||Ck).splice(0,e.length-1)}function qd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=bU(r)?r.map(Xb):Xb(r),s={done:!1,value:t[0]},o=jU(n&&n.length===t.length?n:Ik(t),e),a=_k(o,t,{ease:Array.isArray(i)?i:DU(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Jb=2e4;function NU(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jb?1/0:t}const FU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>We.update(t,!0),stop:()=>Rr(t),now:()=>st.isProcessing?st.timestamp:Mi.now()}},$U={decay:Qb,inertia:Qb,tween:qd,keyframes:qd,spring:Ek},zU=e=>e/100;class Qy extends bk{constructor({KeyframeResolver:t=By,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:s}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(s,o,r,i):this.resolver=new t(s,o,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=$U[n]||qd;let l,u;a!==qd&&typeof t[0]!="number"&&(l=Cr(zU,Rk(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=NU(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=s;if(p){const C=Math.min(this.currentTime,c)/d;let k=Math.floor(C),A=C%1;!A&&C>=1&&(A=1),A===1&&k--,k=Math.min(k,p+1),!!(k%2)&&(h==="reverse"?(A=1-A,m&&(A-=m/d)):h==="mirror"&&(w=o)),v=Ii(0,1,A)*d}const S=y?{done:!1,value:l[0]}:w.next(v);a&&(S.value=a(S.value));let{done:P}=S;!y&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return T&&i!==void 0&&(S.value=Rp(l,this.options,i)),x&&x(S.value),T&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Tr(t.calculatedDuration):0}get time(){return Tr(this.currentTime)}set time(t){t=ki(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Tr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=FU,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Lk=e=>Array.isArray(e)&&typeof e[0]=="number";function jk(e){return!!(!e||typeof e=="string"&&e in Xy||Lk(e)||Array.isArray(e)&&e.every(jk))}const za=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:za([0,.65,.55,1]),circOut:za([.55,0,1,.45]),backIn:za([.31,.01,.66,-.59]),backOut:za([.33,1.53,.69,.99])};function VU(e){return Dk(e)||Xy.easeOut}function Dk(e){if(e)return Lk(e)?za(e):Array.isArray(e)?e.map(VU):Xy[e]}function BU(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Dk(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const UU=nU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),WU=new Set(["opacity","clipPath","filter","transform"]),Qd=10,HU=2e4;function GU(e){return e.type==="spring"||e.name==="backgroundColor"||!jk(e.ease)}function KU(e,t){const n=new Qy({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(s,o),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(GU(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,m=KU(t,h);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,s=m.times,o=m.ease,a="keyframes"}const c=BU(l.owner.current,u,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=Mi.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Rp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ki(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return gt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return gt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,f=new Qy({...d,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),p=ki(this.time);l.setWithVelocity(f.sample(p-Qd).value,f.sample(p).value,Qd)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;return UU()&&r&&WU.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Yy=(e,t,n,r={},i,s)=>o=>{const a=zy(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ki(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};OB(a)||(c={...c,...MB(e,c)}),c.duration&&(c.duration=ki(c.duration)),c.repeatDelay&&(c.repeatDelay=ki(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=Rp(c.keyframes,a);if(f!==void 0){We.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!s&&eS.supports(c)?new eS(c):new Qy(c)};function Xd(e){return!!(At(e)&&e.add)}function Zy(e,t){e.indexOf(t)===-1&&e.push(t)}function Jy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class e1{constructor(){this.subscriptions=[]}add(t){return Zy(this.subscriptions,t),()=>Jy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class QU{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Mi.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=qU(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mi.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new e1);const r=this.events[t].add(n);return t==="change"?()=>{r(),We.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,tS);return Hy(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xr(e,t){return new QU(e,t)}function XU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xr(n))}function t1(e,t){const n=Op(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=iB(s[o]);XU(e,o,a)}}function YU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const p=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),h=l[f];if(h===void 0||d&&YU(d,f))continue;const m={delay:n,elapsed:0,...zy(o||{},f)};let x=!1;if(window.HandoffAppearAnimations){const v=e.getProps()[FA];if(v){const w=window.HandoffAppearAnimations(v,f);w!==null&&(m.elapsed=w,x=!0)}}p.start(Yy(f,p,h,e.shouldReduceMotion&&Ms.has(f)?{type:!1}:m,e,x));const g=p.animation;g&&(Xd(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return a&&Promise.all(c).then(()=>{We.update(()=>{a&&t1(e,a)})}),c}function av(e,t,n={}){var r;const i=Op(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Nk(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return ZU(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function ZU(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(JU).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(av(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function JU(e,t){return e.sortNodePosition(t)}function Fk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>av(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=av(e,t,n);else{const i=typeof t=="function"?Op(e,t,n.custom):t;r=Promise.all(Nk(e,i,n))}return r.then(()=>{We.postRender(()=>{e.notify("AnimationComplete",t)})})}const eW=[...ky].reverse(),tW=ky.length;function nW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Fk(e,n,r)))}function rW(e){let t=nW(e);const n=sW();let r=!0;const i=l=>(u,c)=>{var d;const f=Op(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...m}=f;u={...u,...m,...h}}return u};function s(l){t=l(e)}function o(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let x=0;xh&&w,k=!1;const A=Array.isArray(v)?v:[v];let R=A.reduce(i(g),{});S===!1&&(R={});const{prevResolvedValues:I={}}=y,L={...I,...R},N=B=>{C=!0,f.has(B)&&(k=!0,f.delete(B)),y.needsAnimating[B]=!0;const z=e.getValue(B);z&&(z.liveStyle=!1)};for(const B in L){const z=R[B],q=I[B];if(p.hasOwnProperty(B))continue;let O=!1;Jg(z)&&Jg(q)?O=!ok(z,q):O=z!==q,O?z!=null?N(B):f.add(B):z!==void 0&&f.has(B)?N(B):y.protectedKeys[B]=!0}y.prevProp=v,y.prevResolvedValues=R,y.isActive&&(p={...p,...R}),r&&e.blockInitialAnimation&&(C=!1),C&&(!P||k)&&d.push(...A.map(B=>({animation:B,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),x[g]=y??null}),d.push({animation:x})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function iW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ok(t,e):!1}function Ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sW(){return{animate:Ui(!0),whileInView:Ui(),whileHover:Ui(),whileTap:Ui(),whileDrag:Ui(),whileFocus:Ui(),exit:Ui()}}class oW extends Fi{constructor(t){super(t),t.animationState||(t.animationState=rW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ap(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let aW=0;class lW extends Fi{constructor(){super(...arguments),this.id=aW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const uW={animation:{Feature:oW},exit:{Feature:lW}},nS=(e,t)=>Math.abs(e-t);function cW(e,t){const n=nS(e.x,t.x),r=nS(e.y,t.y);return Math.sqrt(n**2+r**2)}class $k{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=tm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=cW(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=d,{timestamp:m}=st;this.history.push({...h,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=em(f,this.transformPagePoint),We.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=tm(d.type==="pointercancel"?this.lastMoveEventInfo:em(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),h&&h(d,x)},!tk(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Mp(t),a=em(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=st;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,tm(a,this.history)),this.removeListeners=Cr(Pr(this.contextWindow,"pointermove",this.handlePointerMove),Pr(this.contextWindow,"pointerup",this.handlePointerUp),Pr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rr(this.updatePoint)}}function em(e,t){return t?{point:t(e.point)}:e}function rS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tm({point:e},t){return{point:e,delta:rS(e,zk(t)),offset:rS(e,dW(t)),velocity:fW(t,.1)}}function dW(e){return e[0]}function zk(e){return e[e.length-1]}function fW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=zk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ki(t)));)n--;if(!r)return{x:0,y:0};const s=Tr(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zt(e){return e.max-e.min}function lv(e,t=0,n=.01){return Math.abs(e-t)<=n}function iS(e,t,n,r=.5){e.origin=r,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=Zt(n)/Zt(t),(lv(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ie(n.min,n.max,e.origin)-e.originPoint,(lv(e.translate)||isNaN(e.translate))&&(e.translate=0)}function al(e,t,n,r){iS(e.x,t.x,n.x,r?r.originX:void 0),iS(e.y,t.y,n.y,r?r.originY:void 0)}function sS(e,t,n){e.min=n.min+t.min,e.max=e.min+Zt(t)}function pW(e,t,n){sS(e.x,t.x,n.x),sS(e.y,t.y,n.y)}function oS(e,t,n){e.min=t.min-n.min,e.max=e.min+Zt(t)}function ll(e,t,n){oS(e.x,t.x,n.x),oS(e.y,t.y,n.y)}function hW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ie(n,e,r.max):Math.min(e,n)),e}function aS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mW(e,{top:t,left:n,bottom:r,right:i}){return{x:aS(e.x,n,i),y:aS(e.y,t,r)}}function lS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qo(t.min,t.max-r,e.min):r>i&&(n=Qo(e.min,e.max-i,t.min)),Ii(0,1,n)}function yW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const uv=.35;function xW(e=uv){return e===!1?e=0:e===!0&&(e=uv),{x:uS(e,"left","right"),y:uS(e,"top","bottom")}}function uS(e,t,n){return{min:cS(e,t),max:cS(e,n)}}function cS(e,t){return typeof e=="number"?e:e[t]||0}const dS=()=>({translate:0,scale:1,origin:0,originPoint:0}),so=()=>({x:dS(),y:dS()}),fS=()=>({min:0,max:0}),Be=()=>({x:fS(),y:fS()});function an(e){return[e("x"),e("y")]}function Vk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function nm(e){return e===void 0||e===1}function cv({scale:e,scaleX:t,scaleY:n}){return!nm(e)||!nm(t)||!nm(n)}function qi(e){return cv(e)||Bk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bk(e){return pS(e.x)||pS(e.y)}function pS(e){return e&&e!=="0%"}function Yd(e,t,n){const r=e-n,i=t*r;return n+i}function hS(e,t,n,r,i){return i!==void 0&&(e=Yd(e,i,r)),Yd(e,n,r)+t}function dv(e,t=0,n=1,r,i){e.min=hS(e.min,t,n,r,i),e.max=hS(e.max,t,n,r,i)}function Uk(e,{x:t,y:n}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,n.translate,n.scale,n.originPoint)}function SW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Yr(e,t){e.min=e.min+t,e.max=e.max+t}function gS(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=Ie(e.min,e.max,s);dv(e,t[n],t[r],o,t.scale)}const EW=["x","scaleX","originX"],PW=["y","scaleY","originY"];function oo(e,t){gS(e.x,t,EW),gS(e.y,t,PW)}function Wk(e,t){return Vk(bW(e.getBoundingClientRect(),t))}function CW(e,t,n){const r=Wk(e,n),{scroll:i}=t;return i&&(Yr(r.x,i.offset.x),Yr(r.y,i.offset.y)),r}const Hk=({current:e})=>e?e.ownerDocument.defaultView:null,TW=new WeakMap;class AW{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Mp(c,"page").point)},s=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rk(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(x=>{let g=this.getAxisMotionValue(x).get()||0;if(sr.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[x];v&&(g=Zt(v)*(parseFloat(g)/100))}}this.originPoint[x]=g}),h&&h(c,d);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=kW(x),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(c,d)},a=(c,d)=>this.stop(c,d),l=()=>an(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new $k(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Hk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&s(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!hc(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=hW(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&ro(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=mW(i.layoutBox,n):this.constraints=!1,this.elastic=xW(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&an(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yW(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ro(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=CW(r,i.root,this.visualElement.getTransformPagePoint());let o=gW(i.layout.layoutBox,s);if(n){const a=n(wW(o));this.hasMutatedConstraints=!!a,a&&(o=Vk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=an(c=>{if(!hc(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Yy(t,r,0,n,this.visualElement))}stopAnimation(){an(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){an(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){an(n=>{const{drag:r}=this.getProps();if(!hc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Ie(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ro(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};an(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=vW({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),an(o=>{if(!hc(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;TW.set(this.visualElement,this);const t=this.visualElement.current,n=Pr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ro(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=yr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(an(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=uv,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function hc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MW extends Fi{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new AW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const vS=e=>(t,n)=>{e&&e(t,n)};class OW extends Fi{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new $k(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vS(t),onStart:vS(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&i(s,o)}}}mount(){this.removePointerDownListener=Pr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function RW(){const e=b.useContext(Ey);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Vc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ma={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const n=yS(e,t.target.x),r=yS(e,t.target.y);return`${n}% ${r}%`}},_W={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Li.parse(e);if(i.length>5)return r;const s=Li.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class IW extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;L7(LW),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Vc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||We.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ay.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gk(e){const[t,n]=RW(),r=b.useContext(VA);return E.jsx(IW,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(BA),isPresent:t,safeToRemove:n})}const LW={borderRadius:{...Ma,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ma,borderTopRightRadius:Ma,borderBottomLeftRadius:Ma,borderBottomRightRadius:Ma,boxShadow:_W},Kk=["TopLeft","TopRight","BottomLeft","BottomRight"],jW=Kk.length,xS=e=>typeof e=="string"?parseFloat(e):e,wS=e=>typeof e=="number"||Y.test(e);function DW(e,t,n,r,i,s){i?(e.opacity=Ie(0,n.opacity!==void 0?n.opacity:1,NW(r)),e.opacityExit=Ie(t.opacity!==void 0?t.opacity:1,0,FW(r))):s&&(e.opacity=Ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Qo(e,t,r))}function SS(e,t){e.min=t.min,e.max=t.max}function on(e,t){SS(e.x,t.x),SS(e.y,t.y)}function ES(e,t,n,r,i){return e-=t,e=Yd(e,1/n,r),i!==void 0&&(e=Yd(e,1/i,r)),e}function $W(e,t=0,n=1,r=.5,i,s=e,o=e){if(sr.test(t)&&(t=parseFloat(t),t=Ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ie(s.min,s.max,r);e===s&&(a-=t),e.min=ES(e.min,t,n,a,i),e.max=ES(e.max,t,n,a,i)}function PS(e,t,[n,r,i],s,o){$W(e,t[n],t[r],t[i],t.scale,s,o)}const zW=["x","scaleX","originX"],VW=["y","scaleY","originY"];function CS(e,t,n,r){PS(e.x,t,zW,n?n.x:void 0,r?r.x:void 0),PS(e.y,t,VW,n?n.y:void 0,r?r.y:void 0)}function TS(e){return e.translate===0&&e.scale===1}function Qk(e){return TS(e.x)&&TS(e.y)}function BW(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xk(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function AS(e){return Zt(e.x)/Zt(e.y)}class UW{constructor(){this.members=[]}add(t){Zy(this.members,t),t.scheduleRender()}remove(t){if(Jy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const WW=(e,t)=>e.depth-t.depth;class HW{constructor(){this.children=[],this.isDirty=!1}add(t){Zy(this.children,t),this.isDirty=!0}remove(t){Jy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WW),this.isDirty=!1,this.children.forEach(t)}}function GW(e,t){const n=Mi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Rr(r),e(s-t))};return We.read(r,!0),()=>Rr(r)}function KW(e){window.MotionDebug&&window.MotionDebug.record(e)}function qW(e){return e instanceof SVGElement&&e.tagName!=="svg"}function QW(e,t,n){const r=At(e)?e:xr(e);return r.start(Yy("",r,t,n)),r.animation}const rm=["","X","Y","Z"],XW={visibility:"hidden"},MS=1e3;let YW=0;const Qi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function im(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Yk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=YW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qi.totalNodes=Qi.resolvedTargetDeltas=Qi.recalculatedProjection=0,this.nodes.forEach(eH),this.nodes.forEach(sH),this.nodes.forEach(oH),this.nodes.forEach(tH),KW(Qi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=GW(f,250),Vc.hasAnimatedSinceResize&&(Vc.hasAnimatedSinceResize=!1,this.nodes.forEach(RS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||dH,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!Xk(this.targetLayout,h)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const w={...zy(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||RS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aH),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(nH),this.sharedNodes.forEach(lH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,We.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){We.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=w/1e3;_S(d.x,o.x,S),_S(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ll(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uH(this.relativeTarget,this.relativeTargetOrigin,f,S),v&&BW(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),on(v,this.relativeTarget)),m&&(this.animationValues=c,DW(c,u,this.latestValues,S,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update(()=>{Vc.hasAnimatedSinceResize=!0,this.currentAnimation=QW(0,MS,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(MS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Zk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Zt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Zt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}on(a,l),oo(a,c),al(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new UW),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&im("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(OS),this.root.sharedNodes.clear()}}}function ZW(e){e.updateLayout()}function JW(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?an(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Zt(f);f.min=r[d].min,f.max=f.min+p}):Zk(s,n.layoutBox,r)&&an(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Zt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=so();al(a,r,n.layoutBox);const l=so();o?al(l,e.applyTransform(i,!0),n.measuredBox):al(l,r,n.layoutBox);const u=!Qk(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=Be();ll(h,n.layoutBox,f.layoutBox);const m=Be();ll(m,r,p.layoutBox),Xk(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function eH(e){Qi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nH(e){e.clearSnapshot()}function OS(e){e.clearMeasurements()}function rH(e){e.isLayoutDirty=!1}function iH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function RS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sH(e){e.resolveTargetDelta()}function oH(e){e.calcProjection()}function aH(e){e.resetSkewAndRotation()}function lH(e){e.removeLeadSnapshot()}function _S(e,t,n){e.translate=Ie(t.translate,0,n),e.scale=Ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function IS(e,t,n,r){e.min=Ie(t.min,n.min,r),e.max=Ie(t.max,n.max,r)}function uH(e,t,n,r){IS(e.x,t.x,n.x,r),IS(e.y,t.y,n.y,r)}function cH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dH={duration:.45,ease:[.4,0,.1,1]},LS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jS=LS("applewebkit/")&&!LS("chrome/")?Math.round:gt;function DS(e){e.min=jS(e.min),e.max=jS(e.max)}function fH(e){DS(e.x),DS(e.y)}function Zk(e,t,n){return e==="position"||e==="preserve-aspect"&&!lv(AS(t),AS(n),.2)}const pH=Yk({attachResizeListener:(e,t)=>yr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},Jk=Yk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sm.current){const e=new pH({});e.mount(window),e.setOptions({layoutScroll:!0}),sm.current=e}return sm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hH={pan:{Feature:OW},drag:{Feature:MW,ProjectionNode:Jk,MeasureLayout:Gk}},fv={current:null},eM={current:!1};function mH(){if(eM.current=!0,!!Py)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fv.current=e.matches;e.addListener(t),t()}else fv.current=!1}function gH(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(At(s))e.addValue(i,s),Xd(r)&&r.add(i);else if(At(o))e.addValue(i,xr(s,{owner:e})),Xd(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,xr(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const NS=new WeakMap,vH=[...dk,Ct,Li],yH=e=>vH.find(ck(e)),tM=Object.keys(Zl),xH=tM.length,FS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],wH=My.length;function nM(e){if(e)return e.options.allowProjection!==!1?e.projection:nM(e.parent)}class bH{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(f,p,h,m)=>new this.KeyframeResolver(f,p,h,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=By,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>We.render(this.render,!1,!0);const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=kp(n),this.isVariantNode=zA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&At(p)&&(p.set(l[f],!1),Xd(c)&&c.add(f))}}mount(t){this.current=t,NS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),eM.current||mH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;NS.delete(this.current),this.projection&&this.projection.unmount(),Rr(this.notifyUpdate),Rr(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ms.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&We.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(lk(i)||ak(i))?i=parseFloat(i):!yH(i)&&Li.test(n)&&(i=xk(t,n)),this.setBaseTarget(t,At(i)?i.get():i)),At(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Fy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!At(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new e1),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rM extends bH{constructor(){super(...arguments),this.KeyframeResolver=wk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function SH(e){return window.getComputedStyle(e)}class EH extends rM{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ms.has(n)){const r=Wy(n);return r&&r.default||0}else{const r=SH(t),i=(HA(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wk(t,n)}build(t,n,r,i){Iy(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ny(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){XA(t,n,r,i)}}class PH extends rM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ms.has(n)){const r=Wy(n);return r&&r.default||0}return n=YA.has(n)?n:Ty(n),t.getAttribute(n)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,n,r){return JA(t,n,r)}build(t,n,r,i){jy(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){ZA(t,n,r,i)}mount(t){this.isSVGTag=Dy(t.tagName),super.mount(t)}}const CH=(e,t)=>Oy(e)?new PH(t,{enableHardwareAcceleration:!1}):new EH(t,{allowProjection:e!==b.Fragment,enableHardwareAcceleration:!0}),TH={layout:{ProjectionNode:Jk,MeasureLayout:Gk}},AH={...uW,...SB,...hH,...TH},kH=_7((e,t)=>uB(e,t,AH,CH));function MH(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(Vy(!!t.current),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const Bc=new WeakMap;let qr;function OH(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function RH({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Bc.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return OH(e,n)}})})}function _H(e){e.forEach(RH)}function IH(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(_H))}function LH(e,t){qr||IH();const n=MH(e);return n.forEach(r=>{let i=Bc.get(r);i||(i=new Set,Bc.set(r,i)),i.add(t),qr==null||qr.observe(r)}),()=>{n.forEach(r=>{const i=Bc.get(r);i==null||i.delete(t),i!=null&&i.size||qr==null||qr.unobserve(r)})}}const Uc=new Set;let ul;function jH(){ul=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Uc.forEach(n=>n(t))},window.addEventListener("resize",ul)}function DH(e){return Uc.add(e),ul||jH(),()=>{Uc.delete(e),!Uc.size&&ul&&(ul=void 0)}}function NH(e,t){return typeof e=="function"?DH(e):LH(e,t)}const FH=50,$S=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),$H=()=>({time:0,x:$S(),y:$S()}),zH={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function zS(e,t,n,r){const i=n[t],{length:s,position:o}=zH[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Qo(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>FH?0:Hy(i.current-a,u)}function VH(e,t,n){zS(e,"x",t,n),zS(e,"y",t,n),t.time=n}function BH(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const UH={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},pv={start:0,center:.5,end:1};function VS(e,t,n=0){let r=0;if(e in pv&&(e=pv[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const WH=[0,0];function HH(e,t,n,r){let i=Array.isArray(e)?e:WH,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,pv[e]?e:"0"]),s=VS(i[0],n,r),o=VS(i[1],t),s-o}const GH={x:0,y:0};function KH(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function qH(e,t,n){const{offset:r=UH.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?BH(i,e):GH,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:KH(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const d=r.length;for(let f=0;fQH(e,r.target,n),update:i=>{VH(e,n,i),(r.offset||r.target)&&qH(e,n,r)},notify:()=>t(n)}}const Oa=new WeakMap,BS=new WeakMap,om=new WeakMap,US=e=>e===document.documentElement?window:e;function YH(e,{container:t=document.documentElement,...n}={}){let r=om.get(t);r||(r=new Set,om.set(t,r));const i=$H(),s=XH(t,e,i,n);if(r.add(s),!Oa.has(t)){const a=()=>{for(const f of r)f.measure()},l=()=>{for(const f of r)f.update(st.timestamp)},u=()=>{for(const f of r)f.notify()},c=()=>{We.read(a,!1,!0),We.read(l,!1,!0),We.update(u,!1,!0)};Oa.set(t,c);const d=US(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&BS.set(t,NH(t,c)),d.addEventListener("scroll",c,{passive:!0})}const o=Oa.get(t);return We.read(o,!1,!0),()=>{var a;Rr(o);const l=om.get(t);if(!l||(l.delete(s),l.size))return;const u=Oa.get(t);Oa.delete(t),u&&(US(t).removeEventListener("scroll",u),(a=BS.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function WS(e,t){LB(!!(!t||t.current))}const ZH=()=>({scrollX:xr(0),scrollY:xr(0),scrollXProgress:xr(0),scrollYProgress:xr(0)});function iM({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=$y(ZH);return(n?Cy:b.useEffect)(()=>(WS("target",t),WS("container",e),YH(({x:o,y:a})=>{i.scrollX.set(o.current),i.scrollXProgress.set(o.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}function JH(e){e.values.forEach(t=>t.stop())}function hv(e,t){[...t].reverse().forEach(r=>{const i=e.getVariant(r);i&&t1(e,i),e.variantChildren&&e.variantChildren.forEach(s=>{hv(s,t)})})}function eG(e,t){if(Array.isArray(t))return hv(e,t);if(typeof t=="string")return hv(e,[t]);t1(e,t)}function tG(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const i=[];return e.forEach(s=>{i.push(Fk(s,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return e.forEach(r=>{eG(r,n)})},stop(){e.forEach(n=>{JH(n)})},mount(){return()=>{t.stop()}}};return t}function nG(){const e=$y(tG);return Cy(e.mount,[]),e}const rG=nG,HS=e=>{const{id:t,className:n,background:r,minSize:i,maxSize:s,speed:o,particleColor:a,particleDensity:l}=e,[u,c]=b.useState(!1);b.useEffect(()=>{zV(async p=>{await VV(p)}).then(()=>{c(!0)})},[]);const d=rG(),f=async p=>{p&&(console.log(p),d.start({opacity:1,transition:{duration:1}}))};return E.jsx(kH.div,{animate:d,className:_b("opacity-0",n),children:u&&E.jsx($V,{id:t||"tsparticles",className:_b("h-full w-full"),particlesLoaded:f,options:{background:{color:{value:r||"#0d47a1"}},fullScreen:{enable:!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"bounce",overlap:{enable:!0,retries:0}},color:{value:a||"#ffffff",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:{}},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:!0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:l||120},opacity:{value:{min:.1,max:1},animation:{count:0,enable:!0,speed:o||4,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:i||1,max:s||3},animation:{count:0,enable:!1,speed:5,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}},roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}})})},iG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsDSURBVHgB7VxJbBRJFo0qEjCLwWKVzQ4Cg1nEjhCLhJhm1MCMBC2ZAwwSp74xI3Fg1COOzYg5ouEIEpo5gEUb0QgaGfcBJFaxiR2zr2bfdzDV8aL9qyN//YiMKtzdxvST0pkVGRnx/4v/f0TFT1dKMWQymdSGDRt6v379+m/pdPpLXVSRSqVK9JHWh7KPJOi2smd+LR1J9+06Hz58cNaX6jReN+jjjv5cp48aXVa9YsWKc1zumGZr164t1kT8Qyv8tT7KGhVP2STo+zFCOEG2UHaZpESIgi7C8iVFqIM/t/SxZvDgwf+prKxsyCFl9erVbYuLi7/Xl1+kfkaOVSR9tklwKZMPEflYUCHWhkPLrk+Z2k6dOv1l6dKlb7KkVFVVtXr+/PkPusKfUAZr4Erj6Nixo+rcubNq1apVDjkSKXTNz6FlLkKlZ1zPv337Vj158kQ9ePAgx8riImdqW7du/dXy5cufRYgh69at+waE4BqENDJoardt21b17dtXde3aVd2/f189evRIvX//PkaaYsSEWIRL4UJG2/cZ8vfo0UONHz/ekHP06FH18uVL21IaxU/NfPfu3d912bcpHUfKdeGPurAX7pKV4DxgwADVrl07df36ddMQtxx+SAImuQmAOi4iQ+NNSD1Y+tChQ5X2CnXy5MmcwdS4qetNxowyX38oVQwgBB2dOXNGvXjxQoUgZEZKAinZlG0Snj17pg4dOmQGfOTIkVkDsFCqQ8OidENDw5+1ILG7IAS4evWqtxOX2TYlQtrMp18MNKxE660qKir4bfAxG2QMtkvhg3CZy5cvK58QIYHPFtZFGq/zsUhqg9z89OnTqkOHDqp9+/a8SgVI6WGXlJeXqytXrjiVlhRN8ndJcUl4aRbzffYhaRDQV11dnRo0aBCXoQSkRFQZFcEcxRCJGN64LUASIdKzrvZdirja4GUhsejx48dmZmJ145FGL2DU7du3vQ1xhWnm4GfXM1J70ucQMpsCmImw9rKRtjvDlAX2uHAh8cI+83q+tnh9Gy7LDEFS24S7d++qbt26xcrS9oNYqWIFmOSPdJ+sIungQtptFKIsl6MQ0HOvXr3KmZojiiWu0bPv0bVdltSp6+x7RroOfU767AMGlsefKKQjiQRqKERYyd18Ix5iYb7+fGX2ALsQ8UrUKSfCZx2+WSGUEJ9LhBAUOjghiKSHfWX2d5wka0mKI9I5iSBX264+bJlDESWNbKGuY7cXcnY9x+WS4o6LPOkZKve6j0sAwOUW1KivYUlpl2W4FEhS1tWvr88QRD6B6WwTIHVICKnjcp9MQJxJUiyJUGmwJUQ0JeGw1x1JgdU1gkkCu6zBp1AIYdJzobJxRD6hpRnJF2N8grhGLokMHySr4/dD2uGIJJPyuQWRw8tdQkv3XS7En5PqhrqRi6SQL4oRF8wlpBRX7Dr5LuaS+k2KK0lk+Sw/kRQpfvAyaSHnUliCjwzXOdRCfAQXiogrzhvl34vs7z8h8LkQnSV3cT3negbAF1p8uaMvtbyfUJnTvlFxmSUOvn/CD5Tb97hSdlsuQni565qOuXPnqgULFnjdOwRBMUWC9M26f//+SmcZzXYmds5tpUpKSlSfPn2yn7G7d/PmTaVz1jn9Yp944MCBqmfPnkrnYtTZs2fNvoeLHAA7htha3LZtW7AOTlJsl+CNSa7Dywkw28mTJxvhcOzfvz9GChScMmWK2dnDZ2waY4McKYfDhw9n62Gja/bs2aaNO3fuqC5duqgxY8aoPXv2qIMHD8bks6/HjRtn3MbeXy4Usf1ZunaZHdWD75J7EKAMDggFiwAp0shu3brVCA/MnDnTKHPu3LmsZY0YMcIQsX79erNViGdmzJhhMnwnTpwwm0KSnDpJblIySNrR/aKiIpPNpIxmKBJjih0XoihSEydOVIsWLVI67xqrR6aO1AH2POFGrhGjZw4cOGDax+Yx9QVCkJ4FIYRTp04ZV6OULpe3tLTUpHWRz7HvIa+zZMkSQzQGMhSRJLjtUgAYRwfIqkFxmDtFeKrXq1cvdePGjazwEBK5W1/QfPPmjUlKIYZkR0k/SyNLdeFGW7ZsUa4BHDZsmCHx2rVrsXsXLlxQ3bt3V7NmzTKWtm/fPlOGPr2kSMLSGQJOmDBBDR8+3JSh0YsXL8YaRTlGAVlF3AdpIAMkQQC7Hj/bsYu/CZDxzDj2GQOGwYLVIWjb954+fap27Nhh4tHUqVPVvHnz1L1799SuXbtisuWQwoOWfVRWVhqXgbJIHAmvMBhgN7xNmzaqvr7efEZCHibtU9alqKtMkhMYMmSIkREuZsOeFGBFIAd6YJDnzJljgvbevXtFfdJcEFsJWARGAjMBX9zZz5WVlZkAiCCHWHPr1i0zBeM5SanQ3JCPEDrwFgFmtIcPH+YQwttCv7AmyAjdXGsX5zIfgB/DX8eOHatGjx6tjh8/bkbEfgsBdXv37m3IW7hw4S8N69FDOQIvF45fS2Tbr1bAjSnW2CTR2qe2tjZbV1IU9RBT4GZY72zevNnMki54N64RCI8dO2YWT6NGjTKNgiRE+SNHjhjBISxmD0yrmDIJ06ZNU/369cuateQisCS4nU0y2gShNnmwRARLDBKUImCBB6KoX04I1kIgAzMmLKmmpibHzbykuPwcgGvAB0EQSJk0aZIhBqaIKRRWgnuYJQhwIdSVgjcOzDjTp083sxhiEPWN5xAUQSjWHagLK0V9vEVFbdEkgAFDcJeAeINVbnV1tZkgQpHXHi1ZDlyC4gICKgIZCLHbwfQMt0N+GrMAtbd48eKsNeC5nTt3xmYNjCRcYv78+YYE+D+O3bt3Z5VHPdSBW2zfvt2pHF44ghXlu3gTvyXTFiX3UbqmFSmAtQFMms8yGP2qqioT0NDOpUuX1MaNG8091EUb9P6cTSaI2rRpk3EZzGogDNYDYm1LxoIMZejHBSI7X0RS4OPXvMwmyo76NmBVsBYClKVVqq9tOuNZep7fg5VhWY/A71omfAyiTMKiSlKgEPiI4P37ygBY35o1a/J2i1DkZAil9QIhnySYCyFK27LYn+3+bRduagRtXNN9X7lEWFIqxBXgpet8Nok+Fs4pmcr4te+9NJeS0gLRVY+XJ2Uifw1EfBTs2YeQZEW+ctd9n+tI/f6WiLjCTS1sUoDl5b8XETbEl3Yk6+H3gZAEez5oDoQAIilS3Mg31+NCc7EGH9IhlXzBlT77grSvreaISBUArpik6KegvAtBlvK54Q9SBPxBioAYKYXMJp86pNgXIwUrWWwPfk7AlijfuYuRgswcNnc+J2B/GXkqGzFS8B8c2IH/nIAtTfx7rg3kfWJbV9j64///0lKBFwLs7EAj3sNSHtslyAQiwdTSgy4CLPLjSM2w8rsgJZatQpYPr0UgPdFSgQHHxjf2jOnVDQt1On2S/kFfxFwIKQxsDiP59Skv1yWAEMpHCYmxD1rfmrSehv+nP9Tzu5QvQcIJvtcS3AmxEok8JNJAiDDg9fpeNX4SIrVy5cp/6oJvFfvpEADzOP4tF1MXZicEJvqtgOYO+u9ZyE5BFZlCwWUAKPQvjX8bElatWlWsFzDfpRp/FcPVCV7EAdtwrU/BrTBwSIdgyqV/GPXU3anTrF/id1Riv5+iA8/3+uYXykNMC0QGhOj07l9jv59CwO+onD9//ht9+bU+ylTLJgfuYn5pR1v+f/G7KXRDVFq7U7k2u680g7PUz7+FgH/9L2hDqjkBC1Xt9o/0+Yw+by8qKvr/smXLcpLRPwGgC1b0qnByDgAAAABJRU5ErkJggg==",GS="/assets/image%203-C7hDAp5O.png",KS="/assets/image%208-BkCXtRCr.png",sG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAIAAACT77x+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH6AQTEgsqpgIK/QAACbJJREFUaN7tW2tsm9UZft/zXR1fYztO7CROmjRtKbeoa9XCCoUyoW5M3YVLB7/QJjZN2oQ0prGtSPuB2A+kjU3aBkzwYwgBGkiUscIutJQxRjsopLSELk7IxXac+JLY/nz77POdsx++NBeHJqXCLsrzKzk3P8/3nvec93vPd5BzDlUY+XBeG9eDz7P466m52UyOQRMCoc1OFKsPnXtE7357595FlTU9+VRgYuxQaeKpYjIuAuUcsNHMV0KZsQGibHPLvXdv3HqraO5dpKeoBc6eOJiaek/lOREoAG9aMQskIeViAVrsndu2fPEh2TZQ0UOzE8Nv/yQ7dULhBYTKHCvrEQi0uxXR3AdEaay9OM2xQmQmqhkcgEPNSTiQAlctnTsHrn3IZB9AmguNDD8TP/W4mWtlMQgACG4bWnw3iLbLSslTNHWaG4VGqgFA0SJa+qXWbUyPpSdejKd5TRUHkgOr68rvbbryLkyGj0wev1efT4hQKoshBLr7txPFrc8enY4VAeHc02iwJgAOXhdRvTczPTYZOAlVapRLit3Vd/2jwo/vap2bfEcAA6qW8Q/s4qw4OfJvLWs0WkEdZPI8kxi1Of0OV3dmPlRezghyo1iwmgjh8WOE06qDQc/G7QB8amyoWWxSD9SAycAJzgpd/TuqXs0Jpyx+lOiZCAAgAAK4bEgUd3jsRKMJrwIcpkaHiOJy2RCrq5eWnCFzaVZRiGDv/UYh8g/ajLOsPvTZI5aOa6r0IZ3lxKjGAAICUdoic00ZE6yA6XhJtA6IwrkSUvurw2Mtzb/XzG5TBxxYIepxKXX0ENVHM2ONJrhmUG1ENPfV0YOiidNMo+mtGZxqINSzz6UKvshDLn09i7Gup7mxrqe5sa6nubGup7nxedMjXtzharFHo3JBF80+fHHWhH/qJEqLCm47kjUS/BR6sI4VGAoGSgwFxE/sCOezIELn9p+5djyyVjtf6HxD8PcNCiavHj06HdXLpmAguDwdctt1IhQl0HlhOhsbSqT4wl4OMzq6rhPtV3Ajr0cOh6ajde3Y3kpk167M8IPGGl+XL1CPJIB54AeouInigtjTZU4MiND6Bc/me/KpswLXBdlh2eqwjT85fvpwuZfXRWyDvyKyk2r/E0S/2n2bNPr78dOvLH9Y5p47OCvkYifXSmx1ehAsJiyWeLFUKfC4WojaUUy8Lbl2ScLTRQoAQIBJUOTcCL/z82wqIxGjb+e9pg3f8c38fTpGAcDUfUAw986/dWskwQCgf8c9pt673VOvxlOL32EQZM8Npbl3YslKucOChRIv6Odnej7/QbBbsG/wTv/eZ1qtpFYoOgY5K+jhF4mpy+M0YWUsQ4YCcNqCOQKGwSA/9jjwkmi7otxLsPQZWiCSYOXlQg+/VEoOSdJSH/F1dgqmLj3yaq3E4b+hd8/vejbvUpXz8F3ZPgguG9r8X1W7vsmNfH7iqVSmOpc5SM4dpbmTczMfWa8SBdsWiL5f7cQAOIFKykvXdc4oUVortUg4K9Z+IRSOwvQvl/uP0vFlVkqmosO1kmLsTcEyYN50X093KD/xp2hwqFCsv4DW1yNL0HX57YpvP4CRG31sdvL4QlsrMsju3bmxRzN5buRDknM74PtYSbByqLPy4Yqr2TJOLjsq3q8Upp5NZc7VTccoxP7odT9h7v+u9YoHWzZM5MYeD46f4cu619ODsGHPI0jk3Nhjs+NvFYpL69s8PhRMNDkEAKW5dyXHVSKBxVnIC917EKze3UhkPfLK8spInEHiMZ/7SVPPXZatB3stz46f/suSNiv4DyuhaCOKWxCWPVoEybmdU80oJlstSFNniKnL4xSXNrowcJDbv0S1kfBsduU2jNMcEAW4AauyD4fIifudPTep/gN+/wE9+EI+dCgyx2qnLVLrNhStrdc8V6aOgiK7ruGxNwGgfEhZCw4quyqvby5ZAlnCXIGzqmN2elTJMZgN/Ha53QCg09Oidt+hdOyj2Y8zZx6IhoeXj1nff9JZnh5+rTV4xLHha2rX12XvPjX8cuijl0sURAFE6xZ99p+F4J/Ljc2b75NcOwHKeggAMhAAGADIJhuKLUyPAgdA4IwSubX2K+2+DeYtP9U+uD8cSVYs33Y9Z8XExOtL+HgcxNJ7u+q/k+VD2cBvgoHjbIV99pP2n3mNz39wyDr6kqv3JlPft53hw7NzrKPdiZK1EHwhFIqUm/W3DyneWxDB4EIRVECRChZZ1lrNzLzpR9zIa7HhsmFp6kyL+55uf39oakyRQe26FUVzMpkqj6NIYPIfKMaOafml9mzx7pHduzOnHwhNnGGfGDGcfz/Vclwbfs02eaREOSCIjquZnpidCdcalOaH1O5v+drUyahR4jKi4Lv2CWQFJDIrxrMfPTyvVfhlgn+VnNttg7/evDmIREXRnBv9Q7bK3uPtI2qHHvnbcq9Ih47Fxo9l8+dfZlYb76SzlbFKcydpeqREz1XNzXzIjR8yWiSAhegbU/+dlkBXMIs0nZxPLCQRS/LEm7/o7OwWrBtZMUlTp8txAwAAguK9hemJaKRODn0uvdoFc83xW3gmDZBeWJLJ8czkOAcgAOn5DJs/RYCR2gHmYjAGwWAQILik3KKi3HadHjmsF+HT4CK/zxEwasHBmqCXePRfB7RVzKjPSE9lZV787+pRorAkKm2wnguTcdHxecuHrOtpbqzraW6s62lurOtpbnyO9VxaX+7UgLiQ+QI9TEdBbTS7tcsRrdzI1dFDsx+LjqsaTW/NEK2bWCFSR89sXJfsVzY+Ql4TEEhL12xMO6endlBjcKDpsz633GiOa4DXSQwtUEtlCgSItQUr7sQhM31Mad97waN/xhAFUL03a9NvVOmD00aI1dEB1QxgPMWZHvdvHLwkZl1n/06mxxIpXktfKlYfIe4bGYq1N8vQ2LtI1J6BnQs/ymw6IPg3DgLg5GjtwAsZiujaQ5Tu2yWrm3IRADiAwWAycBw47b5sn9dFyp2bBQiA4GuTNly+D1EKjh6vffJPuShZ3aJ3P9JcKHDmudipR8244P4CgNuOFt8ewbKR5cNUG+FUWykN/ZkoQRStonUTUT1UG8nOHC8nT2r3F7Lc2nb197fsuA855/lUIPD2wWz4hAKL75cgiATa26xE9aLQ0khDcQCmG9nx2UShvJotv1+y9fqHRXNv9f5POnD2PwdTofdUyIl4qd3/6dq25doF93/KLWh2IvDh86XJp4rpuAAUmslxlovhHBhW7mf1bNpvsg+Uq5Av9opU+CiNvMQTb+iZSDzNePN9LY8INjNa7B3EvVfpvs3Svnth7f8BISRBYMle+gAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMDQtMTlUMTU6MTE6NDIrMDM6MDBMhGsrAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTA0LTE5VDE1OjExOjQyKzAzOjAwPdnTlwAAAABJRU5ErkJggg==",oG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAIAAACT77x+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH6AQTDw0oCqj8dAAACdhJREFUaN7tW3tsW9UZ/75z77V9/XYeTtK8E9dNiNs8W0rXAUXdKO3GJgbahjYJlT/Q2DRN+2/VJsE0CU2axF/TNE2wTQiBBONNKWxUFBiQdmmbJnESx2kedmLnZTvx+z7O2R+OHedRmrSlMVJ+f1i+33l9v/vd795zvu8cZIxBFin/YMzviXa/JXs+9y2m4zKFvNICASLadMRuFgXHQX37sbK7H15VmuOz5OnxfPpOsPuMvDjPMaUAmayBSgTBWFJx5/Hmow/q61tX8Yl5Llx64Rn/mFerJDmmYMGTAQAGqCKf5sSqmsb2k6eMzv3LfBJjvT3PPRW8OiyoKcIYwAoZjkC5QbAWFSGv2V7tqZRMRJd8SxJl+Y8OUkQJdRV1e1pP/tbs7ORT/kH32Tf846OimiKMLtdCsOq4akeTttyR9g9FA2NpdZstphfQZK9q72pRowvjV7ojKZUxAGCEMQ2kpiavih+969Lr+cWxgeD5M1olSbKsCULL7npisM15+6b7BhALxZUwfJV5rtoNfE1Ta2Us1D8yvqwwYxo1ETz/Xp2rlXuyzRwYHSRMQWAAgAgup4Opcv/gcDRNt5vCBojLdH42aC8pLispXgiHMvcagVE5ZSNp7slGaSGWwswNQGhx1CFijnphgjGYC4VLLQZ7SclcKAwACICMFqWCZDaazNWzajnOWOQeubrdCm+KUv+ojxisVi2XE/oXU2QxrWYuEKGu9c6A54pKC8NdNoE5b19VfWPuMiYzomZ9hCBwpuK5hLLdSm4BgZissddxBJevGSO5smqzJj05UCCvsk2CMVCjC+UGPidZ4aM3WZLz/u3WcMuQZsasRUUb8CEaXUL+WlkHAABoKp4/dyE30VVBYI0FvvZ81mCHT2Fjh09hY4dPYWOHT2Fjh09h46vggzffBQCIArGJK0ubr5wPIuDqwRgiJZxKeEq4tWWrG+Z+v6TOvgcebf7BL3CLfPitVc8br6WhmreUzo30TUXljJAC2VVksTjaOFUSaJpGZqampsIpNb+VSUPqHHu0u5xUTsX7PhoOpTdcQRaLvK6hLXT6z+oWQ0w3yIcnaL33p5zRSgy26U8/ZAwAkCExVjdV3ffj+JSXKClONBbrzYv/feVyz/8yrUr1vOP7P+cMFmlmjNdVmDqO6c69mCvNp13TfpjJ6Snf5JYV26Q19AKRVSZlo6TlBp43lySvXhLr2/jPzsoqA2DIKE/TTFUuv/bXRCyqQdrx7Ycs33ikfPhyMKYAQFXbYaG4cvC5U5koReeRE+aDD9ncl8JJddVwAKLzQGqiL5SVm7VEUllKuf5y8zr+gwgmLWk/dG/n40+bs5EhRLBW1jNFil3+N28rK8su3wlQQU0xRRLVBAGqUhb47C2mKiVlFZlWQkm1NDcxl1AYA8Yg1vuftH9QWOfye+wGwVYR7z+Xk9Q57+h89Nd7mxw6/jr+dE37IIJVy9W6Ok3t91M5tdT9elRavluMga52b2qifzwwW0p4q73CvzQJAMgYYRQYI0zNZCjiMmWqQvQWAB8AACFMkXJDDC2k8a0X1vuPoeUeNbE0GZjJSWbHhjT2WtvRkx2dM0tfvOad8KdVtqHjbcxHw2HLgcPGffcBo5FzL42MjubbWsOh6Ohc/PilhEzlSFBXsxdHJ/N6XzsOIl7rNbVeJ5uOM7juWbrwTn60ORhTgh++a//i/Zq7Hih58FeWhanIJy+7x6fXN9+ADyJ0/eiXyAuLH788POJJr3tqG4tFohET/mEASE/0ayv3EDyt3opIFyJUNzqRE0LuL9aXzsaVuQ/frug+U9FxpPjYz1ovvN3bc35NnY39h1GF6Ayc0catu7WIoK1x0WRsMU3NWi495eFt5aV6Dm4FGAN90yFpZmxiUb5WHcoYlZIoaIDRTdmHMej7118am12mrhNdXcejF9+f6u/OOHGmVFfjIqKx6bHfAwAgIK+x1ziC7qEcZVj9j7GNPyIaDgUOkzLNBZirzIK2ujly9p/r7QYAVSbB3nHEcMfd8rxv/s1nR6dm1ve5sf/EJNrbe8UyPNCw74Cx7aiz5Zu7rpwduHRBVhlHUFPeEHd/Gu05nalc9K3HdQ1t4B5igBQJIFLkGFAEZtVxRCOq0RBjgAigqkQv5kZxlFmK7n8i8Mazo2Epo3RxQwtTpNGhgTX6FIlcbdth0/4TSngmfPYfA8Pea8XYv+z7s5hSL53/3Hi5u7HZZTn0sMV9cT6hNFgFojPELp4ZmltOTHT4Bo2uewGBApGJDnkNFQwaIWYWmP2+nzA55Q/MZgybnvZYDv+weVfR4HRIy6Gx4xhq9YHYcsRcIGjqOpH0dMfltfasbGwWHZ3zbz47OBH48mzB9b+nGVsZB/sVyhBBrHSq8Yh3IZGrkPa5zfu/U2kUJuKgEC1yfOtjp0BKIsersUjog7/lUhiTAz3OWlfpI6dsoQAKWqIRI+deTGS1d5RZeXNJaOCT9V4xOTIoDbkT8vUnP5ud78Sk5b6iPo/8+p/kvHTq+PQMe/lpSWXIWGDUnX7xjwJNadQETcWnonK+EqGkev615/eUmYTSWppcmg9OB7PGQQTD3iNqPOINhtePHkmpsDlsef42FpEApHxJXKLu6QgAEMBoLLoUjyOjhFGEDZ4MymAwGIVg/xq5yBPR0RXv/0i6ucTzDc5HNwQC45gKjAJsWSeZsr7nfxeXbjZjeyv5ZHEjN1hW2ZpZ6Y1hZ71d2NjhU9jY4VPY2OFT2NjhU9jY4VNgWBM4WuHDFEnL3ZrUwO0E0RmotLKFb4VPJBQy7arfbvW2DE1ZfSK6tAGfYFzWVO7Zan5ie4EIvLXct7QS3CI5ApSBFBytMArbreQWUKrnpdnx3IZKjgAxCMsmYgx83qFSx97tVnKz4AhWOPf5vLm4H1i0HKmy6HLX4aRK42FXY/XX4qm7Y3eDGgvl58vsZpEIu++iRGDZ957bO4a81uVs3HLm8jYCEVyN1QA44B3PSBggJYLgOEhMBx7kjSUq8plXuUqh3+NlVHW1ttsNPFwv0XmbaSDCLpOwr60DOWHA481G6lBFnjeW6NuP8cYaZ8XB456zrxA1ltnyzxj0j4zbRF91Y1ONvVaJzEgzYzQV38a9mIhAtAZNWT1nKpZmxiaHevODJxQxzYm1dx4vu/thZIwtDff0/v0PwYlhga46X4IIBLHaLOhNZqIRb1CXWwSmSIvhUCCmrN4evnK+pPOJp/T1rXnnf55/xj/p1apJLnuWocCRd/7H0X7yNyvnfzLFibFe9wdvBC+ckWPzHJVvaqjbQQZo9nzW7nuOm52dGTmuSUPOfPxq4uJ7srd7NpoMpygrvP3liGDUkEqzTnAeMu3/bsmh7+WX/h8OspRWQ8OYxQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNC0wNC0xOVQxNToxMzo0MCswMzowMN/uqj8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjQtMDQtMTlUMTU6MTM6NDArMDM6MDCusxKDAAAAAElFTkSuQmCC";function aG(e){let t="",n="",r="";return e.project.tier=="Platinum"?(t="#E5E4E2",n="#9E9E9E",r=iG):e.project.tier=="Gold"?(t="#EBD197",n="#B48811",r=sG):(t="#CA9D85",n="#894218",r=oG),E.jsx(Z,{sx:{...e.sx,boxShadow:5,position:"sticky",height:"60vh",width:"50vw",borderRadius:"20px",padding:"30px",background:"linear-gradient(90deg,"+t+", "+n+")"},children:E.jsxs(Un,{container:!0,spacing:8,children:[E.jsx(Un,{container:!0,item:!0,columns:1,children:E.jsx("img",{src:r})}),E.jsxs(Un,{container:!0,item:!0,spacing:5,children:[E.jsx(Un,{item:!0,children:E.jsx("img",{src:GS,height:"50px"})}),E.jsx(Un,{item:!0,children:E.jsx("img",{src:KS,height:"50px"})})]}),E.jsxs(Un,{container:!0,item:!0,spacing:5,children:[E.jsx(Un,{item:!0,children:E.jsx("img",{src:GS,height:"50px"})}),E.jsx(Un,{item:!0,children:E.jsx("img",{src:KS,height:"50px"})})]}),E.jsx(Un,{container:!0,item:!0,spacing:3,justifyContent:"flex-end",children:E.jsx(Un,{item:!0,children:E.jsx("text",{style:{color:"#000000",fontWeight:"bold",fontSize:"50px"},children:e.project.tier})})})]})})}function lG(e){const t=H.useRef(null),[n,r]=H.useState(1),[i,s]=H.useState([]),{scrollYProgress:o}=iM({target:t,offset:["start start","end end"]});return H.useEffect(()=>{o.on("change",a=>{a<.9&&r(Math.abs(1-a*.08))}),s(()=>[{px:0,tier:"Platinum",members:[],logos:""},{px:25,tier:"Gold",members:[],logos:""},{px:50,tier:"Bronze",members:[],logos:""}])},[]),E.jsxs(Z,{ref:t,sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`${60*i.length+70}vh`,transform:`scale(${n})`},children:[E.jsx(Se,{sx:{position:"sticky",top:"130px",fontSize:"3rem",fontWeight:"bold"},children:"Meet Our Sponsors"}),i.map((a,l)=>E.jsx(aG,{project:a,sx:{top:`calc(30vh + ${l*40}px)`,transform:`scale(${1+l*.03})`}}))]})}function uG(e){const t=H.useRef(null),[n,r]=H.useState(1),[i,s]=H.useState(0),{scrollYProgress:o}=iM({target:t,offset:["start start","end end"]});return H.useEffect(()=>{o.on("change",a=>{a<.9&&(r(Math.abs(1-a*.08)),s(Math.abs(200*a)))})},[]),E.jsxs(Z,{ref:t,sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`calc(${400*(e.children.length+1)}px)`,transform:`scale(${n})`},children:[E.jsx(Se,{sx:{position:"sticky",top:`calc(130px - ${i}px)`,fontSize:"2.3rem",fontWeight:"bold"},children:e.title}),e.children.map((a,l)=>H.cloneElement(a,{sx:{position:"sticky",top:`calc(25vh + ${l*40}px - ${i}px)`,transform:`scale(${1+l*.03})`}}))]})}const qS=H.forwardRef((e,t)=>e.isLoading?"Loading...":e.error?e.error.message:e.mobileView?E.jsx(uG,{title:"Projects",sx:{padding:"20px"},children:e.data.map(n=>E.jsx(xw,{mobileView:!0,project:n},n._id))}):E.jsx(Z,{ref:t,sx:{display:"flex",gap:"30px",padding:"50px",maxWidth:"100%",overflowX:"hidden",position:e.position,top:window.scrollY>200?"120px":"100vh"},children:e.data.map(n=>E.jsx(xw,{mobileView:!1,project:n},n._id))})),QS=[{title:"About",anchor:"#about"},{title:"Projects",anchor:"#projects"},{title:"Our Team",anchor:"#team"},{title:"Sponsors",anchor:"#sponsors"},{title:"Highlights",anchor:"#highlights"},{title:"Contact Us",anchor:"#contact"}];function cG(){const e=Y4(HT.baseTheme.breakpoints.down("md")),[t,n]=H.useState(-120),[r]=H.useState([{title:"General Body Meeting, 3/25 8pm @ Iribe"}]),i=H.useRef(),[s,o]=H.useState("fixed"),[a,l]=H.useState(0),u=b.useRef(null),c=dV(u),[d]=H.useState("fixed"),{data:f,isLoading:p,error:h}=yA({queryKey:["projects"],queryFn:async()=>{let m=await xA.getAll();return m=m.concat(m).concat(m),l(m.length*500),m}});return H.useEffect(()=>{function m(){const x=window.scrollY,g=window.innerHeight+a;if(o(x>g||x{window.removeEventListener("scroll",m)}},[a]),E.jsxs(Z,{sx:{position:"relative"},children:[E.jsx(Z,{sx:{position:"absolute",top:`${JSON.parse(window.localStorage.getItem("events-visible"))?30:0}px`,left:0,width:"100%",height:"100%",background:"radial-gradient(55% 55% at -3% 104%, #0F114AFF 13%, #07074178 41%, #00000014 76%, #073AFF00 99%),radial-gradient(25% 25% at 62% 54%, #2324A9C4 0%, #073AFF00 100%),radial-gradient(25% 44% at 83% 33%, #434EA3FF 0%, #44579D29 65%, #073AFF00 93%),radial-gradient(49% 81% at 45% 47%, #0891A245 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #6122A6FF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #0522A9FF 1%, #FF000000 99%),radial-gradient(142% 91% at -6% 74%, #1C2581FF 1%, #FF000000 99%),radial-gradient(142% 91% at 109% 60%, #131B36FF 0%, #205353FF 99%)",opacity:scrollY>window.innerHeight-700?0:1,transition:"opacity 0.5s ease",backgroundAttachment:"fixed"}}),E.jsxs(Z,{sx:{background:"linear-gradient(312deg, rgba(0,191,255,1) 0%, rgba(74,105,232,1) 35%, rgba(111,62,220,1) 63%, rgba(156,0,255,1) 100%);",backgroundSize:"100% 100%",backgroundAttachment:"fixed"},children:[r.length<1?E.jsx(E.Fragment,{}):E.jsx(zT,{events:r}),E.jsx(Cd,{links:QS,fullWidth:!0}),E.jsx(Z,{sx:{height:"50px"}}),E.jsx($a.ScrollContainer,{style:{position:d,scrollBehavior:"smooth",overflow:"visible",width:"100%",height:"100%"},children:E.jsx($a.ScrollPage,{style:{width:"100%",overflow:"visible",flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:E.jsxs($a.Animator,{style:{width:"100%",overflow:"visible"},animation:$a.batch(fG(1,-.5,0),dG(3,1,0),pG(0,-400,0)),children:[E.jsx("div",{id:"stars1"}),E.jsx("div",{id:"stars2"}),E.jsx("div",{id:"stars3"}),E.jsxs(Se,{sx:{flexGrow:1,fontSize:"4vw",fontWeight:"bold",textAlign:"center"},children:["Empower Code. Inspire Design.",E.jsx("br",{}),"Drive Innovation."]}),E.jsxs(Z,{sx:{display:"flex",flex:1,flexWrap:"wrap",gap:4,marginLeft:{md:8},marginRight:{md:8},marginTop:"5vw",flexDirection:{xs:"column",md:"row"}},children:[E.jsx(Lh,{end:5e5,title:"Dollars Saved",prefix:"$",minWidth:336,alignSelf:{xs:"center",md:"flex-start"}}),E.jsx(Lh,{end:150,title:"Members",minWidth:81}),E.jsx(Lh,{end:5e4,title:"Lines of Code",minWidth:267,alignSelf:{xs:"center",md:"flex-end"}})]})]})})}),E.jsx(Z,{sx:{height:"100vh"}}),e?E.jsx(Z,{children:E.jsx(qS,{mobileView:!0,data:f,isLoading:p,error:h,ref:i,position:s,height:a})}):E.jsxs(E.Fragment,{children:[E.jsx(Z,{id:"projects",display:window.scrollY>window.innerHeight?"block":"none",sx:{height:`${a}px`}}),E.jsx(qS,{data:f,isLoading:p,error:h,ref:i,position:s,height:a}),E.jsx(Z,{display:window.scrollY>a+window.innerHeight?"none":"block",sx:{height:"580px"}})]}),e&&!e?E.jsx(E.Fragment,{}):E.jsxs(Z,{sx:{paddingTop:"100px",background:"linear-gradient(0deg, #00FFFF00 0%, #000000FF 44%, #000000FF 50%, #000000FF 56%, #073AFF00 100%)",transition:"opacity 0.5s ease",opacity:c?1:0},children:[E.jsx(HS,{id:"members_sparkles",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"}),E.jsx(Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},ref:u,children:E.jsx(yz,{id:"team"})}),E.jsx(HS,{id:"members_sparkles2",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"})]}),E.jsx(Z,{sx:{height:"150px"}}),e?E.jsx(E.Fragment,{}):E.jsx(lG,{}),E.jsx(Z,{sx:{height:"300px"}}),E.jsx(WT,{}),E.jsx(Cd,{links:QS,translucent:!0,sx:{marginTop:"25px",zIndex:2,position:"fixed",top:`${t}px`,left:"0px"}})]})]})}const dG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`scale(${t*(1-r)+e*r})`)}}}),fG=(e,t,n)=>({out:{style:{opacity:r=>(r=Math.max(r-n,0),e*(1-r)+t*r)}}}),pG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`translate(${0*(1-r)+e*r}px, ${0*(1-r)+t*r}px)`)}}});function hG(){const{projectId:e}=u5(),{data:t,isFetching:n,error:r}=yA({queryKey:["project"],queryFn:async()=>await xA.getById(e)});return b.useEffect(()=>{window.scrollTo(0,0)},[]),n?E.jsx(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:E.jsx(FD,{})}):r?E.jsx(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:E.jsx(uj,{variant:"filled",severity:"error",children:"Unable to retrieve project data..."})}):E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",gap:"2rem",justifyContent:"center",padding:"15vh 0",alignItems:"center",minHeight:"100vh"},children:[E.jsx(mG,{name:t.name,organization:t.organization}),E.jsx(gG,{description:t.description}),E.jsx(vG,{demo:t.demo}),E.jsx(yG,{members:t.members})]})}function mG(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h2",sx:{fontWeight:"bold"},children:e.name}),E.jsxs(Se,{variant:"h4",sx:{fontStyle:"italic"},children:["In collaboration with ",e.organization]})]})}function gG(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Overview"}),E.jsx(j0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(Se,{children:e.description})]})}function vG(e){return E.jsxs(Z,{children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Demo"}),E.jsx(j0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(wD,{sx:{marginTop:"15px",borderRadius:"5px",width:"clamp(25rem, 50vw, 60rem)",backgroundColor:"white",color:"black"},children:E.jsx(kD,{component:"iframe",image:e.demo,sx:{width:"inherit",aspectRatio:"16/9",border:"none"}})})]})}function yG(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Members"}),E.jsx(j0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(Z,{sx:{marginTop:"15px",display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:"10px"},children:e.members.map((t,n)=>E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:"white",borderRadius:"5px",color:"black",minWidth:"15%",padding:"1rem"},children:[t.memberInfo.profileUrl?E.jsx(Pd,{src:t.memberInfo.profileUrl,sx:{width:"50px",height:"50px"}},n):b.createElement(Pd,{...KT(`${t.memberInfo.firstName} ${t.memberInfo.lastName}`),sx:{width:"50px",height:"50px"},key:n}),E.jsx(Se,{variant:"subtitle1",sx:{fontWeight:"bold",marginTop:"5px"},children:`${t.memberInfo.firstName} ${t.memberInfo.lastName}`}),E.jsx(Se,{variant:"subtitle2",sx:{opacity:"0.75"},children:t.role})]}))})]})}function xG(){return E.jsx("h1",{children:"WebTierPage"})}const wG=new o9;am.createRoot(document.getElementById("root")).render(E.jsx(_5,{children:E.jsx(d9,{client:wG,children:E.jsxs(lL,{theme:HT.baseTheme,children:[E.jsx(BD,{}),E.jsxs(C5,{children:[E.jsx(ja,{path:"/",element:E.jsx(cG,{})}),E.jsxs(ja,{path:"/",element:E.jsx(oF,{}),children:[E.jsx(ja,{path:"/project/:projectId",element:E.jsx(hG,{})}),E.jsx(ja,{path:"tier/:tier",element:E.jsx(xG,{})})]})]})]})})}));export{qG as $,_G as A,RG as B,PG as C,CG as D,$G as E,FG as F,yV as G,at as H,wo as I,ar as J,DG as K,xy as L,ZG as M,NG as N,hs as O,sK as P,AA as Q,YG as R,CA as S,Pp as T,VG as U,Rn as V,EA as W,jG as X,GG as Y,QG as Z,Ee as _,LG as a,XG as a0,TA as a1,HG as a2,Ep as a3,_V as a4,jV as a5,KG as a6,iK as a7,rK as a8,wy as a9,UG as aa,JG as ab,oK as ac,aK as ad,no as ae,WG as af,wV as b,yy as c,Ql as d,Xl as e,kb as f,nK as g,aa as h,ks as i,cc as j,IG as k,zG as l,Wd as m,tK as n,BG as o,Bh as p,SA as q,eK as r,il as s,TG as t,AG as u,MG as v,kG as w,EG as x,SG as y,OG as z}; diff --git a/dist/assets/index-9OwJQEAY.js b/dist/assets/index-CcTVH4mc.js similarity index 58% rename from dist/assets/index-9OwJQEAY.js rename to dist/assets/index-CcTVH4mc.js index ddf5491..7204106 100644 --- a/dist/assets/index-9OwJQEAY.js +++ b/dist/assets/index-CcTVH4mc.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/EmojiDrawer-D7x4UA07.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/EmojiDrawer-9mjzhNZh.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as a}from"./index-CbDPnSIu.js";const i=["emoji"];async function r(e,o=!0){const{EmojiDrawer:t}=await a(()=>import("./EmojiDrawer-D7x4UA07.js"),__vite__mapDeps([0,1,2]));await e.addShape(i,new t,o)}const n=Object.freeze(Object.defineProperty({__proto__:null,loadEmojiShape:r},Symbol.toStringTag,{value:"Module"}));export{n as i,i as v}; +import{_ as a}from"./index-oTx0snEa.js";const i=["emoji"];async function r(e,o=!0){const{EmojiDrawer:t}=await a(()=>import("./EmojiDrawer-9mjzhNZh.js"),__vite__mapDeps([0,1,2]));await e.addShape(i,new t,o)}const n=Object.freeze(Object.defineProperty({__proto__:null,loadEmojiShape:r},Symbol.toStringTag,{value:"Module"}));export{n as i,i as v}; diff --git a/dist/assets/index-CKLG1pGI.js b/dist/assets/index-Cs918U9H.js similarity index 69% rename from dist/assets/index-CKLG1pGI.js rename to dist/assets/index-Cs918U9H.js index f670967..dc9c912 100644 --- a/dist/assets/index-CKLG1pGI.js +++ b/dist/assets/index-Cs918U9H.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Bubbler-DtkR7BqZ.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-D6O5nK3L.js","assets/OptionsColor-uNQKa8qH.js"] + __vite__mapDeps.viteFileDeps = ["assets/Bubbler-BmouqAcE.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-CImPpXf_.js","assets/OptionsColor-CaHN7lKC.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{i as t,e as o,_ as u}from"./index-CbDPnSIu.js";import{O as c}from"./OptionsColor-uNQKa8qH.js";class n{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const s=t(this.color)?void 0:this.color;this.color=o(e.color,i=>c.create(s,i))}e.size!==void 0&&(this.size=e.size)}}}class l extends n{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class h extends n{load(e){super.load(e),e&&(this.divs=o(e.divs,s=>{const i=new l;return i.load(s),i}))}}async function p(r,e=!0){await r.addInteractor("externalBubble",async s=>{const{Bubbler:i}=await u(()=>import("./Bubbler-DtkR7BqZ.js"),__vite__mapDeps([0,1,2,3,4,5]));return new i(s)},e)}export{h as Bubble,n as BubbleBase,l as BubbleDiv,p as loadExternalBubbleInteraction}; +import{i as t,e as o,_ as u}from"./index-oTx0snEa.js";import{O as c}from"./OptionsColor-CaHN7lKC.js";class n{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const s=t(this.color)?void 0:this.color;this.color=o(e.color,i=>c.create(s,i))}e.size!==void 0&&(this.size=e.size)}}}class l extends n{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class h extends n{load(e){super.load(e),e&&(this.divs=o(e.divs,s=>{const i=new l;return i.load(s),i}))}}async function p(r,e=!0){await r.addInteractor("externalBubble",async s=>{const{Bubbler:i}=await u(()=>import("./Bubbler-BmouqAcE.js"),__vite__mapDeps([0,1,2,3,4,5]));return new i(s)},e)}export{h as Bubble,n as BubbleBase,l as BubbleDiv,p as loadExternalBubbleInteraction}; diff --git a/dist/assets/index-CyLeXEWe.js b/dist/assets/index-CyLeXEWe.js new file mode 100644 index 0000000..7329a5e --- /dev/null +++ b/dist/assets/index-CyLeXEWe.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/BaseMover-XcaScd-o.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as r}from"./index-oTx0snEa.js";async function _(a,e=!0){await a.addMover("base",async()=>{const{BaseMover:o}=await r(()=>import("./BaseMover-XcaScd-o.js"),__vite__mapDeps([0,1,2]));return new o},e)}export{_ as loadBaseMover}; diff --git a/dist/assets/index-waDFwdpY.js b/dist/assets/index-D2MXMviT.js similarity index 55% rename from dist/assets/index-waDFwdpY.js rename to dist/assets/index-D2MXMviT.js index e65eaef..2c840fe 100644 --- a/dist/assets/index-waDFwdpY.js +++ b/dist/assets/index-D2MXMviT.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Bouncer-D0PwO-CL.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/Ranges-D6O5nK3L.js","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Bouncer-B8fX3_Tr.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/Ranges-CImPpXf_.js","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as o}from"./index-CbDPnSIu.js";class i{constructor(){this.distance=200}load(n){n&&n.distance!==void 0&&(this.distance=n.distance)}}async function a(t,n=!0){await t.addInteractor("externalBounce",async e=>{const{Bouncer:r}=await o(()=>import("./Bouncer-D0PwO-CL.js"),__vite__mapDeps([0,1,2,3,4]));return new r(e)},n)}export{i as Bounce,a as loadExternalBounceInteraction}; +import{_ as o}from"./index-oTx0snEa.js";class i{constructor(){this.distance=200}load(n){n&&n.distance!==void 0&&(this.distance=n.distance)}}async function a(t,n=!0){await t.addInteractor("externalBounce",async e=>{const{Bouncer:r}=await o(()=>import("./Bouncer-B8fX3_Tr.js"),__vite__mapDeps([0,1,2,3,4]));return new r(e)},n)}export{i as Bounce,a as loadExternalBounceInteraction}; diff --git a/dist/assets/index-D67SAAtJ.js b/dist/assets/index-D67SAAtJ.js deleted file mode 100644 index fbeb168..0000000 --- a/dist/assets/index-D67SAAtJ.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Attractor-90LbQhZk.js","assets/ParticlesInteractorBase-vfDeBun3.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as c}from"./index-CbDPnSIu.js";async function i(t,r=!0){await t.addInteractor("particlesAttract",async a=>{const{Attractor:o}=await c(()=>import("./Attractor-90LbQhZk.js"),__vite__mapDeps([0,1,2,3]));return new o(a)},r)}export{i as loadParticlesAttractInteraction}; diff --git a/dist/assets/index-D6eGQv_3.js b/dist/assets/index-D6eGQv_3.js new file mode 100644 index 0000000..c119813 --- /dev/null +++ b/dist/assets/index-D6eGQv_3.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/StarDrawer-Cgx7yWk3.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as e}from"./index-oTx0snEa.js";async function _(a,t=!0){const{StarDrawer:r}=await e(()=>import("./StarDrawer-Cgx7yWk3.js"),__vite__mapDeps([0,1,2]));await a.addShape("star",new r,t)}export{_ as loadStarShape}; diff --git a/dist/assets/index-BA8kTSU-.js b/dist/assets/index-DGh6NlmN.js similarity index 68% rename from dist/assets/index-BA8kTSU-.js rename to dist/assets/index-DGh6NlmN.js index 6c1af42..151c888 100644 --- a/dist/assets/index-BA8kTSU-.js +++ b/dist/assets/index-DGh6NlmN.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Grabber-B5LcMKWv.js","assets/CanvasUtils-CgNwHWHl.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/OptionsColor-uNQKa8qH.js"] + __vite__mapDeps.viteFileDeps = ["assets/Grabber-Bzlu04C2.js","assets/CanvasUtils-C_06btl7.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/OptionsColor-CaHN7lKC.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-CbDPnSIu.js";import{O as s}from"./OptionsColor-uNQKa8qH.js";class r{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(i){i&&(i.blink!==void 0&&(this.blink=i.blink),i.color!==void 0&&(this.color=s.create(this.color,i.color)),i.consent!==void 0&&(this.consent=i.consent),i.opacity!==void 0&&(this.opacity=i.opacity))}}class f{constructor(){this.distance=100,this.links=new r}load(i){i&&(i.distance!==void 0&&(this.distance=i.distance),this.links.load(i.links))}}async function a(n,i=!0){await n.addInteractor("externalGrab",async o=>{const{Grabber:t}=await e(()=>import("./Grabber-B5LcMKWv.js"),__vite__mapDeps([0,1,2,3,4,5]));return new t(o)},i)}export{f as Grab,r as GrabLinks,a as loadExternalGrabInteraction}; +import{_ as e}from"./index-oTx0snEa.js";import{O as s}from"./OptionsColor-CaHN7lKC.js";class r{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(i){i&&(i.blink!==void 0&&(this.blink=i.blink),i.color!==void 0&&(this.color=s.create(this.color,i.color)),i.consent!==void 0&&(this.consent=i.consent),i.opacity!==void 0&&(this.opacity=i.opacity))}}class f{constructor(){this.distance=100,this.links=new r}load(i){i&&(i.distance!==void 0&&(this.distance=i.distance),this.links.load(i.links))}}async function a(n,i=!0){await n.addInteractor("externalGrab",async o=>{const{Grabber:t}=await e(()=>import("./Grabber-Bzlu04C2.js"),__vite__mapDeps([0,1,2,3,4,5]));return new t(o)},i)}export{f as Grab,r as GrabLinks,a as loadExternalGrabInteraction}; diff --git a/dist/assets/index-DOqMzA2Y.js b/dist/assets/index-DOqMzA2Y.js deleted file mode 100644 index dbb4ad4..0000000 --- a/dist/assets/index-DOqMzA2Y.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/BaseMover-Dlcsp7VI.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as r}from"./index-CbDPnSIu.js";async function _(a,e=!0){await a.addMover("base",async()=>{const{BaseMover:o}=await r(()=>import("./BaseMover-Dlcsp7VI.js"),__vite__mapDeps([0,1,2]));return new o},e)}export{_ as loadBaseMover}; diff --git a/dist/assets/index-DQ32AwOr.js b/dist/assets/index-DQ32AwOr.js new file mode 100644 index 0000000..5f35247 --- /dev/null +++ b/dist/assets/index-DQ32AwOr.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/PolygonDrawer-BMyW1y6Y.js","assets/PolygonDrawerBase-B3NsPTUa.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/TriangleDrawer-DFBiMAB6.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as n}from"./index-oTx0snEa.js";async function e(a,o=!0){const{PolygonDrawer:t}=await n(()=>import("./PolygonDrawer-BMyW1y6Y.js"),__vite__mapDeps([0,1,2,3]));await a.addShape("polygon",new t,o)}async function i(a,o=!0){const{TriangleDrawer:t}=await n(()=>import("./TriangleDrawer-DFBiMAB6.js"),__vite__mapDeps([4,1,2,3]));await a.addShape("triangle",new t,o)}async function _(a,o=!0){await e(a,o),await i(a,o)}export{e as loadGenericPolygonShape,_ as loadPolygonShape,i as loadTriangleShape}; diff --git a/dist/assets/index-Dp4lHfZX.js b/dist/assets/index-Dp4lHfZX.js deleted file mode 100644 index d88a09d..0000000 --- a/dist/assets/index-Dp4lHfZX.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/CircleDrawer-DwcaGyny.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as i}from"./index-CbDPnSIu.js";async function o(a,e=!0){const{CircleDrawer:r}=await i(()=>import("./CircleDrawer-DwcaGyny.js"),__vite__mapDeps([0,1,2]));await a.addShape("circle",new r,e)}export{o as loadCircleShape}; diff --git a/dist/assets/index-Dyr8Xn4o.js b/dist/assets/index-DrocrkVf.js similarity index 75% rename from dist/assets/index-Dyr8Xn4o.js rename to dist/assets/index-DrocrkVf.js index d2ce662..2feddf7 100644 --- a/dist/assets/index-Dyr8Xn4o.js +++ b/dist/assets/index-DrocrkVf.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/interaction-oqqpqou0.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/plugin-IRu9goKz.js"] + __vite__mapDeps.viteFileDeps = ["assets/interaction-CoNIFp9r.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/plugin-mdX6kdfV.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-CbDPnSIu.js";import{O as n}from"./OptionsColor-uNQKa8qH.js";class l{constructor(){this.blur=5,this.color=new n,this.color.value="#000",this.enable=!1}load(i){i&&(i.blur!==void 0&&(this.blur=i.blur),this.color=n.create(this.color,i.color),i.enable!==void 0&&(this.enable=i.enable))}}class t{constructor(){this.enable=!1,this.frequency=1}load(i){i&&(i.color!==void 0&&(this.color=n.create(this.color,i.color)),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity))}}class h{constructor(){this.blink=!1,this.color=new n,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new l,this.triangles=new t,this.width=1,this.warp=!1}load(i){i&&(i.id!==void 0&&(this.id=i.id),i.blink!==void 0&&(this.blink=i.blink),this.color=n.create(this.color,i.color),i.consent!==void 0&&(this.consent=i.consent),i.distance!==void 0&&(this.distance=i.distance),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity),this.shadow.load(i.shadow),this.triangles.load(i.triangles),i.width!==void 0&&(this.width=i.width),i.warp!==void 0&&(this.warp=i.warp))}}async function u(e,i=!0){const{loadLinksInteraction:o}=await s(()=>import("./interaction-oqqpqou0.js"),__vite__mapDeps([0,1,2])),{loadLinksPlugin:r}=await s(()=>import("./plugin-IRu9goKz.js"),__vite__mapDeps([3,1,2]));await o(e,i),await r(e,i)}export{h as Links,l as LinksShadow,t as LinksTriangle,u as loadParticlesLinksInteraction}; +import{_ as s}from"./index-oTx0snEa.js";import{O as n}from"./OptionsColor-CaHN7lKC.js";class l{constructor(){this.blur=5,this.color=new n,this.color.value="#000",this.enable=!1}load(i){i&&(i.blur!==void 0&&(this.blur=i.blur),this.color=n.create(this.color,i.color),i.enable!==void 0&&(this.enable=i.enable))}}class t{constructor(){this.enable=!1,this.frequency=1}load(i){i&&(i.color!==void 0&&(this.color=n.create(this.color,i.color)),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity))}}class h{constructor(){this.blink=!1,this.color=new n,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new l,this.triangles=new t,this.width=1,this.warp=!1}load(i){i&&(i.id!==void 0&&(this.id=i.id),i.blink!==void 0&&(this.blink=i.blink),this.color=n.create(this.color,i.color),i.consent!==void 0&&(this.consent=i.consent),i.distance!==void 0&&(this.distance=i.distance),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity),this.shadow.load(i.shadow),this.triangles.load(i.triangles),i.width!==void 0&&(this.width=i.width),i.warp!==void 0&&(this.warp=i.warp))}}async function u(e,i=!0){const{loadLinksInteraction:o}=await s(()=>import("./interaction-CoNIFp9r.js"),__vite__mapDeps([0,1,2])),{loadLinksPlugin:r}=await s(()=>import("./plugin-mdX6kdfV.js"),__vite__mapDeps([3,1,2]));await o(e,i),await r(e,i)}export{h as Links,l as LinksShadow,t as LinksTriangle,u as loadParticlesLinksInteraction}; diff --git a/dist/assets/index-DIXDNPUm.js b/dist/assets/index-DsefkI69.js similarity index 50% rename from dist/assets/index-DIXDNPUm.js rename to dist/assets/index-DsefkI69.js index 1654f58..a12332f 100644 --- a/dist/assets/index-DIXDNPUm.js +++ b/dist/assets/index-DsefkI69.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ParallaxMover-7FUMtVYT.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/ParallaxMover-BZB7s3ib.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as t}from"./index-CbDPnSIu.js";async function l(a,r=!0){await a.addMover("parallax",async()=>{const{ParallaxMover:o}=await t(()=>import("./ParallaxMover-7FUMtVYT.js"),__vite__mapDeps([0,1,2]));return new o},r)}export{l as loadParallaxMover}; +import{_ as t}from"./index-oTx0snEa.js";async function l(a,r=!0){await a.addMover("parallax",async()=>{const{ParallaxMover:o}=await t(()=>import("./ParallaxMover-BZB7s3ib.js"),__vite__mapDeps([0,1,2]));return new o},r)}export{l as loadParallaxMover}; diff --git a/dist/assets/index-BMg955LU.js b/dist/assets/index-Dzzo1m2O.js similarity index 67% rename from dist/assets/index-BMg955LU.js rename to dist/assets/index-Dzzo1m2O.js index ec1ae09..ac4ab71 100644 --- a/dist/assets/index-BMg955LU.js +++ b/dist/assets/index-Dzzo1m2O.js @@ -1 +1 @@ -import{_ as t}from"./index-CbDPnSIu.js";async function r(a,e=!0){const{LineDrawer:i}=await t(()=>import("./LineDrawer-1OQKWYNc.js"),[]);await a.addShape("line",new i,e)}export{r as loadLineShape}; +import{_ as t}from"./index-oTx0snEa.js";async function r(a,e=!0){const{LineDrawer:i}=await t(()=>import("./LineDrawer-1OQKWYNc.js"),[]);await a.addShape("line",new i,e)}export{r as loadLineShape}; diff --git a/dist/assets/index-97AWNjhu.js b/dist/assets/index-Sft8gFf2.js similarity index 65% rename from dist/assets/index-97AWNjhu.js rename to dist/assets/index-Sft8gFf2.js index 5f0dc59..01d5fba 100644 --- a/dist/assets/index-97AWNjhu.js +++ b/dist/assets/index-Sft8gFf2.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/OutOfCanvasUpdater-Bcazql3G.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/OutOfCanvasUpdater-BqPCE_GX.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as o}from"./index-CbDPnSIu.js";async function i(t,a=!0){await t.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:r}=await o(()=>import("./OutOfCanvasUpdater-Bcazql3G.js"),__vite__mapDeps([0,1,2]));return new r(e)},a)}export{i as loadOutModesUpdater}; +import{_ as o}from"./index-oTx0snEa.js";async function i(t,a=!0){await t.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:r}=await o(()=>import("./OutOfCanvasUpdater-BqPCE_GX.js"),__vite__mapDeps([0,1,2]));return new r(e)},a)}export{i as loadOutModesUpdater}; diff --git a/dist/assets/index-Bb9-9aB9.js b/dist/assets/index-YWtmZL0O.js similarity index 70% rename from dist/assets/index-Bb9-9aB9.js rename to dist/assets/index-YWtmZL0O.js index 4a827e3..66f45e4 100644 --- a/dist/assets/index-Bb9-9aB9.js +++ b/dist/assets/index-YWtmZL0O.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Pusher-CXGCyLny.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Pusher-DB9qK4Zu.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{s,_ as n}from"./index-CbDPnSIu.js";class o{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(!t)return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(u=>u)),this.groups.length||(this.default=!0);const e=t.quantity;e!==void 0&&(this.quantity=s(e))}}async function a(i,t=!0){await i.addInteractor("externalPush",async e=>{const{Pusher:u}=await n(()=>import("./Pusher-CXGCyLny.js"),__vite__mapDeps([0,1,2,3]));return new u(e)},t)}export{o as Push,a as loadExternalPushInteraction}; +import{s,_ as n}from"./index-oTx0snEa.js";class o{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(!t)return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(u=>u)),this.groups.length||(this.default=!0);const e=t.quantity;e!==void 0&&(this.quantity=s(e))}}async function a(i,t=!0){await i.addInteractor("externalPush",async e=>{const{Pusher:u}=await n(()=>import("./Pusher-DB9qK4Zu.js"),__vite__mapDeps([0,1,2,3]));return new u(e)},t)}export{o as Push,a as loadExternalPushInteraction}; diff --git a/dist/assets/index-DRJNGGWz.js b/dist/assets/index-ZVHEU4I3.js similarity index 70% rename from dist/assets/index-DRJNGGWz.js rename to dist/assets/index-ZVHEU4I3.js index 5a85c7e..f9719e6 100644 --- a/dist/assets/index-DRJNGGWz.js +++ b/dist/assets/index-ZVHEU4I3.js @@ -1 +1 @@ -import{_ as t}from"./index-CbDPnSIu.js";async function _(a,e=!0){const{SquareDrawer:r}=await t(()=>import("./SquareDrawer-C3wQIQqh.js"),[]);await a.addShape(["edge","square"],new r,e)}export{_ as loadSquareShape}; +import{_ as t}from"./index-oTx0snEa.js";async function _(a,e=!0){const{SquareDrawer:r}=await t(()=>import("./SquareDrawer-C3wQIQqh.js"),[]);await a.addShape(["edge","square"],new r,e)}export{_ as loadSquareShape}; diff --git a/dist/assets/index-jmjYJKeY.js b/dist/assets/index-jmjYJKeY.js new file mode 100644 index 0000000..8613743 --- /dev/null +++ b/dist/assets/index-jmjYJKeY.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Attractor-DAxw6_Qb.js","assets/ParticlesInteractorBase-vfDeBun3.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as c}from"./index-oTx0snEa.js";async function i(t,r=!0){await t.addInteractor("particlesAttract",async a=>{const{Attractor:o}=await c(()=>import("./Attractor-DAxw6_Qb.js"),__vite__mapDeps([0,1,2,3]));return new o(a)},r)}export{i as loadParticlesAttractInteraction}; diff --git a/dist/assets/index-oTx0snEa.js b/dist/assets/index-oTx0snEa.js new file mode 100644 index 0000000..48fe2a0 --- /dev/null +++ b/dist/assets/index-oTx0snEa.js @@ -0,0 +1,264 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Container-oz32eahT.js","assets/CanvasUtils-C_06btl7.js","assets/OptionsColor-CaHN7lKC.js","assets/ValueWithRandom-D5hQ_OLE.js","assets/Ranges-CImPpXf_.js","assets/index-Cs918U9H.js","assets/index-DGh6NlmN.js","assets/index-DrocrkVf.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +var _p=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var _=(e,t,n)=>(_p(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},W=(e,t,n,r)=>(_p(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Iu=(e,t,n,r)=>({set _(i){W(e,t,i,n)},get _(){return _(e,t,r)}}),le=(e,t,n)=>(_p(e,t,"access private method"),n);function JM(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ZS={exports:{}},Qd={},JS={exports:{}},oe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var au=Symbol.for("react.element"),e_=Symbol.for("react.portal"),t_=Symbol.for("react.fragment"),n_=Symbol.for("react.strict_mode"),r_=Symbol.for("react.profiler"),i_=Symbol.for("react.provider"),s_=Symbol.for("react.context"),o_=Symbol.for("react.forward_ref"),a_=Symbol.for("react.suspense"),l_=Symbol.for("react.memo"),u_=Symbol.for("react.lazy"),Zy=Symbol.iterator;function c_(e){return e===null||typeof e!="object"?null:(e=Zy&&e[Zy]||e["@@iterator"],typeof e=="function"?e:null)}var eE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tE=Object.assign,nE={};function Ko(e,t,n){this.props=e,this.context=t,this.refs=nE,this.updater=n||eE}Ko.prototype.isReactComponent={};Ko.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rE(){}rE.prototype=Ko.prototype;function lv(e,t,n){this.props=e,this.context=t,this.refs=nE,this.updater=n||eE}var uv=lv.prototype=new rE;uv.constructor=lv;tE(uv,Ko.prototype);uv.isPureReactComponent=!0;var Jy=Array.isArray,iE=Object.prototype.hasOwnProperty,cv={current:null},sE={key:!0,ref:!0,__self:!0,__source:!0};function oE(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)iE.call(t,r)&&!sE.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ne=O[q];if(0>>1;qi(ct,V))iei(U,ct)?(O[q]=U,O[ie]=V,q=ie):(O[q]=ct,O[me]=V,q=me);else if(iei(U,V))O[q]=U,O[ie]=V,q=ie;else break e}}return $}function i(O,$){var V=O.sortIndex-$.sortIndex;return V!==0?V:O.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(O){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=O)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function w(O){if(m=!1,v(O),!h)if(n(l)!==null)h=!0,z(S);else{var $=n(u);$!==null&&K(w,$.startTime-O)}}function S(O,$){h=!1,m&&(m=!1,g(C),C=-1),p=!0;var V=f;try{for(v($),d=n(l);d!==null&&(!(d.expirationTime>$)||O&&!R());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var ne=q(d.expirationTime<=$);$=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),v($)}else r(l);d=n(l)}if(d!==null)var Xe=!0;else{var me=n(u);me!==null&&K(w,me.startTime-$),Xe=!1}return Xe}finally{d=null,f=V,p=!1}}var P=!1,T=null,C=-1,M=5,k=-1;function R(){return!(e.unstable_now()-kO||125q?(O.sortIndex=V,t(u,O),n(l)===null&&O===n(u)&&(m?(g(C),C=-1):m=!0,K(w,V-q))):(O.sortIndex=ne,t(l,O),h||p||(h=!0,z(S))),O},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(O){var $=f;return function(){var V=f;f=$;try{return O.apply(this,arguments)}finally{f=V}}}})(cE);uE.exports=cE;var b_=uE.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dE=b,Xt=b_;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tm=Object.prototype.hasOwnProperty,S_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,t1={},n1={};function E_(e){return tm.call(n1,e)?!0:tm.call(t1,e)?!1:S_.test(e)?n1[e]=!0:(t1[e]=!0,!1)}function P_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C_(e,t,n,r){if(t===null||typeof t>"u"||P_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var fv=/[\-:]([a-z])/g;function pv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fv,pv);gt[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fv,pv);gt[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fv,pv);gt[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function hv(e,t,n,r){var i=gt.hasOwnProperty(t)?gt[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ap=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ma(e):""}function T_(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Ip(e.type,!1),e;case 11:return e=Ip(e.type.render,!1),e;case 1:return e=Ip(e.type,!0),e;default:return""}}function sm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bs:return"Fragment";case Vs:return"Portal";case nm:return"Profiler";case mv:return"StrictMode";case rm:return"Suspense";case im:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hE:return(e.displayName||"Context")+".Consumer";case pE:return(e._context.displayName||"Context")+".Provider";case gv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vv:return t=e.displayName||null,t!==null?t:sm(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return sm(e(t))}catch{}}return null}function k_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sm(t);case 8:return t===mv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M_(e){var t=gE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ju(e){e._valueTracker||(e._valueTracker=M_(e))}function vE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function om(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function i1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_i(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yE(e,t){t=t.checked,t!=null&&hv(e,"checked",t,!1)}function am(e,t){yE(e,t);var n=_i(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lm(e,t.type,n):t.hasOwnProperty("defaultValue")&&lm(e,t.type,_i(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function s1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function lm(e,t,n){(t!=="number"||Vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _a=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Du.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},__=["Webkit","ms","Moz","O"];Object.keys(Fa).forEach(function(e){__.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fa[t]=Fa[e]})});function SE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fa.hasOwnProperty(e)&&Fa[e]?(""+t).trim():t+"px"}function EE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=SE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var O_=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dm(e,t){if(t){if(O_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function fm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pm=null;function yv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hm=null,ao=null,lo=null;function l1(e){if(e=cu(e)){if(typeof hm!="function")throw Error(F(280));var t=e.stateNode;t&&(t=ef(t),hm(e.stateNode,e.type,t))}}function PE(e){ao?lo?lo.push(e):lo=[e]:ao=e}function CE(){if(ao){var e=ao,t=lo;if(lo=ao=null,l1(e),t)for(e=0;e>>=0,e===0?32:31-(V_(e)/B_|0)|0}var Fu=64,Nu=4194304;function Oa(e){switch(e&-e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Oa(a):(s&=o,s!==0&&(r=Oa(s)))}else o=n&~i,o!==0?r=Oa(o):s!==0&&(r=Oa(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function lu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dn(t),e[t]=n}function G_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=za),v1=" ",y1=!1;function HE(e,t){switch(e){case"keyup":return wO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Us=!1;function SO(e,t){switch(e){case"compositionend":return GE(t);case"keypress":return t.which!==32?null:(y1=!0,v1);case"textInput":return e=t.data,e===v1&&y1?null:e;default:return null}}function EO(e,t){if(Us)return e==="compositionend"||!Tv&&HE(e,t)?(e=UE(),hc=Ev=oi=null,Us=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S1(n)}}function YE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XE(){for(var e=window,t=Vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vc(e.document)}return t}function kv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function AO(e){var t=XE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&YE(n.ownerDocument.documentElement,n)){if(r!==null&&kv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=E1(n,s);var o=E1(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ws=null,wm=null,Ba=null,bm=!1;function P1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bm||Ws==null||Ws!==Vc(r)||(r=Ws,"selectionStart"in r&&kv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ba&&hl(Ba,r)||(Ba=r,r=Kc(wm,"onSelect"),0qs||(e.current=km[qs],km[qs]=null,qs--)}function Ce(e,t){qs++,km[qs]=e.current,e.current=t}var Oi={},Mt=$i(Oi),Nt=$i(!1),ms=Oi;function Lo(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function Yc(){Me(Nt),Me(Mt)}function R1(e,t,n){if(Mt.current!==Oi)throw Error(F(168));Ce(Mt,t),Ce(Nt,n)}function oP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,k_(e)||"Unknown",i));return $e({},n,r)}function Xc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,ms=Mt.current,Ce(Mt,e),Ce(Nt,Nt.current),!0}function A1(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=oP(e,t,ms),r.__reactInternalMemoizedMergedChildContext=e,Me(Nt),Me(Mt),Ce(Mt,e)):Me(Nt),Ce(Nt,n)}var fr=null,tf=!1,qp=!1;function aP(e){fr===null?fr=[e]:fr.push(e)}function WO(e){tf=!0,aP(e)}function ji(){if(!qp&&fr!==null){qp=!0;var e=0,t=xe;try{var n=fr;for(xe=1;e>=o,i-=o,pr=1<<32-Dn(t)+i|n<C?(M=T,T=null):M=T.sibling;var k=f(g,T,v[C],w);if(k===null){T===null&&(T=M);break}e&&T&&k.alternate===null&&t(g,T),y=s(k,y,C),P===null?S=k:P.sibling=k,P=k,T=M}if(C===v.length)return n(g,T),Re&&Ui(g,C),S;if(T===null){for(;CC?(M=T,T=null):M=T.sibling;var R=f(g,T,k.value,w);if(R===null){T===null&&(T=M);break}e&&T&&R.alternate===null&&t(g,T),y=s(R,y,C),P===null?S=R:P.sibling=R,P=R,T=M}if(k.done)return n(g,T),Re&&Ui(g,C),S;if(T===null){for(;!k.done;C++,k=v.next())k=d(g,k.value,w),k!==null&&(y=s(k,y,C),P===null?S=k:P.sibling=k,P=k);return Re&&Ui(g,C),S}for(T=r(g,T);!k.done;C++,k=v.next())k=p(T,g,C,k.value,w),k!==null&&(e&&k.alternate!==null&&T.delete(k.key===null?C:k.key),y=s(k,y,C),P===null?S=k:P.sibling=k,P=k);return e&&T.forEach(function(I){return t(g,I)}),Re&&Ui(g,C),S}function x(g,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Bs&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case $u:e:{for(var S=v.key,P=y;P!==null;){if(P.key===S){if(S=v.type,S===Bs){if(P.tag===7){n(g,P.sibling),y=i(P,v.props.children),y.return=g,g=y;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Kr&&N1(S)===P.type){n(g,P.sibling),y=i(P,v.props),y.ref=ma(g,P,v),y.return=g,g=y;break e}n(g,P);break}else t(g,P);P=P.sibling}v.type===Bs?(y=fs(v.props.children,g.mode,w,v.key),y.return=g,g=y):(w=Sc(v.type,v.key,v.props,null,g.mode,w),w.ref=ma(g,y,v),w.return=g,g=w)}return o(g);case Vs:e:{for(P=v.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=th(v,g.mode,w),y.return=g,g=y}return o(g);case Kr:return P=v._init,x(g,y,P(v._payload),w)}if(_a(v))return h(g,y,v,w);if(ca(v))return m(g,y,v,w);Gu(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=eh(v,g.mode,w),y.return=g,g=y),o(g)):n(g,y)}return x}var jo=mP(!0),gP=mP(!1),du={},er=$i(du),yl=$i(du),xl=$i(du);function Zi(e){if(e===du)throw Error(F(174));return e}function jv(e,t){switch(Ce(xl,t),Ce(yl,e),Ce(er,du),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cm(t,e)}Me(er),Ce(er,t)}function Do(){Me(er),Me(yl),Me(xl)}function vP(e){Zi(xl.current);var t=Zi(er.current),n=cm(t,e.type);t!==n&&(Ce(yl,e),Ce(er,n))}function Dv(e){yl.current===e&&(Me(er),Me(yl))}var Ae=$i(0);function rd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kp=[];function Fv(){for(var e=0;en?n:4,e(!0);var r=Qp.transition;Qp.transition={};try{e(!1),t()}finally{xe=n,Qp.transition=r}}function IP(){return En().memoizedState}function KO(e,t,n){var r=xi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},LP(e))$P(t,n);else if(n=dP(e,t,n,r),n!==null){var i=At();Fn(n,e,r,i),jP(n,t,r)}}function QO(e,t,n){var r=xi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(LP(e))$P(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Nn(a,o)){var l=t.interleaved;l===null?(i.next=i,Lv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=dP(e,t,i,r),n!==null&&(i=At(),Fn(n,e,r,i),jP(n,t,r))}}function LP(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function $P(e,t){Ua=id=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wv(e,n)}}var sd={readContext:Sn,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},YO={readContext:Sn,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:Sn,useEffect:V1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yc(4194308,4,MP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return yc(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=KO.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:z1,useDebugValue:Uv,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=z1(!1),t=e[0];return e=qO.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Bn();if(Re){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ot===null)throw Error(F(349));vs&30||wP(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,V1(SP.bind(null,r,s,e),[e]),r.flags|=2048,Sl(9,bP.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Bn(),t=ot.identifierPrefix;if(Re){var n=hr,r=pr;n=(r&~(1<<32-Dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Xn]=t,e[vl]=r,HP(e,t,!1,!1),t.stateNode=e;e:{switch(o=fm(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;iNo&&(t.flags|=128,r=!0,ga(s,!1),t.lanes=4194304)}else{if(!r)if(e=rd(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ga(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Re)return St(t),null}else 2*Ue()-s.renderingStartTime>No&&n!==1073741824&&(t.flags|=128,r=!0,ga(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ue(),t.sibling=null,n=Ae.current,Ce(Ae,r?n&1|2:n&1),t):(St(t),null);case 22:case 23:return Qv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function iR(e,t){switch(_v(t),t.tag){case 1:return zt(t.type)&&Yc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Do(),Me(Nt),Me(Mt),Fv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dv(t),null;case 13:if(Me(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));$o()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Ae),null;case 4:return Do(),null;case 10:return Iv(t.type._context),null;case 22:case 23:return Qv(),null;case 24:return null;default:return null}}var Ku=!1,Tt=!1,sR=typeof WeakSet=="function"?WeakSet:Set,G=null;function Xs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Nm(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var Y1=!1;function oR(e,t){if(Sm=Gc,e=XE(),kv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Em={focusedElem:e,selectionRange:n},Gc=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,x=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Rn(t.type,m),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){Ve(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return h=Y1,Y1=!1,h}function Wa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Nm(t,n,s)}i=i.next}while(i!==r)}}function sf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function KP(e){var t=e.alternate;t!==null&&(e.alternate=null,KP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xn],delete t[vl],delete t[Tm],delete t[BO],delete t[UO])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function QP(e){return e.tag===5||e.tag===3||e.tag===4}function X1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qc));else if(r!==4&&(e=e.child,e!==null))for(Vm(e,t,n),e=e.sibling;e!==null;)Vm(e,t,n),e=e.sibling}function Bm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bm(e,t,n),e=e.sibling;e!==null;)Bm(e,t,n),e=e.sibling}var dt=null,In=!1;function jr(e,t,n){for(n=n.child;n!==null;)YP(e,t,n),n=n.sibling}function YP(e,t,n){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Yd,n)}catch{}switch(n.tag){case 5:Tt||Xs(n,t);case 6:var r=dt,i=In;dt=null,jr(e,t,n),dt=r,In=i,dt!==null&&(In?(e=dt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):dt.removeChild(n.stateNode));break;case 18:dt!==null&&(In?(e=dt,n=n.stateNode,e.nodeType===8?Gp(e.parentNode,n):e.nodeType===1&&Gp(e,n),fl(e)):Gp(dt,n.stateNode));break;case 4:r=dt,i=In,dt=n.stateNode.containerInfo,In=!0,jr(e,t,n),dt=r,In=i;break;case 0:case 11:case 14:case 15:if(!Tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Nm(n,t,o),i=i.next}while(i!==r)}jr(e,t,n);break;case 1:if(!Tt&&(Xs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}jr(e,t,n);break;case 21:jr(e,t,n);break;case 22:n.mode&1?(Tt=(r=Tt)||n.memoizedState!==null,jr(e,t,n),Tt=r):jr(e,t,n);break;default:jr(e,t,n)}}function Z1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sR),t.forEach(function(r){var i=mR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _n(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lR(r/1960))-r,10e?16:e,ai===null)var r=!1;else{if(e=ai,ai=null,ld=0,pe&6)throw Error(F(331));var i=pe;for(pe|=4,G=e.current;G!==null;){var s=G,o=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lUe()-qv?ds(e,0):Gv|=n),Vt(e,t)}function iC(e,t){t===0&&(e.mode&1?(t=Nu,Nu<<=1,!(Nu&130023424)&&(Nu=4194304)):t=1);var n=At();e=kr(e,t),e!==null&&(lu(e,t,n),Vt(e,n))}function hR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iC(e,n)}function mR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),iC(e,n)}var sC;sC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nt.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,nR(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,Re&&t.flags&1048576&&lP(t,Jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xc(e,t),e=t.pendingProps;var i=Lo(t,Mt.current);co(t,n),i=zv(null,t,r,e,i,n);var s=Vv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(r)?(s=!0,Xc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$v(t),i.updater=nf,t.stateNode=i,i._reactInternals=t,Am(t,r,e,n),t=$m(null,t,r,!0,s,n)):(t.tag=0,Re&&s&&Mv(t),Rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vR(r),e=Rn(r,e),i){case 0:t=Lm(null,t,r,e,n);break e;case 1:t=q1(null,t,r,e,n);break e;case 11:t=H1(null,t,r,e,n);break e;case 14:t=G1(null,t,r,Rn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),Lm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),q1(e,t,r,i,n);case 3:e:{if(BP(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,i=s.element,fP(e,t),nd(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Fo(Error(F(423)),t),t=K1(e,t,r,n,i);break e}else if(r!==i){i=Fo(Error(F(424)),t),t=K1(e,t,r,n,i);break e}else for(qt=gi(t.stateNode.containerInfo.firstChild),Qt=t,Re=!0,Ln=null,n=gP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($o(),r===i){t=Mr(e,t,n);break e}Rt(e,t,r,n)}t=t.child}return t;case 5:return vP(t),e===null&&_m(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Pm(r,i)?o=null:s!==null&&Pm(r,s)&&(t.flags|=32),VP(e,t),Rt(e,t,o,n),t.child;case 6:return e===null&&_m(t),null;case 13:return UP(e,t,n);case 4:return jv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):Rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),H1(e,t,r,i,n);case 7:return Rt(e,t,t.pendingProps,n),t.child;case 8:return Rt(e,t,t.pendingProps.children,n),t.child;case 12:return Rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Ce(ed,r._currentValue),r._currentValue=o,s!==null)if(Nn(s.value,o)){if(s.children===i.children&&!Nt.current){t=Mr(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=yr(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Om(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Om(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,co(t,n),i=Sn(i),r=r(i),t.flags|=1,Rt(e,t,r,n),t.child;case 14:return r=t.type,i=Rn(r,t.pendingProps),i=Rn(r.type,i),G1(e,t,r,i,n);case 15:return NP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),xc(e,t),t.tag=1,zt(r)?(e=!0,Xc(t)):e=!1,co(t,n),hP(t,r,i),Am(t,r,i,n),$m(null,t,r,!0,e,n);case 19:return WP(e,t,n);case 22:return zP(e,t,n)}throw Error(F(156,t.tag))};function oC(e,t){return AE(e,t)}function gR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,r){return new gR(e,t,n,r)}function Xv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vR(e){if(typeof e=="function")return Xv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gv)return 11;if(e===vv)return 14}return 2}function wi(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sc(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Xv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Bs:return fs(n.children,i,s,t);case mv:o=8,i|=8;break;case nm:return e=yn(12,n,t,i|2),e.elementType=nm,e.lanes=s,e;case rm:return e=yn(13,n,t,i),e.elementType=rm,e.lanes=s,e;case im:return e=yn(19,n,t,i),e.elementType=im,e.lanes=s,e;case mE:return af(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pE:o=10;break e;case hE:o=9;break e;case gv:o=11;break e;case vv:o=14;break e;case Kr:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=yn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function fs(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function af(e,t,n,r){return e=yn(22,e,r,t),e.elementType=mE,e.lanes=n,e.stateNode={isHidden:!1},e}function eh(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function th(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$p(0),this.expirationTimes=$p(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$p(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zv(e,t,n,r,i,s,o,a,l){return e=new yR(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=yn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$v(s),e}function xR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cC)}catch(e){console.error(e)}}cC(),lE.exports=Jt;var ff=lE.exports;const Xu=XS(ff);var ox=ff;em.createRoot=ox.createRoot,em.hydrateRoot=ox.hydrateRoot;/** + * @remix-run/router v1.15.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function CR(){return Math.random().toString(36).substr(2,8)}function lx(e,t){return{usr:e.state,key:e.key,idx:t}}function qm(e,t,n,r){return n===void 0&&(n=null),Pl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xo(t):t,{state:n,key:t&&t.key||r||CR()})}function dd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function TR(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=li.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Pl({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=li.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:g})}function f(x,g){a=li.Push;let y=qm(m.location,x,g);n&&n(y,x),u=c()+1;let v=lx(y,u),w=m.createHref(y);try{o.pushState(v,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}s&&l&&l({action:a,location:m.location,delta:1})}function p(x,g){a=li.Replace;let y=qm(m.location,x,g);n&&n(y,x),u=c();let v=lx(y,u),w=m.createHref(y);o.replaceState(v,"",w),s&&l&&l({action:a,location:m.location,delta:0})}function h(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof x=="string"?x:dd(x);return y=y.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ax,d),l=x,()=>{i.removeEventListener(ax,d),l=null}},createHref(x){return t(i,x)},createURL:h,encodeLocation(x){let g=h(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(x){return o.go(x)}};return m}var ux;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ux||(ux={}));function kR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xo(t):t,i=n0(r.pathname||"/",n);if(i==null)return null;let s=fC(e);MR(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=bi([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Qe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),fC(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:$R(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of pC(s.path))i(s,o,l)}),t}function pC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=pC(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function MR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _R=/^:[\w-]+$/,OR=3,RR=2,AR=1,IR=10,LR=-2,cx=e=>e==="*";function $R(e,t){let n=e.split("/"),r=n.length;return n.some(cx)&&(r+=LR),t&&(r+=RR),n.filter(i=>!cx(i)).reduce((i,s)=>i+(_R.test(s)?OR:s===""?AR:IR),r)}function jR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function DR(e,t){let{routesMeta:n}=e,r={},i="/",s=[];for(let o=0;o{let{paramName:f,isOptional:p}=c;if(f==="*"){let m=a[d]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const h=a[d];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function NR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function zR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function n0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function VR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Xo(e):e;return{pathname:n?n.startsWith("/")?n:BR(n,t):t,search:HR(r),hash:GR(i)}}function BR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function nh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function UR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hC(e,t){let n=UR(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mC(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Xo(e):(i=Pl({},e),Qe(!i.pathname||!i.pathname.includes("?"),nh("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),nh("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),nh("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=VR(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const bi=e=>e.join("/").replace(/\/\/+/g,"/"),WR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gC=["post","put","patch","delete"];new Set(gC);const KR=["get",...gC];new Set(KR);/** + * React Router v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=mC(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:bi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}const ZR=b.createContext(null);function JR(e){let t=b.useContext(Ir).outlet;return t&&b.createElement(ZR.Provider,{value:e},t)}function e5(){let{matches:e}=b.useContext(Ir),t=e[e.length-1];return t?t.params:{}}function wC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Cs),{matches:i}=b.useContext(Ir),{pathname:s}=hf(),o=JSON.stringify(hC(i,r.v7_relativeSplatPath));return b.useMemo(()=>mC(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function t5(e,t){return n5(e,t)}function n5(e,t,n,r){fu()||Qe(!1);let{navigator:i}=b.useContext(Cs),{matches:s}=b.useContext(Ir),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=hf(),c;if(t){var d;let x=typeof t=="string"?Xo(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Qe(!1),c=x}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=kR(e,{pathname:p}),m=a5(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:bi([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:bi([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&m?b.createElement(pf.Provider,{value:{location:Cl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:li.Pop}},m):m}function r5(){let e=d5(),t=qR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const i5=b.createElement(r5,null);class s5 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Ir.Provider,{value:this.props.routeContext},b.createElement(vC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function o5(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(r0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ir.Provider,{value:t},r)}function a5(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||Qe(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let p,h=!1,m=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||i5,l&&(u<0&&f===0?(p5("route-fallback",!1),h=!0,x=null):u===f&&(h=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),y=()=>{let v;return p?v=m:h?v=x:d.route.Component?v=b.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,b.createElement(o5,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(s5,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var bC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bC||{}),fd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fd||{});function l5(e){let t=b.useContext(r0);return t||Qe(!1),t}function u5(e){let t=b.useContext(QR);return t||Qe(!1),t}function c5(e){let t=b.useContext(Ir);return t||Qe(!1),t}function SC(e){let t=c5(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function d5(){var e;let t=b.useContext(vC),n=u5(fd.UseRouteError),r=SC(fd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function f5(){let{router:e}=l5(bC.UseNavigateStable),t=SC(fd.UseNavigateStable),n=b.useRef(!1);return yC(()=>{n.current=!0}),b.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Cl({fromRouteId:t},s)))},[e,t])}const dx={};function p5(e,t,n){!t&&!dx[e]&&(dx[e]=!0)}function h5(e){return JR(e.context)}function Aa(e){Qe(!1)}function m5(e){let{basename:t="/",children:n=null,location:r,navigationType:i=li.Pop,navigator:s,static:o=!1,future:a}=e;fu()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:s,static:o,future:Cl({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Xo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=b.useMemo(()=>{let x=n0(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:h},navigationType:i}},[l,c,d,f,p,h,i]);return m==null?null:b.createElement(Cs.Provider,{value:u},b.createElement(pf.Provider,{children:n,value:m}))}function g5(e){let{children:t,location:n}=e;return t5(Km(t),n)}new Promise(()=>{});function Km(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let s=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Km(r.props.children,s));return}r.type!==Aa&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Km(r.props.children,s)),n.push(o)}),n}/** + * React Router DOM v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function y5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function x5(e,t){return e.button===0&&(!t||t==="_self")&&!y5(e)}const w5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],b5="6";try{window.__reactRouterVersion=b5}catch{}const S5="startTransition",fx=zc[S5];function E5(e){let{basename:t,children:n,future:r,window:i}=e,s=b.useRef();s.current==null&&(s.current=PR({window:i,v5Compat:!0}));let o=s.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=b.useCallback(d=>{u&&fx?fx(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.createElement(m5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const P5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T5=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=v5(t,w5),{basename:p}=b.useContext(Cs),h,m=!1;if(typeof u=="string"&&C5.test(u)&&(h=u,P5))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=n0(w.pathname,p);w.origin===v.origin&&S!=null?u=S+w.search+w.hash:m=!0}catch{}let x=YR(u,{relative:i}),g=k5(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function y(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",Qm({},f,{href:h||x,onClick:m||s?r:y,ref:n,target:l}))});var px;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(px||(px={}));var hx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hx||(hx={}));function k5(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,l=xC(),u=hf(),c=wC(e,{relative:o});return b.useCallback(d=>{if(x5(d,n)){d.preventDefault();let f=r!==void 0?r:dd(u)===dd(c);l(e,{replace:f,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=EC(e[n])}),t}function tr(e,t,n={clone:!0}){const r=n.clone?A({},e):e;return Jr(e)&&Jr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Jr(t[i])&&i in e&&Jr(e[i])?r[i]=tr(e[i],t[i],n):n.clone?r[i]=Jr(t[i])?EC(t[i]):t[i]:r[i]=t[i])}),r}const M5=Object.freeze(Object.defineProperty({__proto__:null,default:tr,isPlainObject:Jr},Symbol.toStringTag,{value:"Module"}));function Tl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function MC(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function j5(e,t){return()=>null}function D5(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function xr(e){return e&&e.ownerDocument||document}function Zo(e){return xr(e).defaultView||window}function F5(e,t){return()=>null}function pd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const kl=typeof window<"u"?b.useLayoutEffect:b.useEffect;let vx=0;function N5(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(vx+=1,n(`mui-${vx}`))},[t]),r}const yx=zc.useId;function z5(e){if(yx!==void 0){const t=yx();return e??t}return N5(e)}function V5(e,t,n,r,i){return null}function B5({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[s,o]=b.useState(t),a=i?e:s,l=b.useCallback(u=>{i||o(u)},[]);return[a,l]}function Ji(e){const t=b.useRef(e);return kl(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Pn(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pd(n,t)})},e)}const xx={};function U5(e,t){const n=b.useRef(xx);return n.current===xx&&(n.current=e(t)),n}const W5=[];function H5(e){b.useEffect(e,W5)}class Cf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function G5(){const e=U5(Cf.create).current;return H5(e.disposeEffect),e}let Tf=!0,Xm=!1;const q5=new Cf,K5={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Q5(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&K5[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Y5(e){e.metaKey||e.altKey||e.ctrlKey||(Tf=!0)}function rh(){Tf=!1}function X5(){this.visibilityState==="hidden"&&Xm&&(Tf=!0)}function Z5(e){e.addEventListener("keydown",Y5,!0),e.addEventListener("mousedown",rh,!0),e.addEventListener("pointerdown",rh,!0),e.addEventListener("touchstart",rh,!0),e.addEventListener("visibilitychange",X5,!0)}function J5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Tf||Q5(t)}function o0(){const e=b.useCallback(i=>{i!=null&&Z5(i.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(Xm=!0,q5.start(100,()=>{Xm=!1}),t.current=!1,!0):!1}function r(i){return J5(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function eA(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function _C(e,t){const n=A({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=A({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=A({},s),Object.keys(i).forEach(o=>{n[r][o]=_C(i[o],s[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function vt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((s,o)=>{if(o){const a=t(o);a!==""&&s.push(a),n&&n[o]&&s.push(n[o])}return s},[]).join(" ")}),r}const wx=e=>e,tA=()=>{let e=wx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wx}}},nA=tA(),a0=nA,rA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function at(e,t,n="Mui"){const r=rA[t];return r?`${n}-${r}`:`${a0.generate(e)}-${t}`}function et(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=at(e,i,n)}),r}function iA(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const sA=Object.freeze(Object.defineProperty({__proto__:null,default:iA},Symbol.toStringTag,{value:"Module"}));function se(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function OC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function AC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=se(e,oA),s=aA(t),o=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[o[h]]=="number"?t[o[h]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1`@media (min-width:${l0[e]}px)`};function _r(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||bx;return t.reduce((o,a,l)=>(o[s.up(s.keys[l])]=n(t[l]),o),{})}if(typeof t=="object"){const s=r.breakpoints||bx;return Object.keys(t).reduce((o,a)=>{if(Object.keys(s.values||l0).indexOf(a)!==-1){const l=s.up(a);o[l]=n(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return n(t)}function cA(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const s=e.up(i);return r[s]={},r},{}))||{}}function dA(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function zo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function hd(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=zo(e,n)||r,t&&(i=t(i,r,e)),i}function He(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,u=zo(l,r)||{};return _r(o,a,d=>{let f=hd(u,i,d);return d===f&&typeof d=="string"&&(f=hd(u,i,`${t}${d==="default"?"":Q(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function fA(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pA={m:"margin",p:"padding"},hA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Sx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mA=fA(e=>{if(e.length>2)if(Sx[e])e=Sx[e];else return[e];const[t,n]=e.split(""),r=pA[t],i=hA[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),u0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],c0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...u0,...c0];function pu(e,t,n,r){var i;const s=(i=zo(e,t,!1))!=null?i:n;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function IC(e){return pu(e,"spacing",8)}function hu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gA(e,t){return n=>e.reduce((r,i)=>(r[i]=hu(t,n),r),{})}function vA(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=mA(n),s=gA(i,r),o=e[n];return _r(e,o,s)}function LC(e,t){const n=IC(e.theme);return Object.keys(e).map(r=>vA(e,t,r,n)).reduce(qa,{})}function Fe(e){return LC(e,u0)}Fe.propTypes={};Fe.filterProps=u0;function Ne(e){return LC(e,c0)}Ne.propTypes={};Ne.filterProps=c0;function yA(e=8){if(e.mui)return e;const t=IC({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function kf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?qa(i,t[s](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function kn(e,t){return He({prop:e,themeKey:"borders",transform:t})}const xA=kn("border",mn),wA=kn("borderTop",mn),bA=kn("borderRight",mn),SA=kn("borderBottom",mn),EA=kn("borderLeft",mn),PA=kn("borderColor"),CA=kn("borderTopColor"),TA=kn("borderRightColor"),kA=kn("borderBottomColor"),MA=kn("borderLeftColor"),_A=kn("outline",mn),OA=kn("outlineColor"),Mf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:hu(t,r)});return _r(e,e.borderRadius,n)}return null};Mf.propTypes={};Mf.filterProps=["borderRadius"];kf(xA,wA,bA,SA,EA,PA,CA,TA,kA,MA,Mf,_A,OA);const _f=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pu(e.theme,"spacing",8),n=r=>({gap:hu(t,r)});return _r(e,e.gap,n)}return null};_f.propTypes={};_f.filterProps=["gap"];const Of=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pu(e.theme,"spacing",8),n=r=>({columnGap:hu(t,r)});return _r(e,e.columnGap,n)}return null};Of.propTypes={};Of.filterProps=["columnGap"];const Rf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pu(e.theme,"spacing",8),n=r=>({rowGap:hu(t,r)});return _r(e,e.rowGap,n)}return null};Rf.propTypes={};Rf.filterProps=["rowGap"];const RA=He({prop:"gridColumn"}),AA=He({prop:"gridRow"}),IA=He({prop:"gridAutoFlow"}),LA=He({prop:"gridAutoColumns"}),$A=He({prop:"gridAutoRows"}),jA=He({prop:"gridTemplateColumns"}),DA=He({prop:"gridTemplateRows"}),FA=He({prop:"gridTemplateAreas"}),NA=He({prop:"gridArea"});kf(_f,Of,Rf,RA,AA,IA,LA,$A,jA,DA,FA,NA);function po(e,t){return t==="grey"?t:e}const zA=He({prop:"color",themeKey:"palette",transform:po}),VA=He({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:po}),BA=He({prop:"backgroundColor",themeKey:"palette",transform:po});kf(zA,VA,BA);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const UA=He({prop:"width",transform:Gt}),d0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||l0[n];return s?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Gt(n)}};return _r(e,e.maxWidth,t)}return null};d0.filterProps=["maxWidth"];const WA=He({prop:"minWidth",transform:Gt}),HA=He({prop:"height",transform:Gt}),GA=He({prop:"maxHeight",transform:Gt}),qA=He({prop:"minHeight",transform:Gt});He({prop:"size",cssProperty:"width",transform:Gt});He({prop:"size",cssProperty:"height",transform:Gt});const KA=He({prop:"boxSizing"});kf(UA,d0,WA,HA,GA,qA,KA);const QA={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mf},color:{themeKey:"palette",transform:po},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:po},backgroundColor:{themeKey:"palette",transform:po},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:Fe},mt:{style:Fe},mr:{style:Fe},mb:{style:Fe},ml:{style:Fe},mx:{style:Fe},my:{style:Fe},margin:{style:Fe},marginTop:{style:Fe},marginRight:{style:Fe},marginBottom:{style:Fe},marginLeft:{style:Fe},marginX:{style:Fe},marginY:{style:Fe},marginInline:{style:Fe},marginInlineStart:{style:Fe},marginInlineEnd:{style:Fe},marginBlock:{style:Fe},marginBlockStart:{style:Fe},marginBlockEnd:{style:Fe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_f},rowGap:{style:Rf},columnGap:{style:Of},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:d0},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},mu=QA;function YA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function XA(e,t){return typeof e=="function"?e(t):e}function $C(){function e(n,r,i,s){const o={[n]:r,theme:i},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=zo(i,u)||{};return d?d(o):_r(o,r,h=>{let m=hd(f,c,h);return h===m&&typeof h=="string"&&(m=hd(f,c,`${n}${h==="default"?"":Q(h)}`,h)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const o=(r=s.unstable_sxConfig)!=null?r:mu;function a(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=cA(s.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=XA(u[p],s);if(h!=null)if(typeof h=="object")if(o[p])f=qa(f,e(p,h,s,o));else{const m=_r({theme:s},h,x=>({[p]:x}));YA(m,h)?f[p]=t({sx:h,theme:s}):f=qa(f,m)}else f=qa(f,e(p,h,s,o))}),dA(d,f)}return Array.isArray(i)?i.map(a):a(i)}return t}const gu=$C();gu.filterProps=["sx"];function jC(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ZA=["breakpoints","palette","spacing","shape"];function f0(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=e,o=se(e,ZA),a=AC(n),l=yA(i);let u=tr({breakpoints:a,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:l,shape:A({},uA,s)},o);return u.applyStyles=jC,u=t.reduce((c,d)=>tr(c,d),u),u.unstable_sxConfig=A({},mu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return gu({sx:d,theme:this})},u}const JA=Object.freeze(Object.defineProperty({__proto__:null,default:f0,private_createBreakpoints:AC,unstable_applyStyles:jC},Symbol.toStringTag,{value:"Module"}));function DC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tI=DC(function(e){return eI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function nI(e){if(e.sheet)return e.sheet;for(var t=0;t0?ft(Jo,--Bt):0,Vo--,qe===10&&(Vo=1,If--),qe}function Yt(){return qe=Bt2||_l(qe)>3?"":" "}function mI(e,t){for(;--t&&Yt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return vu(e,Ec()+(t<6&&nr()==32&&Yt()==32))}function Jm(e){for(;Yt();)switch(qe){case e:return Bt;case 34:case 39:e!==34&&e!==39&&Jm(qe);break;case 40:e===41&&Jm(e);break;case 92:Yt();break}return Bt}function gI(e,t){for(;Yt()&&e+qe!==57;)if(e+qe===84&&nr()===47)break;return"/*"+vu(t,Bt-1)+"*"+Af(e===47?e:Yt())}function vI(e){for(;!_l(nr());)Yt();return vu(e,Bt)}function yI(e){return UC(Cc("",null,null,null,[""],e=BC(e),0,[0],e))}function Cc(e,t,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,f=0,p=0,h=0,m=1,x=1,g=1,y=0,v="",w=i,S=s,P=r,T=v;x;)switch(h=y,y=Yt()){case 40:if(h!=108&&ft(T,d-1)==58){Zm(T+=ve(Pc(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Pc(y);break;case 9:case 10:case 13:case 32:T+=hI(h);break;case 92:T+=mI(Ec()-1,7);continue;case 47:switch(nr()){case 42:case 47:Zu(xI(gI(Yt(),Ec()),t,n),l);break;default:T+="/"}break;case 123*m:a[u++]=Qn(T)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:g==-1&&(T=ve(T,/\f/g,"")),p>0&&Qn(T)-d&&Zu(p>32?Px(T+";",r,n,d-1):Px(ve(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Zu(P=Ex(T,t,n,u,c,i,a,v,w=[],S=[],d),s),y===123)if(c===0)Cc(T,t,P,P,w,s,d,a,S);else switch(f===99&&ft(T,3)===110?100:f){case 100:case 108:case 109:case 115:Cc(e,P,P,r&&Zu(Ex(e,P,P,0,0,i,a,v,i,w=[],d),S),i,S,d,a,r?w:S);break;default:Cc(T,P,P,P,[""],S,0,a,S)}}u=c=p=0,m=g=1,v=T="",d=o;break;case 58:d=1+Qn(T),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&pI()==125)continue}switch(T+=Af(y),y*m){case 38:g=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Qn(T)-1)*g,g=1;break;case 64:nr()===45&&(T+=Pc(Yt())),f=nr(),c=d=Qn(v=T+=vI(Ec())),y++;break;case 45:h===45&&Qn(T)==2&&(m=0)}}return s}function Ex(e,t,n,r,i,s,o,a,l,u,c){for(var d=i-1,f=i===0?s:[""],p=m0(f),h=0,m=0,x=0;h0?f[g]+" "+y:ve(y,/&\f/g,f[g])))&&(l[x++]=v);return Lf(e,t,n,i===0?p0:a,l,u,c)}function xI(e,t,n){return Lf(e,t,n,FC,Af(fI()),Ml(e,2,-2),0)}function Px(e,t,n,r){return Lf(e,t,n,h0,Ml(e,0,r),Ml(e,r+1,-1),r)}function ho(e,t){for(var n="",r=m0(e),i=0;i6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+md+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zm(e,"stretch")?WC(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Qn(e)-3-(~Zm(e,"!important")&&10))){case 107:return ve(e,":",":"+ge)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(ft(e,14)===45?"inline-":"")+"box$3$1"+ge+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return ge+e+Et+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ge+e+Et+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ge+e+Et+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ge+e+Et+e+e}return e}var MI=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case h0:t.return=WC(t.value,t.length);break;case NC:return ho([ya(t,{value:ve(t.value,"@","@"+ge)})],i);case p0:if(t.length)return dI(t.props,function(s){switch(cI(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ho([ya(t,{props:[ve(s,/:(read-\w+)/,":"+md+"$1")]})],i);case"::placeholder":return ho([ya(t,{props:[ve(s,/:(plac\w+)/,":"+ge+"input-$1")]}),ya(t,{props:[ve(s,/:(plac\w+)/,":"+md+"$1")]}),ya(t,{props:[ve(s,/:(plac\w+)/,Et+"input-$1")]})],i)}return""})}},_I=[MI],HC=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||_I,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),g=1;g=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var VI={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},BI=/[A-Z]|^ms/g,UI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZC=function(t){return t.charCodeAt(1)===45},Tx=function(t){return t!=null&&typeof t!="boolean"},ih=DC(function(e){return ZC(e)?e:e.replace(BI,"-$&").toLowerCase()}),kx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(UI,function(r,i,s){return Yn={name:i,styles:s,next:Yn},i})}return VI[t]!==1&&!ZC(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ol(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Yn={name:n.name,styles:n.styles,next:Yn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Yn={name:r.name,styles:r.styles,next:Yn},r=r.next;var i=n.styles+";";return i}return WI(e,t,n)}case"function":{if(e!==void 0){var s=Yn,o=n(e);return Yn=s,Ol(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function WI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?QI:YI},Ax=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},XI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return YC(n,r,i),GI(function(){return XC(n,r,i)}),null},ZI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,o;n!==void 0&&(s=n.label,o=n.target);var a=Ax(t,n,r),l=a||Rx(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(t3(i)?n:i):t;return E.jsx(KI,{styles:r})}function iT(e,t){return eg(e,t)}const n3=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},r3=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:rT,StyledEngineProvider:e3,ThemeContext:yu,css:Hf,default:iT,internal_processStyles:n3,keyframes:ea},Symbol.toStringTag,{value:"Module"}));function i3(e){return Object.keys(e).length===0}function w0(e=null){const t=b.useContext(yu);return!t||i3(t)?e:t}const s3=f0();function Gf(e=s3){return w0(e)}function o3({props:e,name:t,defaultTheme:n,themeId:r}){let i=Gf(n);return r&&(i=i[r]||i),RC({theme:i,name:t,props:e})}const a3=["sx"],l3=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mu;return Object.keys(e).forEach(s=>{i[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function b0(e){const{sx:t}=e,n=se(e,a3),{systemProps:r,otherProps:i}=l3(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...o)=>{const a=t(...o);return Jr(a)?A({},r,a):r}:s=A({},r,t),A({},i,{sx:s})}const u3=Object.freeze(Object.defineProperty({__proto__:null,default:gu,extendSxProp:b0,unstable_createStyleFunctionSx:$C,unstable_defaultSxConfig:mu},Symbol.toStringTag,{value:"Module"}));function c3(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ge={},sT={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sT);var S0=sT.exports;const d3=Rr(_5),f3=Rr(sA);var oT=S0;Object.defineProperty(Ge,"__esModule",{value:!0});var Pt=Ge.alpha=cT;Ge.blend=E3;Ge.colorChannel=void 0;var ng=Ge.darken=P0;Ge.decomposeColor=Cn;Ge.emphasize=dT;var p3=Ge.getContrastRatio=y3;Ge.getLuminance=gd;Ge.hexToRgb=aT;Ge.hslToRgb=uT;var rg=Ge.lighten=C0;Ge.private_safeAlpha=x3;Ge.private_safeColorChannel=void 0;Ge.private_safeDarken=w3;Ge.private_safeEmphasize=S3;Ge.private_safeLighten=b3;Ge.recomposeColor=ta;Ge.rgbToHex=v3;var Ix=oT(d3),h3=oT(f3);function E0(e,t=0,n=1){return(0,h3.default)(e,t,n)}function aT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function m3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Cn(e){if(e.type)return e;if(e.charAt(0)==="#")return Cn(aT(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Ix.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,Ix.default)(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const lT=e=>{const t=Cn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ge.colorChannel=lT;const g3=(e,t)=>{try{return lT(e)}catch{return e}};Ge.private_safeColorChannel=g3;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function v3(e){if(e.indexOf("#")===0)return e;const{values:t}=Cn(e);return`#${t.map((n,r)=>m3(r===3?Math.round(255*n):n)).join("")}`}function uT(e){e=Cn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),o=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),ta({type:a,values:l})}function gd(e){e=Cn(e);let t=e.type==="hsl"||e.type==="hsla"?Cn(uT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function y3(e,t){const n=gd(e),r=gd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cT(e,t){return e=Cn(e),t=E0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function x3(e,t,n){try{return cT(e,t)}catch{return e}}function P0(e,t){if(e=Cn(e),t=E0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ta(e)}function w3(e,t,n){try{return P0(e,t)}catch{return e}}function C0(e,t){if(e=Cn(e),t=E0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ta(e)}function b3(e,t,n){try{return C0(e,t)}catch{return e}}function dT(e,t=.15){return gd(e)>.5?P0(e,t):C0(e,t)}function S3(e,t,n){try{return dT(e,t)}catch{return e}}function E3(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),s=Cn(e),o=Cn(t),a=[i(s.values[0],o.values[0]),i(s.values[1],o.values[1]),i(s.values[2],o.values[2])];return ta({type:"rgb",values:a})}const P3={black:"#000",white:"#fff"},Rl=P3,C3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},T3=C3,k3={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},As=k3,M3={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Is=M3,_3={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xa=_3,O3={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ls=O3,R3={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},$s=R3,A3={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},js=A3,I3=["mode","contrastThreshold","tonalOffset"],Lx={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rl.white,default:Rl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},oh={text:{primary:Rl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $x(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rg(e.main,i):t==="dark"&&(e.dark=ng(e.main,s)))}function L3(e="light"){return e==="dark"?{main:Ls[200],light:Ls[50],dark:Ls[400]}:{main:Ls[700],light:Ls[400],dark:Ls[800]}}function $3(e="light"){return e==="dark"?{main:As[200],light:As[50],dark:As[400]}:{main:As[500],light:As[300],dark:As[700]}}function j3(e="light"){return e==="dark"?{main:Is[500],light:Is[300],dark:Is[700]}:{main:Is[700],light:Is[400],dark:Is[800]}}function D3(e="light"){return e==="dark"?{main:$s[400],light:$s[300],dark:$s[700]}:{main:$s[700],light:$s[500],dark:$s[900]}}function F3(e="light"){return e==="dark"?{main:js[400],light:js[300],dark:js[700]}:{main:js[800],light:js[500],dark:js[900]}}function N3(e="light"){return e==="dark"?{main:xa[400],light:xa[300],dark:xa[700]}:{main:"#ed6c02",light:xa[500],dark:xa[900]}}function z3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=se(e,I3),s=e.primary||L3(t),o=e.secondary||$3(t),a=e.error||j3(t),l=e.info||D3(t),u=e.success||F3(t),c=e.warning||N3(t);function d(m){return p3(m,oh.text.primary)>=n?oh.text.primary:Lx.text.primary}const f=({color:m,name:x,mainShade:g=500,lightShade:y=300,darkShade:v=700})=>{if(m=A({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Tl(11,x?` (${x})`:"",g));if(typeof m.main!="string")throw new Error(Tl(12,x?` (${x})`:"",JSON.stringify(m.main)));return $x(m,"light",y,r),$x(m,"dark",v,r),m.contrastText||(m.contrastText=d(m.main)),m},p={dark:oh,light:Lx};return tr(A({common:A({},Rl),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:T3,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),i)}const V3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function B3(e){return Math.round(e*1e5)/1e5}const jx={textTransform:"uppercase"},Dx='"Roboto", "Helvetica", "Arial", sans-serif';function U3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Dx,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,V3),p=i/14,h=d||(g=>`${g/u*p}rem`),m=(g,y,v,w,S)=>A({fontFamily:r,fontWeight:g,fontSize:h(y),lineHeight:v},r===Dx?{letterSpacing:`${B3(w/y)}em`}:{},S,c),x={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(a,14,1.75,.4,jx),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,jx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tr(A({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},x),f,{clone:!1})}const W3=.2,H3=.14,G3=.12;function Oe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${W3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${H3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${G3})`].join(",")}const q3=["none",Oe(0,2,1,-1,0,1,1,0,0,1,3,0),Oe(0,3,1,-2,0,2,2,0,0,1,5,0),Oe(0,3,3,-2,0,3,4,0,0,1,8,0),Oe(0,2,4,-1,0,4,5,0,0,1,10,0),Oe(0,3,5,-1,0,5,8,0,0,1,14,0),Oe(0,3,5,-1,0,6,10,0,0,1,18,0),Oe(0,4,5,-2,0,7,10,1,0,2,16,1),Oe(0,5,5,-3,0,8,10,1,0,3,14,2),Oe(0,5,6,-3,0,9,12,1,0,3,16,2),Oe(0,6,6,-3,0,10,14,1,0,4,18,3),Oe(0,6,7,-4,0,11,15,1,0,4,20,3),Oe(0,7,8,-4,0,12,17,2,0,5,22,4),Oe(0,7,8,-4,0,13,19,2,0,5,24,4),Oe(0,7,9,-4,0,14,21,2,0,5,26,4),Oe(0,8,9,-5,0,15,22,2,0,6,28,5),Oe(0,8,10,-5,0,16,24,2,0,6,30,5),Oe(0,8,11,-5,0,17,26,2,0,6,32,5),Oe(0,9,11,-5,0,18,28,2,0,7,34,6),Oe(0,9,12,-6,0,19,29,2,0,7,36,6),Oe(0,10,13,-6,0,20,31,3,0,8,38,7),Oe(0,10,13,-6,0,21,33,3,0,8,40,7),Oe(0,10,14,-6,0,22,35,3,0,8,42,7),Oe(0,11,14,-7,0,23,36,3,0,9,44,8),Oe(0,11,15,-7,0,24,38,3,0,9,46,8)],K3=["duration","easing","delay"],Q3={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Y3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fx(e){return`${Math.round(e)}ms`}function X3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Z3(e){const t=A({},Q3,e.easing),n=A({},Y3,e.duration);return A({getAutoHeightDuration:X3,create:(i=["all"],s={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0}=s;return se(s,K3),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Fx(o)} ${a} ${typeof l=="string"?l:Fx(l)}`).join(",")}},e,{easing:t,duration:n})}const J3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},e4=J3,t4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function T0(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=e,o=se(e,t4);if(e.vars)throw new Error(Tl(18));const a=z3(r),l=f0(e);let u=tr(l,{mixins:c3(l.breakpoints,n),palette:a,shadows:q3.slice(),typography:U3(a,s),transitions:Z3(i),zIndex:A({},e4)});return u=tr(u,o),u=t.reduce((c,d)=>tr(c,d),u),u.unstable_sxConfig=A({},mu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return gu({sx:d,theme:this})},u}const n4=T0(),qf=n4,ws="$$material";function ut({props:e,name:t}){return o3({props:e,name:t,defaultTheme:qf,themeId:ws})}var xu={},ah={exports:{}},Nx;function r4(){return Nx||(Nx=1,function(e){function t(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,a;for(a=0;a=0)&&(i[o]=n[o]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ah)),ah.exports}const i4=Rr(r3),s4=Rr(M5),o4=Rr($5),a4=Rr(L5),l4=Rr(JA),u4=Rr(u3);var na=S0;Object.defineProperty(xu,"__esModule",{value:!0});var c4=xu.default=E4;xu.shouldForwardProp=Tc;xu.systemDefaultTheme=void 0;var cn=na(nT()),ig=na(r4()),zx=v4(i4),d4=s4;na(o4);na(a4);var f4=na(l4),p4=na(u4);const h4=["ownerState"],m4=["variants"],g4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fT=function(r){return r?n:t})(e)}function v4(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function y4(e){return Object.keys(e).length===0}function x4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const w4=xu.systemDefaultTheme=(0,f4.default)(),b4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ju({defaultTheme:e,theme:t,themeId:n}){return y4(t)?e:t[n]||t}function S4(e){return e?(t,n)=>n[e]:null}function kc(e,t){let{ownerState:n}=t,r=(0,ig.default)(t,h4);const i=typeof e=="function"?e((0,cn.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(s=>kc(s,(0,cn.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:s=[]}=i;let a=(0,ig.default)(i,m4);return s.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,cn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,cn.default)({ownerState:n},r,n)):l.style))}),a}return i}function E4(e={}){const{themeId:t,defaultTheme:n=w4,rootShouldForwardProp:r=Tc,slotShouldForwardProp:i=Tc}=e,s=o=>(0,p4.default)((0,cn.default)({},o,{theme:Ju((0,cn.default)({},o,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(o,a={})=>{(0,zx.internal_processStyles)(o,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=S4(b4(u))}=a,p=(0,ig.default)(a,g4),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let x,g=Tc;u==="Root"||u==="root"?g=r:u?g=i:x4(o)&&(g=void 0);const y=(0,zx.default)(o,(0,cn.default)({shouldForwardProp:g,label:x},p)),v=S=>typeof S=="function"&&S.__emotion_real!==S||(0,d4.isPlainObject)(S)?P=>kc(S,(0,cn.default)({},P,{theme:Ju({theme:P.theme,defaultTheme:n,themeId:t})})):S,w=(S,...P)=>{let T=v(S);const C=P?P.map(v):[];l&&f&&C.push(R=>{const I=Ju((0,cn.default)({},R,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[l]||!I.components[l].styleOverrides)return null;const L=I.components[l].styleOverrides,D={};return Object.entries(L).forEach(([B,z])=>{D[B]=kc(z,(0,cn.default)({},R,{theme:I}))}),f(R,D)}),l&&!h&&C.push(R=>{var I;const L=Ju((0,cn.default)({},R,{defaultTheme:n,themeId:t})),D=L==null||(I=L.components)==null||(I=I[l])==null?void 0:I.variants;return kc({variants:D},(0,cn.default)({},R,{theme:L}))}),m||C.push(s);const M=C.length-P.length;if(Array.isArray(S)&&M>0){const R=new Array(M).fill("");T=[...S,...R],T.raw=[...S.raw,...R]}const k=y(T,...C);return o.muiName&&(k.muiName=o.muiName),k};return y.withConfig&&(w.withConfig=y.withConfig),w}}function P4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const C4=e=>P4(e)&&e!=="classes",pT=C4,ye=c4({themeId:ws,defaultTheme:qf,rootShouldForwardProp:pT});function T4(e){return at("MuiSvgIcon",e)}et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const k4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M4=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return vt(i,T4,r)},_4=ye("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,s,o,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),sg=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,k4),h=b.isValidElement(i)&&i.type==="svg",m=A({},r,{color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),x={};c||(x.viewBox=f);const g=M4(m);return E.jsxs(_4,A({as:a,className:re(g.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,p,h&&i.props,{ownerState:m,children:[h?i.props.children:i,d?E.jsx("title",{children:d}):null]}))});sg.muiName="SvgIcon";function nn(e,t){function n(r,i){return E.jsx(sg,A({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=sg.muiName,b.memo(b.forwardRef(n))}const O4={configure:e=>{a0.configure(e)}},R4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Q,createChainedFunction:Ym,createSvgIcon:nn,debounce:MC,deprecatedPropType:j5,isMuiElement:D5,ownerDocument:xr,ownerWindow:Zo,requirePropFactory:F5,setRef:pd,unstable_ClassNameGenerator:O4,unstable_useEnhancedEffect:kl,unstable_useId:z5,unsupportedProp:V5,useControlled:B5,useEventCallback:Ji,useForkRef:Pn,useIsFocusVisible:o0},Symbol.toStringTag,{value:"Module"})),hT=nn(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),A4=nn(E.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),I4=nn(E.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),L4=nn(E.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),$4=nn(E.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");function j4({styles:e,themeId:t,defaultTheme:n={}}){const r=Gf(n),i=typeof e=="function"?e(t&&r[t]||r):e;return E.jsx(rT,{styles:i})}const D4=["className","component"];function F4(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=iT("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(gu);return b.forwardRef(function(l,u){const c=Gf(n),d=b0(l),{className:f,component:p="div"}=d,h=se(d,D4);return E.jsx(s,A({as:p,ref:u,className:re(f,i?i(r):r),theme:t&&c[t]||c},h))})}function N4(e,t,n,r,i){const[s,o]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return kl(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&o(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),s}const mT=b.useSyncExternalStore;function z4(e,t,n,r,i){const s=b.useCallback(()=>t,[t]),o=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return s},[s,e,r,i,n]),[a,l]=b.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[s,n,e]);return mT(l,a,o)}function V4(e,t={}){const n=w0(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=RC({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(mT!==void 0?z4:N4)(l,i,s,o,a)}const B4=b.createContext(null),gT=B4;function vT(){return b.useContext(gT)}const U4=typeof Symbol=="function"&&Symbol.for,W4=U4?Symbol.for("mui.nested"):"__THEME_NESTED__";function H4(e,t){return typeof t=="function"?t(e):A({},e,t)}function G4(e){const{children:t,theme:n}=e,r=vT(),i=b.useMemo(()=>{const s=r===null?n:H4(r,n);return s!=null&&(s[W4]=r!==null),s},[n,r]);return E.jsx(gT.Provider,{value:i,children:t})}const q4=["value"],yT=b.createContext();function K4(e){let{value:t}=e,n=se(e,q4);return E.jsx(yT.Provider,A({value:t??!0},n))}const Q4=()=>{const e=b.useContext(yT);return e??!1},Vx={};function Bx(e,t,n,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const s=n(i),o=e?A({},t,{[e]:s}):s;return r?()=>o:o}return e?A({},t,{[e]:n}):A({},t,n)},[e,t,n,r])}function Y4(e){const{children:t,theme:n,themeId:r}=e,i=w0(Vx),s=vT()||Vx,o=Bx(r,i,n),a=Bx(r,s,n,!0),l=o.direction==="rtl";return E.jsx(G4,{theme:a,children:E.jsx(yu.Provider,{value:o,children:E.jsx(K4,{value:l,children:t})})})}function k0(){const e=Gf(qf);return e[ws]||e}const X4=["theme"];function Z4(e){let{theme:t}=e,n=se(e,X4);const r=t[ws];return E.jsx(Y4,A({},n,{themeId:r?ws:void 0,theme:r||t}))}const Ux=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xT(e){return ut}function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},og(e,t)}function wT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,og(e,t)}const Wx={disabled:!1},vd=H.createContext(null);var J4=function(t){return t.scrollTop},Ia="unmounted",Hi="exited",Gi="entering",zs="entered",ag="exiting",Lr=function(e){wT(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Hi,s.appearStatus=Gi):l=zs:r.unmountOnExit||r.mountOnEnter?l=Ia:l=Hi,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===Ia?{status:Hi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Gi&&o!==zs&&(s=Gi):(o===Gi||o===zs)&&(s=ag)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===Gi){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this);o&&J4(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hi&&this.setState({status:Ia})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Xu.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!o||Wx.disabled){this.safeSetState({status:zs},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Gi},function(){s.props.onEntering(u,c),s.onTransitionEnd(f,function(){s.safeSetState({status:zs},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Xu.findDOMNode(this);if(!s||Wx.disabled){this.safeSetState({status:Hi},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ag},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Hi},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Xu.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ia)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=se(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(vd.Provider,{value:null},typeof o=="function"?o(i,a):H.cloneElement(H.Children.only(o),a))},t}(H.Component);Lr.contextType=vd;Lr.propTypes={};function Ds(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ds,onEntering:Ds,onEntered:Ds,onExit:Ds,onExiting:Ds,onExited:Ds};Lr.UNMOUNTED=Ia;Lr.EXITED=Hi;Lr.ENTERING=Gi;Lr.ENTERED=zs;Lr.EXITING=ag;const bT=Lr;function eL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M0(e,t){var n=function(s){return t&&b.isValidElement(s)?t(s):s},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function tL(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var o,a={};for(var l in t){if(r[l])for(o=0;oe.scrollTop;function yd(e,t){var n,r;const{timeout:i,easing:s,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:o.transitionDelay}}function aL(e){return at("MuiPaper",e)}et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lL=["className","component","elevation","square","variant"],uL=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vt(s,aL,i)},cL=ye("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return A({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&A({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Pt("#fff",Ux(t.elevation))}, ${Pt("#fff",Ux(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),dL=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiPaper"}),{className:i,component:s="div",elevation:o=1,square:a=!1,variant:l="elevation"}=r,u=se(r,lL),c=A({},r,{component:s,elevation:o,square:a,variant:l}),d=uL(c);return E.jsx(cL,A({as:s,ownerState:c,className:re(d.root,i),ref:n},u))}),Al=dL;function fL(e){return typeof e=="string"}function ET(e,t,n){return e===void 0||fL(e)?t:A({},t,{ownerState:A({},t.ownerState,n)})}function PT(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function CT(e,t,n){return typeof e=="function"?e(t,n):e}function Hx(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function TT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const p=re(n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),h=A({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=A({},n,i,r);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const o=PT(A({},i,r)),a=Hx(r),l=Hx(i),u=t(o),c=re(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),d=A({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=A({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const pL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gx(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:s=!1}=e,o=se(e,pL),a=s?{}:CT(r,i),{props:l,internalRef:u}=TT(A({},o,{externalSlotProps:a})),c=Pn(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ET(n,A({},l,{ref:c}),i)}const hL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],mL=["component","slots","slotProps"],gL=["component"];function lg(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,getSlotOwnerState:o,internalForwardedProps:a}=t,l=se(t,hL),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=s,f=se(s,mL),p=c[e]||r,h=CT(d[e],i),m=TT(A({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h})),{props:{component:x},internalRef:g}=m,y=se(m.props,gL),v=Pn(g,h==null?void 0:h.ref,t.ref),w=o?o(y):{},S=A({},i,w),P=e==="root"?x||u:x,T=ET(p,A({},e==="root"&&!u&&!c[e]&&a,e!=="root"&&!c[e]&&a,y,P&&{as:P},{ref:v}),S);return Object.keys(w).forEach(C=>{delete T[C]}),[p,T]}function vL(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:o,in:a,onExited:l,timeout:u}=e,[c,d]=b.useState(!1),f=re(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+s,left:-(o/2)+i},h=re(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),b.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),E.jsx("span",{className:f,style:p,children:E.jsx("span",{className:h})})}const fn=et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yL=["center","classes","className"];let Kf=e=>e,qx,Kx,Qx,Yx;const ug=550,xL=80,wL=ea(qx||(qx=Kf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),bL=ea(Kx||(Kx=Kf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),SL=ea(Qx||(Qx=Kf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),EL=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),PL=ye(vL,{name:"MuiTouchRipple",slot:"Ripple"})(Yx||(Yx=Kf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),fn.rippleVisible,wL,ug,({theme:e})=>e.transitions.easing.easeInOut,fn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fn.child,fn.childLeaving,bL,ug,({theme:e})=>e.transitions.easing.easeInOut,fn.childPulsate,SL,({theme:e})=>e.transitions.easing.easeInOut),CL=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:o}=r,a=se(r,yL),[l,u]=b.useState([]),c=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),p=G5(),h=b.useRef(null),m=b.useRef(null),x=b.useCallback(w=>{const{pulsate:S,rippleX:P,rippleY:T,rippleSize:C,cb:M}=w;u(k=>[...k,E.jsx(PL,{classes:{ripple:re(s.ripple,fn.ripple),rippleVisible:re(s.rippleVisible,fn.rippleVisible),ripplePulsate:re(s.ripplePulsate,fn.ripplePulsate),child:re(s.child,fn.child),childLeaving:re(s.childLeaving,fn.childLeaving),childPulsate:re(s.childPulsate,fn.childPulsate)},timeout:ug,pulsate:S,rippleX:P,rippleY:T,rippleSize:C},c.current)]),c.current+=1,d.current=M},[s]),g=b.useCallback((w={},S={},P=()=>{})=>{const{pulsate:T=!1,center:C=i||S.pulsate,fakeElement:M=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const k=M?null:m.current,R=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,L,D;if(C||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)I=Math.round(R.width/2),L=Math.round(R.height/2);else{const{clientX:B,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;I=Math.round(B-R.left),L=Math.round(z-R.top)}if(C)D=Math.sqrt((2*R.width**2+R.height**2)/3),D%2===0&&(D+=1);else{const B=Math.max(Math.abs((k?k.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((k?k.clientHeight:0)-L),L)*2+2;D=Math.sqrt(B**2+z**2)}w!=null&&w.touches?h.current===null&&(h.current=()=>{x({pulsate:T,rippleX:I,rippleY:L,rippleSize:D,cb:P})},p.start(xL,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:T,rippleX:I,rippleY:L,rippleSize:D,cb:P})},[i,x,p]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),v=b.useCallback((w,S)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{v(w,S)});return}h.current=null,u(P=>P.length>0?P.slice(1):P),d.current=S},[p]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:v}),[y,g,v]),E.jsx(EL,A({className:re(fn.root,s.root,o),ref:m},a,{children:E.jsx(oL,{component:null,exit:!0,children:l})}))}),TL=CL;function kL(e){return at("MuiButtonBase",e)}const ML=et("MuiButtonBase",["root","disabled","focusVisible"]),_L=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],OL=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=vt({root:["root",t&&"disabled",n&&"focusVisible"]},kL,i);return n&&r&&(o.root+=` ${r}`),o},RL=ye("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ML.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),AL=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:S,onMouseDown:P,onMouseLeave:T,onMouseUp:C,onTouchEnd:M,onTouchMove:k,onTouchStart:R,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:D,type:B}=r,z=se(r,_L),K=b.useRef(null),O=b.useRef(null),$=Pn(O,D),{isFocusVisibleRef:V,onFocus:q,onBlur:ne,ref:Xe}=o0(),[me,ct]=b.useState(!1);u&&me&&ct(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{ct(!0),K.current.focus()}}),[]);const[ie,U]=b.useState(!1);b.useEffect(()=>{U(!0)},[]);const ae=ie&&!c&&!u;b.useEffect(()=>{me&&f&&!c&&ie&&O.current.pulsate()},[c,f,me,ie]);function fe(ee,Ru,Mp=d){return Ji(Au=>(Ru&&Ru(Au),!Mp&&O.current&&O.current[ee](Au),!0))}const _e=fe("start",P),je=fe("stop",x),tt=fe("stop",g),yt=fe("stop",C),sn=fe("stop",ee=>{me&&ee.preventDefault(),T&&T(ee)}),Fi=fe("start",R),xt=fe("stop",M),wt=fe("stop",k),Mn=fe("stop",ee=>{ne(ee),V.current===!1&&ct(!1),h&&h(ee)},!1),_s=Ji(ee=>{K.current||(K.current=ee.currentTarget),q(ee),V.current===!0&&(ct(!0),v&&v(ee)),y&&y(ee)}),Ni=()=>{const ee=K.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},zi=b.useRef(!1),Cp=Ji(ee=>{f&&!zi.current&&me&&O.current&&ee.key===" "&&(zi.current=!0,O.current.stop(ee,()=>{O.current.start(ee)})),ee.target===ee.currentTarget&&Ni()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&Ni()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),m&&m(ee))}),Os=Ji(ee=>{f&&ee.key===" "&&O.current&&me&&!ee.defaultPrevented&&(zi.current=!1,O.current.stop(ee,()=>{O.current.pulsate(ee)})),S&&S(ee),m&&ee.target===ee.currentTarget&&Ni()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let Vi=l;Vi==="button"&&(z.href||z.to)&&(Vi=p);const $r={};Vi==="button"?($r.type=B===void 0?"button":B,$r.disabled=u):(!z.href&&!z.to&&($r.role="button"),u&&($r["aria-disabled"]=u));const Tp=Pn(n,Xe,K),Ou=A({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:me}),kp=OL(Ou);return E.jsxs(RL,A({as:Vi,className:re(kp.root,a),ownerState:Ou,onBlur:Mn,onClick:m,onContextMenu:je,onFocus:_s,onKeyDown:Cp,onKeyUp:Os,onMouseDown:_e,onMouseLeave:sn,onMouseUp:yt,onDragLeave:tt,onTouchEnd:xt,onTouchMove:wt,onTouchStart:Fi,ref:Tp,tabIndex:u?-1:I,type:B},$r,z,{children:[o,ae?E.jsx(TL,A({ref:$,center:s},L)):null]}))}),cg=AL;function IL(e){return at("MuiAlert",e)}const LL=et("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Xx=LL;function $L(e){return at("MuiIconButton",e)}const jL=et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),DL=["edge","children","className","color","disabled","disableFocusRipple","size"],FL=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Q(r)}`,i&&`edge${Q(i)}`,`size${Q(s)}`]};return vt(o,$L,t)},NL=ye(cg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(({theme:e,ownerState:t})=>A({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return A({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&A({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":A({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${jL.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),zL=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:o,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,DL),f=A({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),p=FL(f);return E.jsx(NL,A({className:re(p.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},d,{ownerState:f,children:s}))}),xd=zL,VL=nn(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),BL=nn(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),UL=nn(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),WL=nn(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),HL=nn(E.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),GL=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],qL=xT(),KL=e=>{const{variant:t,color:n,severity:r,classes:i}=e,s={root:["root",`color${Q(n||r)}`,`${t}${Q(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return vt(s,IL,i)},QL=ye(Al,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?ng:rg,n=e.palette.mode==="light"?rg:ng;return A({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Xx.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Xx.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:A({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),YL=ye("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),XL=ye("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Zx=ye("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Jx={success:E.jsx(VL,{fontSize:"inherit"}),warning:E.jsx(BL,{fontSize:"inherit"}),error:E.jsx(UL,{fontSize:"inherit"}),info:E.jsx(WL,{fontSize:"inherit"})},ZL=b.forwardRef(function(t,n){const r=qL({props:t,name:"MuiAlert"}),{action:i,children:s,className:o,closeText:a="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:f=Jx,onClose:p,role:h="alert",severity:m="success",slotProps:x={},slots:g={},variant:y="standard"}=r,v=se(r,GL),w=A({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),S=KL(w),P={slots:A({closeButton:u.CloseButton,closeIcon:u.CloseIcon},g),slotProps:A({},c,x)},[T,C]=lg("closeButton",{elementType:xd,externalForwardedProps:P,ownerState:w}),[M,k]=lg("closeIcon",{elementType:HL,externalForwardedProps:P,ownerState:w});return E.jsxs(QL,A({role:h,elevation:0,ownerState:w,className:re(S.root,o),ref:n},v,{children:[d!==!1?E.jsx(YL,{ownerState:w,className:S.icon,children:d||f[m]||Jx[m]}):null,E.jsx(XL,{ownerState:w,className:S.message,children:s}),i!=null?E.jsx(Zx,{ownerState:w,className:S.action,children:i}):null,i==null&&p?E.jsx(Zx,{ownerState:w,className:S.action,children:E.jsx(T,A({size:"small","aria-label":a,title:a,color:"inherit",onClick:p},C,{children:E.jsx(M,A({fontSize:"small"},k))}))}):null]}))}),JL=ZL;function e$(e){return at("MuiTypography",e)}et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const t$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],n$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:o}=e,a={root:["root",s,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return vt(a,e$,o)},r$=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ew={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},i$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},s$=e=>i$[e]||e,o$=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTypography"}),i=s$(r.color),s=b0(A({},r,{color:i})),{align:o="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=ew}=s,h=se(s,t$),m=A({},s,{align:o,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),x=l||(d?"p":p[f]||ew[f])||"span",g=n$(m);return E.jsx(r$,A({as:x,ref:n,ownerState:m,className:re(g.root,a)},h))}),Se=o$,a$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l$(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function u$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function c$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||u$(e))}function d$(e){const t=[],n=[];return Array.from(e.querySelectorAll(a$)).forEach((r,i)=>{const s=l$(r);s===-1||!c$(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function f$(){return!0}function p$(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=d$,isEnabled:o=f$,open:a}=e,l=b.useRef(!1),u=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),h=b.useRef(null),m=Pn(t.ref,h),x=b.useRef(null);b.useEffect(()=>{!a||!h.current||(p.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!h.current)return;const v=xr(h.current);return h.current.contains(v.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!h.current)return;const v=xr(h.current),w=T=>{x.current=T,!(r||!o()||T.key!=="Tab")&&v.activeElement===h.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const T=h.current;if(T===null)return;if(!v.hasFocus()||!o()||l.current){l.current=!1;return}if(T.contains(v.activeElement)||r&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let C=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(C=s(h.current)),C.length>0){var M,k;const R=!!((M=x.current)!=null&&M.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),I=C[0],L=C[C.length-1];typeof I!="string"&&typeof L!="string"&&(R?L.focus():I.focus())}else T.focus()};v.addEventListener("focusin",S),v.addEventListener("keydown",w,!0);const P=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),v.removeEventListener("focusin",S),v.removeEventListener("keydown",w,!0)}},[n,r,i,o,a,s]);const g=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,f.current=v.target;const w=t.props.onFocus;w&&w(v)},y=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return E.jsxs(b.Fragment,{children:[E.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),E.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function h$(e){return typeof e=="function"?e():e}const m$=b.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[o,a]=b.useState(null),l=Pn(b.isValidElement(r)?r.ref:null,n);if(kl(()=>{s||a(h$(i)||document.body)},[i,s]),kl(()=>{if(o&&!s)return pd(n,o),()=>{pd(n,null)}},[n,o,s]),s){if(b.isValidElement(r)){const u={ref:l};return b.cloneElement(r,u)}return E.jsx(b.Fragment,{children:r})}return E.jsx(b.Fragment,{children:o&&ff.createPortal(r,o)})});function g$(e){const t=xr(e);return t.body===e?Zo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ka(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tw(e){return parseInt(Zo(e).getComputedStyle(e).paddingRight,10)||0}function v$(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nw(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,o=>{const a=s.indexOf(o)===-1,l=!v$(o);a&&l&&Ka(o,i)})}function lh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function y$(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(g$(r)){const o=eA(xr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tw(r)+o}px`;const a=xr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${tw(l)+o}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=xr(r).body;else{const o=r.parentElement,a=Zo(r);s=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:o,property:a})=>{s?o.style.setProperty(a,s):o.style.removeProperty(a)})}}function x$(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class w${constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ka(t.modalRef,!1);const i=x$(n);nw(n,t.mount,t.modalRef,i,!0);const s=lh(this.containers,o=>o.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=lh(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=y$(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=lh(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Ka(t.modalRef,n),nw(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=s.modals[s.modals.length-1];o.modalRef&&Ka(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function b$(e){return typeof e=="function"?e():e}function S$(e){return e?e.props.hasOwnProperty("in"):!1}const E$=new w$;function P$(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=E$,closeAfterTransition:s=!1,onTransitionEnter:o,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,f=b.useRef({}),p=b.useRef(null),h=b.useRef(null),m=Pn(h,d),[x,g]=b.useState(!c),y=S$(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>xr(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),P=()=>{i.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},T=Ji(()=>{const z=b$(t)||w().body;i.add(S(),z),h.current&&P()}),C=b.useCallback(()=>i.isTopModal(S()),[i]),M=Ji(z=>{p.current=z,z&&(c&&C()?P():h.current&&Ka(h.current,v))}),k=b.useCallback(()=>{i.remove(S(),v)},[v,i]);b.useEffect(()=>()=>{k()},[k]),b.useEffect(()=>{c?T():(!y||!s)&&k()},[c,k,y,s,T]);const R=z=>K=>{var O;(O=z.onKeyDown)==null||O.call(z,K),!(K.key!=="Escape"||K.which===229||!C())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},I=z=>K=>{var O;(O=z.onClick)==null||O.call(z,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(z={})=>{const K=PT(e);delete K.onTransitionEnter,delete K.onTransitionExited;const O=A({},K,z);return A({role:"presentation"},O,{onKeyDown:R(O),ref:m})},getBackdropProps:(z={})=>{const K=z;return A({"aria-hidden":!0},K,{onClick:I(K),open:c})},getTransitionProps:()=>{const z=()=>{g(!1),o&&o()},K=()=>{g(!0),a&&a(),s&&k()};return{onEnter:Ym(z,l==null?void 0:l.props.onEnter),onExited:Ym(K,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:M,isTopModal:C,exited:x,hasTransition:y}}const C$=nn(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function T$(e){return at("MuiChip",e)}const k$=et("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),he=k$,M$=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],_$=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:s,onDelete:o,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Q(r)}`,`color${Q(i)}`,a&&"clickable",a&&`clickableColor${Q(i)}`,o&&"deletable",o&&`deletableColor${Q(i)}`,`${l}${Q(i)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(i)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(i)}`,`deleteIcon${Q(l)}Color${Q(i)}`]};return vt(u,T$,t)},O$=ye("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:s,onDelete:o,size:a,variant:l}=n;return[{[`& .${he.avatar}`]:t.avatar},{[`& .${he.avatar}`]:t[`avatar${Q(a)}`]},{[`& .${he.avatar}`]:t[`avatarColor${Q(r)}`]},{[`& .${he.icon}`]:t.icon},{[`& .${he.icon}`]:t[`icon${Q(a)}`]},{[`& .${he.icon}`]:t[`iconColor${Q(i)}`]},{[`& .${he.deleteIcon}`]:t.deleteIcon},{[`& .${he.deleteIcon}`]:t[`deleteIcon${Q(a)}`]},{[`& .${he.deleteIcon}`]:t[`deleteIconColor${Q(r)}`]},{[`& .${he.deleteIcon}`]:t[`deleteIcon${Q(l)}Color${Q(r)}`]},t.root,t[`size${Q(a)}`],t[`color${Q(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Q(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Q(r)}`],t[l],t[`${l}${Q(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return A({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${he.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${he.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${he.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${he.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${he.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${he.icon}`]:A({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&A({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${he.deleteIcon}`]:A({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Pt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>A({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>A({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${he.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${he.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${he.avatar}`]:{marginLeft:4},[`& .${he.avatarSmall}`]:{marginLeft:2},[`& .${he.icon}`]:{marginLeft:4},[`& .${he.iconSmall}`]:{marginLeft:2},[`& .${he.deleteIcon}`]:{marginRight:5},[`& .${he.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Pt(e.palette[t.color].main,.7)}`,[`&.${he.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${he.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Pt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${he.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Pt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),R$=ye("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Q(r)}`]]}})(({ownerState:e})=>A({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function rw(e){return e.key==="Backspace"||e.key==="Delete"}const A$=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:o,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:m,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,S=se(r,M$),P=b.useRef(null),T=Pn(P,n),C=$=>{$.stopPropagation(),h&&h($)},M=$=>{$.currentTarget===$.target&&rw($)&&$.preventDefault(),m&&m($)},k=$=>{$.currentTarget===$.target&&(h&&rw($)?h($):$.key==="Escape"&&P.current&&P.current.blur()),x&&x($)},R=o!==!1&&p?!0:o,I=R||h?cg:l||"div",L=A({},r,{component:I,disabled:c,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:R,variant:y}),D=_$(L),B=I===cg?A({component:l||"div",focusVisibleClassName:D.focusVisible},h&&{disableRipple:!0}):{};let z=null;h&&(z=u&&b.isValidElement(u)?b.cloneElement(u,{className:re(u.props.className,D.deleteIcon),onClick:C}):E.jsx(C$,{className:re(D.deleteIcon),onClick:C}));let K=null;i&&b.isValidElement(i)&&(K=b.cloneElement(i,{className:re(D.avatar,i.props.className)}));let O=null;return d&&b.isValidElement(d)&&(O=b.cloneElement(d,{className:re(D.icon,d.props.className)})),E.jsxs(O$,A({as:I,className:re(D.root,s),disabled:R&&c?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:k,ref:T,tabIndex:w&&c?-1:v,ownerState:L},B,S,{children:[K||O,E.jsx(R$,{className:re(D.label),ownerState:L,children:f}),z]}))}),I$=A$;function L$(e){return E.jsx(j4,A({},e,{defaultTheme:qf,themeId:ws}))}const $$=nn(E.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function j$(e){return at("MuiAvatar",e)}et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const D$=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],F$=xT(),N$=e=>{const{classes:t,variant:n,colorDefault:r}=e;return vt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},j$,t)},z$=ye("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:A({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:A({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),V$=ye("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),B$=ye($$,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function U$({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;s(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&s("loaded")},a.onerror=()=>{o&&s("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}},[e,t,n,r]),i}const W$=b.forwardRef(function(t,n){const r=F$({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:o,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:p,variant:h="circular"}=r,m=se(r,D$);let x=null;const g=U$(A({},c,{src:f,srcSet:p})),y=f||p,v=y&&g!=="error",w=A({},r,{colorDefault:!v,component:a,variant:h}),S=N$(w),[P,T]=lg("img",{className:S.img,elementType:V$,externalForwardedProps:{slots:l,slotProps:{img:A({},c,u.img)}},additionalProps:{alt:i,src:f,srcSet:p,sizes:d},ownerState:w});return v?x=E.jsx(P,A({},T)):s||s===0?x=s:y&&i?x=i[0]:x=E.jsx(B$,{ownerState:w,className:S.fallback}),E.jsx(z$,A({as:a,ownerState:w,className:re(S.root,o),ref:n},m,{children:x}))}),wd=W$,H$=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],G$={entering:{opacity:1},entered:{opacity:1}},q$=b.forwardRef(function(t,n){const r=k0(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:x,timeout:g=i,TransitionComponent:y=bT}=t,v=se(t,H$),w=b.useRef(null),S=Pn(w,a.ref,n),P=D=>B=>{if(D){const z=w.current;B===void 0?D(z):D(z,B)}},T=P(f),C=P((D,B)=>{ST(D);const z=yd({style:x,timeout:g,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",z),D.style.transition=r.transitions.create("opacity",z),c&&c(D,B)}),M=P(d),k=P(m),R=P(D=>{const B=yd({style:x,timeout:g,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),p&&p(D)}),I=P(h),L=D=>{s&&s(w.current,D)};return E.jsx(y,A({appear:o,in:u,nodeRef:w,onEnter:C,onEntered:M,onEntering:T,onExit:R,onExited:I,onExiting:k,addEndListener:L,timeout:g},v,{children:(D,B)=>b.cloneElement(a,A({style:A({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},G$[D],x,a.props.style),ref:S},B))}))}),K$=q$;function Q$(e){return at("MuiBackdrop",e)}et("MuiBackdrop",["root","invisible"]);const Y$=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],X$=e=>{const{classes:t,invisible:n}=e;return vt({root:["root",n&&"invisible"]},Q$,t)},Z$=ye("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>A({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),J$=b.forwardRef(function(t,n){var r,i,s;const o=ut({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:h={},slots:m={},TransitionComponent:x=K$,transitionDuration:g}=o,y=se(o,Y$),v=A({},o,{component:u,invisible:f}),w=X$(v),S=(r=h.root)!=null?r:d.root;return E.jsx(x,A({in:p,timeout:g},y,{children:E.jsx(Z$,A({"aria-hidden":!0},S,{as:(i=(s=m.root)!=null?s:c.Root)!=null?i:u,className:re(w.root,l,S==null?void 0:S.className),ownerState:A({},v,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))}),ej=J$,tj=et("MuiBox",["root"]),nj=tj,rj=T0(),ij=F4({themeId:ws,defaultTheme:rj,defaultClassName:nj.root,generateClassName:a0.generate}),Z=ij;function sj(e){return at("MuiCard",e)}et("MuiCard",["root"]);const oj=["className","raised"],aj=e=>{const{classes:t}=e;return vt({root:["root"]},sj,t)},lj=ye(Al,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),uj=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiCard"}),{className:i,raised:s=!1}=r,o=se(r,oj),a=A({},r,{raised:s}),l=aj(a);return E.jsx(lj,A({className:re(l.root,i),elevation:s?8:void 0,ref:n,ownerState:a},o))}),cj=uj;function dj(e){return at("MuiCardMedia",e)}et("MuiCardMedia",["root","media","img"]);const fj=["children","className","component","image","src","style"],pj=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return vt({root:["root",n&&"media",r&&"img"]},dj,t)},hj=ye("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>A({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),mj=["video","audio","picture","iframe","img"],gj=["picture","img"],vj=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiCardMedia"}),{children:i,className:s,component:o="div",image:a,src:l,style:u}=r,c=se(r,fj),d=mj.indexOf(o)!==-1,f=!d&&a?A({backgroundImage:`url("${a}")`},u):u,p=A({},r,{component:o,isMediaComponent:d,isImageComponent:gj.indexOf(o)!==-1}),h=pj(p);return E.jsx(hj,A({className:re(h.root,s),as:o,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:p,src:d?a||l:void 0},c,{children:i}))}),yj=vj;function xj(e){return at("MuiCircularProgress",e)}et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wj=["className","color","disableShrink","size","style","thickness","value","variant"];let Qf=e=>e,iw,sw,ow,aw;const Dr=44,bj=ea(iw||(iw=Qf` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Sj=ea(sw||(sw=Qf` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Ej=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${Q(r)}`],svg:["svg"],circle:["circle",`circle${Q(n)}`,i&&"circleDisableShrink"]};return vt(s,xj,t)},Pj=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Q(n.color)}`]]}})(({ownerState:e,theme:t})=>A({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Hf(ow||(ow=Qf` + animation: ${0} 1.4s linear infinite; + `),bj)),Cj=ye("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Tj=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Q(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>A({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Hf(aw||(aw=Qf` + animation: ${0} 1.4s ease-in-out infinite; + `),Sj)),kj=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:o=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=se(r,wj),p=A({},r,{color:s,disableShrink:o,size:a,thickness:u,value:c,variant:d}),h=Ej(p),m={},x={},g={};if(d==="determinate"){const y=2*Math.PI*((Dr-u)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,x.transform="rotate(-90deg)"}return E.jsx(Pj,A({className:re(h.root,i),style:A({width:a,height:a},x,l),ownerState:p,ref:n,role:"progressbar"},g,f,{children:E.jsx(Cj,{className:h.svg,ownerState:p,viewBox:`${Dr/2} ${Dr/2} ${Dr} ${Dr}`,children:E.jsx(Tj,{className:h.circle,style:m,ownerState:p,cx:Dr,cy:Dr,r:(Dr-u)/2,fill:"none",strokeWidth:u})})}))}),Mj=kj,_j=(e,t)=>A({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Oj=e=>A({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Rj=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,a])=>{var l;r[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=A({html:_j(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:A({margin:0},Oj(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(i=[i,s]),i};function Aj(e){const t=ut({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return E.jsxs(b.Fragment,{children:[E.jsx(L$,{styles:i=>Rj(i,r)}),n]})}function Ij(e){return at("MuiModal",e)}et("MuiModal",["root","hidden","backdrop"]);const Lj=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],$j=e=>{const{open:t,exited:n,classes:r}=e;return vt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ij,r)},jj=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>A({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Dj=ye(ej,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Fj=b.forwardRef(function(t,n){var r,i,s,o,a,l;const u=ut({name:"MuiModal",props:t}),{BackdropComponent:c=Dj,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:x,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:T=!1,disableScrollLock:C=!1,hideBackdrop:M=!1,keepMounted:k=!1,onBackdropClick:R,open:I,slotProps:L,slots:D}=u,B=se(u,Lj),z=A({},u,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:T,disableScrollLock:C,hideBackdrop:M,keepMounted:k}),{getRootProps:K,getBackdropProps:O,getTransitionProps:$,portalRef:V,isTopModal:q,exited:ne,hasTransition:Xe}=P$(A({},z,{rootRef:n})),me=A({},z,{exited:ne}),ct=$j(me),ie={};if(h.props.tabIndex===void 0&&(ie.tabIndex="-1"),Xe){const{onEnter:yt,onExited:sn}=$();ie.onEnter=yt,ie.onExited=sn}const U=(r=(i=D==null?void 0:D.root)!=null?i:g.Root)!=null?r:jj,ae=(s=(o=D==null?void 0:D.backdrop)!=null?o:g.Backdrop)!=null?s:c,fe=(a=L==null?void 0:L.root)!=null?a:y.root,_e=(l=L==null?void 0:L.backdrop)!=null?l:y.backdrop,je=Gx({elementType:U,externalSlotProps:fe,externalForwardedProps:B,getSlotProps:K,additionalProps:{ref:n,as:x},ownerState:me,className:re(f,fe==null?void 0:fe.className,ct==null?void 0:ct.root,!me.open&&me.exited&&(ct==null?void 0:ct.hidden))}),tt=Gx({elementType:ae,externalSlotProps:_e,additionalProps:d,getSlotProps:yt=>O(A({},yt,{onClick:sn=>{R&&R(sn),yt!=null&&yt.onClick&&yt.onClick(sn)}})),className:re(_e==null?void 0:_e.className,d==null?void 0:d.className,ct==null?void 0:ct.backdrop),ownerState:me});return!k&&!I&&(!Xe||ne)?null:E.jsx(m$,{ref:V,container:m,disablePortal:P,children:E.jsxs(U,A({},je,{children:[!M&&c?E.jsx(ae,A({},tt)):null,E.jsx(p$,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:T,isEnabled:q,open:I,children:b.cloneElement(h,ie)})]}))})}),Nj=Fj;function zj(e){return at("MuiDivider",e)}et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vj=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Bj=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:o,textAlign:a,variant:l}=e;return vt({root:["root",t&&"absolute",l,s&&"light",o==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",a==="right"&&o!=="vertical"&&"textAlignRight",a==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},zj,r)},Uj=ye("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>A({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>A({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>A({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Wj=ye("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>A({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),kT=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:o,component:a=s?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,h=se(r,Vj),m=A({},r,{absolute:i,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:p}),x=Bj(m);return E.jsx(Uj,A({as:a,className:re(x.root,o),role:d,ref:n,ownerState:m},h,{children:s?E.jsx(Wj,{className:x.wrapper,ownerState:m,children:s}):null}))});kT.muiSkipListHighlight=!0;const O0=kT,Hj=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gj(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),s=Zo(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=s.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${s.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${s.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function qj(e){return typeof e=="function"?e():e}function ec(e,t,n){const r=qj(n),i=Gj(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Kj=b.forwardRef(function(t,n){const r=k0(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,container:u,direction:c="down",easing:d=i,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:x,onExited:g,onExiting:y,style:v,timeout:w=s,TransitionComponent:S=bT}=t,P=se(t,Hj),T=b.useRef(null),C=Pn(l.ref,T,n),M=O=>$=>{O&&($===void 0?O(T.current):O(T.current,$))},k=M((O,$)=>{ec(c,O,u),ST(O),p&&p(O,$)}),R=M((O,$)=>{const V=yd({timeout:w,style:v,easing:d},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",A({},V)),O.style.transition=r.transitions.create("transform",A({},V)),O.style.webkitTransform="none",O.style.transform="none",m&&m(O,$)}),I=M(h),L=M(y),D=M(O=>{const $=yd({timeout:w,style:v,easing:d},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",$),O.style.transition=r.transitions.create("transform",$),ec(c,O,u),x&&x(O)}),B=M(O=>{O.style.webkitTransition="",O.style.transition="",g&&g(O)}),z=O=>{o&&o(T.current,O)},K=b.useCallback(()=>{T.current&&ec(c,T.current,u)},[c,u]);return b.useEffect(()=>{if(f||c==="down"||c==="right")return;const O=MC(()=>{T.current&&ec(c,T.current,u)}),$=Zo(T.current);return $.addEventListener("resize",O),()=>{O.clear(),$.removeEventListener("resize",O)}},[c,f,u]),b.useEffect(()=>{f||K()},[f,K]),E.jsx(S,A({nodeRef:T,onEnter:k,onEntered:I,onEntering:R,onExit:D,onExited:B,onExiting:L,addEndListener:z,appear:a,in:f,timeout:w},P,{children:(O,$)=>b.cloneElement(l,A({ref:C,style:A({visibility:O==="exited"&&!f?"hidden":void 0},v,l.props.style)},$))}))}),Qj=Kj;function Yj(e){return at("MuiDrawer",e)}et("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Xj=["BackdropProps"],Zj=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],MT=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Jj=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Q(n)}`,r!=="temporary"&&`paperAnchorDocked${Q(n)}`]};return vt(i,Yj,t)},eD=ye(Nj,{name:"MuiDrawer",slot:"Root",overridesResolver:MT})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),lw=ye("div",{shouldForwardProp:pT,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:MT})({flex:"0 0 auto"}),tD=ye(Al,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Q(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Q(n.anchor)}`]]}})(({theme:e,ownerState:t})=>A({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),_T={left:"right",right:"left",top:"down",bottom:"up"};function nD(e){return["left","right"].indexOf(e)!==-1}function rD({direction:e},t){return e==="rtl"&&nD(t)?_T[t]:t}const iD=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiDrawer"}),i=k0(),s=Q4(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:x={},SlideProps:g,TransitionComponent:y=Qj,transitionDuration:v=o,variant:w="temporary"}=r,S=se(r.ModalProps,Xj),P=se(r,Zj),T=b.useRef(!1);b.useEffect(()=>{T.current=!0},[]);const C=rD({direction:s?"rtl":"ltr"},a),k=A({},r,{anchor:a,elevation:d,open:m,variant:w},P),R=Jj(k),I=E.jsx(tD,A({elevation:w==="temporary"?d:0,square:!0},x,{className:re(R.paper,x.className),ownerState:k,children:u}));if(w==="permanent")return E.jsx(lw,A({className:re(R.root,R.docked,c),ownerState:k,ref:n},P,{children:I}));const L=E.jsx(y,A({in:m,direction:_T[C],timeout:v,appear:T.current},g,{children:I}));return w==="persistent"?E.jsx(lw,A({className:re(R.root,R.docked,c),ownerState:k,ref:n},P,{children:L})):E.jsx(eD,A({BackdropProps:A({},l,p,{transitionDuration:v}),className:re(R.root,R.modal,c),open:m,ownerState:k,onClose:h,hideBackdrop:f,ref:n},P,S,{children:L}))}),sD=iD;function oD(e){return at("MuiLink",e)}const aD=et("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lD=aD,OT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uD=e=>OT[e]||e,cD=({theme:e,ownerState:t})=>{const n=uD(t.color),r=zo(e,`palette.${n}`,!1)||t.color,i=zo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Pt(r,.4)},dD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],fD=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,s={root:["root",`underline${Q(i)}`,n==="button"&&"button",r&&"focusVisible"]};return vt(s,oD,t)},pD=ye(Se,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Q(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>A({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&A({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:cD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lD.focusVisible}`]:{outline:"auto"}})),hD=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiLink"}),{className:i,color:s="primary",component:o="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:f}=r,p=se(r,dD),{isFocusVisibleRef:h,onBlur:m,onFocus:x,ref:g}=o0(),[y,v]=b.useState(!1),w=Pn(n,g),S=M=>{m(M),h.current===!1&&v(!1),a&&a(M)},P=M=>{x(M),h.current===!0&&v(!0),l&&l(M)},T=A({},r,{color:s,component:o,focusVisible:y,underline:c,variant:d}),C=fD(T);return E.jsx(pD,A({color:s,className:re(C.root,i),classes:u,component:o,onBlur:S,onFocus:P,ref:w,ownerState:T,variant:d,sx:[...Object.keys(OT).includes(s)?[]:[{color:s}],...Array.isArray(f)?f:[f]]},p))}),dg=hD;function mD(e){return at("MuiToolbar",e)}et("MuiToolbar",["root","gutters","regular","dense"]);const gD=["className","component","disableGutters","variant"],vD=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vt({root:["root",!n&&"gutters",r]},mD,t)},yD=ye("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>A({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),xD=b.forwardRef(function(t,n){const r=ut({props:t,name:"MuiToolbar"}),{className:i,component:s="div",disableGutters:o=!1,variant:a="regular"}=r,l=se(r,gD),u=A({},r,{component:s,disableGutters:o,variant:a}),c=vD(u);return E.jsx(yD,A({as:s,className:re(c.root,i),ref:n,ownerState:u},l))}),wD=xD;function RT(e){const[t,n]=H.useState(!1),r=()=>{window.localStorage.setItem("events-visible","false"),n(!1)};return H.useEffect(()=>{window.localStorage.getItem("events-visible")==null&&window.localStorage.setItem("events-visible","true");const i=window.localStorage.getItem("events-visible");n(i!=null?JSON.parse(i):!0)},[]),E.jsxs(Z,{sx:{background:"#16F4D0",color:"#000000",fontWeight:600,display:t?"flex":"none",justifyContent:"center",alignItems:"center",height:"30px"},children:[E.jsx(Z,{sx:{flexGrow:1,display:"flex",justifyContent:"center"},children:e.events.map(i=>E.jsx(dg,{underline:"hover",href:i.href,color:"inherit",children:i.title},`${i.title}::${i.href}`))}),E.jsx(xd,{"data-testid":"events-close-button",onClick:r,sx:{color:"inherit",width:"25px",height:"25px",marginRight:"5px"},children:E.jsx(hT,{sx:{color:"inherit"}})})]})}var R0={},uh={};const bD=Rr(R4);var uw;function SD(){return uw||(uw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=bD}(uh)),uh}var ED=S0;Object.defineProperty(R0,"__esModule",{value:!0});var AT=R0.default=void 0,PD=ED(SD()),CD=E;AT=R0.default=(0,PD.default)((0,CD.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function bd(e){const[t,n]=H.useState(!1);return E.jsx(Z,{sx:{...e.sx,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:E.jsxs(wD,{sx:{background:e.translucent?"rgba(67,86,127, 0.5)":"transparent",backdropFilter:e.translucent?"blur(20px)":"unset",margin:"5px 0px",borderRadius:"41px",paddingLeft:"40px !important",paddingRight:"40px !important",boxShadow:e.translucent?3:0,width:e.fullWidth?"100%":"90%",height:"80px",userSelect:"none"},children:[E.jsx(Z,{sx:{height:"65%",display:"flex",flexGrow:1},children:E.jsxs(T5,{to:"/",style:{display:"flex",alignItems:"center",textDecoration:"none",color:"white"},children:[E.jsx("img",{alt:"adc-logo",src:"/logo256.png",style:{maxHeight:"100%",margin:"10px 0px 10px 0px"}}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:"bold",marginLeft:"15px"},children:"App Dev Club"})]})}),E.jsx(Z,{sx:{display:{xs:"none",md:"flex"}},children:e.links.map(r=>E.jsx(dg,{href:r.anchor,underline:"hover",sx:{fontSize:"1rem",fontWeight:600,marginLeft:"15px",marginRight:"10px",color:"inherit",":hover":{cursor:"pointer"}},children:r.title},`${r.title}::${r.anchor}`))}),E.jsx(xd,{onClick:()=>{n(!0)},sx:{color:"inherit",display:{xs:"flex",md:"none"}},children:E.jsx(AT,{sx:{fontSize:"1.8rem"}})}),E.jsxs(sD,{anchor:"right",open:t,onClose:()=>{n(!1)},PaperProps:{sx:{width:"180px",bgcolor:"background.default",padding:"25px",backgroundImage:"unset"}},children:[E.jsx(xd,{onClick:()=>{n(!1)},sx:{alignSelf:"end",maxWidth:"40px",marginBottom:"10px"},children:E.jsx(hT,{})}),e.links.map((r,i)=>E.jsx(dg,{underline:"hover",color:"inherit",sx:{fontSize:"1.3rem",marginTop:"7px",marginBottom:"7px"},children:r.title},i))]})]})})}var IT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},cw=H.createContext&&H.createContext(IT),TD=["attr","size","title"];function kD(e,t){if(e==null)return{};var n=MD(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;tH.createElement(t.tag,Ed({key:n},t.attr),LT(t.child)))}function AD(e){return t=>H.createElement(ID,Sd({attr:Ed({},e.attr)},t),LT(e.child))}function ID(e){var t=n=>{var{attr:r,size:i,title:s}=e,o=kD(e,TD),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),H.createElement("svg",Sd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ed(Ed({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&H.createElement("title",null,s),e.children)};return cw!==void 0?H.createElement(cw.Consumer,null,n=>t(n)):t(IT)}function LD(e){return AD({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.593 10.971c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055.011-.581-.427-1.055-.968-1.055zm3.468 0c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055-.001-.581-.427-1.055-.968-1.055z"},child:[]},{tag:"path",attr:{d:"M17.678 3H4.947A1.952 1.952 0 0 0 3 4.957v12.844c0 1.083.874 1.957 1.947 1.957H15.72l-.505-1.759 1.217 1.131 1.149 1.064L19.625 22V4.957A1.952 1.952 0 0 0 17.678 3zM14.01 15.407s-.342-.408-.626-.771c1.244-.352 1.719-1.13 1.719-1.13-.39.256-.76.438-1.093.562a6.679 6.679 0 0 1-3.838.398 7.944 7.944 0 0 1-1.396-.41 5.402 5.402 0 0 1-.693-.321c-.029-.021-.057-.029-.085-.048a.117.117 0 0 1-.039-.03c-.171-.094-.266-.16-.266-.16s.456.76 1.663 1.121c-.285.36-.637.789-.637.789-2.099-.067-2.896-1.444-2.896-1.444 0-3.059 1.368-5.538 1.368-5.538 1.368-1.027 2.669-.998 2.669-.998l.095.114c-1.71.495-2.499 1.245-2.499 1.245s.21-.114.561-.275c1.016-.446 1.823-.57 2.156-.599.057-.009.105-.019.162-.019a7.756 7.756 0 0 1 4.778.893s-.751-.712-2.366-1.206l.133-.152s1.302-.029 2.669.998c0 0 1.368 2.479 1.368 5.538 0-.001-.807 1.376-2.907 1.443z"},child:[]}]})(e)}function $T(e){const n=new Date().getFullYear();return E.jsxs(Z,{sx:{...e.sx,display:"flex",width:"100%",height:"75px",padding:"30px",alignItems:"center",justifyContent:"center"},children:[E.jsxs(Se,{style:{fontSize:"18px",flexGrow:1},children:["© ",n," App Dev Club"]}),E.jsx("img",{src:"../logo256.png",style:{maxHeight:"50px"}}),E.jsxs(Z,{sx:{display:"flex",gap:"10px",flexGrow:1,justifyContent:"end"},children:[E.jsx(L4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx($4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(I4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(A4,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}}),E.jsx(LD,{style:{cursor:"pointer",verticalAlign:"text-bottom",fontSize:"22px"}})]})]})}const fw=[{title:"About",anchor:"#about"},{title:"Projects",anchor:"#projects"},{title:"Our Team",anchor:"#team"},{title:"Sponsors",anchor:"#sponsors"},{title:"Highlights",anchor:"#highlights"},{title:"Contact Us",anchor:"#contact"}];function $D(){const[e,t]=H.useState(-120),[n]=H.useState([{title:"General Body Meeting, 3/25 8pm @ Iribe"}]);return H.useEffect(()=>{function r(){const i=window.scrollY;t(Math.min(i-120,0))}return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[]),E.jsxs(E.Fragment,{children:[n.length<1?E.jsx(E.Fragment,{}):E.jsx(RT,{events:n}),E.jsx(bd,{links:fw,fullWidth:!0,sx:{backgroundColor:"transparent"}}),E.jsx(bd,{links:fw,translucent:!0,sx:{zIndex:2,marginTop:"25px",position:"fixed",top:`${e}px`,left:"0px"}}),E.jsx(h5,{}),E.jsx(Z,{sx:{position:"relative"},children:E.jsx($T,{})})]})}const jD=T0({palette:{mode:"dark",text:{primary:"#FFFFFF"},background:{default:"#14213D"}},typography:{fontFamily:"Inter, sans-serif"}}),jT={baseTheme:jD};function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&typeof ae>"u"){var _e=fe?p:f;U=_e.left+_e.width/2,ae=_e.top+_e.height/2}var je=0,tt=0,yt=f,sn=yt.top,Fi=yt.left,xt=yt.width,wt=yt.height,Mn;if(fe){var Os=p,Vi=Os.top,$r=Os.left,Tp=Os.width,Ou=Os.height,kp=Fi-$r,ee=sn-Vi,Ru=xt/2+kp,Mp=wt/2+ee,Au=U-$r,Xy=ae-Vi;tt=l.rotateYMax*(Au-Ru)/(Tp-xt/2)*-1,je=l.rotateXMax*(Xy-Mp)/(Ou-wt/2),Mn=U-Fi+"px "+(ae-sn)+"px"}else{var _s=xt/2,Ni=wt/2,zi=U-Fi,Cp=ae-sn;tt=l.rotateYMax*(zi-_s)/(xt/2)*-1,je=l.rotateXMax*(Cp-Ni)/(wt/2)}je=Math.min(Math.max(-je,-l.rotateXMax),l.rotateXMax),l.rotateXInvert&&(je=-je),tt=Math.min(Math.max(-tt,-l.rotateYMax),l.rotateYMax),l.rotateYInvert&&(tt=-tt);var la=je/l.rotateXMax*100,ua=tt/l.rotateYMax*100,YM=(fe?ua/100*l.stretchX:0)*(l.rotateYInvert?-1:1),XM=(fe?la/100*l.stretchY:0)*(l.rotateXInvert?-1:1),ZM=fe?Math.max(Math.abs(la),Math.abs(ua))/100*l.stretchZ:0;C(u,"translate3d("+YM+"%, "+-XM+"%, "+-ZM+"px) rotateX("+je+"deg) rotateY("+tt+"deg)"),Mn&&l.commonOrigin&&k(u,Mn),m&&(P(m,l.duration+"ms"),T(m,"ease-out"),C(m,"translate3d("+-ua*.25+"%, "+la*.25+"%, 0)"),M(m,Math.max(Math.abs(la),Math.abs(ua))/100)),B({rotateXPercentage:la,rotateYPercentage:ua,duration:l.duration+"ms",easeOut:!0}),typeof l.onRotate=="function"&&l.onRotate(je,tt)},K=function(){v.push(function(){return n.classList.add("atropos-active")}),P(u,l.duration+"ms"),T(u,"ease-out"),C(c,"translate3d(0,0, "+l.activeOffset+"px)"),P(c,l.duration+"ms"),T(c,"ease-out"),h&&(P(h,l.duration+"ms"),T(h,"ease-out")),a.isActive=!0},O=function(U){if(x=void 0,!(U.type==="pointerdown"&&U.pointerType==="mouse")&&!(U.type==="pointerenter"&&U.pointerType!=="mouse")){if(U.type==="pointerdown"&&U.preventDefault(),g=U.clientX,y=U.clientY,l.alwaysActive){f=void 0,p=void 0;return}K(),typeof l.onEnter=="function"&&l.onEnter()}},$=function(U){x===!1&&U.cancelable&&U.preventDefault()},V=function(U){if(!(!l.rotate||!a.isActive)){if(U.pointerType!=="mouse"){if(!l.rotateTouch)return;U.preventDefault()}var ae=U.clientX,fe=U.clientY,_e=ae-g,je=fe-y;if(typeof l.rotateTouch=="string"&&(_e!==0||je!==0)&&typeof x>"u"){if(_e*_e+je*je>=25){var tt=Math.atan2(Math.abs(je),Math.abs(_e))*180/Math.PI;x=l.rotateTouch==="scroll-y"?tt>45:90-tt>45}x===!1&&(n.classList.add("atropos-rotate-touch"),U.cancelable&&U.preventDefault())}U.pointerType!=="mouse"&&x||z(ae,fe)}},q=function(U){if(f=void 0,p=void 0,!!a.isActive&&!(U&&U.type==="pointerup"&&U.pointerType==="mouse")&&!(U&&U.type==="pointerleave"&&U.pointerType!=="mouse")){if(typeof l.rotateTouch=="string"&&x&&n.classList.remove("atropos-rotate-touch"),l.alwaysActive){z(),typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave();return}v.push(function(){return n.classList.remove("atropos-active")}),P(c,l.duration+"ms"),T(c,""),C(c,"translate3d(0,0, 0px)"),h&&(P(h,l.duration+"ms"),T(h,"")),m&&(P(m,l.duration+"ms"),T(m,""),C(m,"translate3d(0, 0, 0)"),M(m,0)),P(u,l.duration+"ms"),T(u,""),C(u,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),B({duration:l.duration+"ms"}),a.isActive=!1,typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave()}},ne=function(U){var ae=U.target;!r.contains(ae)&&ae!==r&&a.isActive&&q()},Xe=function(){typeof n=="string"&&(n=Fr(document,n)),n&&(n.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=Fr(document,r)):r=n,o=s?n.parentNode.host:n,Object.assign(a,{el:n}),u=Fr(n,".atropos-rotate"),c=Fr(n,".atropos-scale"),d=Fr(n,".atropos-inner"),n.__atropos__=a))},me=function(){Xe(),!(!n||!r)&&(l.shadow&&L(),l.highlight&&D(),l.rotateTouch&&(typeof l.rotateTouch=="string"?n.classList.add("atropos-rotate-touch-"+l.rotateTouch):n.classList.add("atropos-rotate-touch")),Fr(o,"[data-atropos-opacity]")&&B({opacityOnly:!0}),R(document,"click",ne),R(r,"pointerdown",O),R(r,"pointerenter",O),R(r,"pointermove",V),R(r,"touchmove",$),R(r,"pointerleave",q),R(r,"pointerup",q),R(r,"lostpointercapture",q),l.alwaysActive&&(K(),z()))},ct=function(){a.destroyed=!0,cancelAnimationFrame(w),I(document,"click",ne),I(r,"pointerdown",O),I(r,"pointerenter",O),I(r,"pointermove",V),I(r,"touchmove",$),I(r,"pointerleave",q),I(r,"pointerup",q),I(r,"lostpointercapture",q),delete n.__atropos__};return a.destroy=ct,me(),a}var VD=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var DT=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],UD=function(t){var n={};return Object.keys(t).forEach(function(r){DT.includes(r)||(n[r]=t[r])}),n},WD=function(t){var n={};return Object.keys(t).forEach(function(r){DT.includes(r)&&(n[r]=t[r])}),n};function HD(e){var t=e.component,n=t===void 0?"div":t,r=e.children,i=e.rootChildren,s=e.scaleChildren,o=e.rotateChildren,a=e.className,l=a===void 0?"":a,u=e.scaleClassName,c=u===void 0?"":u,d=e.rotateClassName,f=d===void 0?"":d,p=e.innerClassName,h=p===void 0?"":p,m=BD(e,VD),x=b.useRef(null),g=b.useRef(null),y=n,v=function(){for(var T=arguments.length,C=new Array(T),M=0;M"u")&&H.createElement("span",{className:"atropos-highlight"})),o,(e.shadow||typeof e.shadow>"u")&&H.createElement("span",{className:"atropos-shadow"})),s),i)}function GD(e){let t=0,n;for(n=0;n>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r}function FT(e){return{sx:{bgcolor:GD(e)},children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`}}var NT={};function qD(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(NT,"__esModule",{value:!0});var De=b;function KD(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Nr=KD(De);qD(`.rfm-marquee-container { + overflow-x: hidden; + display: flex; + flex-direction: row; + position: relative; + width: var(--width); + transform: var(--transform); +} +.rfm-marquee-container:hover div { + animation-play-state: var(--pause-on-hover); +} +.rfm-marquee-container:active div { + animation-play-state: var(--pause-on-click); +} + +.rfm-overlay { + position: absolute; + width: 100%; + height: 100%; +} +.rfm-overlay::before, .rfm-overlay::after { + background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0)); + content: ""; + height: 100%; + position: absolute; + width: var(--gradient-width); + z-index: 2; + pointer-events: none; + touch-action: none; +} +.rfm-overlay::after { + right: 0; + top: 0; + transform: rotateZ(180deg); +} +.rfm-overlay::before { + left: 0; + top: 0; +} + +.rfm-marquee { + flex: 0 0 auto; + min-width: var(--min-width); + z-index: 1; + display: flex; + flex-direction: row; + align-items: center; + animation: scroll var(--duration) linear var(--delay) var(--iteration-count); + animation-play-state: var(--play); + animation-delay: var(--delay); + animation-direction: var(--direction); +} +@keyframes scroll { + 0% { + transform: translateX(0%); + } + 100% { + transform: translateX(-100%); + } +} + +.rfm-initial-child-container { + flex: 0 0 auto; + display: flex; + min-width: auto; + flex-direction: row; + align-items: center; +} + +.rfm-child { + transform: var(--transform); +}`);const QD=De.forwardRef(function({style:t={},className:n="",autoFill:r=!1,play:i=!0,pauseOnHover:s=!1,pauseOnClick:o=!1,direction:a="left",speed:l=50,delay:u=0,loop:c=0,gradient:d=!1,gradientColor:f="white",gradientWidth:p=200,onFinish:h,onCycleComplete:m,onMount:x,children:g},y){const[v,w]=De.useState(0),[S,P]=De.useState(0),[T,C]=De.useState(1),[M,k]=De.useState(!1),R=De.useRef(null),I=y||R,L=De.useRef(null),D=De.useCallback(()=>{if(L.current&&I.current){const q=I.current.getBoundingClientRect(),ne=L.current.getBoundingClientRect();let Xe=q.width,me=ne.width;(a==="up"||a==="down")&&(Xe=q.height,me=ne.height),C(r&&Xe&&me&&me{if(M&&(D(),L.current&&I.current)){const q=new ResizeObserver(()=>D());return q.observe(I.current),q.observe(L.current),()=>{q&&q.disconnect()}}},[D,I,M]),De.useEffect(()=>{D()},[D,g]),De.useEffect(()=>{k(!0)},[]),De.useEffect(()=>{typeof x=="function"&&x()},[]);const B=De.useMemo(()=>r?S*T/l:SObject.assign(Object.assign({},t),{"--pause-on-hover":!i||s?"paused":"running","--pause-on-click":!i||s&&!o||o?"paused":"running","--width":a==="up"||a==="down"?"100vh":"100%","--transform":a==="up"?"rotate(-90deg)":a==="down"?"rotate(90deg)":"none"}),[t,i,s,o,a]),K=De.useMemo(()=>({"--gradient-color":f,"--gradient-width":typeof p=="number"?`${p}px`:p}),[f,p]),O=De.useMemo(()=>({"--play":i?"running":"paused","--direction":a==="left"?"normal":"reverse","--duration":`${B}s`,"--delay":`${u}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":r?"auto":"100%"}),[i,a,B,u,c,r]),$=De.useMemo(()=>({"--transform":a==="up"?"rotate(90deg)":a==="down"?"rotate(-90deg)":"none"}),[a]),V=De.useCallback(q=>[...Array(Number.isFinite(q)&&q>=0?q:0)].map((ne,Xe)=>Nr.default.createElement(De.Fragment,{key:Xe},De.Children.map(g,me=>Nr.default.createElement("div",{style:$,className:"rfm-child"},me)))),[$,g]);return M?Nr.default.createElement("div",{ref:I,style:z,className:"rfm-marquee-container "+n},d&&Nr.default.createElement("div",{style:K,className:"rfm-overlay"}),Nr.default.createElement("div",{className:"rfm-marquee",style:O,onAnimationIteration:m,onAnimationEnd:h},Nr.default.createElement("div",{className:"rfm-initial-child-container",ref:L},De.Children.map(g,q=>Nr.default.createElement("div",{style:$,className:"rfm-child"},q))),V(T-1)),Nr.default.createElement("div",{className:"rfm-marquee",style:O},V(T))):null});var YD=NT.default=QD;function pw(e){const t=xC(),n=r=>t(`/project/${r._id}`);return e.mobileView?E.jsxs(Al,{elevation:5,sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",flexDirection:"column",gap:"15px",color:"#000000",bgcolor:"#ffffff",maxWidth:"100%",height:"400px",overflow:"hidden"},children:[E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",width:"100%"},children:[E.jsx(Se,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),E.jsx(Se,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description})]}),E.jsx(hw,{autoScroll:!0,members:e.project.members})]}):E.jsx(HD,{highlight:!1,onClick:()=>{n(e.project)},style:{minWidth:"800px",height:"60vh",cursor:"pointer"},children:E.jsx(Al,{sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",gap:"15px",color:"#000000",bgcolor:"#ffffff",width:"100%",height:"100%"},children:E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[E.jsx(Se,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),E.jsx(Se,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),E.jsx(Se,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description}),E.jsx(hw,{members:e.project.members})]})})})}function hw(e){function t(){return E.jsx(E.Fragment,{children:e.members.map((n,r)=>E.jsx(I$,{label:`${n.memberInfo.firstName} ${n.memberInfo.lastName}`,variant:"outlined",sx:{color:"black",margin:"5px"},avatar:n.memberInfo.profileUrl?E.jsx(wd,{src:n.memberInfo.profileUrl}):E.jsx(wd,{...FT(`${n.memberInfo.firstName} ${n.memberInfo.lastName}`)})},r))})}return e.autoScroll?E.jsx(YD,{children:E.jsx(t,{})}):E.jsx(Z,{sx:{marginTop:"10px",display:"flex",flexWrap:"wrap"},children:E.jsx(t,{})})}function mw(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function A0(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:mw(t[n])&&mw(e[n])&&Object.keys(t[n]).length>0&&A0(e[n],t[n])})}const zT={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wr(){const e=typeof document<"u"?document:{};return A0(e,zT),e}const XD={document:zT,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function rn(){const e=typeof window<"u"?window:{};return A0(e,XD),e}function ZD(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function JD(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function pg(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Cd(){return Date.now()}function eF(e){const t=rn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function tF(e,t){t===void 0&&(t="x");const n=rn();let r,i,s;const o=eF(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function tc(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function nF(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ht(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(s)<0);for(let s=0,o=i.length;ss?"next":"prev",c=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,d=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=s+p*(n-s);if(c(h,n)&&(h=n),t.wrapperEl.scrollTo({[r]:h}),c(h,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function I0(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function mr(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Td(e){try{console.warn(e);return}catch{}}function kd(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:ZD(t)),n}function rF(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function iF(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function ui(e,t){return rn().getComputedStyle(e,null).getPropertyValue(t)}function gw(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function sF(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function vw(e,t,n){const r=rn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let ch;function oF(){const e=rn(),t=wr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function BT(){return ch||(ch=oF()),ch}let dh;function aF(e){let{userAgent:t}=e===void 0?{}:e;const n=BT(),r=rn(),i=r.navigator.platform,s=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!p&&(o.os="android",o.android=!0),(c||f||d)&&(o.os="ios",o.ios=!0),o}function UT(e){return e===void 0&&(e={}),dh||(dh=aF(e)),dh}let fh;function lF(){const e=rn(),t=UT();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),o=s||i&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function uF(){return fh||(fh=lF()),fh}function cF(e){let{swiper:t,on:n,emit:r}=e;const i=rn();let s=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,m=p;d.forEach(x=>{let{contentBoxSize:g,contentRect:y,target:v}=x;v&&v!==t.el||(h=y?y.width:(g[0]||g).inlineSize,m=y?y.height:(g[0]||g).blockSize)}),(h!==f||m!==p)&&a()})}),s.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function dF(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s=[],o=rn(),a=function(c,d){d===void 0&&(d={});const f=o.MutationObserver||o.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const m=function(){i("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});p.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),s.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=sF(t.hostEl);for(let d=0;d{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var fF={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,s=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(u=>{u.apply(r,n)})}),e}};function pF(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(ui(r,"padding-left")||0,10)-parseInt(ui(r,"padding-right")||0,10),n=n-parseInt(ui(r,"padding-top")||0,10)-parseInt(ui(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function hF(){const e=this;function t(k,R){return parseFloat(k.getPropertyValue(e.getDirectionLabel(R))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:s,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=mr(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,y=e.slidesGrid.length;let v=n.spaceBetween,w=-m,S=0,P=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,c.forEach(k=>{o?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(nc(r,"--swiper-centered-offset-before",""),nc(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C;const M=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&f.push(e.virtualSize-s)}if(l&&n.loop){const k=h[0]+v;if(n.slidesPerGroup>1){const R=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),I=k*n.slidesPerGroup;for(let L=0;L!n.cssMode||n.loop?!0:I!==c.length-1).forEach(R=>{R.style[k]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;h.forEach(I=>{k+=I+(v||0)}),k-=v;const R=k-s;f=f.map(I=>I<=0?-m:I>R?R+x:I)}if(n.centerInsufficientSlides){let k=0;if(h.forEach(R=>{k+=R+(v||0)}),k-=v,k{f[L]=I-R}),p.forEach((I,L)=>{p[L]=I+R})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){nc(r,"--swiper-centered-offset-before",`${-f[0]}px`),nc(r,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const k=-e.snapGrid[0],R=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+k),e.slidesGrid=e.slidesGrid.map(I=>I+R)}if(d!==u&&e.emit("slidesLengthChange"),f.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,R=e.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?R||e.el.classList.add(k):R&&e.el.classList.remove(k)}}function mF(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;st.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(s=0;si?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function gF(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&p<=t.size-t.slidesSizesGrid[l];(p>=0&&p1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),m&&r[l].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-f:f}}function yF(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:o,progressLoop:a}=t;const l=s,u=o;if(r===0)i=0,s=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?a=(m-f)/h:a=(m+h-p)/h,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}const ph=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function xF(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>mr(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(s)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else o?(l=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):l=t[i];l&&(o||(c=iF(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=rF(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{ph(d,d===l,n.slideActiveClass),ph(d,d===c,n.slideNextClass),ph(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Mc=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},hh=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},hg=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,a=[o-t];a.push(...Array.from({length:t}).map((l,u)=>o+r+u)),e.slides.forEach((l,u)=>{a.includes(l.column)&&hh(e,u)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=s+t;o+=1){const a=(o%n+n)%n;(as)&&hh(e,a)}else for(let o=Math.max(i-t,0);o<=Math.min(s+t,n-1);o+=1)o!==i&&(o>s||o=t[s]&&r=t[s]&&r=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function bF(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:o,snapIndex:a}=t;let l=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=wF(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(i.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===s&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(l);else if(d){const p=t.slides.filter(m=>m.column===l)[0];let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l}),t.initialized&&hg(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function SF(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let s=!1,o;if(i){for(let a=0;al?c=l:r&&eo?a="next":s"u"&&(t=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,o);let x=m+Math.floor((o-m)/s.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const g=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=S&&w=S&&w=S&&(o=v)}if(s.initialized&&o!==d&&(!s.allowSlideNext&&(f?g>s.translate&&g>s.minTranslate():gs.translate&&g>s.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let y;if(o>d?y="next":o0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[v?"scrollLeft":"scrollTop"]=w})):p[v?"scrollLeft":"scrollTop"]=w,S&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return VT({swiper:s,targetPosition:w,side:v?"left":"top"}),!0;p.scrollTo({[v?"left":"top"]:w,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,y),t===0?s.transitionEnd(n,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(w){!s||s.destroyed||w.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,y))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function $F(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let a;if(s){const f=o*i.params.grid.rows;a=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=i.getSlideIndexByData(o);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=l-ap.getAttribute("data-swiper-slide-index")*1===f)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function jF(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:s,animating:o}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function DF(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=s.map(g=>f(g));let m=s[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;s.forEach((y,v)=>{p>=y&&(g=v)}),typeof g<"u"&&(m=s[g>0?g-1:g])}let x=0;if(typeof m<"u"&&(x=o.indexOf(m),x<0&&(x=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(x,e,t,n)}),!0;return r.slideTo(x,e,t,n)}function FF(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function NF(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*r&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function zF(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(mr(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),pg(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(mr(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),pg(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var VF={slideTo:LF,slideToLoop:$F,slideNext:jF,slidePrev:DF,slideReset:FF,slideToClosest:NF,slideToClickedSlide:zF};function BF(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{mr(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},s=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(s?n.grid.rows:1),a=t.slides.length%o!==0,l=s&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?s=l.getSlideIndex(u.filter(L=>L.classList.contains(p.slideActiveClass))[0]):S=s;const P=r==="next"||!r,T=r==="prev"||!r;let C=0,M=0;const k=y?Math.ceil(u.length/p.grid.rows):u.length,I=(y?u[s].column:s)+(h&&typeof i>"u"?-m/2+.5:0);if(I=0;z-=1)u[z].column===B&&v.push(z)}else v.push(k-D-1)}}else if(I+m>k-g){M=Math.max(I-(k-g*2),x);for(let L=0;L{B.column===D&&w.push(z)}):w.push(D)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),T&&v.forEach(L=>{u[L].swiperLoopMoveDOM=!0,f.prepend(u[L]),u[L].swiperLoopMoveDOM=!1}),P&&w.forEach(L=>{u[L].swiperLoopMoveDOM=!0,f.append(u[L]),u[L].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(v.length>0&&T||w.length>0&&P)&&l.slides.forEach((L,D)=>{l.grid.updateSlide(D,L,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(v.length>0&&T){if(typeof t>"u"){const L=l.slidesGrid[S],B=l.slidesGrid[S+C]-L;a?l.setTranslate(l.translate-B):(l.slideTo(S+Math.ceil(C),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else if(i){const L=y?v.length/p.grid.rows:v.length;l.slideTo(l.activeIndex+L,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&P)if(typeof t>"u"){const L=l.slidesGrid[S],B=l.slidesGrid[S-M]-L;a?l.setTranslate(l.translate-B):(l.slideTo(S-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else{const L=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-L,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const L={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(D=>{!D.destroyed&&D.params.loop&&D.loopFix({...L,slideTo:D.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...L,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function WF(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var HF={loopCreate:BF,loopFix:UF,loopDestroy:WF};function GF(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function qF(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var KF={setGrabCursor:GF,unsetGrabCursor:qF};function QF(e,t){t===void 0&&(t=this);function n(r){if(!r||r===wr()||r===rn())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function yw(e,t,n){const r=rn(),{params:i}=e,s=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return s&&(n<=o||n>=r.innerWidth-o)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function YF(e){const t=this,n=wr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){yw(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=t;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(f?QF(d,l):l.closest(d))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const p=o.currentX,h=o.currentY;if(!yw(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,i.touchStartTime=Cd(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const x=m&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function XF(e){const t=wr(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(P=>P.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Cd());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(ds.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cs.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=d;const f=s.currentX-s.startX,p=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)"u"){let P;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?P>i.touchAngle:90-P>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),m=Math.abs(m)*(o?1:-1)),s.diff=h,h*=i.touchRatio,o&&(h=-h,m=-m);const x=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(P)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let w=!0,S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),h>0?(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**S))):h<0&&(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ZF(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(S=>S.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Cd(),f=d-n.touchStartTime;if(t.allowClick){const S=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(S&&S[0]||r.target,S),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Cd(),pg(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(o.followFinger?p=l?t.translate:-t.translate:p=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let S=0;S=u[S]&&p=u[S])&&(m=S,x=u[u.length-1]-u[u.length-2])}let g=null,y=null;o.rewind&&(t.isBeginning?y=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(p-u[m])/x,w=mo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:m+w):t.slideTo(m)),t.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?t.slideTo(m+w):y!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:m+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:m))}}function xw(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function JF(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function e6(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function t6(e){const t=this;Mc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function n6(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const HT=(e,t)=>{const n=wr(),{params:r,el:i,wrapperEl:s,device:o}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",xw,!0):e[u]("observerUpdate",xw,!0),i[l]("load",e.onLoad,{capture:!0})};function r6(){const e=this,{params:t}=e;e.onTouchStart=YF.bind(e),e.onTouchMove=XF.bind(e),e.onTouchEnd=ZF.bind(e),e.onDocumentTouchStart=n6.bind(e),t.cssMode&&(e.onScroll=e6.bind(e)),e.onClick=JF.bind(e),e.onLoad=t6.bind(e),HT(e,"on")}function i6(){HT(this,"off")}var s6={attachEvents:r6,detachEvents:i6};const ww=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function o6(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||e.originalParams,u=ww(e,r),c=ww(e,l),d=e.params.grabCursor,f=l.grabCursor,p=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!f?e.unsetGrabCursor():!d&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const w=r[v]&&r[v].enabled,S=l[v]&&l[v].enabled;w&&!S&&e[v].disable(),!w&&S&&e[v].enable()});const h=l.direction&&l.direction!==r.direction,m=r.loop&&(l.slidesPerView!==r.slidesPerView||h),x=r.loop;h&&n&&e.changeDirection(),Ht(e.params,l);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),n&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&y?(e.loopCreate(t),e.updateSlides()):x&&!y&&e.loopDestroy()),e.emit("breakpoint",l)}function a6(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=rn(),s=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function c6(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,o=u6(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function d6(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var f6={addClasses:c6,removeClasses:d6};function p6(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var h6={checkOverflow:p6},mg={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function m6(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){Ht(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in s)){Ht(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Ht(t,r)}}const mh={eventsEmitter:fF,update:EF,translate:_F,transition:IF,slide:VF,loop:HF,grabCursor:KF,events:s6,breakpoints:l6,checkOverflow:h6,classes:f6},gh={};let L0=class lr{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),s=0;s1){const c=[];return o.querySelectorAll(n.el).forEach(d=>{const f=Ht({},n,{el:d});c.push(new lr(f))}),c}const a=this;a.__swiper__=!0,a.support=BT(),a.device=UT({userAgent:n.userAgent}),a.browser=uF(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:m6(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Ht({},mg,l);return a.params=Ht({},u,gh,n),a.originalParams=Ht({},a.params),a.passedParams=Ht({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=mr(n,`.${r.slideClass}, swiper-slide`),s=gw(i[0]);return gw(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=mr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=s[u]?Math.ceil(s[u].swiperSlideSize):0,f;for(let p=u+1;pl&&(f=!0));for(let p=u-1;p>=0;p-=1)s[p]&&!f&&(d+=s[p].swiperSlideSize,c+=1,d>l&&(f=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)o[u]-o[d]{o.complete&&Mc(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(o.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):mr(r,i())[0];return!o&&n.params.createElements&&(o=kd("div",n.params.wrapperClass),r.append(o),mr(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ui(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ui(r,"direction")==="rtl"),wrongRTL:ui(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Mc(n,s):s.addEventListener("load",o=>{Mc(n,o.target)})}),hg(n),n.initialized=!0,hg(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:s,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,JD(r)),r.destroyed=!0),null}static extendDefaults(t){Ht(gh,t)}static get extendedDefaults(){return gh}static get defaults(){return mg}static installModule(t){lr.prototype.__modules__||(lr.prototype.__modules__=[]);const n=lr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>lr.installModule(n)),lr):(lr.installModule(t),lr)}};Object.keys(mh).forEach(e=>{Object.keys(mh[e]).forEach(t=>{L0.prototype[t]=mh[e][t]})});L0.use([cF,dF]);const GT=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function bs(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function mo(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:bs(t[r])&&bs(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:mo(e[r],t[r]):e[r]=t[r]})}function qT(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function KT(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function QT(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function YT(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function g6(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function v6(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:o,scrollbarEl:a,paginationEl:l}=e;const u=i.filter(M=>M!=="children"&&M!=="direction"&&M!=="wrapperClass"),{params:c,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:m}=t;let x,g,y,v,w,S,P,T;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(v=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const C=M=>{t[M]&&(t[M].destroy(),M==="navigation"?(t.isElement&&(t[M].prevEl.remove(),t[M].nextEl.remove()),c[M].prevEl=void 0,c[M].nextEl=void 0,t[M].prevEl=void 0,t[M].nextEl=void 0):(t.isElement&&t[M].el.remove(),c[M].el=void 0,t[M].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?S=!0:!c.loop&&r.loop?P=!0:T=!0),u.forEach(M=>{if(bs(c[M])&&bs(r[M]))Object.assign(c[M],r[M]),(M==="navigation"||M==="pagination"||M==="scrollbar")&&"enabled"in r[M]&&!r[M].enabled&&C(M);else{const k=r[M];(k===!0||k===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?k===!1&&C(M):c[M]=r[M]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&h&&c.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(n&&(h.slides=n),h.update(!0)),i.includes("children")&&n&&c.loop&&(T=!0),x&&m.init()&&m.update(!0),g&&(t.controller.control=c.controller.control),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),v&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),w&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),s&&(c.navigation.nextEl=s),o&&(c.navigation.prevEl=o),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(S||T)&&t.loopDestroy(),(P||T)&&t.loopCreate(),t.update()}function y6(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};mo(n,mg),n._emitClasses=!0,n.init=!1;const s={},o=GT.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(o.indexOf(l)>=0?bs(e[l])?(n[l]={},i[l]={},mo(n[l],e[l]),mo(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:s,events:r}}function x6(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:s,scrollbarEl:o,swiper:a}=e;qT(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),KT(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),QT(t)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(n)}function w6(e,t,n,r,i){const s=[];if(!t)return s;const o=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return GT.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(bs(e[l])&&bs(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?o(l):(u.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}),c.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}))}else e[l]!==t[l]&&o(l)}),s}const b6=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t{XT(n)?t.push(n):n.props&&n.props.children&&ZT(n.props.children).forEach(r=>t.push(r))}),t}function S6(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return H.Children.toArray(e).forEach(r=>{if(XT(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=ZT(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function E6(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:o}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=s&&c<=o&&u.push(t[r(c)]);return u.map((c,d)=>H.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function Qa(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const bw=b.createContext(null),P6=b.createContext(null),JT=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:o,...a}=e===void 0?{}:e,l=!1;const[u,c]=b.useState("swiper"),[d,f]=b.useState(null),[p,h]=b.useState(!1),m=b.useRef(!1),x=b.useRef(null),g=b.useRef(null),y=b.useRef(null),v=b.useRef(null),w=b.useRef(null),S=b.useRef(null),P=b.useRef(null),T=b.useRef(null),{params:C,passedParams:M,rest:k,events:R}=y6(a),{slides:I,slots:L}=S6(s),D=()=>{h(!p)};Object.assign(C.on,{_containerClasses($,V){c(V)}});const B=()=>{Object.assign(C.on,R),l=!0;const $={...C};if(delete $.wrapperClass,g.current=new L0($),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=I;const V={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};mo(g.current.params.virtual,V),mo(g.current.originalParams.virtual,V)}};x.current||B(),g.current&&g.current.on("_beforeBreakpoint",D);const z=()=>{l||!R||!g.current||Object.keys(R).forEach($=>{g.current.on($,R[$])})},K=()=>{!R||!g.current||Object.keys(R).forEach($=>{g.current.off($,R[$])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",D)}),b.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),Qa(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&B(),x6({el:x.current,nextEl:w.current,prevEl:S.current,paginationEl:P.current,scrollbarEl:T.current,swiper:g.current},C),o&&!g.current.destroyed&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Qa(()=>{z();const $=w6(M,y.current,I,v.current,V=>V.key);return y.current=M,v.current=I,$.length&&g.current&&!g.current.destroyed&&v6({swiper:g.current,slides:I,passedParams:M,changedParams:$,nextEl:w.current,prevEl:S.current,scrollbarEl:T.current,paginationEl:P.current}),()=>{K()}}),Qa(()=>{b6(g.current)},[d]);function O(){return C.virtual?E6(g.current,I,d):I.map(($,V)=>H.cloneElement($,{swiper:g.current,swiperSlideIndex:V}))}return H.createElement(r,Md({ref:x,className:YT(`${u}${n?` ${n}`:""}`)},k),H.createElement(P6.Provider,{value:g.current},L["container-start"],H.createElement(i,{className:g6(C.wrapperClass)},L["wrapper-start"],O(),L["wrapper-end"]),qT(C)&&H.createElement(H.Fragment,null,H.createElement("div",{ref:S,className:"swiper-button-prev"}),H.createElement("div",{ref:w,className:"swiper-button-next"})),QT(C)&&H.createElement("div",{ref:T,className:"swiper-scrollbar"}),KT(C)&&H.createElement("div",{ref:P,className:"swiper-pagination"}),L["container-end"]))});JT.displayName="Swiper";const e2=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=b.useRef(null),[f,p]=b.useState("swiper-slide"),[h,m]=b.useState(!1);function x(w,S,P){S===d.current&&p(P)}Qa(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!s)){if(s.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return s.on("_slideClass",x),()=>{s&&s.off("_slideClass",x)}}}),Qa(()=>{s&&d.current&&!s.destroyed&&p(s.getSlideClasses(d.current))},[s]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof r=="function"?r(g):r,v=()=>{m(!0)};return H.createElement(n,Md({ref:d,className:YT(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:v},c),o&&H.createElement(bw.Provider,{value:g},H.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},y(),a&&!h&&H.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&H.createElement(bw.Provider,{value:g},y(),a&&!h&&H.createElement("div",{className:"swiper-lazy-preloader"})))});e2.displayName="SwiperSlide";function C6(e){let{swiper:t,extendParams:n,on:r,emit:i,params:s}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,d=new Date().getTime(),f,p,h,m,x,g,y;function v(O){!t||t.destroyed||!t.wrapperEl||O.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!y&&k())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?f=!0:f&&(u=c,f=!1);const O=t.autoplay.paused?c:d+u-new Date().getTime();t.autoplay.timeLeft=O,i("autoplayTimeLeft",O,O/l),a=requestAnimationFrame(()=>{w()})},S=()=>{let O;return t.virtual&&t.params.virtual.enabled?O=t.slides.filter(V=>V.classList.contains("swiper-slide-active"))[0]:O=t.slides[t.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},P=O=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let $=typeof O>"u"?t.params.autoplay.delay:O;l=t.params.autoplay.delay,u=t.params.autoplay.delay;const V=S();!Number.isNaN(V)&&V>0&&typeof O>"u"&&($=V,l=V,u=V),c=$;const q=t.params.speed,ne=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(q,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,q,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(q,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,q,!0,!0),i("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return $>0?(clearTimeout(o),o=setTimeout(()=>{ne()},$)):requestAnimationFrame(()=>{ne()}),$},T=()=>{d=new Date().getTime(),t.autoplay.running=!0,P(),i("autoplayStart")},C=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},M=(O,$)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),O||(g=!0);const V=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):k()};if(t.autoplay.paused=!0,$){x&&(c=t.params.autoplay.delay),x=!1,V();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),V())},k=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),g?(g=!1,P(c)):P(),t.autoplay.paused=!1,i("autoplayResume"))},R=()=>{if(t.destroyed||!t.autoplay.running)return;const O=wr();O.visibilityState==="hidden"&&(g=!0,M(!0)),O.visibilityState==="visible"&&k()},I=O=>{O.pointerType==="mouse"&&(g=!0,y=!0,!(t.animating||t.autoplay.paused)&&M(!0))},L=O=>{O.pointerType==="mouse"&&(y=!1,t.autoplay.paused&&k())},D=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",I),t.el.addEventListener("pointerleave",L))},B=()=>{t.el.removeEventListener("pointerenter",I),t.el.removeEventListener("pointerleave",L)},z=()=>{wr().addEventListener("visibilitychange",R)},K=()=>{wr().removeEventListener("visibilitychange",R)};r("init",()=>{t.params.autoplay.enabled&&(D(),z(),T())}),r("destroy",()=>{B(),K(),t.autoplay.running&&C()}),r("_freeModeStaticRelease",()=>{(h||g)&&k()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?C():M(!0,!0)}),r("beforeTransitionStart",(O,$,V)=>{t.destroyed||!t.autoplay.running||(V||!t.params.autoplay.disableOnInteraction?M(!0,!0):C())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){C();return}p=!0,h=!1,g=!1,m=setTimeout(()=>{g=!0,h=!0,M(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(o),t.params.autoplay.disableOnInteraction){h=!1,p=!1;return}h&&t.params.cssMode&&k(),h=!1,p=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(x=!0)}),Object.assign(t.autoplay,{start:T,stop:C,pause:M,resume:k})}function T6(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=o?o():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===t&&i()}),r("setTransition",(d,f)=>{n.params.effect===t&&s(f)}),r("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let c;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)}))})}function k6(e,t){const n=I0(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Sw(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=I0(t);let s=i.querySelector(`.${r.split(" ").join(".")}`);return s||(s=kd("div",r.split(" ")),i.append(s)),s}function M6(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),T6({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:o,height:a,slides:l,slidesSizesGrid:u}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),f=t.translate,p=d?-f+o/2:-f+a/2,h=d?c.rotate:-c.rotate,m=c.depth;for(let x=0,g=l.length;x0?P:0),K&&(K.style.opacity=-P>0?-P:0)}}},setTransition:o=>{t.slides.map(l=>I0(l)).forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function t2(e,t){return function(){return e.apply(t,arguments)}}const{toString:_6}=Object.prototype,{getPrototypeOf:$0}=Object,Yf=(e=>t=>{const n=_6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),or=e=>(e=e.toLowerCase(),t=>Yf(t)===e),Xf=e=>t=>typeof t===e,{isArray:ra}=Array,Il=Xf("undefined");function O6(e){return e!==null&&!Il(e)&&e.constructor!==null&&!Il(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=or("ArrayBuffer");function R6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const A6=Xf("string"),bn=Xf("function"),r2=Xf("number"),Zf=e=>e!==null&&typeof e=="object",I6=e=>e===!0||e===!1,_c=e=>{if(Yf(e)!=="object")return!1;const t=$0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},L6=or("Date"),$6=or("File"),j6=or("Blob"),D6=or("FileList"),F6=e=>Zf(e)&&bn(e.pipe),N6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bn(e.append)&&((t=Yf(e))==="formdata"||t==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"))},z6=or("URLSearchParams"),V6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ra(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const s2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,o2=e=>!Il(e)&&e!==s2;function gg(){const{caseless:e}=o2(this)&&this||{},t={},n=(r,i)=>{const s=e&&i2(t,i)||i;_c(t[s])&&_c(r)?t[s]=gg(t[s],r):_c(r)?t[s]=gg({},r):ra(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(wu(t,(i,s)=>{n&&bn(i)?e[s]=t2(i,n):e[s]=i},{allOwnKeys:r}),e),U6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),W6=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},H6=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&$0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G6=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},q6=e=>{if(!e)return null;if(ra(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},K6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$0(Uint8Array)),Q6=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Y6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},X6=or("HTMLFormElement"),Z6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ew=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J6=or("RegExp"),a2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wu(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},eN=e=>{a2(e,(t,n)=>{if(bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(bn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tN=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return ra(e)?r(e):r(String(e).split(t)),n},nN=()=>{},rN=(e,t)=>(e=+e,Number.isFinite(e)?e:t),vh="abcdefghijklmnopqrstuvwxyz",Pw="0123456789",l2={DIGIT:Pw,ALPHA:vh,ALPHA_DIGIT:vh+vh.toUpperCase()+Pw},iN=(e=16,t=l2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sN(e){return!!(e&&bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const oN=e=>{const t=new Array(10),n=(r,i)=>{if(Zf(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=ra(r)?[]:{};return wu(r,(o,a)=>{const l=n(o,i+1);!Il(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},aN=or("AsyncFunction"),lN=e=>e&&(Zf(e)||bn(e))&&bn(e.then)&&bn(e.catch),j={isArray:ra,isArrayBuffer:n2,isBuffer:O6,isFormData:N6,isArrayBufferView:R6,isString:A6,isNumber:r2,isBoolean:I6,isObject:Zf,isPlainObject:_c,isUndefined:Il,isDate:L6,isFile:$6,isBlob:j6,isRegExp:J6,isFunction:bn,isStream:F6,isURLSearchParams:z6,isTypedArray:K6,isFileList:D6,forEach:wu,merge:gg,extend:B6,trim:V6,stripBOM:U6,inherits:W6,toFlatObject:H6,kindOf:Yf,kindOfTest:or,endsWith:G6,toArray:q6,forEachEntry:Q6,matchAll:Y6,isHTMLForm:X6,hasOwnProperty:Ew,hasOwnProp:Ew,reduceDescriptors:a2,freezeMethods:eN,toObjectSet:tN,toCamelCase:Z6,noop:nN,toFiniteNumber:rN,findKey:i2,global:s2,isContextDefined:o2,ALPHABET:l2,generateString:iN,isSpecCompliantForm:sN,toJSONObject:oN,isAsyncFn:aN,isThenable:lN};function ce(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}j.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u2=ce.prototype,c2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c2[e]={value:e}});Object.defineProperties(ce,c2);Object.defineProperty(u2,"isAxiosError",{value:!0});ce.from=(e,t,n,r,i,s)=>{const o=Object.create(u2);return j.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ce.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const uN=null;function vg(e){return j.isPlainObject(e)||j.isArray(e)}function d2(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function Cw(e,t,n){return e?e.concat(t).map(function(i,s){return i=d2(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function cN(e){return j.isArray(e)&&!e.some(vg)}const dN=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function Jf(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!j.isUndefined(x[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(j.isDate(h))return h.toISOString();if(!l&&j.isBlob(h))throw new ce("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(h)||j.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,x){let g=h;if(h&&!x&&typeof h=="object"){if(j.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(j.isArray(h)&&cN(h)||(j.isFileList(h)||j.endsWith(m,"[]"))&&(g=j.toArray(h)))return m=d2(m),g.forEach(function(v,w){!(j.isUndefined(v)||v===null)&&t.append(o===!0?Cw([m],w,s):o===null?m:m+"[]",u(v))}),!1}return vg(h)?!0:(t.append(Cw(x,m,s),u(h)),!1)}const d=[],f=Object.assign(dN,{defaultVisitor:c,convertValue:u,isVisitable:vg});function p(h,m){if(!j.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),j.forEach(h,function(g,y){(!(j.isUndefined(g)||g===null)&&i.call(t,g,j.isString(y)?y.trim():y,m,f))===!0&&p(g,m?m.concat(y):[y])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Tw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function j0(e,t){this._pairs=[],e&&Jf(e,this,t)}const f2=j0.prototype;f2.append=function(t,n){this._pairs.push([t,n])};f2.toString=function(t){const n=t?function(r){return t.call(this,r,Tw)}:Tw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function fN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p2(e,t,n){if(!t)return e;const r=n&&n.encode||fN,i=n&&n.serialize;let s;if(i?s=i(t,n):s=j.isURLSearchParams(t)?t.toString():new j0(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class kw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(r){r!==null&&t(r)})}}const h2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pN=typeof URLSearchParams<"u"?URLSearchParams:j0,hN=typeof FormData<"u"?FormData:null,mN=typeof Blob<"u"?Blob:null,gN={isBrowser:!0,classes:{URLSearchParams:pN,FormData:hN,Blob:mN},protocols:["http","https","file","blob","url","data"]},m2=typeof window<"u"&&typeof document<"u",vN=(e=>m2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),yN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m2,hasStandardBrowserEnv:vN,hasStandardBrowserWebWorkerEnv:yN},Symbol.toStringTag,{value:"Module"})),Zn={...xN,...gN};function wN(e,t){return Jf(e,new Zn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Zn.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function bN(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SN(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&j.isArray(i)?i.length:o,l?(j.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!j.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&j.isArray(i[o])&&(i[o]=SN(i[o])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(r,i)=>{t(bN(r),i,n,0)}),n}return null}function EN(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const D0={transitional:h2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=j.isObject(t);if(s&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return i?JSON.stringify(g2(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wN(t,this.formSerializer).toString();if((a=j.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jf(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),EN(t)):t}],transformResponse:[function(t){const n=this.transitional||D0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&j.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ce.from(a,ce.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zn.classes.FormData,Blob:Zn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{D0.headers[e]={}});const F0=D0,PN=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CN=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&PN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Mw=Symbol("internals");function wa(e){return e&&String(e).trim().toLowerCase()}function Oc(e){return e===!1||e==null?e:j.isArray(e)?e.map(Oc):String(e)}function TN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yh(e,t,n,r,i){if(j.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!j.isString(t)){if(j.isString(r))return t.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(t)}}function MN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _N(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class ep{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=wa(l);if(!c)throw new Error("header name must be a non-empty string");const d=j.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Oc(a))}const o=(a,l)=>j.forEach(a,(u,c)=>s(u,c,l));return j.isPlainObject(t)||t instanceof this.constructor?o(t,n):j.isString(t)&&(t=t.trim())&&!kN(t)?o(CN(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=wa(t),t){const r=j.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return TN(i);if(j.isFunction(n))return n.call(this,i,r);if(j.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wa(t),t){const r=j.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||yh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=wa(o),o){const a=j.findKey(r,o);a&&(!n||yh(r,r[a],a,n))&&(delete r[a],i=!0)}}return j.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||yh(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return j.forEach(this,(i,s)=>{const o=j.findKey(r,s);if(o){n[o]=Oc(i),delete n[s];return}const a=t?MN(s):String(s).trim();a!==s&&delete n[s],n[a]=Oc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&j.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Mw]=this[Mw]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=wa(o);r[a]||(_N(i,o),r[a]=!0)}return j.isArray(t)?t.forEach(s):s(t),this}}ep.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(ep.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});j.freezeMethods(ep);const br=ep;function xh(e,t){const n=this||F0,r=t||n,i=br.from(r.headers);let s=r.data;return j.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function v2(e){return!!(e&&e.__CANCEL__)}function bu(e,t,n){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits(bu,ce,{__CANCEL__:!0});function ON(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const RN=Zn.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),j.isString(r)&&o.push("path="+r),j.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function IN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function y2(e,t){return e&&!AN(t)?IN(e,t):t}const LN=Zn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=j.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function $N(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),u=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-s)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const DN=typeof XMLHttpRequest<"u",FN=DN&&function(e){return new Promise(function(n,r){let i=e.data;const s=br.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(j.isFormData(i)){if(Zn.hasStandardBrowserEnv||Zn.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[m,...x]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...x].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+x))}const f=y2(e.baseURL,e.url);d.open(e.method.toUpperCase(),p2(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const m=br.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};ON(function(v){n(v),u()},function(v){r(v),u()},g),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new ce("Request aborted",ce.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new ce("Network Error",ce.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||h2;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new ce(x,g.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,d)),d=null},Zn.hasStandardBrowserEnv&&(a&&j.isFunction(a)&&(a=a(e)),a||a!==!1&&LN(f))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&RN.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in d&&j.forEach(s.toJSON(),function(x,g){d.setRequestHeader(g,x)}),j.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",_w(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",_w(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{d&&(r(!m||m.type?new bu(null,e,d):m),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=$N(f);if(h&&Zn.protocols.indexOf(h)===-1){r(new ce("Unsupported protocol "+h+":",ce.ERR_BAD_REQUEST,e));return}d.send(i||null)})},yg={http:uN,xhr:FN};j.forEach(yg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ow=e=>`- ${e}`,NN=e=>j.isFunction(e)||e===null||e===!1,x2={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : +`+s.map(Ow).join(` +`):" "+Ow(s[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:yg};function wh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bu(null,e)}function Rw(e){return wh(e),e.headers=br.from(e.headers),e.data=xh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),x2.getAdapter(e.adapter||F0.adapter)(e).then(function(r){return wh(e),r.data=xh.call(e,e.transformResponse,r),r.headers=br.from(r.headers),r},function(r){return v2(r)||(wh(e),r&&r.response&&(r.response.data=xh.call(e,e.transformResponse,r.response),r.response.headers=br.from(r.response.headers))),Promise.reject(r)})}const Aw=e=>e instanceof br?{...e}:e;function Bo(e,t){t=t||{};const n={};function r(u,c,d){return j.isPlainObject(u)&&j.isPlainObject(c)?j.merge.call({caseless:d},u,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function i(u,c,d){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!j.isUndefined(c))return r(void 0,c)}function o(u,c){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>i(Aw(u),Aw(c),!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,f=d(e[c],t[c],c);j.isUndefined(f)&&d!==a||(n[c]=f)}),n}const w2="1.6.8",N0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{N0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Iw={};N0.transitional=function(t,n,r){function i(s,o){return"[Axios v"+w2+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new ce(i(o," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED);return n&&!Iw[o]&&(Iw[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function zN(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new ce("option "+s+" must be "+l,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}const xg={assertOptions:zN,validators:N0},zr=xg.validators;class _d{constructor(t){this.defaults=t,this.interceptors={request:new kw,response:new kw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&xg.assertOptions(r,{silentJSONParsing:zr.transitional(zr.boolean),forcedJSONParsing:zr.transitional(zr.boolean),clarifyTimeoutError:zr.transitional(zr.boolean)},!1),i!=null&&(j.isFunction(i)?n.paramsSerializer={serialize:i}:xg.assertOptions(i,{encode:zr.function,serialize:zr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&j.merge(s.common,s[n.method]);s&&j.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),n.headers=br.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const h=[Rw.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),f=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new bu(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new z0(function(i){t=i}),cancel:t}}}const VN=z0;function BN(e){return function(n){return e.apply(null,n)}}function UN(e){return j.isObject(e)&&e.isAxiosError===!0}const wg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wg).forEach(([e,t])=>{wg[t]=e});const WN=wg;function b2(e){const t=new Rc(e),n=t2(Rc.prototype.request,t);return j.extend(n,Rc.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return b2(Bo(e,i))},n}const Ye=b2(F0);Ye.Axios=Rc;Ye.CanceledError=bu;Ye.CancelToken=VN;Ye.isCancel=v2;Ye.VERSION=w2;Ye.toFormData=Jf;Ye.AxiosError=ce;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=BN;Ye.isAxiosError=UN;Ye.mergeConfig=Bo;Ye.AxiosHeaders=br;Ye.formToJSON=e=>g2(j.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=x2.getAdapter;Ye.HttpStatusCode=WN;Ye.default=Ye;const tp=Ye.create({baseURL:"https://webv2-backend.appdevclub.com"});function HN(e){let t=`${e.firstName}-${e.lastName}`;return t=t.toLowerCase().replace(" ","-"),`${tp.getUri()}/team-images/${t}.jpeg`}function GN(e){let t="";return t=e.leadership.join(", "),t}function qN(e){const[t,n]=H.useState([]);return H.useEffect(()=>{tp.get("members/leaders/").then(r=>{n(()=>r.data)})},[]),E.jsxs(Z,{...e,sx:{...e==null?void 0:e.sx,borderRadius:"35px",display:"flex",flexDirection:"column",gap:"15px",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:[E.jsx(Se,{sx:{fontSize:"3rem",fontWeight:"bold",marginBottom:"30px"},children:"Our Team"}),t.length<1?E.jsx(E.Fragment,{}):E.jsx(JT,{modules:[M6,C6],effect:"coverflow",centeredSlides:!0,loop:!0,loopAdditionalSlides:2,slidesPerView:"auto",spaceBetween:3,coverflowEffect:{rotate:0,stretch:0,depth:200,modifier:1},autoplay:{delay:1200,disableOnInteraction:!1},children:t.map(r=>E.jsx(e2,{children:E.jsxs(Z,{sx:{position:"relative",overflow:"hidden",width:"100%"},children:[E.jsx("img",{src:HN(r),alt:"member_image"}),E.jsxs(Z,{sx:{position:"absolute",bottom:"0px",color:"white",width:"100%",height:"130px",left:"50%",transform:"translateX(-50%)",background:"linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",textAlign:"center",paddingBottom:"20px"},children:[E.jsx(Se,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:`${r.firstName} ${r.lastName}`}),E.jsx(Se,{sx:{fontSize:"1rem"},children:GN(r)})]})]})}))})]})}var KN=Object.defineProperty,QN=(e,t)=>{for(var n in t)KN(e,n,{get:t[n],enumerable:!0})},zn={};QN(zn,{assign:()=>ZN,colors:()=>Si,createStringInterpolator:()=>q0,skipAnimation:()=>M2,to:()=>k2,willAdvance:()=>K0});var V0=Eu(),J=e=>Su(e,V0),B0=Eu();J.write=e=>Su(e,B0);var np=Eu();J.onStart=e=>Su(e,np);var U0=Eu();J.onFrame=e=>Su(e,U0);var W0=Eu();J.onFinish=e=>Su(e,W0);var go=[];J.setTimeout=(e,t)=>{const n=J.now()+t,r=()=>{const s=go.findIndex(o=>o.cancel==r);~s&&go.splice(s,1),di-=~s?1:0},i={time:n,handler:e,cancel:r};return go.splice(S2(n),0,i),di+=1,E2(),i};var S2=e=>~(~go.findIndex(t=>t.time>e)||~go.length);J.cancel=e=>{np.delete(e),U0.delete(e),W0.delete(e),V0.delete(e),B0.delete(e)};J.sync=e=>{bg=!0,J.batchedUpdates(e),bg=!1};J.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,J.onStart(n)}return r.handler=e,r.cancel=()=>{np.delete(n),t=null},r};var H0=typeof window<"u"?window.requestAnimationFrame:()=>{};J.use=e=>H0=e;J.now=typeof performance<"u"?()=>performance.now():Date.now;J.batchedUpdates=e=>e();J.catch=console.error;J.frameLoop="always";J.advance=()=>{J.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):C2()};var ci=-1,di=0,bg=!1;function Su(e,t){bg?(t.delete(e),e(0)):(t.add(e),E2())}function E2(){ci<0&&(ci=0,J.frameLoop!=="demand"&&H0(P2))}function YN(){ci=-1}function P2(){~ci&&(H0(P2),J.batchedUpdates(C2))}function C2(){const e=ci;ci=J.now();const t=S2(ci);if(t&&(T2(go.splice(0,t),n=>n.handler()),di-=t),!di){YN();return}np.flush(),V0.flush(e?Math.min(64,ci-e):16.667),U0.flush(),B0.flush(),W0.flush()}function Eu(){let e=new Set,t=e;return{add(n){di+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return di-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,di-=t.size,T2(t,r=>r(n)&&e.add(r)),di+=e.size,t=e)}}}function T2(e,t){e.forEach(n=>{try{t(n)}catch(r){J.catch(r)}})}function Sg(){}var XN=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),N={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function dr(e,t){if(N.arr(e)){if(!N.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function ir(e,t,n){if(N.arr(e)){for(let r=0;rN.und(e)?[]:N.arr(e)?e:[e];function Ya(e,t){if(e.size){const n=Array.from(e);e.clear(),ue(n,t)}}var La=(e,...t)=>Ya(e,n=>n(...t)),G0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),q0,k2,Si=null,M2=!1,K0=Sg,ZN=e=>{e.to&&(k2=e.to),e.now&&(J.now=e.now),e.colors!==void 0&&(Si=e.colors),e.skipAnimation!=null&&(M2=e.skipAnimation),e.createStringInterpolator&&(q0=e.createStringInterpolator),e.requestAnimationFrame&&J.use(e.requestAnimationFrame),e.batchedUpdates&&(J.batchedUpdates=e.batchedUpdates),e.willAdvance&&(K0=e.willAdvance),e.frameLoop&&(J.frameLoop=e.frameLoop)},Xa=new Set,vn=[],bh=[],Od=0,rp={get idle(){return!Xa.size&&!vn.length},start(e){Od>e.priority?(Xa.add(e),J.onStart(JN)):(_2(e),J(Eg))},advance:Eg,sort(e){if(Od)J.onFrame(()=>rp.sort(e));else{const t=vn.indexOf(e);~t&&(vn.splice(t,1),O2(e))}},clear(){vn=[],Xa.clear()}};function JN(){Xa.forEach(_2),Xa.clear(),J(Eg)}function _2(e){vn.includes(e)||O2(e)}function O2(e){vn.splice(ez(vn,t=>t.priority>e.priority),0,e)}function Eg(e){const t=bh;for(let n=0;n0}function ez(e,t){const n=e.findIndex(t);return n<0?e.length:n}var tz=(e,t,n)=>Math.min(Math.max(n,e),t),nz={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jn="[-+]?\\d*\\.?\\d+",Rd=jn+"%";function ip(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rz=new RegExp("rgb"+ip(jn,jn,jn)),iz=new RegExp("rgba"+ip(jn,jn,jn,jn)),sz=new RegExp("hsl"+ip(jn,Rd,Rd)),oz=new RegExp("hsla"+ip(jn,Rd,Rd,jn)),az=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,uz=/^#([0-9a-fA-F]{6})$/,cz=/^#([0-9a-fA-F]{8})$/;function dz(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=uz.exec(e))?parseInt(t[1]+"ff",16)>>>0:Si&&Si[e]!==void 0?Si[e]:(t=rz.exec(e))?(Fs(t[1])<<24|Fs(t[2])<<16|Fs(t[3])<<8|255)>>>0:(t=iz.exec(e))?(Fs(t[1])<<24|Fs(t[2])<<16|Fs(t[3])<<8|jw(t[4]))>>>0:(t=az.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cz.exec(e))?parseInt(t[1],16)>>>0:(t=lz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=sz.exec(e))?(Lw($w(t[1]),rc(t[2]),rc(t[3]))|255)>>>0:(t=oz.exec(e))?(Lw($w(t[1]),rc(t[2]),rc(t[3]))|jw(t[4]))>>>0:null}function Sh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Lw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=Sh(i,r,e+1/3),o=Sh(i,r,e),a=Sh(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function Fs(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function $w(e){return(parseFloat(e)%360+360)%360/360}function jw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function rc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dw(e){let t=dz(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var Ll=(e,t,n)=>{if(N.fun(e))return e;if(N.arr(e))return Ll({range:e,output:t,extrapolate:n});if(N.str(e.output[0]))return q0(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=pz(u,s);return fz(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function fz(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function pz(e,t){for(var n=1;n=e);++n);return n-1}var hz=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return tz(0,1,i/e)},Ad=1.70158,ic=Ad*1.525,Fw=Ad+1,Nw=2*Math.PI/3,zw=2*Math.PI/4.5,sc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,mz={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fw*e*e*e-Ad*e*e,easeOutBack:e=>1+Fw*Math.pow(e-1,3)+Ad*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ic+1)*2*e-ic)/2:(Math.pow(2*e-2,2)*((ic+1)*(e*2-2)+ic)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Nw),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Nw)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zw))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zw)/2+1,easeInBounce:e=>1-sc(1-e),easeOutBounce:sc,easeInOutBounce:e=>e<.5?(1-sc(1-2*e))/2:(1+sc(2*e-1))/2,steps:hz},$l=Symbol.for("FluidValue.get"),Uo=Symbol.for("FluidValue.observers"),gn=e=>!!(e&&e[$l]),jt=e=>e&&e[$l]?e[$l]():e,Vw=e=>e[Uo]||null;function gz(e,t){e.eventObserved?e.eventObserved(t):e(t)}function jl(e,t){const n=e[Uo];n&&n.forEach(r=>{gz(r,t)})}var R2=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");vz(this,e)}},vz=(e,t)=>A2(e,$l,t);function ia(e,t){if(e[$l]){let n=e[Uo];n||A2(e,Uo,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Dl(e,t){const n=e[Uo];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Uo]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var A2=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ac=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Bw=new RegExp(`(${Ac.source})(%|[a-z]+)`,"i"),xz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,sp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,I2=e=>{const[t,n]=wz(e);if(!t||G0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&sp.test(n))return I2(n);if(n)return n}return e},wz=e=>{const t=sp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Eh,bz=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,L2=e=>{Eh||(Eh=Si?new RegExp(`(${Object.keys(Si).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>jt(s).replace(sp,I2).replace(yz,Dw).replace(Eh,Dw)),n=t.map(s=>s.match(Ac).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>Ll({...e,output:s}));return s=>{var l;const o=!Bw.test(t[0])&&((l=t.find(u=>Bw.test(u)))==null?void 0:l.replace(Ac,""));let a=0;return t[0].replace(Ac,()=>`${i[a++](s)}${o||""}`).replace(xz,bz)}},Q0="react-spring: ",$2=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Q0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Sz=$2(console.warn);function Ez(){Sz(`${Q0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Pz=$2(console.warn);function Cz(){Pz(`${Q0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function op(e){return N.str(e)&&(e[0]=="#"||/\d/.test(e)||!G0()&&sp.test(e)||e in(Si||{}))}var Y0=G0()?b.useEffect:b.useLayoutEffect,Tz=()=>{const e=b.useRef(!1);return Y0(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function j2(){const e=b.useState()[1],t=Tz();return()=>{t.current&&e(Math.random())}}function kz(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&Mz(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Mz(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,_z),_z=[];function Uw(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Fl=Symbol.for("Animated:node"),Oz=e=>!!e&&e[Fl]===e,Un=e=>e&&e[Fl],X0=(e,t)=>XN(e,Fl,t),ap=e=>e&&e[Fl]&&e[Fl].getPayload(),F2=class{constructor(){X0(this,this)}getPayload(){return this.payload||[]}},Pu=class extends F2{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,N.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Pu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return N.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,N.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Nl=class extends Pu{constructor(e){super(0),this._string=null,this._toString=Ll({output:[e,e]})}static create(e){return new Nl(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(N.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Ll({output:[this.getValue(),e]})),this._value=0,super.reset()}},Id={dependencies:null},lp=class extends F2{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ir(this.source,(n,r)=>{Oz(n)?t[r]=n.getValue(e):gn(n)?t[r]=jt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ue(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ir(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Id.dependencies&&gn(e)&&Id.dependencies.add(e);const t=ap(e);t&&ue(t,n=>this.add(n))}},N2=class extends lp{constructor(e){super(e)}static create(e){return new N2(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Rz)),!0)}};function Rz(e){return(op(e)?Nl:Pu).create(e)}function Pg(e){const t=Un(e);return t?t.constructor:N.arr(e)?N2:op(e)?Nl:Pu}var Ww=(e,t)=>{const n=!N.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(h=>{s.current=Lz(i,h)},[i]),[a,l]=Iz(r,t),u=j2(),c=()=>{const h=s.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new Az(c,l),f=b.useRef();Y0(()=>(f.current=d,ue(l,h=>ia(h,d)),()=>{f.current&&(ue(f.current.deps,h=>Dl(h,f.current)),J.cancel(f.current.update))})),b.useEffect(c,[]),D2(()=>()=>{const h=f.current;ue(h.deps,m=>Dl(m,h))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:o})})},Az=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&J.write(this.update)}};function Iz(e,t){const n=new Set;return Id.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new lp(e),Id.dependencies=null,[e,n]}function Lz(e,t){return e&&(N.fun(e)?e(t):e.current=t),t}var Hw=Symbol.for("AnimatedComponent"),$z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new lp(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=Gw(o)||"Anonymous";return N.str(o)?o=s[o]||(s[o]=Ww(o,i)):o=o[Hw]||(o[Hw]=Ww(o,i)),o.displayName=`Animated(${a})`,o};return ir(e,(o,a)=>{N.arr(e)&&(a=Gw(o)),s[a]=s(o)}),{animated:s}},Gw=e=>N.str(e)?e:e&&N.str(e.displayName)?e.displayName:N.fun(e)&&e.name||null;function Qi(e,...t){return N.fun(e)?e(...t):e}var Za=(e,t)=>e===!0||!!(t&&e&&(N.fun(e)?e(t):Kt(e).includes(t))),z2=(e,t)=>N.obj(e)?t&&e[t]:e,V2=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,jz=e=>e,Z0=(e,t=jz)=>{let n=Dz;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);N.und(s)||(r[i]=s)}return r},Dz=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Fz={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Nz(e){const t={};let n=0;if(ir(e,(r,i)=>{Fz[i]||(t[i]=r,n++)}),n)return t}function B2(e){const t=Nz(e);if(t){const n={to:t};return ir(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function zl(e){return e=jt(e),N.arr(e)?e.map(zl):op(e)?zn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zz(e){for(const t in e)return!0;return!1}function Cg(e){return N.fun(e)||N.arr(e)&&N.obj(e[0])}function Vz(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Bz(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Uz={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Tg={...Uz.default,mass:1,damping:1,easing:mz.linear,clamp:!1},Wz=class{constructor(){this.velocity=0,Object.assign(this,Tg)}};function Hz(e,t,n){n&&(n={...n},qw(n,t),t={...n,...t}),qw(e,t),Object.assign(e,t);for(const o in Tg)e[o]==null&&(e[o]=Tg[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return N.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function qw(e,t){if(!N.und(t.decay))e.duration=void 0;else{const n=!N.und(t.tension)||!N.und(t.friction);(n||!N.und(t.frequency)||!N.und(t.damping)||!N.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Kw=[],Gz=class{constructor(){this.changed=!1,this.values=Kw,this.toValues=null,this.fromValues=Kw,this.config=new Wz,this.immediate=!1}};function U2(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=Za(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{N.und(n.pause)||(i.paused=Za(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=i.paused||Za(h,t)),l=Qi(n.delay||0,t),h?(i.resumeQueue.add(f),s.pause()):(s.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-J.now()}function f(){l>0&&!zn.skipAnimation?(i.delayed=!0,u=J.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(u)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(h){a(h)}}})}var J0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?vo(e.get()):t.every(n=>n.noop)?W2(e.get()):$n(e.get(),t.every(n=>n.finished)),W2=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$n=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),vo=e=>({value:e,cancelled:!0,finished:!1});function H2(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=Z0(t,(x,g)=>g==="onRest"?void 0:x);let c,d;const f=new Promise((x,g)=>(c=x,d=g)),p=x=>{const g=i<=(n.cancelId||0)&&vo(r)||i!==n.asyncId&&$n(r,!1);if(g)throw x.result=g,d(x),x},h=(x,g)=>{const y=new Qw,v=new Yw;return(async()=>{if(zn.skipAnimation)throw Vl(n),v.result=$n(r,!1),d(v),v;p(y);const w=N.obj(x)?{...x}:{...g,to:x};w.parentId=i,ir(u,(P,T)=>{N.und(w[T])&&(w[T]=P)});const S=await r.start(w);return p(y),n.paused&&await new Promise(P=>{n.resumeQueue.add(P)}),S})()};let m;if(zn.skipAnimation)return Vl(n),$n(r,!1);try{let x;N.arr(e)?x=(async g=>{for(const y of g)await h(y)})(e):x=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([x.then(c),f]),m=$n(r.get(),!0,!1)}catch(x){if(x instanceof Qw)m=x.result;else if(x instanceof Yw)m=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return N.fun(o)&&J.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Vl(e,t){Ya(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Qw=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Yw=class extends Error{constructor(){super("SkipAnimationSignal")}},kg=e=>e instanceof ey,qz=1,ey=class extends R2{constructor(){super(...arguments),this.id=qz++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Un(this);return e&&e.getValue()}to(...e){return zn.to(this,e)}interpolate(...e){return Ez(),zn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){jl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rp.sort(this),jl(this,{type:"priority",parent:this,priority:e})}},Ss=Symbol.for("SpringPhase"),G2=1,Mg=2,_g=4,Ph=e=>(e[Ss]&G2)>0,Vr=e=>(e[Ss]&Mg)>0,ba=e=>(e[Ss]&_g)>0,Xw=(e,t)=>t?e[Ss]|=Mg|G2:e[Ss]&=~Mg,Zw=(e,t)=>t?e[Ss]|=_g:e[Ss]&=~_g,Kz=class extends ey{constructor(e,t){if(super(),this.animation=new Gz,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!N.und(e)||!N.und(t)){const n=N.obj(e)?{...e}:{...t,from:e};N.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Vr(this)||this._state.asyncTo)||ba(this)}get goal(){return jt(this.animation.to)}get velocity(){const e=Un(this);return e instanceof Pu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ph(this)}get isAnimating(){return Vr(this)}get isPaused(){return ba(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ap(r.to);!o&&gn(r.to)&&(i=Kt(jt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Nl?1:o?o[c].lastPosition:i[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,s.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const m=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=N.arr(s.velocity)?s.velocity[c]:s.velocity;let g;const y=s.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(N.und(s.duration))if(s.decay){const v=s.decay===!0?.998:s.decay,w=Math.exp(-(1-v)*h);p=m+x/(1-v)*(1-w),f=Math.abs(u.lastPosition-p)<=y,g=x*w}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=s.restVelocity||y/10,w=s.clamp?0:s.bounce,S=!N.und(w),P=m==d?u.v0>0:mv,!(!T&&(f=Math.abs(d-p)<=y,f)));++R){S&&(C=p==d||p>d==P,C&&(g=-g*w,p=d));const I=-s.tension*1e-6*(p-d),L=-s.friction*.001*g,D=(I+L)/s.mass;g=g+D*M,p=p+g*M}}else{let v=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(s.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),p=m+s.easing(v)*(d-m),g=(p-u.lastPosition)/e,f=v==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,s.round)&&(n=!0)});const a=Un(this),l=a.getValue();if(t){const u=jt(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return J.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Vr(this)){const{to:e,config:t}=this.animation;J.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return N.und(e)?(n=this.queue||[],this.queue=[]):n=[N.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>J0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Vl(this._state,e&&this._lastCallId),J.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=N.obj(n)?n[t]:n,(n==null||Cg(n))&&(n=void 0),r=N.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Ph(this)||(e.reverse&&([n,r]=[r,n]),r=jt(r),N.und(r)?Un(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Z0(e,(o,a)=>/^on/.test(a)?z2(o,n):o)),eb(this,e,"onProps"),Ea(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return U2(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{ba(this)||(Zw(this,!0),La(s.pauseQueue),Ea(this,"onPause",$n(this,Sa(this,this.animation.to)),this))},resume:()=>{ba(this)&&(Zw(this,!1),Vr(this)&&this._resume(),La(s.resumeQueue),Ea(this,"onResume",$n(this,Sa(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=q2(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(vo(this));const r=!N.und(e.to),i=!N.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(vo(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||N.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!dr(d,u);f&&(a.from=d),d=jt(d);const p=!dr(c,l);p&&this._focus(c);const h=Cg(t.to),{config:m}=a,{decay:x,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!h&&Hz(m,Qi(t.config,s),t.config!==o.config?Qi(o.config,s):void 0);let y=Un(this);if(!y||N.und(c))return n($n(this,!0));const v=N.und(t.reset)?i&&!t.default:!N.und(d)&&Za(t.reset,s),w=v?d:this.get(),S=zl(c),P=N.num(S)||N.arr(S)||op(S),T=!h&&(!P||Za(o.immediate||t.immediate,s));if(p){const R=Pg(c);if(R!==y.constructor)if(T)y=this._set(S);else throw Error(`Cannot animate between ${y.constructor.name} and ${R.name}, as the "to" prop suggests`)}const C=y.constructor;let M=gn(c),k=!1;if(!M){const R=v||!Ph(this)&&f;(p||R)&&(k=dr(zl(w),S),M=!k),(!dr(a.immediate,T)&&!T||!dr(m.decay,x)||!dr(m.velocity,g))&&(M=!0)}if(k&&Vr(this)&&(a.changed&&!v?M=!0:M||this._stop(l)),!h&&((M||gn(l))&&(a.values=y.getPayload(),a.toValues=gn(c)?null:C==Nl?[1]:Kt(S)),a.immediate!=T&&(a.immediate=T,!T&&!v&&this._set(l)),M)){const{onRest:R}=a;ue(Yz,L=>eb(this,t,L));const I=$n(this,Sa(this,l));La(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&J.batchedUpdates(()=>{var L;a.changed=!v,R==null||R(I,this),v?Qi(o.onRest,I):(L=a.onStart)==null||L.call(a,I,this)})}v&&this._set(w),h?n(H2(t.to,t,this._state,this)):M?this._start():Vr(this)&&!p?this._pendingCalls.add(n):n(W2(w))}_focus(e){const t=this.animation;e!==t.to&&(Vw(this)&&this._detach(),t.to=e,Vw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;gn(t)&&(ia(t,this),kg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;gn(e)&&Dl(e,this)}_set(e,t=!0){const n=jt(e);if(!N.und(n)){const r=Un(this);if(!r||!dr(n,r.getValue())){const i=Pg(n);!r||r.constructor!=i?X0(this,i.create(n)):r.setValue(n),r&&J.batchedUpdates(()=>{this._onChange(n,t)})}}return Un(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ea(this,"onStart",$n(this,Sa(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Qi(this.animation.onChange,e,this)),Qi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Un(this).reset(jt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Vr(this)||(Xw(this,!0),ba(this)||this._resume())}_resume(){zn.skipAnimation?this.finish():rp.start(this)}_stop(e,t){if(Vr(this)){Xw(this,!1);const n=this.animation;ue(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jl(this,{type:"idle",parent:this});const r=t?vo(this.get()):$n(this.get(),Sa(this,e??n.to));La(this._pendingCalls,r),n.changed&&(n.changed=!1,Ea(this,"onRest",r,this))}}};function Sa(e,t){const n=zl(t),r=zl(e.get());return dr(r,n)}function q2(e,t=e.loop,n=e.to){const r=Qi(t);if(r){const i=r!==!0&&B2(r),s=(i||e).reverse,o=!i||i.reset;return Bl({...e,loop:t,default:!1,pause:void 0,to:!s||Cg(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Bl(e){const{to:t,from:n}=e=B2(e),r=new Set;return N.obj(t)&&Jw(t,r),N.obj(n)&&Jw(n,r),e.keys=r.size?Array.from(r):null,e}function Qz(e){const t=Bl(e);return N.und(t.default)&&(t.default=Z0(t)),t}function Jw(e,t){ir(e,(n,r)=>n!=null&&t.add(r))}var Yz=["onStart","onRest","onChange","onPause","onResume"];function eb(e,t,n){e.animation[n]=t[n]!==V2(t,n)?z2(t[n],e.key):void 0}function Ea(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var Xz=["onStart","onChange","onRest"],Zz=1,Jz=class{constructor(e,t){this.id=Zz++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];N.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bl(e)),this}start(e){let{queue:t}=this;return e?t=Kt(e).map(Bl):this.queue=[],this._flush?this._flush(this,t):(Z2(this,t),Og(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ue(Kt(t),r=>n[r].stop(!!e))}else Vl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(N.und(e))this.start({pause:!0});else{const t=this.springs;ue(Kt(e),n=>t[n].pause())}return this}resume(e){if(N.und(e))this.start({pause:!1});else{const t=this.springs;ue(Kt(e),n=>t[n].resume())}return this}each(e){ir(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ya(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Ya(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Ya(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;J.onFrame(this._onFrame)}};function Og(e,t){return Promise.all(t.map(n=>K2(e,n))).then(n=>J0(e,n))}async function K2(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=N.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=N.arr(i)||N.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ue(Xz,m=>{const x=t[m];if(N.fun(x)){const g=e._events[m];t[m]=({finished:y,cancelled:v})=>{const w=g.get(x);w?(y||(w.finished=!1),v&&(w.cancelled=!0)):g.set(x,{value:null,finished:y||!1,cancelled:v||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,La(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||V2(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push(U2(++e._lastAsyncId,{props:t,state:d,actions:{pause:Sg,resume:Sg,start(m,x){p?(Vl(d,e._lastAsyncId),x(vo(e))):(m.onRest=a,x(H2(c,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const h=J0(e,await Promise.all(f));if(o&&h.finished&&!(n&&h.noop)){const m=q2(t,o,i);if(m)return Z2(e,[m]),K2(e,m,!0)}return l&&J.batchedUpdates(()=>l(h,e,e.item)),h}function tb(e,t){const n={...e.springs};return t&&ue(Kt(t),r=>{N.und(r.keys)&&(r=Bl(r)),N.obj(r.to)||(r={...r,to:void 0}),X2(n,r,i=>Y2(i))}),Q2(e,n),n}function Q2(e,t){ir(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ia(n,e))})}function Y2(e,t){const n=new Kz;return n.key=e,t&&ia(n,t),n}function X2(e,t,n){t.keys&&ue(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Z2(e,t){ue(t,n=>{X2(e.springs,n,r=>Y2(r,e))})}var up=({children:e,...t})=>{const n=b.useContext(Ld),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=kz(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ld;return b.createElement(s,{value:t},e)},Ld=e8(up,{});up.Provider=Ld.Provider;up.Consumer=Ld.Consumer;function e8(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var t8=()=>{const e=[],t=function(r){Cz();const i=[];return ue(e,(s,o)=>{if(N.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ue(e,r=>r.pause(...arguments)),this},t.resume=function(){return ue(e,r=>r.resume(...arguments)),this},t.set=function(r){ue(e,(i,s)=>{const o=N.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return ue(e,(s,o)=>{if(N.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return ue(e,r=>r.stop(...arguments)),this},t.update=function(r){return ue(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return N.fun(r)?r(s,i):r};return t._getProps=n,t};function n8(e,t,n){const r=N.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?t8():void 0,[]),s=b.useRef(0),o=j2(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const v=tb(g,y);return s.current>0&&!a.queue.length&&!Object.keys(v).some(S=>!g.springs[S])?Og(g,y):new Promise(S=>{Q2(g,v),a.queue.push(()=>{S(Og(g,y))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Uw(e)||0;b.useMemo(()=>{ue(l.current.slice(e,c),g=>{Vz(g,i),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,y){for(let v=g;vtb(g,u[y])),p=b.useContext(up),h=Uw(p),m=p!==h&&zz(p);Y0(()=>{s.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],ue(g,y=>y())),ue(l.current,(y,v)=>{i==null||i.add(y),m&&y.start({default:p});const w=u[v];w&&(Bz(y,w.ref),y.ref?y.queue.push(w):y.start(w))})}),D2(()=>()=>{ue(a.ctrls,g=>g.stop(!0))});const x=f.map(g=>({...g}));return i?[x,i]:x}function r8(e,t){const n=N.fun(e),[[r],i]=n8(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var i8=class extends ey{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ll(...t);const n=this._get(),r=Pg(n);X0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();dr(t,n)||(Un(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nb(this._active)&&Ch(this)}_get(){const e=N.arr(this.source)?this.source.map(jt):Kt(jt(this.source));return this.calc(...e)}_start(){this.idle&&!nb(this._active)&&(this.idle=!1,ue(ap(this),e=>{e.done=!1}),zn.skipAnimation?(J.batchedUpdates(()=>this.advance()),Ch(this)):rp.start(this))}_attach(){let e=1;ue(Kt(this.source),t=>{gn(t)&&ia(t,this),kg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ue(Kt(this.source),e=>{gn(e)&&Dl(e,this)}),this._active.clear(),Ch(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Kt(this.source).reduce((t,n)=>Math.max(t,(kg(n)?n.priority:0)+1),0))}};function s8(e){return e.idle!==!1}function nb(e){return!e.size||Array.from(e).every(s8)}function Ch(e){e.idle||(e.idle=!0,ue(ap(e),t=>{t.done=!0}),jl(e,{type:"idle",parent:e}))}zn.assign({createStringInterpolator:L2,to:(e,t)=>new i8(e,t)});var J2=/^--/;function o8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!J2.test(e)&&!(Ja.hasOwnProperty(e)&&Ja[e])?t+"px":(""+t).trim()}var rb={};function a8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:rb[d]||(rb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const f=o8(d,r[d]);J2.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Ja={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},l8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),u8=["Webkit","Ms","Moz","O"];Ja=Object.keys(Ja).reduce((e,t)=>(u8.forEach(n=>e[l8(n,t)]=e[t]),e),Ja);var c8=/^(matrix|translate|scale|rotate|skew)/,d8=/^(translate)/,f8=/^(rotate|skew)/,Th=(e,t)=>N.num(e)&&e!==0?e+t:e,Ic=(e,t)=>N.arr(e)?e.every(n=>Ic(n,t)):N.num(e)?e===t:parseFloat(e)===t,p8=class extends lp{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>Th(a,"px")).join(",")})`,Ic(o,0)])),ir(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if(c8.test(a)){if(delete r[a],N.und(o))return;const l=d8.test(a)?"px":f8.test(a)?"deg":"";i.push(Kt(o)),s.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${Th(f,l)})`,Ic(f,0)]:u=>[`${a}(${u.map(c=>Th(c,l)).join(",")})`,Ic(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new h8(i,s)),super(r)}},h8=class extends R2{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ue(this.inputs,(n,r)=>{const i=jt(n[0]),[s,o]=this.transforms[r](N.arr(i)?i:n.map(jt));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ue(this.inputs,t=>ue(t,n=>gn(n)&&ia(n,this)))}observerRemoved(e){e==0&&ue(this.inputs,t=>ue(t,n=>gn(n)&&Dl(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),jl(this,e)}},m8=["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","head","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];zn.assign({batchedUpdates:ff.unstable_batchedUpdates,createStringInterpolator:L2,colors:nz});var g8=$z(m8,{applyAnimatedValues:a8,createAnimatedStyle:e=>new p8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),v8=g8.animated;const y8=v8(Se);function kh({end:e,title:t,prefix:n,start:r,minWidth:i,alignSelf:s}){const{number:o}=r8({from:{number:r||0},number:e,config:{mass:1,tension:20,friction:10}});return E.jsx(Z,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",flex:1,minWidth:i},children:E.jsxs(Z,{sx:{display:"flex",flex:1,alignItems:"center",flexDirection:"column"},children:[E.jsx(Z,{sx:{display:"flex",flex:1,alignItems:"flex-start",alignSelf:s||"center"},children:E.jsxs(Z,{sx:{flexDirection:"row",alignItems:"center",alignSelf:"center",justifyContent:"center",display:"flex",flex:1},children:[E.jsx(Se,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:n}),E.jsx(y8,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:o.to(a=>Math.floor(a).toLocaleString("en-US"))}),E.jsx(Se,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:"+"})]})}),E.jsx(Se,{sx:{fontSize:"calc(15px + 0.5vw)",alignSelf:s||"center"},children:t})]})})}var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wo=typeof window>"u"||"Deno"in globalThis;function dn(){}function x8(e,t){return typeof e=="function"?e(t):e}function Rg(e){return typeof e=="number"&&e>=0&&e!==1/0}function ek(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ib(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ty(o,t.options))return!1}else if(!Wl(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function sb(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ul(t.options.mutationKey)!==Ul(s))return!1}else if(!Wl(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ty(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ul)(e)}function Ul(e){return JSON.stringify(e,(t,n)=>Ig(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Wl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Wl(e[n],t[n])):!1}function tk(e,t){if(e===t)return e;const n=ob(e)&&ob(t);if(n||Ig(e)&&Ig(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Lg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?tk(e,t):t}function b8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function S8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ny=Symbol(),rs,ei,xo,BS,E8=(BS=class extends Cu{constructor(){super();Y(this,rs,void 0);Y(this,ei,void 0);Y(this,xo,void 0);W(this,xo,t=>{if(!Wo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,ei)||this.setEventListener(_(this,xo))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,ei))==null||t.call(this),W(this,ei,void 0))}setEventListener(t){var n;W(this,xo,t),(n=_(this,ei))==null||n.call(this),W(this,ei,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,rs)!==t&&(W(this,rs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,rs)=="boolean"?_(this,rs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rs=new WeakMap,ei=new WeakMap,xo=new WeakMap,BS),ry=new E8,wo,ti,bo,US,P8=(US=class extends Cu{constructor(){super();Y(this,wo,!0);Y(this,ti,void 0);Y(this,bo,void 0);W(this,bo,t=>{if(!Wo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,ti)||this.setEventListener(_(this,bo))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,ti))==null||t.call(this),W(this,ti,void 0))}setEventListener(t){var n;W(this,bo,t),(n=_(this,ti))==null||n.call(this),W(this,ti,t(this.setOnline.bind(this)))}setOnline(t){_(this,wo)!==t&&(W(this,wo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,wo)}},wo=new WeakMap,ti=new WeakMap,bo=new WeakMap,US),$d=new P8;function C8(e){return Math.min(1e3*2**e,3e4)}function iy(e){return(e??"online")==="online"?$d.isOnline():!0}var nk=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Mh(e){return e instanceof nk}function rk(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,g)=>{s=x,o=g}),l=x=>{var g;r||(p(new nk(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!ry.isFocused()||e.networkMode!=="always"&&!$d.isOnline(),f=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),i==null||i(),s(x))},p=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),i==null||i(),o(x))},h=()=>new Promise(x=>{var g;i=y=>{const v=r||!d();return v&&x(y),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;i=void 0,r||(x=e.onContinue)==null||x.call(e)}),m=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var P;if(r)return;const y=e.retry??(Wo?0:3),v=e.retryDelay??C8,w=typeof v=="function"?v(n,g):v,S=y===!0||typeof y=="number"&&n{if(d())return h()}).then(()=>{t?p(g):m()})})};return iy(e.networkMode)?m():h().then(m),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function T8(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=f=>setTimeout(f,0);const s=f=>{i=f},o=f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},a=f=>{t?e.push(f):i(()=>{n(f)})},l=f=>(...p)=>{a(()=>{f(...p)})},u=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:o,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:s}}var pt=T8(),is,WS,ik=(WS=class{constructor(){Y(this,is,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rg(this.gcTime)&&W(this,is,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wo?1/0:5*60*1e3))}clearGcTimeout(){_(this,is)&&(clearTimeout(_(this,is)),W(this,is,void 0))}},is=new WeakMap,WS),So,Eo,ln,_t,nt,Ql,ss,An,ur,HS,k8=(HS=class extends ik{constructor(t){super();Y(this,An);Y(this,So,void 0);Y(this,Eo,void 0);Y(this,ln,void 0);Y(this,_t,void 0);Y(this,nt,void 0);Y(this,Ql,void 0);Y(this,ss,void 0);W(this,ss,!1),W(this,Ql,t.defaultOptions),this.setOptions(t.options),W(this,nt,[]),W(this,ln,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,So,t.state||M8(this.options)),this.state=_(this,So),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={..._(this,Ql),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!_(this,nt).length&&this.state.fetchStatus==="idle"&&_(this,ln).remove(this)}setData(t,n){const r=Lg(this.state.data,t,this.options);return le(this,An,ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){le(this,An,ur).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_(this,_t))==null?void 0:r.promise;return(i=_(this,_t))==null||i.cancel(t),n?n.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,So))}isActive(){return _(this,nt).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?_(this,nt).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ek(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=_(this,nt).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,_t))==null||n.continue()}onOnline(){var n;const t=_(this,nt).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,_t))==null||n.continue()}addObserver(t){_(this,nt).includes(t)||(_(this,nt).push(t),this.clearGcTimeout(),_(this,ln).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){_(this,nt).includes(t)&&(W(this,nt,_(this,nt).filter(n=>n!==t)),_(this,nt).length||(_(this,_t)&&(_(this,ss)?_(this,_t).cancel({revert:!0}):_(this,_t).cancelRetry()),this.scheduleGc()),_(this,ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return _(this,nt).length}invalidate(){this.state.isInvalidated||le(this,An,ur).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,_t))return _(this,_t).continueRetry(),_(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=_(this,nt).find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(W(this,ss,!0),r.signal)})};s(i);const o=()=>!this.options.queryFn||this.options.queryFn===ny?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(W(this,ss,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(a),(u=this.options.behavior)==null||u.onFetch(a,this),W(this,Eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&le(this,An,ur).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,m,x;Mh(f)&&f.silent||le(this,An,ur).call(this,{type:"error",error:f}),Mh(f)||((h=(p=_(this,ln).config).onError)==null||h.call(p,f,this),(x=(m=_(this,ln).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return W(this,_t,rk({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(h=(p=_(this,ln).config).onSuccess)==null||h.call(p,f,this),(x=(m=_(this,ln).config).onSettled)==null||x.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(f,p)=>{le(this,An,ur).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{le(this,An,ur).call(this,{type:"pause"})},onContinue:()=>{le(this,An,ur).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),_(this,_t).promise}},So=new WeakMap,Eo=new WeakMap,ln=new WeakMap,_t=new WeakMap,nt=new WeakMap,Ql=new WeakMap,ss=new WeakMap,An=new WeakSet,ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...sk(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Mh(i)&&i.revert&&_(this,Eo)?{..._(this,Eo),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),pt.batch(()=>{_(this,nt).forEach(r=>{r.onQueryUpdate()}),_(this,ln).notify({query:this,type:"updated",action:t})})},HS);function sk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Hn,GS,_8=(GS=class extends Cu{constructor(t={}){super();Y(this,Hn,void 0);this.config=t,W(this,Hn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ty(i,n);let o=this.get(s);return o||(o=new k8({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_(this,Hn).has(t.queryHash)||(_(this,Hn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,Hn).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,Hn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,Hn).get(t)}getAll(){return[..._(this,Hn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ib(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ib(t,r)):n}notify(t){pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Hn=new WeakMap,GS),Gn,Yl,Ut,Po,qn,Hr,qS,O8=(qS=class extends ik{constructor(t){super();Y(this,qn);Y(this,Gn,void 0);Y(this,Yl,void 0);Y(this,Ut,void 0);Y(this,Po,void 0);this.mutationId=t.mutationId,W(this,Yl,t.defaultOptions),W(this,Ut,t.mutationCache),W(this,Gn,[]),this.state=t.state||R8(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={..._(this,Yl),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,Gn).includes(t)||(_(this,Gn).push(t),this.clearGcTimeout(),_(this,Ut).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,Gn,_(this,Gn).filter(n=>n!==t)),this.scheduleGc(),_(this,Ut).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,Gn).length||(this.state.status==="pending"?this.scheduleGc():_(this,Ut).remove(this))}continue(){var t;return((t=_(this,Po))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,u,c,d,f,p,h,m,x,g,y,v,w,S,P,T;const n=()=>(W(this,Po,rk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,M)=>{le(this,qn,Hr).call(this,{type:"failed",failureCount:C,error:M})},onPause:()=>{le(this,qn,Hr).call(this,{type:"pause"})},onContinue:()=>{le(this,qn,Hr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_(this,Po).promise),r=this.state.status==="pending";try{if(!r){le(this,qn,Hr).call(this,{type:"pending",variables:t}),await((s=(i=_(this,Ut).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));M!==this.state.context&&le(this,qn,Hr).call(this,{type:"pending",context:M,variables:t})}const C=await n();return await((u=(l=_(this,Ut).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,C,t,this.state.context)),await((p=(f=_(this,Ut).config).onSettled)==null?void 0:p.call(f,C,null,this.state.variables,this.state.context,this)),await((m=(h=this.options).onSettled)==null?void 0:m.call(h,C,null,t,this.state.context)),le(this,qn,Hr).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(x=_(this,Ut).config).onError)==null?void 0:g.call(x,C,t,this.state.context,this)),await((v=(y=this.options).onError)==null?void 0:v.call(y,C,t,this.state.context)),await((S=(w=_(this,Ut).config).onSettled)==null?void 0:S.call(w,void 0,C,this.state.variables,this.state.context,this)),await((T=(P=this.options).onSettled)==null?void 0:T.call(P,void 0,C,t,this.state.context)),C}finally{le(this,qn,Hr).call(this,{type:"error",error:C})}}}},Gn=new WeakMap,Yl=new WeakMap,Ut=new WeakMap,Po=new WeakMap,qn=new WeakSet,Hr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!iy(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pt.batch(()=>{_(this,Gn).forEach(r=>{r.onMutationUpdate(t)}),_(this,Ut).notify({mutation:this,type:"updated",action:t})})},qS);function R8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var un,Xl,os,KS,A8=(KS=class extends Cu{constructor(t={}){super();Y(this,un,void 0);Y(this,Xl,void 0);Y(this,os,void 0);this.config=t,W(this,un,[]),W(this,Xl,0)}build(t,n,r){const i=new O8({mutationCache:this,mutationId:++Iu(this,Xl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_(this,un).push(t),this.notify({type:"added",mutation:t})}remove(t){W(this,un,_(this,un).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){pt.batch(()=>{_(this,un).forEach(t=>{this.remove(t)})})}getAll(){return _(this,un)}find(t){const n={exact:!0,...t};return _(this,un).find(r=>sb(n,r))}findAll(t={}){return _(this,un).filter(n=>sb(t,n))}notify(t){pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return W(this,os,(_(this,os)??Promise.resolve()).then(()=>{const t=_(this,un).filter(n=>n.state.isPaused);return pt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(dn)),Promise.resolve()))}).then(()=>{W(this,os,void 0)})),_(this,os)}},un=new WeakMap,Xl=new WeakMap,os=new WeakMap,KS);function I8(e){return{onFetch:(t,n)=>{const r=async()=>{var h,m,x,g,y;const i=t.options,s=(x=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:x.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn&&t.options.queryFn!==ny?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),f=async(v,w,S)=>{if(u)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const P={queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};c(P);const T=await d(P),{maxPages:C}=t.options,M=S?S8:b8;return{pages:M(v.pages,T,C),pageParams:M(v.pageParams,w,C)}};let p;if(s&&o.length){const v=s==="backward",w=v?L8:lb,S={pages:o,pageParams:a},P=w(i,S);p=await f(S,P,v)}else{p=await f(l,a[0]??i.initialPageParam);const v=e??o.length;for(let w=1;w{var i,s;return(s=(i=t.options).persister)==null?void 0:s.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function lb(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function L8(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var ze,ni,ri,Co,To,ii,ko,Mo,QS,$8=(QS=class{constructor(e={}){Y(this,ze,void 0);Y(this,ni,void 0);Y(this,ri,void 0);Y(this,Co,void 0);Y(this,To,void 0);Y(this,ii,void 0);Y(this,ko,void 0);Y(this,Mo,void 0);W(this,ze,e.queryCache||new _8),W(this,ni,e.mutationCache||new A8),W(this,ri,e.defaultOptions||{}),W(this,Co,new Map),W(this,To,new Map),W(this,ii,0)}mount(){Iu(this,ii)._++,_(this,ii)===1&&(W(this,ko,ry.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ze).onFocus())})),W(this,Mo,$d.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,ze).onOnline())})))}unmount(){var e,t;Iu(this,ii)._--,_(this,ii)===0&&((e=_(this,ko))==null||e.call(this),W(this,ko,void 0),(t=_(this,Mo))==null||t.call(this),W(this,Mo,void 0))}isFetching(e){return _(this,ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ze).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=_(this,ze).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return _(this,ze).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_(this,ze).get(r.queryHash),s=i==null?void 0:i.state.data,o=x8(t,s);if(o!==void 0)return _(this,ze).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return pt.batch(()=>_(this,ze).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,ze).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,ze);pt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,ze),r={type:"active",...e};return pt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=pt.batch(()=>_(this,ze).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(dn).catch(dn)}invalidateQueries(e={},t={}){return pt.batch(()=>{if(_(this,ze).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=pt.batch(()=>_(this,ze).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(dn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,ze).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dn).catch(dn)}fetchInfiniteQuery(e){return e.behavior=I8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dn).catch(dn)}resumePausedMutations(){return $d.isOnline()?_(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,ze)}getMutationCache(){return _(this,ni)}getDefaultOptions(){return _(this,ri)}setDefaultOptions(e){W(this,ri,e)}setQueryDefaults(e,t){_(this,Co).set(Ul(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Co).values()];let n={};return t.forEach(r=>{Wl(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){_(this,To).set(Ul(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,To).values()];let n={};return t.forEach(r=>{Wl(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ty(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===ny&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,ze).clear(),_(this,ni).clear()}},ze=new WeakMap,ni=new WeakMap,ri=new WeakMap,Co=new WeakMap,To=new WeakMap,ii=new WeakMap,ko=new WeakMap,Mo=new WeakMap,QS),$t,Pe,Zl,Ot,as,_o,Kn,Jl,Oo,Ro,ls,us,si,Ao,cs,$a,eu,$g,tu,jg,nu,Dg,ru,Fg,iu,Ng,su,zg,ou,Vg,Kd,ok,YS,j8=(YS=class extends Cu{constructor(t,n){super();Y(this,cs);Y(this,eu);Y(this,tu);Y(this,nu);Y(this,ru);Y(this,iu);Y(this,su);Y(this,ou);Y(this,Kd);Y(this,$t,void 0);Y(this,Pe,void 0);Y(this,Zl,void 0);Y(this,Ot,void 0);Y(this,as,void 0);Y(this,_o,void 0);Y(this,Kn,void 0);Y(this,Jl,void 0);Y(this,Oo,void 0);Y(this,Ro,void 0);Y(this,ls,void 0);Y(this,us,void 0);Y(this,si,void 0);Y(this,Ao,new Set);this.options=n,W(this,$t,t),W(this,Kn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Pe).addObserver(this),ub(_(this,Pe),this.options)?le(this,cs,$a).call(this):this.updateResult(),le(this,ru,Fg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bg(_(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bg(_(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,le(this,iu,Ng).call(this),le(this,su,zg).call(this),_(this,Pe).removeObserver(this)}setOptions(t,n){const r=this.options,i=_(this,Pe);if(this.options=_(this,$t).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");le(this,ou,Vg).call(this),_(this,Pe).setOptions(this.options),r._defaulted&&!Ag(this.options,r)&&_(this,$t).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Pe),observer:this});const s=this.hasListeners();s&&cb(_(this,Pe),i,this.options,r)&&le(this,cs,$a).call(this),this.updateResult(n),s&&(_(this,Pe)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&le(this,eu,$g).call(this);const o=le(this,tu,jg).call(this);s&&(_(this,Pe)!==i||this.options.enabled!==r.enabled||o!==_(this,si))&&le(this,nu,Dg).call(this,o)}getOptimisticResult(t){const n=_(this,$t).getQueryCache().build(_(this,$t),t),r=this.createResult(n,t);return F8(this,r)&&(W(this,Ot,r),W(this,_o,this.options),W(this,as,_(this,Pe).state)),r}getCurrentResult(){return _(this,Ot)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){_(this,Ao).add(t)}getCurrentQuery(){return _(this,Pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,$t).defaultQueryOptions(t),r=_(this,$t).getQueryCache().build(_(this,$t),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return le(this,cs,$a).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Ot)))}createResult(t,n){var T;const r=_(this,Pe),i=this.options,s=_(this,Ot),o=_(this,as),a=_(this,_o),u=t!==r?t.state:_(this,Zl),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const C=this.hasListeners(),M=!C&&ub(t,n),k=C&&cb(t,r,n,i);(M||k)&&(d={...d,...sk(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:x}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(o==null?void 0:o.data)&&n.select===_(this,Jl))p=_(this,Oo);else try{W(this,Jl,n.select),p=n.select(d.data),p=Lg(s==null?void 0:s.data,p,n),W(this,Oo,p),W(this,Kn,null)}catch(C){W(this,Kn,C)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let C;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))C=s.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((T=_(this,Ro))==null?void 0:T.state.data,_(this,Ro)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),W(this,Kn,null)}catch(M){W(this,Kn,M)}C!==void 0&&(x="success",p=Lg(s==null?void 0:s.data,C,n),f=!0)}_(this,Kn)&&(h=_(this,Kn),p=_(this,Oo),m=Date.now(),x="error");const g=d.fetchStatus==="fetching",y=x==="pending",v=x==="error",w=y&&g,S=p!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:y,isSuccess:x==="success",isError:v,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:v&&S,isStale:sy(t,n),refetch:this.refetch}}updateResult(t){const n=_(this,Ot),r=this.createResult(_(this,Pe),this.options);if(W(this,as,_(this,Pe).state),W(this,_o,this.options),_(this,as).data!==void 0&&W(this,Ro,_(this,Pe)),Ag(r,n))return;W(this,Ot,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!_(this,Ao).size)return!0;const l=new Set(a??_(this,Ao));return this.options.throwOnError&&l.add("error"),Object.keys(_(this,Ot)).some(u=>{const c=u;return _(this,Ot)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),le(this,Kd,ok).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&le(this,ru,Fg).call(this)}},$t=new WeakMap,Pe=new WeakMap,Zl=new WeakMap,Ot=new WeakMap,as=new WeakMap,_o=new WeakMap,Kn=new WeakMap,Jl=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,ls=new WeakMap,us=new WeakMap,si=new WeakMap,Ao=new WeakMap,cs=new WeakSet,$a=function(t){le(this,ou,Vg).call(this);let n=_(this,Pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(dn)),n},eu=new WeakSet,$g=function(){if(le(this,iu,Ng).call(this),Wo||_(this,Ot).isStale||!Rg(this.options.staleTime))return;const n=ek(_(this,Ot).dataUpdatedAt,this.options.staleTime)+1;W(this,ls,setTimeout(()=>{_(this,Ot).isStale||this.updateResult()},n))},tu=new WeakSet,jg=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Pe)):this.options.refetchInterval)??!1},nu=new WeakSet,Dg=function(t){le(this,su,zg).call(this),W(this,si,t),!(Wo||this.options.enabled===!1||!Rg(_(this,si))||_(this,si)===0)&&W(this,us,setInterval(()=>{(this.options.refetchIntervalInBackground||ry.isFocused())&&le(this,cs,$a).call(this)},_(this,si)))},ru=new WeakSet,Fg=function(){le(this,eu,$g).call(this),le(this,nu,Dg).call(this,le(this,tu,jg).call(this))},iu=new WeakSet,Ng=function(){_(this,ls)&&(clearTimeout(_(this,ls)),W(this,ls,void 0))},su=new WeakSet,zg=function(){_(this,us)&&(clearInterval(_(this,us)),W(this,us,void 0))},ou=new WeakSet,Vg=function(){const t=_(this,$t).getQueryCache().build(_(this,$t),this.options);if(t===_(this,Pe))return;const n=_(this,Pe);W(this,Pe,t),W(this,Zl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Kd=new WeakSet,ok=function(t){pt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,Ot))}),_(this,$t).getQueryCache().notify({query:_(this,Pe),type:"observerResultsUpdated"})})},YS);function D8(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ub(e,t){return D8(e,t)||e.state.data!==void 0&&Bg(e,t,t.refetchOnMount)}function Bg(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&sy(e,t)}return!1}function cb(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&sy(e,n)}function sy(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function F8(e,t){return!Ag(e.getCurrentResult(),t)}var ak=b.createContext(void 0),N8=e=>{const t=b.useContext(ak);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},z8=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(ak.Provider,{value:e,children:t})),lk=b.createContext(!1),V8=()=>b.useContext(lk);lk.Provider;function B8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var U8=b.createContext(B8()),W8=()=>b.useContext(U8);function H8(e,t){return typeof e=="function"?e(...t):!!e}var G8=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},q8=e=>{b.useEffect(()=>{e.clearReset()},[e])},K8=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&H8(n,[e.error,r]),Q8=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Y8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,X8=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Z8(e,t,n){const r=N8(n),i=V8(),s=W8(),o=r.defaultQueryOptions(e);o._optimisticResults=i?"isRestoring":"optimistic",Q8(o),G8(o,s),q8(s);const[a]=b.useState(()=>new t(r,o)),l=a.getOptimisticResult(o);if(b.useSyncExternalStore(b.useCallback(u=>{const c=i?()=>{}:a.subscribe(pt.batchCalls(u));return a.updateResult(),c},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),b.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),Y8(o,l))throw X8(o,a,s);if(K8({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function uk(e,t){return Z8(e,j8,t)}async function J8(){try{return(await tp.get("/projects")).data}catch{return[{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],cover:null,semester:"Fall 2023",__v:0},{_id:"66292f8768dc79f8d04536b9",name:"Pattern of Life Application",organization:"Praxis Engineering",description:`The Fall 2023 GDIT project was a "pattern of life" understanding system. This Android application collects key data metrics from users including location, application usage, and message data and coallates it to form an understanding of a user's pattern of life.`,members:[{memberInfo:{_id:"66292f8768dc79f8d0453670",firstName:"Aidan",lastName:"Melvin",profileUrl:"https://gravatar.com/avatar/5e99dcb1de10b83cd0e90620d77b046c13ff633b688f72dbb5a3c22202b2f1d7"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453695",firstName:"Mohammad",lastName:"Abd-Elmoniem",profileUrl:"https://gravatar.com/avatar/767766ff1d10a3d06a4e222b42a3ae7ff16a11bb83e25385202089a77efab30e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453697",firstName:"Nishkal",lastName:"Hundia",profileUrl:"https://gravatar.com/avatar/bb1facd1c2182bdc9f840b9b4c396e67ea94ad2395f76a4fac43a7d43b6a437e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453699",firstName:"Ojas",lastName:"Jagtap",profileUrl:"https://gravatar.com/avatar/68e78c20b977b3ff0f44d1e1f9f5a0ec6be745620062d6709fcbf8a73ff773df"},role:"Full-stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369b",firstName:"Josiah",lastName:"Lim",profileUrl:"https://gravatar.com/avatar/b277c291ff3c46b46124f62ae5f8d9fc5cd052300814f5bdbd89580759bcc027"},role:"ML Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369d",firstName:"Om",lastName:"Duggineni",profileUrl:"https://gravatar.com/avatar/00b197895f49ed34677306f551bddceaaa7c65756a238e2aee72b6ef95fd8525"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369f",firstName:"Dev",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/fb0bc07ce80323d4513cf2b60118de6dca5dd70a9edf08d12aa2b3c4451733ab"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a1",firstName:"Ananth",lastName:"Sankaralingam",profileUrl:"https://gravatar.com/avatar/ef0cd3559a6c30fc53bebd50c1533136de0d10c69b6b7a5df1fbe607b6b19e7d"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a3",firstName:"Advik",lastName:"Sachdeva",profileUrl:"https://gravatar.com/avatar/3b4653ea5eec167a3498fce281baf6ad961c465805b7758b0d77a090a3b666eb"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a5",firstName:"Rahul",lastName:"Ramasubramanian",profileUrl:"https://gravatar.com/avatar/9b42bb4f4bdb330a258afce57cee5b14b67de14c5ebbcc86814fcd270fff669c"},role:"Full-Stack Engineer"}],cover:null,semester:"Fall 2023",__v:0}]}}async function e9(e){try{return(await tp.get(`/projects/${e}`)).data}catch{return{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],demo:"https://www.youtube.com/embed/UFwHEMrSO-M?si=NmlpAyAtZwOLEPiE",cover:null,semester:"Fall 2023",__v:0}}}const ck={getAll:J8,getById:e9};var ja={},dk={},cp={},Js=de&&de.__assign||function(){return Js=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(!((c=h==null?void 0:h.in)===null||c===void 0)&&c.style)&&(h.in.style.transform=function(v){return m.in.map(function(w){return db(w,v)}).join(" ")}),m.out.length>0&&(!((d=h==null?void 0:h.out)===null||d===void 0)&&d.style)&&(h.out.style.transform=function(v){return m.out.map(function(w){return db(w,v)}).join(" ")}),h};cp.batch=t9;var Ei={},Ts={},oy={},Ug=de&&de.__assign||function(){return Ug=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")){if(t==="height")return fb&&pb?window.screen.height-80:window.innerHeight;if(t==="width")return fb&&pb?window.screen.width:window.innerWidth}}});ay.default=r9;var dp={};Object.defineProperty(dp,"__esModule",{value:!0});dp.SimpleInterpolation=void 0;var i9=function(e,t,n){return e*(1-n)+t*n};dp.SimpleInterpolation=i9;(function(e){var t=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.computeStyle=e.SimpleInterpolation=e.environment=void 0;var n=t(oy);e.computeStyle=n.default;var r=t(ay);e.environment=r.default;var i=dp;Object.defineProperty(e,"SimpleInterpolation",{enumerable:!0,get:function(){return i.SimpleInterpolation}})})(Ts);Object.defineProperty(Ei,"__esModule",{value:!0});Ei.FadeOut=Ei.FadeIn=Ei.Fade=void 0;var jd=Ts,s9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,jd.SimpleInterpolation)(e,t,n)}}},out:{style:{opacity:function(n){return(0,jd.SimpleInterpolation)(t,e,n)}}}}};Ei.Fade=s9;var o9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,jd.SimpleInterpolation)(e,t,n)}}}}};Ei.FadeIn=o9;var a9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{out:{style:{opacity:function(n){return(0,jd.SimpleInterpolation)(e,t,n)}}}}};Ei.FadeOut=a9;var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MoveOut=Pi.MoveIn=Pi.Move=void 0;var fi=Ts,l9=function(e,t,n,r){return e===void 0&&(e=0),t===void 0&&(t=100),n===void 0&&(n=null),r===void 0&&(r=-100),{in:{style:{transform:function(i){return"translate(".concat((0,fi.SimpleInterpolation)(e,0,i),"px, ").concat((0,fi.SimpleInterpolation)(t,0,i),"px)")}}},out:{style:{transform:function(i){return"translate(".concat((0,fi.SimpleInterpolation)(0,n||e,i),"px, ").concat((0,fi.SimpleInterpolation)(0,r||t,i),"px)")}}}}};Pi.Move=l9;var u9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=100),{in:{style:{transform:function(n){return"translate(".concat((0,fi.SimpleInterpolation)(e,0,n),"px, ").concat((0,fi.SimpleInterpolation)(t,0,n),"px)")}}}}};Pi.MoveIn=u9;var c9=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=-100),{out:{style:{transform:function(n){return"translate(".concat((0,fi.SimpleInterpolation)(0,e,n),"px, ").concat((0,fi.SimpleInterpolation)(0,t,n),"px)")}}}}};Pi.MoveOut=c9;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.StickyOut=Ci.StickyIn=Ci.Sticky=void 0;var xn=Ts,d9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}}}};Ci.Sticky=d9;var f9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*xn.environment.width/100,"px")},top:function(){return"".concat(t*xn.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"absolute"}}}};Ci.StickyIn=f9;var p9=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:"".concat(e*xn.environment.width/100,"px"),top:"".concat(t*xn.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"absolute"}},out:{style:{left:"".concat(e*xn.environment.width/100,"px"),top:"".concat(t*xn.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"fixed"}}}};Ci.StickyOut=p9;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ZoomOut=Ti.ZoomIn=Ti.Zoom=void 0;var Dd=Ts,h9=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Dd.SimpleInterpolation)(e,t,n),")")}}},out:{style:{transform:function(n){return"scale(".concat((0,Dd.SimpleInterpolation)(t,e,n),")")}}}}};Ti.Zoom=h9;var m9=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Dd.SimpleInterpolation)(e,t,n),")")}}}}};Ti.ZoomIn=m9;var g9=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=10),{out:{style:{transform:function(n){return"scale(".concat((0,Dd.SimpleInterpolation)(e,t,n),")")}}}}};Ti.ZoomOut=g9;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomOut=e.ZoomIn=e.Zoom=e.StickyOut=e.StickyIn=e.Sticky=e.MoveOut=e.MoveIn=e.Move=e.FadeOut=e.FadeIn=e.Fade=e.batch=void 0;var t=cp;Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return t.batch}});var n=Ei;Object.defineProperty(e,"Fade",{enumerable:!0,get:function(){return n.Fade}}),Object.defineProperty(e,"FadeIn",{enumerable:!0,get:function(){return n.FadeIn}}),Object.defineProperty(e,"FadeOut",{enumerable:!0,get:function(){return n.FadeOut}});var r=Pi;Object.defineProperty(e,"Move",{enumerable:!0,get:function(){return r.Move}}),Object.defineProperty(e,"MoveIn",{enumerable:!0,get:function(){return r.MoveIn}}),Object.defineProperty(e,"MoveOut",{enumerable:!0,get:function(){return r.MoveOut}});var i=Ci;Object.defineProperty(e,"Sticky",{enumerable:!0,get:function(){return i.Sticky}}),Object.defineProperty(e,"StickyIn",{enumerable:!0,get:function(){return i.StickyIn}}),Object.defineProperty(e,"StickyOut",{enumerable:!0,get:function(){return i.StickyOut}});var s=Ti;Object.defineProperty(e,"Zoom",{enumerable:!0,get:function(){return s.Zoom}}),Object.defineProperty(e,"ZoomIn",{enumerable:!0,get:function(){return s.ZoomIn}}),Object.defineProperty(e,"ZoomOut",{enumerable:!0,get:function(){return s.ZoomOut}})})(dk);var ly={},fp={},pp={},Ri={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});var v9={currentY:0,viewportHeight:0,totalPage:0,totalHeight:0,totalProgress:0,realPage:0,currentPage:0,currentProgress:0};uy.default=v9;var cy={};Object.defineProperty(cy,"__esModule",{value:!0});var y9={page:0};cy.default=y9;var fk=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.initialScrollPage=Ri.initialScrollData=void 0;var x9=fk(uy);Ri.initialScrollData=x9.default;var w9=fk(cy);Ri.initialScrollPage=w9.default;Object.defineProperty(pp,"__esModule",{value:!0});pp.ScrollDataContext=void 0;var b9=b,S9=Ri;pp.ScrollDataContext=(0,b9.createContext)(S9.initialScrollData);var hp={};Object.defineProperty(hp,"__esModule",{value:!0});hp.ScrollPageContext=void 0;var E9=b,P9=Ri;hp.ScrollPageContext=(0,E9.createContext)(P9.initialScrollPage);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollPageContext=e.ScrollDataContext=void 0;var t=pp;Object.defineProperty(e,"ScrollDataContext",{enumerable:!0,get:function(){return t.ScrollDataContext}});var n=hp;Object.defineProperty(e,"ScrollPageContext",{enumerable:!0,get:function(){return n.ScrollPageContext}})})(fp);var eo=de&&de.__assign||function(){return eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{t.current=new IntersectionObserver(([i])=>r(i.isIntersecting))},[]),b.useEffect(()=>{if(t.current)return t.current.observe(e.current),()=>{t.current&&t.current.disconnect()}},[e]),n}const V9="modulepreload",B9=function(e){return"/"+e},vb={},Ee=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=B9(l),l in vb)return;vb[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const h=s[p];if(h.href===l&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":V9,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},$h="generated",KH="pointerdown",QH="pointerup",YH="pointerleave",XH="pointerout",ZH="pointermove",JH="touchstart",eG="touchend",tG="touchmove",nG="touchcancel",rG="resize",iG="visibilitychange",py="tsParticles - Error",to=100,yb=.5,pk=1e3;function sG(e){return typeof e=="boolean"}function Hl(e){return typeof e=="string"}function sa(e){return typeof e=="number"}function oc(e){return typeof e=="object"&&e!==null}function ks(e){return Array.isArray(e)}const Wn={x:0,y:0,z:0},xb=2,U9=1;class On{constructor(t,n,r){if(this._updateFromAngle=(i,s)=>{this.x=Math.cos(i)*s,this.y=Math.sin(i)*s},!sa(t)&&t){this.x=t.x,this.y=t.y;const i=t;this.z=i.z?i.z:Wn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=r??Wn.z;else throw new Error(`${py} Vector3d not initialized correctly`)}static get origin(){return On.create(Wn.x,Wn.y,Wn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return On.create(t.x,t.y,t.z)}static create(t,n,r){return new On(t,n,r)}add(t){return On.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return On.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return On.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**xb+this.y**xb}mult(t){return On.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(U9/t)}rotate(t){return On.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Wn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Wn.z}sub(t){return On.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class ps extends On{constructor(t,n){super(t,n,Wn.z)}static get origin(){return ps.create(Wn.x,Wn.y)}static clone(t){return ps.create(t.x,t.y)}static create(t,n){return new ps(t,n)}}let W9=Math.random;const Wg=new Map,H9=2,G9=Math.PI*H9;function oG(e,t){Wg.get(e)||Wg.set(e,t)}function aG(e){return Wg.get(e)??(t=>t)}function sr(){return hy(W9(),0,1-Number.EPSILON)}function hy(e,t,n){return Math.min(Math.max(e,t),n)}function jh(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function yo(e){const t=gp(e),n=0;let r=mp(e);return t===r&&(r=n),sr()*(t-r)+r}function st(e){return sa(e)?e:yo(e)}function mp(e){return sa(e)?e:e.min}function gp(e){return sa(e)?e:e.max}function tl(e,t){if(e===t||t===void 0&&sa(e))return e;const n=mp(e),r=gp(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(r,t)}:tl(n,r)}function hk(e,t){const n=e.x-t.x,r=e.y-t.y,i=2;return{dx:n,dy:r,distance:Math.sqrt(n**i+r**i)}}function lG(e,t){return hk(e,t).distance}function q9(e){return e*Math.PI/180}function uG(e,t,n){if(sa(e))return q9(e);const r=0,i=.5,s=.25,o=i+s;switch(e){case"top":return-Math.PI*i;case"top-right":return-Math.PI*s;case"right":return r;case"bottom-right":return Math.PI*s;case"bottom":return Math.PI*i;case"bottom-left":return Math.PI*o;case"left":return Math.PI;case"top-left":return-Math.PI*o;case"inside":return Math.atan2(n.y-t.y,n.x-t.x);case"outside":return Math.atan2(t.y-n.y,t.x-n.x);default:return sr()*G9}}function cG(e){const t=ps.origin;return t.length=1,t.angle=e,t}function wb(e,t,n,r){return ps.create(e.x*(n-r)/(n+r)+t.x*2*r/(n+r),e.y)}function dG(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??sr()*e.size.width,y:((n=e.position)==null?void 0:n.y)??sr()*e.size.height}}function mk(e){return e?e.endsWith("%")?parseFloat(e)/to:parseFloat(e):1}const K9={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Q9(){return K9}function bb(e){const t={bounced:!1},{pSide:n,pOtherSide:r,rectSide:i,rectOtherSide:s,velocity:o,factor:a}=e,l=.5,u=0;return r.mins.max||r.maxs.max||(n.max>=i.min&&n.max<=(i.max+i.min)*l&&o>u||n.min<=i.max&&n.min>(i.max+i.min)*l&&oe.matches(r));return ks(n)?n.some(r=>r):n}function vp(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function X9(){return!vp()&&typeof matchMedia<"u"}function fG(e){if(X9())return matchMedia(e)}function pG(e){if(!(vp()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function hG(e){if(!(vp()||typeof MutationObserver>"u"))return new MutationObserver(e)}function gk(e,t){return e===t||ks(t)&&t.indexOf(e)>-1}async function mG(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function Z9(e){return Math.floor(sr()*e.length)}function my(e,t,n=!0){return e[t!==void 0&&n?t%e.length:Z9(e)]}function gG(e,t,n,r,i){return J9(vk(e,r??0),t,n,i)}function J9(e,t,n,r){let i=!0;return(!r||r==="bottom")&&(i=e.topn.x),i&&(!r||r==="right")&&(i=e.leftn.y),i}function vk(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function Sb(e,...t){for(const n of t){if(n==null)continue;if(!oc(n)){e=n;continue}const r=Array.isArray(n);r&&(oc(e)||!e||!Array.isArray(e))?e=[]:!r&&(oc(e)||!e||Array.isArray(e))&&(e={});for(const i in n){if(i==="__proto__")continue;const s=n,o=s[i],a=e;a[i]=oc(o)&&Array.isArray(o)?o.map(l=>Sb(a[i],l)):Sb(a[i],o)}}return e}function vG(e,t){return!!xk(t,n=>n.enable&&gk(e,n.mode))}function yG(e,t,n){Gl(t,r=>{const i=r.mode;r.enable&&gk(e,i)&&eV(r,n)})}function eV(e,t){const n=e.selectors;Gl(n,r=>{t(r,e)})}function xG(e,t){if(!(!t||!e))return xk(e,n=>Y9(t,n.selectors))}function wG(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:ps.create(st(e.options.bounce.horizontal.value),st(e.options.bounce.vertical.value))}}function bG(e,t){const{x:n,y:r}=e.velocity.sub(t.velocity),[i,s]=[e.position,t.position],{dx:o,dy:a}=hk(s,i);if(n*o+r*a<0)return;const u=-Math.atan2(a,o),c=e.mass,d=t.mass,f=e.velocity.rotate(u),p=t.velocity.rotate(u),h=wb(f,p,c,d),m=wb(p,f,c,d),x=h.rotate(-u),g=m.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function SG(e,t){const n=e.getPosition(),r=e.getRadius(),i=vk(n,r),s=e.options.bounce,o=bb({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:st(s.horizontal.value)});o.bounced&&(o.velocity!==void 0&&(e.velocity.x=o.velocity),o.position!==void 0&&(e.position.x=o.position));const a=bb({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:st(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function Gl(e,t){return ks(e)?e.map((r,i)=>t(r,i)):t(e,0)}function yk(e,t,n){return ks(e)?my(e,t,n):e}function xk(e,t){return ks(e)?e.find((r,i)=>t(r,i)):t(e,0)?e:void 0}function EG(e,t){const n=e.value,r=e.animation,i={delayTime:st(r.delay)*pk,enable:r.enable,value:st(e.value)*t,max:gp(n)*t,min:mp(n)*t,loops:0,maxLoops:st(r.count),time:0},s=1;if(r.enable){switch(i.decay=s-st(r.decay),r.mode){case"increase":i.status="increasing";break;case"decrease":i.status="decreasing";break;case"random":i.status=sr()>=yb?"increasing":"decreasing";break}const o=r.mode==="auto";switch(r.startValue){case"min":i.value=i.min,o&&(i.status="increasing");break;case"max":i.value=i.max,o&&(i.status="decreasing");break;case"random":default:i.value=yo(i),o&&(i.status=sr()>=yb?"increasing":"decreasing");break}}return i.initialValue=i.value,i}function tV(e,t){if(!(e.mode==="percent")){const{mode:i,...s}=e;return s}return"x"in e?{x:e.x/to*t.width,y:e.y/to*t.height}:{width:e.width/to*t.width,height:e.height/to*t.height}}function PG(e,t){return tV(e,t)}function nV(e,t,n,r,i){switch(t){case"max":n>=i&&e.destroy();break;case"min":n<=r&&e.destroy();break}}function CG(e,t,n,r,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*i.factor,d=t.min,f=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case"increasing":t.value>=f?(n?t.status="decreasing":t.value-=f,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case"decreasing":t.value<=d?(n?t.status="increasing":t.value+=f,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),nV(e,r,t.value,d,f),e.destroyed||(t.value=hy(t.value,d,f))}}class rV{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let r=this._listeners.get(t);r||(r=[],this._listeners.set(t,r)),r.push(n)}dispatchEvent(t,n){const r=this._listeners.get(t);r==null||r.forEach(i=>i(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const r=this._listeners.get(t);if(!r)return;const i=r.length,s=r.indexOf(n);if(s<0)return;const a=1;i===a?this._listeners.delete(t):r.splice(s,a)}}async function Dh(e,t,n,r=!1){let i=t.get(e);return(!i||r)&&(i=await Promise.all([...n.values()].map(s=>s(e))),t.set(e,i)),i}async function iV(e){const t=yk(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(Q9().error(`${py} ${n.status} while retrieving config file`),e.fallback)}class sV{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new rV,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,r]of this._configs)t[n]=r;return t}get version(){return"3.3.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:n,config:t}})}async addEffect(t,n,r=!0){Gl(t,i=>{this.getEffectDrawer(i)||this.effectDrawers.set(i,n)}),await this.refresh(r)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,r=!0){this._initializers.interactors.set(t,n),await this.refresh(r)}async addMover(t,n,r=!0){this._initializers.movers.set(t,n),await this.refresh(r)}async addParticleUpdater(t,n,r=!0){this._initializers.updaters.set(t,n),await this.refresh(r)}async addPathGenerator(t,n,r=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(r)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,r=!1,i=!0){(r||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(i)}async addShape(t,n,r=!0){Gl(t,i=>{this.getShapeDrawer(i)||this.shapeDrawers.set(i,n)}),await this.refresh(r)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this._domArray}domItem(t){const n=this.dom(),r=n[t];if(!r||r.destroyed){n.splice(t,1);return}return r}async getAvailablePlugins(t){const n=new Map;for(const r of this.plugins)r.needsPlugin(t.actualOptions)&&n.set(r.id,await r.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return await Dh(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return await Dh(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return await Dh(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}async load(t){var m;const r=t.id??((m=t.element)==null?void 0:m.id)??`tsparticles${Math.floor(sr()*1e4)}`,{index:i,url:s}=t,o=s?await iV({fallback:t.options,url:s,index:i}):t.options;let a=t.element??document.getElementById(r);a||(a=document.createElement("div"),a.id=r,document.body.append(a));const l=yk(o,i),u=this.dom(),c=u.findIndex(x=>x.id.description===r),d=0;if(c>=d){const x=this.domItem(c);x&&!x.destroyed&&(x.destroy(),u.splice(c,1))}let f;if(a.tagName.toLowerCase()==="canvas")f=a,f.dataset[$h]="false";else{const x=a.getElementsByTagName("canvas");x.length?(f=x[0],f.dataset[$h]="false"):(f=document.createElement("canvas"),f.dataset[$h]="true",a.appendChild(f))}f.style.width||(f.style.width="100%"),f.style.height||(f.style.height="100%");const{Container:p}=await Ee(()=>import("./Container-oz32eahT.js"),__vite__mapDeps([0,1,2,3,4])),h=new p(this,r,l);return c>=d?u.splice(c,0,h):u.push(h),h.canvas.loadCanvas(f),await h.start(),h}loadOptions(t,n){for(const r of this.plugins)r.loadOptions(t,n)}loadParticlesOptions(t,n,...r){var s;const i=this.updaters.get(t);if(i)for(const o of i)(s=o.loadOptions)==null||s.call(o,n,...r)}async refresh(t=!0){t&&await Promise.all(this.dom().map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const n=this.dom();if(!n.length)throw new Error(`${py} can only set click handlers after calling tsParticles.load()`);for(const r of n)r.addClickHandler(t)}}const Nd="random",Lc="mid",yp=new Map;function Eb(e){yp.set(e.key,e)}function oV(e){for(const[,l]of yp)if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,d,f)=>u+u+c+c+d+d+(f!==void 0?f+f:"")),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=r.exec(n),s=16;return i?{a:i[4]!==void 0?parseInt(i[4],s)/255:1,b:parseInt(i[3],s),g:parseInt(i[2],s),r:parseInt(i[1],s)}:void 0}function zd(e,t,n=!0){if(!e)return;const r=Hl(e)?{value:e}:e;if(Hl(r.value))return wk(r.value,t,n);if(ks(r.value))return zd({value:my(r.value,t,n)});for(const[,i]of yp){const s=i.handleRangeColor(r);if(s)return s}}function wk(e,t,n=!0){if(!e)return;const r=Hl(e)?{value:e}:e;if(Hl(r.value))return r.value===Nd?bk():lV(r.value);if(ks(r.value))return wk({value:my(r.value,t,n)});for(const[,i]of yp){const s=i.handleColor(r);if(s)return s}}function TG(e,t,n=!0){const r=zd(e,t,n);return r?aV(r):void 0}function aV(e){const c=e.r/255,d=e.g/255,f=e.b/255,p=Math.max(c,d,f),h=Math.min(c,d,f),m={h:0,l:(p+h)*.5,s:0};return p!==h&&(m.s=m.l<.5?(p-h)/(p+h):(p-h)/(2-p-h),m.h=c===p?(d-f)/(p-h):m.h=d===p?2+(f-c)/(p-h):2*2+(c-d)/(p-h)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function lV(e){return oV(e)}function Ho(e){const o=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=o/360,c=a/100,d=l/100,f=255,p=3;if(a===0){const M=Math.round(d*f);return{r:M,g:M,b:M}}const h=.5,m=2,x=(M,k,R)=>{if(R<0&&R++,R>1&&R--,R*6<1)return M+(k-M)*6*R;if(R*m<1)return k;if(R*p<1*m){const B=m/p;return M+(k-M)*(B-R)*6}return M},g=1,y=d0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?yo(e.offset):0,d=(e.velocity??0)*r.factor+c*3.6,f=e.decay??1,p=gp(t),h=mp(t);!n||e.status==="increasing"?(e.value+=d,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status="decreasing":e.value-=p)):(e.value-=d,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing")),e.velocity&&f!==1&&(e.velocity*=f),e.value=hy(e.value,h,p)}function IG(e,t){if(!e)return;const{h:n,s:r,l:i}=e,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Nh(n,s.h,!1,t),r&&Nh(r,s.s,!0,t),i&&Nh(i,s.l,!0,t)}class dV{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.s!==void 0&&r.l!==void 0)return Ho(r)}handleRangeColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.l!==void 0)return Ho({h:st(r.h),l:st(r.l),s:st(r.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=4,s=1,o=10;return r?uV({a:r.length>i?mk(r[5]):s,h:parseInt(r[1],o),l:parseInt(r[3],o),s:parseInt(r[2],o)}):void 0}}class fV{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return r}handleRangeColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return{r:st(r.r),g:st(r.g),b:st(r.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=10;return r?{a:r.length>4?mk(r[5]):1,b:parseInt(r[3],i),g:parseInt(r[2],i),r:parseInt(r[1],i)}:void 0}}function pV(){const e=new fV,t=new dV;Eb(e),Eb(t);const n=new sV;return n.init(),n}const gy=pV();vp()||(window.tsParticles=gy);const hV=e=>{const t=e.id??"tsparticles";return b.useEffect(()=>{let n;return gy.load({id:t,url:e.url,options:e.options}).then(r=>{var i;n=r,(i=e.particlesLoaded)==null||i.call(e,r)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),E.jsx("div",{id:t,className:e.className})};async function mV(e){await e(gy)}async function gV(e,t=!0){const{loadParallaxMover:n}=await Ee(()=>import("./index-DsefkI69.js"),[]),{loadExternalAttractInteraction:r}=await Ee(()=>import("./index-trSE1DaG.js"),[]),{loadExternalBounceInteraction:i}=await Ee(()=>import("./index-D2MXMviT.js"),[]),{loadExternalBubbleInteraction:s}=await Ee(()=>import("./index-Cs918U9H.js"),__vite__mapDeps([5,2])),{loadExternalConnectInteraction:o}=await Ee(()=>import("./index-CDIuD2sl.js"),[]),{loadExternalGrabInteraction:a}=await Ee(()=>import("./index-DGh6NlmN.js"),__vite__mapDeps([6,2])),{loadExternalPauseInteraction:l}=await Ee(()=>import("./index-CD6hWZu-.js"),[]),{loadExternalPushInteraction:u}=await Ee(()=>import("./index-YWtmZL0O.js"),[]),{loadExternalRemoveInteraction:c}=await Ee(()=>import("./index-Bk3F-R7Q.js"),[]),{loadExternalRepulseInteraction:d}=await Ee(()=>import("./index-Bzro8MKl.js"),[]),{loadExternalSlowInteraction:f}=await Ee(()=>import("./index-CCm-dUC4.js"),[]),{loadParticlesAttractInteraction:p}=await Ee(()=>import("./index-jmjYJKeY.js"),[]),{loadParticlesCollisionsInteraction:h}=await Ee(()=>import("./index-B165eDFn.js"),[]),{loadParticlesLinksInteraction:m}=await Ee(()=>import("./index-DrocrkVf.js"),__vite__mapDeps([7,2])),{loadEasingQuadPlugin:x}=await Ee(()=>import("./index-B0PQzHkc.js"),[]),{loadEmojiShape:g}=await Ee(()=>import("./index-CcTVH4mc.js").then(R=>R.i),[]),{loadImageShape:y}=await Ee(()=>import("./index-B3nXYzwg.js").then(R=>R.i),[]),{loadLineShape:v}=await Ee(()=>import("./index-Dzzo1m2O.js"),[]),{loadPolygonShape:w}=await Ee(()=>import("./index-DQ32AwOr.js"),[]),{loadSquareShape:S}=await Ee(()=>import("./index-ZVHEU4I3.js"),[]),{loadStarShape:P}=await Ee(()=>import("./index-D6eGQv_3.js"),[]),{loadLifeUpdater:T}=await Ee(()=>import("./index-xiEMklwn.js"),[]),{loadRotateUpdater:C}=await Ee(()=>import("./index-CBPcvhNo.js"),[]),{loadStrokeColorUpdater:M}=await Ee(()=>import("./index-60u0t76u.js"),[]),{loadBasic:k}=await Ee(()=>import("./index-1EK2DznA.js"),[]);await n(e,!1),await r(e,!1),await i(e,!1),await s(e,!1),await o(e,!1),await a(e,!1),await l(e,!1),await u(e,!1),await c(e,!1),await d(e,!1),await f(e,!1),await p(e,!1),await h(e,!1),await m(e,!1),await x(),await g(e,!1),await y(e,!1),await v(e,!1),await w(e,!1),await S(e,!1),await P(e,!1),await T(e,!1),await C(e,!1),await M(e,!1),await k(e,t)}const vy="-";function vV(e){const t=xV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(vy);return a[0]===""&&a.length!==1&&a.shift(),Sk(a,t)||yV(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function Sk(e,t){var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Sk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(vy);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId}const Pb=/^\[(.+)\]$/;function yV(e){if(Pb.test(e)){const t=Pb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function xV(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return bV(Object.entries(e.classGroups),n).forEach(([s,o])=>{Hg(o,r,s,t)}),r}function Hg(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Cb(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(wV(i)){Hg(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Hg(o,Cb(t,s),n,r)})})}function Cb(e,t){let n=e;return t.split(vy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function wV(e){return e.isThemeGetter}function bV(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function SV(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const Ek="!";function EV(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(o){const a=[];let l=0,u=0,c;for(let m=0;mu?c-u:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}}}function PV(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function CV(e){return{cache:SV(e.cacheSize),splitModifiers:EV(e),...vV(e)}}const TV=/\s+/;function kV(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(TV).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(o);let d=r(c?u.substring(0,c):u),f=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:o};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const p=PV(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Ek:p,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return s.has(c)?!1:(s.add(c),i(l,u).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function MV(){let e=0,t,n,r="";for(;ed(c),e());return n=CV(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=kV(l,n);return i(l,c),c}return function(){return s(MV.apply(null,arguments))}}function Te(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Ck=/^\[(?:([a-z-]+):)?(.+)\]$/i,OV=/^\d+\/\d+$/,RV=new Set(["px","full","screen"]),AV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,IV=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,LV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$V=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ar(e){return ts(e)||RV.has(e)||OV.test(e)}function Ur(e){return oa(e,"length",WV)}function ts(e){return!!e&&!Number.isNaN(Number(e))}function ac(e){return oa(e,"number",ts)}function Pa(e){return!!e&&Number.isInteger(Number(e))}function DV(e){return e.endsWith("%")&&ts(e.slice(0,-1))}function te(e){return Ck.test(e)}function Wr(e){return AV.test(e)}const FV=new Set(["length","size","percentage"]);function NV(e){return oa(e,FV,Tk)}function zV(e){return oa(e,"position",Tk)}const VV=new Set(["image","url"]);function BV(e){return oa(e,VV,GV)}function UV(e){return oa(e,"",HV)}function Ca(){return!0}function oa(e,t,n){const r=Ck.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function WV(e){return IV.test(e)&&!LV.test(e)}function Tk(){return!1}function HV(e){return $V.test(e)}function GV(e){return jV.test(e)}function qV(){const e=Te("colors"),t=Te("spacing"),n=Te("blur"),r=Te("brightness"),i=Te("borderColor"),s=Te("borderRadius"),o=Te("borderSpacing"),a=Te("borderWidth"),l=Te("contrast"),u=Te("grayscale"),c=Te("hueRotate"),d=Te("invert"),f=Te("gap"),p=Te("gradientColorStops"),h=Te("gradientColorStopPositions"),m=Te("inset"),x=Te("margin"),g=Te("opacity"),y=Te("padding"),v=Te("saturate"),w=Te("scale"),S=Te("sepia"),P=Te("skew"),T=Te("space"),C=Te("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",te,t],I=()=>[te,t],L=()=>["",ar,Ur],D=()=>["auto",ts,te],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",te],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[ts,ac],ne=()=>[ts,te];return{cacheSize:500,separator:":",theme:{colors:[Ca],spacing:[ar,Ur],blur:["none","",Wr,te],brightness:q(),borderColor:[e],borderRadius:["none","","full",Wr,te],borderSpacing:I(),borderWidth:L(),contrast:q(),grayscale:$(),hueRotate:ne(),invert:$(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[DV,Ur],inset:R(),margin:R(),opacity:q(),padding:I(),saturate:q(),scale:q(),sepia:$(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Wr]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),te]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pa,te]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Pa,te]}],"grid-cols":[{"grid-cols":[Ca]}],"col-start-end":[{col:["auto",{span:["full",Pa,te]},te]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Ca]}],"row-start-end":[{row:["auto",{span:[Pa,te]},te]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Wr]},Wr]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wr,Ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ac]}],"font-family":[{font:[Ca]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",ts,ac]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ar,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ar,Ur]}],"underline-offset":[{"underline-offset":["auto",ar,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),zV]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",NV]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},BV]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[ar,te]}],"outline-w":[{outline:[ar,Ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ar,Ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wr,UV]}],"shadow-color":[{shadow:[Ca]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wr,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pa,te]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ar,Ur,ac]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const KV=_V(qV);function Tb(...e){return KV(re(e))}const kk=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xp=b.createContext({}),yy=b.createContext(null),xy=typeof document<"u",wy=xy?b.useLayoutEffect:b.useEffect,Mk=b.createContext({strict:!1}),by=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QV="framerAppearId",_k="data-"+by(QV),YV={skipAnimations:!1,useManualTiming:!1};class kb{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function XV(e){let t=new kb,n=new kb,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,f=d?t:n;return u&&o.add(l),f.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=XV(()=>n=!0),d),{}),o=d=>{s[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,ZV),1),i.timestamp=d,i.isProcessing=!0,lc.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:lc.reduce((d,f)=>{const p=s[f];return d[f]=(h,m=!1,x=!1)=>(n||l(),p.schedule(h,m,x)),d},{}),cancel:d=>lc.forEach(f=>s[f].cancel(d)),state:i,steps:s}}const{schedule:Sy,cancel:LG}=Ok(queueMicrotask,!1);function JV(e,t,n,r){const{visualElement:i}=b.useContext(xp),s=b.useContext(Mk),o=b.useContext(yy),a=b.useContext(kk).reducedMotion,l=b.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;b.useInsertionEffect(()=>{u&&u.update(n,o)});const c=b.useRef(!!(n[_k]&&!window.HandoffComplete));return wy(()=>{u&&(Sy.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),b.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function no(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e7(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):no(n)&&(n.current=r))},[t])}function ql(e){return typeof e=="string"||Array.isArray(e)}function wp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ey=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Py=["initial",...Ey];function bp(e){return wp(e.animate)||Py.some(t=>ql(e[t]))}function Rk(e){return!!(bp(e)||e.variants)}function t7(e,t){if(bp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ql(n)?n:void 0,animate:ql(r)?r:void 0}}return e.inherit!==!1?t:{}}function n7(e){const{initial:t,animate:n}=t7(e,b.useContext(xp));return b.useMemo(()=>({initial:t,animate:n}),[Mb(t),Mb(n)])}function Mb(e){return Array.isArray(e)?e.join(" "):e}const _b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kl={};for(const e in _b)Kl[e]={isEnabled:t=>_b[e].some(n=>!!t[n])};function r7(e){for(const t in e)Kl[t]={...Kl[t],...e[t]}}const Ak=b.createContext({}),Ik=b.createContext({}),i7=Symbol.for("motionComponentSymbol");function s7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&r7(e);function s(a,l){let u;const c={...b.useContext(kk),...a,layoutId:o7(a)},{isStatic:d}=c,f=n7(a),p=r(a,d);if(!d&&xy){f.visualElement=JV(i,p,c,t);const h=b.useContext(Ik),m=b.useContext(Mk).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,m,e,h))}return E.jsxs(xp.Provider,{value:f,children:[u&&f.visualElement?E.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,e7(p,f.visualElement,l),p,d,f.visualElement)]})}const o=b.forwardRef(s);return o[i7]=i,o}function o7({layoutId:e}){const t=b.useContext(Ak).id;return t&&e!==void 0?t+"-"+e:e}function a7(e){function t(r,i={}){return s7(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const l7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cy(e){return typeof e!="string"||e.includes("-")?!1:!!(l7.indexOf(e)>-1||/[A-Z]/u.test(e))}const Vd={};function u7(e){Object.assign(Vd,e)}const Tu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ms=new Set(Tu);function Lk(e,{layout:t,layoutId:n}){return Ms.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vd[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),c7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},d7=Tu.length;function f7(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),jk=$k("--"),p7=$k("var(--"),Ty=e=>p7(e)?h7.test(e.split("/*")[0].trim()):!1,h7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,m7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ai=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},nl={...aa,transform:e=>Ai(0,1,e)},uc={...aa,default:1},rl=e=>Math.round(e*1e5)/1e5,ky=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,g7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,v7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ku(e){return typeof e=="string"}const Mu=e=>({test:t=>ku(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=Mu("deg"),rr=Mu("%"),X=Mu("px"),y7=Mu("vh"),x7=Mu("vw"),Ob={...rr,parse:e=>rr.parse(e)/100,transform:e=>rr.transform(e*100)},Rb={...aa,transform:Math.round},Dk={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,size:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:uc,scaleX:uc,scaleY:uc,scaleZ:uc,skew:Gr,skewX:Gr,skewY:Gr,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:nl,originX:Ob,originY:Ob,originZ:X,zIndex:Rb,backgroundPositionX:X,backgroundPositionY:X,fillOpacity:nl,strokeOpacity:nl,numOctaves:Rb};function My(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(jk(d)){s[d]=f;continue}const p=Dk[d],h=m7(f,p);if(Ms.has(d)){if(l=!0,o[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=h):i[d]=h}if(t.transform||(l||r?i.transform=f7(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${f} ${p}`}}const _y=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fk(e,t,n){for(const r in t)!kt(t[r])&&!Lk(r,n)&&(e[r]=t[r])}function w7({transformTemplate:e},t,n){return b.useMemo(()=>{const r=_y();return My(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function b7(e,t,n){const r=e.style||{},i={};return Fk(i,r,e),Object.assign(i,w7(e,t,n)),i}function S7(e,t,n){const r={},i=b7(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const E7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||E7.has(e)}let Nk=e=>!Bd(e);function P7(e){e&&(Nk=t=>t.startsWith("on")?!Bd(t):e(t))}try{P7(require("@emotion/is-prop-valid").default)}catch{}function C7(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Nk(i)||n===!0&&Bd(i)||!t&&!Bd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ab(e,t,n){return typeof e=="string"?e:X.transform(t+n*e)}function T7(e,t,n){const r=Ab(t,e.x,e.width),i=Ab(n,e.y,e.height);return`${r} ${i}`}const k7={offset:"stroke-dashoffset",array:"stroke-dasharray"},M7={offset:"strokeDashoffset",array:"strokeDasharray"};function _7(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?k7:M7;e[s.offset]=X.transform(-r);const o=X.transform(t),a=X.transform(n);e[s.array]=`${o} ${a}`}function Oy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(My(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=T7(m,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&_7(p,o,a,l,!1)}const zk=()=>({..._y(),attrs:{}}),Ry=e=>typeof e=="string"&&e.toLowerCase()==="svg";function O7(e,t,n,r){const i=b.useMemo(()=>{const s=zk();return Oy(s,t,{enableHardwareAcceleration:!1},Ry(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Fk(s,e.style,e),i.style={...s,...i.style}}return i}function R7(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Cy(n)?O7:S7)(r,s,o,n),u=C7(r,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=b.useMemo(()=>kt(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function Vk(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Bk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Uk(e,t,n,r){Vk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Bk.has(i)?i:by(i),t.attrs[i])}function Ay(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(kt(i[o])||t.style&&kt(t.style[o])||Lk(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Wk(e,t,n){const r=Ay(e,t,n);for(const i in e)if(kt(e[i])||kt(t[i])){const s=Tu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Iy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Ly(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gg=e=>Array.isArray(e),A7=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),I7=e=>Gg(e)?e[e.length-1]||0:e;function $c(e){const t=kt(e)?e.get():e;return A7(t)?t.toValue():t}function L7({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:$7(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const Hk=e=>(t,n)=>{const r=b.useContext(xp),i=b.useContext(yy),s=()=>L7(e,t,r,i);return n?s():Ly(s)};function $7(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=$c(s[f]);let{initial:o,animate:a}=e;const l=bp(e),u=Rk(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!wp(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=Iy(e,p);if(!h)return;const{transitionEnd:m,transition:x,...g}=h;for(const y in g){let v=g[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in m)i[y]=m[y]}),i}const mt=e=>e,{schedule:We,cancel:Or,state:rt,steps:zh}=Ok(typeof requestAnimationFrame<"u"?requestAnimationFrame:mt,!0),j7={useVisualState:Hk({scrapeMotionValuesFromProps:Wk,createRenderState:zk,onMount:(e,t,{renderState:n,latestValues:r})=>{We.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),We.render(()=>{Oy(n,r,{enableHardwareAcceleration:!1},Ry(t.tagName),e.transformTemplate),Uk(t,n)})}})},D7={useVisualState:Hk({scrapeMotionValuesFromProps:Ay,createRenderState:_y})};function F7(e,{forwardMotionProps:t=!1},n,r){return{...Cy(e)?j7:D7,preloadedFeatures:n,useRender:R7(t),createVisualElement:r,Component:e}}function gr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Gk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Sp(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const N7=e=>t=>Gk(t)&&e(t,Sp(t));function Sr(e,t,n,r){return gr(e,t,N7(n),r)}const z7=(e,t)=>n=>t(e(n)),Er=(...e)=>e.reduce(z7);function qk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ib=qk("dragHorizontal"),Lb=qk("dragVertical");function Kk(e){let t=!1;if(e==="y")t=Lb();else if(e==="x")t=Ib();else{const n=Ib(),r=Lb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Qk(){const e=Kk(!0);return e?(e(),!1):!0}class Di{constructor(t){this.isMounted=!1,this.node=t}update(){}}function $b(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||Qk())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&l(s,o)};return Sr(e.current,n,i,{passive:!e.getProps()[r]})}class V7 extends Di{mount(){this.unmount=Er($b(this.node,!0),$b(this.node,!1))}unmount(){}}class B7 extends Di{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Er(gr(this.node.current,"focus",()=>this.onFocus()),gr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Yk=(e,t)=>t?e===t?!0:Yk(e,t.parentElement):!1;function Vh(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Sp(n))}class U7 extends Di{constructor(){super(...arguments),this.removeStartListeners=mt,this.removeEndListeners=mt,this.removeAccessibleListeners=mt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=Sr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!Yk(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)},{passive:!(r.onTap||r.onPointerUp)}),o=Sr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Er(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Vh("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=gr(this.node.current,"keyup",o),Vh("down",(a,l)=>{this.startPress(a,l)})},n=gr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Vh("cancel",(s,o)=>this.cancelPress(s,o))},i=gr(this.node.current,"blur",r);this.removeAccessibleListeners=Er(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Sr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=gr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Er(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const qg=new WeakMap,Bh=new WeakMap,W7=e=>{const t=qg.get(e.target);t&&t(e)},H7=e=>{e.forEach(W7)};function G7({root:e,...t}){const n=e||document;Bh.has(n)||Bh.set(n,{});const r=Bh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(H7,{root:e,...t})),r[i]}function q7(e,t,n){const r=G7(t);return qg.set(e,n),r.observe(e),()=>{qg.delete(e),r.unobserve(e)}}const K7={some:0,all:1};class Q7 extends Di{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:K7[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return q7(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Y7(t,n))&&this.startObserver()}unmount(){}}function Y7({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const X7={inView:{Feature:Q7},tap:{Feature:U7},focus:{Feature:B7},hover:{Feature:V7}};function Xk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function J7(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ep(e,t,n){const r=e.getProps();return Iy(r,t,n!==void 0?n:r.custom,Z7(e),J7(e))}const ki=e=>e*1e3,Pr=e=>e/1e3,eB={type:"spring",stiffness:500,damping:25,restSpeed:10},tB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nB={type:"keyframes",duration:.8},rB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iB=(e,{keyframes:t})=>t.length>2?nB:Ms.has(e)?e.startsWith("scale")?tB(t[1]):eB:rB;function sB({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function $y(e,t){return e[t]||e.default||e}const oB=e=>e!==null;function Pp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(oB),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}let jc;function aB(){jc=void 0}const Mi={now:()=>(jc===void 0&&Mi.set(rt.isProcessing||YV.useManualTiming?rt.timestamp:performance.now()),jc),set:e=>{jc=e,queueMicrotask(aB)}},Zk=e=>/^0[^.\s]+$/u.test(e);function lB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zk(e):!0}let uB=mt,jy=mt;const Jk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dB(e){const t=cB.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function eM(e,t,n=1){const[r,i]=dB(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Jk(o)?parseFloat(o):o}return Ty(i)?eM(i,t,n+1):i}const fB=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jb=e=>e===aa||e===X,Db=(e,t)=>parseFloat(e.split(", ")[t]),Fb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Db(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Db(s[1],e):0}},pB=new Set(["x","y","z"]),hB=Tu.filter(e=>!pB.has(e));function mB(e){const t=[];return hB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Go={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Fb(4,13),y:Fb(5,14)};Go.translateX=Go.x;Go.translateY=Go.y;const tM=e=>t=>t.test(e),gB={test:e=>e==="auto",parse:e=>e},nM=[aa,X,rr,Gr,x7,y7,gB],Nb=e=>nM.find(tM(e)),hs=new Set;let Kg=!1,Qg=!1;function rM(){if(Qg){const e=Array.from(hs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=mB(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qg=!1,Kg=!1,hs.forEach(e=>e.complete()),hs.clear()}function iM(){hs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qg=!0)})}function vB(){iM(),rM()}class Dy{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hs.add(this),Kg||(Kg=!0,We.read(iM),We.resolveKeyframes(rM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sn=>!!(ku(n)&&v7.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),sM=(e,t,n)=>r=>{if(!ku(r))return r;const[i,s,o,a]=r.match(ky);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},yB=e=>Ai(0,255,e),Uh={...aa,transform:e=>Math.round(yB(e))},ns={test:Fy("rgb","red"),parse:sM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uh.transform(e)+", "+Uh.transform(t)+", "+Uh.transform(n)+", "+rl(nl.transform(r))+")"};function xB(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yg={test:Fy("#"),parse:xB,transform:ns.transform},ro={test:Fy("hsl","hue"),parse:sM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rr.transform(rl(t))+", "+rr.transform(rl(n))+", "+rl(nl.transform(r))+")"},Ct={test:e=>ns.test(e)||Yg.test(e)||ro.test(e),parse:e=>ns.test(e)?ns.parse(e):ro.test(e)?ro.parse(e):Yg.parse(e),transform:e=>ku(e)?e:e.hasOwnProperty("red")?ns.transform(e):ro.transform(e)};function wB(e){var t,n;return isNaN(e)&&ku(e)&&(((t=e.match(ky))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(g7))===null||n===void 0?void 0:n.length)||0)>0}const oM="number",aM="color",bB="var",SB="var(",zb="${}",EB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ud(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(EB,l=>(Ct.test(l)?(r.color.push(s),i.push(aM),n.push(Ct.parse(l))):l.startsWith(SB)?(r.var.push(s),i.push(bB),n.push(l)):(r.number.push(s),i.push(oM),n.push(parseFloat(l))),++s,zb)).split(zb);return{values:n,split:a,indexes:r,types:i}}function lM(e){return Ud(e).values}function uM(e){const{split:t,types:n}=Ud(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function CB(e){const t=lM(e);return uM(e)(t.map(PB))}const Ii={test:wB,parse:lM,createTransformer:uM,getAnimatableNone:CB},TB=new Set(["brightness","contrast","saturate","opacity"]);function kB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ky)||[];if(!r)return e;const i=n.replace(r,"");let s=TB.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const MB=/\b([a-z-]*)\(.*?\)/gu,Xg={...Ii,getAnimatableNone:e=>{const t=e.match(MB);return t?t.map(kB).join(" "):e}},_B={...Dk,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Xg,WebkitFilter:Xg},Ny=e=>_B[e];function cM(e,t){let n=Ny(e);return n!==Xg&&(n=Ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function OB(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function RB(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ii.test(e)||e==="0")&&!e.startsWith("url("));function AB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function zy(e,t){return t?e*(1e3/t):0}const LB=5;function pM(e,t,n){const r=Math.max(t-LB,0);return zy(n-e(r),t-r)}const Wh=.001,$B=.01,jB=10,DB=.05,FB=1;function NB({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Ai(DB,FB,o),e=Ai($B,jB,Pr(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,p=Zg(u,o),h=Math.exp(-d);return Wh-f/p*h},s=u=>{const d=u*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,h=Math.exp(-d),m=Zg(Math.pow(u,2),o);return(-i(u)+Wh>0?-1:1)*((f-p)*h)/m}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Wh+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=VB(i,s,a);if(e=ki(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const zB=12;function VB(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function WB(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Bb(e,UB)&&Bb(e,BB)){const n=NB(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function hM({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=WB({...r,velocity:-Pr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),m=s-i,x=Pr(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let y;if(h<1){const v=Zg(x,h);y=w=>{const S=Math.exp(-h*x*w);return s-S*((p+h*x*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(h===1)y=v=>s-Math.exp(-x*v)*(m+(p+x*m)*v);else{const v=x*Math.sqrt(h*h-1);y=w=>{const S=Math.exp(-h*x*w),P=Math.min(v*w,300);return s-S*((p+h*x*m)*Math.sinh(P)+v*m*Math.cosh(P))/v}}return{calculatedDuration:f&&c||null,next:v=>{const w=y(v);if(f)o.done=v>=c;else{let S=p;v!==0&&(h<1?S=pM(y,v,w):S=0);const P=Math.abs(S)<=n,T=Math.abs(s-w)<=t;o.done=P&&T}return o.value=o.done?s:w,o}}}function Ub({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=C=>a!==void 0&&Cl,h=C=>a===void 0?l:l===void 0||Math.abs(a-C)-m*Math.exp(-C/r),v=C=>g+y(C),w=C=>{const M=y(C),k=v(C);f.done=Math.abs(M)<=u,f.value=f.done?g:k};let S,P;const T=C=>{p(f.value)&&(S=C,P=hM({keyframes:[f.value,h(f.value)],velocity:pM(v,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:C=>{let M=!1;return!P&&S===void 0&&(M=!0,w(C),T(C)),S!==void 0&&C>=S?P.next(C-S):(!M&&w(C),f)}}}const mM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HB=1e-7,GB=12;function qB(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=mM(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>HB&&++aqB(s,0,1,e,n);return s=>s===0||s===1?s:mM(i(s),t,r)}const KB=_u(.42,0,1,1),QB=_u(0,0,.58,1),gM=_u(.42,0,.58,1),YB=e=>Array.isArray(e)&&typeof e[0]!="number",vM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yM=e=>t=>1-e(1-t),Vy=e=>1-Math.sin(Math.acos(e)),xM=yM(Vy),XB=vM(Vy),wM=_u(.33,1.53,.69,.99),By=yM(wM),ZB=vM(By),JB=e=>(e*=2)<1?.5*By(e):.5*(2-Math.pow(2,-10*(e-1))),eU={linear:mt,easeIn:KB,easeInOut:gM,easeOut:QB,circIn:Vy,circInOut:XB,circOut:xM,backIn:By,backInOut:ZB,backOut:wM,anticipate:JB},Wb=e=>{if(Array.isArray(e)){jy(e.length===4);const[t,n,r,i]=e;return _u(t,n,r,i)}else if(typeof e=="string")return eU[e];return e},qo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ie=(e,t,n)=>e+(t-e)*n;function Hh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Hh(l,a,e+1/3),s=Hh(l,a,e),o=Hh(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const Gh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nU=[Yg,ns,ro],rU=e=>nU.find(t=>t.test(e));function Hb(e){const t=rU(e);let n=t.parse(e);return t===ro&&(n=tU(n)),n}const Gb=(e,t)=>{const n=Hb(e),r=Hb(t),i={...n};return s=>(i.red=Gh(n.red,r.red,s),i.green=Gh(n.green,r.green,s),i.blue=Gh(n.blue,r.blue,s),i.alpha=Ie(n.alpha,r.alpha,s),ns.transform(i))};function Jg(e,t){return n=>n>0?t:e}function iU(e,t){return n=>Ie(e,t,n)}function Uy(e){return typeof e=="number"?iU:typeof e=="string"?Ty(e)?Jg:Ct.test(e)?Gb:aU:Array.isArray(e)?bM:typeof e=="object"?Ct.test(e)?Gb:sU:Jg}function bM(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Uy(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function oU(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=Ii.createTransformer(t),r=Ud(e),i=Ud(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Er(bM(oU(r,i),i.values),n):Jg(e,t)};function SM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ie(e,t,n):Uy(e)(e,t)}function lU(e,t,n){const r=[],i=n||SM,s=e.length-1;for(let o=0;ot[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=lU(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(Ai(e[0],e[s-1],u)):l}function uU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qo(0,t,r);e.push(Ie(n,1,i))}}function PM(e){const t=[0];return uU(t,e.length-1),t}function cU(e,t){return e.map(n=>n*t)}function dU(e,t){return e.map(()=>t||gM).splice(0,e.length-1)}function Wd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=YB(r)?r.map(Wb):Wb(r),s={done:!1,value:t[0]},o=cU(n&&n.length===t.length?n:PM(t),e),a=EM(o,t,{ease:Array.isArray(i)?i:dU(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const qb=2e4;function fU(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=qb?1/0:t}const pU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>We.update(t,!0),stop:()=>Or(t),now:()=>rt.isProcessing?rt.timestamp:Mi.now()}},hU={decay:Ub,inertia:Ub,tween:Wd,keyframes:Wd,spring:hM},mU=e=>e/100;class Wy extends fM{constructor({KeyframeResolver:t=Dy,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:s}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(s,o,r,i):this.resolver=new t(s,o,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=hU[n]||Wd;let l,u;a!==Wd&&typeof t[0]!="number"&&(l=Er(mU,SM(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fU(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=s;if(p){const C=Math.min(this.currentTime,c)/d;let M=Math.floor(C),k=C%1;!k&&C>=1&&(k=1),k===1&&M--,M=Math.min(M,p+1),!!(M%2)&&(h==="reverse"?(k=1-k,m&&(k-=m/d)):h==="mirror"&&(w=o)),v=Ai(0,1,k)*d}const S=y?{done:!1,value:l[0]}:w.next(v);a&&(S.value=a(S.value));let{done:P}=S;!y&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return T&&i!==void 0&&(S.value=Pp(l,this.options,i)),x&&x(S.value),T&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Pr(t.calculatedDuration):0}get time(){return Pr(this.currentTime)}set time(t){t=ki(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=pU,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const CM=e=>Array.isArray(e)&&typeof e[0]=="number";function TM(e){return!!(!e||typeof e=="string"&&e in Hy||CM(e)||Array.isArray(e)&&e.every(TM))}const Da=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Da([0,.65,.55,1]),circOut:Da([.55,0,1,.45]),backIn:Da([.31,.01,.66,-.59]),backOut:Da([.33,1.53,.69,.99])};function gU(e){return kM(e)||Hy.easeOut}function kM(e){if(e)return CM(e)?Da(e):Array.isArray(e)?e.map(gU):Hy[e]}function vU(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=kM(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const yU=RB(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xU=new Set(["opacity","clipPath","filter","transform"]),Hd=10,wU=2e4;function bU(e){return e.type==="spring"||e.name==="backgroundColor"||!TM(e.ease)}function SU(e,t){const n=new Wy({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(s,o),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(bU(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,m=SU(t,h);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,s=m.times,o=m.ease,a="keyframes"}const c=vU(l.owner.current,u,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=Mi.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Pp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Pr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Pr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ki(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return mt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return mt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,f=new Wy({...d,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),p=ki(this.time);l.setWithVelocity(f.sample(p-Hd).value,f.sample(p).value,Hd)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;return yU()&&r&&xU.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Gy=(e,t,n,r={},i,s)=>o=>{const a=$y(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ki(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};sB(a)||(c={...c,...iB(e,c)}),c.duration&&(c.duration=ki(c.duration)),c.repeatDelay&&(c.repeatDelay=ki(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=Pp(c.keyframes,a);if(f!==void 0){We.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!s&&Kb.supports(c)?new Kb(c):new Wy(c)};function Gd(e){return!!(kt(e)&&e.add)}function qy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ky(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qy{constructor(){this.subscriptions=[]}add(t){return qy(this.subscriptions,t),()=>Ky(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class PU{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Mi.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=EU(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mi.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Qy);const r=this.events[t].add(n);return t==="change"?()=>{r(),We.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Qb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Qb);return zy(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vr(e,t){return new PU(e,t)}function CU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vr(n))}function Yy(e,t){const n=Ep(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=I7(s[o]);CU(e,o,a)}}function TU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function MM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const p=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),h=l[f];if(h===void 0||d&&TU(d,f))continue;const m={delay:n,elapsed:0,...$y(o||{},f)};let x=!1;if(window.HandoffAppearAnimations){const v=e.getProps()[_k];if(v){const w=window.HandoffAppearAnimations(v,f);w!==null&&(m.elapsed=w,x=!0)}}p.start(Gy(f,p,h,e.shouldReduceMotion&&Ms.has(f)?{type:!1}:m,e,x));const g=p.animation;g&&(Gd(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return a&&Promise.all(c).then(()=>{We.update(()=>{a&&Yy(e,a)})}),c}function ev(e,t,n={}){var r;const i=Ep(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(MM(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return kU(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function kU(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(MU).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(ev(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function MU(e,t){return e.sortNodePosition(t)}function _M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ev(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ev(e,t,n);else{const i=typeof t=="function"?Ep(e,t,n.custom):t;r=Promise.all(MM(e,i,n))}return r.then(()=>{We.postRender(()=>{e.notify("AnimationComplete",t)})})}const _U=[...Ey].reverse(),OU=Ey.length;function RU(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_M(e,n,r)))}function AU(e){let t=RU(e);const n=LU();let r=!0;const i=l=>(u,c)=>{var d;const f=Ep(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...m}=f;u={...u,...m,...h}}return u};function s(l){t=l(e)}function o(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let x=0;xh&&w,M=!1;const k=Array.isArray(v)?v:[v];let R=k.reduce(i(g),{});S===!1&&(R={});const{prevResolvedValues:I={}}=y,L={...I,...R},D=B=>{C=!0,f.has(B)&&(M=!0,f.delete(B)),y.needsAnimating[B]=!0;const z=e.getValue(B);z&&(z.liveStyle=!1)};for(const B in L){const z=R[B],K=I[B];if(p.hasOwnProperty(B))continue;let O=!1;Gg(z)&&Gg(K)?O=!Xk(z,K):O=z!==K,O?z!=null?D(B):f.add(B):z!==void 0&&f.has(B)?D(B):y.protectedKeys[B]=!0}y.prevProp=v,y.prevResolvedValues=R,y.isActive&&(p={...p,...R}),r&&e.blockInitialAnimation&&(C=!1),C&&(!P||M)&&d.push(...k.map(B=>({animation:B,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),x[g]=y??null}),d.push({animation:x})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function IU(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xk(t,e):!1}function Bi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LU(){return{animate:Bi(!0),whileInView:Bi(),whileHover:Bi(),whileTap:Bi(),whileDrag:Bi(),whileFocus:Bi(),exit:Bi()}}class $U extends Di{constructor(t){super(t),t.animationState||(t.animationState=AU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),wp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let jU=0;class DU extends Di{constructor(){super(...arguments),this.id=jU++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const FU={animation:{Feature:$U},exit:{Feature:DU}},Yb=(e,t)=>Math.abs(e-t);function NU(e,t){const n=Yb(e.x,t.x),r=Yb(e.y,t.y);return Math.sqrt(n**2+r**2)}class OM{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Kh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=NU(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=d,{timestamp:m}=rt;this.history.push({...h,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=qh(f,this.transformPagePoint),We.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Kh(d.type==="pointercancel"?this.lastMoveEventInfo:qh(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),h&&h(d,x)},!Gk(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Sp(t),a=qh(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=rt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Kh(a,this.history)),this.removeListeners=Er(Sr(this.contextWindow,"pointermove",this.handlePointerMove),Sr(this.contextWindow,"pointerup",this.handlePointerUp),Sr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Or(this.updatePoint)}}function qh(e,t){return t?{point:t(e.point)}:e}function Xb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kh({point:e},t){return{point:e,delta:Xb(e,RM(t)),offset:Xb(e,zU(t)),velocity:VU(t,.1)}}function zU(e){return e[0]}function RM(e){return e[e.length-1]}function VU(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=RM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ki(t)));)n--;if(!r)return{x:0,y:0};const s=Pr(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zt(e){return e.max-e.min}function tv(e,t=0,n=.01){return Math.abs(e-t)<=n}function Zb(e,t,n,r=.5){e.origin=r,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=Zt(n)/Zt(t),(tv(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ie(n.min,n.max,e.origin)-e.originPoint,(tv(e.translate)||isNaN(e.translate))&&(e.translate=0)}function il(e,t,n,r){Zb(e.x,t.x,n.x,r?r.originX:void 0),Zb(e.y,t.y,n.y,r?r.originY:void 0)}function Jb(e,t,n){e.min=n.min+t.min,e.max=e.min+Zt(t)}function BU(e,t,n){Jb(e.x,t.x,n.x),Jb(e.y,t.y,n.y)}function eS(e,t,n){e.min=t.min-n.min,e.max=e.min+Zt(t)}function sl(e,t,n){eS(e.x,t.x,n.x),eS(e.y,t.y,n.y)}function UU(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ie(n,e,r.max):Math.min(e,n)),e}function tS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function WU(e,{top:t,left:n,bottom:r,right:i}){return{x:tS(e.x,n,i),y:tS(e.y,t,r)}}function nS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=qo(t.min,t.max-r,e.min):r>i&&(n=qo(e.min,e.max-i,t.min)),Ai(0,1,n)}function qU(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nv=.35;function KU(e=nv){return e===!1?e=0:e===!0&&(e=nv),{x:rS(e,"left","right"),y:rS(e,"top","bottom")}}function rS(e,t,n){return{min:iS(e,t),max:iS(e,n)}}function iS(e,t){return typeof e=="number"?e:e[t]||0}const sS=()=>({translate:0,scale:1,origin:0,originPoint:0}),io=()=>({x:sS(),y:sS()}),oS=()=>({min:0,max:0}),Be=()=>({x:oS(),y:oS()});function an(e){return[e("x"),e("y")]}function AM({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YU(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qh(e){return e===void 0||e===1}function rv({scale:e,scaleX:t,scaleY:n}){return!Qh(e)||!Qh(t)||!Qh(n)}function qi(e){return rv(e)||IM(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function IM(e){return aS(e.x)||aS(e.y)}function aS(e){return e&&e!=="0%"}function qd(e,t,n){const r=e-n,i=t*r;return n+i}function lS(e,t,n,r,i){return i!==void 0&&(e=qd(e,i,r)),qd(e,n,r)+t}function iv(e,t=0,n=1,r,i){e.min=lS(e.min,t,n,r,i),e.max=lS(e.max,t,n,r,i)}function LM(e,{x:t,y:n}){iv(e.x,t.translate,t.scale,t.originPoint),iv(e.y,n.translate,n.scale,n.originPoint)}function XU(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Yr(e,t){e.min=e.min+t,e.max=e.max+t}function cS(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=Ie(e.min,e.max,s);iv(e,t[n],t[r],o,t.scale)}const ZU=["x","scaleX","originX"],JU=["y","scaleY","originY"];function so(e,t){cS(e.x,t,ZU),cS(e.y,t,JU)}function $M(e,t){return AM(YU(e.getBoundingClientRect(),t))}function eW(e,t,n){const r=$M(e,n),{scroll:i}=t;return i&&(Yr(r.x,i.offset.x),Yr(r.y,i.offset.y)),r}const jM=({current:e})=>e?e.ownerDocument.defaultView:null,tW=new WeakMap;class nW{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Sp(c,"page").point)},s=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Kk(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(x=>{let g=this.getAxisMotionValue(x).get()||0;if(rr.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[x];v&&(g=Zt(v)*(parseFloat(g)/100))}}this.originPoint[x]=g}),h&&h(c,d);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=rW(x),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(c,d)},a=(c,d)=>this.stop(c,d),l=()=>an(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new OM(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:jM(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&s(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!cc(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=UU(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&no(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=WU(i.layoutBox,n):this.constraints=!1,this.elastic=KU(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&an(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=qU(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!no(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=eW(r,i.root,this.visualElement.getTransformPagePoint());let o=HU(i.layout.layoutBox,s);if(n){const a=n(QU(o));this.hasMutatedConstraints=!!a,a&&(o=AM(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=an(c=>{if(!cc(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Gy(t,r,0,n,this.visualElement))}stopAnimation(){an(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){an(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){an(n=>{const{drag:r}=this.getProps();if(!cc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Ie(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!no(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};an(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=GU({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),an(o=>{if(!cc(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;tW.set(this.visualElement,this);const t=this.visualElement.current,n=Sr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();no(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=gr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(an(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=nv,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function cc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iW extends Di{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new nW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mt}unmount(){this.removeGroupControls(),this.removeListeners()}}const dS=e=>(t,n)=>{e&&e(t,n)};class sW extends Di{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new OM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dS(t),onStart:dS(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&i(s,o)}}}mount(){this.removePointerDownListener=Sr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function oW(){const e=b.useContext(yy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Dc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ta={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const n=fS(e,t.target.x),r=fS(e,t.target.y);return`${n}% ${r}%`}},aW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ii.parse(e);if(i.length>5)return r;const s=Ii.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class lW extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;u7(uW),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Dc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||We.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function DM(e){const[t,n]=oW(),r=b.useContext(Ak);return E.jsx(lW,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(Ik),isPresent:t,safeToRemove:n})}const uW={borderRadius:{...Ta,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ta,borderTopRightRadius:Ta,borderBottomLeftRadius:Ta,borderBottomRightRadius:Ta,boxShadow:aW},FM=["TopLeft","TopRight","BottomLeft","BottomRight"],cW=FM.length,pS=e=>typeof e=="string"?parseFloat(e):e,hS=e=>typeof e=="number"||X.test(e);function dW(e,t,n,r,i,s){i?(e.opacity=Ie(0,n.opacity!==void 0?n.opacity:1,fW(r)),e.opacityExit=Ie(t.opacity!==void 0?t.opacity:1,0,pW(r))):s&&(e.opacity=Ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(qo(e,t,r))}function gS(e,t){e.min=t.min,e.max=t.max}function on(e,t){gS(e.x,t.x),gS(e.y,t.y)}function vS(e,t,n,r,i){return e-=t,e=qd(e,1/n,r),i!==void 0&&(e=qd(e,1/i,r)),e}function hW(e,t=0,n=1,r=.5,i,s=e,o=e){if(rr.test(t)&&(t=parseFloat(t),t=Ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ie(s.min,s.max,r);e===s&&(a-=t),e.min=vS(e.min,t,n,a,i),e.max=vS(e.max,t,n,a,i)}function yS(e,t,[n,r,i],s,o){hW(e,t[n],t[r],t[i],t.scale,s,o)}const mW=["x","scaleX","originX"],gW=["y","scaleY","originY"];function xS(e,t,n,r){yS(e.x,t,mW,n?n.x:void 0,r?r.x:void 0),yS(e.y,t,gW,n?n.y:void 0,r?r.y:void 0)}function wS(e){return e.translate===0&&e.scale===1}function zM(e){return wS(e.x)&&wS(e.y)}function vW(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function VM(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function bS(e){return Zt(e.x)/Zt(e.y)}class yW{constructor(){this.members=[]}add(t){qy(this.members,t),t.scheduleRender()}remove(t){if(Ky(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const xW=(e,t)=>e.depth-t.depth;class wW{constructor(){this.children=[],this.isDirty=!1}add(t){qy(this.children,t),this.isDirty=!0}remove(t){Ky(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(xW),this.isDirty=!1,this.children.forEach(t)}}function bW(e,t){const n=Mi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Or(r),e(s-t))};return We.read(r,!0),()=>Or(r)}function SW(e){window.MotionDebug&&window.MotionDebug.record(e)}function EW(e){return e instanceof SVGElement&&e.tagName!=="svg"}function PW(e,t,n){const r=kt(e)?e:vr(e);return r.start(Gy("",r,t,n)),r.animation}const Yh=["","X","Y","Z"],CW={visibility:"hidden"},ES=1e3;let TW=0;const Ki={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xh(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function BM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=TW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ki.totalNodes=Ki.resolvedTargetDeltas=Ki.recalculatedProjection=0,this.nodes.forEach(_W),this.nodes.forEach(LW),this.nodes.forEach($W),this.nodes.forEach(OW),SW(Ki)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=bW(f,250),Dc.hasAnimatedSinceResize&&(Dc.hasAnimatedSinceResize=!1,this.nodes.forEach(CS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||zW,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!VM(this.targetLayout,h)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const w={...$y(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||CS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Or(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jW),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(RW),this.sharedNodes.forEach(DW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,We.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){We.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=w/1e3;TS(d.x,o.x,S),TS(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),FW(this.relativeTarget,this.relativeTargetOrigin,f,S),v&&vW(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),on(v,this.relativeTarget)),m&&(this.animationValues=c,dW(c,u,this.latestValues,S,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update(()=>{Dc.hasAnimatedSinceResize=!0,this.currentAnimation=PW(0,ES,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ES),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&UM(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Zt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Zt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}on(a,l),so(a,c),il(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yW),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Xh("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(PS),this.root.sharedNodes.clear()}}}function kW(e){e.updateLayout()}function MW(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?an(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Zt(f);f.min=r[d].min,f.max=f.min+p}):UM(s,n.layoutBox,r)&&an(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Zt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=io();il(a,r,n.layoutBox);const l=io();o?il(l,e.applyTransform(i,!0),n.measuredBox):il(l,r,n.layoutBox);const u=!zM(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=Be();sl(h,n.layoutBox,f.layoutBox);const m=Be();sl(m,r,p.layoutBox),VM(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function _W(e){Ki.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function OW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function RW(e){e.clearSnapshot()}function PS(e){e.clearMeasurements()}function AW(e){e.isLayoutDirty=!1}function IW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function CS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function LW(e){e.resolveTargetDelta()}function $W(e){e.calcProjection()}function jW(e){e.resetSkewAndRotation()}function DW(e){e.removeLeadSnapshot()}function TS(e,t,n){e.translate=Ie(t.translate,0,n),e.scale=Ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kS(e,t,n,r){e.min=Ie(t.min,n.min,r),e.max=Ie(t.max,n.max,r)}function FW(e,t,n,r){kS(e.x,t.x,n.x,r),kS(e.y,t.y,n.y,r)}function NW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zW={duration:.45,ease:[.4,0,.1,1]},MS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_S=MS("applewebkit/")&&!MS("chrome/")?Math.round:mt;function OS(e){e.min=_S(e.min),e.max=_S(e.max)}function VW(e){OS(e.x),OS(e.y)}function UM(e,t,n){return e==="position"||e==="preserve-aspect"&&!tv(bS(t),bS(n),.2)}const BW=BM({attachResizeListener:(e,t)=>gr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zh={current:void 0},WM=BM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zh.current){const e=new BW({});e.mount(window),e.setOptions({layoutScroll:!0}),Zh.current=e}return Zh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UW={pan:{Feature:sW},drag:{Feature:iW,ProjectionNode:WM,MeasureLayout:DM}},sv={current:null},HM={current:!1};function WW(){if(HM.current=!0,!!xy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sv.current=e.matches;e.addListener(t),t()}else sv.current=!1}function HW(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(kt(s))e.addValue(i,s),Gd(r)&&r.add(i);else if(kt(o))e.addValue(i,vr(s,{owner:e})),Gd(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,vr(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const RS=new WeakMap,GW=[...nM,Ct,Ii],qW=e=>GW.find(tM(e)),GM=Object.keys(Kl),KW=GM.length,AS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],QW=Py.length;function qM(e){if(e)return e.options.allowProjection!==!1?e.projection:qM(e.parent)}class YW{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(f,p,h,m)=>new this.KeyframeResolver(f,p,h,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>We.render(this.render,!1,!0);const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=bp(n),this.isVariantNode=Rk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&kt(p)&&(p.set(l[f],!1),Gd(c)&&c.add(f))}}mount(t){this.current=t,RS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),HM.current||WW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;RS.delete(this.current),this.projection&&this.projection.unmount(),Or(this.notifyUpdate),Or(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ms.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&We.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Jk(i)||Zk(i))?i=parseFloat(i):!qW(i)&&Ii.test(n)&&(i=cM(t,n)),this.setBaseTarget(t,kt(i)?i.get():i)),kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Iy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!kt(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class KM extends YW{constructor(){super(...arguments),this.KeyframeResolver=dM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function XW(e){return window.getComputedStyle(e)}class ZW extends KM{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ms.has(n)){const r=Ny(n);return r&&r.default||0}else{const r=XW(t),i=(jk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $M(t,n)}build(t,n,r,i){My(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ay(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Vk(t,n,r,i)}}class JW extends KM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ms.has(n)){const r=Ny(n);return r&&r.default||0}return n=Bk.has(n)?n:by(n),t.getAttribute(n)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,n,r){return Wk(t,n,r)}build(t,n,r,i){Oy(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Uk(t,n,r,i)}mount(t){this.isSVGTag=Ry(t.tagName),super.mount(t)}}const eH=(e,t)=>Cy(e)?new JW(t,{enableHardwareAcceleration:!1}):new ZW(t,{allowProjection:e!==b.Fragment,enableHardwareAcceleration:!0}),tH={layout:{ProjectionNode:WM,MeasureLayout:DM}},nH={...FU,...X7,...UW,...tH},rH=a7((e,t)=>F7(e,t,nH,eH));function iH(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(jy(!!t.current),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const Fc=new WeakMap;let qr;function sH(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function oH({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Fc.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return sH(e,n)}})})}function aH(e){e.forEach(oH)}function lH(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(aH))}function uH(e,t){qr||lH();const n=iH(e);return n.forEach(r=>{let i=Fc.get(r);i||(i=new Set,Fc.set(r,i)),i.add(t),qr==null||qr.observe(r)}),()=>{n.forEach(r=>{const i=Fc.get(r);i==null||i.delete(t),i!=null&&i.size||qr==null||qr.unobserve(r)})}}const Nc=new Set;let ol;function cH(){ol=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nc.forEach(n=>n(t))},window.addEventListener("resize",ol)}function dH(e){return Nc.add(e),ol||cH(),()=>{Nc.delete(e),!Nc.size&&ol&&(ol=void 0)}}function fH(e,t){return typeof e=="function"?dH(e):uH(e,t)}const pH=50,IS=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),hH=()=>({time:0,x:IS(),y:IS()}),mH={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function LS(e,t,n,r){const i=n[t],{length:s,position:o}=mH[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=qo(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>pH?0:zy(i.current-a,u)}function gH(e,t,n){LS(e,"x",t,n),LS(e,"y",t,n),t.time=n}function vH(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const yH={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},ov={start:0,center:.5,end:1};function $S(e,t,n=0){let r=0;if(e in ov&&(e=ov[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const xH=[0,0];function wH(e,t,n,r){let i=Array.isArray(e)?e:xH,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,ov[e]?e:"0"]),s=$S(i[0],n,r),o=$S(i[1],t),s-o}const bH={x:0,y:0};function SH(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function EH(e,t,n){const{offset:r=yH.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?vH(i,e):bH,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:SH(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const d=r.length;for(let f=0;fPH(e,r.target,n),update:i=>{gH(e,n,i),(r.offset||r.target)&&EH(e,n,r)},notify:()=>t(n)}}const ka=new WeakMap,jS=new WeakMap,Jh=new WeakMap,DS=e=>e===document.documentElement?window:e;function TH(e,{container:t=document.documentElement,...n}={}){let r=Jh.get(t);r||(r=new Set,Jh.set(t,r));const i=hH(),s=CH(t,e,i,n);if(r.add(s),!ka.has(t)){const a=()=>{for(const f of r)f.measure()},l=()=>{for(const f of r)f.update(rt.timestamp)},u=()=>{for(const f of r)f.notify()},c=()=>{We.read(a,!1,!0),We.read(l,!1,!0),We.update(u,!1,!0)};ka.set(t,c);const d=DS(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&jS.set(t,fH(t,c)),d.addEventListener("scroll",c,{passive:!0})}const o=ka.get(t);return We.read(o,!1,!0),()=>{var a;Or(o);const l=Jh.get(t);if(!l||(l.delete(s),l.size))return;const u=ka.get(t);ka.delete(t),u&&(DS(t).removeEventListener("scroll",u),(a=jS.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function FS(e,t){uB(!!(!t||t.current))}const kH=()=>({scrollX:vr(0),scrollY:vr(0),scrollXProgress:vr(0),scrollYProgress:vr(0)});function QM({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=Ly(kH);return(n?wy:b.useEffect)(()=>(FS("target",t),FS("container",e),TH(({x:o,y:a})=>{i.scrollX.set(o.current),i.scrollXProgress.set(o.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}function MH(e){e.values.forEach(t=>t.stop())}function av(e,t){[...t].reverse().forEach(r=>{const i=e.getVariant(r);i&&Yy(e,i),e.variantChildren&&e.variantChildren.forEach(s=>{av(s,t)})})}function _H(e,t){if(Array.isArray(t))return av(e,t);if(typeof t=="string")return av(e,[t]);Yy(e,t)}function OH(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const i=[];return e.forEach(s=>{i.push(_M(s,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return e.forEach(r=>{_H(r,n)})},stop(){e.forEach(n=>{MH(n)})},mount(){return()=>{t.stop()}}};return t}function RH(){const e=Ly(OH);return wy(e.mount,[]),e}const AH=RH,NS=e=>{const{id:t,className:n,background:r,minSize:i,maxSize:s,speed:o,particleColor:a,particleDensity:l}=e,[u,c]=b.useState(!1);b.useEffect(()=>{mV(async p=>{await gV(p)}).then(()=>{c(!0)})},[]);const d=AH(),f=async p=>{p&&(console.log(p),d.start({opacity:1,transition:{duration:1}}))};return E.jsx(rH.div,{animate:d,className:Tb("opacity-0",n),children:u&&E.jsx(hV,{id:t||"tsparticles",className:Tb("h-full w-full"),particlesLoaded:f,options:{background:{color:{value:r||"#0d47a1"}},fullScreen:{enable:!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"bounce",overlap:{enable:!0,retries:0}},color:{value:a||"#ffffff",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:{}},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:!0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:l||120},opacity:{value:{min:.1,max:1},animation:{count:0,enable:!0,speed:o||4,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:i||1,max:s||3},animation:{count:0,enable:!1,speed:5,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}},roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}})})};function IH(e){let t="",n="";return e.project.tier=="Platinum"?(t="#E5E4E2",n="#9E9E9E"):e.project.tier=="Gold"?(t="#EBD197",n="#B48811"):(t="#CA9D85",n="#894218"),E.jsx(Z,{sx:{...e.sx,boxShadow:5,position:"sticky",height:"60vh",width:{xs:"100vw",md:"50vw"},borderRadius:"20px",padding:"30px",background:"linear-gradient(90deg,"+t+", "+n+")"},children:E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[E.jsx("img",{style:{height:"48px",width:"max-content",mixBlendMode:"luminosity"},src:"/logo256.png"}),E.jsx(Z,{sx:{flexGrow:1},children:"Sponsor Name"}),E.jsx(Se,{sx:{lineHeight:.7,fontSize:"2.8rem",fontWeight:"bold",color:"black",textAlign:"end"},children:e.project.tier})]})})}function LH(e){const t=H.useRef(null),[n,r]=H.useState(1),[i,s]=H.useState([]),{scrollYProgress:o}=QM({target:t,offset:["start start","end end"]});return H.useEffect(()=>{o.on("change",a=>{a<.9&&r(Math.abs(1-a*.08))}),s(()=>[{px:0,tier:"Platinum",members:[],logos:""},{px:25,tier:"Gold",members:[],logos:""},{px:50,tier:"Bronze",members:[],logos:""}])},[]),E.jsxs(Z,{sx:{display:"flex",position:"relative",justifyContent:"center",padding:"0px 100px 0px 50px"},children:[E.jsx(Se,{sx:{textAlign:"center",width:"100%",height:"max-content",position:"sticky",top:"50vh",left:"0px",fontSize:"2.5rem",fontWeight:"bold"},children:"Meet Our Sponsors"}),E.jsx(Z,{ref:t,sx:{...e==null?void 0:e.sx,flexGrow:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`${60*(i.length+1)}vh`,transform:`scale(${n})`},children:i.map((a,l)=>E.jsx(IH,{project:a,sx:{top:`calc(20vh + ${l*40}px)`,transform:`scale(${1+l*.03})`}}))})]})}function $H(e){const t=H.useRef(null),[n,r]=H.useState(1),[i,s]=H.useState(0),{scrollYProgress:o}=QM({target:t,offset:["start start","end end"]});return H.useEffect(()=>{o.on("change",a=>{a<.9&&(r(Math.abs(1-a*.08)),s(Math.abs(200*a)))})},[]),E.jsxs(Z,{ref:t,sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`calc(${400*(e.children.length+1)}px)`,transform:`scale(${n})`},children:[E.jsx(Se,{sx:{position:"sticky",top:`calc(130px - ${i}px)`,fontSize:"2.3rem",fontWeight:"bold"},children:e.title}),e.children.map((a,l)=>H.cloneElement(a,{sx:{position:"sticky",top:`calc(25vh + ${l*40}px - ${i}px)`,transform:`scale(${1+l*.03})`}}))]})}const zS=H.forwardRef((e,t)=>e.isLoading?"Loading...":e.error?e.error.message:e.mobileView?E.jsx($H,{title:"Projects",sx:{padding:"20px"},children:e.data.map(n=>E.jsx(pw,{mobileView:!0,project:n},n._id))}):E.jsx(Z,{ref:t,sx:{display:"flex",gap:"30px",padding:"50px",maxWidth:"100%",overflowX:"hidden",position:e.position,top:window.scrollY>200?"120px":"100vh"},children:e.data.map(n=>E.jsx(pw,{mobileView:!1,project:n},n._id))})),VS=[{title:"About",anchor:"#about"},{title:"Projects",anchor:"#projects"},{title:"Our Team",anchor:"#team"},{title:"Sponsors",anchor:"#sponsors"},{title:"Highlights",anchor:"#highlights"},{title:"Contact Us",anchor:"#contact"}];function jH(){const e=V4(jT.baseTheme.breakpoints.down("md")),[t,n]=H.useState(-120),[r]=H.useState([{title:"General Body Meeting, 3/25 8pm @ Iribe"}]),i=H.useRef(),[s,o]=H.useState("fixed"),[a,l]=H.useState(0),u=b.useRef(null),c=z9(u),[d]=H.useState("fixed"),{data:f,isLoading:p,error:h}=uk({queryKey:["projects"],queryFn:async()=>{let m=await ck.getAll();return m=m.concat(m).concat(m),l(m.length*500),m}});return H.useEffect(()=>{function m(){const x=window.scrollY,g=window.innerHeight+a;if(o(x>g||x{window.removeEventListener("scroll",m)}},[a]),E.jsxs(Z,{sx:{position:"relative"},children:[E.jsx(Z,{sx:{position:"absolute",top:`${JSON.parse(window.localStorage.getItem("events-visible"))?30:0}px`,left:0,width:"100%",height:"100%",background:"radial-gradient(55% 55% at -3% 104%, #0F114AFF 13%, #07074178 41%, #00000014 76%, #073AFF00 99%),radial-gradient(25% 25% at 62% 54%, #2324A9C4 0%, #073AFF00 100%),radial-gradient(25% 44% at 83% 33%, #434EA3FF 0%, #44579D29 65%, #073AFF00 93%),radial-gradient(49% 81% at 45% 47%, #0891A245 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #6122A6FF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #0522A9FF 1%, #FF000000 99%),radial-gradient(142% 91% at -6% 74%, #1C2581FF 1%, #FF000000 99%),radial-gradient(142% 91% at 109% 60%, #131B36FF 0%, #205353FF 99%)",opacity:scrollY>window.innerHeight-700?0:1,transition:"opacity 0.5s ease",backgroundAttachment:"fixed"}}),E.jsxs(Z,{sx:{background:"linear-gradient(312deg, rgba(0,191,255,1) 0%, rgba(74,105,232,1) 35%, rgba(111,62,220,1) 63%, rgba(156,0,255,1) 100%);",backgroundSize:"100% 100%",backgroundAttachment:"fixed"},children:[r.length<1?E.jsx(E.Fragment,{}):E.jsx(RT,{events:r}),E.jsx(bd,{links:VS,fullWidth:!0}),E.jsx(Z,{sx:{height:"50px"}}),E.jsx(ja.ScrollContainer,{style:{position:d,scrollBehavior:"smooth",overflow:"visible",width:"100%",height:"100%"},children:E.jsx(ja.ScrollPage,{style:{width:"100%",overflow:"visible",flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:E.jsxs(ja.Animator,{style:{width:"100%",overflow:"visible"},animation:ja.batch(FH(1,-.5,0),DH(3,1,0),NH(0,-400,0)),children:[E.jsx("div",{id:"stars1"}),E.jsx("div",{id:"stars2"}),E.jsx("div",{id:"stars3"}),E.jsxs(Se,{sx:{flexGrow:1,fontSize:"4vw",fontWeight:"bold",textAlign:"center"},children:["Empower Code. Inspire Design.",E.jsx("br",{}),"Drive Innovation."]}),E.jsxs(Z,{sx:{display:"flex",flex:1,flexWrap:"wrap",gap:4,marginLeft:{md:8},marginRight:{md:8},marginTop:"5vw",flexDirection:{xs:"column",md:"row"}},children:[E.jsx(kh,{end:5e5,title:"Dollars Saved",prefix:"$",minWidth:336,alignSelf:{xs:"center",md:"flex-start"}}),E.jsx(kh,{end:150,title:"Members",minWidth:81}),E.jsx(kh,{end:5e4,title:"Lines of Code",minWidth:267,alignSelf:{xs:"center",md:"flex-end"}})]})]})})}),E.jsx(Z,{sx:{height:"100vh"}}),e?E.jsx(Z,{children:E.jsx(zS,{mobileView:!0,data:f,isLoading:p,error:h,ref:i,position:s,height:a})}):E.jsxs(E.Fragment,{children:[E.jsx(Z,{id:"projects",display:window.scrollY>window.innerHeight?"block":"none",sx:{height:`${a}px`}}),E.jsx(zS,{data:f,isLoading:p,error:h,ref:i,position:s,height:a}),E.jsx(Z,{display:window.scrollY>a+window.innerHeight?"none":"block",sx:{height:"580px"}})]}),e&&!e?E.jsx(E.Fragment,{}):E.jsxs(Z,{sx:{paddingTop:"100px",background:"linear-gradient(0deg, #00FFFF00 0%, #000000FF 44%, #000000FF 50%, #000000FF 56%, #073AFF00 100%)",transition:"opacity 0.5s ease",opacity:c?1:0},children:[E.jsx(NS,{id:"members_sparkles",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"}),E.jsx(Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},ref:u,children:E.jsx(qN,{id:"team"})}),E.jsx(NS,{id:"members_sparkles2",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"})]}),E.jsx(Z,{sx:{height:"150px"}}),e?E.jsx(E.Fragment,{}):E.jsx(LH,{}),E.jsx(Z,{sx:{height:"300px"}}),E.jsx($T,{}),E.jsx(bd,{links:VS,translucent:!0,sx:{marginTop:"25px",zIndex:2,position:"fixed",top:`${t}px`,left:"0px"}})]})]})}const DH=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`scale(${t*(1-r)+e*r})`)}}}),FH=(e,t,n)=>({out:{style:{opacity:r=>(r=Math.max(r-n,0),e*(1-r)+t*r)}}}),NH=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`translate(${0*(1-r)+e*r}px, ${0*(1-r)+t*r}px)`)}}});function zH(){const{projectId:e}=e5(),{data:t,isFetching:n,error:r}=uk({queryKey:["project"],queryFn:async()=>await ck.getById(e)});return b.useEffect(()=>{window.scrollTo(0,0)},[]),n?E.jsx(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:E.jsx(Mj,{})}):r?E.jsx(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:E.jsx(JL,{variant:"filled",severity:"error",children:"Unable to retrieve project data..."})}):E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",gap:"2rem",justifyContent:"center",padding:"15vh 0",alignItems:"center",minHeight:"100vh"},children:[E.jsx(VH,{name:t.name,organization:t.organization}),E.jsx(BH,{description:t.description}),E.jsx(UH,{demo:t.demo}),E.jsx(WH,{members:t.members})]})}function VH(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h2",sx:{fontWeight:"bold"},children:e.name}),E.jsxs(Se,{variant:"h4",sx:{fontStyle:"italic"},children:["In collaboration with ",e.organization]})]})}function BH(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Overview"}),E.jsx(O0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(Se,{children:e.description})]})}function UH(e){return E.jsxs(Z,{children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Demo"}),E.jsx(O0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(cj,{sx:{marginTop:"15px",borderRadius:"5px",width:"clamp(25rem, 50vw, 60rem)",backgroundColor:"white",color:"black"},children:E.jsx(yj,{component:"iframe",image:e.demo,sx:{width:"inherit",aspectRatio:"16/9",border:"none"}})})]})}function WH(e){return E.jsxs(Z,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[E.jsx(Se,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Members"}),E.jsx(O0,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),E.jsx(Z,{sx:{marginTop:"15px",display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:"10px"},children:e.members.map((t,n)=>E.jsxs(Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:"white",borderRadius:"5px",color:"black",minWidth:"15%",padding:"1rem"},children:[t.memberInfo.profileUrl?E.jsx(wd,{src:t.memberInfo.profileUrl,sx:{width:"50px",height:"50px"}},n):b.createElement(wd,{...FT(`${t.memberInfo.firstName} ${t.memberInfo.lastName}`),sx:{width:"50px",height:"50px"},key:n}),E.jsx(Se,{variant:"subtitle1",sx:{fontWeight:"bold",marginTop:"5px"},children:`${t.memberInfo.firstName} ${t.memberInfo.lastName}`}),E.jsx(Se,{variant:"subtitle2",sx:{opacity:"0.75"},children:t.role})]}))})]})}function HH(){return E.jsx("h1",{children:"WebTierPage"})}const GH=new $8;em.createRoot(document.getElementById("root")).render(E.jsx(E5,{children:E.jsx(z8,{client:GH,children:E.jsxs(Z4,{theme:jT.baseTheme,children:[E.jsx(Aj,{}),E.jsxs(g5,{children:[E.jsx(Aa,{path:"/",element:E.jsx(jH,{})}),E.jsxs(Aa,{path:"/",element:E.jsx($D,{}),children:[E.jsx(Aa,{path:"/project/:projectId",element:E.jsx(zH,{})}),E.jsx(Aa,{path:"tier/:tier",element:E.jsx(HH,{})})]})]})]})})}));export{wG as $,iG as A,rG as B,YH as C,XH as D,dG as E,cG as F,q9 as G,st as H,yo as I,sr as J,lG as K,hy as L,PG as M,uG as N,ps as O,RG as P,yk as Q,EG as R,gk as S,vp as T,pG as U,On as V,hk as W,aG as X,yG as Y,bG as Z,Ee as _,oG as a,SG as a0,vk as a1,vG as a2,gp as a3,aV as a4,cV as a5,xG as a6,OG as a7,_G as a8,my as a9,mG as aa,CG as ab,AG as ac,IG as ad,to as ae,gG as af,Q9 as b,py as c,Hl as d,Gl as e,Sb as f,MG as g,sa as h,ks as i,oc as j,sG as k,fG as l,zd as m,kG as n,hG as o,$h as p,pk as q,TG as r,tl as s,ZH as t,JH as u,tG as v,eG as w,QH as x,KH as y,nG as z}; diff --git a/dist/assets/index-CoWLkqJw.js b/dist/assets/index-trSE1DaG.js similarity index 75% rename from dist/assets/index-CoWLkqJw.js rename to dist/assets/index-trSE1DaG.js index d5994cc..d74b88d 100644 --- a/dist/assets/index-CoWLkqJw.js +++ b/dist/assets/index-trSE1DaG.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Attractor-D1dTGU_K.js","assets/Ranges-D6O5nK3L.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Attractor-C34BAQYv.js","assets/Ranges-CImPpXf_.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-CbDPnSIu.js";class o{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}async function d(t,e=!0){await t.addInteractor("externalAttract",async i=>{const{Attractor:n}=await s(()=>import("./Attractor-D1dTGU_K.js"),__vite__mapDeps([0,1,2,3,4]));return new n(t,i)},e)}export{o as Attract,d as loadExternalAttractInteraction}; +import{_ as s}from"./index-oTx0snEa.js";class o{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}async function d(t,e=!0){await t.addInteractor("externalAttract",async i=>{const{Attractor:n}=await s(()=>import("./Attractor-C34BAQYv.js"),__vite__mapDeps([0,1,2,3,4]));return new n(t,i)},e)}export{o as Attract,d as loadExternalAttractInteraction}; diff --git a/dist/assets/index-BuoU-80l.js b/dist/assets/index-xiEMklwn.js similarity index 54% rename from dist/assets/index-BuoU-80l.js rename to dist/assets/index-xiEMklwn.js index b3a344a..7b7c1f4 100644 --- a/dist/assets/index-BuoU-80l.js +++ b/dist/assets/index-xiEMklwn.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LifeUpdater-CxFylUl7.js","assets/ValueWithRandom-kjUuQ2nW.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] + __vite__mapDeps.viteFileDeps = ["assets/LifeUpdater-YiDIx2yX.js","assets/ValueWithRandom-D5hQ_OLE.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-CbDPnSIu.js";async function d(t,a=!0){await t.addParticleUpdater("life",async e=>{const{LifeUpdater:r}=await i(()=>import("./LifeUpdater-CxFylUl7.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{d as loadLifeUpdater}; +import{_ as i}from"./index-oTx0snEa.js";async function d(t,a=!0){await t.addParticleUpdater("life",async e=>{const{LifeUpdater:r}=await i(()=>import("./LifeUpdater-YiDIx2yX.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{d as loadLifeUpdater}; diff --git a/dist/assets/index-z6BLfaeE.js b/dist/assets/index-z6BLfaeE.js deleted file mode 100644 index 2db0b9e..0000000 --- a/dist/assets/index-z6BLfaeE.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/StarDrawer-Dtnjxe3A.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as e}from"./index-CbDPnSIu.js";async function _(a,t=!0){const{StarDrawer:r}=await e(()=>import("./StarDrawer-Dtnjxe3A.js"),__vite__mapDeps([0,1,2]));await a.addShape("star",new r,t)}export{_ as loadStarShape}; diff --git a/dist/assets/interaction-CoNIFp9r.js b/dist/assets/interaction-CoNIFp9r.js new file mode 100644 index 0000000..8640d40 --- /dev/null +++ b/dist/assets/interaction-CoNIFp9r.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Linker-qPHNENzQ.js","assets/Ranges-CImPpXf_.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css","assets/index-DrocrkVf.js","assets/OptionsColor-CaHN7lKC.js","assets/ParticlesInteractorBase-vfDeBun3.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as i}from"./index-oTx0snEa.js";async function o(t,r=!0){await t.addInteractor("particlesLinks",async a=>{const{Linker:n}=await i(()=>import("./Linker-qPHNENzQ.js"),__vite__mapDeps([0,1,2,3,4,5,6]));return new n(a)},r)}export{o as loadLinksInteraction}; diff --git a/dist/assets/interaction-oqqpqou0.js b/dist/assets/interaction-oqqpqou0.js deleted file mode 100644 index 2dbd528..0000000 --- a/dist/assets/interaction-oqqpqou0.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Linker-BrqHc-_q.js","assets/Ranges-D6O5nK3L.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css","assets/index-Dyr8Xn4o.js","assets/OptionsColor-uNQKa8qH.js","assets/ParticlesInteractorBase-vfDeBun3.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as i}from"./index-CbDPnSIu.js";async function o(t,r=!0){await t.addInteractor("particlesLinks",async a=>{const{Linker:n}=await i(()=>import("./Linker-BrqHc-_q.js"),__vite__mapDeps([0,1,2,3,4,5,6]));return new n(a)},r)}export{o as loadLinksInteraction}; diff --git a/dist/assets/plugin-IRu9goKz.js b/dist/assets/plugin-IRu9goKz.js deleted file mode 100644 index aa9d208..0000000 --- a/dist/assets/plugin-IRu9goKz.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LinksPlugin-8reD8mLj.js","assets/index-CbDPnSIu.js","assets/index-m95q60Ds.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as o}from"./index-CbDPnSIu.js";async function r(i,n=!0){const{LinksPlugin:t}=await o(()=>import("./LinksPlugin-8reD8mLj.js"),__vite__mapDeps([0,1,2])),a=new t;await i.addPlugin(a,n)}export{r as loadLinksPlugin}; diff --git a/dist/assets/plugin-mdX6kdfV.js b/dist/assets/plugin-mdX6kdfV.js new file mode 100644 index 0000000..3cba5a2 --- /dev/null +++ b/dist/assets/plugin-mdX6kdfV.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/LinksPlugin-C32Tin05.js","assets/index-oTx0snEa.js","assets/index-m95q60Ds.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as o}from"./index-oTx0snEa.js";async function r(i,n=!0){const{LinksPlugin:t}=await o(()=>import("./LinksPlugin-C32Tin05.js"),__vite__mapDeps([0,1,2])),a=new t;await i.addPlugin(a,n)}export{r as loadLinksPlugin}; diff --git a/dist/index.html b/dist/index.html index bf225a0..8580e55 100644 --- a/dist/index.html +++ b/dist/index.html @@ -9,7 +9,7 @@ - + diff --git a/src/components/SponsorCardsStack/SponsorCardsStack.tsx b/src/components/SponsorCardsStack/SponsorCardsStack.tsx index 82c0ac1..357bd2f 100644 --- a/src/components/SponsorCardsStack/SponsorCardsStack.tsx +++ b/src/components/SponsorCardsStack/SponsorCardsStack.tsx @@ -15,7 +15,7 @@ export default function SponsorCardsStack(props?: { sx?: SxProps }) { React.useEffect(() => { scrollYProgress.on('change', (e) => { - if (e < 0.9) + if (e < 0.9) setCardContainerScale(Math.abs(1 - ((e * 0.08)))); }); @@ -38,40 +38,51 @@ export default function SponsorCardsStack(props?: { sx?: SxProps }) { }, []); return ( - - { /* Move this Title to the left to make space? */ } - + Meet Our Sponsors - { - sponsorData.map((sponsor, index) => ( - - )) - } + + { + sponsorData.map((sponsor, index) => ( + + )) + } + ); } \ No newline at end of file diff --git a/src/components/SponsorCreditCard/CreditCardLogos/e8bc7e60064327.5a3a5a50d3760.jpg b/src/components/SponsorCreditCard/CreditCardLogos/e8bc7e60064327.5a3a5a50d3760.jpg deleted file mode 100644 index 490a6d7..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/e8bc7e60064327.5a3a5a50d3760.jpg and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/image 2.png b/src/components/SponsorCreditCard/CreditCardLogos/image 2.png deleted file mode 100644 index 01e8019..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/image 2.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/image 3.png b/src/components/SponsorCreditCard/CreditCardLogos/image 3.png deleted file mode 100644 index 560f00f..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/image 3.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/image 4.png b/src/components/SponsorCreditCard/CreditCardLogos/image 4.png deleted file mode 100644 index f1989d6..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/image 4.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/image 8.png b/src/components/SponsorCreditCard/CreditCardLogos/image 8.png deleted file mode 100644 index 2bf8140..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/image 8.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/imgBronze.png b/src/components/SponsorCreditCard/CreditCardLogos/imgBronze.png deleted file mode 100644 index 13aa705..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/imgBronze.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/CreditCardLogos/imgGold.png b/src/components/SponsorCreditCard/CreditCardLogos/imgGold.png deleted file mode 100644 index 9d98c04..0000000 Binary files a/src/components/SponsorCreditCard/CreditCardLogos/imgGold.png and /dev/null differ diff --git a/src/components/SponsorCreditCard/SponsorCreditCard.tsx b/src/components/SponsorCreditCard/SponsorCreditCard.tsx index 3d7f8c0..ed7335c 100644 --- a/src/components/SponsorCreditCard/SponsorCreditCard.tsx +++ b/src/components/SponsorCreditCard/SponsorCreditCard.tsx @@ -1,36 +1,25 @@ import { SponsorTier } from "./interfaces"; -import { Box, Grid, SxProps } from "@mui/material" - -import platinumLogo from "./CreditCardLogos/image 2.png" -import amazonLogo from "./CreditCardLogos/image 3.png" -import praxisLogo from "./CreditCardLogos/image 8.png" -import goldLogo from "./CreditCardLogos/imgGold.png" -import bronzeLogo from "./CreditCardLogos/imgBronze.png" - - +import { Box, SxProps, Typography } from "@mui/material" function Sponsors(props: { project: SponsorTier, sx?: SxProps }) { let tierColor1 = "" let tierColor2 = "" - let ADClogo = "" if (props.project.tier == "Platinum") { tierColor1 = "#E5E4E2" tierColor2 = "#9E9E9E" - ADClogo = platinumLogo } + else if (props.project.tier == "Gold") { tierColor1 = "#EBD197" tierColor2 = "#B48811" - ADClogo = goldLogo } else { tierColor1 = "#CA9D85" tierColor2 = "#894218" - ADClogo = bronzeLogo - } + return ( - {/**/} + + + Sponsor Name + {props.project.tier} + + {/* @@ -77,7 +68,7 @@ function Sponsors(props: { project: SponsorTier, sx?: SxProps }) { - {/**/} + */} ); }