@tsparticles/engine 4.0.0-alpha.5 → 4.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/794.min.js +1 -1
- package/794.min.js.LICENSE.txt +1 -1
- package/browser/Core/Canvas.js +25 -19
- package/browser/Core/Engine.js +2 -4
- package/browser/Core/Particle.js +22 -6
- package/browser/Core/Utils/Constants.js +1 -1
- package/browser/Enums/Types/EasingType.js +18 -3
- package/browser/Utils/CanvasUtils.js +0 -12
- package/cjs/Core/Canvas.js +25 -19
- package/cjs/Core/Engine.js +2 -4
- package/cjs/Core/Particle.js +22 -6
- package/cjs/Core/Utils/Constants.js +1 -1
- package/cjs/Enums/Types/EasingType.js +18 -3
- package/cjs/Utils/CanvasUtils.js +0 -12
- package/dist_browser_Core_Container_js.js +3 -3
- package/esm/Core/Canvas.js +25 -19
- package/esm/Core/Engine.js +2 -4
- package/esm/Core/Particle.js +22 -6
- package/esm/Core/Utils/Constants.js +1 -1
- package/esm/Enums/Types/EasingType.js +18 -3
- package/esm/Utils/CanvasUtils.js +0 -12
- package/package.json +1 -1
- package/report.html +3 -3
- package/tsparticles.engine.js +7 -7
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -1
- package/types/Core/Canvas.d.ts +0 -2
- package/types/Core/Interfaces/IContainerPlugin.d.ts +4 -0
- package/types/Core/Particle.d.ts +1 -0
- package/types/Core/Utils/Constants.d.ts +1 -1
- package/types/Enums/Types/EasingType.d.ts +20 -5
- package/types/Utils/CanvasUtils.d.ts +0 -2
- package/umd/Core/Canvas.js +24 -18
- package/umd/Core/Engine.js +2 -4
- package/umd/Core/Particle.js +21 -5
- package/umd/Core/Utils/Constants.js +2 -2
- package/umd/Enums/Types/EasingType.js +18 -3
- package/umd/Utils/CanvasUtils.js +0 -14
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.engine.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,(()=>(()=>{var t,e,i={302(t,e,i){i.d(e,{AE:()=>S,Al:()=>b,BR:()=>g,E9:()=>E,HQ:()=>$,Kp:()=>C,O2:()=>z,T5:()=>p,TA:()=>T,Tg:()=>O,Tj:()=>M,UC:()=>L,Vh:()=>w,Xs:()=>F,YC:()=>A,hJ:()=>V,hn:()=>y,lV:()=>v,n0:()=>x,pE:()=>R,q8:()=>f,tG:()=>m,td:()=>I,w3:()=>_,wJ:()=>k,zw:()=>P});var n=i(1680),o=i(7642),s=i(838),a=i(7098),r=i(1292),c=i(8020),l=i(5931),d=i(5652),u=i(1317),h=i(8095);function f(){return"undefined"!=typeof matchMedia}function p(){return globalThis.document}function v(t){if(f())return matchMedia(t)}function g(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function m(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}function y(t,e){return t===e||(0,s.cy)(e)&&e.includes(t)}async function b(t,e){try{await p().fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function x(t){return Math.floor((0,n.G0)()*t.length)}function w(t,e,i=!0){return t[void 0!==e&&i?e%t.length:x(t)]}function M(t,e,i,n,o){return z(S(t,n??0),e,i,o)}function z(t,e,i,n){let o=!0;return n&&n!==l.v.bottom||(o=t.top<e.height+i.x),!o||n&&n!==l.v.left||(o=t.right>i.x),!o||n&&n!==l.v.right||(o=t.left<e.width+i.y),!o||n&&n!==l.v.top||(o=t.bottom>i.y),o}function S(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function P(t,...e){for(const i of e){if(null==i)continue;if(!(0,s.Gv)(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):(0,s.Gv)(t)&&!Array.isArray(t)||(t={});for(const e in i){if("__proto__"===e)continue;const n=i[e],o=t;o[e]=(0,s.Gv)(n)&&Array.isArray(n)?n.map((t=>P(o[e],t))):P(o[e],n)}}return t}function O(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:h.M.create((0,n.VG)(t.options.bounce.horizontal.value),(0,n.VG)(t.options.bounce.vertical.value))}}function R(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,a]=[t.position,e.position],{dx:r,dy:c}=(0,n.vr)(a,s);if(i*r+o*c<0)return;const l=-Math.atan2(c,r),d=t.mass,u=e.mass,h=t.velocity.rotate(l),f=e.velocity.rotate(l),p=(0,n.OW)(h,f,d,u),v=(0,n.OW)(f,h,d,u),g=p.rotate(-l),m=v.rotate(-l);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y}function k(t,e){return(0,s.cy)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function T(t,e,i){return(0,s.cy)(t)?w(t,e,i):t}function _(t,e){if((0,s.cy)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function F(t,e){const i=t.value,s=t.animation,c={delayTime:(0,n.VG)(s.delay)*o.Xu,enable:s.enable,value:(0,n.VG)(t.value)*e,max:(0,n.W9)(i)*e,min:(0,n.Sg)(i)*e,loops:0,maxLoops:(0,n.VG)(s.count),time:0};if(s.enable){switch(c.decay=1-(0,n.VG)(s.decay),s.mode){case a.g.increase:c.status=r.H.increasing;break;case a.g.decrease:c.status=r.H.decreasing;break;case a.g.random:c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing}const t=s.mode===a.g.auto;switch(s.startValue){case u.S.min:c.value=c.min,t&&(c.status=r.H.increasing);break;case u.S.max:c.value=c.max,t&&(c.status=r.H.decreasing);break;case u.S.random:default:c.value=(0,n.vE)(c),t&&(c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing)}}return c.initialValue=c.value,c}function D(t,e){if(!(t.mode===d.q.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/o.a5*e.width,y:t.y/o.a5*e.height}:{width:t.width/o.a5*e.width,height:t.height/o.a5*e.height}}function E(t,e){return D(t,e)}function A(t,e){return D(t,e)}function L(t,e,i,o,s){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*s.factor,l=e.min,d=e.max,u=e.decay??1;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=s.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case r.H.increasing:e.value>=d?(i?e.status=r.H.decreasing:e.value-=d,e.loops??=0,e.loops++):e.value+=a;break;case r.H.decreasing:e.value<=l?(i?e.status=r.H.increasing:e.value+=d,e.loops??=0,e.loops++):e.value-=a}e.velocity&&1!==u&&(e.velocity*=u),function(t,e,i,n,o){switch(e){case c.V.max:i>=o&&t.destroy();break;case c.V.min:i<=n&&t.destroy()}}(t,o,e.value,l,d),e.value=(0,n.qE)(e.value,l,d)}}function I(t){const e=p().createElement("div").style;for(const i in t){const n=t[i];if(!Object.hasOwn(t,i)||(0,s.kZ)(n))continue;const o=t.getPropertyValue?.(n);if(!o)continue;const a=t.getPropertyPriority?.(n);a?e.setProperty(n,o,a):e.setProperty(n,o)}return e}const V=function(t){const e=new Map;return(...i)=>{const n=JSON.stringify(i);if(e.has(n))return e.get(n);const o=t(...i);return e.set(n,o),o}}((function(t){const e=p().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(const t in i){const n=i[t];void 0!==n&&e.setProperty(t,n)}return e}));function C(t,e,i,n,o){if(n){let n={passive:!0};(0,s.Lm)(o)?n.capture=o:void 0!==o&&(n=o),t.addEventListener(e,i,n)}else{const n=o;t.removeEventListener(e,i,n)}}async function $(t,e,i,n=!1){let o=e.get(t);return o&&!n||(o=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,o)),o}},511(t,e,i){i.d(e,{N:()=>a});var n=i(6632),o=i(2936),s=i(838);class a{constructor(){this.density=new n.M,this.limit=new o.A,this.value=0}load(t){(0,s.kZ)(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},541(t,e,i){i.d(e,{h:()=>s});var n=i(838),o=i(1680);class s{constructor(){this.offset=0,this.value=90}load(t){(0,n.kZ)(t)||(void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset)),void 0!==t.value&&(this.value=(0,o.DT)(t.value)))}}},838(t,e,i){function n(t){return"boolean"==typeof t}function o(t){return"string"==typeof t}function s(t){return"number"==typeof t}function a(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function c(t){return Array.isArray(t)}function l(t){return null==t}i.d(e,{Et:()=>s,Gv:()=>r,Kg:()=>o,Lm:()=>n,Tn:()=>a,cy:()=>c,kZ:()=>l})},849(t,e,i){i.d(e,{Z:()=>s});var n=i(5652),o=i(838);class s{constructor(){this.x=50,this.y=50,this.mode=n.q.percent,this.radius=0}load(t){(0,o.kZ)(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))}}},913(t,e,i){i.d(e,{AI:()=>c,Jm:()=>r,PV:()=>a});var n=i(7435),o=i(838),s=i(1680);class a{constructor(){this.value=0}load(t){(0,o.kZ)(t)||(0,o.kZ)(t.value)||(this.value=(0,s.DT)(t.value))}}class r extends a{constructor(){super(),this.animation=new n.p}load(t){if(super.load(t),(0,o.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class c extends r{constructor(){super(),this.animation=new n.Q}load(t){super.load(t)}}},1152(t,e,i){i.d(e,{y:()=>s});var n=i(302),o=i(838);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if((0,o.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},1222(t,e,i){i.d(e,{V:()=>s});var n=i(3254),o=i(838);class s{constructor(){this.color=new n.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){(0,o.kZ)(t)||(void 0!==t.color&&(this.color=n.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))}}},1292(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.increasing="increasing",t.decreasing="decreasing"}(n||(n={}))},1317(t,e,i){var n;i.d(e,{S:()=>n}),function(t){t.max="max",t.min="min",t.random="random"}(n||(n={}))},1640(t,e,i){var n;i.d(e,{Y:()=>n}),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(n||(n={}))},1680(t,e,i){i.d(e,{$m:()=>R,AD:()=>f,DT:()=>M,G0:()=>u,JY:()=>O,M3:()=>A,Mh:()=>_,Nx:()=>D,OE:()=>d,OW:()=>k,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>T,i0:()=>p,jh:()=>m,l1:()=>F,pu:()=>P,px:()=>v,qE:()=>g,qM:()=>E,vE:()=>y,vr:()=>z});var n=i(1953),o=i(7642),s=i(8095),a=i(838);const r=Math.PI/180;let c=Math.random;const l={nextFrame:t=>requestAnimationFrame(t),cancel:t=>{cancelAnimationFrame(t)}};function d(t=Math.random){c=t}function u(){return g(c(),0,1-Number.EPSILON)}function h(t,e){return u()*(e-t)+t}function f(t,e){l.nextFrame=e=>t(e),l.cancel=t=>{e(t)}}function p(t){return l.nextFrame(t)}function v(t){l.cancel(t)}function g(t,e,i){return Math.min(Math.max(t,e),i)}function m(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function y(t){const e=w(t);let i=x(t);return e===i&&(i=0),h(i,e)}function b(t){return(0,a.Et)(t)?t:y(t)}function x(t){return(0,a.Et)(t)?t:t.min}function w(t){return(0,a.Et)(t)?t:t.max}function M(t,e){if(t===e||void 0===e&&(0,a.Et)(t))return t;const i=x(t),n=w(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:M(i,n)}function z(t,e){const i=t.x-e.x,n=t.y-e.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function S(t,e){return z(t,e).distance}function P(t){return t*r}function O(t,e,i){if((0,a.Et)(t))return P(t);switch(t){case n.F.top:return-Math.PI*o.MX;case n.F.topRight:return-Math.PI*o.$G;case n.F.right:return o.Ie;case n.F.bottomRight:return Math.PI*o.$G;case n.F.bottom:return Math.PI*o.MX;case n.F.bottomLeft:return Math.PI*o.Rq;case n.F.left:return Math.PI;case n.F.topLeft:return-Math.PI*o.Rq;case n.F.inside:return Math.atan2(i.y-e.y,i.x-e.x);case n.F.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*o.R1}}function R(t){const e=s.M.origin;return e.length=1,e.angle=t,e}function k(t,e,i,n){return s.M.create(t.x*(i-n)/(i+n)+e.x*o.gd*n/(i+n),t.y)}function T(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/o.a5,y:t.position.y*t.size.height/o.a5}:void 0}function _(t){return{x:(t.position?.x??u()*o.a5)*t.size.width/o.a5,y:(t.position?.y??u()*o.a5)*t.size.height/o.a5}}function F(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return _({size:t.size,position:e})}function D(t){const{position:e,size:i}=t;return{x:e?.x??u()*i.width,y:e?.y??u()*i.height}}function E(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return D({size:t.size,position:e})}function A(t){return t?t.endsWith("%")?parseFloat(t)/o.a5:parseFloat(t):1}},1784(t,e,i){i.d(e,{e:()=>a});var n=i(7435),o=i(838),s=i(1680);class a extends n.p{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset))}}},1872(t,e,i){i.d(e,{y:()=>s});var n=i(838),o=i(1680);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){(0,n.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,o.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,o.DT)(t.maxSpeed)))}}},1953(t,e,i){var n;i.d(e,{F:()=>n}),function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(n||(n={}))},2037(t,e,i){i.d(e,{J:()=>d});var n=i(302),o=i(838),s=i(1222),a=i(7336),r=i(8907),c=i(9176),l=i(1680);class d{constructor(t,e){this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,c.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(t){if((0,o.kZ)(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.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,l.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,l.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.hdr&&(this.hdr=t.hdr),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);const s=t.fullScreen;(0,o.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(t.particles),this.resize.load(t.resize),this.style=(0,n.zw)(this.style,t.style),void 0!==t.smooth&&(this.smooth=t.smooth),this._engine.plugins.forEach((e=>{e.loadOptions(this._container,this,t)}))}}},2936(t,e,i){i.d(e,{A:()=>s});var n=i(6423),o=i(838);class s{constructor(){this.mode=n.d.delete,this.value=0}load(t){(0,o.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},2984(t,e,i){var n;i.d(e,{dg:()=>a,jl:()=>r,M_:()=>c}),function(t){t.circle="circle",t.rectangle="rectangle"}(n||(n={}));var o=i(1680),s=i(7642);class a{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class r extends a{constructor(t,e,i){super(t,e,n.circle),this.radius=i}contains(t){return(0,o.Yf)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,o=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y),l=this.radius;if(t instanceof r||t.type===n.circle){return l+t.radius>Math.sqrt(o**s.dm+a**s.dm)}if(t instanceof c||t.type===n.rectangle){const e=t,{width:i,height:n}=e.size;return Math.pow(o-i,s.dm)+Math.pow(a-n,s.dm)<=l**s.dm||o<=l+i&&a<=l+n||o<=i||a<=n}return!1}}class c extends a{constructor(t,e,i,o){super(t,e,n.rectangle),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+i}intersects(t){if(t instanceof r)return t.intersects(this);const e=this.size.width,i=this.size.height,n=this.position,o=t.position,s=t instanceof c?t.size:{width:0,height:0},a=s.width,l=s.height;return o.x<n.x+e&&o.x+a>n.x&&o.y<n.y+i&&o.y+l>n.y}}},3079(t,e,i){i.d(e,{R:()=>s});var n=i(838),o=i(1680);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!(0,n.kZ)(t)&&(void 0!==t.distance&&(this.distance=(0,o.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},3254(t,e,i){i.d(e,{O:()=>o});var n=i(838);class o{constructor(){this.value=""}static create(t,e){const i=new o;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){(0,n.kZ)(t)||(0,n.kZ)(t.value)||(this.value=t.value)}}},3278(t,e,i){i.d(e,{U:()=>v});var n=i(302),o=i(7296),s=i(838);class a{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if((0,s.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(3448),c=i(9476),l=i(4467),d=i(511),u=i(1152),h=i(9112),f=i(5611),p=i(9358);class v{constructor(t,e){this._engine=t,this._container=e,this.bounce=new l.w,this.color=new o.A,this.color.value="#fff",this.effect=new a,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new c.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new f.t,this.zIndex=new p.P}load(t){if((0,s.kZ)(t))return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,n.zw)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(o.A.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.zIndex.load(t.zIndex);const e=t.stroke;if(e&&(this.stroke=(0,n.wJ)(e,(t=>{const e=new f.t;return e.load(t),e}))),this._container){for(const e of this._engine.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this._container,this,t);const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}}},3448(t,e,i){i.d(e,{y:()=>f});var n=i(1953),o=i(838),s=i(541),a=i(3079),r=i(849),c=i(1872),l=i(5979),d=i(7897),u=i(6649),h=i(1680);class f{constructor(){this.angle=new s.h,this.attract=new a.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=n.F.none,this.drift=0,this.enable=!1,this.gravity=new c.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(t){if((0,o.kZ)(t))return;this.angle.load((0,o.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,h.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,o.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,h.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,o.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,h.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},3838(t,e,i){var n;i.d(e,{B:()=>n}),function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(n||(n={}))},4056(t,e,i){i.d(e,{i:()=>s});var n=i(1784),o=i(838);class s{constructor(){this.h=new n.e,this.s=new n.e,this.l=new n.e}load(t){(0,o.kZ)(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},4326(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.darken="darken",t.enlighten="enlighten"}(n||(n={}))},4467(t,e,i){i.d(e,{w:()=>s});var n=i(6684),o=i(838);class s{constructor(){this.horizontal=new n.F,this.vertical=new n.F}load(t){(0,o.kZ)(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},5611(t,e,i){i.d(e,{t:()=>a});var n=i(7296),o=i(838),s=i(1680);class a{constructor(){this.width=0}load(t){(0,o.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,s.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,s.DT)(t.opacity)))}}},5652(t,e,i){var n;i.d(e,{q:()=>n}),function(t){t.precise="precise",t.percent="percent"}(n||(n={}))},5931(t,e,i){var n;i.d(e,{v:()=>n}),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(n||(n={}))},5979(t,e,i){i.d(e,{v:()=>a});var n=i(913),o=i(302),s=i(838);class a{constructor(){this.clamp=!0,this.delay=new n.PV,this.enable=!1,this.options={}}load(t){(0,s.kZ)(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,o.zw)(this.options,t.options)))}}},6312(t,e,i){var n;i.d(e,{x:()=>n}),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(n||(n={}))},6423(t,e,i){var n;i.d(e,{d:()=>n}),function(t){t.delete="delete",t.wait="wait"}(n||(n={}))},6632(t,e,i){i.d(e,{M:()=>o});var n=i(838);class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if((0,n.kZ)(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},6649(t,e,i){i.d(e,{t:()=>a});var n=i(302),o=i(838),s=i(1680);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){(0,o.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,s.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,n.zw)({},t.position)))}}},6684(t,e,i){i.d(e,{F:()=>o});var n=i(913);class o extends n.PV{constructor(){super(),this.value=1}}},6754(t,e,i){i.d(e,{IU:()=>l,KG:()=>f,Md:()=>c,Sn:()=>r,V6:()=>a,VG:()=>v,Wb:()=>m,e_:()=>g,gF:()=>p,k:()=>u,l7:()=>s,p0:()=>d,yx:()=>y,z5:()=>h});var n=i(7642),o=i(4326);function s(t,e,i){e.clearDraw&&e.clearDraw(t,i)}function a(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function r(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(n.bo.x,n.bo.y,e.width,e.height)}function c(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,n.bo.x,n.bo.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(n.bo.x,n.bo.y,e.width,e.height)}function d(t){const{container:e,context:i,particle:o,delta:s,colorStyles:a,radius:r,opacity:c,transform:l}=t,d=o.getPosition(),g=o.getTransformData(l);i.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const m=o.strokeWidth??n.Dv;i.lineWidth=m,a.stroke&&(i.strokeStyle=a.stroke);const y={context:i,particle:o,radius:r,opacity:c,delta:s,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:m>n.Dv||!o.shapeFill,transformData:g};h(e,y),v(e,y),f(e,y),p(e,y),u(e,y),i.resetTransform()}function u(t,e){const{particle:i}=e;if(!i.effect)return;const n=t.effectDrawers.get(i.effect),o=n?.drawAfter;o&&o(e)}function h(t,e){const{particle:i}=e;if(!i.effect)return;const n=t.effectDrawers.get(i.effect);n?.drawBefore&&n.drawBefore(e)}function f(t,e){const{context:i,particle:n,stroke:o}=e;if(!n.shape)return;const s=t.shapeDrawers.get(n.shape);s&&(i.beginPath(),s.draw(e),n.shapeClose&&i.closePath(),o&&i.stroke(),n.shapeFill&&i.fill())}function p(t,e){const{particle:i}=e;if(!i.shape)return;const n=t.shapeDrawers.get(i.shape);n?.afterDraw&&n.afterDraw(e)}function v(t,e){const{particle:i}=e;if(!i.shape)return;const n=t.shapeDrawers.get(i.shape);n?.beforeDraw&&n.beforeDraw(e)}function g(t,e,i){e.draw&&e.draw(t,i)}function m(t,e,i,n){e.drawParticle&&e.drawParticle(t,i,n)}function y(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===o.H.darken?-n.iU:n.iU)*i}}},7098(t,e,i){var n;i.d(e,{g:()=>n}),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(n||(n={}))},7296(t,e,i){i.d(e,{A:()=>a});var n=i(838),o=i(4056),s=i(3254);class a extends s.O{constructor(){super(),this.animation=new o.i}static create(t,e){const i=new a;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),(0,n.kZ)(t))return;const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}},7336(t,e,i){i.d(e,{m:()=>o});var n=i(838);class o{constructor(){this.enable=!0,this.zIndex=0}load(t){(0,n.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},7435(t,e,i){i.d(e,{Q:()=>c,p:()=>r});var n=i(7098),o=i(1317),s=i(838),a=i(1680);class r{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){(0,s.kZ)(t)||(void 0!==t.count&&(this.count=(0,a.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,a.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,a.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,a.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class c extends r{constructor(){super(),this.mode=n.g.auto,this.startValue=o.S.random}load(t){super.load(t),(0,s.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},7642(t,e,i){i.d(e,{$G:()=>I,$O:()=>B,$_:()=>F,$v:()=>J,$x:()=>S,BF:()=>Rt,BW:()=>h,DN:()=>Q,D_:()=>xt,Dv:()=>wt,Eo:()=>nt,FS:()=>H,Fl:()=>kt,GW:()=>C,Ie:()=>L,JC:()=>K,K3:()=>pt,KZ:()=>N,Kw:()=>M,L1:()=>D,LD:()=>gt,M1:()=>rt,MX:()=>r,N5:()=>ot,NF:()=>o,Nu:()=>St,Nx:()=>U,PZ:()=>Y,Pg:()=>O,R1:()=>p,RF:()=>b,RV:()=>G,Rh:()=>lt,Rq:()=>V,TL:()=>j,U0:()=>A,Ug:()=>d,WH:()=>it,X$:()=>y,X_:()=>at,Xu:()=>c,Zp:()=>P,a5:()=>a,aE:()=>Ot,aZ:()=>g,bo:()=>l,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>n,eu:()=>_,gd:()=>f,hB:()=>R,hK:()=>_t,hv:()=>q,i8:()=>X,iU:()=>Mt,jn:()=>Tt,l:()=>st,lA:()=>vt,mR:()=>u,nK:()=>s,nq:()=>ut,oi:()=>k,ou:()=>dt,pH:()=>mt,rq:()=>x,tA:()=>bt,tR:()=>Ft,td:()=>yt,un:()=>ct,vF:()=>W,vS:()=>T,vd:()=>zt,w2:()=>Z,wM:()=>ht,xH:()=>tt,xd:()=>z,yx:()=>E,z$:()=>v,z9:()=>ft,zg:()=>Pt,zs:()=>$});const n="generated",o="resize",s="visibilitychange",a=100,r=.5,c=1e3,l={x:0,y:0,z:0},d={a:1,b:0,c:0,d:1},u="random",h="mid",f=2,p=Math.PI*f,v=60,g=1,m="true",y="false",b="canvas",x=0,w=2,M=4,z=1,S=1,P=1,O=4,R=1,k=255,T=360,_=100,F=100,D=0,E=0,A=60,L=0,I=.25,V=r+I,C=0,$=1,Z=0,B=0,G=1,q=1,H=1,N=1,j=0,K=1,W=0,X=120,Q=0,U=0,J=1e4,Y=0,tt=1,et=0,it=1,nt=1,ot=0,st=1,at=0,rt=0,ct=-I,lt=1.5,dt=0,ut=1,ht=0,ft=0,pt=1,vt=1,gt=1,mt=500,yt=50,bt=0,xt=1,wt=0,Mt=1,zt=0,St=3,Pt=6,Ot=1,Rt=1,kt=0,Tt=0,_t=0,Ft=0},7897(t,e,i){i.d(e,{j:()=>s});var n=i(1640),o=i(838);class s{constructor(){this.default=n.Y.out}load(t){(0,o.kZ)(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)}}},7932(t,e,i){i.d(e,{B:()=>o,t:()=>s});const n={debug:console.debug,error:(t,e)=>{console.error(`tsParticles - Error - ${t}`,e)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function o(t){n.debug=t.debug,n.error=t.error,n.info=t.info,n.log=t.log,n.verbose=t.verbose,n.warning=t.warning}function s(){return n}},8020(t,e,i){var n;i.d(e,{V:()=>n}),function(t){t.none="none",t.max="max",t.min="min"}(n||(n={}))},8044(t,e,i){i.d(e,{I:()=>a});var n=i(8020),o=i(7435),s=i(838);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=2}load(t){super.load(t),(0,s.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}},8095(t,e,i){i.d(e,{M:()=>s,p:()=>o});var n=i(7642);class o{constructor(t=n.bo.x,e=n.bo.y,i=n.bo.z){this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},this.x=t,this.y=e,this.z=i}static get origin(){return o.create(n.bo.x,n.bo.y,n.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return o.create(t.x,t.y,t.z)}static create(t,e,i){return"number"==typeof t?new o(t,e??n.bo.y,i??n.bo.z):new o(t.x,t.y,Object.hasOwn(t,"z")?t.z:n.bo.z)}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**n.dm+this.y**n.dm}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(){const t=this.length;t!=n.dv&&this.multTo(n.hB/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),n.bo.z)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:n.bo.z}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}}class s extends o{constructor(t=n.bo.x,e=n.bo.y){super(t,e,n.bo.z)}static get origin(){return s.create(n.bo.x,n.bo.y)}static clone(t){return s.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new s(t,e??n.bo.y):new s(t.x,t.y)}}},8229(t,e,i){i.d(e,{b:()=>n});class n{constructor(t,e){this.position=t,this.particle=e}}},8907(t,e,i){i.d(e,{z:()=>o});var n=i(838);class o{constructor(){this.delay=.5,this.enable=!0}load(t){(0,n.kZ)(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},9112(t,e,i){i.d(e,{o:()=>a});var n=i(913),o=i(9968),s=i(838);class a extends n.AI{constructor(){super(),this.animation=new o.q,this.value=3}load(t){if(super.load(t),(0,s.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},9176(t,e,i){i.d(e,{Z:()=>o,y:()=>s});var n=i(3278);function o(t,...e){for(const i of e)t.load(i)}function s(t,e,...i){const s=new n.U(t,e);return o(s,...i),s}},9358(t,e,i){i.d(e,{P:()=>s});var n=i(913),o=i(838);class s extends n.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),(0,o.kZ)(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))}}},9476(t,e,i){i.d(e,{Y:()=>a});var n=i(8044),o=i(913),s=i(838);class a extends o.AI{constructor(){super(),this.animation=new n.I,this.value=1}load(t){if((0,s.kZ)(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},9599(t,e,i){i.d(e,{BN:()=>u,EY:()=>S,Jv:()=>F,K6:()=>v,Ko:()=>_,LC:()=>z,OH:()=>x,O_:()=>R,PG:()=>O,R5:()=>p,YL:()=>y,_h:()=>P,ay:()=>b,eg:()=>m,mK:()=>f,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var n=i(1680),o=i(7642),s=i(838),a=i(1292),r=i(302);const c=new Map;function l(t,e){let i=c.get(t);if(!i){if(i=e(),c.size>=1e3){[...c.keys()].slice(0,1e3*o.MX).forEach((t=>c.delete(t)))}c.set(t,i)}return i}function d(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}function u(t,e,i,n=!0){if(!e)return;const o=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(o.value))return h(t,o.value,i,n);if((0,s.cy)(o.value)){const e=(0,r.Vh)(o.value,i,n);if(!e)return;return u(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(o);if(t)return t}}function h(t,e,i,n=!0){if(!e)return;const a=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(a.value))return a.value===o.mR?x():m(t,a.value);if((0,s.cy)(a.value)){const e=(0,r.Vh)(a.value,i,n);if(!e)return;return h(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(a);if(t)return t}}function f(t,e,i,n=!0){const o=h(t,e,i,n);return o?v(o):void 0}function p(t,e,i,n=!0){const o=u(t,e,i,n);return o?v(o):void 0}function v(t){const e=t.r/o.oi,i=t.g/o.oi,n=t.b/o.oi,s=Math.max(e,i,n),a=Math.min(e,i,n),r={h:o.L1,l:(s+a)*o.MX,s:o.yx};return s!==a&&(r.s=r.l<o.MX?(s-a)/(s+a):(s-a)/(o.gd-s-a),r.h=e===s?(i-n)/(s-a):i===s?o.gd+(n-e)/(s-a):o.gd*o.gd+(e-i)/(s-a)),r.l*=o.$_,r.s*=o.eu,r.h*=o.U0,r.h<o.L1&&(r.h+=o.vS),r.h>=o.vS&&(r.h-=o.vS),r}function g(t,e){return d(t,e)?.a}function m(t,e){return d(t,e)}function y(t){const e=(t.h%o.vS+o.vS)%o.vS,i=Math.max(o.yx,Math.min(o.eu,t.s)),n=Math.max(o.vd,Math.min(o.$_,t.l)),s=e/o.vS,a=i/o.eu,r=n/o.$_;if(i===o.yx){const t=Math.round(r*o.oi);return{r:t,g:t,b:t}}const c=(t,e,i)=>{if(i<0&&i++,i>1&&i--,i*o.zg<1)return t+(e-t)*o.zg*i;if(i*o.gd<1)return e;if(i*o.Nu<1*o.gd){return t+(e-t)*(o.gd/o.Nu-i)*o.zg}return t},l=r<o.MX?r*(o.aE+a):r+a-r*a,d=o.gd*r-l,u=o.BF/o.Nu,h=Math.min(o.oi,o.oi*c(d,l,s+u)),f=Math.min(o.oi,o.oi*c(d,l,s)),p=Math.min(o.oi,o.oi*c(d,l,s-u));return{r:Math.round(h),g:Math.round(f),b:Math.round(p)}}function b(t){const e=y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function x(t){const e=t??o.Fl,i=o.oi+o.D_,s=()=>Math.floor((0,n.e4)(e,i));return{b:s(),g:s(),r:s()}}function w(t,e,i){const n=i??o.hv;return l(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,(()=>e?M(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??o.hv).toString()})`}(t,i)))}function M(t,e){return`color(display-p3 ${(t.r/o.oi).toString()} ${(t.g/o.oi).toString()} ${(t.b/o.oi).toString()} / ${(e??o.hv).toString()})`}function z(t,e,i){const n=i??o.hv;return l(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,(()=>e?function(t,e){return M(y(t),e)}(t,i):function(t,e){return`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${(e??o.hv).toString()})`}(t,i)))}function S(t,e,i,o){let s=t,a=e;return Object.hasOwn(s,"r")||(s=y(t)),Object.hasOwn(a,"r")||(a=y(e)),{b:(0,n.jh)(s.b,a.b,i,o),g:(0,n.jh)(s.g,a.g,i,o),r:(0,n.jh)(s.r,a.r,i,o)}}function P(t,e,i){if(i===o.mR)return x();if(i!==o.BW)return i;{const i=t.getFillColor()??t.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(i&&n&&e)return S(i,n,t.getRadius(),e.getRadius());{const t=i??n;if(t)return y(t)}}}function O(t,e,i,n){const a=(0,s.Kg)(e)?e:e.value;return a===o.mR?n?u(t,{value:a}):i?o.mR:o.BW:a===o.BW?o.BW:u(t,{value:a})}function R(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function k(t,e,i){const n={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(T(n.h,e.h,i),T(n.s,e.s,i),T(n.l,e.l,i)),n}function T(t,e,i){t.enable=e.enable,t.enable?(t.velocity=(0,n.VG)(e.speed)/o.a5*i,t.decay=o.WH-(0,n.VG)(e.decay),t.status=a.H.increasing,t.loops=o.hK,t.maxLoops=(0,n.VG)(e.count),t.time=o.tR,t.delayTime=(0,n.VG)(e.delay)*o.Xu,e.sync||(t.velocity*=(0,n.G0)(),t.value*=(0,n.G0)()),t.initialValue=t.value,t.offset=(0,n.DT)(e.offset)):t.velocity=o.jn}function _(t,e,i,o){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?(0,n.vE)(t.offset):0,r=(t.velocity??0)*o.factor+3.6*s,c=t.decay??1,l=(0,n.W9)(e),d=(0,n.Sg)(e);if(i&&t.status!==a.H.increasing){t.value-=r;const e=0;t.value<e&&(t.loops??=0,t.loops++,t.status=a.H.increasing)}else t.value+=r,t.value>l&&(t.loops??=0,t.loops++,i?t.status=a.H.decreasing:t.value-=l);t.velocity&&1!==c&&(t.velocity*=c),t.value=(0,n.qE)(t.value,d,l)}function F(t,e){if(!t)return;const{h:i,s:n,l:s}=t,a={h:{min:o.L1,max:o.vS},s:{min:o.yx,max:o.eu},l:{min:o.vd,max:o.$_}};_(i,a.h,!1,e),_(n,a.s,!0,e),_(s,a.l,!0,e)}},9968(t,e,i){i.d(e,{q:()=>a});var n=i(8020),o=i(7435),s=i(838);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=5}load(t){super.load(t),(0,s.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var s=n[t]={exports:{}};return i[t](s,s.exports,o),s.exports}o.m=i,o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,i)=>(o.f[i](t,e),e)),[])),o.u=t=>t+".min.js",o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/engine:",o.l=(i,n,s,a)=>{if(t[i])t[i].push(n);else{var r,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==e+s){r=u;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",e+s),r.src=i),t[i]=[n];var h=(e,n)=>{r.onerror=r.onload=null,clearTimeout(f);var o=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((t=>t(n))),e)return e(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=h.bind(null,r.onerror),r.onload=h.bind(null,r.onload),c&&document.head.appendChild(r)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=i[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t={397:0};o.f.j=(e,i)=>{var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise(((i,o)=>n=t[e]=[i,o]));i.push(n[2]=s);var a=o.p+o.u(e),r=new Error;o.l(a,(i=>{if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",r.name="ChunkLoadError",r.type=s,r.request=a,n[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,s,[a,r,c]=i,l=0;if(a.some((e=>0!==t[e]))){for(n in r)o.o(r,n)&&(o.m[n]=r[n]);if(c)c(o)}for(e&&e(i);l<a.length;l++)s=a[l],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0},i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var s={};o.r(s),o.d(s,{AlterType:()=>P.H,AnimatableColor:()=>F.A,AnimationMode:()=>w.g,AnimationOptions:()=>D.p,AnimationStatus:()=>_.H,AnimationValueWithRandom:()=>rt.Jm,Background:()=>E.V,BaseRange:()=>g.dg,Circle:()=>g.jl,ColorAnimation:()=>A.e,DestroyType:()=>O.V,EasingType:()=>R,EventType:()=>l.B,FullScreen:()=>L.m,GradientType:()=>b,HslAnimation:()=>I.i,LimitMode:()=>M.d,Move:()=>H.y,MoveAngle:()=>N.h,MoveAttract:()=>q.R,MoveCenter:()=>j.Z,MoveDirection:()=>y.F,MoveGravity:()=>K.y,MovePath:()=>X.v,Opacity:()=>tt.Y,OpacityAnimation:()=>et.I,Options:()=>V.J,OptionsColor:()=>C.O,OutMode:()=>z.Y,OutModeDirection:()=>x.v,OutModes:()=>W.j,ParticleOutType:()=>k.x,ParticlesBounce:()=>$.w,ParticlesBounceFactor:()=>Z.F,ParticlesDensity:()=>Y.M,ParticlesNumber:()=>U.N,ParticlesNumberLimit:()=>J.A,ParticlesOptions:()=>B.U,PixelMode:()=>S.q,Point:()=>v.b,RangedAnimationOptions:()=>D.Q,RangedAnimationValueWithRandom:()=>rt.AI,Rectangle:()=>g.M_,ResizeEvent:()=>at.z,RotateDirection:()=>p,Shape:()=>it.y,Size:()=>nt.o,SizeAnimation:()=>ot.q,Spin:()=>Q.t,StartValueType:()=>T.S,Stroke:()=>G.t,ValueWithRandom:()=>rt.PV,Vector:()=>m.M,Vector3d:()=>m.p,ZIndex:()=>st.P,alterHsl:()=>ct.yx,animate:()=>u.i0,areBoundsInside:()=>r.O2,arrayRandomIndex:()=>r.n0,calcExactPositionOrRandomFromSize:()=>u.Nx,calcExactPositionOrRandomFromSizeRanged:()=>u.qM,calcPositionFromSize:()=>u.eh,calcPositionOrRandomFromSize:()=>u.Mh,calcPositionOrRandomFromSizeRanged:()=>u.l1,calculateBounds:()=>r.AE,cancelAnimation:()=>u.px,canvasFirstIndex:()=>a.Nx,canvasTag:()=>a.RF,circleBounce:()=>r.pE,circleBounceDataFromParticle:()=>r.Tg,clamp:()=>u.qE,clear:()=>ct.IU,clearDrawPlugin:()=>ct.l7,clickRadius:()=>a.FS,cloneStyle:()=>r.td,collisionVelocity:()=>u.OW,colorMix:()=>lt.EY,colorToHsl:()=>lt.mK,colorToRgb:()=>lt.qe,countOffset:()=>a.nq,decayOffset:()=>a.WH,deepExtend:()=>r.zw,defaultAlpha:()=>a.aZ,defaultAngle:()=>a.tA,defaultDensityFactor:()=>a.lA,defaultFps:()=>a.z$,defaultFpsLimit:()=>a.i8,defaultLoops:()=>a.hK,defaultOpacity:()=>a.hv,defaultRadius:()=>a.M1,defaultRatio:()=>a.$x,defaultReduceFactor:()=>a.Zp,defaultRemoveQuantity:()=>a.xd,defaultRetryCount:()=>a.rq,defaultRgbMin:()=>a.Fl,defaultTime:()=>a.tR,defaultTransform:()=>a.Ug,defaultTransformValue:()=>a.zs,defaultVelocity:()=>a.jn,degToRad:()=>u.pu,deleteCount:()=>a.LD,double:()=>a.gd,doublePI:()=>a.R1,drawAfterEffect:()=>ct.k,drawBeforeEffect:()=>ct.z5,drawLine:()=>ct.V6,drawParticle:()=>ct.p0,drawParticlePlugin:()=>ct.Wb,drawPlugin:()=>ct.e_,drawShape:()=>ct.KG,drawShapeAfterDraw:()=>ct.gF,drawShapeBeforeDraw:()=>ct.VG,empty:()=>a.Ie,executeOnSingleOrMultiple:()=>r.wJ,findItemFromSingleOrMultiple:()=>r.w3,generatedAttribute:()=>a.eb,generatedFalse:()=>a.X$,generatedTrue:()=>a.ce,getDistance:()=>u.Yf,getDistances:()=>u.vr,getFullScreenStyle:()=>r.hJ,getHslAnimationFromHsl:()=>lt.pz,getHslFromAnimation:()=>lt.O_,getItemsFromInitializer:()=>r.HQ,getLinkColor:()=>lt._h,getLinkRandomColor:()=>lt.PG,getLogger:()=>d.t,getParticleBaseVelocity:()=>u.$m,getParticleDirectionAngle:()=>u.JY,getPosition:()=>r.E9,getRandom:()=>u.G0,getRandomInRange:()=>u.e4,getRandomRgbColor:()=>lt.OH,getRangeMax:()=>u.W9,getRangeMin:()=>u.Sg,getRangeValue:()=>u.VG,getSize:()=>r.YC,getStyleFromHsl:()=>lt.LC,getStyleFromRgb:()=>lt.xx,hMax:()=>a.vS,hMin:()=>a.L1,hPhase:()=>a.U0,half:()=>a.MX,hasMatchMedia:()=>r.q8,hslToRgb:()=>lt.YL,hslaToRgba:()=>lt.ay,identity:()=>a.D_,initParticleNumericAnimationValue:()=>r.Xs,inverseFactorNumerator:()=>a.hB,isArray:()=>ut.cy,isBoolean:()=>ut.Lm,isFunction:()=>ut.Tn,isInArray:()=>r.hn,isNull:()=>ut.kZ,isNumber:()=>ut.Et,isObject:()=>ut.Gv,isPointInside:()=>r.Tj,isString:()=>ut.Kg,itemFromArray:()=>r.Vh,itemFromSingleOrMultiple:()=>r.TA,lFactor:()=>a.iU,lMax:()=>a.$_,lMin:()=>a.vd,lengthOffset:()=>a.K3,loadFont:()=>r.Al,loadMinIndex:()=>a.PZ,loadOptions:()=>dt.Z,loadParticlesOptions:()=>dt.y,loadRandomFactor:()=>a.$v,manageListener:()=>r.Kp,manualDefaultPosition:()=>a.td,midColorValue:()=>a.BW,millisecondsToSeconds:()=>a.Xu,minCoordinate:()=>a.TL,minCount:()=>a.wM,minFpsLimit:()=>a.DN,minIndex:()=>a.z9,minLimit:()=>a.ou,minRetries:()=>a.N5,minStrokeWidth:()=>a.Dv,minVelocity:()=>a.GW,minZ:()=>a.X_,minimumLength:()=>a.$O,minimumSize:()=>a.w2,mix:()=>u.jh,none:()=>a.dv,one:()=>a.xH,originPoint:()=>a.bo,paintBase:()=>ct.Sn,paintImage:()=>ct.Md,parseAlpha:()=>u.M3,percentDenominator:()=>a.a5,phaseNumerator:()=>a.BF,posOffset:()=>a.un,qTreeCapacity:()=>a.Kw,quarter:()=>a.$G,randomColorValue:()=>a.mR,randomInRangeValue:()=>u.vE,rangeColorToHsl:()=>lt.R5,rangeColorToRgb:()=>lt.BN,removeDeleteCount:()=>a.JC,removeMinIndex:()=>a.vF,resizeEvent:()=>a.NF,rgbMax:()=>a.oi,rgbToHsl:()=>lt.K6,rollFactor:()=>a.l,sMax:()=>a.eu,sMin:()=>a.yx,sNormalizedOffset:()=>a.aE,safeDocument:()=>r.T5,safeIntersectionObserver:()=>r.BR,safeMatchMedia:()=>r.lV,safeMutationObserver:()=>r.tG,setAnimationFunctions:()=>u.AD,setLogger:()=>d.B,setRandom:()=>u.OE,setRangeValue:()=>u.DT,sextuple:()=>a.zg,sizeFactor:()=>a.Rh,squareExp:()=>a.dm,stringToAlpha:()=>lt.zI,stringToRgb:()=>lt.eg,subdivideCount:()=>a.Pg,threeQuarter:()=>a.Rq,touchDelay:()=>a.pH,touchEndLengthOffset:()=>a.KZ,triple:()=>a.Nu,tryCountIncrement:()=>a.Eo,tsParticles:()=>ht,updateAnimation:()=>r.UC,updateColor:()=>lt.Jv,updateColorValue:()=>lt.Ko,visibilityChangeEvent:()=>a.nK,zIndexFactorOffset:()=>a.RV});var a=o(7642),r=o(302);class c{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){const i=this._listeners.get(t);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){const i=this._listeners.get(t);if(!i)return;const n=i.length,o=i.indexOf(e);o<a.z9||(n===a.LD?this._listeners.delete(t):i.splice(o,a.LD))}}var l=o(3838),d=o(7932),u=o(1680);const h="100%";class f{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new c,this._initialized=!1,this._isRunningLoaders=!1,this._loadPromises=new Set,this._allLoadersSet=new Set,this._executedSet=new Set,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={movers:new Map,updaters:new Map},this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"4.0.0-alpha.5"}addColorManager(t){this.colorManagers.set(t.key,t)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(l.B.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}addMover(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)}addShape(t){for(const e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getMovers(t,e=!1){return(0,r.HQ)(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.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return(0,r.HQ)(t,this.updaters,this._initializers.updaters,e)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(const t of this._allLoadersSet)await this._runLoader(t,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(t){const{items:e}=this,i=e[t];if(!i?.destroyed)return i;e.splice(t,a.JC)}async load(t){await this.init();const{Container:e}=await o.e(794).then(o.bind(o,8794)),i=t.id??t.element?.id??`tsparticles${Math.floor((0,u.G0)()*a.$v).toString()}`,{index:n,url:s}=t,c=s?await async function(t){const e=(0,r.TA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,d.t)().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:s,index:n}):t.options,l=(0,r.TA)(c,n),{items:f}=this,p=f.findIndex((t=>t.id.description===i)),v=new e(this,i,l);if(p>=a.PZ){const t=this.item(p),e=t?a.xH:a.dv;t&&!t.destroyed&&t.destroy(!1),f.splice(p,e,v)}else f.push(v);const g=((t,e)=>{const i=(0,r.T5)();let n=e??i.getElementById(t);return n||(n=i.createElement("div"),n.id=t,n.dataset[a.eb]=a.ce,i.body.append(n),n)})(i,t.element),m=(t=>{const e=(0,r.T5)();let i;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===a.RF)i=t,i.dataset[a.eb]??=a.X$;else{const n=t.getElementsByTagName(a.RF)[a.Nx];n?(i=n,i.dataset[a.eb]=a.X$):(i=e.createElement(a.RF),i.dataset[a.eb]=a.ce,t.appendChild(i))}return i.style.width||=h,i.style.height||=h,i})(g);return v.canvas.loadCanvas(m),await v.start(),v}loadParticlesOptions(t,e,...i){const n=this.updaters.get(t);n&&n.forEach((t=>t.loadOptions?.(e,...i)))}async refresh(t=!0){t&&await Promise.all(this.items.map((t=>t.refresh())))}async register(...t){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this._isRunningLoaders?await this._runLoader(e,this._executedSet,this._allLoadersSet):this._loadPromises.add(e)}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}async _runLoader(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this))}}var p,v=o(8229),g=o(2984),m=o(8095),y=o(1953);!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(p||(p={}));var b,x=o(5931),w=o(7098),M=o(6423),z=o(1640),S=o(5652),P=o(4326),O=o(8020);!function(t){t.linear="linear",t.radial="radial",t.random="random"}(b||(b={}));var R,k=o(6312),T=o(1317);!function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"}(R||(R={}));var _=o(1292),F=o(7296),D=o(7435),E=o(1222),A=o(1784),L=o(7336),I=o(4056),V=o(2037),C=o(3254),$=o(4467),Z=o(6684),B=o(3278),G=o(5611),q=o(3079),H=o(3448),N=o(541),j=o(849),K=o(1872),W=o(7897),X=o(5979),Q=o(6649),U=o(511),J=o(2936),Y=o(6632),tt=o(9476),et=o(8044),it=o(1152),nt=o(9112),ot=o(9968),st=o(9358),at=o(8907),rt=o(913),ct=o(6754),lt=o(9599),dt=o(9176),ut=o(838);const ht=new f;return globalThis.tsParticles=ht,s})()));
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,(()=>(()=>{var t,e,i={302(t,e,i){i.d(e,{AE:()=>z,Al:()=>b,BR:()=>g,E9:()=>D,HQ:()=>$,Kp:()=>C,O2:()=>S,T5:()=>p,TA:()=>T,Tg:()=>P,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>_,YC:()=>A,hJ:()=>V,hn:()=>y,lV:()=>v,n0:()=>x,pE:()=>R,q8:()=>f,tG:()=>m,td:()=>L,w3:()=>E,wJ:()=>k,zw:()=>O});var n=i(1680),s=i(7642),o=i(838),a=i(7098),r=i(1292),c=i(8020),l=i(5931),d=i(5652),u=i(1317),h=i(8095);function f(){return"undefined"!=typeof matchMedia}function p(){return globalThis.document}function v(t){if(f())return matchMedia(t)}function g(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function m(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}function y(t,e){return t===e||(0,o.cy)(e)&&e.includes(t)}async function b(t,e){try{await p().fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function x(t){return Math.floor((0,n.G0)()*t.length)}function w(t,e,i=!0){return t[void 0!==e&&i?e%t.length:x(t)]}function M(t,e,i,n,s){return S(z(t,n??0),e,i,s)}function S(t,e,i,n){let s=!0;return n&&n!==l.v.bottom||(s=t.top<e.height+i.x),!s||n&&n!==l.v.left||(s=t.right>i.x),!s||n&&n!==l.v.right||(s=t.left<e.width+i.y),!s||n&&n!==l.v.top||(s=t.bottom>i.y),s}function z(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function O(t,...e){for(const i of e){if(null==i)continue;if(!(0,o.Gv)(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):(0,o.Gv)(t)&&!Array.isArray(t)||(t={});for(const e in i){if("__proto__"===e)continue;const n=i[e],s=t;s[e]=(0,o.Gv)(n)&&Array.isArray(n)?n.map((t=>O(s[e],t))):O(s[e],n)}}return t}function P(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:h.M.create((0,n.VG)(t.options.bounce.horizontal.value),(0,n.VG)(t.options.bounce.vertical.value))}}function R(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[o,a]=[t.position,e.position],{dx:r,dy:c}=(0,n.vr)(a,o);if(i*r+s*c<0)return;const l=-Math.atan2(c,r),d=t.mass,u=e.mass,h=t.velocity.rotate(l),f=e.velocity.rotate(l),p=(0,n.OW)(h,f,d,u),v=(0,n.OW)(f,h,d,u),g=p.rotate(-l),m=v.rotate(-l);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y}function k(t,e){return(0,o.cy)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function T(t,e,i){return(0,o.cy)(t)?w(t,e,i):t}function E(t,e){if((0,o.cy)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function _(t,e){const i=t.value,o=t.animation,c={delayTime:(0,n.VG)(o.delay)*s.Xu,enable:o.enable,value:(0,n.VG)(t.value)*e,max:(0,n.W9)(i)*e,min:(0,n.Sg)(i)*e,loops:0,maxLoops:(0,n.VG)(o.count),time:0};if(o.enable){switch(c.decay=1-(0,n.VG)(o.decay),o.mode){case a.g.increase:c.status=r.H.increasing;break;case a.g.decrease:c.status=r.H.decreasing;break;case a.g.random:c.status=(0,n.G0)()>=s.MX?r.H.increasing:r.H.decreasing}const t=o.mode===a.g.auto;switch(o.startValue){case u.S.min:c.value=c.min,t&&(c.status=r.H.increasing);break;case u.S.max:c.value=c.max,t&&(c.status=r.H.decreasing);break;case u.S.random:default:c.value=(0,n.vE)(c),t&&(c.status=(0,n.G0)()>=s.MX?r.H.increasing:r.H.decreasing)}}return c.initialValue=c.value,c}function F(t,e){if(!(t.mode===d.q.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s.a5*e.width,y:t.y/s.a5*e.height}:{width:t.width/s.a5*e.width,height:t.height/s.a5*e.height}}function D(t,e){return F(t,e)}function A(t,e){return F(t,e)}function I(t,e,i,s,o){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*o.factor,l=e.min,d=e.max,u=e.decay??1;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=o.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case r.H.increasing:e.value>=d?(i?e.status=r.H.decreasing:e.value-=d,e.loops??=0,e.loops++):e.value+=a;break;case r.H.decreasing:e.value<=l?(i?e.status=r.H.increasing:e.value+=d,e.loops??=0,e.loops++):e.value-=a}e.velocity&&1!==u&&(e.velocity*=u),function(t,e,i,n,s){switch(e){case c.V.max:i>=s&&t.destroy();break;case c.V.min:i<=n&&t.destroy()}}(t,s,e.value,l,d),e.value=(0,n.qE)(e.value,l,d)}}function L(t){const e=p().createElement("div").style;for(const i in t){const n=t[i];if(!Object.hasOwn(t,i)||(0,o.kZ)(n))continue;const s=t.getPropertyValue?.(n);if(!s)continue;const a=t.getPropertyPriority?.(n);a?e.setProperty(n,s,a):e.setProperty(n,s)}return e}const V=function(t){const e=new Map;return(...i)=>{const n=JSON.stringify(i);if(e.has(n))return e.get(n);const s=t(...i);return e.set(n,s),s}}((function(t){const e=p().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(const t in i){const n=i[t];void 0!==n&&e.setProperty(t,n)}return e}));function C(t,e,i,n,s){if(n){let n={passive:!0};(0,o.Lm)(s)?n.capture=s:void 0!==s&&(n=s),t.addEventListener(e,i,n)}else{const n=s;t.removeEventListener(e,i,n)}}async function $(t,e,i,n=!1){let s=e.get(t);return s&&!n||(s=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,s)),s}},511(t,e,i){i.d(e,{N:()=>a});var n=i(6632),s=i(2936),o=i(838);class a{constructor(){this.density=new n.M,this.limit=new s.A,this.value=0}load(t){(0,o.kZ)(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},541(t,e,i){i.d(e,{h:()=>o});var n=i(838),s=i(1680);class o{constructor(){this.offset=0,this.value=90}load(t){(0,n.kZ)(t)||(void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset)),void 0!==t.value&&(this.value=(0,s.DT)(t.value)))}}},838(t,e,i){function n(t){return"boolean"==typeof t}function s(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function c(t){return Array.isArray(t)}function l(t){return null==t}i.d(e,{Et:()=>o,Gv:()=>r,Kg:()=>s,Lm:()=>n,Tn:()=>a,cy:()=>c,kZ:()=>l})},849(t,e,i){i.d(e,{Z:()=>o});var n=i(5652),s=i(838);class o{constructor(){this.x=50,this.y=50,this.mode=n.q.percent,this.radius=0}load(t){(0,s.kZ)(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))}}},913(t,e,i){i.d(e,{AI:()=>c,Jm:()=>r,PV:()=>a});var n=i(7435),s=i(838),o=i(1680);class a{constructor(){this.value=0}load(t){(0,s.kZ)(t)||(0,s.kZ)(t.value)||(this.value=(0,o.DT)(t.value))}}class r extends a{constructor(){super(),this.animation=new n.p}load(t){if(super.load(t),(0,s.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class c extends r{constructor(){super(),this.animation=new n.Q}load(t){super.load(t)}}},1152(t,e,i){i.d(e,{y:()=>o});var n=i(302),s=i(838);class o{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if((0,s.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},1222(t,e,i){i.d(e,{V:()=>o});var n=i(3254),s=i(838);class o{constructor(){this.color=new n.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){(0,s.kZ)(t)||(void 0!==t.color&&(this.color=n.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))}}},1292(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.increasing="increasing",t.decreasing="decreasing"}(n||(n={}))},1317(t,e,i){var n;i.d(e,{S:()=>n}),function(t){t.max="max",t.min="min",t.random="random"}(n||(n={}))},1640(t,e,i){var n;i.d(e,{Y:()=>n}),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(n||(n={}))},1680(t,e,i){i.d(e,{$m:()=>R,AD:()=>f,DT:()=>M,G0:()=>u,JY:()=>P,M3:()=>A,Mh:()=>E,Nx:()=>F,OE:()=>d,OW:()=>k,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>T,i0:()=>p,jh:()=>m,l1:()=>_,pu:()=>O,px:()=>v,qE:()=>g,qM:()=>D,vE:()=>y,vr:()=>S});var n=i(1953),s=i(7642),o=i(8095),a=i(838);const r=Math.PI/180;let c=Math.random;const l={nextFrame:t=>requestAnimationFrame(t),cancel:t=>{cancelAnimationFrame(t)}};function d(t=Math.random){c=t}function u(){return g(c(),0,1-Number.EPSILON)}function h(t,e){return u()*(e-t)+t}function f(t,e){l.nextFrame=e=>t(e),l.cancel=t=>{e(t)}}function p(t){return l.nextFrame(t)}function v(t){l.cancel(t)}function g(t,e,i){return Math.min(Math.max(t,e),i)}function m(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function y(t){const e=w(t);let i=x(t);return e===i&&(i=0),h(i,e)}function b(t){return(0,a.Et)(t)?t:y(t)}function x(t){return(0,a.Et)(t)?t:t.min}function w(t){return(0,a.Et)(t)?t:t.max}function M(t,e){if(t===e||void 0===e&&(0,a.Et)(t))return t;const i=x(t),n=w(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:M(i,n)}function S(t,e){const i=t.x-e.x,n=t.y-e.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function z(t,e){return S(t,e).distance}function O(t){return t*r}function P(t,e,i){if((0,a.Et)(t))return O(t);switch(t){case n.F.top:return-Math.PI*s.MX;case n.F.topRight:return-Math.PI*s.$G;case n.F.right:return s.Ie;case n.F.bottomRight:return Math.PI*s.$G;case n.F.bottom:return Math.PI*s.MX;case n.F.bottomLeft:return Math.PI*s.Rq;case n.F.left:return Math.PI;case n.F.topLeft:return-Math.PI*s.Rq;case n.F.inside:return Math.atan2(i.y-e.y,i.x-e.x);case n.F.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*s.R1}}function R(t){const e=o.M.origin;return e.length=1,e.angle=t,e}function k(t,e,i,n){return o.M.create(t.x*(i-n)/(i+n)+e.x*s.gd*n/(i+n),t.y)}function T(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/s.a5,y:t.position.y*t.size.height/s.a5}:void 0}function E(t){return{x:(t.position?.x??u()*s.a5)*t.size.width/s.a5,y:(t.position?.y??u()*s.a5)*t.size.height/s.a5}}function _(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return E({size:t.size,position:e})}function F(t){const{position:e,size:i}=t;return{x:e?.x??u()*i.width,y:e?.y??u()*i.height}}function D(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return F({size:t.size,position:e})}function A(t){return t?t.endsWith("%")?parseFloat(t)/s.a5:parseFloat(t):1}},1784(t,e,i){i.d(e,{e:()=>a});var n=i(7435),s=i(838),o=i(1680);class a extends n.p{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),(0,s.kZ)(t)||void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset))}}},1872(t,e,i){i.d(e,{y:()=>o});var n=i(838),s=i(1680);class o{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){(0,n.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,s.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,s.DT)(t.maxSpeed)))}}},1953(t,e,i){var n;i.d(e,{F:()=>n}),function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(n||(n={}))},2037(t,e,i){i.d(e,{J:()=>d});var n=i(302),s=i(838),o=i(1222),a=i(7336),r=i(8907),c=i(9176),l=i(1680);class d{constructor(t,e){this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,c.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(t){if((0,s.kZ)(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.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,l.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,l.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.hdr&&(this.hdr=t.hdr),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);const o=t.fullScreen;(0,s.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.particles.load(t.particles),this.resize.load(t.resize),this.style=(0,n.zw)(this.style,t.style),void 0!==t.smooth&&(this.smooth=t.smooth),this._engine.plugins.forEach((e=>{e.loadOptions(this._container,this,t)}))}}},2936(t,e,i){i.d(e,{A:()=>o});var n=i(6423),s=i(838);class o{constructor(){this.mode=n.d.delete,this.value=0}load(t){(0,s.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},2984(t,e,i){var n;i.d(e,{dg:()=>a,jl:()=>r,M_:()=>c}),function(t){t.circle="circle",t.rectangle="rectangle"}(n||(n={}));var s=i(1680),o=i(7642);class a{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class r extends a{constructor(t,e,i){super(t,e,n.circle),this.radius=i}contains(t){return(0,s.Yf)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y),l=this.radius;if(t instanceof r||t.type===n.circle){return l+t.radius>Math.sqrt(s**o.dm+a**o.dm)}if(t instanceof c||t.type===n.rectangle){const e=t,{width:i,height:n}=e.size;return Math.pow(s-i,o.dm)+Math.pow(a-n,o.dm)<=l**o.dm||s<=l+i&&a<=l+n||s<=i||a<=n}return!1}}class c extends a{constructor(t,e,i,s){super(t,e,n.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+i}intersects(t){if(t instanceof r)return t.intersects(this);const e=this.size.width,i=this.size.height,n=this.position,s=t.position,o=t instanceof c?t.size:{width:0,height:0},a=o.width,l=o.height;return s.x<n.x+e&&s.x+a>n.x&&s.y<n.y+i&&s.y+l>n.y}}},3079(t,e,i){i.d(e,{R:()=>o});var n=i(838),s=i(1680);class o{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!(0,n.kZ)(t)&&(void 0!==t.distance&&(this.distance=(0,s.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},3254(t,e,i){i.d(e,{O:()=>s});var n=i(838);class s{constructor(){this.value=""}static create(t,e){const i=new s;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){(0,n.kZ)(t)||(0,n.kZ)(t.value)||(this.value=t.value)}}},3278(t,e,i){i.d(e,{U:()=>v});var n=i(302),s=i(7296),o=i(838);class a{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if((0,o.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(3448),c=i(9476),l=i(4467),d=i(511),u=i(1152),h=i(9112),f=i(5611),p=i(9358);class v{constructor(t,e){this._engine=t,this._container=e,this.bounce=new l.w,this.color=new s.A,this.color.value="#fff",this.effect=new a,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new c.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new f.t,this.zIndex=new p.P}load(t){if((0,o.kZ)(t))return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,n.zw)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(s.A.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.zIndex.load(t.zIndex);const e=t.stroke;if(e&&(this.stroke=(0,n.wJ)(e,(t=>{const e=new f.t;return e.load(t),e}))),this._container){for(const e of this._engine.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this._container,this,t);const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}}},3448(t,e,i){i.d(e,{y:()=>f});var n=i(1953),s=i(838),o=i(541),a=i(3079),r=i(849),c=i(1872),l=i(5979),d=i(7897),u=i(6649),h=i(1680);class f{constructor(){this.angle=new o.h,this.attract=new a.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=n.F.none,this.drift=0,this.enable=!1,this.gravity=new c.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(t){if((0,s.kZ)(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,h.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,h.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,s.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,h.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},3838(t,e,i){var n;i.d(e,{B:()=>n}),function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(n||(n={}))},4056(t,e,i){i.d(e,{i:()=>o});var n=i(1784),s=i(838);class o{constructor(){this.h=new n.e,this.s=new n.e,this.l=new n.e}load(t){(0,s.kZ)(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},4326(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.darken="darken",t.enlighten="enlighten"}(n||(n={}))},4467(t,e,i){i.d(e,{w:()=>o});var n=i(6684),s=i(838);class o{constructor(){this.horizontal=new n.F,this.vertical=new n.F}load(t){(0,s.kZ)(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},5611(t,e,i){i.d(e,{t:()=>a});var n=i(7296),s=i(838),o=i(1680);class a{constructor(){this.width=0}load(t){(0,s.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,o.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,o.DT)(t.opacity)))}}},5652(t,e,i){var n;i.d(e,{q:()=>n}),function(t){t.precise="precise",t.percent="percent"}(n||(n={}))},5931(t,e,i){var n;i.d(e,{v:()=>n}),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(n||(n={}))},5979(t,e,i){i.d(e,{v:()=>a});var n=i(913),s=i(302),o=i(838);class a{constructor(){this.clamp=!0,this.delay=new n.PV,this.enable=!1,this.options={}}load(t){(0,o.kZ)(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)))}}},6312(t,e,i){var n;i.d(e,{x:()=>n}),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(n||(n={}))},6423(t,e,i){var n;i.d(e,{d:()=>n}),function(t){t.delete="delete",t.wait="wait"}(n||(n={}))},6632(t,e,i){i.d(e,{M:()=>s});var n=i(838);class s{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if((0,n.kZ)(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},6649(t,e,i){i.d(e,{t:()=>a});var n=i(302),s=i(838),o=i(1680);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){(0,s.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,o.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,n.zw)({},t.position)))}}},6684(t,e,i){i.d(e,{F:()=>s});var n=i(913);class s extends n.PV{constructor(){super(),this.value=1}}},6754(t,e,i){i.d(e,{IU:()=>c,KG:()=>h,Md:()=>r,Sn:()=>a,V6:()=>o,VG:()=>p,Wb:()=>v,gF:()=>f,k:()=>d,p0:()=>l,yx:()=>g,z5:()=>u});var n=i(7642),s=i(4326);function o(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function a(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(n.bo.x,n.bo.y,e.width,e.height)}function r(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,n.bo.x,n.bo.y,e.width,e.height),t.globalAlpha=1)}function c(t,e){t.clearRect(n.bo.x,n.bo.y,e.width,e.height)}function l(t){const{container:e,context:i,particle:s,delta:o,colorStyles:a,radius:r,opacity:c,transform:l}=t,v=s.getPosition(),g=s.getTransformData(l);i.setTransform(g.a,g.b,g.c,g.d,v.x,v.y),a.fill&&(i.fillStyle=a.fill);const m=s.strokeWidth??n.Dv;i.lineWidth=m,a.stroke&&(i.strokeStyle=a.stroke);const y={context:i,particle:s,radius:r,opacity:c,delta:o,pixelRatio:e.retina.pixelRatio,fill:s.shapeFill,stroke:m>n.Dv||!s.shapeFill,transformData:g};u(e,y),p(e,y),h(e,y),f(e,y),d(e,y),i.resetTransform()}function d(t,e){const{particle:i}=e;if(!i.effect)return;const n=t.effectDrawers.get(i.effect),s=n?.drawAfter;s&&s(e)}function u(t,e){const{particle:i}=e;if(!i.effect)return;const n=t.effectDrawers.get(i.effect);n?.drawBefore&&n.drawBefore(e)}function h(t,e){const{context:i,particle:n,stroke:s}=e;if(!n.shape)return;const o=t.shapeDrawers.get(n.shape);o&&(i.beginPath(),o.draw(e),n.shapeClose&&i.closePath(),s&&i.stroke(),n.shapeFill&&i.fill())}function f(t,e){const{particle:i}=e;if(!i.shape)return;const n=t.shapeDrawers.get(i.shape);n?.afterDraw&&n.afterDraw(e)}function p(t,e){const{particle:i}=e;if(!i.shape)return;const n=t.shapeDrawers.get(i.shape);n?.beforeDraw&&n.beforeDraw(e)}function v(t,e,i,n){e.drawParticle&&e.drawParticle(t,i,n)}function g(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===s.H.darken?-n.iU:n.iU)*i}}},7098(t,e,i){var n;i.d(e,{g:()=>n}),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(n||(n={}))},7296(t,e,i){i.d(e,{A:()=>a});var n=i(838),s=i(4056),o=i(3254);class a extends o.O{constructor(){super(),this.animation=new s.i}static create(t,e){const i=new a;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),(0,n.kZ)(t))return;const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}},7336(t,e,i){i.d(e,{m:()=>s});var n=i(838);class s{constructor(){this.enable=!0,this.zIndex=0}load(t){(0,n.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},7435(t,e,i){i.d(e,{Q:()=>c,p:()=>r});var n=i(7098),s=i(1317),o=i(838),a=i(1680);class r{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){(0,o.kZ)(t)||(void 0!==t.count&&(this.count=(0,a.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,a.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,a.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,a.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class c extends r{constructor(){super(),this.mode=n.g.auto,this.startValue=s.S.random}load(t){super.load(t),(0,o.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},7642(t,e,i){i.d(e,{$G:()=>L,$O:()=>B,$_:()=>_,$v:()=>J,$x:()=>z,BF:()=>Pt,BW:()=>h,DN:()=>Q,D_:()=>bt,Dv:()=>xt,Eo:()=>nt,FS:()=>H,Fl:()=>Rt,GW:()=>C,Ie:()=>I,JC:()=>K,K3:()=>ft,KZ:()=>N,Kw:()=>M,L1:()=>F,LD:()=>vt,M1:()=>at,MX:()=>r,N5:()=>st,NF:()=>s,Nu:()=>St,Nx:()=>U,PZ:()=>Y,Pg:()=>P,R1:()=>p,RF:()=>b,RV:()=>G,Rh:()=>ct,Rq:()=>V,TL:()=>j,U0:()=>A,Ug:()=>d,WH:()=>it,X$:()=>y,X_:()=>ot,Xu:()=>c,Zp:()=>O,a5:()=>a,aE:()=>Ot,aZ:()=>g,bo:()=>l,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>n,eu:()=>E,gd:()=>f,hB:()=>R,hK:()=>Tt,hv:()=>q,i8:()=>X,iU:()=>wt,jn:()=>kt,lA:()=>pt,mR:()=>u,nK:()=>o,nq:()=>dt,oi:()=>k,ou:()=>lt,pH:()=>gt,rq:()=>x,tA:()=>yt,tR:()=>Et,td:()=>mt,un:()=>rt,vF:()=>W,vS:()=>T,vd:()=>Mt,w2:()=>Z,wM:()=>ut,xH:()=>tt,xd:()=>S,yx:()=>D,z$:()=>v,z9:()=>ht,zg:()=>zt,zs:()=>$});const n="generated",s="resize",o="visibilitychange",a=100,r=.5,c=1e3,l={x:0,y:0,z:0},d={a:1,b:0,c:0,d:1},u="random",h="mid",f=2,p=Math.PI*f,v=60,g=1,m="true",y="false",b="canvas",x=0,w=2,M=4,S=1,z=1,O=1,P=4,R=1,k=255,T=360,E=100,_=100,F=0,D=0,A=60,I=0,L=.25,V=r+L,C=0,$=1,Z=0,B=0,G=1,q=1,H=1,N=1,j=0,K=1,W=0,X=120,Q=0,U=0,J=1e4,Y=0,tt=1,et=0,it=1,nt=1,st=0,ot=0,at=0,rt=-L,ct=1.5,lt=0,dt=1,ut=0,ht=0,ft=1,pt=1,vt=1,gt=500,mt=50,yt=0,bt=1,xt=0,wt=1,Mt=0,St=3,zt=6,Ot=1,Pt=1,Rt=0,kt=0,Tt=0,Et=0},7897(t,e,i){i.d(e,{j:()=>o});var n=i(1640),s=i(838);class o{constructor(){this.default=n.Y.out}load(t){(0,s.kZ)(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)}}},7932(t,e,i){i.d(e,{B:()=>s,t:()=>o});const n={debug:console.debug,error:(t,e)=>{console.error(`tsParticles - Error - ${t}`,e)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function s(t){n.debug=t.debug,n.error=t.error,n.info=t.info,n.log=t.log,n.verbose=t.verbose,n.warning=t.warning}function o(){return n}},8020(t,e,i){var n;i.d(e,{V:()=>n}),function(t){t.none="none",t.max="max",t.min="min"}(n||(n={}))},8044(t,e,i){i.d(e,{I:()=>a});var n=i(8020),s=i(7435),o=i(838);class a extends s.Q{constructor(){super(),this.destroy=n.V.none,this.speed=2}load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}},8095(t,e,i){i.d(e,{M:()=>o,p:()=>s});var n=i(7642);class s{constructor(t=n.bo.x,e=n.bo.y,i=n.bo.z){this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},this.x=t,this.y=e,this.z=i}static get origin(){return s.create(n.bo.x,n.bo.y,n.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return s.create(t.x,t.y,t.z)}static create(t,e,i){return"number"==typeof t?new s(t,e??n.bo.y,i??n.bo.z):new s(t.x,t.y,Object.hasOwn(t,"z")?t.z:n.bo.z)}add(t){return s.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 s.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return s.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**n.dm+this.y**n.dm}mult(t){return s.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=n.dv&&this.multTo(n.hB/t)}rotate(t){return s.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),n.bo.z)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:n.bo.z}sub(t){return s.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class o extends s{constructor(t=n.bo.x,e=n.bo.y){super(t,e,n.bo.z)}static get origin(){return o.create(n.bo.x,n.bo.y)}static clone(t){return o.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new o(t,e??n.bo.y):new o(t.x,t.y)}}},8229(t,e,i){i.d(e,{b:()=>n});class n{constructor(t,e){this.position=t,this.particle=e}}},8907(t,e,i){i.d(e,{z:()=>s});var n=i(838);class s{constructor(){this.delay=.5,this.enable=!0}load(t){(0,n.kZ)(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},9112(t,e,i){i.d(e,{o:()=>a});var n=i(913),s=i(9968),o=i(838);class a extends n.AI{constructor(){super(),this.animation=new s.q,this.value=3}load(t){if(super.load(t),(0,o.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},9176(t,e,i){i.d(e,{Z:()=>s,y:()=>o});var n=i(3278);function s(t,...e){for(const i of e)t.load(i)}function o(t,e,...i){const o=new n.U(t,e);return s(o,...i),o}},9358(t,e,i){i.d(e,{P:()=>o});var n=i(913),s=i(838);class o extends n.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),(0,s.kZ)(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))}}},9476(t,e,i){i.d(e,{Y:()=>a});var n=i(8044),s=i(913),o=i(838);class a extends s.AI{constructor(){super(),this.animation=new n.I,this.value=1}load(t){if((0,o.kZ)(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},9599(t,e,i){i.d(e,{BN:()=>u,EY:()=>z,Jv:()=>_,K6:()=>v,Ko:()=>E,LC:()=>S,OH:()=>x,O_:()=>R,PG:()=>P,R5:()=>p,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>f,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var n=i(1680),s=i(7642),o=i(838),a=i(1292),r=i(302);const c=new Map;function l(t,e){let i=c.get(t);if(!i){if(i=e(),c.size>=1e3){[...c.keys()].slice(0,1e3*s.MX).forEach((t=>c.delete(t)))}c.set(t,i)}return i}function d(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}function u(t,e,i,n=!0){if(!e)return;const s=(0,o.Kg)(e)?{value:e}:e;if((0,o.Kg)(s.value))return h(t,s.value,i,n);if((0,o.cy)(s.value)){const e=(0,r.Vh)(s.value,i,n);if(!e)return;return u(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(s);if(t)return t}}function h(t,e,i,n=!0){if(!e)return;const a=(0,o.Kg)(e)?{value:e}:e;if((0,o.Kg)(a.value))return a.value===s.mR?x():m(t,a.value);if((0,o.cy)(a.value)){const e=(0,r.Vh)(a.value,i,n);if(!e)return;return h(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(a);if(t)return t}}function f(t,e,i,n=!0){const s=h(t,e,i,n);return s?v(s):void 0}function p(t,e,i,n=!0){const s=u(t,e,i,n);return s?v(s):void 0}function v(t){const e=t.r/s.oi,i=t.g/s.oi,n=t.b/s.oi,o=Math.max(e,i,n),a=Math.min(e,i,n),r={h:s.L1,l:(o+a)*s.MX,s:s.yx};return o!==a&&(r.s=r.l<s.MX?(o-a)/(o+a):(o-a)/(s.gd-o-a),r.h=e===o?(i-n)/(o-a):i===o?s.gd+(n-e)/(o-a):s.gd*s.gd+(e-i)/(o-a)),r.l*=s.$_,r.s*=s.eu,r.h*=s.U0,r.h<s.L1&&(r.h+=s.vS),r.h>=s.vS&&(r.h-=s.vS),r}function g(t,e){return d(t,e)?.a}function m(t,e){return d(t,e)}function y(t){const e=(t.h%s.vS+s.vS)%s.vS,i=Math.max(s.yx,Math.min(s.eu,t.s)),n=Math.max(s.vd,Math.min(s.$_,t.l)),o=e/s.vS,a=i/s.eu,r=n/s.$_;if(i===s.yx){const t=Math.round(r*s.oi);return{r:t,g:t,b:t}}const c=(t,e,i)=>{if(i<0&&i++,i>1&&i--,i*s.zg<1)return t+(e-t)*s.zg*i;if(i*s.gd<1)return e;if(i*s.Nu<1*s.gd){return t+(e-t)*(s.gd/s.Nu-i)*s.zg}return t},l=r<s.MX?r*(s.aE+a):r+a-r*a,d=s.gd*r-l,u=s.BF/s.Nu,h=Math.min(s.oi,s.oi*c(d,l,o+u)),f=Math.min(s.oi,s.oi*c(d,l,o)),p=Math.min(s.oi,s.oi*c(d,l,o-u));return{r:Math.round(h),g:Math.round(f),b:Math.round(p)}}function b(t){const e=y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function x(t){const e=t??s.Fl,i=s.oi+s.D_,o=()=>Math.floor((0,n.e4)(e,i));return{b:o(),g:o(),r:o()}}function w(t,e,i){const n=i??s.hv;return l(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,(()=>e?M(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??s.hv).toString()})`}(t,i)))}function M(t,e){return`color(display-p3 ${(t.r/s.oi).toString()} ${(t.g/s.oi).toString()} ${(t.b/s.oi).toString()} / ${(e??s.hv).toString()})`}function S(t,e,i){const n=i??s.hv;return l(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,(()=>e?function(t,e){return M(y(t),e)}(t,i):function(t,e){return`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${(e??s.hv).toString()})`}(t,i)))}function z(t,e,i,s){let o=t,a=e;return Object.hasOwn(o,"r")||(o=y(t)),Object.hasOwn(a,"r")||(a=y(e)),{b:(0,n.jh)(o.b,a.b,i,s),g:(0,n.jh)(o.g,a.g,i,s),r:(0,n.jh)(o.r,a.r,i,s)}}function O(t,e,i){if(i===s.mR)return x();if(i!==s.BW)return i;{const i=t.getFillColor()??t.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(i&&n&&e)return z(i,n,t.getRadius(),e.getRadius());{const t=i??n;if(t)return y(t)}}}function P(t,e,i,n){const a=(0,o.Kg)(e)?e:e.value;return a===s.mR?n?u(t,{value:a}):i?s.mR:s.BW:a===s.BW?s.BW:u(t,{value:a})}function R(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function k(t,e,i){const n={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(T(n.h,e.h,i),T(n.s,e.s,i),T(n.l,e.l,i)),n}function T(t,e,i){t.enable=e.enable,t.enable?(t.velocity=(0,n.VG)(e.speed)/s.a5*i,t.decay=s.WH-(0,n.VG)(e.decay),t.status=a.H.increasing,t.loops=s.hK,t.maxLoops=(0,n.VG)(e.count),t.time=s.tR,t.delayTime=(0,n.VG)(e.delay)*s.Xu,e.sync||(t.velocity*=(0,n.G0)(),t.value*=(0,n.G0)()),t.initialValue=t.value,t.offset=(0,n.DT)(e.offset)):t.velocity=s.jn}function E(t,e,i,s){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const o=t.offset?(0,n.vE)(t.offset):0,r=(t.velocity??0)*s.factor+3.6*o,c=t.decay??1,l=(0,n.W9)(e),d=(0,n.Sg)(e);if(i&&t.status!==a.H.increasing){t.value-=r;const e=0;t.value<e&&(t.loops??=0,t.loops++,t.status=a.H.increasing)}else t.value+=r,t.value>l&&(t.loops??=0,t.loops++,i?t.status=a.H.decreasing:t.value-=l);t.velocity&&1!==c&&(t.velocity*=c),t.value=(0,n.qE)(t.value,d,l)}function _(t,e){if(!t)return;const{h:i,s:n,l:o}=t,a={h:{min:s.L1,max:s.vS},s:{min:s.yx,max:s.eu},l:{min:s.vd,max:s.$_}};E(i,a.h,!1,e),E(n,a.s,!0,e),E(o,a.l,!0,e)}},9968(t,e,i){i.d(e,{q:()=>a});var n=i(8020),s=i(7435),o=i(838);class a extends s.Q{constructor(){super(),this.destroy=n.V.none,this.speed=5}load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var o=n[t]={exports:{}};return i[t](o,o.exports,s),o.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".min.js",s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/engine:",s.l=(i,n,o,a)=>{if(t[i])t[i].push(n);else{var r,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==e+o){r=u;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",e+o),r.src=i),t[i]=[n];var h=(e,n)=>{r.onerror=r.onload=null,clearTimeout(f);var s=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((t=>t(n))),e)return e(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=h.bind(null,r.onerror),r.onload=h.bind(null,r.onload),c&&document.head.appendChild(r)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=i[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={397:0};s.f.j=(e,i)=>{var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var o=new Promise(((i,s)=>n=t[e]=[i,s]));i.push(n[2]=o);var a=s.p+s.u(e),r=new Error;s.l(a,(i=>{if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",r.name="ChunkLoadError",r.type=o,r.request=a,n[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,o,[a,r,c]=i,l=0;if(a.some((e=>0!==t[e]))){for(n in r)s.o(r,n)&&(s.m[n]=r[n]);if(c)c(s)}for(e&&e(i);l<a.length;l++)o=a[l],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0},i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var o={};s.r(o),s.d(o,{AlterType:()=>O.H,AnimatableColor:()=>_.A,AnimationMode:()=>w.g,AnimationOptions:()=>F.p,AnimationStatus:()=>E.H,AnimationValueWithRandom:()=>rt.Jm,Background:()=>D.V,BaseRange:()=>g.dg,Circle:()=>g.jl,ColorAnimation:()=>A.e,DestroyType:()=>P.V,EasingType:()=>R,EventType:()=>l.B,FullScreen:()=>I.m,GradientType:()=>b,HslAnimation:()=>L.i,LimitMode:()=>M.d,Move:()=>H.y,MoveAngle:()=>N.h,MoveAttract:()=>q.R,MoveCenter:()=>j.Z,MoveDirection:()=>y.F,MoveGravity:()=>K.y,MovePath:()=>X.v,Opacity:()=>tt.Y,OpacityAnimation:()=>et.I,Options:()=>V.J,OptionsColor:()=>C.O,OutMode:()=>S.Y,OutModeDirection:()=>x.v,OutModes:()=>W.j,ParticleOutType:()=>k.x,ParticlesBounce:()=>$.w,ParticlesBounceFactor:()=>Z.F,ParticlesDensity:()=>Y.M,ParticlesNumber:()=>U.N,ParticlesNumberLimit:()=>J.A,ParticlesOptions:()=>B.U,PixelMode:()=>z.q,Point:()=>v.b,RangedAnimationOptions:()=>F.Q,RangedAnimationValueWithRandom:()=>rt.AI,Rectangle:()=>g.M_,ResizeEvent:()=>at.z,RotateDirection:()=>p,Shape:()=>it.y,Size:()=>nt.o,SizeAnimation:()=>st.q,Spin:()=>Q.t,StartValueType:()=>T.S,Stroke:()=>G.t,ValueWithRandom:()=>rt.PV,Vector:()=>m.M,Vector3d:()=>m.p,ZIndex:()=>ot.P,alterHsl:()=>ct.yx,animate:()=>u.i0,areBoundsInside:()=>r.O2,arrayRandomIndex:()=>r.n0,calcExactPositionOrRandomFromSize:()=>u.Nx,calcExactPositionOrRandomFromSizeRanged:()=>u.qM,calcPositionFromSize:()=>u.eh,calcPositionOrRandomFromSize:()=>u.Mh,calcPositionOrRandomFromSizeRanged:()=>u.l1,calculateBounds:()=>r.AE,cancelAnimation:()=>u.px,canvasFirstIndex:()=>a.Nx,canvasTag:()=>a.RF,circleBounce:()=>r.pE,circleBounceDataFromParticle:()=>r.Tg,clamp:()=>u.qE,clear:()=>ct.IU,clickRadius:()=>a.FS,cloneStyle:()=>r.td,collisionVelocity:()=>u.OW,colorMix:()=>lt.EY,colorToHsl:()=>lt.mK,colorToRgb:()=>lt.qe,countOffset:()=>a.nq,decayOffset:()=>a.WH,deepExtend:()=>r.zw,defaultAlpha:()=>a.aZ,defaultAngle:()=>a.tA,defaultDensityFactor:()=>a.lA,defaultFps:()=>a.z$,defaultFpsLimit:()=>a.i8,defaultLoops:()=>a.hK,defaultOpacity:()=>a.hv,defaultRadius:()=>a.M1,defaultRatio:()=>a.$x,defaultReduceFactor:()=>a.Zp,defaultRemoveQuantity:()=>a.xd,defaultRetryCount:()=>a.rq,defaultRgbMin:()=>a.Fl,defaultTime:()=>a.tR,defaultTransform:()=>a.Ug,defaultTransformValue:()=>a.zs,defaultVelocity:()=>a.jn,degToRad:()=>u.pu,deleteCount:()=>a.LD,double:()=>a.gd,doublePI:()=>a.R1,drawAfterEffect:()=>ct.k,drawBeforeEffect:()=>ct.z5,drawLine:()=>ct.V6,drawParticle:()=>ct.p0,drawParticlePlugin:()=>ct.Wb,drawShape:()=>ct.KG,drawShapeAfterDraw:()=>ct.gF,drawShapeBeforeDraw:()=>ct.VG,empty:()=>a.Ie,executeOnSingleOrMultiple:()=>r.wJ,findItemFromSingleOrMultiple:()=>r.w3,generatedAttribute:()=>a.eb,generatedFalse:()=>a.X$,generatedTrue:()=>a.ce,getDistance:()=>u.Yf,getDistances:()=>u.vr,getFullScreenStyle:()=>r.hJ,getHslAnimationFromHsl:()=>lt.pz,getHslFromAnimation:()=>lt.O_,getItemsFromInitializer:()=>r.HQ,getLinkColor:()=>lt._h,getLinkRandomColor:()=>lt.PG,getLogger:()=>d.t,getParticleBaseVelocity:()=>u.$m,getParticleDirectionAngle:()=>u.JY,getPosition:()=>r.E9,getRandom:()=>u.G0,getRandomInRange:()=>u.e4,getRandomRgbColor:()=>lt.OH,getRangeMax:()=>u.W9,getRangeMin:()=>u.Sg,getRangeValue:()=>u.VG,getSize:()=>r.YC,getStyleFromHsl:()=>lt.LC,getStyleFromRgb:()=>lt.xx,hMax:()=>a.vS,hMin:()=>a.L1,hPhase:()=>a.U0,half:()=>a.MX,hasMatchMedia:()=>r.q8,hslToRgb:()=>lt.YL,hslaToRgba:()=>lt.ay,identity:()=>a.D_,initParticleNumericAnimationValue:()=>r.Xs,inverseFactorNumerator:()=>a.hB,isArray:()=>ut.cy,isBoolean:()=>ut.Lm,isFunction:()=>ut.Tn,isInArray:()=>r.hn,isNull:()=>ut.kZ,isNumber:()=>ut.Et,isObject:()=>ut.Gv,isPointInside:()=>r.Tj,isString:()=>ut.Kg,itemFromArray:()=>r.Vh,itemFromSingleOrMultiple:()=>r.TA,lFactor:()=>a.iU,lMax:()=>a.$_,lMin:()=>a.vd,lengthOffset:()=>a.K3,loadFont:()=>r.Al,loadMinIndex:()=>a.PZ,loadOptions:()=>dt.Z,loadParticlesOptions:()=>dt.y,loadRandomFactor:()=>a.$v,manageListener:()=>r.Kp,manualDefaultPosition:()=>a.td,midColorValue:()=>a.BW,millisecondsToSeconds:()=>a.Xu,minCoordinate:()=>a.TL,minCount:()=>a.wM,minFpsLimit:()=>a.DN,minIndex:()=>a.z9,minLimit:()=>a.ou,minRetries:()=>a.N5,minStrokeWidth:()=>a.Dv,minVelocity:()=>a.GW,minZ:()=>a.X_,minimumLength:()=>a.$O,minimumSize:()=>a.w2,mix:()=>u.jh,none:()=>a.dv,one:()=>a.xH,originPoint:()=>a.bo,paintBase:()=>ct.Sn,paintImage:()=>ct.Md,parseAlpha:()=>u.M3,percentDenominator:()=>a.a5,phaseNumerator:()=>a.BF,posOffset:()=>a.un,qTreeCapacity:()=>a.Kw,quarter:()=>a.$G,randomColorValue:()=>a.mR,randomInRangeValue:()=>u.vE,rangeColorToHsl:()=>lt.R5,rangeColorToRgb:()=>lt.BN,removeDeleteCount:()=>a.JC,removeMinIndex:()=>a.vF,resizeEvent:()=>a.NF,rgbMax:()=>a.oi,rgbToHsl:()=>lt.K6,sMax:()=>a.eu,sMin:()=>a.yx,sNormalizedOffset:()=>a.aE,safeDocument:()=>r.T5,safeIntersectionObserver:()=>r.BR,safeMatchMedia:()=>r.lV,safeMutationObserver:()=>r.tG,setAnimationFunctions:()=>u.AD,setLogger:()=>d.B,setRandom:()=>u.OE,setRangeValue:()=>u.DT,sextuple:()=>a.zg,sizeFactor:()=>a.Rh,squareExp:()=>a.dm,stringToAlpha:()=>lt.zI,stringToRgb:()=>lt.eg,subdivideCount:()=>a.Pg,threeQuarter:()=>a.Rq,touchDelay:()=>a.pH,touchEndLengthOffset:()=>a.KZ,triple:()=>a.Nu,tryCountIncrement:()=>a.Eo,tsParticles:()=>ht,updateAnimation:()=>r.UC,updateColor:()=>lt.Jv,updateColorValue:()=>lt.Ko,visibilityChangeEvent:()=>a.nK,zIndexFactorOffset:()=>a.RV});var a=s(7642),r=s(302);class c{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){const i=this._listeners.get(t);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){const i=this._listeners.get(t);if(!i)return;const n=i.length,s=i.indexOf(e);s<a.z9||(n===a.LD?this._listeners.delete(t):i.splice(s,a.LD))}}var l=s(3838),d=s(7932),u=s(1680);const h="100%";class f{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new c,this._initialized=!1,this._isRunningLoaders=!1,this._loadPromises=new Set,this._allLoadersSet=new Set,this._executedSet=new Set,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={movers:new Map,updaters:new Map},this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"4.0.0-alpha.8"}addColorManager(t){this.colorManagers.set(t.key,t)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(l.B.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}addMover(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)}addShape(t){for(const e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getMovers(t,e=!1){return(0,r.HQ)(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.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return(0,r.HQ)(t,this.updaters,this._initializers.updaters,e)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(const t of this._allLoadersSet)await this._runLoader(t,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(t){const{items:e}=this,i=e[t];if(!i?.destroyed)return i;e.splice(t,a.JC)}async load(t){await this.init();const{Container:e}=await s.e(794).then(s.bind(s,8794)),i=t.id??t.element?.id??`tsparticles${Math.floor((0,u.G0)()*a.$v).toString()}`,{index:n,url:o}=t,c=o?await async function(t){const e=(0,r.TA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,d.t)().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:n}):t.options,l=(0,r.TA)(c,n),{items:f}=this,p=f.findIndex((t=>t.id.description===i)),v=new e(this,i,l);if(p>=a.PZ){const t=this.item(p),e=t?a.xH:a.dv;t&&!t.destroyed&&t.destroy(!1),f.splice(p,e,v)}else f.push(v);const g=((t,e)=>{const i=(0,r.T5)();let n=e??i.getElementById(t);return n||(n=i.createElement("div"),n.id=t,n.dataset[a.eb]=a.ce,i.body.append(n),n)})(i,t.element),m=(t=>{const e=(0,r.T5)();let i;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===a.RF)i=t,i.dataset[a.eb]??=a.X$;else{const n=t.getElementsByTagName(a.RF)[a.Nx];n?(i=n,i.dataset[a.eb]=a.X$):(i=e.createElement(a.RF),i.dataset[a.eb]=a.ce,t.appendChild(i))}return i.style.width||=h,i.style.height||=h,i})(g);return v.canvas.loadCanvas(m),await v.start(),v}loadParticlesOptions(t,e,...i){const n=this.updaters.get(t);n&&n.forEach((t=>t.loadOptions?.(e,...i)))}async refresh(t=!0){t&&await Promise.all(this.items.map((t=>t.refresh())))}async register(...t){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this._isRunningLoaders?await this._runLoader(e,this._executedSet,this._allLoadersSet):this._loadPromises.add(e)}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}async _runLoader(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this))}}var p,v=s(8229),g=s(2984),m=s(8095),y=s(1953);!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(p||(p={}));var b,x=s(5931),w=s(7098),M=s(6423),S=s(1640),z=s(5652),O=s(4326),P=s(8020);!function(t){t.linear="linear",t.radial="radial",t.random="random"}(b||(b={}));var R,k=s(6312),T=s(1317);!function(t){t.easeInBack="ease-in-back",t.easeInBounce="ease-in-bounce",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInElastic="ease-in-elastic",t.easeInExpo="ease-in-expo",t.easeInGaussian="ease-in-gaussian",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInSigmoid="ease-in-sigmoid",t.easeInSine="ease-in-sine",t.easeInSmoothstep="ease-in-smoothstep",t.easeOutBack="ease-out-back",t.easeOutBounce="ease-out-bounce",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutElastic="ease-out-elastic",t.easeOutExpo="ease-out-expo",t.easeOutGaussian="ease-out-gaussian",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutSigmoid="ease-out-sigmoid",t.easeOutSine="ease-out-sine",t.easeOutSmoothstep="ease-out-smoothstep",t.easeInOutBack="ease-in-out-back",t.easeInOutBounce="ease-in-out-bounce",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutElastic="ease-in-out-elastic",t.easeInOutExpo="ease-in-out-expo",t.easeInOutGaussian="ease-in-out-gaussian",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutSigmoid="ease-in-out-sigmoid",t.easeInOutSine="ease-in-out-sine",t.easeInOutSmoothstep="ease-in-out-smoothstep"}(R||(R={}));var E=s(1292),_=s(7296),F=s(7435),D=s(1222),A=s(1784),I=s(7336),L=s(4056),V=s(2037),C=s(3254),$=s(4467),Z=s(6684),B=s(3278),G=s(5611),q=s(3079),H=s(3448),N=s(541),j=s(849),K=s(1872),W=s(7897),X=s(5979),Q=s(6649),U=s(511),J=s(2936),Y=s(6632),tt=s(9476),et=s(8044),it=s(1152),nt=s(9112),st=s(9968),ot=s(9358),at=s(8907),rt=s(913),ct=s(6754),lt=s(9599),dt=s(9176),ut=s(838);const ht=new f;return globalThis.tsParticles=ht,o})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Engine v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Engine v4.0.0-alpha.8 by Matteo Bruni */
|
package/types/Core/Canvas.d.ts
CHANGED
|
@@ -26,13 +26,11 @@ export declare class Canvas {
|
|
|
26
26
|
private get _fullScreen();
|
|
27
27
|
canvasClear(): void;
|
|
28
28
|
clear(): void;
|
|
29
|
-
clearDrawPlugin(plugin: IContainerPlugin, delta: IDelta): void;
|
|
30
29
|
destroy(): void;
|
|
31
30
|
draw<T>(cb: (context: CanvasRenderingContext2D) => T): T | undefined;
|
|
32
31
|
drawParticle(particle: Particle, delta: IDelta): void;
|
|
33
32
|
drawParticlePlugin(plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;
|
|
34
33
|
drawParticles(delta: IDelta): void;
|
|
35
|
-
drawPlugin(plugin: IContainerPlugin, delta: IDelta): void;
|
|
36
34
|
init(): void;
|
|
37
35
|
initBackground(): void;
|
|
38
36
|
initPlugins(): void;
|
|
@@ -13,6 +13,10 @@ export interface IContainerPlugin {
|
|
|
13
13
|
destroy?: () => void;
|
|
14
14
|
draw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
15
15
|
drawParticle?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
16
|
+
drawParticleCleanup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
17
|
+
drawParticleSetup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
18
|
+
drawSettingsCleanup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
19
|
+
drawSettingsSetup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
16
20
|
export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
|
|
17
21
|
init?: () => Promise<void>;
|
|
18
22
|
particleBounce?: (particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean;
|
package/types/Core/Particle.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export declare class Particle {
|
|
|
85
85
|
getTransformData(externalTransform: Partial<IParticleTransformValues>): IParticleTransformValues;
|
|
86
86
|
init(id: number, position?: ICoordinates, overrideOptions?: RecursivePartial<IParticlesOptions>, group?: string): void;
|
|
87
87
|
isInsideCanvas(): boolean;
|
|
88
|
+
isShowingBack(): boolean;
|
|
88
89
|
isVisible(): boolean;
|
|
89
90
|
reset(): void;
|
|
90
91
|
private readonly _calcPosition;
|
|
@@ -4,4 +4,4 @@ export declare const generatedAttribute = "generated", resizeEvent = "resize", v
|
|
|
4
4
|
b: number;
|
|
5
5
|
c: number;
|
|
6
6
|
d: number;
|
|
7
|
-
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0,
|
|
7
|
+
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0, minZ = 0, defaultRadius = 0, posOffset: number, sizeFactor = 1.5, minLimit = 0, countOffset = 1, minCount = 0, minIndex = 0, lengthOffset = 1, defaultDensityFactor = 1, deleteCount = 1, touchDelay = 500, manualDefaultPosition = 50, defaultAngle = 0, identity = 1, minStrokeWidth = 0, lFactor = 1, lMin = 0, triple = 3, sextuple = 6, sNormalizedOffset = 1, phaseNumerator = 1, defaultRgbMin = 0, defaultVelocity = 0, defaultLoops = 0, defaultTime = 0;
|
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
export declare enum EasingType {
|
|
2
2
|
easeInBack = "ease-in-back",
|
|
3
|
+
easeInBounce = "ease-in-bounce",
|
|
3
4
|
easeInCirc = "ease-in-circ",
|
|
4
5
|
easeInCubic = "ease-in-cubic",
|
|
6
|
+
easeInElastic = "ease-in-elastic",
|
|
7
|
+
easeInExpo = "ease-in-expo",
|
|
8
|
+
easeInGaussian = "ease-in-gaussian",
|
|
5
9
|
easeInLinear = "ease-in-linear",
|
|
6
10
|
easeInQuad = "ease-in-quad",
|
|
7
11
|
easeInQuart = "ease-in-quart",
|
|
8
12
|
easeInQuint = "ease-in-quint",
|
|
9
|
-
|
|
13
|
+
easeInSigmoid = "ease-in-sigmoid",
|
|
10
14
|
easeInSine = "ease-in-sine",
|
|
15
|
+
easeInSmoothstep = "ease-in-smoothstep",
|
|
11
16
|
easeOutBack = "ease-out-back",
|
|
17
|
+
easeOutBounce = "ease-out-bounce",
|
|
12
18
|
easeOutCirc = "ease-out-circ",
|
|
13
19
|
easeOutCubic = "ease-out-cubic",
|
|
20
|
+
easeOutElastic = "ease-out-elastic",
|
|
21
|
+
easeOutExpo = "ease-out-expo",
|
|
22
|
+
easeOutGaussian = "ease-out-gaussian",
|
|
14
23
|
easeOutLinear = "ease-out-linear",
|
|
15
24
|
easeOutQuad = "ease-out-quad",
|
|
16
25
|
easeOutQuart = "ease-out-quart",
|
|
17
26
|
easeOutQuint = "ease-out-quint",
|
|
18
|
-
|
|
27
|
+
easeOutSigmoid = "ease-out-sigmoid",
|
|
19
28
|
easeOutSine = "ease-out-sine",
|
|
29
|
+
easeOutSmoothstep = "ease-out-smoothstep",
|
|
20
30
|
easeInOutBack = "ease-in-out-back",
|
|
31
|
+
easeInOutBounce = "ease-in-out-bounce",
|
|
21
32
|
easeInOutCirc = "ease-in-out-circ",
|
|
22
33
|
easeInOutCubic = "ease-in-out-cubic",
|
|
34
|
+
easeInOutElastic = "ease-in-out-elastic",
|
|
35
|
+
easeInOutExpo = "ease-in-out-expo",
|
|
36
|
+
easeInOutGaussian = "ease-in-out-gaussian",
|
|
23
37
|
easeInOutLinear = "ease-in-out-linear",
|
|
24
38
|
easeInOutQuad = "ease-in-out-quad",
|
|
25
39
|
easeInOutQuart = "ease-in-out-quart",
|
|
26
40
|
easeInOutQuint = "ease-in-out-quint",
|
|
27
|
-
|
|
28
|
-
easeInOutSine = "ease-in-out-sine"
|
|
41
|
+
easeInOutSigmoid = "ease-in-out-sigmoid",
|
|
42
|
+
easeInOutSine = "ease-in-out-sine",
|
|
43
|
+
easeInOutSmoothstep = "ease-in-out-smoothstep"
|
|
29
44
|
}
|
|
30
|
-
export type EasingTypeAlt = "ease-in-back" | "ease-out-back" | "ease-in-out-back" | "ease-in-circ" | "ease-out-circ" | "ease-in-out-circ" | "ease-in-cubic" | "ease-out-cubic" | "ease-in-out-cubic" | "ease-in-quad" | "ease-out-quad" | "ease-in-out-quad" | "ease-in-quart" | "ease-out-quart" | "ease-in-out-quart" | "ease-in-quint" | "ease-out-quint" | "ease-in-out-quint" | "ease-in-
|
|
45
|
+
export type EasingTypeAlt = "ease-in-back" | "ease-out-back" | "ease-in-out-back" | "ease-in-bounce" | "ease-out-bounce" | "ease-in-out-bounce" | "ease-in-circ" | "ease-out-circ" | "ease-in-out-circ" | "ease-in-cubic" | "ease-out-cubic" | "ease-in-out-cubic" | "ease-in-elastic" | "ease-out-elastic" | "ease-in-out-elastic" | "ease-in-expo" | "ease-out-expo" | "ease-in-out-expo" | "ease-in-gaussian" | "ease-out-gaussian" | "ease-in-out-gaussian" | "ease-in-linear" | "ease-out-linear" | "ease-in-out-linear" | "ease-in-quad" | "ease-out-quad" | "ease-in-out-quad" | "ease-in-quart" | "ease-out-quart" | "ease-in-out-quart" | "ease-in-quint" | "ease-out-quint" | "ease-in-out-quint" | "ease-in-sigmoid" | "ease-out-sigmoid" | "ease-in-out-sigmoid" | "ease-in-sine" | "ease-out-sine" | "ease-in-out-sine" | "ease-in-smoothstep" | "ease-out-smoothstep" | "ease-in-out-smoothstep";
|
|
@@ -8,7 +8,6 @@ import type { IDrawParticleParams } from "../Core/Interfaces/IDrawParticleParams
|
|
|
8
8
|
import type { IHsl } from "../Core/Interfaces/Colors.js";
|
|
9
9
|
import type { IShapeDrawData } from "../export-types.js";
|
|
10
10
|
import type { Particle } from "../Core/Particle.js";
|
|
11
|
-
export declare function clearDrawPlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, delta: IDelta): void;
|
|
12
11
|
export declare function drawLine(context: CanvasRenderingContext2D, begin: ICoordinates, end: ICoordinates): void;
|
|
13
12
|
export declare function paintBase(context: CanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void;
|
|
14
13
|
export declare function paintImage(context: CanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void;
|
|
@@ -19,6 +18,5 @@ export declare function drawBeforeEffect(container: Container, data: IShapeDrawD
|
|
|
19
18
|
export declare function drawShape(container: Container, data: IShapeDrawData): void;
|
|
20
19
|
export declare function drawShapeAfterDraw(container: Container, data: IShapeDrawData): void;
|
|
21
20
|
export declare function drawShapeBeforeDraw(container: Container, data: IShapeDrawData): void;
|
|
22
|
-
export declare function drawPlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, delta: IDelta): void;
|
|
23
21
|
export declare function drawParticlePlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;
|
|
24
22
|
export declare function alterHsl(color: IHsl, type: AlterType, value: number): IHsl;
|
package/umd/Core/Canvas.js
CHANGED
|
@@ -206,11 +206,6 @@
|
|
|
206
206
|
}
|
|
207
207
|
this.canvasClear();
|
|
208
208
|
}
|
|
209
|
-
clearDrawPlugin(plugin, delta) {
|
|
210
|
-
this.draw(ctx => {
|
|
211
|
-
(0, CanvasUtils_js_1.clearDrawPlugin)(ctx, plugin, delta);
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
209
|
destroy() {
|
|
215
210
|
this.stop();
|
|
216
211
|
if (this._generated) {
|
|
@@ -253,6 +248,11 @@
|
|
|
253
248
|
colorStyles.fill = fill;
|
|
254
249
|
colorStyles.stroke = stroke;
|
|
255
250
|
this.draw((context) => {
|
|
251
|
+
for (const plugin of container.plugins) {
|
|
252
|
+
if (plugin.drawParticleSetup) {
|
|
253
|
+
plugin.drawParticleSetup(context, particle, delta);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
256
|
this._applyPreDrawUpdaters(context, particle, radius, opacity, colorStyles, transform);
|
|
257
257
|
(0, CanvasUtils_js_1.drawParticle)({
|
|
258
258
|
container,
|
|
@@ -264,8 +264,13 @@
|
|
|
264
264
|
opacity: opacity,
|
|
265
265
|
transform,
|
|
266
266
|
});
|
|
267
|
+
this._applyPostDrawUpdaters(particle);
|
|
268
|
+
for (const plugin of container.plugins) {
|
|
269
|
+
if (plugin.drawParticleCleanup) {
|
|
270
|
+
plugin.drawParticleCleanup(context, particle, delta);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
267
273
|
});
|
|
268
|
-
this._applyPostDrawUpdaters(particle);
|
|
269
274
|
}
|
|
270
275
|
drawParticlePlugin(plugin, particle, delta) {
|
|
271
276
|
this.draw(ctx => {
|
|
@@ -276,19 +281,20 @@
|
|
|
276
281
|
const { particles, plugins } = this.container;
|
|
277
282
|
this.clear();
|
|
278
283
|
particles.update(delta);
|
|
279
|
-
for (const plugin of plugins.values()) {
|
|
280
|
-
this.drawPlugin(plugin, delta);
|
|
281
|
-
}
|
|
282
|
-
this.draw(() => {
|
|
283
|
-
particles.drawParticles(delta);
|
|
284
|
-
});
|
|
285
|
-
for (const plugin of plugins.values()) {
|
|
286
|
-
this.clearDrawPlugin(plugin, delta);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
drawPlugin(plugin, delta) {
|
|
290
284
|
this.draw(ctx => {
|
|
291
|
-
|
|
285
|
+
for (const plugin of plugins) {
|
|
286
|
+
plugin.drawSettingsSetup?.(ctx, delta);
|
|
287
|
+
}
|
|
288
|
+
for (const plugin of plugins) {
|
|
289
|
+
plugin.draw?.(ctx, delta);
|
|
290
|
+
}
|
|
291
|
+
particles.drawParticles(delta);
|
|
292
|
+
for (const plugin of plugins) {
|
|
293
|
+
plugin.clearDraw?.(ctx, delta);
|
|
294
|
+
}
|
|
295
|
+
for (const plugin of plugins) {
|
|
296
|
+
plugin.drawSettingsCleanup?.(ctx, delta);
|
|
297
|
+
}
|
|
292
298
|
});
|
|
293
299
|
}
|
|
294
300
|
init() {
|
package/umd/Core/Engine.js
CHANGED
|
@@ -132,7 +132,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
132
132
|
return this._domArray;
|
|
133
133
|
}
|
|
134
134
|
get version() {
|
|
135
|
-
return "4.0.0-alpha.
|
|
135
|
+
return "4.0.0-alpha.8";
|
|
136
136
|
}
|
|
137
137
|
addColorManager(manager) {
|
|
138
138
|
this.colorManagers.set(manager.key, manager);
|
|
@@ -259,9 +259,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
259
259
|
}
|
|
260
260
|
async load(params) {
|
|
261
261
|
await this.init();
|
|
262
|
-
const { Container } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./Container.js"))) : new Promise((resolve_1, reject_1) => { require(["./Container.js"], resolve_1, reject_1); }).then(__importStar)), id = params.id ??
|
|
263
|
-
params.element?.id ??
|
|
264
|
-
`tsparticles${Math.floor((0, MathUtils_js_1.getRandom)() * Constants_js_1.loadRandomFactor).toString()}`, { index, url } = params, options = url ? await getDataFromUrl({ fallback: params.options, url, index }) : params.options, currentOptions = (0, Utils_js_1.itemFromSingleOrMultiple)(options, index), { items } = this, oldIndex = items.findIndex(v => v.id.description === id), newItem = new Container(this, id, currentOptions);
|
|
262
|
+
const { Container } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./Container.js"))) : new Promise((resolve_1, reject_1) => { require(["./Container.js"], resolve_1, reject_1); }).then(__importStar)), id = params.id ?? params.element?.id ?? `tsparticles${Math.floor((0, MathUtils_js_1.getRandom)() * Constants_js_1.loadRandomFactor).toString()}`, { index, url } = params, options = url ? await getDataFromUrl({ fallback: params.options, url, index }) : params.options, currentOptions = (0, Utils_js_1.itemFromSingleOrMultiple)(options, index), { items } = this, oldIndex = items.findIndex(v => v.id.description === id), newItem = new Container(this, id, currentOptions);
|
|
265
263
|
if (oldIndex >= Constants_js_1.loadMinIndex) {
|
|
266
264
|
const old = this.item(oldIndex), deleteCount = old ? Constants_js_1.one : Constants_js_1.none;
|
|
267
265
|
if (old && !old.destroyed) {
|
package/umd/Core/Particle.js
CHANGED
|
@@ -136,8 +136,7 @@
|
|
|
136
136
|
if (!color || !this.roll || (!this.backColor && !this.roll.alter)) {
|
|
137
137
|
return color;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
if (!rolled) {
|
|
139
|
+
if (!this.isShowingBack()) {
|
|
141
140
|
return color;
|
|
142
141
|
}
|
|
143
142
|
if (this.backColor) {
|
|
@@ -298,9 +297,7 @@
|
|
|
298
297
|
const availableShapes = [...this.container.shapeDrawers.keys()];
|
|
299
298
|
this.shape = availableShapes[Math.floor((0, MathUtils_js_1.getRandom)() * availableShapes.length)];
|
|
300
299
|
}
|
|
301
|
-
this.effectData = this.effect
|
|
302
|
-
? loadEffectData(this.effect, effectOptions, this.id, reduceDuplicates)
|
|
303
|
-
: undefined;
|
|
300
|
+
this.effectData = this.effect ? loadEffectData(this.effect, effectOptions, this.id, reduceDuplicates) : undefined;
|
|
304
301
|
this.shapeData = this.shape ? loadShapeData(this.shape, shapeOptions, this.id, reduceDuplicates) : undefined;
|
|
305
302
|
particlesOptions.load(overrideOptions);
|
|
306
303
|
const effectData = this.effectData;
|
|
@@ -390,6 +387,25 @@
|
|
|
390
387
|
position.y <= canvasSize.height + radius &&
|
|
391
388
|
position.x <= canvasSize.width + radius);
|
|
392
389
|
}
|
|
390
|
+
isShowingBack() {
|
|
391
|
+
if (!this.roll) {
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
const angle = this.roll.angle;
|
|
395
|
+
if (this.roll.horizontal && this.roll.vertical) {
|
|
396
|
+
const normalizedAngle = angle % Constants_js_1.doublePI, adjustedAngle = normalizedAngle < Constants_js_1.defaultAngle ? normalizedAngle + Constants_js_1.doublePI : normalizedAngle;
|
|
397
|
+
return adjustedAngle >= Math.PI * Constants_js_1.half && adjustedAngle < Math.PI * Constants_js_1.triple * Constants_js_1.half;
|
|
398
|
+
}
|
|
399
|
+
if (this.roll.horizontal) {
|
|
400
|
+
const normalizedAngle = (angle + Math.PI * Constants_js_1.half) % (Math.PI * Constants_js_1.double), adjustedAngle = normalizedAngle < Constants_js_1.defaultAngle ? normalizedAngle + Math.PI * Constants_js_1.double : normalizedAngle;
|
|
401
|
+
return adjustedAngle >= Math.PI && adjustedAngle < Math.PI * Constants_js_1.double;
|
|
402
|
+
}
|
|
403
|
+
if (this.roll.vertical) {
|
|
404
|
+
const normalizedAngle = angle % (Math.PI * Constants_js_1.double), adjustedAngle = normalizedAngle < Constants_js_1.defaultAngle ? normalizedAngle + Math.PI * Constants_js_1.double : normalizedAngle;
|
|
405
|
+
return adjustedAngle >= Math.PI && adjustedAngle < Math.PI * Constants_js_1.double;
|
|
406
|
+
}
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
393
409
|
isVisible() {
|
|
394
410
|
return !this.destroyed && !this.spawning && this.isInsideCanvas();
|
|
395
411
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.defaultTime = exports.defaultLoops = exports.defaultVelocity = exports.defaultRgbMin = exports.phaseNumerator = exports.sNormalizedOffset = exports.sextuple = exports.triple = exports.lMin = exports.lFactor = exports.minStrokeWidth = exports.identity = exports.defaultAngle = exports.manualDefaultPosition = exports.touchDelay = exports.deleteCount = exports.defaultDensityFactor = exports.lengthOffset = exports.minIndex = exports.minCount = exports.countOffset = exports.minLimit = exports.sizeFactor = exports.posOffset = exports.defaultRadius = exports.minZ = exports.
|
|
12
|
+
exports.defaultTime = exports.defaultLoops = exports.defaultVelocity = exports.defaultRgbMin = exports.phaseNumerator = exports.sNormalizedOffset = exports.sextuple = exports.triple = exports.lMin = exports.lFactor = exports.minStrokeWidth = exports.identity = exports.defaultAngle = exports.manualDefaultPosition = exports.touchDelay = exports.deleteCount = exports.defaultDensityFactor = exports.lengthOffset = exports.minIndex = exports.minCount = exports.countOffset = exports.minLimit = exports.sizeFactor = exports.posOffset = exports.defaultRadius = exports.minZ = exports.minRetries = exports.tryCountIncrement = exports.decayOffset = exports.none = exports.one = exports.loadMinIndex = exports.loadRandomFactor = exports.canvasFirstIndex = exports.minFpsLimit = exports.defaultFpsLimit = exports.removeMinIndex = exports.removeDeleteCount = exports.minCoordinate = exports.touchEndLengthOffset = exports.clickRadius = exports.defaultOpacity = exports.zIndexFactorOffset = exports.minimumLength = exports.minimumSize = exports.defaultTransformValue = exports.minVelocity = exports.threeQuarter = exports.quarter = exports.empty = exports.hPhase = exports.sMin = exports.hMin = exports.lMax = exports.sMax = exports.hMax = exports.rgbMax = exports.inverseFactorNumerator = exports.subdivideCount = exports.defaultReduceFactor = exports.defaultRatio = exports.defaultRemoveQuantity = exports.qTreeCapacity = exports.squareExp = exports.defaultRetryCount = exports.canvasTag = exports.generatedFalse = exports.generatedTrue = exports.defaultAlpha = exports.defaultFps = exports.doublePI = exports.double = exports.midColorValue = exports.randomColorValue = exports.defaultTransform = exports.originPoint = exports.millisecondsToSeconds = exports.half = exports.percentDenominator = exports.visibilityChangeEvent = exports.resizeEvent = exports.generatedAttribute = void 0;
|
|
13
13
|
exports.generatedAttribute = "generated", exports.resizeEvent = "resize", exports.visibilityChangeEvent = "visibilitychange", exports.percentDenominator = 100, exports.half = 0.5, exports.millisecondsToSeconds = 1000, exports.originPoint = {
|
|
14
14
|
x: 0,
|
|
15
15
|
y: 0,
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
b: 0,
|
|
20
20
|
c: 0,
|
|
21
21
|
d: 1,
|
|
22
|
-
}, exports.randomColorValue = "random", exports.midColorValue = "mid", exports.double = 2, exports.doublePI = Math.PI * exports.double, exports.defaultFps = 60, exports.defaultAlpha = 1, exports.generatedTrue = "true", exports.generatedFalse = "false", exports.canvasTag = "canvas", exports.defaultRetryCount = 0, exports.squareExp = 2, exports.qTreeCapacity = 4, exports.defaultRemoveQuantity = 1, exports.defaultRatio = 1, exports.defaultReduceFactor = 1, exports.subdivideCount = 4, exports.inverseFactorNumerator = 1.0, exports.rgbMax = 255, exports.hMax = 360, exports.sMax = 100, exports.lMax = 100, exports.hMin = 0, exports.sMin = 0, exports.hPhase = 60, exports.empty = 0, exports.quarter = 0.25, exports.threeQuarter = exports.half + exports.quarter, exports.minVelocity = 0, exports.defaultTransformValue = 1, exports.minimumSize = 0, exports.minimumLength = 0, exports.zIndexFactorOffset = 1, exports.defaultOpacity = 1, exports.clickRadius = 1, exports.touchEndLengthOffset = 1, exports.minCoordinate = 0, exports.removeDeleteCount = 1, exports.removeMinIndex = 0, exports.defaultFpsLimit = 120, exports.minFpsLimit = 0, exports.canvasFirstIndex = 0, exports.loadRandomFactor = 10000, exports.loadMinIndex = 0, exports.one = 1, exports.none = 0, exports.decayOffset = 1, exports.tryCountIncrement = 1, exports.minRetries = 0, exports.
|
|
22
|
+
}, exports.randomColorValue = "random", exports.midColorValue = "mid", exports.double = 2, exports.doublePI = Math.PI * exports.double, exports.defaultFps = 60, exports.defaultAlpha = 1, exports.generatedTrue = "true", exports.generatedFalse = "false", exports.canvasTag = "canvas", exports.defaultRetryCount = 0, exports.squareExp = 2, exports.qTreeCapacity = 4, exports.defaultRemoveQuantity = 1, exports.defaultRatio = 1, exports.defaultReduceFactor = 1, exports.subdivideCount = 4, exports.inverseFactorNumerator = 1.0, exports.rgbMax = 255, exports.hMax = 360, exports.sMax = 100, exports.lMax = 100, exports.hMin = 0, exports.sMin = 0, exports.hPhase = 60, exports.empty = 0, exports.quarter = 0.25, exports.threeQuarter = exports.half + exports.quarter, exports.minVelocity = 0, exports.defaultTransformValue = 1, exports.minimumSize = 0, exports.minimumLength = 0, exports.zIndexFactorOffset = 1, exports.defaultOpacity = 1, exports.clickRadius = 1, exports.touchEndLengthOffset = 1, exports.minCoordinate = 0, exports.removeDeleteCount = 1, exports.removeMinIndex = 0, exports.defaultFpsLimit = 120, exports.minFpsLimit = 0, exports.canvasFirstIndex = 0, exports.loadRandomFactor = 10000, exports.loadMinIndex = 0, exports.one = 1, exports.none = 0, exports.decayOffset = 1, exports.tryCountIncrement = 1, exports.minRetries = 0, exports.minZ = 0, exports.defaultRadius = 0, exports.posOffset = -exports.quarter, exports.sizeFactor = 1.5, exports.minLimit = 0, exports.countOffset = 1, exports.minCount = 0, exports.minIndex = 0, exports.lengthOffset = 1, exports.defaultDensityFactor = 1, exports.deleteCount = 1, exports.touchDelay = 500, exports.manualDefaultPosition = 50, exports.defaultAngle = 0, exports.identity = 1, exports.minStrokeWidth = 0, exports.lFactor = 1, exports.lMin = 0, exports.triple = 3, exports.sextuple = 6, exports.sNormalizedOffset = 1, exports.phaseNumerator = 1, exports.defaultRgbMin = 0, exports.defaultVelocity = 0, exports.defaultLoops = 0, exports.defaultTime = 0;
|
|
23
23
|
});
|
|
@@ -13,31 +13,46 @@
|
|
|
13
13
|
var EasingType;
|
|
14
14
|
(function (EasingType) {
|
|
15
15
|
EasingType["easeInBack"] = "ease-in-back";
|
|
16
|
+
EasingType["easeInBounce"] = "ease-in-bounce";
|
|
16
17
|
EasingType["easeInCirc"] = "ease-in-circ";
|
|
17
18
|
EasingType["easeInCubic"] = "ease-in-cubic";
|
|
19
|
+
EasingType["easeInElastic"] = "ease-in-elastic";
|
|
20
|
+
EasingType["easeInExpo"] = "ease-in-expo";
|
|
21
|
+
EasingType["easeInGaussian"] = "ease-in-gaussian";
|
|
18
22
|
EasingType["easeInLinear"] = "ease-in-linear";
|
|
19
23
|
EasingType["easeInQuad"] = "ease-in-quad";
|
|
20
24
|
EasingType["easeInQuart"] = "ease-in-quart";
|
|
21
25
|
EasingType["easeInQuint"] = "ease-in-quint";
|
|
22
|
-
EasingType["
|
|
26
|
+
EasingType["easeInSigmoid"] = "ease-in-sigmoid";
|
|
23
27
|
EasingType["easeInSine"] = "ease-in-sine";
|
|
28
|
+
EasingType["easeInSmoothstep"] = "ease-in-smoothstep";
|
|
24
29
|
EasingType["easeOutBack"] = "ease-out-back";
|
|
30
|
+
EasingType["easeOutBounce"] = "ease-out-bounce";
|
|
25
31
|
EasingType["easeOutCirc"] = "ease-out-circ";
|
|
26
32
|
EasingType["easeOutCubic"] = "ease-out-cubic";
|
|
33
|
+
EasingType["easeOutElastic"] = "ease-out-elastic";
|
|
34
|
+
EasingType["easeOutExpo"] = "ease-out-expo";
|
|
35
|
+
EasingType["easeOutGaussian"] = "ease-out-gaussian";
|
|
27
36
|
EasingType["easeOutLinear"] = "ease-out-linear";
|
|
28
37
|
EasingType["easeOutQuad"] = "ease-out-quad";
|
|
29
38
|
EasingType["easeOutQuart"] = "ease-out-quart";
|
|
30
39
|
EasingType["easeOutQuint"] = "ease-out-quint";
|
|
31
|
-
EasingType["
|
|
40
|
+
EasingType["easeOutSigmoid"] = "ease-out-sigmoid";
|
|
32
41
|
EasingType["easeOutSine"] = "ease-out-sine";
|
|
42
|
+
EasingType["easeOutSmoothstep"] = "ease-out-smoothstep";
|
|
33
43
|
EasingType["easeInOutBack"] = "ease-in-out-back";
|
|
44
|
+
EasingType["easeInOutBounce"] = "ease-in-out-bounce";
|
|
34
45
|
EasingType["easeInOutCirc"] = "ease-in-out-circ";
|
|
35
46
|
EasingType["easeInOutCubic"] = "ease-in-out-cubic";
|
|
47
|
+
EasingType["easeInOutElastic"] = "ease-in-out-elastic";
|
|
48
|
+
EasingType["easeInOutExpo"] = "ease-in-out-expo";
|
|
49
|
+
EasingType["easeInOutGaussian"] = "ease-in-out-gaussian";
|
|
36
50
|
EasingType["easeInOutLinear"] = "ease-in-out-linear";
|
|
37
51
|
EasingType["easeInOutQuad"] = "ease-in-out-quad";
|
|
38
52
|
EasingType["easeInOutQuart"] = "ease-in-out-quart";
|
|
39
53
|
EasingType["easeInOutQuint"] = "ease-in-out-quint";
|
|
40
|
-
EasingType["
|
|
54
|
+
EasingType["easeInOutSigmoid"] = "ease-in-out-sigmoid";
|
|
41
55
|
EasingType["easeInOutSine"] = "ease-in-out-sine";
|
|
56
|
+
EasingType["easeInOutSmoothstep"] = "ease-in-out-smoothstep";
|
|
42
57
|
})(EasingType || (exports.EasingType = EasingType = {}));
|
|
43
58
|
});
|