1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8712],{72774:t=>{t.exports=function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(n=s;0!=n--;)if(!t(e[n],i[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((s=(o=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(n=s;0!=n--;)if(!Object.prototype.hasOwnProperty.call(i,o[n]))return!1;for(n=s;0!=n--;){var s,n,o,a=o[n];if(("_owner"!==a||!e.$$typeof)&&!t(e[a],i[a]))return!1}return!0}return e!=e&&i!=i}},28033:(t,e,i)=>{i.d(e,{A:()=>h});var s=i(96540),n=i(22608),o=i(72774),a=i.n(o);let r="tsparticles";class l extends s.Component{constructor(t){super(t),this.state={init:!1,library:void 0}}destroy(){this.state.library&&(this.state.library.destroy(),this.setState({library:void 0}))}shouldComponentUpdate(t){return!a()(t,this.props)}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>{this.props.init&&await this.props.init(n.$k),this.setState({init:!0},async()=>{await this.loadParticles()})})()}componentWillUnmount(){this.destroy()}render(){let{width:t,height:e,className:i,canvasClassName:n,id:o}=this.props;return s.createElement("div",{className:i,id:o},s.createElement("canvas",{className:n,style:Object.assign(Object.assign({},this.props.style),{width:t,height:e})}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){var t,e,i;if(!this.state.init)return;let s=async t=>{this.props.container&&(this.props.container.current=t),this.setState({library:t}),this.props.loaded&&await this.props.loaded(t)},o=null!==(e=null!==(t=this.props.id)&&void 0!==t?t:l.defaultProps.id)&&void 0!==e?e:r,a=this.props.url?await n.$k.loadJSON(o,this.props.url):await n.$k.load(o,null!==(i=this.props.params)&&void 0!==i?i:this.props.options);await s(a)}}l.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:r};let h=l},86842:(t,e,i)=>{i.d(e,{j:()=>a});var s=i(88781),n=i(32681),o=i(85672);class a extends s.Q{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return(0,o.Yf)(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,s={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},o=this.radius;if(t instanceof a)return o+t.radius>Math.sqrt(s.x**2+s.y**2);if(t instanceof n.M){let{width:e,height:i}=t.size;return Math.pow(s.x-e,2)+Math.pow(s.y-i,2)<=o**2||s.x<=o+e&&s.y<=o+i||s.x<=e||s.y<=i}return!1}}},36861:(t,e,i)=>{i.d(e,{Bp:()=>c,DG:()=>d,G3:()=>u,NF:()=>p,Rb:()=>l,Z0:()=>a,dI:()=>f,eb:()=>s,ms:()=>n,nK:()=>g,s7:()=>h,sf:()=>r,vo:()=>o});let s="generated",n="pointerdown",o="pointerup",a="pointerleave",r="pointerout",l="pointermove",h="touchstart",c="touchend",d="touchmove",u="touchcancel",p="resize",g="visibilitychange",f="tsParticles - Error"},88781:(t,e,i)=>{i.d(e,{Q:()=>s});class s{constructor(t,e){this.position={x:t,y:e}}}},32681:(t,e,i)=>{i.d(e,{M:()=>o});var s=i(86842),n=i(88781);class o extends n.Q{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){let e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){t instanceof s.j&&t.intersects(this);let e=this.size.width,i=this.size.height,n=this.position,a=t.position,r=t instanceof o?t.size:{width:0,height:0},l=r.width,h=r.height;return a.x<n.x+e&&a.x+l>n.x&&a.y<n.y+i&&a.y+h>n.y}}},8269:(t,e,i)=>{i.d(e,{M:()=>n});var s=i(61830);class n extends s.p{constructor(t,e){super(t,e,0)}static get origin(){return n.create(0,0)}static clone(t){return n.create(t.x,t.y)}static create(t,e){return new n(t,e)}}},61830:(t,e,i)=>{i.d(e,{p:()=>o});var s=i(36861),n=i(53311);class o{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,n.Et)(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:0;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??0;else throw Error(`${s.dI} Vector3d not initialized correctly`)}static get origin(){return o.create(0,0,0)}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 o.create(t.x,t.y,t.z)}static create(t,e,i){return new o(t,e,i)}add(t){return o.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 o.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return o.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**2+this.y**2}mult(t){return o.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){let t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return o.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),0)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:0}sub(t){return o.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}}},14563:(t,e,i)=>{i.d(e,{A:()=>l});var s=i(53311),n=i(85672);class o{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(t){t&&(void 0!==t.count&&(this.count=(0,n.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=(0,n.DT)(t.offset)),void 0!==t.speed&&(this.speed=(0,n.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,n.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,n.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class a{constructor(){this.h=new o,this.s=new o,this.l=new o}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}
1var r=i(57221);class l extends r.O{constructor(){super(),this.animation=new a}static create(t,e){let i=new l;return i.load(t),void 0!==e&&((0,s.Kg)(e)||(0,s.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},55680:(t,e,i)=>{i.d(e,{Q:()=>o,p:()=>n});var s=i(85672);class n{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,s.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,s.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,s.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,s.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class o extends n{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},57221:(t,e,i)=>{i.d(e,{O:()=>n});var s=i(53311);class n{constructor(){this.value=""}static create(t,e){let i=new n;return i.load(t),void 0!==e&&((0,s.Kg)(e)||(0,s.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){t?.value!==void 0&&(this.value=t.value)}}},50530:(t,e,i)=>{i.d(e,{PV:()=>a}),i(55680);class s{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}var n=i(53311),o=i(85672);class a{constructor(){this.random=new s,this.value=0}load(t){t&&((0,n.Lm)(t.random)?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=(0,o.DT)(t.value,this.random.enable?this.random.minimumValue:void 0)))}}},979:(t,e,i)=>{i.d(e,{D4:()=>o,IU:()=>l,Md:()=>r,Sn:()=>a,V6:()=>n,Wb:()=>d,e_:()=>c,p0:()=>h,yx:()=>u});var s=i(33384);function n(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function o(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}function a(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function r(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,0,0,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(0,0,e.width,e.height)}function h(t){let{container:e,context:i,particle:n,delta:o,colorStyles:a,backgroundMask:r,composite:l,radius:h,opacity:c,shadow:d,transform:u}=t,p=n.getPosition(),g=n.rotation+(n.pathRotation?n.velocity.angle:0),f={sin:Math.sin(g),cos:Math.cos(g)},y={a:f.cos*(u.a??1),b:f.sin*(u.b??1),c:-f.sin*(u.c??1),d:f.cos*(u.d??1)};i.setTransform(y.a,y.b,y.c,y.d,p.x,p.y),i.beginPath(),r&&(i.globalCompositeOperation=l);let w=n.shadowColor;d.enable&&w&&(i.shadowBlur=d.blur,i.shadowColor=(0,s.xx)(w),i.shadowOffsetX=d.offset.x,i.shadowOffsetY=d.offset.y),a.fill&&(i.fillStyle=a.fill);let m=n.strokeWidth??0;i.lineWidth=m,a.stroke&&(i.strokeStyle=a.stroke),function(t,e,i,s,n,o){if(!i.shape)return;let a=t.drawers.get(i.shape);a&&a.draw(e,i,s,n,o,t.retina.pixelRatio)}(e,i,n,h,c,o),m>0&&i.stroke(),n.close&&i.closePath(),n.fill&&i.fill(),function(t,e,i,s,n,o){if(!i.shape)return;let a=t.drawers.get(i.shape);a&&a.afterEffect&&a.afterEffect(e,i,s,n,o,t.retina.pixelRatio)}(e,i,n,h,c,o),i.globalCompositeOperation="source-over",i.setTransform(1,0,0,1,0,0)}function c(t,e,i){e.draw&&e.draw(t,i)}function d(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}function u(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},33384:(t,e,i)=>{i.d(e,{BN:()=>c,EY:()=>v,K6:()=>u,LC:()=>m,O_:()=>S,PG:()=>_,R5:()=>d,YL:()=>g,_h:()=>b,a9:()=>r,ay:()=>f,pz:()=>P,xx:()=>w,zI:()=>p});var s=i(85672),n=i(53311);let o="random",a=new Map;function r(t){a.set(t.key,t)}function l(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function h(t){for(let[,e]of a)if(t.startsWith(e.stringPrefix))return e.parseString(t);let e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0!==n?n+n:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function c(t,e,i=!0){if(!t)return;let s=(0,n.Kg)(t)?{value:t}:t;if((0,n.Kg)(s.value))return function t(e,i,s=!0){if(!e)return;let r=(0,n.Kg)(e)?{value:e}:e;if((0,n.Kg)(r.value))return r.value===o?y():h(r.value);if((0,n.cy)(r.value))return t({value:(0,n.Vh)(r.value,i,s)});for(let[,t]of a){let e=t.handleColor(r);if(e)return e}}(s.value,e,i);if((0,n.cy)(s.value))return c({value:(0,n.Vh)(s.value,e,i)});for(let[,t]of a){let e=t.handleRangeColor(s);if(e)return e}}
1function d(t,e,i=!0){let s=c(t,e,i);return s?u(s):void 0}function u(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a={h:0,l:(n+o)/2,s:0};return n!==o&&(a.s=a.l<.5?(n-o)/(n+o):(n-o)/(2-n-o),a.h=e===n?(i-s)/(n-o):a.h=i===n?2+(s-e)/(n-o):4+(e-i)/(n-o)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function p(t){return h(t)?.a}function g(t){let e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(i.s){let t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,s=2*i.l-t;e.r=l(s,t,i.h+1/3),e.g=l(s,t,i.h),e.b=l(s,t,i.h-1/3)}else e.r=e.g=e.b=i.l;return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function f(t){let e=g(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function y(t){let e=t??0;return{b:Math.floor((0,s.U4)((0,s.DT)(e,256))),g:Math.floor((0,s.U4)((0,s.DT)(e,256))),r:Math.floor((0,s.U4)((0,s.DT)(e,256)))}}function w(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function m(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function v(t,e,i,n){let o=t,a=e;return void 0===o.r&&(o=g(t)),void 0===a.r&&(a=g(e)),{b:(0,s.jh)(o.b,a.b,i,n),g:(0,s.jh)(o.g,a.g,i,n),r:(0,s.jh)(o.r,a.r,i,n)}}function b(t,e,i){if(i===o)return y();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return v(i,s,t.getRadius(),e.getRadius());{let t=i??s;if(t)return g(t)}}}function _(t,e,i){let s=(0,n.Kg)(t)?t:t.value;return s===o?i?c({value:s}):e?o:"mid":"mid"===s?"mid":c({value:s})}function S(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function P(t,e,i){let s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(x(s.h,e.h,i),x(s.s,e.s,i),x(s.l,e.l,i)),s}function x(t,e,i){t.enable=e.enable,t.enable?(t.velocity=(0,s.VG)(e.speed)/100*i,t.decay=1-(0,s.VG)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,s.VG)(e.count),t.time=0,t.delayTime=1e3*(0,s.VG)(e.delay),e.sync||(t.velocity
1*=(0,s.G0)(),t.value*=(0,s.G0)()),t.initialValue=t.value):t.velocity=0}},85672:(t,e,i)=>{i.d(e,{$m:()=>_,DT:()=>y,G0:()=>h,JY:()=>b,M3:()=>G,Mh:()=>P,Nx:()=>C,OW:()=>S,Sg:()=>g,U4:()=>u,VG:()=>p,W9:()=>f,Yf:()=>v,_W:()=>w,il:()=>l,jh:()=>d,l1:()=>x,nL:()=>r,qE:()=>c,vr:()=>m});var s=i(53311),n=i(8269);let o=Math.random,a=new Map;function r(t,e){a.get(t)||a.set(t,e)}function l(t){return a.get(t)||(t=>t)}function h(){return c(o(),0,1-1e-16)}function c(t,e,i){return Math.min(Math.max(t,e),i)}function d(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function u(t){let e=f(t),i=g(t);return e===i&&(i=0),h()*(e-i)+i}function p(t){return(0,s.Et)(t)?t:u(t)}function g(t){return(0,s.Et)(t)?t:t.min}function f(t){return(0,s.Et)(t)?t:t.max}function y(t,e){if(t===e||void 0===e&&(0,s.Et)(t))return t;let i=g(t),n=f(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:y(i,n)}function w(t){let e=t.random,{enable:i,minimumValue:n}=(0,s.Lm)(e)?{enable:e,minimumValue:0}:e;return i?p(y(t.value,n)):p(t.value)}function m(t,e){let i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function v(t,e){return m(t,e).distance}function b(t,e,i){if((0,s.Et)(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return -3*Math.PI/4;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return h()*Math.PI*2}}function _(t){let e=n.M.origin;return e.length=1,e.angle=t,e}function S(t,e,i,s){return n.M.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function P(t){return{x:(t.position?.x??100*h())*t.size.width/100,y:(t.position?.y??100*h())*t.size.height/100}}function x(t){let e={x:t.position?.x!==void 0?p(t.position.x):void 0,y:t.position?.y!==void 0?p(t.position.y):void 0};return P({size:t.size,position:e})}function C(t){return{x:t.position?.x??h()*t.size.width,y:t.position?.y??h()*t.size.height}}function G(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}},66545:(t,e,i)=>{i.d(e,{Z:()=>N,y:()=>j});var s=i(53311),n=i(14563);class o{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}class a{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}var r=i(50530);class l extends r.PV{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class h{constructor(){this.horizontal=new l,this.vertical=new l}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}var c=i(85672);class d{constructor(){this.absorb=new o,this.bounce=new h,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new a}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=(0,c.DT)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class u{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,c.DT)(t.offset)),void 0!==t.value&&(this.value=(0,c.DT)(t.value)))}}class p{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){if(!t)return;void 0!==t.distance&&(this.distance=(0,c.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable);let e=t.rotate?.x??t.rotateX;void 0!==e&&(this.rotate.x=e);let i=t.rotate?.y??t.rotateY;void 0!==i&&(this.rotate.y=i)}}class g{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class f{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,c.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,c.DT)(t.maxSpeed)))}}class y{constructor(){this.clamp=!0,this.delay=new r.PV,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.zw)(this.options,t.options)))}}var w=i(57221);class m{load(t){t&&(void 0!==t.color&&(this.color=w.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class v{constructor(){this.enable=!1,this.length=10,this.fill=new m}get fillColor(){return this.fill.color}set fillColor(t){this.fill.load({color:t})}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),(void 0!==t.fill||void 0!==t.fillColor)&&this.fill.load(t.fill||{color:t.fillColor}),void 0!==t.length&&(this.length=t.length))}}class b{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class _{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,c.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,s.zw)({},t.position)))}}class S{constructor(){this.angle=new u,this.attract=new p,this.center=new g,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new f,this.path=new y,this.outModes=new b,this.random=!1,this.size=!1,this.speed=2,this.spin=new _,this.straight=!1,this.trail=new v,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get collisions(){return!1}set collisions(t){}get noise(){return this.path}set noise(t){this.path=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}load(t){if(!t)return;this.angle.load((0,s.Et)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,c.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,s.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,c.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes??t.outMode??t.out_mode;void 0!==e&&((0,s.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path??t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,c.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}var P=i(55680);class x extends P.Q{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){t?.opacity_min!==void 0&&void 0===t.minimumValue&&(t.minimumValue=t.opacity_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class C extends r.PV{constructor(){super(),this.animation=new x,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(!t)return;super.load(t);let e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=(0,c.DT)(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class G{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(t){this.width=t}get factor(){return this.height}set factor(t){this.height=t}get value_area(){return this.area}set value_area(t){this.area=t}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width??t.area??t.value_area;void 0!==e&&(this.width=e);let i=t.height??t.factor;void 0!==i&&(this.height=i)}}class V{constructor(){this.density=new G,this.limit=0,this.value=0}get max(){return this.limit}set max(t){this.limit=t}load(t){if(!t)return;this.density.load(t.density);let e=t.limit??t.max;void 0!==e&&(this.limit=e),void 0!==t.value&&(this.value=t.value)}}class T{constructor(){this.blur=0,this.color=new w.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=w.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}
1let O="character",A="char",E="image",k="images",R="polygon",M="star";class z{constructor(){this.loadShape=(t,e,i,n)=>{if(!t)return;let o=(0,s.cy)(t),a=o?[]:{},r=o!==(0,s.cy)(this.options[e]),l=o!==(0,s.cy)(this.options[i]);r&&(this.options[e]=a),l&&n&&(this.options[i]=a),this.options[e]=(0,s.zw)(this.options[e]??a,t),(!this.options[i]||n)&&(this.options[i]=(0,s.zw)(this.options[i]??a,t))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[O]??this.options[A]}set character(t){this.options[A]=this.options[O]=t}get custom(){return this.options}set custom(t){this.options=t}get image(){return this.options[E]??this.options[k]}set image(t){this.options[k]=this.options[E]=t}get images(){return this.image}set images(t){this.image=t}get polygon(){return this.options[R]??this.options[M]}set polygon(t){this.options[M]=this.options[R]=t}get stroke(){return[]}set stroke(t){}load(t){if(!t)return;let e=t.options??t.custom;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=(0,s.zw)(this.options[t]??{},i))}this.loadShape(t.character,O,A,!0),this.loadShape(t.polygon,R,M,!1),this.loadShape(t.image??t.images,E,k,!0),void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class L extends P.Q{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){t?.size_min!==void 0&&void 0===t.minimumValue&&(t.minimumValue=t.size_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class I extends r.PV{constructor(){super(),this.animation=new L,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(super.load(t),!t)return;let e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=(0,c.DT)(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class D{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,c.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,c.DT)(t.opacity)))}}class H extends r.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class B{constructor(t,e){this._engine=t,this._container=e,this.bounce=new h,this.collisions=new d,this.color=new n.A,this.color.value="#fff",this.groups={},this.move=new S,this.number=new V,this.opacity=new C,this.reduceDuplicates=!1,this.shadow=new T,this.shape=new z,this.size=new I,this.stroke=new D,this.zIndex=new H}load(t){if(!t)return;if(this.bounce.load(t.bounce),this.color.load(n.A.create(this.color,t.color)),void 0!==t.groups)for(let e in t.groups){let i=t.groups[e];void 0!==i&&(this.groups[e]=(0,s.zw)(this.groups[e]??{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex);let e=t.move?.collisions??t.move?.bounce;void 0!==e&&(this.collisions.enable=e),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,s.zw)({},t.interactivity));let i=t.stroke??t.shape?.stroke;if(i&&(this.stroke=(0,s.wJ)(i,t=>{let e=new D;return e.load(t),e})),this._container){let e=this._engine.plugins.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.plugins.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function N(t,...e){for(let i of e)t.load(i)}function j(t,e,...i){let s=new B(t,e);return N(s,...i),s}},53311:(t,e,i)=>{i.d(e,{AE:()=>y,Al:()=>u,B9:()=>l,E9:()=>T,Et:()=>k,Gv:()=>M,Kg:()=>E,Lm:()=>A,NV:()=>v,TA:()=>x,Tg:()=>b,Tj:()=>f,Tn:()=>R,U6:()=>m,Vh:()=>g,Xs:()=>G,YC:()=>O,cy:()=>z,hn:()=>d,iK:()=>w,jo:()=>S,lV:()=>h,n0:()=>p,pE:()=>_,tG:()=>c,tZ:()=>a,wJ:()=>P,zw:()=>function t(e,...i){for(let s of i){if(null==s)continue;if(!M(s)){e=s;continue}let i=Array.isArray(s);for(let n in i&&(M(e)||!e||!Array.isArray(e))?e=[]:!i&&(M(e)||!e||Array.isArray(e))&&(e={}),s){if("__proto__"===n)continue;let i=s[n],o=e;o[n]=M(i)&&Array.isArray(i)?i.map(e=>t(o[n],e)):t(o[n],i)}}return e}});var s=i(85672),n=i(8269);let o={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function a(){return o}function r(t){let e={bounced:!1}
1,{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:o,velocity:a,factor:r}=t;return s.min<o.min||s.min>o.max||s.max<o.min||s.max>o.max||(i.max>=n.min&&i.max<=(n.max+n.min)/2&&a>0||i.min<=n.max&&i.min>(n.max+n.min)/2&&a<0)&&(e.velocity=-(a*r),e.bounced=!0),e}function l(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function h(t){if(!l()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function c(t){if(!l()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function d(t,e){return t===e||z(e)&&e.indexOf(t)>-1}async function u(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function p(t){return Math.floor((0,s.G0)()*t.length)}function g(t,e,i=!0){return t[void 0!==e&&i?e%t.length:p(t)]}function f(t,e,i,s,n){var o;let a;return o=y(t,s??0),a=!0,n&&"bottom"!==n||(a=o.top<e.height+i.x),a&&(!n||"left"===n)&&(a=o.right>i.x),a&&(!n||"right"===n)&&(a=o.left<e.width+i.y),a&&(!n||"top"===n)&&(a=o.bottom>i.y),a}function y(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function w(t,e){return!!C(e,e=>e.enable&&d(t,e.mode))}function m(t,e,i){P(e,e=>{let s=e.mode;e.enable&&d(t,s)&&P(e.selectors,t=>{i(t,e)})})}function v(t,e){if(e&&t)return C(t,t=>(function(t,e){let i=P(e,e=>t.matches(e));return z(i)?i.some(t=>t):i})(e,t.selectors))}function b(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:n.M.create((0,s._W)(t.options.bounce.horizontal),(0,s._W)(t.options.bounce.vertical))}}function _(t,e){let{x:i,y:n}=t.velocity.sub(e.velocity),[o,a]=[t.position,e.position],{dx:r,dy:l}=(0,s.vr)(a,o);if(i*r+n*l<0)return;let h=-Math.atan2(l,r),c=t.mass,d=e.mass,u=t.velocity.rotate(h),p=e.velocity.rotate(h),g=(0,s.OW)(u,p,c,d),f=(0,s.OW)(p,u,c,d),y=g.rotate(-h),w=f.rotate(-h);t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y,e.velocity.x=w.x*e.factor.x,e.velocity.y=w.y*e.factor.y}function S(t,e){let i=y(t.getPosition(),t.getRadius()),n=r({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:(0,s._W)(t.options.bounce.horizontal)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));let o=r({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:(0,s._W)(t.options.bounce.vertical)});o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function P(t,e){return z(t)?t.map((t,i)=>e(t,i)):e(t,0)}function x(t,e,i){return z(t)?g(t,e,i):t}function C(t,e){return z(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function G(t,e){let i=t.value,n=t.animation,o={delayTime:1e3*(0,s.VG)(n.delay),enable:n.enable,value:(0,s.VG)(t.value)*e,max:(0,s.W9)(i)*e,min:(0,s.Sg)(i)*e,loops:0,maxLoops:(0,s.VG)(n.count),time:0};if(n.enable){switch(o.decay=1-(0,s.VG)(n.decay),n.mode){case"increase":o.status="increasing";break;case"decrease":o.status="decreasing";break;case"random":o.status=(0,s.G0)()>=.5?"increasing":"decreasing"}let t="auto"===n.mode;switch(n.startValue){case"min":o.value=o.min,t&&(o.status="increasing");break;case"max":o.value=o.max,t&&(o.status="decreasing");break;default:o.value=(0,s.U4)(o),t&&(o.status=(0,s.G0)()>=.5?"increasing":"decreasing")}}return o.initialValue=o.value,o}function V(t,e){if("percent"!==t.mode){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function T(t,e){return V(t,e)}function O(t,e){return V(t,e)}function A(t){return"boolean"==typeof t}function E(t){return"string"==typeof t}function k(t){return"number"==typeof t}function R(t){return"function"==typeof t}function M(t){return"object"==typeof t&&null!==t}function z(t){return Array.isArray(t)}},22608:(t,e,i)=>{i.d(e,{$k:()=>X});var s=i(36861),n=i(53311),o=i(979),a=i(33384);class r{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw&&e.afterDraw(t)}
1,this._applyPreDrawUpdaters=(t,e,i,s,n,o)=>{for(let a of this._preDrawUpdaters){if(a.getColorStyles){let{fill:o,stroke:r}=a.getColorStyles(e,t,i,s);o&&(n.fill=o),r&&(n.stroke=r)}if(a.getTransformValues){let t=a.getTransformValues(e);for(let e in t)!function(t,e,i){let s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}(o,t,e)}a.beforeDraw&&a.beforeDraw(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize&&t.resize()},this._getPluginParticleColors=t=>{let e,i;for(let s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=(0,a.R5)(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=(0,a.R5)(s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color,i=(0,a.BN)(e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=(0,a.xx)(e,e.a)}},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?(this._originalStyle=(0,n.zw)({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle(),e.style){if(!i||!e.style)continue;let s=e.style[i];s&&t.style.setProperty(i,s,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions,e=t.particles.move.trail,i=e.fill;if(e.enable){if(i.color){let e=(0,a.BN)(i.color);if(!e)return;let s=t.particles.move.trail;this._trailFill={color:{...e},opacity:1/s.length}}else await new Promise((t,s)=>{if(!i.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._trailFill={image:n,opacity:1/e.length},t()}),n.addEventListener("error",t=>{s(t.error)}),n.src=i.image})}},this._paintBase=t=>{this.draw(e=>(0,o.Sn)(e,this.size,t))},this._paintImage=(t,e)=>{this.draw(i=>(0,o.Md)(i,this.size,t,e))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(t=>
1t.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(e=>e.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;if(!(t&&e))return;let i=t.style;i.position=e.position,i.zIndex=e.zIndex,i.top=e.top,i.left=e.left,i.width=e.width,i.height=e.height},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let e="important",i=t.style;i.setProperty("position","fixed",e),i.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),e),i.setProperty("top","0",e),i.setProperty("left","0",e),i.setProperty("width","100%",e),i.setProperty("height","100%",e)},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(){let t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase((0,a.xx)(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(t=>{(0,o.IU)(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t&&t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){let e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;let i=t.getRadius();if(i<=0)return;let s=t.getFillColor(),n=t.getStrokeColor()??s,[r,l]=this._getPluginParticleColors(t);r||(r=s),l||(l=n),(r||l)&&this.draw(s=>{let n=this.container,h=n.actualOptions,c=t.options.zIndex,d=(1-t.zIndexFactor)**c.opacityRate,u=t.bubble.opacity??t.opacity?.value??1,p=t.strokeOpacity??u,g=u*d,f={},y={fill:r?(0,a.LC)(r,g):void 0};y.stroke=l?(0,a.LC)(l,p*d):y.fill,this._applyPreDrawUpdaters(s,t,i,g,y,f),(0,o.p0)({container:n,context:s,particle:t,delta:e,colorStyles:y,backgroundMask:h.backgroundMask.enable,composite:h.backgroundMask.composite,radius:i*(1-t.zIndexFactor)**c.sizeRate,opacity:g,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(s=>(0,o.Wb)(s,t,e,i))}drawPlugin(t,e){this.draw(i=>(0,o.e_)(i,t,e))}
1async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=(0,n.tG)(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(t){(0,n.tZ)().error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let t=this.container.actualOptions.background,e=this.element;if(!e)return;let i=e.style;if(i){if(t.color){let e=(0,a.BN)(t.color);i.backgroundColor=e?(0,a.xx)(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){for(let[,t]of(this._resizePlugins=[],this.container.plugins))t.resize&&this._resizePlugins.push(t),(t.particleFillColor||t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){for(let t of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles||t.getTransformValues||t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&s.eb in t.dataset?"true"===t.dataset[s.eb]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,n.zw)({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}
1),this.container.retina.init(),this.initBackground()}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?((0,o.IU)(e,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s={width:this.element.offsetWidth*e,height:this.element.offsetHeight*e};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;let n={...i};return this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&(this.resizeFactor={width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>(0,o.IU)(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;let t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function l(t,e,i,s,o){if(s){let s={passive:!0};(0,n.Lm)(o)?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else t.removeEventListener(e,i,o)}class h{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=new Date().getTime();let o=i.interactivity.events.onClick;(0,n.wJ)(o.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,s=i.defaultThemes,n=t.matches?s.dark:s.light,o=i.themes.find(t=>t.name===n);o&&o.default.auto&&e.loadTheme(n)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{let t=this.container.canvas;t&&await t.windowResize()},1e3*this.container.actualOptions.interactivity.events.resize.delay)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,n=this.container,o=n.actualOptions,a=n.interactivity.element;if(!a)return;let r=n.canvas.element;r&&(r.style.pointerEvents=a===r?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(l(a,s.Rb,i.mouseMove,e),l(a,s.s7,i.touchStart,e),l(a,s.DG,i.touchMove,e),o.interactivity.events.onClick.enable?(l(a,s.Bp,i.touchEndClick,e),l(a,s.vo,i.mouseUp,e),l(a,s.ms,i.mouseDown,e)):l(a,s.Bp,i.touchEnd,e),l(a,t,i.mouseLeave,e),l(a,s.G3,i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,n=i.actualOptions.interactivity.detectsOn,o=i.canvas.element,a=s.Z0;"window"===n?(i.interactivity.element=window,a=s.sf):"parent"===n&&o?i.interactivity.element=o.parentElement??o.parentNode:i.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),document&&l(document,s.nK,e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=(0,n.lV)("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener){l(i,"change",e.themeChange,t);return}void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange))}},this._manageResize=t=>{let e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver){l(window,s.NF,e.resize,t);return}let n=i.canvas.element;this._resizeObserver&&!t?(n&&this._resizeObserver.unobserve(n),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&n&&(this._resizeObserver=new ResizeObserver(async t=>{t.find(t=>t.target===n)&&await this._handleWindowResize()}),this._resizeObserver.observe(n))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{let e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1,o=s.position;if(o&&i.interactivity.events.onClick.enable){for(let[,t]of e.plugins)if(t.clickPositionValid&&
1(n=t.clickPositionValid(o)))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=s.Z0,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e;let i=this.container,n=i.actualOptions,o=i.interactivity,a=i.canvas.element;if(!o||!o.element)return;if(o.mouse.inside=!0,t.type.startsWith("pointer")){if(this._canPush=!0,o.element===window){if(a){let i=a.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if("parent"===n.interactivity.detectsOn){let i=t.target,s=t.currentTarget;if(i&&s&&a){let n=i.getBoundingClientRect(),o=s.getBoundingClientRect(),r=a.getBoundingClientRect();e={x:t.offsetX+2*n.left-(o.left+r.left),y:t.offsetY+2*n.top-(o.top+r.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==t.type,a){let i=t.touches[t.touches.length-1],s=a.getBoundingClientRect();e={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}let r=i.retina.pixelRatio;e&&(e.x*=r,e.y*=r),o.mouse.position=e,o.status=s.Rb},this._touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.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)}}var c=i(57221);class d{constructor(){this.color=new c.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=c.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class u{constructor(){this.color=new c.O,this.color.value="#fff",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=c.O.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class p{constructor(){this.composite="destination-out",this.cover=new u,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=(0,n.Kg)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class g{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class f{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class y{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(t){this.elementId=t}get elementId(){return this.ids}set elementId(t){this.ids=t}get ids(){return(0,n.wJ)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,n.wJ)(t,t=>`#${t}`)}load(t){if(!t)return;let e=t.ids??t.elementId??t.el;void 0!==e&&(this.ids=e),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class w{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class m{constructor(){this.enable=!1,this.mode=[],this.parallax=new w}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class v{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class b{constructor(){this.onClick=new f,this.onDiv=new y,this.onHover=new m,this.resize=new v}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){if(!t)return;this.onClick.load(t.onClick??t.onclick);let e=t.onDiv??t.ondiv;void 0!==e&&(this.onDiv=(0,n.wJ)(e,t=>{let e=new y;return e.load(t),e})),this.onHover.load(t.onHover??t.onhover),(0,n.Lm)(t.resize)?this.resize.enable=t.resize:this.resize.load(t.resize)}}class _{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t||!this._container)return;let e=this._engine.plugins.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class S{constructor(t,e){this.detectsOn="window",this.events=new b,this.modes=new _(t,e)}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){if(!t)return;let e=t.detectsOn??t.detect_on;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class P{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,n.zw)({},t.options)))}}class x{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,n.zw)({},t.options)))}}class C{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class G{constructor(){this.name="",this.default=new C}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,n.zw)({},t.options)))}}var V=i(66545),T=i(85672);class O{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&"any"===t.default.mode),this._importPreset=t=>{this.load(this._engine.plugins.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new d,this.backgroundMask=new p,this.defaultThemes={},this.delay=0,this.fullScreen=new g,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new S(t,e),this.manualParticles=[],this.particles=(0,V.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}load(t){if(!t)return;void 0!==t.preset&&(0,n.wJ)(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.delay&&(this.delay=(0,T.DT)(t.delay));let e=t.detectRetina??t.retina_detect;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,T.DT)(t.duration));let i=t.fpsLimit??t.fps_limit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);let s=t.fullScreen??t.backgroundMode;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new P;return e.load(t),e})),this.particles.load(t.particles),this.style=(0,n.zw)(this.style,t.style),this._engine.plugins.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let o=this._engine.plugins.interactors.get(this._container);if(o)for(let e of o)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new x;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(let e of t.themes){let t=this.themes.find(t=>t.name===e.name);if(t)t.load(e);else{let t=new G;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);let s=this.responsive.find(i=>"screen"===i.mode&&screen?i.maxWidth>
1screen.availWidth:i.maxWidth*e>t);return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=(0,n.lV)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}class A{constructor(t,e){this.container=e,this._engine=t,this._interactors=t.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&await e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode&&e.handleClickMode(t)}init(){for(let t of(this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case"external":this._externalInteractors.push(t);break;case"particles":this._particleInteractors.push(t)}t.init()}}async particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}async reset(t){for(let e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(let e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}var E=i(8269),k=i(61830);let R=t=>{if(!(0,n.hn)(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)};class M{constructor(t,e,i,a,r,l){this.container=i,this._calcPosition=(t,e,i,s=0)=>{for(let[,s]of t.plugins){let t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return k.p.create(t.x,t.y,i)}let n=t.canvas.size,o=(0,T.Nx)({size:n,position:e}),a=k.p.create(o.x,o.y,i),r=this.getRadius(),l=this.options.move.outModes,h=e=>{R({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:a.x,maxCoord:t.canvas.size.width,setCb:t=>a.x+=t,radius:r})},c=e=>{R({outMode:e,checkModes:["bounce","bounce-vertical"],coord:a.y,maxCoord:t.canvas.size.height,setCb:t=>a.y+=t,radius:r})};return(h(l.left??l.default),h(l.right??l.default),c(l.top??l.default),c(l.bottom??l.default),this._checkOverlap(a,s))?this._calcPosition(t,void 0,i,s+1):a},this._calculateVelocity=()=>{let t=(0,T.$m)(this.direction).copy(),e=this.options.move;if("inside"===e.direction||"outside"===e.direction)return t;let i=Math.PI/180*(0,T.VG)(e.angle.value),s=Math.PI/180*(0,T.VG)(e.angle.offset),n={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=(0,T.U4)((0,T.DT)(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=(0,T.G0)()),t},this._checkOverlap=(t,e=0)=>{let i=this.options.collisions,n=this.getRadius();if(!i.enable)return!1;let o=i.overlap;if(o.enable)return!1;let a=o.retries;if(a>=0&&e>a)throw Error(`${s.dI} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>(0,T.Yf)(t,e.position)<n+e.getRadius())},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;let e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?(0,o.yx)(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{let e=this.container,i=(0,T.VG)(this.options.zIndex.value);this.position=this._calcPosition(e,t,(0,T.qE)(i,0,e.zLayers)),this.initialPosition=this.position.copy();let s=e.canvas.size;switch(this.moveCenter={...(0,n.E9)(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=(0,T.JY)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside"}this.offset=E.M.origin},this._loadShapeData=(t,e)=>{let i=t.options[this.shape];if(i)return(0,n.zw)({close:t.close,fill:t.fill},(0,n.TA)(i,this.id,e))},this._engine=t,this.init(e,a,r,l)}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let e=this.container,i=this.pathGenerator;for(let[,i]of e.plugins)i.particleDestroyed&&i.particleDestroyed(this,t);for(let i of e.particles.updaters)i.particleDestroyed&&i.particleDestroyed(this,t);i&&i.reset(this)}draw(t){let e=this.container;for(let[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);
1e.canvas.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??(0,a.O_)(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}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??(0,a.O_)(this.strokeColor))}init(t,e,i,s){let o=this.container,r=this._engine;this.id=t,this.group=s,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;let l=o.retina.pixelRatio,h=o.actualOptions,c=(0,V.y)(this._engine,o,h.particles),d=c.shape.type,{reduceDuplicates:u}=c;this.shape=(0,n.TA)(d,this.id,u);let p=c.shape;if(i&&i.shape&&i.shape.type){let t=i.shape.type,e=(0,n.TA)(t,this.id,u);e&&(this.shape=e,p.load(i.shape))}this.shapeData=this._loadShapeData(p,u),c.load(i);let g=this.shapeData;g&&c.load(g.particles);let f=new S(r,o);f.load(o.actualOptions.interactivity),f.load(c.interactivity),this.interactivity=f,this.fill=g?.fill??c.shape.fill,this.close=g?.close??c.shape.close,this.options=c;let y=this.options.move.path;this.pathDelay=1e3*(0,T._W)(y.delay),y.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(y.generator),this.pathGenerator&&o.addPath(y.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=(0,n.Xs)(this.options.size,l),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-(0,T.VG)(this.options.move.decay);let w=o.particles;w.needsSort=w.needsSort||w.lastZIndex<this.position.z,w.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let m=o.drawers.get(this.shape);!m&&(m=this._engine.plugins.getShapeDrawer(this.shape))&&o.drawers.set(this.shape,m),m&&m.loadShape&&m.loadShape(this);let v=m?.getSidesCount;for(let t of(v&&(this.sides=v(this)),this.spawning=!1,this.shadowColor=(0,a.BN)(this.options.shadow.color),o.particles.updaters))t.init(this);for(let t of o.particles.movers)t.init&&t.init(this);for(let[,t]of(m&&m.particleInit&&m.particleInit(o,this),o.plugins))t.particleCreated&&t.particleCreated(this)}isInsideCanvas(){let t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let t of this.container.particles.updaters)t.reset&&t.reset(this)}}class z{constructor(t,e){this.position=t,this.particle=e}}var L=i(86842),I=i(32681);class D{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let o=0;o<4;o++)this._subs.push(new D(new I.M(t+i/2*(o%2),e+s/2*(Math.round(o/2)-o%2),i/2,s/2),n));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(e=>e.insert(t))))}query(t,e,i){let s=i||[];if(!t.intersects(this.rectangle))return[];for(let i of this._points)!t.contains(i.position)&&(0,T.Yf)(t.position,i.position)>i.particle.getRadius()&&(!e||e(i.particle))||s.push(i.particle);if(this._divided)for(let i of this._subs)i.query(t,e,s);return s}queryCircle(t,e,i){return this.query(new L.j(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new I.M(t.x,t.y,e.width,e.height),i)}}let H=t=>new I.M(-t.width/4,-t.height/4,3*t.width/2,3*t.height/2);class B{constructor(t,e){this._applyDensity=(t,e,i)=>{if(!t.number.density?.enable)return;let s=t.number,n=this._initDensityFactor(s.density),o=s.value,a=s.limit>0?s.limit:o,r=Math.min(o,a)*n+e,l=Math.min(this.count,this.filter(t=>t.group===i).length);this.limit=s.limit*n,l<r?this.push(Math.abs(r-l),void 0,t,i):l>r&&this.removeQuantity(l-r,i)},this._initDensityFactor=t=>{let e=this._container;if(!e.canvas.element||!t.enable)return 1;let i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)},this._pushParticle=(t,e,i,o)=>{try{let s=this.pool.pop();s?s.init(this._nextId,t,e,i):s=new M(this._engine,this._nextId,this._container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this._array.push(s),this._zArray.push(s),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:s}}),s}catch(t){(0,n.tZ)().warning(`${s.dI} adding particle: ${t}`);return}},this._removeParticle=(t,e,i)=>{let s=this._array[t];if(!s||s.group!==e)return!1;s.destroy(i);let n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),this.pool.push(s),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:s}}),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new A(t,e);let i=e.canvas.size;this.quadTree=new D(H(i),4),this.movers=this._engine.plugins.getMovers(e,!0),this.updaters=this._engine.plugins.getUpdaters(e,!0)}get count(){return this._array.length}
1addManualParticles(){let t=this._container;for(let e of t.actualOptions.manualParticles)this.addParticle(e.position?(0,n.E9)(e.position,t.canvas.size):void 0,e.options)}addParticle(t,e,i,s){let n=this._container.actualOptions.particles.number.limit;if(n>0){let t=this.count+1-n;t>0&&this.removeQuantity(t)}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(t){let e=this._container;for(let[,i]of(e.canvas.clear(),await this.update(t),e.plugins))e.canvas.drawPlugin(i,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}handleClickMode(t){this._interactionManager.handleClickMode(t)}init(){let t=this._container,e=t.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;for(let[,e]of(this.updaters=this._engine.plugins.getUpdaters(t,!0),this._interactionManager.init(),t.plugins))if(void 0!==e.particlesInitialization&&(i=e.particlesInitialization()),i)break;for(let[,e]of(this._interactionManager.init(),t.pathGenerators))e.init(t);if(this.addManualParticles(),!i){for(let t in e.particles.groups){let i=e.particles.groups[t];for(let s=this.count,n=0;n<i.number?.value&&s<e.particles.number.value;s++,n++)this.addParticle(void 0,i,t)}for(let t=this.count;t<e.particles.number.value;t++)this.addParticle()}}push(t,e,i,s){this.pushing=!0;for(let n=0;n<t;n++)this.addParticle(e?.position,i,s);this.pushing=!1}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let o=t;n<e&&o<this.count;o++)this._removeParticle(o--,i,s)&&n++}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){let t=this._container.actualOptions,e=t.particles.groups;for(let t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}async update(t){let e=this._container,i=new Set;for(let[,t]of(this.quadTree=new D(H(e.canvas.size),4),e.pathGenerators))t.update();for(let[,i]of e.plugins)i.update&&i.update(t);for(let s of this._array){let n=e.canvas.resizeFactor;for(let[,e]of(n&&!s.ignoresResizeRatio&&(s.position.x*=n.width,s.position.y*=n.height,s.initialPosition.x*=n.width,s.initialPosition.y*=n.height),s.ignoresResizeRatio=!1,await this._interactionManager.reset(s),this._container.plugins)){if(s.destroyed)break;e.particleUpdate&&e.particleUpdate(s,t)}for(let e of this.movers)e.isEnabled(s)&&e.move(s,t);if(s.destroyed){i.add(s);continue}this.quadTree.insert(new z(s.getPosition(),s))}if(i.size){let t=t=>!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t),this.pool.push(...i)}for(let e of(await this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||await this._interactionManager.particlesInteract(e,t)}if(delete e.canvas.resizeFactor,this.needsSort){let t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id),this.lastZIndex=t[t.length-1].position.z,this.needsSort=!1}}}class N{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||(0,n.B9)()?1:window.devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio;if(t.canvas.element){let e=t.canvas.element;t.canvas.size.width=e.offsetWidth*i,t.canvas.size.height=e.offsetHeight*i}let s=e.particles,o=s.move;this.attractDistance=(0,T.VG)(o.attract.distance)*i,this.maxSpeed=(0,T.VG)(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=(0,T.VG)(s.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,o=t.retina;o.attractDistance=(0,T.VG)(s.attract.distance)*i,o.moveDrift=(0,T.VG)(s.drift)*i,o.moveSpeed=(0,T.VG)(s.speed)*i,o.sizeAnimationSpeed=(0,T.VG)(e.size.animation.speed)*i;let a=o.maxDistance;a.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,a.vertical=void 0!==n.vertical?n.vertical*i:void 0,o.maxSpeed=(0,T.VG)(s.gravity.maxSpeed)*i}}function j(t){return t&&!t.destroyed}function U(t,e,...i){let s=new O(t,e);return(0,V.Z)(s,...i),s}let F={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class ${constructor(t,e,i){this.id=e,this._intersectionManager=t=>{if(j(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play:this.pause)()},this._nextFrame=async t=>{try{if(!this.smooth&&void 0!==this.lastFrameTime&&t<this.lastFrameTime+1e3/this.fpsLimit){this.draw(!1);return}this.lastFrameTime??=t;let e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/1e3}}(t-this.lastFrameTime,this.fpsLimit,this.smooth);if(this.addLifeTime(e.value),this.lastFrameTime=t,e.value>1e3){this.draw(!1);return}if(await this.particles.draw(e),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(t){(0,n.tZ)().error(`${s.dI} in animation loop`,t)}},this._engine=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 N(this),this.canvas=new r(this),this.particles=new B(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=U(this._engine,this),this.actualOptions=U(this._engine,this),this._eventListeners=new h(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(t=>this._intersectionManager(t))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!j(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,s)=>{if(!j(this))return;let n=this.retina.pixelRatio,o={x:i.x*n,y:i.y*n};t(e,this.particles.quadTree.queryCircle(o,s*n))},s=!1,n=!1;e.addEventListener("click",t=>{if(!j(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)}),e.addEventListener("touchstart",()=>{j(this)&&(s=!0,n=!1)}),e.addEventListener("touchmove",()=>{j(this)&&(n=!0)}),e.addEventListener("touchend",t=>{if(j(this)){if(s&&!n){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let s=this.canvas.element,n=s?s.getBoundingClientRect():void 0;i(t,{x:e.clientX-(n?n.left:0),y:e.clientY-(n?n.top:0)},Math.max(e.radiusX,e.radiusY))}s=!1,n=!1}}),e.addEventListener("touchcancel",()=>{j(this)&&(s=!1,n=!1)})}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!j(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e??F),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!j(this))return;for(let[,t]of(this.stop(),this.particles.destroy(),this.canvas.destroy(),this.drawers))t.destroy&&t.destroy(this);for(let t of this.drawers.keys())this.drawers.delete(t);this._engine.plugins.destroy(this),this.destroyed=!0;let t=this._engine.dom(),e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(t){if(!j(this))return;let e=t;this._drawAnimationFrame=requestAnimationFrame(async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this._nextFrame(t)})}async export(t,e={}){for(let[,i]of this.plugins){if(!i.export)continue;let s=await i.export(t,e);if(s.supported)return s.blob}(0,n.tZ)().error(`${s.dI} - Export plugin with type ${t} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&j(this)}handleClickMode(t){if(j(this))for(let[,e]of(this.particles.handleClickMode(t),this.plugins))e.handleClickMode&&e.handleClickMode(t)}
1async init(){if(j(this)){for(let t of this._engine.plugins.getSupportedShapes()){let e=this._engine.plugins.getShapeDrawer(t);e&&this.drawers.set(t,e)}for(let[t,e]of(this._options=U(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=U(this._engine,this,this._options),this._engine.plugins.getAvailablePlugins(this)))this.plugins.set(t,e);for(let[,t]of(this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=1e3*(0,T.VG)(this.actualOptions.duration),this._delay=1e3*(0,T.VG)(this.actualOptions.delay),this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth,this.drawers))t.init&&await t.init(this);for(let[,t]of this.plugins)t.init&&await t.init();for(let[,t]of(this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity(),this.plugins))t.particlesSetup&&t.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}}async loadTheme(t){j(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(j(this)&&(void 0!==this._drawAnimationFrame&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(t){if(!j(this))return;let e=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),e)for(let[,t]of this.plugins)t.play&&t.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(e||!1)}async refresh(){if(j(this))return this.stop(),this.start()}async reset(){if(j(this))return this._initialSourceOptions=void 0,this._options=U(this._engine,this),this.actualOptions=U(this._engine,this,this._options),this.refresh()}setNoise(t,e,i){j(this)&&this.setPath(t,e,i)}setPath(t,e,i){if(!t||!j(this))return;let s={...F};(0,n.Tn)(t)?(s.generate=t,e&&(s.init=e),i&&(s.update=i)):(s.generate=t.generate||s.generate,s.init=t.init||s.init,s.update=t.update||s.update),this.addPath("default",s,!0)}async start(){j(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{this._delayTimeout=setTimeout(async()=>{for(let[,t]of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins))t.start&&await t.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),t()},this._delay)}))}stop(){if(j(this)&&this.started){for(let[,t]of(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),this.plugins))t.stop&&t.stop();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth!==t&&(this.responsiveMaxWidth=t,!0)}}class q{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){let i=this._listeners.get(t);i&&i.forEach(t=>t(e))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){let i=this._listeners.get(t);if(!i)return;let s=i.length,n=i.indexOf(e);n<0||(1===s?this._listeners.delete(t):i.splice(n,1))}}function Q(t,e,i,s=!1){let n=e.get(t);return(!n||s)&&(n=[...i.values()].map(e=>e(t)),e.set(t,n)),n}class W{constructor(t){this._engine=t,this.plugins=[],this._initializer
1s={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.drawers=new Map,this.pathGenerators=new Map}addInteractor(t,e){this._initializers.interactors.set(t,e)}addParticleMover(t,e){this._initializers.movers.set(t,e)}addParticleUpdater(t,e){this._initializers.updaters.set(t,e)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){(i||!this.getPreset(t))&&this.presets.set(t,e)}addShapeDrawer(t,e){(0,n.wJ)(t,t=>{this.getShapeDrawer(t)||this.drawers.set(t,e)})}destroy(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}getInteractors(t,e=!1){return Q(t,this.interactors,this._initializers.interactors,e)}getMovers(t,e=!1){return Q(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(t,e=!1){return Q(t,this.updaters,this._initializers.updaters,e)}loadOptions(t,e){for(let i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){let s=this.updaters.get(t);if(s)for(let t of s)t.loadOptions&&t.loadOptions(e,...i)}}async function Y(t){let e=(0,n.TA)(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?i.json():((0,n.tZ)().error(`${s.dI} ${i.status} while retrieving config file`),t.fallback)}class K{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new q,this._initialized=!1,this.plugins=new W(this)}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get version(){return"2.12.0"}addConfig(t,e){(0,n.Kg)(t)?e&&(e.name=t,this._configs.set(t,e)):this._configs.set(t.name??"default",t)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this.plugins.addInteractor(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this.plugins.addParticleMover(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this.plugins.addParticleUpdater(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.plugins.addPathGenerator(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.plugins.addPlugin(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){this.plugins.addPreset(t,e,i),await this.refresh(s)}async addShape(t,e,i,s,o,a=!0){let r;let l=a,h,c,d;(0,n.Lm)(i)?(l=i,h=void 0):h=i,(0,n.Lm)(s)?(l=s,c=void 0):c=s,(0,n.Lm)(o)?(l=o,d=void 0):d=o,r=(0,n.Tn)(e)?{afterEffect:c,destroy:d,draw:e,init:h}:e,this.plugins.addShapeDrawer(t,r),await this.refresh(l)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){let e=this.dom(),i=e[t];if(!i||i.destroyed){e.splice(t,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(t,e){return this.loadFromArray(t,e)}async loadFromArray(t,e,i){let s;return t.id||t.element||t.url||t.options?s=t:(s={},(0,n.Kg)(t)?s.id=t:s.options=t,(0,n.Et)(e)?s.index=e:s.options=e??s.options,s.index=i??s.index),this._loadParams(s)}async loadJSON(t,e,i){let s,o;return(0,n.Et)(e)||void 0===e?s=t:(o=t,s=e),this._loadParams({id:o,url:s,index:i})}async refresh(t=!0){t&&this.dom().forEach(t=>t.refresh())}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}async set(t,e,i,s){let o={index:s};return(0,n.Kg)(t)?o.id=t:o.element=t,e instanceof HTMLElement?o.element=e:o.options=e,(0,n.Et)(i)?o.index=i:o.options=i??o.options,this._loadParams(o)}async setJSON(t,e,i,s){let n={};return t instanceof HTMLElement?(n.element=t,n.url=e,n.index=i):(n.id=t,n.element=e,n.url=i,n.index=s),this._loadParams(n)}setOnClickHandler(t){let e=this.dom();if(!e.length)throw Error(`${s.dI} can only set click handlers after calling tsParticles.load()`);for(let i of e)i.addClickHandler(t)}async _loadParams(t){let e;let i=t.id??`tsparticles${Math.floor(1e4*(0,T.G0)())}`,{index:o,url:a}=t,r=a?await Y({fallback:t.options,url:a,index:o}):t.options,l=t.element??document.getElementById(i);l||((l=document.createElement("div")).id=i,document.body.append(l));let h=(0,n.TA)(r,o),c=this.dom(),d=c.findIndex(t=>t.id===i);if(d>=0){let t=this.domItem(d);t&&!t.destroyed&&(t.destroy(),c.splice(d,1))}if("canvas"===l.tagName.toLowerCase())(e=l).dataset[s.eb]="false";else{let t=l.getElementsByTagName("canvas");t.length?(e=t[0]).dataset[s.eb]="false":((e=document.createElement("canvas")).dataset[s.eb]="true",l.appendChild(e))}e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%");let u=new $(this,i,h);return d>=0?c.splice(d,0,u):c.push(u),u.canvas.loadCanvas(e),await u.start(),u}}class J{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,a.YL)(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,a.YL)({h:(0,T.VG)(e.h),l:(0,T.VG)(e.l),s:(0,T.VG)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;let e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,a.ay)({a:e.length>4?(0,T.M3)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class Z{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,T.VG)(e.r),g:(0,T.VG)(e.g),b:(0,T.VG)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,T.M3)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}
1let X=function(){let t=new Z,e=new J;(0,a.a9)(t),(0,a.a9)(e);let i=new K;return i.init(),i}();(0,n.B9)()||(window.tsParticles=X)},28701:()=>{!function(){try{if("undefined"==typeof window)return;"SVGPathSeg"in window||(window.SVGPathSeg=function(t,e,i){this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=i},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",t)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",t),this._x=e,this._y=i},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",t),this._x=e,this._y=i},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",t),this._x=e,this._y=i},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)}
vendor: 26,618 bytes, line 1
1,Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",t),this._x=e,this._y=i},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(t,e,i,s,n,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",t),this._x=e,this._y=i,this._x1=s,this._y1=n,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(t,e,i,s,n,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",t),this._x=e,this._y=i,this._x1=s,this._y1=n,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(t,e,i,s,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",t),this._x=e,this._y=i,this._x1=s,this._y1=n},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(t,e,i,s,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",t),this._x=e,this._y=i,this._x1=s,this._y1=n},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(t,e,i,s,n,o,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",t),this._x=e,this._y=i,this._r1=s,this._r2=n,this._angle=o,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag?"1":"0"} ${this._sweepFlag?"1":"0"} ${this._x} ${this._y}`},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(t,e,i,s,n,o,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",t),this._x=e,this._y=i,this._r1=s,this._r2=n,this._angle=o,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag?"1":"0"} ${this._sweepFlag?"1":"0"} ${this._x} ${this._y}`},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",t),this._x=e},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x}`},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",t),this._x=e},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x}`},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",t),this._y=e},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._y}`},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",t),this._y=e},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._y}`},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,s,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",t),this._x=e,this._y=i,this._x2=s,this._y2=n},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(t,e,i,s,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",t),this._x=e,this._y=i,this._x2=s,this._y2=n},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new window.SVGPathSegMovetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new window.SVGPathSegMovetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new window.SVGPathSegLinetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new window.SVGPathSegLinetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,i,s,n,o){return new window.SVGPathSegCurvetoCubicAbs(void 0,t,e,i,s,n,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,i,s,n,o){return new window.SVGPathSegCurvetoCubicRel(void 0,t,e,i,s,n,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,i,s){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,t,e,i,s)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,i,s){return new window.SVGPathSegCurvetoQuadraticRel(void 0,t,e,i,s)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,i,s,n,o,a){return new window.SVGPathSegArcAbs(void 0,t,e,i,s,n,o,a)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,i,s,n,o,a){return new window.SVGPathSegArcRel(void 0,t,e,i,s,n,o,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new window.SVGPathSegLinetoHorizontalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new window.SVGPathSegLinetoHorizontalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new window.SVGPathSegLinetoVerticalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new window.SVGPathSegLinetoVerticalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,s){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,t,e,i,s)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,i,s){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,t,e,i,s)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,t,e)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw"Invalid arguments.";let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));let i=e.pathSegList.numberOfItems-1;if(i<=0)return 0;do{if(e.pathSegList.removeItem(i),t>e.getTotalLength())break;i--}while(i>0);return i})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathSegList.prototype,"length",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(!this._pathElement)return;let e=!1;t.forEach(function(t){"d"==t.attributeName&&(e=!0)}),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(t){t._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},window.SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);let e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},window.SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList._pathSegArrayAsString=function(t){let e="",i=!0;return t.forEach(function(t){i?(i=!1,e+=t._asPathString()):e+=` ${t._asPathString()}`}),e},window.SVGPathSegList.prototype._parsePath=function(t){if(!t||!t.length)return[];let e=this,i=function(){this.pathSegList=[]};i.prototype.appendSegment=function(t){this.pathSegList.push(t)};let s=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};
1s.prototype._isCurrentSpace=function(){let t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||" "==t||"\r"==t||"\f"==t)},s.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},s.prototype._skipOptionalSpacesOrDelimiter=function(){return(!(this._currentIndex<this._endIndex)||!!this._isCurrentSpace()||","==this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},s.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},s.prototype.peekSegmentType=function(){let t=this._string[this._currentIndex];return this._pathSegTypeFromChar(t)},s.prototype._pathSegTypeFromChar=function(t){switch(t){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},s.prototype._nextCommandHelper=function(t,e){return("+"==t||"-"==t||"."==t||t>="0"&&t<="9")&&e!=window.SVGPathSeg.PATHSEG_CLOSEPATH?e==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:e==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:e:window.SVGPathSeg.PATHSEG_UNKNOWN},s.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;let t=this.peekSegmentType();return t==window.SVGPathSeg.PATHSEG_MOVETO_ABS||t==window.SVGPathSeg.PATHSEG_MOVETO_REL},s.prototype._parseNumber=function(){let t=0,e=0,i=1,s=0,n=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,n=-1),this._currentIndex==this._endIndex||("0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))return;let r=this._currentIndex;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)this._currentIndex++;if(this._currentIndex!=r){let t=this._currentIndex-1,i=1;for(;t>=r;)e+=i*(this._string.charAt(t--)-"0"),i*=10}if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||"0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)i*=10,s+=(this._string.charAt(this._currentIndex)-"0")/i,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if
1(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),this._currentIndex>=this._endIndex||"0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}let l=e+s;if(l*=n,t&&(l*=Math.pow(10,o*t)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l},s.prototype._parseArcFlag=function(){if(this._currentIndex>=this._endIndex)return;let t=!1,e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t},s.prototype.parseSegment=function(){let t;let i=this._string[this._currentIndex],s=this._pathSegTypeFromChar(i);if(s==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN||(s=this._nextCommandHelper(i,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=s,s){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(e);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicRel(e,t.x,t.y,t.x1,t.y1,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(e,t.x,t.y,t.x1,t.y1,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return t={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(e,t.x,t.y,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return t={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(e,t.x,t.y,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(e,t.x,t.y,t.x1,t.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(e,t.x,t.y,t.x1,t.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(e,t.x,t.y,t.x1,t.y1,t.arcAngle,t.arcLarge,t.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(e,t.x,t.y,t.x1,t.y1,t.arcAngle,t.arcLarge,t.arcSweep);default:throw"Unknown path seg type."}};let n=new i,o=new s(t);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){let t=o.parseSegment();if(!t)return[];n.appendSegment(t)}return n.pathSegList})}catch(t){console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/matteobruni/tsparticles",t)}}()},2895:(t,e,i)=>{i.d(e,{G:()=>im});var s=i(53311),n=i(57221),o=i(85672),a=i(50530);
1class r{constructor(){this.radius=0,this.mass=0}load(t){t&&(void 0!==t.mass&&(this.mass=t.mass),void 0!==t.radius&&(this.radius=t.radius))}}class l extends a.PV{constructor(){super(),this.density=5,this.value=50,this.limit=new r}load(t){t&&(super.load(t),void 0!==t.density&&(this.density=t.density),(0,s.Et)(t.limit)?this.limit.radius=t.limit:this.limit.load(t.limit))}}class h{constructor(){this.color=new n.O,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new l}load(t){void 0!==t&&(void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,o.DT)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,o.DT)(t.position.y))),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.orbits&&(this.orbits=t.orbits))}}var c=i(8269),d=i(33384);class u{constructor(t,e,i,s){this.absorbers=t,this.container=e,this._calcPosition=()=>{let t=(0,o.l1)({size:this.container.canvas.size,position:this.options.position});return c.M.create(t.x,t.y)},this._updateParticlePosition=(t,e)=>{if(t.destroyed)return;let i=this.container,s=i.canvas.size;if(t.needsNewPosition){let e=(0,o.Mh)({size:s});t.position.setTo(e),t.velocity.setTo(t.initialVelocity),t.absorberOrbit=void 0,t.needsNewPosition=!1}
1if(this.options.orbits){if(void 0===t.absorberOrbit&&(t.absorberOrbit=c.M.create(0,0),t.absorberOrbit.length=(0,o.Yf)(t.getPosition(),this.position),t.absorberOrbit.angle=(0,o.G0)()*Math.PI*2),t.absorberOrbit.length<=this.size&&!this.options.destroy){let e=Math.min(s.width,s.height);t.absorberOrbit.length=e*(1+(.2*(0,o.G0)()-.1))}void 0===t.absorberOrbitDirection&&(t.absorberOrbitDirection=t.velocity.x>=0?"clockwise":"counter-clockwise");let n=t.absorberOrbit.length,a=t.absorberOrbit.angle,r=t.absorberOrbitDirection;t.velocity.setTo(c.M.origin);let l={x:"clockwise"===r?Math.cos:Math.sin,y:"clockwise"===r?Math.sin:Math.cos};t.position.x=this.position.x+n*l.x(a),t.position.y=this.position.y+n*l.y(a),t.absorberOrbit.length-=e.length,t.absorberOrbit.angle+=(t.retina.moveSpeed??0)*i.retina.pixelRatio/100*i.retina.reduceFactor}else{let i=c.M.origin;i.length=e.length,i.angle=e.angle,t.velocity.addTo(i)}},this.initialPosition=s?c.M.create(s.x,s.y):void 0,i instanceof h?this.options=i:(this.options=new h,this.options.load(i)),this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=(0,o.VG)(this.options.size.value)*e.retina.pixelRatio,this.mass=this.size*this.options.size.density*e.retina.reduceFactor;let n=this.options.size.limit;this.limit={radius:n.radius*e.retina.pixelRatio*e.retina.reduceFactor,mass:n.mass},this.color=(0,d.BN)(this.options.color)??{b:0,g:0,r:0},this.position=this.initialPosition?.copy()??this._calcPosition()}attract(t){let e=this.container,i=this.options;if(i.draggable){let t=e.interactivity.mouse;t.clicking&&t.downPosition?(0,o.Yf)(this.position,t.downPosition)<=this.size&&(this.dragging=!0):this.dragging=!1,this.dragging&&t.position&&(this.position.x=t.position.x,this.position.y=t.position.y)}let s=t.getPosition(),{dx:n,dy:a,distance:r}=(0,o.vr)(this.position,s),l=c.M.create(n,a);if(l.length=this.mass/Math.pow(r,2)*e.retina.reduceFactor,r<this.size+t.getRadius()){let s=.033*t.getRadius()*e.retina.pixelRatio;this.size>t.getRadius()&&r<this.size-t.getRadius()||void 0!==t.absorberOrbit&&t.absorberOrbit.length<0?i.destroy?t.destroy():(t.needsNewPosition=!0,this._updateParticlePosition(t,l)):(i.destroy&&(t.size.value-=s),this._updateParticlePosition(t,l)),(this.limit.radius<=0||this.size<this.limit.radius)&&(this.size+=s),(this.limit.mass<=0||this.mass<this.limit.mass)&&(this.mass+=s*this.options.size.density*e.retina.reduceFactor)}else this._updateParticlePosition(t,l)}draw(t){t.translate(this.position.x,this.position.y),t.beginPath(),t.arc(0,0,this.size,0,2*Math.PI,!1),t.closePath(),t.fillStyle=(0,d.xx)(this.color,this.opacity),t.fill()}resize(){let t=this.initialPosition;this.position=t&&(0,s.Tj)(t,this.container.canvas.size,c.M.origin)?t:this._calcPosition()}}class p{constructor(t){this.container=t,this.array=[],this.absorbers=[],this.interactivityAbsorbers=[],t.getAbsorber=t=>void 0===t||(0,s.Et)(t)?this.array[t||0]:this.array.find(e=>e.name===t),t.addAbsorber=(t,e)=>this.addAbsorber(t,e)}addAbsorber(t,e){let i=new u(this,this.container,t,e);return this.array.push(i),i}draw(t){for(let e of this.array)e.draw(t)}handleClickMode(t){let e=this.absorbers,i=this.interactivityAbsorbers;if("absorber"===t){let t=(0,s.TA)(i)??(0,s.TA)(e),n=this.container.interactivity.mouse.clickPosition;this.addAbsorber(t,n)}}
1async init(){this.absorbers=this.container.actualOptions.absorbers,this.interactivityAbsorbers=this.container.actualOptions.interactivity.modes.absorbers,(0,s.wJ)(this.absorbers,t=>{this.addAbsorber(t)})}particleUpdate(t){for(let e of this.array)if(e.attract(t),t.destroyed)break}removeAbsorber(t){let e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}resize(){for(let t of this.array)t.resize()}stop(){this.array=[]}}class g{constructor(){this.id="absorbers"}getPlugin(t){return new p(t)}loadOptions(t,e){(this.needsPlugin(t)||this.needsPlugin(e))&&(e?.absorbers&&(t.absorbers=(0,s.wJ)(e.absorbers,t=>{let e=new h;return e.load(t),e})),t.interactivity.modes.absorbers=(0,s.wJ)(e?.interactivity?.modes?.absorbers,t=>{let e=new h;return e.load(t),e}))}needsPlugin(t){if(!t)return!1;let e=t.absorbers;return(0,s.cy)(e)?!!e.length:!!(e||t.interactivity?.events?.onClick?.mode&&(0,s.hn)("absorber",t.interactivity.events.onClick.mode))}}async function f(t,e=!0){await t.addPlugin(new g,e)}class y{load(t){t&&(void 0!==t.bottom&&(this.bottom=(0,o.DT)(t.bottom)),void 0!==t.left&&(this.left=(0,o.DT)(t.left)),void 0!==t.right&&(this.right=(0,o.DT)(t.right)),void 0!==t.top&&(this.top=(0,o.DT)(t.top)))}}class w extends a.PV{constructor(){super(),this.value=3}}class m extends a.PV{constructor(){super(),this.value={min:4,max:9}}}class v{constructor(){this.count=1,this.factor=new w,this.rate=new m,this.sizeOffset=!0}load(t){t&&(void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=(0,s.wJ)(t.particles,t=>(0,s.zw)({},t)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.colorOffset&&(this.colorOffset=this.colorOffset??{},void 0!==t.colorOffset.h&&(this.colorOffset.h=t.colorOffset.h),void 0!==t.colorOffset.s&&(this.colorOffset.s=t.colorOffset.s),void 0!==t.colorOffset.l&&(this.colorOffset.l=t.colorOffset.l)))}}class b{constructor(){this.bounds=new y,this.mode="none",this.split=new v}load(t){t&&(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}var _=i(66545);class S{constructor(t,e){this.engine=t,this.container=e}init(t){let e=this.container,i=t.options.destroy;if(!i)return;t.splitCount=0;let s=i.bounds;t.destroyBounds||(t.destroyBounds={});let{bottom:n,left:a,right:r,top:l}=s,{destroyBounds:h}=t,c=e.canvas.size;n&&(h.bottom=(0,o.VG)(n)*c.height/100),a&&(h.left=(0,o.VG)(a)*c.width/100),r&&(h.right=(0,o.VG)(r)*c.width/100),l&&(h.top=(0,o.VG)(l)*c.height/100)}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.destroy||(t.destroy=new b),e))t.destroy.load(i?.destroy)}particleDestroyed(t,e){if(e)return;let i=t.options.destroy;i&&"split"===i.mode&&function(t,e,i){let n=i.options.destroy;if(!n)return;let a=n.split;if(a.count>=0&&(void 0===i.splitCount||i.splitCount++>a.count))return;let r=(0,o._W)(a.rate),l=(0,s.TA)(a.particles);for(let n=0;n<r;n++)!function(t,e,i,n){let a=i.options.destroy;if(!a)return;let r=a.split,l=(0,_.y)(t,e,i.options),h=(0,o._W)(r.factor),c=i.getFillColor();r.color?l.color.load(r.color):r.colorOffset&&c?l.color.load({value:{hsl:{h:c.h+(0,o.VG)(r.colorOffset.h??0),s:c.s+(0,o.VG)(r.colorOffset.s??0),l:c.l+(0,o.VG)(r.colorOffset.l??0)}}}):l.color.load({value:{hsl:i.getFillColor()}}),l.move.load({center:{x:i.position.x,y:i.position.y,mode:"precise"}}),(0,s.Et)(l.size.value)?l.size.value/=h:(l.size.value.min/=h,l.size.value.max/=h),l.load(n);let d=r.sizeOffset?(0,o.DT)(-i.size.value,i.size.value):0,u={x:i.position.x+(0,o.U4)(d),y:i.position.y+(0,o.U4)(d)};e.particles.addParticle(u,l,i.group,t=>!(t.size.value<.5)&&(t.velocity.length=(0,o.U4)((0,o.DT)(i.velocity.length,t.velocity.length)),t.splitCount=(i.splitCount??0)+1,t.unbreakable=!0,setTimeout(()=>{t.unbreakable=!1},500),!0))}(t,e,i,l)}(this.engine,this.container,t)}update(t){if(!this.isEnabled(t))return;let e=t.getPosition(),i=t.destroyBounds;i&&(void 0!==i.bottom&&e.y>=i.bottom||void 0!==i.left&&e.x<=i.left||void 0!==i.right&&e.x>=i.right||void 0!==i.top&&e.y<=i.top)&&t.destroy()}}async function P(t,e=!0){await t.addParticleUpdater("destroy",e=>new S(t,e),e)}
1class x{randomPosition(t,e,i){let[s,n]=[e.width/2,e.height/2],a=((t,e)=>{let i=Math.atan(e/t*Math.tan(2*Math.PI*((0,o.G0)()/4))),s=(0,o.G0)();return s<.25?i:s<.5?Math.PI-i:s<.75?Math.PI+i:-i})(s,n),r=s*n/Math.sqrt((n*Math.cos(a))**2+(s*Math.sin(a))**2),l=i?r*Math.sqrt((0,o.G0)()):r;return{x:t.x+l*Math.cos(a),y:t.y+l*Math.sin(a)}}}var C=i(14563);class G{constructor(){this.wait=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,o.DT)(t.delay)),void 0!==t.duration&&(this.duration=(0,o.DT)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class V{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=(0,o.DT)(t.quantity)),void 0!==t.delay&&(this.delay=(0,o.DT)(t.delay)))}}class T{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class O{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new G,this.rate=new V,this.shape="square",this.startCount=0}load(t){t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size||(this.size=new T),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,s.wJ)(t.particles,t=>(0,s.zw)({},t)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,o.DT)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,o.DT)(t.position.y))),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new C.A),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class A{constructor(t,e,i,n,a){this.emitters=e,this.container=i,this._calcPosition=()=>(0,o.l1)({size:this.container.canvas.size,position:this.options.position}),this._destroy=()=>{this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._emit=()=>{if(this._paused)return;let t=(0,o.VG)(this.options.rate.quantity);this._emitParticles(t)},this._emitParticles=t=>{let e=this.getPosition(),i=this.getSize(),n=(0,s.TA)(this._particlesOptions);for(let o=0;o<t;o++){let t=(0,s.zw)({},n);if(this.spawnColor){let e=this.options.spawnColor?.animation;e&&(this.spawnColor.h=this._setColorAnimation(e.h,this.spawnColor.h,360),this.spawnColor.s=this._setColorAnimation(e.s,this.spawnColor.s,100),this.spawnColor.l=this._setColorAnimation(e.l,this.spawnColor.l,100)),t.color?t.color.value=this.spawnColor:t.color={value:this.spawnColor}}if(!e)return;let o=this._shape?.randomPosition(e,i,this.fill)??e;this.container.particles.addParticle(o,t)}},this._prepareToDie=()=>{if(this._paused)return;let t=this.options.life?.duration!==void 0?(0,o.VG)(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=1e3*t)},this._setColorAnimation=(t,e,i)=>{let s=this.container;if(!t.enable)return e;let n=(0,o.U4)(t.offset),a=1e3*(0,o.VG)(this.options.rate.delay)/s.retina.reduceFactor;return(e+(0,o.VG)(t.speed??0)*s.fpsLimit/a+3.6*n)%i},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,n instanceof O?this.options=n:(this.options=new O,this.options.load(n)),this._spawnDelay=1e3*(0,o.VG)(this.options.life.delay??0)/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this._shape=this._engine.emitterShapeManager?.getShape(this.options.shape),this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let r=(0,s.zw)({},this.options.particles);r??={},r.move??={},r.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,d.R5)(this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=r,this.size=this.options.size??(()=>{let t=new T;return t.load({height:0,mode:"percent",width:0}),t})(),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this._engine.dispatchEvent("emitterCreated",{container:i,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}getPosition(){if(this.options.domId){let t=this.container,e=document.getElementById(this.options.domId);if(e){let i=e.getBoundingClientRect();return{x:(i.x+i.width/2)*t.retina.pixelRatio,y:(i.y+i.height/2)*t.retina.pixelRatio}}}return this.position}getSize(){let t=this.container;if(this.options.domId){let e=document.getElementById(this.options.domId);if(e){let i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio}}}return(0,s.YC)(this.size,t.canvas.size)}pause(){this._paused||delete this._emitDelay}play(){if(!this._paused&&this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))){if(void 0===this._emitDelay){let t=(0,o.VG)(this.options.rate.delay);this._emitDelay=1e3*t/this.container.retina.reduceFactor}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}}resize(){let t=this._initialPosition;this.position=t&&(0,s.Tj)(t,this.container.canvas.size,c.M.origin)?t:this._calcPosition()}update(t){!this._paused&&(this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,!this._immortal&&this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._spawnDelay=1e3*(0,o.VG)(this.options.life.delay??0)/this.container.retina.reduceFactor):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay)))}}class E{constructor(t,e){this.container=e,this._engine=t,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]},e.getEmitter=t=>void 0===t||(0,s.Et)(t)?this.array[t||0]:this.array.find(e=>e.name===t),e.addEmitter=(t,e)=>this.addEmitter(t,e),e.removeEmitter=t=>{let i=e.getEmitter(t);i&&this.removeEmitter(i)},e.playEmitter=t=>{let i=e.getEmitter(t);i&&i.externalPlay()},e.pauseEmitter=t=>{let i=e.getEmitter(t);i&&i.externalPause()}}addEmitter(t,e){let i=new O;i.load(t);let s=new A(this._engine,this,this.container,i,e);return this.array.push(s),s}handleClickMode(t){let e;let i=this.emitters,n=this.interactivityEmitters;if("emitter"!==t)return;if(n&&(0,s.cy)(n.value)){if(n.value.length>0&&n.random.enable){e=[];let t=[];for(let i=0;i<n.random.count;i++){let o=(0,s.n0)(n.value);if(t.includes(o)&&t.length<n.value.length){i--;continue}t.push(o),e.push((0,s.Vh)(n.value,o))}}else e=n.value}else e=n?.value;let o=e??i,a=this.container.interactivity.mouse.clickPosition;(0,s.wJ)(o,t=>{this.addEmitter(t,a)})}
1async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters){if((0,s.cy)(this.emitters))for(let t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}}pause(){for(let t of this.array)t.pause()}play(){for(let t of this.array)t.play()}removeEmitter(t){let e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}resize(){for(let t of this.array)t.resize()}stop(){this.array=[]}update(t){for(let e of this.array)e.update(t)}}let k=new Map;class R{constructor(t){this._engine=t}addShape(t,e){this.getShape(t)||k.set(t,e)}getShape(t){return k.get(t)}getSupportedShapes(){return k.keys()}}function M(t,e){return t+e*((0,o.G0)()-.5)}class z{randomPosition(t,e,i){if(i)return{x:M(t.x,e.width),y:M(t.y,e.height)};{let i=e.width/2,s=e.height/2,n=Math.floor(4*(0,o.G0)()),a=((0,o.G0)()-.5)*2;switch(n){case 0:return{x:t.x+a*i,y:t.y-s};case 1:return{x:t.x-i,y:t.y+a*s};case 2:return{x:t.x+a*i,y:t.y+s};default:return{x:t.x+i,y:t.y+a*s}}}}}class L{constructor(t){this._engine=t,this.id="emitters"}getPlugin(t){return new E(this._engine,t)}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;e?.emitters&&(t.emitters=(0,s.wJ)(e.emitters,t=>{let e=new O;return e.load(t),e}));let i=e?.interactivity?.modes?.emitters;if(i){if((0,s.cy)(i))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:i.map(t=>{let e=new O;return e.load(t),e})};else if(void 0!==i.value){if((0,s.cy)(i.value))t.interactivity.modes.emitters={random:{count:i.random.count??1,enable:i.random.enable??!1},value:i.value.map(t=>{let e=new O;return e.load(t),e})};else{let e=new O;e.load(i.value),t.interactivity.modes.emitters={random:{count:i.random.count??1,enable:i.random.enable??!1},value:e}}}else(t.interactivity.modes.emitters={random:{count:1,enable:!1},value:new O}).value.load(i)}}needsPlugin(t){if(!t)return!1;let e=t.emitters;return(0,s.cy)(e)&&!!e.length||void 0!==e||!!t.interactivity?.events?.onClick?.mode&&(0,s.hn)("emitter",t.interactivity.events.onClick.mode)}}async function I(t,e=!0){t.emitterShapeManager||(t.emitterShapeManager=new R(t)),t.addEmitterShape||(t.addEmitterShape=(e,i)=>{t.emitterShapeManager?.addShape(e,i)});let i=new L(t);await t.addPlugin(i,e),t.addEmitterShape("circle",new x),t.addEmitterShape("square",new z)}class D{constructor(t){this.container=t,this.type="external"}}class H{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=(0,s.zw)({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class B extends D{constructor(t){super(t),this._delay=0}clear(){}init(){}async interact(t){let e=this.container,{interactivity:i}=e;if(!e.retina.reduceFactor)return;let s=e.actualOptions.interactivity.modes.trail;if(!s)return;let n=1e3*s.delay/this.container.retina.reduceFactor;if(this._delay<n&&(this._delay+=t.value),this._delay<n)return;let o=!(s.pauseOnStop&&(i.mouse.position===this._lastPosition||i.mouse.position?.x===this._lastPosition?.x&&i.mouse.position?.y===this._lastPosition?.y)),a=e.interactivity.mouse.position;a?this._lastPosition={...a}:delete this._lastPosition,o&&e.particles.push(s.quantity,e.interactivity.mouse,s.particles),this._delay-=n}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events;return n.clicking&&n.inside&&!!n.position&&(0,s.hn)("trail",o.onClick.mode)||n.inside&&!!n.position&&(0,s.hn)("trail",o.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.trail||(t.trail=new H),e))t.trail.load(i?.trail)}reset(){}}async function N(t,e=!0){await t.addInteractor("externalTrail",t=>new B(t),e)}i(28701);class j{constructor(){this.color=new n.O,this.width=.5,this.opacity=1}load(t){t&&(this.color=n.O.create(this.color,t.color),(0,s.Kg)(this.color.value)&&(this.opacity=(0,d.zI)(this.color.value)??this.opacity),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width))}}class U{constructor(){this.enable=!1,this.stroke=new j}get lineColor(){return this.stroke.color}set lineColor(t){this.stroke.color=n.O.create(this.stroke.color,t)}get lineWidth(){return this.stroke.width}set lineWidth(t){this.stroke.width=t}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);let e=t.stroke??{color:t.lineColor,width:t.lineWidth};this.stroke.load(e)}}class F{constructor(){this.arrangement="one-per-point"}load(t){t&&void 0!==t.arrangement&&(this.arrangement=t.arrangement)}}class ${constructor(){this.path=[],this.size={height:0,width:0}}load(t){t&&(void 0!==t.path&&(this.path=t.path),void 0!==t.size&&(void 0!==t.size.width&&(this.size.width=t.size.width),void 0!==t.size.height&&(this.size.height=t.size.height)))}}class q{constructor(){this.radius=10,this.type="path"}load(t){t&&(void 0!==t.radius&&(this.radius=t.radius),void 0!==t.type&&(this.t
1ype=t.type))}}class Q{constructor(){this.draw=new U,this.enable=!1,this.inline=new F,this.move=new q,this.scale=1,this.type="none"}get inlineArrangement(){return this.inline.arrangement}set inlineArrangement(t){this.inline.arrangement=t}load(t){t&&(this.draw.load(t.draw),this.inline.load(t.inline),this.move.load(t.move),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.type&&(this.type=t.type),void 0!==t.enable?this.enable=t.enable:this.enable="none"!==this.type,void 0!==t.url&&(this.url=t.url),void 0!==t.data&&((0,s.Kg)(t.data)?this.data=t.data:(this.data=new $,this.data.load(t.data))),void 0!==t.position&&(this.position=(0,s.zw)({},t.position)))}}var W=i(36861);let Y=`${W.dI} No polygon data loaded.`,K=`${W.dI} No polygon found, you need to specify SVG url in config.`;class J{constructor(t,e){this._checkInsidePolygon=t=>{let e=this._container,i=e.actualOptions.polygon;if(!i?.enable||"none"===i.type||"inline"===i.type)return!0;if(!this.raw)throw Error(K);let s=e.canvas.size,n=t?.x??(0,o.G0)()*s.width,a=t?.y??(0,o.G0)()*s.height,r=!1;for(let t=0,e=this.raw.length-1;t<this.raw.length;e=t++){let i=this.raw[t],s=this.raw[e];i.y>a!=s.y>a&&n<(s.x-i.x)*(a-i.y)/(s.y-i.y)+i.x&&(r=!r)}return"inside"===i.type?r:"outside"===i.type&&!r},this._createPath2D=()=>{if(this._container.actualOptions.polygon&&this.paths?.length)for(let t of this.paths){let e=t.element?.getAttribute("d");if(e){let i=new Path2D(e),s=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix(),n=new Path2D,o=s.scale(this._scale);n.addPath?(n.addPath(i,o),t.path2d=n):delete t.path2d}else delete t.path2d;!t.path2d&&this.raw&&(t.path2d=new Path2D,t.path2d.moveTo(this.raw[0].x,this.raw[0].y),this.raw.forEach((e,i)=>{i>0&&t.path2d?.lineTo(e.x,e.y)}),t.path2d.closePath())}},this._downloadSvgPath=async(t,e)=>{let i=this._container.actualOptions.polygon;if(!i)return;let s=t||i.url,n=e??!1;if(!s||void 0!==this.paths&&!n)return this.raw;let o=await fetch(s);if(!o.ok)throw Error(`${W.dI} occurred during polygon mask download`);return this._parseSvgPath(await o.text(),e)},this._drawPoints=()=>{if(this.raw)for(let t of this.raw)this._container.particles.addParticle({x:t.x,y:t.y})},this._getEquidistantPointByIndex=t=>{let e=this._container.actualOptions;if(!e.polygon)return;if(!this.raw||!this.raw.length||!this.paths?.length)throw Error(Y);let i=0,s,n=this.paths.reduce((t,e)=>t+e.length,0)/e.particles.number.value;for(let e of this.paths){let o=n*t-i;if(o<=e.length){s=e.element.getPointAtLength(o);break}i+=e.length}let o=this._scale;return{x:(s?.x??0)*o+(this.offset?.x??0),y:(s?.y??0)*o+(this.offset?.y??0)}},this._getPointByIndex=t=>{if(!this.raw||!this.raw.length)throw Error(Y);let e=this.raw[t%this.raw.length];return{x:e.x,y:e.y}},this._getRandomPoint=()=>{if(!this.raw||!this.raw.length)throw Error(Y);let t=(0,s.Vh)(this.raw);return{x:t.x,y:t.y}},this._getRandomPointByLength=()=>{if(!this._container.actualOptions.polygon)return;if(!this.raw||!this.raw.length||!this.paths?.length)throw Error(Y);let t=(0,s.Vh)(this.paths),e=Math.floor((0,o.G0)()*t.length)+1,i=t.element.getPointAtLength(e),n=this._scale;return{x:i.x*n+(this.offset?.x||0),y:i.y*n+(this.offset?.y||0)}},this._initRawData=async t=>{let e=this._container.actualOptions.polygon;if(e){if(e.url)this.raw=await this._downloadSvgPath(e.url,t);else if(e.data){let i;let n=e.data;if((0,s.Kg)(n))i=n;else{let t=t=>`<path d="${t}" />`,e=(0,s.cy)(n.path)?n.path.map(t).join(""):t(n.path);i=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${n.size.width}" height="${n.size.height}">${e}</svg>`}this.raw=this._parseSvgPath(i,t)}this._createPath2D(),this._engine.dispatchEvent("polygonMaskLoaded",{container:this._container})}},this._parseSvgPath=(t,e)=>{if(void 0!==this.paths&&!e)return this.raw;let i=this._container,s=i.actualOptions.polygon;if(!s)return;let n=new DOMParser().parseFromString(t,"image/svg+xml"),o=n.getElementsByTagName("svg")[0],a=o.getElementsByTagName("path");a.length||(a=n.getElementsByTagName("path")),this.paths=[];for(let t=0;t<a.length;t++){let e=a.item(t);e&&this.paths.push({element:e,length:e.getTotalLength()})}let r=this._scale;this.dimension.width=parseFloat(o.getAttribute("width")??"0")*r,this.dimension.height=parseFloat(o.getAttribute("height")??"0")*r;let l=s.position??{x:50,y:50},h=i.canvas.size;return this.offset={x:h.width*l.x/100-this.dimension.width/2,y:h.height*l.y/100-this.dimension.height/2}
1,function(t,e,i){let s=[];for(let n of t){let t=n.element.pathSegList,o=t?.numberOfItems??0,a={x:0,y:0};for(let n=0;n<o;n++){let o=t?.getItem(n),r=window.SVGPathSeg;switch(o?.pathSegType){case r.PATHSEG_MOVETO_ABS:case r.PATHSEG_LINETO_ABS:case r.PATHSEG_CURVETO_CUBIC_ABS:case r.PATHSEG_CURVETO_QUADRATIC_ABS:case r.PATHSEG_ARC_ABS:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:a.x=o.x,a.y=o.y;break;case r.PATHSEG_LINETO_HORIZONTAL_ABS:a.x=o.x;break;case r.PATHSEG_LINETO_VERTICAL_ABS:a.y=o.y;break;case r.PATHSEG_LINETO_REL:case r.PATHSEG_MOVETO_REL:case r.PATHSEG_CURVETO_CUBIC_REL:case r.PATHSEG_CURVETO_QUADRATIC_REL:case r.PATHSEG_ARC_REL:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:a.x+=o.x,a.y+=o.y;break;case r.PATHSEG_LINETO_HORIZONTAL_REL:a.x+=o.x;break;case r.PATHSEG_LINETO_VERTICAL_REL:a.y+=o.y;break;case r.PATHSEG_UNKNOWN:case r.PATHSEG_CLOSEPATH:continue}s.push({x:a.x*e+i.x,y:a.y*e+i.y})}}return s}(this.paths,r,this.offset)},this._polygonBounce=(t,e,i)=>{let s=this._container.actualOptions.polygon;if(!this.raw||!s?.enable||"top"!==i)return!1;if("inside"===s.type||"outside"===s.type){let e,i,s;let n=t.getPosition(),a=t.getRadius();for(let r=0,l=this.raw.length-1;r<this.raw.length;l=r++){let h=this.raw[r],d=this.raw[l];e=function(t,e,i){let{dx:s,dy:n}=(0,o.vr)(i,t),{dx:a,dy:r}=(0,o.vr)(e,t),l=(s*a+n*r)/(a**2+r**2),h={x:t.x+a*l,y:t.y+r*l,isOnSegment:l>=0&&l<=1};return l<0?(h.x=t.x,h.y=t.y):l>1&&(h.x=e.x,h.y=e.y),h}(h,d,n);let u=(0,o.vr)(n,e);if([i,s]=[u.dx,u.dy],u.distance<a)return function(t,e,i){let{dx:s,dy:n}=(0,o.vr)(t,e),a=Math.atan2(n,s),r=c.M.create(Math.sin(a),-Math.cos(a)),l=2*(i.x*r.x+i.y*r.y);r.multTo(l),i.subFrom(r)}(h,d,t.velocity),!0}if(e&&void 0!==i&&void 0!==s&&!this._checkInsidePolygon(n)){let i={x:1,y:1},s=2*a;return n.x>=e.x&&(i.x=-1),n.y>=e.y&&(i.y=-1),t.position.x=e.x+s*i.x,t.position.y=e.y+s*i.y,t.velocity.mult(-1),!0}}else if("inline"===s.type&&t.initialPosition){let e=(0,o.Yf)(t.initialPosition,t.getPosition()),{velocity:i}=t;if(e>this._moveRadius)return i.x=i.y/2-i.x,i.y=i.x/2-i.y,!0}return!1},this._randomPoint=()=>{let t;let e=this._container,i=e.actualOptions.polygon;if(i){if("inline"===i.type)switch(i.inline.arrangement){case"random-point":t=this._getRandomPoint();break;case"random-length":t=this._getRandomPointByLength();break;case"equidistant":t=this._getEquidistantPointByIndex(e.particles.count);break;default:t=this._getPointByIndex(e.particles.count)}else{let i=e.canvas.size;t={x:(0,o.G0)()*i.width,y:(0,o.G0)()*i.height}}return this._checkInsidePolygon(t)?t:this._randomPoint()}},this._container=t,this._engine=e,this.dimension={height:0,width:0},this._moveRadius=0,this._scale=1}clickPositionValid(t){let e=this._container.actualOptions.polygon;return!!e?.enable&&"none"!==e.type&&"inline"!==e.type&&this._checkInsidePolygon(t)}draw(t){if(!this.paths?.length)return;let e=this._container.actualOptions.polygon;if(!e?.enable)return;let i=e.draw;if(!i.enable)return;let s=this.raw;for(let e of this.paths){let n=e.path2d;t&&(n&&this.offset?function(t,e,i,s){t.setTransform(1,0,0,1,s.x,s.y);let n=(0,d.BN)(i.color);n&&(t.strokeStyle=(0,d.xx)(n,i.opacity),t.lineWidth=i.width,t.stroke(e),t.setTransform(1,0,0,1,0,0))}(t,n,i.stroke,this.offset):s&&function(t,e,i){let s=(0,d.BN)(i.color);if(s){for(let i of(t.beginPath(),t.moveTo(e[0].x,e[0].y),e))t.lineTo(i.x,i.y);t.closePath(),t.strokeStyle=(0,d.xx)(s),t.lineWidth=i.width,t.stroke()}}(t,s,i.stroke))}}
1async init(){let t=this._container,e=t.actualOptions.polygon,i=t.retina.pixelRatio;e&&(this._moveRadius=e.move.radius*i,this._scale=e.scale*i,e.enable&&await this._initRawData())}particleBounce(t,e,i){return this._polygonBounce(t,e,i)}particlePosition(t){let e=this._container.actualOptions.polygon;if(e?.enable&&(this.raw?.length??0)>0)return(0,s.zw)({},t||this._randomPoint())}particlesInitialization(){let t=this._container.actualOptions.polygon;return!!t?.enable&&"inline"===t.type&&("one-per-point"===t.inline.arrangement||"per-point"===t.inline.arrangement)&&(this._drawPoints(),!0)}resize(){let t=this._container,e=t.actualOptions.polygon;e?.enable&&"none"!==e.type&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout(async()=>{await this._initRawData(!0),await t.particles.redraw()},250))}stop(){delete this.raw,delete this.paths}}class Z{constructor(t){this.id="polygonMask",this._engine=t}getPlugin(t){return new J(t,this._engine)}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.polygon;i?.load===void 0&&(t.polygon=i=new Q),i.load(e?.polygon)}needsPlugin(t){return t?.polygon?.enable??(t?.polygon?.type!==void 0&&"none"!==t.polygon.type)}}async function X(t,e=!0){await t.addPlugin(new Z(t),e)}class tt{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=(0,o.DT)(t.value)))}}class te{constructor(){this.darken=new tt,this.enable=!1,this.enlighten=new tt,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=n.O.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=(0,o.DT)(t.speed)))}}class ti{getTransformValues(t){let e=t.roll?.enable&&t.roll,i=e&&e.horizontal,s=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:s?Math.sin(e.angle):void 0}}init(t){!function(t){let e=t.options.roll;if(!e?.enable){t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0};return}if(t.roll={enable:e.enable,horizontal:"horizontal"===e.mode||"both"===e.mode,vertical:"vertical"===e.mode||"both"===e.mode,angle:(0,o.G0)()*Math.PI*2,speed:(0,o.VG)(e.speed)/360},e.backColor)t.backColor=(0,d.R5)(e.backColor);else if(e.darken.enable&&e.enlighten.enable){let i=(0,o.G0)()>=.5?"darken":"enlighten";t.roll.alter={type:i,value:(0,o.VG)("darken"===i?e.darken.value:e.enlighten.value)}}else e.darken.enable?t.roll.alter={type:"darken",value:(0,o.VG)(e.darken.value)}:e.enlighten.enable&&(t.roll.alter={type:"enlighten",value:(0,o.VG)(e.enlighten.value)})}(t)}isEnabled(t){let e=t.options.roll;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){for(let i of(t.roll||(t.roll=new te),e))t.roll.load(i?.roll)}update(t,e){this.isEnabled(t)&&function(t,e){let i=t.options.roll,s=t.roll;if(!s||!i?.enable)return;let n=s.speed*e.factor,o=2*Math.PI;s.angle+=n,s.angle>o&&(s.angle-=o)}(t,e)}}async function ts(t,e=!0){await t.addParticleUpdater("roll",()=>new ti,e)}var tn=i(22608);class to{static init(t){let e=new to,i=t.selector;if(!i)throw Error("No selector provided");let s=document.querySelector(i);if(!s)throw Error("No element found for selector");return tn.$k.set(i.replace(".","").replace("!",""),s,{fullScreen:{enable:!1},particles:{color:{value:t.color??"!000000"},links:{color:"random",distance:t.minDistance??120,enable:t.connectParticles??!1},move:{enable:!0,speed:t.speed??.5},number:{value:t.maxParticles??100},size:{value:{min:1,max:t.sizeVariations??3}}},responsive:t.responsive?.map(e=>({maxWidth:e.breakpoint,options:{particles:{color:{value:e.options?.color},links:{distance:e.options?.minDistance,enable:e.options?.connectParticles},number:{value:t.maxParticles},move:{enable:!0,speed:e.options?.speed},size:{value:e.options?.sizeVariations}}}}))}).then(t=>{e._container=t}),e}destroy(){let t=this._container;t&&t.destroy()}pauseAnimation(){let t=this._container;t&&t.pause()}resumeAnimation(){let t=this._container;t&&t.play()}}let ta=t=>{let e=(e,i)=>t.load(e,i);return e.load=(e,i,s)=>{t.loadJSON(e,i).then(t=>{t&&s(t)}
1).catch(()=>{s(void 0)})},e.setOnClickHandler=e=>{t.setOnClickHandler(e)},{particlesJS:e,pJSDom:t.dom()}},tr=t=>{let{particlesJS:e,pJSDom:i}=ta(t);return window.particlesJS=e,window.pJSDom=i,window.Particles=to,{particlesJS:e,pJSDom:i,Particles:to}};class tl{constructor(){this._initSpin=t=>{let e=t.container,i=t.options.move.spin;if(!i.enable)return;let s=i.position??{x:50,y:50},n={x:s.x/100*e.canvas.size.width,y:s.y/100*e.canvas.size.height},a=t.getPosition(),r=(0,o.Yf)(a,n),l=(0,o.VG)(i.acceleration);t.retina.spinAcceleration=l*e.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=0?"clockwise":"counter-clockwise",angle:t.velocity.angle,radius:r,acceleration:t.retina.spinAcceleration}}}init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:(0,o.VG)(e.acceleration),inverse:e.inverse},this._initSpin(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,s=i.move;if(!s.enable)return;let n=t.container,a=n.retina.pixelRatio,r=t.slow.inRange?t.slow.factor:1,l=(t.retina.moveSpeed??=(0,o.VG)(s.speed)*a)*n.retina.reduceFactor,h=t.retina.moveDrift??=(0,o.VG)(t.options.move.drift)*a,c=(0,o.W9)(i.size.value)*a,d=l*(s.size?t.getRadius()/c:1)*r*(e.factor||1)/2,u=t.retina.maxSpeed??n.retina.maxSpeed;s.spin.enable?function(t,e){let i=t.container;if(!t.spin)return;let s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;let n=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>n/2?(t.spin.radius=n/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/n)}(t,d):function(t,e,i,s,n,a){(function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=(0,o.qE)(t.velocity.x,-1,1),t.velocity.y=(0,o.qE)(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay})(t,a);let r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*a.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*a.factor)/(60*i));let h=t.moveDecay;t.velocity.multTo(h);let c=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&c.y>=0&&c.y>=s||r.inverse&&c.y<=0&&c.y<=-s)&&(c.y=l*s,i&&(t.velocity.y=c.y/i));let d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;c.multTo(u);let{position:p}=t;p.addTo(c),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y)),p.y+=Math.cos(p.y*Math.sin(p.x)))}(t,s,d,u,h,e),function(t){let e=t.initialPosition,{dx:i,dy:s}=(0,o.vr)(e,t.position),n=Math.abs(i),a=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,h=r.vertical;if(l||h){if((l&&n>=l||h&&a>=h)&&!t.misplaced)t.misplaced=!!l&&n>l||!!h&&a>h,l&&(t.velocity.x=t.velocity.y/2-t.velocity.x),h&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!l||n<l)&&(!h||a<h)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-(0,o.G0)()),h&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-(0,o.G0)())}}}(t)}}async function th(t,e=!0){await t.addMover("base",()=>new tl,e)}class tc{draw(t,e,i){e.circleRange||(e.circleRange={min:0,max:2*Math.PI});let s=e.circleRange;t.arc(0,0,i,s.min,s.max,!1)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,n=i?.angle??{max:360,min:0};e.circleRange=(0,s.Gv)(n)?{min:n.min*Math.PI/180,max:n.max*Math.PI/180}:{min:0,max:n*Math.PI/180}}}async function td(t,e=!0){await t.addShape("circle",new tc,e)}function tu(t,e,i,s,n){if(!e||!i.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let a=(0,o.U4)(i.offset),r=(e.velocity??0)*t.factor+3.6*a,l=e.decay??1;n&&"increasing"!==e.status?(e.value-=r,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)):(e.value+=r,e.value>s&&(e.loops||(e.loops=0),e.loops++,n&&(e.status="decreasing",e.value-=e.value%s))),e.velocity&&1!==l&&(e.velocity
1*=l),e.value>s&&(e.value%=s)}class tp{constructor(t){this.container=t}init(t){let e=(0,d.R5)(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=(0,d.pz)(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:s}=t.options.color.animation,{color:n}=t;return!t.destroyed&&!t.spawning&&(n?.h.value!==void 0&&e.enable||n?.s.value!==void 0&&i.enable||n?.l.value!==void 0&&s.enable)}update(t,e){!function(t,e){let{h:i,s:s,l:n}=t.options.color.animation,{color:o}=t;if(!o)return;let{h:a,s:r,l}=o;a&&tu(e,a,i,360,!1),r&&tu(e,r,s,100,!0),l&&tu(e,l,n,100,!0)}(t,e)}}async function tg(t,e=!0){await t.addParticleUpdater("color",t=>new tp(t),e)}class tf{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=(0,s.Xs)(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=(0,o.VG)(i.speed)/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,o.G0)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&function(t,e){let i=t.opacity;if(t.destroyed||!i?.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;let s=i.min,n=i.max,a=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0)||!(i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=n?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=(i.velocity??0)*e.factor;break;case"decreasing":i.value<=s?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=(i.velocity??0)*e.factor}i.velocity&&1!==i.decay&&(i.velocity*=a),function(t,e,i,s){switch(t.options.opacity.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,s,n),t.destroyed||(i.value=(0,o.qE)(i.value,s,n))}}(t,e)}}async function ty(t,e=!0){await t.addParticleUpdater("opacity",t=>new tf(t),e)}class tw{constructor(t){this.container=t,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(t,e,i,n){if(!this.modes.includes(n))return;let a=this.container,r=!1;for(let[,s]of a.plugins)if(void 0!==s.particleBounce&&(r=s.particleBounce(t,i,e)),r)break;if(r)return;let l=t.getPosition(),h=t.offset,c=t.getRadius(),d=(0,s.AE)(l,c),u=a.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode||"left"!==t.direction&&"right"!==t.direction)return;t.bounds.right<0&&"left"===t.direction?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&"right"===t.direction&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){let e=(0,o._W)(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-e,i=!0}if(!i)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&"right"===t.direction?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&"left"===t.direction&&(t.particle.position.x=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:n,direction:e,bounds:d,canvasSize:u,offset:h,size:c}),function(t){if("bounce"!==t.outMode&&"bounce-vertical"!==t.outMode&&"bounceVertical"!==t.outMode&&"split"!==t.outMode||"bottom"!==t.direction&&"top"!==t.direction)return;t.bounds.bottom<0&&"top"===t.direction?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&"bottom"===t.direction&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){let e=(0,o._W)(t.particle.options.bounce.vertical);t.particle.velocity.y*=-e,i=!0}if(!i)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&"bottom"===t.direction?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&"top"===t.direction&&(t.particle.position.y=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:n,direction:e,bounds:d,canvasSize:u,offset:h,size:c})}}class tm{constructor(t){this.container=t,this.modes=["destroy"]}update(t,e,i,n){if(!this.modes.includes(n))return;let a=this.container;switch(t.outType){case"normal":case"outside":if((0,s.Tj)(t.position,a.canvas.size,c.M.origin,t.getRadius(),e))return;break;case"inside":{let{dx:e,dy:i}=(0,o.vr)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return}}a.particles.remove(t,void 0,!0)}}class tv{constructor(t){this.container=t,this.modes=["none"]}update(t,e,i,n){if(!this.modes.includes(n)||t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;let o=t.options.move.gravity,a=this.container,r=a.canvas.size,l=t.getRadius();if(o.enable){let i=t.position;(!o.inverse&&i.y>r.height+l&&"bottom"===e||o.inverse&&i.y<-l&&"top"===e)&&a.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=r.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=r.width+l||t.velocity.x<0&&t.position.x>=-l)return;(0,s.Tj)(t.position,a.canvas.size,c.M.origin,l,e)||a.particles.remove(t)}}}class tb{constructor(t){this.container=t,this.modes=["out"]}update(t,e,i,n){if(!this.modes.includes(n))return;let a=this.container;if("inside"===t.outType){let{x:e,y:i}=t.velocity,s=c.M.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(c.M.create(t.moveCenter));let{dx:n,dy:r}=(0,o.vr)(t.position,s);if(e<=0&&n>=0||i<=0&&r>=0||e>=0&&n<=0||i>=0&&r<=0)return;t.position.x=Math.floor((0,o.U4)({min:0,max:a.canvas.size.width})),t.position.y=Math.floor((0,o.U4)({min:0,max:a.canvas.size.height}));let{dx:l,dy:h}=(0,o.vr)(t.position,t.moveCenter);t.direction=Math.atan2(-h,-l),t.velocity.angle=t.direction}else{if((0,s.Tj)(t.position,a.canvas.size,c.M.origin,t.getRadius(),e))return;switch(t.outType){case"outside":{t.position.x=Math.floor((0,o.U4)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,o.U4)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=(0,o.vr)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case"normal":{let i=t.options.move.warp,n=a.canvas.size,r={bottom:n.height+t.getRadius()+t.offset.y,left
1:-t.getRadius()-t.offset.x,right:n.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},l=t.getRadius(),h=(0,s.AE)(t.position,l);"right"===e&&h.left>n.width+t.offset.x?(t.position.x=r.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,o.G0)()*n.height,t.initialPosition.y=t.position.y)):"left"===e&&h.right<-t.offset.x&&(t.position.x=r.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,o.G0)()*n.height,t.initialPosition.y=t.position.y)),"bottom"===e&&h.top>n.height+t.offset.y?(i||(t.position.x=(0,o.G0)()*n.width,t.initialPosition.x=t.position.x),t.position.y=r.top,t.initialPosition.y=t.position.y):"top"===e&&h.bottom<-t.offset.y&&(i||(t.position.x=(0,o.G0)()*n.width,t.initialPosition.x=t.position.x),t.position.y=r.bottom,t.initialPosition.y=t.position.y)}}}}}class t_{constructor(t){this.container=t,this._updateOutMode=(t,e,i,s)=>{for(let n of this.updaters)n.update(t,s,e,i)},this.updaters=[new tw(t),new tm(t),new tb(t),new tv(t)]}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,"bottom"),this._updateOutMode(t,e,i.left??i.default,"left"),this._updateOutMode(t,e,i.right??i.default,"right"),this._updateOutMode(t,e,i.top??i.default,"top")}}async function tS(t,e=!0){await t.addParticleUpdater("outModes",t=>new t_(t),e)}class tP{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/100*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,o.G0)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&function(t,e){let i=t.size;if(t.destroyed||!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;let s=(i.velocity??0)*e.factor,n=i.min,a=i.max,r=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0)||!(i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=a?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=s;break;case"decreasing":i.value<=n?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=s}i.velocity&&1!==r&&(i.velocity*=r),function(t,e,i,s){switch(t.options.size.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,n,a),t.destroyed||(i.value=(0,o.qE)(i.value,n,a))}}(t,e)}}async function tx(t,e=!0){await t.addParticleUpdater("size",()=>new tP,e)}async function tC(t,e=!0){await th(t,!1),await td(t,!1),await tg(t,!1),await ty(t,!1),await tS(t,!1),await tx(t,!1),await t.refresh(e)}async function tG(){(0,o.nL)("ease-in-quad",t=>t**2),(0,o.nL)("ease-out-quad",t=>1-(1-t)**2),(0,o.nL)("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}var tV=i(86842);class tT{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class tO extends D{constructor(t,e){super(e),this._clickAttract=()=>{let t=this.container;t.attract||(t.attract={particles:[]});let{attract:e}=t;if(e.finish||(e.count||(e.count=0),e.count++,e.count!==t.particles.count||(e.finish=!0)),e.clicking){let e=t.interactivity.mouse.clickPosition,i=t.retina.attractModeDistance;if(!i||i<0||!e)return;this._processAttract(e,i,new tV.j(e.x,e.y,i))}else!1===e.clicking&&(e.particles=[])},this._hoverAttract=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.attractModeDistance;i&&!(i<0)&&e&&this._processAttract(e,i,new tV.j(e.x,e.y,i))},this._processAttract=(t,e,i)=>{let s=this.container,n=s.actualOptions.interactivity.modes.attract;if(n)for(let a of s.particles.quadTree.query(i,t=>this.isEnabled(t))){let{dx:i,dy:s,distance:r}=(0,o.vr)(a.position,t),l=n.speed*n.factor,h=(0,o.qE)((0,o.il)(n.easing)(1-r/e)*l,0,n.maxSpeed),d=c.M.create(0===r?l:i/r*h,0===r?l:s/r*h);a.position.subFrom(d)}},this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&"attract"===t){for(let t of(e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0,e.attract.particles))this.isEnabled(t)&&t.velocity.setTo(t.
1initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)},1e3*i.duration)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===W.Rb,n=e.interactivity.events,o=n.onHover.enable,a=n.onHover.mode,r=n.onClick.enable,l=n.onClick.mode;i&&o&&(0,s.hn)("attract",a)?this._hoverAttract():r&&(0,s.hn)("attract",l)&&this._clickAttract()}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events;if((!n.position||!o.onHover.enable)&&(!n.clickPosition||!o.onClick.enable))return!1;let a=o.onHover.mode,r=o.onClick.mode;return(0,s.hn)("attract",a)||(0,s.hn)("attract",r)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new tT),e))t.attract.load(i?.attract)}reset(){}}async function tA(t,e=!0){await t.addInteractor("externalAttract",e=>new tO(t,e),e)}var tE=i(32681);class tk{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class tR extends D{constructor(t){super(t),this._processBounce=(t,e,i)=>{for(let n of this.container.particles.quadTree.query(i,t=>this.isEnabled(t)))i instanceof tV.j?(0,s.pE)((0,s.Tg)(n),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:c.M.origin,factor:c.M.origin}):i instanceof tE.M&&(0,s.jo)(n,(0,s.AE)(t,e))},this._processMouseBounce=()=>{let t=this.container,e=t.retina.pixelRatio,i=t.interactivity.mouse.position,s=t.retina.bounceModeDistance;s&&!(s<0)&&i&&this._processBounce(i,s,new tV.j(i.x,i.y,s+10*e))},this._singleSelectorBounce=(t,e)=>{let i=this.container,s=document.querySelectorAll(t);s.length&&s.forEach(t=>{let s=i.retina.pixelRatio,n={x:(t.offsetLeft+t.offsetWidth/2)*s,y:(t.offsetTop+t.offsetHeight/2)*s},o=t.offsetWidth/2*s,a=10*s,r="circle"===e.type?new tV.j(n.x,n.y,o+a):new tE.M(t.offsetLeft*s-a,t.offsetTop*s-a,t.offsetWidth*s+2*a,t.offsetHeight*s+2*a);this._processBounce(n,o,r)})}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===W.Rb,n=e.onHover.enable,o=e.onHover.mode,a=e.onDiv;i&&n&&(0,s.hn)("bounce",o)?this._processMouseBounce():(0,s.U6)("bounce",a,(t,e)=>this._singleSelectorBounce(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events,a=o.onDiv;return n.position&&o.onHover.enable&&(0,s.hn)("bounce",o.onHover.mode)||(0,s.iK)("bounce",a)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new tk),e))t.bounce.load(i?.bounce)}reset(){}}async function tM(t,e=!0){await t.addInteractor("externalBounce",t=>new tR(t),e)}class tz{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(t){if(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color){let e=(0,s.cy)(this.color)?void 0:this.color;this.color=(0,s.wJ)(t.color,t=>n.O.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class tL extends tz{constructor(){super(),this.selectors=[]}get ids(){return(0,s.wJ)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,s.wJ)(t,t=>`#${t}`)}load(t){super.load(t),t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class tI extends tz{load(t){super.load(t),t&&(this.divs=(0,s.wJ)(t.divs,t=>{let e=new tL;return e.load(t),e}))}}function tD(t,e,i,s){return e>=i?(0,o.qE)(t+(e-i)*s,t,e):e<i?(0,o.qE)(t-(i-e)*s,e,t):void 0}class tH extends D{constructor(t){super(t),this._clickBubble=()=>{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});let n=t.retina.bubbleModeDistance;if(!n||n<0)return;let a=t.particles.quadTree.queryCircle(i,n,t=>this.isEnabled(t)),{bubble:r}=t;for(let e of a){if(!r.clicking)continue;e.bubble.inRange=!r.durationEnd;let a=e.getPosition(),l=(0,o.Yf)(a,i),h=(new Date().getTime()-(t.interactivity.mouse.clickTime||0))/1e3;h>s.duration&&(r.durationEnd=!0),h>2*s.duration&&(r.clicking=!1,r.durationEnd=!1);let c={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:(0,o.W9)(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:"size"};this._process(e,l,h,c);let d={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:(0,o.W9)(e.options.opacity.value),value:e.opacity?.value??1},type:"opacity"};this._process(e,l,h,d),!r.durationEnd&&l<=n?this._hoverBubbleColor(e,l):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&void 0!==e)for(let s of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){s.bubble.inRange=!0;let n=s.getPosition(),a=(0,o.Yf)(n,e),r=1-a/i;a<=i?r>=0&&t.interactivity.status===W.Rb&&(this._hoverBubbleSize(s,r),this._hoverBubbleOpacity(s,r),this._hoverBubbleColor(s,r)):this.reset(s),t.interactivity.status===W.Z0&&this.reset(s)}},this._hoverBubbleColor=(t,e,i)=>{let n=this.container.actualOptions,o=i??n.interactivity.modes.bubble;if(o){if(!t.bubble.finalColor){let e=o.color;if(!e)return;let i=(0,s.TA)(e);t.bubble.finalColor=(0,d.R5)(i)}if(t.bubble.finalColor){if(o.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?(0,d.K6)((0,d.EY)(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}},this._hoverBubbleOpacity=(t,e,i)=>{let s=this.container.actualOptions,n=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!n)return;let a=t.options.opacity.value,r=tD(t.opacity?.value??1,n,(0,o.W9)(a),e);void 0!==r&&(t.bubble.opacity=r)},this._hoverBubbleSize=(t,e,i)=>{let s=this.container,n=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===n)return;let a=(0,o.W9)(t.options.size.value)*s.retina.pixelRatio,r=tD(t.size.value,n,a,e);void 0!==r&&(t.bubble.radius=r)},this._process=(t,e,i,s)=>{let n=this.container,o=s.bubbleObj.optValue,a=n.actualOptions.interactivity.modes.bubble;if(!a||void 0===o)return;let r=a.duration,l=n.retina.bubbleModeDistance,h=s.particlesObj.optValue,c=s.bubbleObj.value,d=s.particlesObj.value||0,u=s.type;if(l&&!(l<0)&&o!==h){if(n.bubble||(n.bubble={}),n.bubble.durationEnd)c&&("size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity);else if(e<=l){if((c??d)!==o){let e=d-i*(d-o)/r;"size"===u&&(t.bubble.radius=e),"opacity"===u&&(t.bubble.opacity=e)}}else"size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity}},this._singleSelectorHover=(t,e,i)=>{let n=this.container,o=document.querySelectorAll(e),a=n.actualOptions.interactivity.modes.bubble;
1a&&o.length&&o.forEach(e=>{let o=n.retina.pixelRatio,r={x:(e.offsetLeft+e.offsetWidth/2)*o,y:(e.offsetTop+e.offsetHeight/2)*o},l=e.offsetWidth/2*o,h="circle"===i.type?new tV.j(r.x,r.y,l):new tE.M(e.offsetLeft*o,e.offsetTop*o,e.offsetWidth*o,e.offsetHeight*o);for(let i of n.particles.quadTree.query(h,t=>this.isEnabled(t))){if(!h.contains(i.getPosition()))continue;i.bubble.inRange=!0;let n=a.divs,o=(0,s.NV)(n,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,o),this._hoverBubbleOpacity(i,1,o),this._hoverBubbleColor(i,1,o)}})},t.bubble||(t.bubble={}),this.handleClickMode=e=>{"bubble"===e&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){(!t.bubble.inRange||i)&&(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}async interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,n=e.onClick,o=i.enable,a=i.mode,r=n.enable,l=n.mode,h=e.onDiv;o&&(0,s.hn)("bubble",a)?this._hoverBubble():r&&(0,s.hn)("bubble",l)?this._clickBubble():(0,s.U6)("bubble",h,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,{onClick:o,onDiv:a,onHover:r}=(t?.interactivity??i.interactivity).events,l=(0,s.iK)("bubble",a);return(!!l||!!r.enable&&!!n.position||!!o.enable&&!!n.clickPosition)&&((0,s.hn)("bubble",r.mode)||(0,s.hn)("bubble",o.mode)||l)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new tI),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function tB(t,e=!0){await t.addInteractor("externalBubble",t=>new tH(t),e)}class tN{constructor(){this.opacity=.5}load(t){t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class tj{constructor(){this.distance=80,this.links=new tN,this.radius=60}get lineLinked(){return this.links}set lineLinked(t){this.links=t}get line_linked(){return this.links}set line_linked(t){this.links=t}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links??t.lineLinked??t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}var tU=i(979);class tF extends D{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.connect;e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}async interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position;if(!t.retina.connectModeDistance||t.retina.connectModeDistance<0||!t.retina.connectModeRadius||t.retina.connectModeRadius<0||!e)return;let i=Math.abs(t.retina.connectModeRadius),s=t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t)),n=0;for(let e of s){let i=e.getPosition();for(let o of s.slice(n+1)){let s=o.getPosition(),n=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-s.x),r=Math.abs(i.y-s.y);a<n&&r<n&&function(t,e,i){t.canvas.draw(s=>{var n;let o=function(t,e,i,s){let n=t.actualOptions.interactivity.modes.connect;if(n)return function(t,e,i,s){let n=Math.floor(i.getRadius()/e.getRadius()),o=e.getFillColor(),a=i.getFillColor();if(!o||!a)return;let r=e.getPosition(),l=i.getPosition(),h=(0,d.EY)(o,a,e.getRadius(),i.getRadius()),c=t.createLinearGradient(r.x,r.y,l.x,l.y);return c.addColorStop(0,(0,d.LC)(o,s)),c.addColorStop(n>1?1:n,(0,d.xx)(h,s)),c.addColorStop(1,(0,d.LC)(a,s)),c}(e,i,s,n.links.opacity)}(t,s,e,i);if(!o)return;let a=e.getPosition(),r=i.getPosition();n=e.retina.linksWidth??0,(0,tU.V6)(s,a,r),s.lineWidth=n,s.strokeStyle=o,s.stroke()})}(t,e,o)}++n}}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return!!n.onHover.enable&&!!i.position&&(0,s.hn)("connect",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new tj),e))t.connect.load(i?.connect)}reset(){}}async function t$(t,e=!0){await t.addInteractor("externalConnect",t=>new tF(t),e)}class tq{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class tQ{constructor(){this.distance=100,this.links=new tq}get lineLinked(){return this.links}set lineLinked(t){this.links=t}get line_linked(){return this.links}set line_linked(t){this.links=t}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links??t.lineLinked??t.line_linked))}}class tW extends D{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==W.Rb)return;let i=t.interactivity.mouse.position;if(!i)return;let s=t.retina.grabModeDistance;if(s&&!(s<0))for(let n of t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t))){let a=n.getPosition(),r=(0,o.Yf)(a,i);if(r>s)continue;let l=e.modes.grab.links,h=l.opacity,c=h-r*h/s;if(c<=0)continue;let u=l.color??n.options.links?.color;if(!t.particles.grabLineColor&&u){let i=e.modes.grab.links;t.particles.grabLineColor=(0,d.PG)(u,i.blink,i.consent)}let p=(0,d._h)(n,void 0,t.particles.grabLineColor);
1p&&function(t,e,i,s,n){t.canvas.draw(t=>{var o;let a=e.getPosition();o=e.retina.linksWidth??0,(0,tU.V6)(t,a,n),t.strokeStyle=(0,d.xx)(i,s),t.lineWidth=o,t.stroke()})}(t,n,p,c,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,s.hn)("grab",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new tQ),e))t.grab.load(i?.grab)}reset(){}}async function tY(t,e=!0){await t.addInteractor("externalGrab",t=>new tW(t),e)}class tK extends D{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.getAnimationStatus()?e.pause():e.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function tJ(t,e=!0){await t.addInteractor("externalPause",t=>new tK(t),e)}class tZ{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,o.DT)(t)}load(t){if(!t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map(t=>t)),this.groups.length||(this.default=!0);let e=t.quantity??t.particles_nb;void 0!==e&&(this.quantity=(0,o.DT)(e))}}class tX extends D{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;let e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;let n=(0,o.VG)(i.quantity);if(n<=0)return;let a=(0,s.Vh)([void 0,...i.groups]),r=void 0!==a?e.actualOptions.particles.groups[a]:void 0;e.particles.push(n,e.interactivity.mouse,r,a)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new tZ),e))t.push.load(i?.push)}reset(){}}async function t0(t,e=!0){await t.addInteractor("externalPush",t=>new tX(t),e)}class t1{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,o.DT)(t)}load(t){if(!t)return;let e=t.quantity??t.particles_nb;void 0!==e&&(this.quantity=(0,o.DT)(e))}}class t2 extends D{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let s=(0,o.VG)(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new t1),e))t.remove.load(i?.remove)}reset(){}}async function t5(t,e=!0){await t.addInteractor("externalRemove",t=>new t2(t),e)}class t3{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class t6 extends t3{constructor(){super(),this.selectors=[]}get ids(){return(0,s.wJ)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,s.wJ)(t,t=>`#${t}`)}load(t){super.load(t),t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class t8 extends t3{load(t){super.load(t),t&&(this.divs=(0,s.wJ)(t.divs,t=>{let e=new t6;return e.load(t),e}))}}class t4 extends D{constructor(t,e){super(e),this._clickRepulse=()=>{let t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;let i=t.repulse||{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count!==t.particles.count||(i.finish=!0)),i.clicking){let s=t.retina.repulseModeDistance;if(!s||s<0)return;let n=Math.pow(s/6,3),a=t.interactivity.mouse.clickPosition;if(void 0===a)return;let r=new tV.j(a.x,a.y,n);for(let s of t.particles.quadTree.query(r,t=>this.isEnabled(t))){let{dx:t,dy:r,distance:l}=(0,o.vr)(a,s.position),h=l**2,d=-n*e.speed/h;if(h<=n){i.particles.push(s);let e=c.M.create(t,r);e.length=d,s.velocity.setTo(e)}}}else if(!1===i.clicking){for(let t of i.particles)t.velocity.setTo(t.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;
1i&&!(i<0)&&e&&this._processRepulse(e,i,new tV.j(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{let n=this.container,a=n.particles.quadTree.query(i,t=>this.isEnabled(t)),r=n.actualOptions.interactivity.modes.repulse;if(r)for(let i of a){let{dx:n,dy:a,distance:l}=(0,o.vr)(i.position,t),h=(s?.speed??r.speed)*r.factor,d=(0,o.qE)((0,o.il)(r.easing)(1-l/e)*h,0,r.maxSpeed),u=c.M.create(0===l?h:n/l*d,0===l?h:a/l*d);i.position.addTo(u)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,n=i.actualOptions.interactivity.modes.repulse;if(!n)return;let o=document.querySelectorAll(t);o.length&&o.forEach(t=>{let o=i.retina.pixelRatio,a={x:(t.offsetLeft+t.offsetWidth/2)*o,y:(t.offsetTop+t.offsetHeight/2)*o},r=t.offsetWidth/2*o,l="circle"===e.type?new tV.j(a.x,a.y,r):new tE.M(t.offsetLeft*o,t.offsetTop*o,t.offsetWidth*o,t.offsetHeight*o),h=n.divs,c=(0,s.NV)(h,t);this._processRepulse(a,r,l,c)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||"repulse"!==t)return;e.repulse||(e.repulse={particles:[]});let s=e.repulse;for(let t of(s.clicking=!0,s.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{e.destroyed||(s.clicking=!1)},1e3*i.duration)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===W.Rb,n=e.interactivity.events,o=n.onHover,a=o.enable,r=o.mode,l=n.onClick,h=l.enable,c=l.mode,d=n.onDiv;i&&a&&(0,s.hn)("repulse",r)?this._hoverRepulse():h&&(0,s.hn)("repulse",c)?this._clickRepulse():(0,s.U6)("repulse",d,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events,a=o.onDiv,r=o.onHover,l=o.onClick,h=(0,s.iK)("repulse",a);if(!(h||r.enable&&n.position||l.enable&&n.clickPosition))return!1;let c=r.mode,d=l.mode;return(0,s.hn)("repulse",c)||(0,s.hn)("repulse",d)||h}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new t8),e))t.repulse.load(i?.repulse)}reset(){}}async function t9(t,e=!0){await t.addInteractor("externalRepulse",e=>new t4(t,e),e)}class t7{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class et extends D{constructor(t){super(t)}clear(t,e,i){(!t.slow.inRange||i)&&(t.slow.factor=1)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}async interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,s.hn)("slow",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new t7),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,n=e.retina.slowModeRadius,a=i.interactivity.modes.slow;if(!a||!n||n<0||!s)return;let r=t.getPosition(),l=(0,o.Yf)(s,r),h=a.factor,{slow:c}=t;l>n||(c.inRange=!0,c.factor=l/n/h)}}async function ee(t,e=!0){await t.addInteractor("externalSlow",t=>new et(t),e)}let ei=[0,4,2,1],es=[8,8,4,2];class en{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){let e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce((t,e)=>t+String.fromCharCode(e),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=0,e=0;for(let i=0;0!==(t=this.data[this.pos+i]);i+=t+1)e+=t;let i=new Uint8Array(e);for(let e=0;0!==(t=this.data[this.pos++]);)for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}function eo(t,e){let i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}
1async function ea(t,e,i,s){switch(t.nextByte()){case 249:{let n=e.frames[i(!1)];t.pos++;let o=t.nextByte();n.GCreserved=(224&o)>>>5,n.disposalMethod=(28&o)>>>2,n.userInputDelayFlag=(2&o)==2,n.delayTime=10*t.nextTwoBytes();let a=t.nextByte();(1&o)==1&&s(a),t.pos++;break}case 255:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case 254:e.comments.push([i(!1),t.readSubBlocks()]);break;case 1:if(0===e.globalColorTable.length)throw EvalError("plain text extension without global color table");t.pos++,e.frames[i(!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()}}async function er(t,e,i,s,n,o){let a=e.frames[s(!0)];a.left=t.nextTwoBytes(),a.top=t.nextTwoBytes(),a.width=t.nextTwoBytes(),a.height=t.nextTwoBytes();let r=t.nextByte(),l=(128&r)==128;a.sortFlag=(32&r)==32,a.reserved=(24&r)>>>3,l&&(a.localColorTable=eo(t,1<<(7&r)+1));let h=t=>{let{r:s,g:o,b:r}=(l?a.localColorTable:e.globalColorTable)[t];return{r:s,g:o,b:r,a:t===n(null)?i?~~((s+o+r)/3):0:255}},c=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==c)throw EvalError("GIF frame size is to large");let d=t.nextByte(),u=t.readSubBlocksBin(),p=1<<d,g=(t,e)=>{let i=t>>>3,s=7&t;return(u[i]+(u[i+1]<<8)+(u[i+2]<<16)&(1<<e)-1<<s)>>>s};if((64&r)==64){for(let i=0,n=d+1,r=0,l=[[0]],u=0;u<4;u++){if(ei[u]<a.height)for(let t=0,e=0;;){let s=i;if(i=g(r,n),r+=n+1,i===p){n=d+1,l.length=p+2;for(let t=0;t<l.length;t++)l[t]=t<p?[t]:[]}else{i>=l.length?l.push(l[s].concat(l[s][0])):s!==p&&l.push(l[s].concat(l[i][0]));for(let s=0;s<l[i].length;s++){let{r:n,g:o,b:r,a:d}=h(l[i][s]);c.data.set([n,o,r,d],ei[u]*a.width+es[u]*e+t%(4*a.width)),t+=4}l.length===1<<n&&n<12&&n++}if(t===4*a.width*(e+1)&&(e++,ei[u]+es[u]*e>=a.height))break}o?.(t.pos/(t.data.length-1),s(!1)+1,c,{x:a.left,y:a.top},{width:e.width,height:e.height})}a.image=c,a.bitmap=await createImageBitmap(c)}else{for(let t=0,e=d+1,i=0,s=[[0]],n=-4;;){let o=t;if(t=g(i,e),i+=e,t===p){e=d+1,s.length=p+2;for(let t=0;t<s.length;t++)s[t]=t<p?[t]:[]}else{if(t===p+1)break;t>=s.length?s.push(s[o].concat(s[o][0])):o!==p&&s.push(s[o].concat(s[t][0]));for(let e=0;e<s[t].length;e++){let{r:i,g:o,b:a,a:r}=h(s[t][e]);c.data.set([i,o,a,r],n+=4)}s.length>=1<<e&&e<12&&e++}}a.image=c,a.bitmap=await createImageBitmap(c),o?.((t.pos+1)/t.data.length,s(!1)+1,a.image,{x:a.left,y:a.top},{width:e.width,height:e.height})}}async function el(t,e,i,s,n,o){switch(t.nextByte()){case 59:return!0;case 44:await er(t,e,i,s,n,o);break;case 33:await ea(t,e,s,n);break;default:throw EvalError("undefined block found")}return!1}async function eh(t,e,i){i||(i=!1);let s=await fetch(t);if(!s.ok&&404===s.status)throw EvalError("file not found");let n=await s.arrayBuffer(),o={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},a=new en(new Uint8ClampedArray(n));if("GIF89a"!==a.getString(6))throw Error("not a supported GIF file");o.width=a.nextTwoBytes(),o.height=a.nextTwoBytes();let r=a.nextByte(),l=(128&r)==128;o.colorRes=(112&r)>>>4,o.sortFlag=(8&r)==8;let h=a.nextByte();o.pixelAspectRatio=a.nextByte(),0!==o.pixelAspectRatio&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=eo(a,1<<(7&r)+1));let c=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==c)throw Error("GIF frame size is to large");let{r:d,g:u,b:p}=o.globalColorTable[h];c.data.set(l?[d,u,p,255]:[0,0,0,0]);for(let t=4;t<c.data.length;t*=2)c.data.copyWithin(t,0,t);o.backgroundImage=c;let g=-1,f=!0,y=-1,w=t=>(t&&(f=!0),g),m=t=>(null!=t&&(y=t),y);
1try{do f&&(o.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}),g++,y=-1,f=!1);while(!await el(a,o,i,w,m,e));for(let t of(o.frames.length--,o.frames)){if(t.userInputDelayFlag&&0===t.delayTime){o.totalTime=1/0;break}o.totalTime+=t.delayTime}return o}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${g} "${t.message}"`);throw t}}let ec=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function ed(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,(0,s.tZ)().error(`${W.dI} loading image: ${t.source}`),e()}),i.src=t.source})}async function eu(t){if("gif"!==t.type){await ed(t);return}t.loading=!0;try{t.gifData=await eh(t.source),t.gifLoopCount=function(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,0===t.gifLoopCount&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function ep(t){if("svg"!==t.type){await ed(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():((0,s.tZ)().error(`${W.dI} Image not found`),t.error=!0),t.loading=!1}class eg{constructor(t){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${W.dI} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??t.replace_color??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t,e,i,s,n){let o=e.image,a=o?.element;if(o){if(t.globalAlpha=s,o.gif&&o.gifData){let s=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=s.getContext("2d");if(!a)throw Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(0,0,s.width,s.height),void 0===e.gifLoopCount&&(e.gifLoopCount=o.gifLoopCount??0);let r=e.gifFrame??0,l={x:-(.5*o.gifData.width),y:-(.5*o.gifData.height)},h=o.gifData.frames[r];if(void 0===e.gifTime&&(e.gifTime=0),!h.bitmap)return;switch(t.scale(i/o.gifData.width,i/o.gifData.height),h.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(h.bitmap,h.left,h.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height);break;case 1:a.drawImage(h.bitmap,h.left,h.top),t.drawImage(s,l.x,l.y);break;case 2:a.drawImage(h.bitmap,h.left,h.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),0===o.gifData.globalColorTable.length?a.putImageData(o.gifData.frames[0].image,l.x+h.left,l.y+h.top):a.putImageData(o.gifData.backgroundImage,l.x,l.y);break;case 3:{let e=a.getImageData(0,0,s.width,s.height);a.drawImage(h.bitmap,h.left,h.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),a.putImageData(e,0,0)}}if(e.gifTime+=n.value,e.gifTime>h.delayTime){if(e.gifTime-=h.delayTime,++r>=o.gifData.frames.length){if(--e.gifLoopCount<=0)return;r=0,a.clearRect(0,0,s.width,s.height)}e.gifFrame=r}t.scale(o.gifData.width/i,o.gifData.height/i)}else if(a){let e=o.ratio,s={x:-i,y:-i};t.drawImage(a,s.x,s.y,2*i,2*i/e)}t.globalAlpha=1}}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(let t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let e=t.shapeData;this._engine.images.find(t=>t.name===e.name||t.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(t)})}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,s=e.shapeData,n=e.getFillColor(),o=i.find(t=>t.name===s.name||t.source===s.src);if(!o)return;let a=s.replaceColor??s.replace_color??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(t,e)});return}(async()=>{let t;
1(t=o.svgData&&n?await function(t,e,i,s){let n=function(t,e,i){let{svgData:s}=t;if(!s)return"";let n=(0,d.LC)(e,i);if(s.includes("fill"))return s.replace(ec,()=>n);let o=s.indexOf(">");return`${s.substring(0,o)} fill="${n}"${s.substring(o)}`}(t,i,s.opacity?.value??1),o={color:i,gif:e.gif,data:{...t,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(e=>{let i=new Blob([n],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,a=s.createObjectURL(i),r=new Image;r.addEventListener("load",()=>{o.loaded=!0,o.element=r,e(o),s.revokeObjectURL(a)}),r.addEventListener("error",async()=>{s.revokeObjectURL(a);let i={...t,error:!1,loading:!0};await ed(i),o.loaded=!0,o.element=i.element,e(o)}),r.src=a})}(o,s,n,e):{color:n,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:o.ratio??1,replaceColor:a,source:s.src}).ratio||(t.ratio=1);let i=s.fill??e.fill,r=s.close??e.close;e.image=t,e.fill=i,e.close=r})()}}class ef{constructor(){this.src="",this.gif=!1}load(t){t&&(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0!==t.width&&(this.width=t.width))}}class ey{constructor(t){this.id="imagePreloader",this._engine=t}getPlugin(){return{}}loadOptions(t,e){if(!e||!e.preload)return;t.preload||(t.preload=[]);let i=t.preload;for(let t of e.preload){let e=i.find(e=>e.name===t.name||e.src===t.src);if(e)e.load(t);else{let e=new ef;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function ew(t,e=!0){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${W.dI} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(i);let s=e.gif?eu:e.replaceColor?ep:ed;await s(i)}catch{throw Error(`${W.dI} ${e.name??e.src} not found`)}});let i=new ey(t);await t.addPlugin(i,e),await t.addShape(["image","images"],new eg(t),e)}class em extends a.PV{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class ev extends a.PV{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class eb{constructor(){this.count=0,this.delay=new em,this.duration=new ev}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class e_{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?(0,o.VG)(i.delay.value)*(i.delay.sync?1:(0,o.G0)())/e.retina.reduceFactor*1e3:0,delayTime:0,duration:e.retina.reduceFactor?(0,o.VG)(i.duration.value)*(i.duration.sync?1:(0,o.G0)())/e.retina.reduceFactor*1e3:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.life||(t.life=new eb),e))t.life.load(i?.life)}update(t,e){if(!this.isEnabled(t)||!t.life)return;let i=t.life,s=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;s=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration||t.spawning||(s?i.time=0:i.time+=e.value,i.time<i.duration))return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count){t.destroy();return}let n=this.container.canvas.size,a=(0,o.DT)(0,n.width),r=(0,o.DT)(0,n.width);t.position.x=(0,o.U4)(a),t.position.y=(0,o.U4)(r),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();let l=t.options.life;l&&(i.delay=1e3*(0,o.VG)(l.delay.value),i.duration=1e3*(0,o.VG)(l.duration.value))}}async function eS(t,e=!0){await t.addParticleUpdater("life",t=>new e_(t),e)}class eP{draw(t,e,i){let s=e.shapeData;t.moveTo(-i/2,0),t.lineTo(i/2,0),t.lineCap=s?.cap??"butt"}getSidesCount(){return 1}}async function ex(t,e=!0){await t.addShape("line",new eP,e)}class eC{init(){}isEnabled(t){return!(0,s.B9)()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){let e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if((0,s.B9)()||!i.enable)return;let n=i.force,o=e.interactivity.mouse.position;if(!o)return;let a=e.canvas.size,r={x:a.width/2,y:a.height/2},l=i.smooth,h=t.getRadius()/n,c={x:(o.x-r.x)*h,y:(o.y-r.y)*h},{offset:d}=t;d.x+=(c.x-d.x)/l,d.y+=(c.y-d.y)/l}}async function eG(t,e=!0){await t.addMover("parallax",()=>new eC,e)}class eV{constructor(t){this.container=t,this.type="particles"}}class eT extends eV{constructor(t){super(t)}clear(){}init(){}async interact(t){let e=this.container,i=t.retina.attractDistance??e.retina.attractDistance,s=t.getPosition();for(let n of e.particles.quadTree.queryCircle(s,i)){if(t===n||!n.options.move.attract.enable||n.destroyed||n.spawning)continue;let e=n.getPosition(),{dx:i,dy:a}=(0,o.vr)(s,e),r=t.options.move.attract.rotate,l=i/(1e3*r.x),h=a/(1e3*r.y),c=n.size.value/t.size.value,d=1/c;t.velocity.x-=l*c,t.velocity.y-=h*c,n.velocity.x+=l*d,n.velocity.y+=h*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function eO(t,e=!0){await t.addInteractor("particlesAttract",t=>new eT(t),e)}function eA(t,e,i,s,n,a){let r=(0,o.qE)(t.options.collisions.absorb.speed*n.factor/10,0,s);t.size.value+=r/2,i.size.value-=r,s<=a&&(i.size.value=0,i.destroy())}let eE=t=>
1{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=(0,o.VG)(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function ek(t,e){(0,s.pE)((0,s.Tg)(t),(0,s.Tg)(e)),eE(t),eE(e)}class eR extends eV{constructor(t){super(t)}clear(){}init(){}async interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,s=t.getPosition(),n=t.getRadius();for(let a of i.particles.quadTree.queryCircle(s,2*n)){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let r=a.getPosition(),l=a.getRadius();!(Math.abs(Math.round(s.z)-Math.round(r.z))>n+l)&&((0,o.Yf)(s,r)>n+l||function(t,e,i,s){switch(t.options.collisions.mode){case"absorb":!function(t,e,i,s){let n=t.getRadius(),o=e.getRadius();void 0===n&&void 0!==o?t.destroy():void 0!==n&&void 0===o?e.destroy():void 0!==n&&void 0!==o&&(n>=o?eA(t,n,e,o,i,s):eA(e,o,t,n,i,s))}(t,e,i,s);break;case"bounce":ek(t,e);break;case"destroy":t.unbreakable||e.unbreakable||ek(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}}(t,a,e,i.retina.pixelRatio))}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function eM(t,e=!0){await t.addInteractor("particlesCollisions",t=>new eR(t),e)}class ez extends tV.j{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){let{width:e,height:i}=this.canvasSize,{x:s,y:n}=t;return super.contains(t)||super.contains({x:s-e,y:n})||super.contains({x:s-e,y:n-i})||super.contains({x:s,y:n-i})}intersects(t){if(super.intersects(t))return!0;let e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==t.radius){let i=new tV.j(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new tE.M(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class eL{constructor(){this.blur=5,this.color=new n.O,this.color.value="#000",this.enable=!1}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=n.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class eI{constructor(){this.enable=!1,this.frequency=1}load(t){t&&(void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class eD{constructor(){this.blink=!1,this.color=new n.O,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new eL,this.triangles=new eI,this.width=1,this.warp=!1}load(t){t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=n.O.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class eH extends eV{constructor(t){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this.linkContainer,i=t.options.links,s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;let n=i.color;s=(0,d.PG)(n,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(t){if(!t.options.links)return;t.links=[];let e=t.getPosition(),i=this.container,s=i.canvas.size;if(e.x<0||e.y<0||e.x>s.width||e.y>s.height)return;let n=t.options.links,a=n.opacity,r=t.retina.linksDistance??0,l=n.warp,h=l?new ez(e.x,e.y,r,s):new tV.j(e.x,e.y,r);for(let c of i.particles.quadTree.query(h)){let i=c.options.links;if(t===c||!i?.enable||n.id!==i.id||c.spawning||c.destroyed||!c.links||t.links.some(t=>t.destination===c)||c.links.some(e=>e.destination===t))continue;let h=c.getPosition();if(h.x<0||h.y<0||h.x>s.width||h.y>s.height)continue;
1let d=function(t,e,i,s,n){let{dx:a,dy:r,distance:l}=(0,o.vr)(t,e);if(!n||l<=i)return l;let h={x:Math.abs(a),y:Math.abs(r)},c={x:Math.min(h.x,s.width-h.x),y:Math.min(h.y,s.height-h.y)};return Math.sqrt(c.x**2+c.y**2)}(e,h,r,s,l&&i.warp);if(d>r)continue;let u=(1-d/r)*a;this._setColor(t),t.links.push({destination:c,opacity:u})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){for(let i of(t.links||(t.links=new eD),e))t.links.load(i?.links??i?.lineLinked??i?.line_linked)}reset(){}}async function eB(t,e=!0){await t.addInteractor("particlesLinks",t=>new eH(t),e)}function eN(t,e){var i;let s=((i=t.map(t=>t.id)).sort((t,e)=>t-e),i.join("_")),n=e.get(s);return void 0===n&&(n=(0,o.G0)(),e.set(s,n)),n}class ej{constructor(t){this.container=t,this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let s=this.container,n=s.actualOptions,a=e.destination,r=t.getPosition(),l=a.getPosition(),h=e.opacity;s.canvas.draw(e=>{let c;let u=t.options.twinkle?.lines;if(u?.enable){let t=u.frequency,e=(0,d.BN)(u.color);(0,o.G0)()<t&&e&&(c=e,h=(0,o.VG)(u.opacity))}if(!c){let e=void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor;c=(0,d._h)(t,a,e)}if(!c)return;let p=t.retina.linksWidth??0,g=t.retina.linksDistance??0,{backgroundMask:f}=n;!function(t){let e=!1,{begin:i,end:s,maxDistance:n,context:a,canvasSize:r,width:l,backgroundMask:h,colorLine:c,opacity:u,links:p}=t;if((0,o.Yf)(i,s)<=n)(0,tU.V6)(a,i,s),e=!0;else if(p.warp){let t,l;let h={x:s.x-r.width,y:s.y},c=(0,o.vr)(i,h);if(c.distance<=n){let e=i.y-c.dy/c.dx*i.x;t={x:0,y:e},l={x:r.width,y:e}}else{let e={x:s.x,y:s.y-r.height},a=(0,o.vr)(i,e);if(a.distance<=n){let e=-(i.y-a.dy/a.dx*i.x)/(a.dy/a.dx);t={x:e,y:0},l={x:e,y:r.height}}else{let e={x:s.x-r.width,y:s.y-r.height},a=(0,o.vr)(i,e);if(a.distance<=n){let e=i.y-a.dy/a.dx*i.x;l={x:(t={x:-e/(a.dy/a.dx),y:e}).x+r.width,y:t.y+r.height}}}}t&&l&&((0,tU.V6)(a,i,t),(0,tU.V6)(a,s,l),e=!0)}if(!e)return;a.lineWidth=l,h.enable&&(a.globalCompositeOperation=h.composite),a.strokeStyle=(0,d.xx)(c,u);let{shadow:g}=p;if(g.enable){let t=(0,d.BN)(g.color);t&&(a.shadowBlur=g.blur,a.shadowColor=(0,d.xx)(t))}a.stroke()}({context:e,width:p,begin:r,end:l,maxDistance:g,canvasSize:s.canvas.size,links:i,backgroundMask:f,colorLine:c,opacity:h})})},this._drawLinkTriangle=(t,e,i)=>{let s=t.options.links;if(!s?.enable)return;let n=s.triangles;if(!n.enable)return;let a=this.container,r=a.actualOptions,l=e.destination,h=i.destination,c=n.opacity??(e.opacity+i.opacity)/2;c<=0||a.canvas.draw(e=>{let i=t.getPosition(),u=l.getPosition(),p=h.getPosition(),g=t.retina.linksDistance??0;if((0,o.Yf)(i,u)>g||(0,o.Yf)(p,u)>g||(0,o.Yf)(p,i)>g)return;let f=(0,d.BN)(n.color);if(!f){let e=void 0!==s.id?a.particles.linksColors.get(s.id):a.particles.linksColor;f=(0,d._h)(t,l,e)}f&&function(t){let{context:e,pos1:i,pos2:s,pos3:n,backgroundMask:o,colorTriangle:a,opacityTriangle:r}=t;(0,tU.D4)(e,i,s,n),o.enable&&(e.globalCompositeOperation=o.composite),e.fillStyle=(0,d.xx)(a,r),e.fill()}({context:e,pos1:i,pos2:u,pos3:p,backgroundMask:r.backgroundMask,colorTriangle:f,opacityTriangle:c})})},this._drawTriangles=(t,e,i,s)=>{let n=i.destination;if(!(t.links?.triangles.enable&&n.options.links?.triangles.enable))return;let o=n.links?.filter(t=>{let e=this._getLinkFrequency(n,t.destination);return n.options.links&&e<=n.options.links.frequency&&s.findIndex(e=>e.destination===t.destination)>=0});if(o?.length)for(let s of o){let o=s.destination;this._getTriangleFrequency(e,n,o)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>eN([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>eN([t,e,i],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,e){let{links:i,options:s}=e;if(!i||i.length<=0)return;let n=i.filter(t=>s.links&&this._getLinkFrequency(e,t.destination)<=s.links.frequency);for(let t of n)this._drawTriangles(s,e,t,n),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}
1async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this.container.retina.pixelRatio,{retina:i}=t,{distance:s,width:n}=t.options.links;i.linksDistance=s*e,i.linksWidth=n*e}particleDestroyed(t){t.links=[]}}class eU{constructor(){this.id="links"}getPlugin(t){return new ej(t)}loadOptions(){}needsPlugin(){return!0}}async function eF(t,e=!0){let i=new eU;await t.addPlugin(i,e)}async function e$(t,e=!0){await eB(t,e),await eF(t,e)}class eq{draw(t,e,i){let s=this.getCenter(e,i),n=this.getSidesData(e,i),o=n.count.numerator*n.count.denominator,a=n.count.numerator/n.count.denominator,r=Math.PI-180*(a-2)/a*Math.PI/180;if(t){t.beginPath(),t.translate(s.x,s.y),t.moveTo(0,0);for(let e=0;e<o;e++)t.lineTo(n.length,0),t.translate(n.length,0),t.rotate(r)}}getSidesCount(t){let e=t.shapeData;return Math.round((0,o.VG)(e?.sides??e?.nb_sides??5))}}class eQ extends eq{getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){let i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class eW extends eq{getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function eY(t,e=!0){await t.addShape("polygon",new eQ,e)}async function eK(t,e=!0){await t.addShape("triangle",new eW,e)}async function eJ(t,e=!0){await eY(t,e),await eK(t,e)}class eZ{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.DT)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class eX extends a.PV{constructor(){super(),this.animation=new eZ,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class e0{constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,o.VG)(e.value)*Math.PI/180},t.pathRotation=e.path;let i=e.direction;switch("random"===i&&(i=Math.floor(2*(0,o.G0)())>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}let s=e.animation;s.enable&&(t.rotate.decay=1-(0,o.VG)(s.decay),t.rotate.velocity=(0,o.VG)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,o.G0)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&e.animation.enable&&!e.path}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new eX),e))t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(!function(t,e){let i=t.rotate,s=t.options.rotate;if(!i||!s)return;let n=s.animation,o=(i.velocity??0)*e.factor,a=2*Math.PI,r=i.decay??1;n.enable&&("increasing"===i.status?(i.value+=o,i.value>a&&(i.value-=a)):(i.value-=o,i.value<0&&(i.value+=a)),i.velocity&&1!==r&&(i.velocity*=r))}(t,e),t.rotation=t.rotate?.value??0)}}async function e1(t,e=!0){await t.addParticleUpdater("rotate",t=>new e0(t),e)}let e2=Math.sqrt(2);class e5{draw(t,e,i){let s=i/e2,n=2*s;t.rect(-s,-s,n,n)}getSidesCount(){return 4}}async function e3(t,e=!0){await t.addShape(["edge","square"],new e5,e)}class e6{draw(t,e,i){let s=e.sides,n=e.starInset??2;t.moveTo(0,0-i);for(let e=0;e<s;e++)t.rotate(Math.PI/s),t.lineTo(0,0-i*n),t.rotate(Math.PI/s),t.lineTo(0,0-i)}getSidesCount(t){let e=t.shapeData;return Math.round((0,o.VG)(e?.sides??e?.nb_sides??5))}particleInit(t,e){let i=e.shapeData,s=(0,o.VG)(i?.inset??2);e.starInset=s}}async function e8(t,e=!0){await t.addShape("star",new e6,e)}function e4(t,e,i,s,n){if(!e||!i.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let a=(0,o.U4)(i.offset),r=(e.velocity??0)*t.factor+3.6*a,l=e.decay??1;n&&"increasing"!==e.status?(e.value-=r,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)):(e.value+=r,e.value>s&&(e.loops||(e.loops=0),e.loops++,n&&(e.status="decreasing",e.value-=e.value%s))),e.velocity&&1!==l&&(e.velocity
1*=l),e.value>s&&(e.value%=s)}class e9{constructor(t){this.container=t}init(t){let e=this.container,i=t.options,n=(0,s.TA)(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=(0,o.VG)(n.width)*e.retina.pixelRatio,t.strokeOpacity=(0,o.VG)(n.opacity??1),t.strokeAnimation=n.color?.animation;let a=(0,d.R5)(n.color)??t.getFillColor();a&&(t.strokeColor=(0,d.pz)(a,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){let e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){if(!t.strokeColor||!t.strokeAnimation)return;let{h:i,s,l:n}=t.strokeColor,{h:o,s:a,l:r}=t.strokeAnimation;i&&e4(e,i,o,360,!1),s&&e4(e,s,a,100,!0),n&&e4(e,n,r,100,!0)}(t,e)}}async function e7(t,e=!0){await t.addParticleUpdater("strokeColor",t=>new e9(t),e)}let it=["text","character","char"];class ie{draw(t,e,i,n){let o=e.shapeData;if(void 0===o)return;let a=o.value;if(void 0===a)return;void 0===e.text&&(e.text=(0,s.TA)(a,e.randomIndexData));let r=e.text,l=o.style??"",h=o.weight??"400",c=2*Math.round(i),d=o.font??"Verdana",u=e.fill,p=r.length*i/2;t.font=`${l} ${h} ${c}px "${d}"`;let g={x:-p,y:i/2};t.globalAlpha=n,u?t.fillText(r,g.x,g.y):t.strokeText(r,g.x,g.y),t.globalAlpha=1}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(it.find(t=>(0,s.hn)(t,e.particles.shape.type))){let t=it.map(t=>e.particles.shape.options[t]).find(t=>!!t),i=[];(0,s.wJ)(t,t=>{i.push((0,s.Al)(t.font,t.weight))}),await Promise.all(i)}}particleInit(t,e){if(!e.shape||!it.includes(e.shape))return;let i=e.shapeData;if(void 0===i)return;let n=i.value;void 0!==n&&(e.text=(0,s.TA)(n,e.randomIndexData))}}async function ii(t,e=!0){await t.addShape(it,new ie,e)}async function is(t,e=!0){tr(t),await eG(t,!1),await tA(t,!1),await tM(t,!1),await tB(t,!1),await t$(t,!1),await tY(t,!1),await tJ(t,!1),await t0(t,!1),await t5(t,!1),await t9(t,!1),await ee(t,!1),await eO(t,!1),await eM(t,!1),await e$(t,!1),await tG(),await ew(t,!1),await ex(t,!1),await eJ(t,!1),await e3(t,!1),await e8(t,!1),await ii(t,!1),await eS(t,!1),await e1(t,!1),await e7(t,!1),await tC(t,e)}class io{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.DT)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class ia extends a.PV{constructor(){super(),this.animation=new io,this.direction="clockwise",this.enable=!1,this.value=0}load(t){super.load(t),t&&(this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class ir{constructor(t){this.container=t}getTransformValues(t){let e=t.tilt?.enable&&t.tilt;return{b:e?Math.cos(e.value)*e.cosDirection:void 0,c:e?Math.sin(e.value)*e.sinDirection:void 0}}init(t){let e=t.options.tilt;if(!e)return;t.tilt={enable:e.enable,value:(0,o.VG)(e.value)*Math.PI/180,sinDirection:(0,o.G0)()>=.5?1:-1,cosDirection:(0,o.G0)()>=.5?1:-1};let i=e.direction;switch("random"===i&&(i=Math.floor(2*(0,o.G0)())>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.tilt.status="decreasing";break;case"clockwise":t.tilt.status="increasing"}let s=t.options.tilt?.animation;s?.enable&&(t.tilt.decay=1-(0,o.VG)(s.decay),t.tilt.velocity=(0,o.VG)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.tilt.velocity*=(0,o.G0)()))}isEnabled(t){let e=t.options.tilt?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){for(let i of(t.tilt||(t.tilt=new ia),e))t.tilt.load(i?.tilt)}update(t,e){this.isEnabled(t)&&function(t,e){if(!t.tilt||!t.options.tilt)return;let i=t.options.tilt.animation,s=(t.tilt.velocity??0)*e.factor,n=2*Math.PI,o=t.tilt.decay??1;i.enable&&("increasing"===t.tilt.status?(t.tilt.value+=s,t.tilt.value>n&&(t.tilt.value-=n)):(t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=n)),t.tilt.velocity&&1!==o&&(t.tilt.velocity*=o))}(t,e)}}async function il(t,e=!0){await t.addParticleUpdater("tilt",t=>new ir(t),e)}class ih{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=(0,o.DT)(t.opacity)))}}class ic{constructor(){this.lines=new ih,this.particles=new ih}load(t){t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}
1class id{getColorStyles(t,e,i,s){let n=t.options.twinkle;if(!n)return{};let a=n.particles,r=a.enable&&(0,o.G0)()<a.frequency,l=t.options.zIndex,h=(1-t.zIndexFactor)**l.opacityRate,c=r?(0,o.VG)(a.opacity)*h:s,u=(0,d.R5)(a.color),p=u?(0,d.LC)(u,c):void 0,g={},f=r&&p;return g.fill=f?p:void 0,g.stroke=f?p:void 0,g}init(){}isEnabled(t){let e=t.options.twinkle;return!!e&&e.particles.enable}loadOptions(t,...e){for(let i of(t.twinkle||(t.twinkle=new ic),e))t.twinkle.load(i?.twinkle)}update(){}}async function iu(t,e=!0){await t.addParticleUpdater("twinkle",()=>new id,e)}class ip{constructor(){this.angle=50,this.move=10}load(t){t&&(void 0!==t.angle&&(this.angle=(0,o.DT)(t.angle)),void 0!==t.move&&(this.move=(0,o.DT)(t.move)))}}class ig{constructor(){this.distance=5,this.enable=!1,this.speed=new ip}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,o.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed)){if((0,s.Et)(t.speed))this.speed.load({angle:t.speed});else{let e=t.speed;void 0!==e.min?this.speed.load({angle:e}):this.speed.load(t.speed)}}}}class iy{constructor(t){this.container=t}init(t){let e=t.options.wobble;e?.enable?t.wobble={angle:(0,o.G0)()*Math.PI*2,angleSpeed:(0,o.VG)(e.speed.angle)/360,moveSpeed:(0,o.VG)(e.speed.move)/10}:t.wobble={angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=(0,o.VG)(e?.distance??0)*this.container.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.options.wobble?.enable}loadOptions(t,...e){for(let i of(t.wobble||(t.wobble=new ig),e))t.wobble.load(i?.wobble)}update(t,e){this.isEnabled(t)&&function(t,e){let{wobble:i}=t.options,{wobble:s}=t;if(!i?.enable||!s)return;let n=s.angleSpeed*e.factor,o=s.moveSpeed*e.factor*((t.retina.wobbleDistance??0)*e.factor)/(1e3/60),a=2*Math.PI,{position:r}=t;s.angle+=n,s.angle>a&&(s.angle-=a),r.x+=o*Math.cos(s.angle),r.y+=o*Math.abs(Math.sin(s.angle))}(t,e)}}async function iw(t,e=!0){await t.addParticleUpdater("wobble",t=>new iy(t),e)}async function im(t){await is(t),await P(t),await ts(t),await il(t),await iu(t),await iw(t),await N(t),await f(t),await I(t),await X(t)}},77638:(t,e,i)=>{i.d(e,{o:()=>a});var s=i(85149),n=i(15284),o=i(74848),a=(0,s.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";var r={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,n.R)(function(t,e){let{axis:i="both",...n}=t;return(0,o.jsx)(s.B.div,{ref:e,__css:r[i],...n,position:"absolute"})})},37755:(t,e,i)=>{i.d(e,{d:()=>M});var s=i(30061),n=i(16597),o=i(15284),a=i(25498),r=i(44515),l=i(85149),h=i(29857),c=i(96540),d=i(74848),[u,p]=(0,s.q)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[g,f]=(0,s.q)({strict:!1,name:"FormControlContext"});(0,o.R)(function(t,e){let i=(0,a.o5)("Form",t),{getRootProps:s,htmlProps:o,...p}=function(t){let{id:e,isRequired:i,isInvalid:s,isDisabled:o,isReadOnly:a,...r}=t,l=(0,c.useId)(),d=e||`field-${l}`,u=`${d}-label`,p=`${d}-feedback`,g=`${d}-helptext`,[f,y]=(0,c.useState)(!1),[w,m]=(0,c.useState)(!1),[v,b]=(0,c.useState)(!1),_=(0,c.useCallback)((t={},e=null)=>({id:g,...t,ref:(0,n.Px)(e,t=>{t&&m(!0)})}),[g]),S=(0,c.useCallback)((t={},e=null)=>{var i,n;return{...t,ref:e,"data-focus":(0,h.sE)(v),"data-disabled":(0,h.sE)(o),"data-invalid":(0,h.sE)(s),"data-readonly":(0,h.sE)(a),id:null!=(i=t.id)?i:u,htmlFor:null!=(n=t.htmlFor)?n:d}},[d,o,v,s,a,u]),P=(0,c.useCallback)((t={},e=null)=>({id:p,...t,ref:(0,n.Px)(e,t=>{t&&y(!0)}),"aria-live":"polite"}),[p]),x=(0,c.useCallback)((t={},e=null)=>({...t,...r,ref:e,role:"group"}),[r]);return{isRequired:!!i,isInvalid:!!s,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:w,setHasHelpText:m,id:d,labelId:u,feedbackId:p,helpTextId:g,htmlProps:r,getHelpTextProps:_,getErrorMessageProps:P,getRootProps:x,getLabelProps:S,getRequiredIndicatorProps:(0,c.useCallback)((t={},e=null)=>
1({...t,ref:e,role:"presentation","aria-hidden":!0,children:t.children||"*"}),[])}}((0,r.MN)(t)),f=(0,h.cx)("chakra-form-control",t.className);return(0,d.jsx)(g,{value:p,children:(0,d.jsx)(u,{value:i,children:(0,d.jsx)(l.B.div,{...s({},e),className:f,__css:i.container})})})}).displayName="FormControl",(0,o.R)(function(t,e){let i=f(),s=p(),n=(0,h.cx)("chakra-form__helper-text",t.className);return(0,d.jsx)(l.B.div,{...null==i?void 0:i.getHelpTextProps(t,e),__css:s.helperText,className:n})}).displayName="FormHelperText";var y=i(51600),w=i(28933),m=i(11295),v={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},b=!1,_=null,S=!1,P=!1,x=new Set;function C(t,e){x.forEach(i=>i(t,e))}var G="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function V(t){S=!0,t.metaKey||!G&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(_="keyboard",C("keyboard",t))}function T(t){if(_="pointer","mousedown"===t.type||"pointerdown"===t.type){S=!0;let e=t.composedPath?t.composedPath()[0]:t.target,i=!1;try{i=e.matches(":focus-visible")}catch{}i||C("pointer",t)}}function O(t){(0===t.mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(S=!0,_="virtual")}function A(t){t.target!==window&&t.target!==document&&(S||P||(_="virtual",C("virtual",t)),S=!1,P=!1)}function E(){S=!1,P=!0}function k(){return"pointer"!==_}function R(t){t.preventDefault(),t.stopPropagation()}var M=(0,o.R)(function(t,e){let i=(0,a.o5)("Switch",t),{spacing:s="0.5rem",children:o,...u}=(0,r.MN)(t),{state:p,getInputProps:g,getCheckboxProps:_,getRootProps:P,getLabelProps:C}=function(t={}){let{isDisabled:e,isReadOnly:i,isRequired:s,isInvalid:o,id:a,onBlur:r,onFocus:l,"aria-describedby":d}=function(t){var e,i,s;let n=f(),{id:o,disabled:a,readOnly:r,required:l,isRequired:c,isInvalid:d,isReadOnly:u,isDisabled:p,onFocus:g,onBlur:y,...w}=t,m=t["aria-describedby"]?[t["aria-describedby"]]:[];return(null==n?void 0:n.hasFeedbackText)&&(null==n?void 0:n.isInvalid)&&m.push(n.feedbackId),(null==n?void 0:n.hasHelpText)&&m.push(n.helpTextId),{...w,"aria-describedby":m.join(" ")||void 0,id:null!=o?o:null==n?void 0:n.id,isDisabled:null!=(e=null!=a?a:p)?e:null==n?void 0:n.isDisabled,isReadOnly:null!=(i=null!=r?r:u)?i:null==n?void 0:n.isReadOnly,isRequired:null!=(s=null!=l?l:c)?s:null==n?void 0:n.isRequired,isInvalid:null!=d?d:null==n?void 0:n.isInvalid,onFocus:(0,h.Hj)(null==n?void 0:n.onFocus,g),onBlur:(0,h.Hj)(null==n?void 0:n.onBlur,y)}}(t),{defaultChecked:u,isChecked:p,isFocusable:g,onChange:_,isIndeterminate:P,name:C,value:G,tabIndex:M,"aria-label":z,"aria-labelledby":L,"aria-invalid":I,...D}=t,H=function(t,e=[]){let i=Object.assign({},t);for(let t of e)t in i&&delete i[t];return i}(D,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),B=(0,m.c)(_),N=(0,m.c)(r),j=(0,m.c)(l),[U,F]=(0,c.useState)(!1),[$,q]=(0,c.useState)(!1),[Q,W]=(0,c.useState)(!1),[Y,K]=(0,c.useState)(!1);(0,c.useEffect)(()=>(function(t){(function(){if("undefined"==typeof window||b)return;let{focus:t}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...e){S=!0,t.apply(this,e)},document.addEventListener("keydown",V,!0),document.addEventListener("keyup",V,!0),document.addEventListener("click",O,!0),window.addEventListener("focus",A,!0),window.addEventListener("blur",E,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",T,!0),document.addEventListener("pointermove",T,!0),document.addEventListener("pointerup",T,!0)):(document.addEventListener("mousedown",T,!0),document.addEventListener("mousemove",T,!0),document.addEventListener("mouseup",T,!0)),b=!0})(),t(k());let e=()=>t(k());return x.add(e),()=>{x.delete(e)}})(F),[]);let J=(0,c.useRef)(null),[Z,X]=(0,c.useState)(!0),[tt,te]=(0,c.useState)(!!u),ti=void 0!==p,ts=ti?p:tt,tn=(0,c.useCallback)(t=>{if(i||e){t.preventDefault();return}ti||(ts?te(t.target.checked):te(!!P||t.target.checked)),null==B||B(t)},[i,e,ts,ti,P,B]);(0,y.U)(()=>{J.current&&(J.current.indeterminate=!!P)},[P]),(0,w.w)(()=>{e&&q(!1)},[e,q]),(0,y.U)(()=>{let t=J.current;(null==t?void 0:t.form)&&(t.form.onreset=()=>{te(!!u)})},[]);let to=e&&!g,ta=(0,c.useCallback)(t=>{" "===t.key&&K(!0)},[K]),tr=(0,c.useCallback)(t=>{" "===t.key&&K(!1)},[K]);(0,y.U)(()=>{J.current&&J.current.checked!==ts&&te(J.current.checked)},[J.current]);let tl=(0,c.useCallback)((t={},s=null)=>
1({...t,ref:s,"data-active":(0,h.sE)(Y),"data-hover":(0,h.sE)(Q),"data-checked":(0,h.sE)(ts),"data-focus":(0,h.sE)($),"data-focus-visible":(0,h.sE)($&&U),"data-indeterminate":(0,h.sE)(P),"data-disabled":(0,h.sE)(e),"data-invalid":(0,h.sE)(o),"data-readonly":(0,h.sE)(i),"aria-hidden":!0,onMouseDown:(0,h.Hj)(t.onMouseDown,t=>{$&&t.preventDefault(),K(!0)}),onMouseUp:(0,h.Hj)(t.onMouseUp,()=>K(!1)),onMouseEnter:(0,h.Hj)(t.onMouseEnter,()=>W(!0)),onMouseLeave:(0,h.Hj)(t.onMouseLeave,()=>W(!1))}),[Y,ts,e,$,U,Q,P,o,i]),th=(0,c.useCallback)((t={},i=null)=>({...H,...t,ref:(0,n.Px)(i,t=>{t&&X("LABEL"===t.tagName)}),onClick:(0,h.Hj)(t.onClick,()=>{var t;Z||(null==(t=J.current)||t.click(),requestAnimationFrame(()=>{var t;null==(t=J.current)||t.focus()}))}),"data-disabled":(0,h.sE)(e),"data-checked":(0,h.sE)(ts),"data-invalid":(0,h.sE)(o)}),[H,e,ts,o,Z]),tc=(0,c.useCallback)((t={},r=null)=>({...t,ref:(0,n.Px)(J,r),type:"checkbox",name:C,value:G,id:a,tabIndex:M,onChange:(0,h.Hj)(t.onChange,tn),onBlur:(0,h.Hj)(t.onBlur,N,()=>q(!1)),onFocus:(0,h.Hj)(t.onFocus,j,()=>q(!0)),onKeyDown:(0,h.Hj)(t.onKeyDown,ta),onKeyUp:(0,h.Hj)(t.onKeyUp,tr),required:s,checked:ts,disabled:to,readOnly:i,"aria-label":z,"aria-labelledby":L,"aria-invalid":I?!!I:o,"aria-describedby":d,"aria-disabled":e,style:v}),[C,G,a,tn,N,j,ta,tr,s,ts,to,i,z,L,I,o,d,e,M]),td=(0,c.useCallback)((t={},i=null)=>({...t,ref:i,onMouseDown:(0,h.Hj)(t.onMouseDown,R),onTouchStart:(0,h.Hj)(t.onTouchStart,R),"data-disabled":(0,h.sE)(e),"data-checked":(0,h.sE)(ts),"data-invalid":(0,h.sE)(o)}),[ts,e,o]);return{state:{isInvalid:o,isFocused:$,isChecked:ts,isActive:Y,isHovered:Q,isIndeterminate:P,isDisabled:e,isReadOnly:i,isRequired:s},getRootProps:th,getCheckboxProps:tl,getInputProps:tc,getLabelProps:td,htmlProps:H}}(u),G=(0,c.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),M=(0,c.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),z=(0,c.useMemo)(()=>({userSelect:"none",marginStart:s,...i.label}),[s,i.label]);return(0,d.jsxs)(l.B.label,{...P(),className:(0,h.cx)("chakra-switch",t.className),__css:G,children:[(0,d.jsx)("input",{className:"chakra-switch__input",...g({},e)}),(0,d.jsx)(l.B.span,{..._(),className:"chakra-switch__track",__css:M,children:(0,d.jsx)(l.B.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":(0,h.sE)(p.isChecked),"data-hover":(0,h.sE)(p.isHovered)})}),o&&(0,d.jsx)(l.B.span,{className:"chakra-switch__label",...C(),__css:z,children:o})]})});M.displayName="Switch"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.