@tsparticles/preset-confetti-cannon 4.2.0 → 4.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-confetti-cannon",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "tsParticles confetti cannon preset",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -106,18 +106,18 @@
106
106
  "./package.json": "./package.json"
107
107
  },
108
108
  "dependencies": {
109
- "@tsparticles/basic": "4.2.0",
110
- "@tsparticles/engine": "4.2.0",
111
- "@tsparticles/interaction-external-cannon": "4.2.0",
112
- "@tsparticles/palette-confetti": "4.2.0",
113
- "@tsparticles/plugin-interactivity": "4.2.0",
114
- "@tsparticles/plugin-motion": "4.2.0",
115
- "@tsparticles/shape-square": "4.2.0",
116
- "@tsparticles/updater-life": "4.2.0",
117
- "@tsparticles/updater-roll": "4.2.0",
118
- "@tsparticles/updater-rotate": "4.2.0",
119
- "@tsparticles/updater-tilt": "4.2.0",
120
- "@tsparticles/updater-wobble": "4.2.0"
109
+ "@tsparticles/basic": "4.2.1",
110
+ "@tsparticles/engine": "4.2.1",
111
+ "@tsparticles/interaction-external-cannon": "4.2.1",
112
+ "@tsparticles/palette-confetti": "4.2.1",
113
+ "@tsparticles/plugin-interactivity": "4.2.1",
114
+ "@tsparticles/plugin-motion": "4.2.1",
115
+ "@tsparticles/shape-square": "4.2.1",
116
+ "@tsparticles/updater-life": "4.2.1",
117
+ "@tsparticles/updater-roll": "4.2.1",
118
+ "@tsparticles/updater-rotate": "4.2.1",
119
+ "@tsparticles/updater-tilt": "4.2.1",
120
+ "@tsparticles/updater-wobble": "4.2.1"
121
121
  },
122
122
  "publishConfig": {
123
123
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.2.0 */
2
+ /* Preset v4.2.1 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
5
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -796,7 +796,7 @@
796
796
  return this.#domArray;
797
797
  }
798
798
  get version() {
799
- return "4.2.0";
799
+ return "4.2.1";
800
800
  }
801
801
  addEventListener(type, listener) {
802
802
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2072,7 +2072,7 @@
2072
2072
  }
2073
2073
 
2074
2074
  async function loadBlendPlugin(engine) {
2075
- engine.checkVersion("4.2.0");
2075
+ engine.checkVersion("4.2.1");
2076
2076
  await engine.pluginManager.register(e => {
2077
2077
  e.pluginManager.addPlugin(new BlendPlugin());
2078
2078
  });
@@ -2109,7 +2109,7 @@
2109
2109
  }
2110
2110
 
2111
2111
  async function loadCircleShape(engine) {
2112
- engine.checkVersion("4.2.0");
2112
+ engine.checkVersion("4.2.1");
2113
2113
  await engine.pluginManager.register(e => {
2114
2114
  e.pluginManager.addShape(["circle"], () => {
2115
2115
  return Promise.resolve(new CircleDrawer());
@@ -2157,7 +2157,7 @@
2157
2157
  }
2158
2158
 
2159
2159
  async function loadHexColorPlugin(engine) {
2160
- engine.checkVersion("4.2.0");
2160
+ engine.checkVersion("4.2.1");
2161
2161
  await engine.pluginManager.register(e => {
2162
2162
  e.pluginManager.addColorManager("hex", new HexColorManager());
2163
2163
  });
@@ -2210,7 +2210,7 @@
2210
2210
  }
2211
2211
 
2212
2212
  async function loadHslColorPlugin(engine) {
2213
- engine.checkVersion("4.2.0");
2213
+ engine.checkVersion("4.2.1");
2214
2214
  await engine.pluginManager.register(e => {
2215
2215
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2216
2216
  });
@@ -2234,7 +2234,7 @@
2234
2234
  }
2235
2235
 
2236
2236
  async function loadMovePlugin(engine) {
2237
- engine.checkVersion("4.2.0");
2237
+ engine.checkVersion("4.2.1");
2238
2238
  await engine.pluginManager.register(e => {
2239
2239
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2240
2240
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2450,7 +2450,7 @@
2450
2450
  }
2451
2451
 
2452
2452
  async function loadOpacityUpdater(engine) {
2453
- engine.checkVersion("4.2.0");
2453
+ engine.checkVersion("4.2.1");
2454
2454
  await engine.pluginManager.register(e => {
2455
2455
  e.pluginManager.addParticleUpdater("opacity", container => {
2456
2456
  return Promise.resolve(new OpacityUpdater(container));
@@ -2795,7 +2795,7 @@
2795
2795
  }
2796
2796
 
2797
2797
  async function loadOutModesUpdater(engine) {
2798
- engine.checkVersion("4.2.0");
2798
+ engine.checkVersion("4.2.1");
2799
2799
  await engine.pluginManager.register(e => {
2800
2800
  e.pluginManager.addParticleUpdater("outModes", container => {
2801
2801
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -2866,7 +2866,7 @@
2866
2866
  }
2867
2867
 
2868
2868
  async function loadPaintUpdater(engine) {
2869
- engine.checkVersion("4.2.0");
2869
+ engine.checkVersion("4.2.1");
2870
2870
  await engine.pluginManager.register(e => {
2871
2871
  e.pluginManager.addParticleUpdater("paint", container => {
2872
2872
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -2921,7 +2921,7 @@
2921
2921
  }
2922
2922
 
2923
2923
  async function loadRgbColorPlugin(engine) {
2924
- engine.checkVersion("4.2.0");
2924
+ engine.checkVersion("4.2.1");
2925
2925
  await engine.pluginManager.register(e => {
2926
2926
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
2927
2927
  });
@@ -3006,7 +3006,7 @@
3006
3006
  }
3007
3007
 
3008
3008
  async function loadSizeUpdater(engine) {
3009
- engine.checkVersion("4.2.0");
3009
+ engine.checkVersion("4.2.1");
3010
3010
  await engine.pluginManager.register(e => {
3011
3011
  e.pluginManager.addParticleUpdater("size", container => {
3012
3012
  return Promise.resolve(new SizeUpdater(container));
@@ -3015,7 +3015,7 @@
3015
3015
  }
3016
3016
 
3017
3017
  async function loadBasic(engine) {
3018
- engine.checkVersion("4.2.0");
3018
+ engine.checkVersion("4.2.1");
3019
3019
  await engine.pluginManager.register(async (e) => {
3020
3020
  await Promise.all([
3021
3021
  loadBlendPlugin(e),
@@ -3246,7 +3246,7 @@
3246
3246
  const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
3247
3247
 
3248
3248
  async function loadInteractivityPlugin(engine) {
3249
- engine.checkVersion("4.2.0");
3249
+ engine.checkVersion("4.2.1");
3250
3250
  await engine.pluginManager.register(e => {
3251
3251
  const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
3252
3252
  interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
@@ -3425,7 +3425,7 @@
3425
3425
  }
3426
3426
 
3427
3427
  async function loadExternalCannonInteraction(engine) {
3428
- engine.checkVersion("4.2.0");
3428
+ engine.checkVersion("4.2.1");
3429
3429
  await engine.pluginManager.register((e) => {
3430
3430
  ensureInteractivityPluginLoaded(e);
3431
3431
  e.pluginManager.addInteractor?.("externalCannon", container => {
@@ -3571,7 +3571,7 @@
3571
3571
  }
3572
3572
 
3573
3573
  async function loadLifeUpdater(engine) {
3574
- engine.checkVersion("4.2.0");
3574
+ engine.checkVersion("4.2.1");
3575
3575
  await engine.pluginManager.register(e => {
3576
3576
  e.pluginManager.addParticleUpdater("life", container => {
3577
3577
  return Promise.resolve(new LifeUpdater(container));
@@ -3625,7 +3625,7 @@
3625
3625
  }
3626
3626
 
3627
3627
  async function loadMotionPlugin(engine) {
3628
- engine.checkVersion("4.2.0");
3628
+ engine.checkVersion("4.2.1");
3629
3629
  await engine.pluginManager.register(e => {
3630
3630
  e.pluginManager.addPlugin(new MotionPlugin());
3631
3631
  });
@@ -3758,7 +3758,7 @@
3758
3758
  }
3759
3759
 
3760
3760
  async function loadRollUpdater(engine) {
3761
- engine.checkVersion("4.2.0");
3761
+ engine.checkVersion("4.2.1");
3762
3762
  await engine.pluginManager.register(e => {
3763
3763
  e.pluginManager.addParticleUpdater("roll", () => {
3764
3764
  return Promise.resolve(new RollUpdater(e.pluginManager));
@@ -3864,7 +3864,7 @@
3864
3864
  }
3865
3865
 
3866
3866
  async function loadRotateUpdater(engine) {
3867
- engine.checkVersion("4.2.0");
3867
+ engine.checkVersion("4.2.1");
3868
3868
  await engine.pluginManager.register(e => {
3869
3869
  e.pluginManager.addParticleUpdater("rotate", container => {
3870
3870
  return Promise.resolve(new RotateUpdater(container));
@@ -3888,7 +3888,7 @@
3888
3888
  }
3889
3889
 
3890
3890
  async function loadSquareShape(engine) {
3891
- engine.checkVersion("4.2.0");
3891
+ engine.checkVersion("4.2.1");
3892
3892
  await engine.pluginManager.register(e => {
3893
3893
  e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
3894
3894
  });
@@ -3997,7 +3997,7 @@
3997
3997
  }
3998
3998
 
3999
3999
  async function loadTiltUpdater(engine) {
4000
- engine.checkVersion("4.2.0");
4000
+ engine.checkVersion("4.2.1");
4001
4001
  await engine.pluginManager.register(e => {
4002
4002
  e.pluginManager.addParticleUpdater("tilt", container => {
4003
4003
  return Promise.resolve(new TiltUpdater(container));
@@ -4099,7 +4099,7 @@
4099
4099
  }
4100
4100
 
4101
4101
  async function loadWobbleUpdater(engine) {
4102
- engine.checkVersion("4.2.0");
4102
+ engine.checkVersion("4.2.1");
4103
4103
  await engine.pluginManager.register(e => {
4104
4104
  e.pluginManager.addParticleUpdater("wobble", container => {
4105
4105
  return Promise.resolve(new WobbleUpdater(container));
@@ -1 +1 @@
1
- !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.confettiCannon=t.__tsParticlesInternals.presets.confettiCannon||{}))}(this,function(t){"use strict";const e="generated",i="source-over",s="visibilitychange",n=100,a=.5,o=1e3,r={x:0,y:0,z:0},l=1,c=0,h=0,d=1,u="random",p=2*Math.PI,g="true",f="false",m="canvas",y=255,v=360,w=100,P=100,b=.25;var x;function M(t){return"z"in t?t.z:r.z}!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"}(x||(x={}));class C{x;y;z;constructor(t=r.x,e=r.y,i=r.z){this.x=t,this.y=e,this.z=i}static get origin(){return C.create(r.x,r.y,r.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return C.create(t.x,t.y,M(t))}static create(t,e,i){return"number"==typeof t?new C(t,e??r.y,i??r.z):new C(t.x,t.y,M(t))}add(t){return C.create(this.x+t.x,this.y+t.y,this.z+M(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=M(t)}copy(){return C.clone(this)}div(t){return C.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return C.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;0!=t&&this.multTo(1/t)}rotate(t){return C.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=M(t)}sub(t){return C.create(this.x-t.x,this.y-t.y,this.z-M(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=M(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class z extends C{constructor(t=r.x,e=r.y){super(t,e,r.z)}static get origin(){return z.create(r.x,r.y)}static clone(t){return z.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new z(t,e??r.y):new z(t.x,t.y)}}function k(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function I(t){return"number"==typeof t}function D(t){return"object"==typeof t&&null!==t}function O(t){return Array.isArray(t)}function _(t){return null==t}const R=Math.PI/180;let L=Math.random;const E=t=>requestAnimationFrame(t),T=t=>{cancelAnimationFrame(t)};function F(){return A(L(),0,1-Number.EPSILON)}function B(t,e){return F()*(e-t)+t}function A(t,e,i){return Math.min(Math.max(t,e),i)}function U(t){const e=$(t);let i=H(t);return e===i&&(i=0),B(i,e)}function V(t){return I(t)?t:U(t)}function H(t){return I(t)?t:t.min}function $(t){return I(t)?t:t.max}function W(t,e){if(t===e||void 0===e&&I(t))return t;const i=H(t),s=$(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:W(i,s)}function G(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function j(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function q(t,e){return Math.sqrt(j(t,e))}function N(t){return t*R}function X(t){const{position:e,size:i}=t;return{x:e?.x??F()*i.width,y:e?.y??F()*i.height}}function Y(t){return t?t.endsWith("%")?parseFloat(t)/n:parseFloat(t):1}var Q,K;!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(Q||(Q={})),function(t){t.precise="precise",t.percent="percent"}(K||(K={}));function Z(){return globalThis.document}function J(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function tt(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(F()*t.length)]}function et(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==Q.bottom||(n=t.top<e.height+i.x);!n||s&&s!==Q.left||(n=t.right>i.x);!n||s&&s!==Q.right||(n=t.left<e.width+i.y);!n||s&&s!==Q.top||(n=t.bottom>i.y);return n}(it(t,s??0),e,i,n)}function it(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function st(t,...e){for(const i of e){if(_(i))continue;if(!D(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):D(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),s=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return D(e)||Array.isArray(e)})){const n=i,a=t;for(const t of e)if(!s.has(t)&&t in n){const e=n[t];void 0!==e&&(a[t]=e)}continue}for(const n of e){if(s.has(n))continue;const e=t,a=i[n];e[n]=Array.isArray(a)?a.map(t=>st(void 0,t)):st(e[n],a)}}return t}function nt(t,e){return O(t)?t.map((t,i)=>e(t,i)):e(t,0)}function at(t,e,i){return O(t)?tt(t,e,i):t}function ot(t,e){return function(t,e){if(t.mode!==K.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/n*e.width,y:t.y/n*e.height}:{width:t.width/n*e.width,height:t.height/n*e.height}}(t,e)}let rt,lt;function ct(t,e,i,s,n){if(s){let s={passive:!0};k(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function ht(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}async function dt(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class ut{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this.#e.get(t);i||(i=[],this.#e.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):i.splice(n,1))}}var pt;!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"}(pt||(pt={}));class gt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#o=!1;#r=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(pt.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.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,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return dt(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return dt(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return ht(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this.#o&&!this.#r){this.#r=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#r=!1,this.#o=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this.#o)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this.#r?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}const ft=t=>(...e)=>{t(...e)},mt={debug:ft(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:ft(console.info),log:ft(console.log),trace:ft(console.trace),verbose:ft(console.log),warning:ft(console.warn)};function yt(){return mt}const vt="100%";class wt{pluginManager=new gt(this);#h=[];#d=new ut;#o=!1;get items(){return this.#h}get version(){return"4.2.0"}addEventListener(t,e){this.#d.addEventListener(t,e)}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}`)}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#o||(await this.pluginManager.init(),this.#o=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let i;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(i=t.element);const{Container:s}=await Promise.resolve().then(function(){return Vs}),n=t.id??i?.id??`tsparticles${Math.floor(1e4*F()).toString()}`,{index:a,url:o}=t,r=o?await async function(t){const e=at(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(yt().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:a}):t.options,l=at(r,a),{items:c}=this,h=c.findIndex(t=>t.id.description===n),d=new s({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:n,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const i=Z();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===m)s=t,s.dataset[e]??=f,s.dataset[e]===g&&(s.style.width||=vt,s.style.height||=vt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(m).item(0);n?(s=n,s.dataset[e]=f):(s=i.createElement(m),s.dataset[e]=g,t.appendChild(s)),s.style.width||=vt,s.style.height||=vt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(((t,i)=>{const s=Z();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=g,s.body.append(n),n)})(n,i));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}var Pt,bt,xt,Mt,Ct,zt,kt,St,It,Dt,Ot;!function(t){t.circle="circle",t.rectangle="rectangle"}(Pt||(Pt={}));class _t{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class Rt extends _t{radius;constructor(t,e,i){super(t,e,Pt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,j(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof Rt||t.type===Pt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Lt||t.type===Pt.rectangle){const e=t,{width:i,height:o}=e.size;return Math.pow(n-i,2)+Math.pow(a-o,2)<=s**2||n<=s+i&&a<=s+o||n<=i||a<=o}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Lt extends _t{size;constructor(t,e,i,s){super(t,e,Pt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof Rt)return t.intersects(this);if(!(t instanceof Lt))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(bt||(bt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(xt||(xt={})),function(t){t.delete="delete",t.wait="wait"}(Mt||(Mt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(Ct||(Ct={})),function(t){t.darken="darken",t.enlighten="enlighten"}(zt||(zt={})),function(t){t.none="none",t.max="max",t.min="min"}(kt||(kt={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(St||(St={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(It||(It={})),function(t){t.max="max",t.min="min",t.random="random"}(Dt||(Dt={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(Ot||(Ot={}));class Et{load(t){_(t)||this.doLoad(t)}}function Tt(t,...e){for(const i of e)t.load(i)}function Ft(t,e,i){void 0!==i&&(t[e]=i)}function Bt(t,e,i){void 0!==i&&(t[e]=W(i))}function At(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function Ut(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}class Vt extends Et{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){Bt(this,"count",t.count),Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Bt(this,"delay",t.delay),Ft(this,"sync",t.sync)}}class Ht extends Vt{mode=xt.auto;startValue=Dt.random;doLoad(t){super.doLoad(t),Ft(this,"mode",t.mode),Ft(this,"startValue",t.startValue)}}class $t extends Vt{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Ft(this,"max",t.max),Ft(this,"min",t.min),Bt(this,"offset",t.offset)}}class Wt extends Et{h=new $t(0,v);l=new $t(0,P);s=new $t(0,w);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class Gt extends Et{value="";static create(t,e){const i=new Gt;return i.load(t),void 0!==e&&(S(e)||O(e)?i.load({value:e}):i.load(e)),i}doLoad(t){_(t.value)||(this.value=t.value)}}class jt extends Gt{animation=new Wt;static create(t,e){const i=new jt;return i.load(t),void 0!==e&&(S(e)||O(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class qt extends Et{color;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new Gt,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Ft(this,"image",t.image),Ft(this,"position",t.position),Ft(this,"repeat",t.repeat),Ft(this,"size",t.size),Ft(this,"opacity",t.opacity)}}class Nt extends Et{enable=!0;zIndex=0;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"zIndex",t.zIndex)}}class Xt extends Et{delay=.5;enable=!0;doLoad(t){Ft(this,"delay",t.delay),Ft(this,"enable",t.enable)}}class Yt extends Et{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class Qt extends Et{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Ft(this,"enable",t.enable),Bt(this,"opacity",t.opacity)}}class Kt extends Et{offset=0;value=90;doLoad(t){Bt(this,"offset",t.offset),Bt(this,"value",t.value)}}class Zt extends Et{mode=K.percent;radius=0;x=50;y=50;doLoad(t){Ft(this,"x",t.x),Ft(this,"y",t.y),Ft(this,"mode",t.mode),Ft(this,"radius",t.radius)}}class Jt extends Et{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){Bt(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),Ft(this,"inverse",t.inverse),Bt(this,"maxSpeed",t.maxSpeed)}}class te extends Et{value=0;doLoad(t){_(t.value)||(this.value=W(t.value))}}class ee extends te{animation=new Vt;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class ie extends ee{animation=new Ht}class se extends Et{clamp=!0;delay=new te;enable=!1;generator;options={};doLoad(t){Ft(this,"clamp",t.clamp),this.delay.load(t.delay),Ft(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=st(this.options,t.options))}}class ne extends Et{bottom;default=Ct.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class ae extends Et{acceleration=0;enable=!1;position;doLoad(t){Bt(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),t.position&&(this.position=st({},t.position))}}class oe extends Et{angle=new Kt;center=new Zt;decay=0;direction=x.none;distance={};drift=0;enable=!1;gravity=new Jt;outModes=new ne;path=new se;random=!1;size=!1;speed=2;spin=new ae;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(I(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),Bt(this,"decay",t.decay),Ft(this,"direction",t.direction),void 0!==t.distance&&(this.distance=I(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),Bt(this,"drift",t.drift),Ft(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(D(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Ft(this,"random",t.random),Ft(this,"size",t.size),Bt(this,"speed",t.speed),this.spin.load(t.spin),Ft(this,"straight",t.straight),Ft(this,"vibrate",t.vibrate),Ft(this,"warp",t.warp)}}class re extends Et{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Bt(this,"width",t.width),Bt(this,"opacity",t.opacity)}}class le extends Et{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),At(this,"fill",t.fill,()=>new Qt),At(this,"stroke",t.stroke,()=>new re)}}class ce extends te{value=1}class he extends Et{horizontal=new ce;vertical=new ce;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class de extends Et{enable=!1;height=1080;width=1920;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"width",t.width),Ft(this,"height",t.height)}}class ue extends Et{mode=Mt.delete;value=0;doLoad(t){Ft(this,"mode",t.mode),Ft(this,"value",t.value)}}class pe extends Et{density=new de;limit=new ue;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Ft(this,"value",t.value)}}class ge extends Et{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class fe extends te{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Ft(this,"opacityRate",t.opacityRate),Ft(this,"sizeRate",t.sizeRate),Ft(this,"velocityRate",t.velocityRate)}}class me extends Et{bounce=new he;effect=new Yt;groups={};move=new oe;number=new pe;paint;palette;reduceDuplicates=!1;shape=new ge;zIndex=new fe;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new le,this.paint.color=new jt,this.paint.color.value="#fff",this.paint.fill=new Qt,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#g(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=st(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(O(e)?this.paint=nt(e,t=>{const e=new le;return e.load(t),e}):O(this.paint)?(this.paint=new le,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#p.updaters.get(this.#u);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#g(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(O(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function ye(t,e,...i){const s=new me(t,e);return Tt(s,...i),s}class ve extends Et{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr=!0;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new qt,this.fullScreen=new Nt,this.particles=ye(this.#p,this.#u),this.resize=new Xt}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,nt(this.preset,t=>{this.#f(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#g(this.palette)),Ft(this,"autoPlay",t.autoPlay),Ft(this,"clear",t.clear),Ft(this,"key",t.key),Ft(this,"name",t.name),Bt(this,"delay",t.delay),Ft(this,"detectRetina",t.detectRetina),Bt(this,"duration",t.duration),Ft(this,"fpsLimit",t.fpsLimit),Ft(this,"hdr",t.hdr),Ft(this,"pauseOnBlur",t.pauseOnBlur),Ft(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Ft(this,"zLayers",t.zLayers),this.background.load(t.background);const e=t.fullScreen;k(e)?this.fullScreen.enable=e:this.fullScreen.load(e),this.particles.load(t.particles),this.resize.load(t.resize),this.style=st(this.style,t.style),Ft(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#g(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#f(t){this.load(this.#p.getPreset(t))}}const we=new Map;function Pe(t,e){let i=we.get(t);return i||(i=e(),we.size>2e3&&we.clear(),we.set(t,i)),i}function be(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return xe(t,n.value,i,s);if(O(n.value)){const e=tt(n.value,i,s);if(!e)return;return be(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function xe(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return n.value===u?function(){const t=0,e=256,i=()=>Math.floor(B(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(O(n.value)){const e=tt(n.value,i,s);if(!e)return;return xe(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Me(t,e,i,s=!0){const n=be(t,e,i,s);return n?function(t){const e=t.r/y,i=t.g/y,s=t.b/y,n=Math.max(e,i,s),o=Math.min(e,i,s),r={h:0,l:(n+o)*a,s:0};n!==o&&(r.s=r.l<a?(n-o)/(n+o):(n-o)/(2-n-o),r.h=e===n?(i-s)/(n-o):i===n?2+(s-e)/(n-o):4+(e-i)/(n-o));r.l*=P,r.s*=w,r.h*=60,r.h<0&&(r.h+=v);r.h>=v&&(r.h-=v);return r}(n):void 0}function Ce(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function ze(t){const e=(t.h%v+v)%v,i=Math.max(0,Math.min(w,t.s)),s=Math.max(0,Math.min(P,t.l)),n=e/v,o=i/w,r=s/P;if(0===i){const t=Math.round(r*y);return{r:t,g:t,b:t}}const l=r<a?r*(1+o):r+o-r*o,c=2*r-l,h=1/3,d=Math.min(y,y*Ce(c,l,n+h)),u=Math.min(y,y*Ce(c,l,n)),p=Math.min(y,y*Ce(c,l,n-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function ke(t,e,i){const s=i??1;return Pe(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?function(t,e,i=400){const s=i/203;return`color(display-p3 ${(t.r/y*s).toString()} ${(t.g/y*s).toString()} ${(t.b/y*s).toString()} / ${(e??1).toString()})`}(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Se(t,e,i){const s=i??1;return Pe(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?ke(ze(t),!0,i):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${s.toString()})`)}function Ie(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function De(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:v},s:{enable:!1,value:t.s,min:0,max:w},l:{enable:!1,value:t.l,min:0,max:P}};return e&&(Oe(s.h,e.h,i),Oe(s.s,e.s,i),Oe(s.l,e.l,i)),s}function Oe(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=V(e.speed)/n*i,t.decay=1-V(e.decay),t.status=Ot.increasing,t.loops=0,t.maxLoops=V(e.count),t.time=0,t.delayTime=V(e.delay)*o,e.sync||(t.velocity*=F(),t.value*=F()),t.initialValue=t.value,t.offset=W(e.offset)):t.velocity=0}function _e(t,e,i){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+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?U(t.offset):0,n=(t.velocity??0)*i.factor+3.6*s,a=t.decay??1,o=t.max,r=t.min;e&&t.status!==Ot.increasing?(t.value-=n,t.value<r&&(t.loops??=0,t.loops++,t.status=Ot.increasing)):(t.value+=n,t.value>o&&(t.loops??=0,t.loops++,e?t.status=Ot.decreasing:t.value-=o)),t.velocity&&1!==a&&(t.velocity*=a),t.value=A(t.value,r,o)}function Re(t,e){if(!t)return;const{h:i,s:s,l:n}=t;_e(i,!1,e),_e(s,!0,e),_e(n,!0,e)}const Le=new wt;class Ee{enable=!1;mode="destination-out";load(t){_(t)||(Ft(this,"mode",t.mode),Ft(this,"enable",t.enable))}}class Te{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return Hs});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new Ee),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new Ee,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function Fe(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Te)})}class Be{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:p};const n=i.circleRange;e.arc(r.x,r.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=D(s)?{min:N(s.min),max:N(s.max)}:{min:0,max:N(s)}}}async function Ae(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Be))})}var Ue;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Ue||(Ue={}));const Ve=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,He=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class $e{accepts(t){return t.startsWith("#")}handleColor(t){return this.#m(t.value)}handleRangeColor(t){return this.#m(t.value)}parseString(t){return this.#m(t)}#m(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Ve,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=He.exec(e);return i?{a:i[Ue.a]?Number.parseInt(i[Ue.a],16)/255:1,b:Number.parseInt(i[Ue.b]??"0",16),g:Number.parseInt(i[Ue.g]??"0",16),r:Number.parseInt(i[Ue.r]??"0",16)}:void 0}}async function We(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new $e)})}var Ge;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(Ge||(Ge={}));const je=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class qe{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return ze(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return ze({h:V(e.h),l:V(e.l),s:V(e.s)})}parseString(t){if(!this.accepts(t))return;const e=je.exec(t);return e?function(t){const e=ze(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?Y(e[Ge.a]):1,h:Number.parseInt(e[Ge.h]??"0",10),l:Number.parseInt(e[Ge.l]??"0",10),s:Number.parseInt(e[Ge.s]??"0",10)}):void 0}}async function Ne(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new qe)})}class Xe{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Ws});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function Ye(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,dt(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new Xe(t.pluginManager))})}function Qe(t,e){const i=t.value,s=t.animation,n={delayTime:V(s.delay)*o,enable:s.enable,value:V(t.value)*e,max:$(i)*e,min:H(i)*e,loops:0,maxLoops:V(s.count),time:0};if(s.enable){switch(n.decay=1-V(s.decay),s.mode){case xt.increase:n.status=Ot.increasing;break;case xt.decrease:n.status=Ot.decreasing;break;case xt.random:n.status=F()>=a?Ot.increasing:Ot.decreasing}const t=s.mode===xt.auto;switch(s.startValue){case Dt.min:n.value=n.min,t&&(n.status=Ot.increasing);break;case Dt.max:n.value=n.max,t&&(n.status=Ot.decreasing);break;case Dt.random:default:n.value=U(n),t&&(n.status=F()>=a?Ot.increasing:Ot.decreasing)}}return n.initialValue=n.value,n}function Ke(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,o=e.min,r=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case Ot.increasing:e.value+=a;break;case Ot.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case Ot.increasing:e.value>=r&&(i?e.status=Ot.decreasing:e.value-=r,e.loops??=0,e.loops++);break;case Ot.decreasing:e.value<=o&&(i?e.status=Ot.increasing:e.value+=r,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case kt.max:i>=n&&t.destroy();break;case kt.min:i<=s&&t.destroy()}}(t,s,e.value,o,r),t.destroyed||(e.value=A(e.value,o,r))}}class Ze extends Ht{destroy=kt.none;load(t){super.load(t),_(t)||Ft(this,"destroy",t.destroy)}}class Je extends ie{animation=new Ze;value=1;load(t){if(_(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class ti{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=Qe(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=V(i.speed)/n*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=F()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){Ut(t,"opacity",Je,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&Ke(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function ei(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new ti(t)))})}class ii{modes;#u;#y;constructor(t){this.#u=t,this.modes=[Ct.bounce,Ct.split],this.#y=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;let a=!1;for(const s of this.#y)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const o=t.getPosition(),r=t.offset,l=t.getRadius(),c=it(o,l),h=n.canvas.size,d=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Q.left&&t.direction!==Q.right)return;t.bounds.right<0&&t.direction===Q.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===Q.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.outOfCanvas&&(t.direction===Q.right&&e>0||t.direction===Q.left&&e<0)){const e=V(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.outOfCanvas&&t.direction===Q.right?t.particle.position.x=t.canvasSize.width-s:t.outOfCanvas&&t.direction===Q.left&&(t.particle.position.x=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l}),function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Q.bottom&&t.direction!==Q.top)return;t.bounds.bottom<0&&t.direction===Q.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===Q.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.outOfCanvas&&(t.direction===Q.bottom&&e>0||t.direction===Q.top&&e<0)){const e=V(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.outOfCanvas&&t.direction===Q.bottom?t.particle.position.y=t.canvasSize.height-s:t.outOfCanvas&&t.direction===Q.top&&(t.particle.position.y=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l})}}class si{modes;constructor(t){this.modes=[Ct.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case It.normal:case It.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case It.inside:{const{dx:e,dy:i}=G(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class ni{modes;#u;constructor(t){this.#u=t,this.modes=[Ct.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===Q.left||e===Q.right))??(t.options.move.distance.vertical&&(e===Q.top||e===Q.bottom)))return;const n=t.options.move.gravity,a=this.#u,o=a.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>o.height+l&&e===Q.bottom||n.inverse&&i.y<-l&&e===Q.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=o.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=o.width+l||t.velocity.x<0&&t.position.x>=-l)return;et(t.position,a.canvas.size,r,l,e)||t.destroy()}}}const ai=z.origin;class oi{modes;#u;constructor(t){this.#u=t,this.modes=[Ct.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;switch(t.outType){case It.inside:{const{x:e,y:i}=t.velocity;ai.setTo(r),ai.length=t.moveCenter.radius,ai.angle=t.velocity.angle+Math.PI,ai.addTo(t.moveCenter);const{dx:s,dy:a}=G(t.position,ai);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor(U({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(U({min:0,max:n.canvas.size.height}));const{dx:o,dy:l}=G(t.position,t.moveCenter);t.direction=Math.atan2(-l,-o),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(t.isInsideCanvasForOutMode(s,e))return;switch(t.outType){case It.outside:{t.position.x=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=G(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case It.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=it(t.position,o);e===Q.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=F()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===Q.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=F()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===Q.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=F()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===Q.top&&r.bottom<-t.offset.y&&(i||(t.position.x=F()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class ri{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#v(t,Ct.bounce,t=>new ii(t)),this.#v(t,Ct.out,t=>new oi(t)),this.#v(t,Ct.destroy,t=>new si(t)),this.#v(t,Ct.none,t=>new ni(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#w(t,e,i.bottom??i.default,Q.bottom),this.#w(t,e,i.left??i.default,Q.left),this.#w(t,e,i.right??i.default,Q.right),this.#w(t,e,i.top??i.default,Q.top)}#v(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#w(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function li(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new ri(t)))})}class ci{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=at(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,o=s?.fill,r=s?.stroke;if(o){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),o.color);t.fillEnabled=o.enable,t.fillOpacity=V(o.opacity),t.fillAnimation=i.animation;const s=Me(this.#p,i);s&&(t.fillColor=De(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(r){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),r.color);t.strokeWidth=V(r.width)*e.retina.pixelRatio,t.strokeOpacity=V(r.opacity??1),t.strokeAnimation=i.animation;const s=Me(this.#p,i)??t.getFillColor();s&&(t.strokeColor=De(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),o=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||o)}update(t,e){this.isEnabled(t)&&(Re(t.fillColor,e),Re(t.strokeColor,e))}}async function hi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new ci(t.pluginManager,e)))})}var di;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(di||(di={}));const ui=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class pi{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:V(e.r),g:V(e.g),b:V(e.b)}}parseString(t){if(!this.accepts(t))return;const e=ui.exec(t);return e?{a:e.length>4?Y(e[di.a]):1,b:parseInt(e[di.b]??"0",10),g:parseInt(e[di.g]??"0",10),r:parseInt(e[di.r]??"0",10)}:void 0}}async function gi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new pi)})}class fi extends Ht{destroy=kt.none;load(t){super.load(t),_(t)||Ft(this,"destroy",t.destroy)}}class mi extends ie{animation=new fi;value=3;load(t){if(super.load(t),_(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class yi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const s=i.animation;s.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/n*e.retina.reduceFactor,s.sync||(t.size.velocity*=F()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){Ut(t,"size",mi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=Qe(i,e),t.retina.sizeAnimationSpeed=V(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&Ke(t,t.size,!0,t.options.size.animation.destroy,e)}}async function vi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new yi(t)))})}async function wi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(async t=>{await Promise.all([Fe(t),We(t),Ne(t),gi(t),Ye(t),Ae(t),hi(t),ei(t),li(t),vi(t)])})}const Pi={name:"Confetti",background:"#1a1a2e",blendMode:"source-over",colors:{fill:{enable:!0,value:["#FF0044","#FF4400","#FFCC00","#00CC44","#00AAFF","#AA00FF","#FF00AA","#00FFCC","#FF6600","#FFFFFF"]}}};async function bi(t){await t.pluginManager.register(t=>{t.pluginManager.addPalette("confetti",Pi)})}class xi{enable=!1;mode=[];load(t){_(t)||(Ft(this,"enable",t.enable),Ft(this,"mode",t.mode))}}var Mi,Ci,zi;!function(t){t.circle="circle",t.rectangle="rectangle"}(Mi||(Mi={}));class ki{enable=!1;mode=[];selectors=[];type=Mi.circle;load(t){_(t)||(Ft(this,"selectors",t.selectors),Ft(this,"enable",t.enable),Ft(this,"mode",t.mode),Ft(this,"type",t.type))}}class Si{enable=!1;mode=[];load(t){_(t)||(Ft(this,"enable",t.enable),Ft(this,"mode",t.mode))}}class Ii{onClick=new xi;onDiv=new ki;onHover=new Si;load(t){if(_(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=nt(e,t=>{const e=new ki;return e.load(t),e})),this.onHover.load(t.onHover)}}!function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(Ci||(Ci={}));class Di{#u;#p;constructor(t,e){this.#p=t,this.#u=e}load(t){if(_(t))return;if(!this.#u)return;const e=this.#p.interactors?.get(this.#u);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class Oi{detectsOn=Ci.window;events=new Ii;modes;constructor(t,e){this.modes=new Di(t,e)}load(t){if(_(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class _i{id="interactivity";#p;constructor(t){this.#p=t}async getPlugin(t){const{InteractivityPluginInstance:e}=await Promise.resolve().then(function(){return qs});return new e(this.#p,t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let s=e.interactivity;s?.load||(e.interactivity=s=new Oi(this.#p,t)),s.load(i?.interactivity);const n=this.#p.interactors?.get(t);if(n)for(const t of n)t.loadOptions&&t.loadOptions(e,i)}loadParticlesOptions(t,e,i){i?.interactivity&&(e.interactivity=st({},i.interactivity));const s=this.#p.interactors?.get(t);if(s)for(const t of s)t.loadParticlesOptions?.(e,i)}needsPlugin(){return!0}}!function(t){t.external="external",t.particles="particles"}(zi||(zi={}));class Ri{type=zi.external;container;constructor(t){this.container=t}}const Li="pointerdown",Ei="pointerup",Ti="pointerleave",Fi="pointermove",Bi="touchstart",Ai="touchend",Ui="touchmove",Vi="touchcancel";class Hi{drawVector=!0;maxDragDistance=0;maxParticles=200;minParticles=5;particleFactor=.2;spread=30;vectorColor="#ffffff80";velocityFactor=.5;load(t){t&&(Ft(this,"spread",t.spread),Ft(this,"velocityFactor",t.velocityFactor),Ft(this,"particleFactor",t.particleFactor),Ft(this,"minParticles",t.minParticles),Ft(this,"maxParticles",t.maxParticles),Ft(this,"maxDragDistance",t.maxDragDistance),Ft(this,"drawVector",t.drawVector),Ft(this,"vectorColor",t.vectorColor))}}var $i;!function(t){t[t.idle=0]="idle",t[t.aiming=1]="aiming",t[t.fired=2]="fired"}($i||($i={}));const Wi="cannon";class Gi extends Ri{maxDistance=0;#P;#b={origin:z.origin,current:z.origin,active:!1};#x=void 0;#M=$i.idle;constructor(t){super(t)}clear(t,e){}init(){const t=this.container.actualOptions.interactivity?.modes.cannon??new Hi;this.#P={spread:N(t.spread),maxDragDistance:t.maxDragDistance,velocityFactor:t.velocityFactor,particleFactor:t.particleFactor,minParticles:t.minParticles,maxParticles:t.maxParticles,drawVector:t.drawVector,vectorColor:t.vectorColor}}interact(t,e){const i=t.mouse,s=i.position,n=i.clicking,a=i.downPosition;n&&a&&a!==this.#x&&this.#M===$i.idle&&(this.#x=a,this.#b={origin:{x:a.x,y:a.y},current:{x:a.x,y:a.y},active:!0},this.#M=$i.aiming),this.#M===$i.aiming&&s&&(this.#b.current={x:s.x,y:s.y},this.#C()),n||this.#M!==$i.aiming||(this.#b.active=!1,this.#z(),this.#M=$i.idle)}isEnabled(t){const e=this.container,i=e.actualOptions.interactivity?.events;if(!i?.onClick.enable)return!1;const s=i.onClick.mode;return!!(Array.isArray(s)?s.includes(Wi):s===Wi)&&(this.#M!==$i.idle||t.mouse.clicking)}loadModeOptions(t,...e){Ut(t,"cannon",Hi,...e)}reset(t,e){}#C(){this.container.canvas.render.draw(t=>{const e=this.#P;if(!e)return;const{origin:i,current:s}=this.#b,n=this.container.retina.pixelRatio,a=q(i,s),o=e.maxDragDistance>0?Math.min(a,e.maxDragDistance*n):a,r=a>0?o/a:0,l=i.x+(s.x-i.x)*r,c=i.y+(s.y-i.y)*r;t.save(),t.strokeStyle=e.vectorColor,t.lineWidth=2*n,t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(l,c),t.stroke();const h=Math.max(4,.05*o)*n;t.beginPath(),t.arc(i.x,i.y,h,0,p),t.strokeStyle=e.vectorColor,t.lineWidth=2*n,t.stroke(),t.restore()})}#z(){const t=this.#P;if(!t)return;const{origin:e,current:i}=this.#b,s=this.container.retina.pixelRatio,n=q(e,i),a=t.maxDragDistance>0?Math.min(n,t.maxDragDistance*s):n;if(a<2)return;const o=1/s,r=(d=i.x,u=i.y,p=e.x,g=e.y,Math.atan2(g-u,p-d)),l=a*o*t.velocityFactor,c=Math.min(t.maxParticles,Math.max(t.minParticles,Math.round(a*t.particleFactor))),h=180/Math.PI;var d,u,p,g;for(let i=0;i<c;i++){const i=r+B(-t.spread,t.spread),s=B(.25*l,l);this.container.particles.addParticle(e,{move:{enable:!0,speed:s,direction:i*h}})}}}async function ji(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{!function(t){if(!t.pluginManager.addInteractor)throw new Error("tsParticles Interactivity Plugin is not loaded")}(t),t.pluginManager.addInteractor?.("externalCannon",t=>Promise.resolve(new Gi(t)))})}class qi extends te{sync=!1;load(t){_(t)||(super.load(t),Ft(this,"sync",t.sync))}}class Ni extends te{sync=!1;load(t){_(t)||(super.load(t),Ft(this,"sync",t.sync))}}class Xi{count=0;delay=new qi;duration=new Ni;load(t){_(t)||(Ft(this,"count",t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Yi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.life;if(!i)return;const s=i.delay.sync?1:F(),n=i.duration.sync?1:F();t.life={delay:e.retina.reduceFactor?V(i.delay.value)*s/e.retina.reduceFactor*o:0,delayTime:0,duration:e.retina.reduceFactor?V(i.duration.value)*n/e.retina.reduceFactor*o:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.spawning=t.life.delay>0}isEnabled(t){return!t.destroyed}loadOptions(t,...e){Ut(t,"life",Xi,...e)}update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;const s=t.life;let n=!1;if(t.spawning){if(s.delayTime+=e.value,!(s.delayTime>=t.life.delay))return;n=!0,t.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration)return;if(n?s.time=0:s.time+=e.value,s.time<s.duration)return;if(s.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const a=W(0,i.width),r=W(0,i.width);t.position.x=U(a),t.position.y=U(r),t.spawning=!0,s.delayTime=0,s.time=0,t.reset();const l=t.options.life;l&&(s.delay=V(l.delay.value)*o,s.duration=V(l.duration.value)*o)}(t,e,this.#u.canvas.size)}}async function Qi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("life",t=>Promise.resolve(new Yi(t)))})}class Ki{factor=4;value=!0;load(t){_(t)||(Ft(this,"factor",t.factor),Ft(this,"value",t.value))}}class Zi{disable=!0;reduce=new Ki;load(t){_(t)||(Ft(this,"disable",t.disable),this.reduce.load(t.reduce))}}class Ji{id="motion";async getPlugin(t){const{MotionPluginInstance:e}=await Promise.resolve().then(function(){return Ns});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let s=e.motion;s?.load||(e.motion=s=new Zi),s.load(i?.motion)}needsPlugin(){return!0}}async function ts(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Ji)})}var es;!function(t){t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(es||(es={}));class is{enable=!1;value=0;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"value",t.value))}}class ss{backColor;darken=new is;enable=!1;enlighten=new is;mode=es.vertical;speed=25;load(t){_(t)||(void 0!==t.backColor&&(this.backColor=Gt.create(this.backColor,t.backColor)),this.darken.load(t.darken),Ft(this,"enable",t.enable),this.enlighten.load(t.enlighten),Ft(this,"mode",t.mode),Bt(this,"speed",t.speed))}}class ns{#p;constructor(t){this.#p=t}getTransformValues(t){const e=t.roll?.enable&&t.roll,i=e&&e.horizontal,s=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:s?Math.sin(e.angle):void 0}}init(t){!function(t,e){const i=e.options.roll;if(i?.enable)if(e.roll={enable:i.enable,horizontal:i.mode===es.horizontal||i.mode===es.both,vertical:i.mode===es.vertical||i.mode===es.both,angle:F()*p,speed:V(i.speed)/360},i.backColor)e.backColor=Me(t,i.backColor);else if(i.darken.enable&&i.enlighten.enable){const t=F()>=a?zt.darken:zt.enlighten;e.roll.alter={type:t,value:V(t===zt.darken?i.darken.value:i.enlighten.value)}}else i.darken.enable?e.roll.alter={type:zt.darken,value:V(i.darken.value)}:i.enlighten.enable&&(e.roll.alter={type:zt.enlighten,value:V(i.enlighten.value)});else e.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}(this.#p,t)}isEnabled(t){const e=t.options.roll;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){Ut(t,"roll",ss,...e)}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.options.roll,s=t.roll;if(!s||!i?.enable)return;const n=s.speed*e.factor,a=p;s.angle+=n,s.angle>a&&(s.angle-=a)}(t,e)}}async function as(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("roll",()=>Promise.resolve(new ns(t.pluginManager)))})}class os{decay=0;enable=!1;speed=0;sync=!1;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Ft(this,"sync",t.sync))}}class rs extends te{animation=new os;direction=bt.clockwise;path=!1;load(t){_(t)||(super.load(t),Ft(this,"direction",t.direction),this.animation.load(t.animation),Ft(this,"path",t.path))}}class ls{#u;constructor(t){this.#u=t}init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:N(V(e.value)),min:0,max:p},t.pathRotation=e.path;let i=e.direction;if(i===bt.random){i=Math.floor(2*F())>0?bt.counterClockwise:bt.clockwise}switch(i){case bt.counterClockwise:case"counterClockwise":t.rotate.status=Ot.decreasing;break;case bt.clockwise:t.rotate.status=Ot.increasing}const s=e.animation;s.enable&&(t.rotate.decay=1-V(s.decay),t.rotate.velocity=V(s.speed)/360*this.#u.retina.reduceFactor,s.sync||(t.rotate.velocity*=F())),t.rotation=t.rotate.value}isEnabled(t){const e=t.options.rotate;return!!e&&(!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path))}loadOptions(t,...e){Ut(t,"rotate",rs,...e)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(Ke(t,t.rotate,!1,kt.none,e),t.rotation=t.rotate.value))}}async function cs(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("rotate",t=>Promise.resolve(new ls(t)))})}class hs{draw(t){!function(t){const{context:e,radius:i}=t,s=i*Math.SQRT1_2,n=2*s;e.rect(-s,-s,n,n)}(t)}getSidesCount(){return 4}}async function ds(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["edge","square"],()=>Promise.resolve(new hs))})}var us;!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(us||(us={}));class ps{decay=0;enable=!1;speed=0;sync=!1;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Ft(this,"sync",t.sync))}}class gs extends te{animation=new ps;direction=us.clockwise;enable=!1;load(t){super.load(t),_(t)||(this.animation.load(t.animation),Ft(this,"direction",t.direction),Ft(this,"enable",t.enable))}}class fs{#u;constructor(t){this.#u=t}getTransformValues(t){const e=t.tilt?.enable&&t.tilt;return{b:e?Math.cos(e.value)*e.cosDirection:void 0,c:e?Math.sin(e.value)*e.sinDirection:void 0}}init(t){const e=t.options.tilt;if(!e)return;t.tilt={enable:e.enable,value:N(V(e.value)),sinDirection:F()>=a?1:-1,cosDirection:F()>=a?1:-1,min:0,max:p};let i=e.direction;if(i===us.random){i=Math.floor(2*F())>0?us.counterClockwise:us.clockwise}switch(i){case us.counterClockwise:case"counterClockwise":t.tilt.status=Ot.decreasing;break;case us.clockwise:t.tilt.status=Ot.increasing}const s=t.options.tilt?.animation;s?.enable&&(t.tilt.decay=1-V(s.decay),t.tilt.velocity=V(s.speed)/360*this.#u.retina.reduceFactor,s.sync||(t.tilt.velocity*=F()))}isEnabled(t){const e=t.options.tilt?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){Ut(t,"tilt",gs,...e)}update(t,e){this.isEnabled(t)&&t.tilt&&Ke(t,t.tilt,!1,kt.none,e)}}async function ms(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("tilt",t=>Promise.resolve(new fs(t)))})}class ys{angle=50;move=10;load(t){_(t)||(Bt(this,"angle",t.angle),Bt(this,"move",t.move))}}class vs{distance=5;enable=!1;speed=new ys;load(t){if(!_(t)&&(Bt(this,"distance",t.distance),Ft(this,"enable",t.enable),void 0!==t.speed))if(I(t.speed))this.speed.load({angle:t.speed});else{const e=t.speed;"min"in e?this.speed.load({angle:e}):this.speed.load(t.speed)}}}class ws{#u;constructor(t){this.#u=t}init(t){const e=t.options.wobble;t.wobble=e?.enable?{angle:F()*p,angleSpeed:V(e.speed.angle)/360,moveSpeed:V(e.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=V(e?.distance??0)*this.#u.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.options.wobble?.enable}loadOptions(t,...e){Ut(t,"wobble",vs,...e)}update(t,e){this.isEnabled(t)&&function(t,e,i){const{wobble:s}=e.options,{wobble:n}=e;if(!s?.enable||!n)return;const a=t.retina.reduceFactor,o=n.angleSpeed*i.factor*a,r=n.moveSpeed*i.factor*a*(e.retina.wobbleDistance??0)/16.666666666666668,l=p,{position:c}=e;n.angle+=o,n.angle>l&&(n.angle-=l),c.x+=r*Math.cos(n.angle),c.y+=r*Math.abs(Math.sin(n.angle))}(this.#u,t,e)}}async function Ps(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("wobble",t=>Promise.resolve(new ws(t)))})}const bs={palette:"confetti",background:{color:{value:""}},fullScreen:{enable:!0,zIndex:100},particles:{number:{value:0,density:{enable:!0}},shape:{type:["square","circle"]},size:{value:{min:3,max:5}},opacity:{value:{min:0,max:1},animation:{enable:!0,startValue:"max",destroy:"min",speed:.1}},move:{enable:!0,speed:1,decay:.1,gravity:{enable:!0},outModes:{default:"destroy",top:"none"}},rotate:{value:{min:0,max:360},direction:"random",move:!0,animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:30},enlighten:{enable:!0,value:30},enable:!0,mode:"both",speed:{min:15,max:25}},wobble:{distance:30,enable:!0,move:!0,speed:{min:-15,max:15}}},interactivity:{events:{onClick:{enable:!0,mode:"cannon"}}},motion:{disable:!0}},xs=["confettiCannon","confetti-cannon"];async function Ms(t){await t.pluginManager.register(async t=>{await Promise.all([wi(t),bi(t),(async()=>{await async function(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{const e=t,i=e.pluginManager;i.addPlugin(new _i(i)),i.initializers.interactors??=new Map,i.interactors??=new Map,i.addInteractor=(t,e)=>{i.initializers.interactors??=new Map,i.initializers.interactors.set(t,e)},i.getInteractors=async(t,e=!1)=>(i.interactors??=new Map,i.initializers.interactors??=new Map,ht(t,i.interactors,i.initializers.interactors,e)),i.setOnClickHandler=t=>{const{items:i}=e;if(!i.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");i.forEach(e=>{const i=e;i.addClickHandler?.(t)})}})}(t),await ji(t)})(),ds(t),ts(t),Ps(t),as(t),cs(t),ms(t),Qi(t)]),xs.forEach(e=>{t.pluginManager.addPreset(e,bs,!1)})})}const Cs=globalThis;Cs.loadConfettiCannonPreset=Ms,Cs.tsParticles=Le;function zs(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class ks{#k;#S;#I;#D;#O;#u;#_;#R;#L;#E;#T;#F;#B;#A;#p;#U;#V;#H={};#$=[void 0,void 0];#W={};constructor(t,e,i){this.#p=t,this.#u=e,this.#S=i,this.#_=null,this.#V=[],this.#U=[],this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#E=[],this.#T=[],this.#F=[],this.#A=[],this.#B=[]}get settings(){return this.#R}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}clear(){let t=!1;for(const e of this.#k)if(t=e.canvasClear?.()??!1,t)break;t||this.canvasClear()}destroy(){this.stop(),this.#V=[],this.#U=[],this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#E=[],this.#T=[],this.#F=[],this.#A=[],this.#B=[]}draw(t){const e=this.#_;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,o]=this.#G(t);if(a??=s,o??=n,!a&&!o)return;const r=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#W,g=this.#H,f=a?Se(a,r.hdr,h*d):void 0,m=o?Se(o,r.hdr,u*d):f;p.a=p.b=p.c=p.d=void 0,g.fill=f,g.stroke=m,this.draw(s=>{for(const i of this.#T)i.drawParticleSetup?.(s,t,e);this.#j(s,t,i,d,g,p),this.#q({container:r,context:s,particle:t,delta:e,colorStyles:g,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#N(t);for(const i of this.#E)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#L)this.#X(i,s,t,e)})}drawParticles(t){const{particles:e}=this.#u;this.clear(),e.update(t),this.draw(i=>{for(const e of this.#A)e.drawSettingsSetup?.(i,t);for(const e of this.#F)e.draw?.(i,t);e.drawParticles(t);for(const e of this.#D)e.clearDraw?.(i,t);for(const e of this.#B)e.drawSettingsCleanup?.(i,t)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#T=[],this.#E=[],this.#F=[],this.#A=[],this.#B=[];for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#O.push(t),t.canvasClear&&this.#k.push(t),t.canvasPaint&&this.#I.push(t),t.drawParticle&&this.#L.push(t),t.drawParticleSetup&&this.#T.push(t),t.drawParticleCleanup&&this.#E.push(t),t.draw&&this.#F.push(t),t.drawSettingsSetup&&this.#A.push(t),t.drawSettingsCleanup&&this.#B.push(t),t.clearDraw&&this.#D.push(t)}initUpdaters(){this.#V=[],this.#U=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#U.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#V.push(t)}paint(){let t=!1;for(const e of this.#I)if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,r.x,r.y,this.#S.size.width,this.#S.size.height),i.globalAlpha=s})}setContext(t){this.#_=t,this.#_&&(this.#_.globalCompositeOperation=i)}setContextSettings(t){this.#R=t}stop(){this.draw(t=>{t.clearRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}#N(t){for(const e of this.#U)e.afterDraw?.(t)}#j(t,e,i,s,n,a){for(const o of this.#V){if(o.getColorStyles){const{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){const t=o.getTransformValues(e);for(const e in t)zs(a,t,e)}o.beforeDraw?.(e)}}#Y(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#Q(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#q(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:o,opacity:r,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const g=!!s.fillEnabled,f=s.strokeWidth??0;i.lineWidth=f,a.stroke&&(i.strokeStyle=a.stroke);const m={context:i,particle:s,radius:o,drawRadius:1*o,opacity:r,delta:n,pixelRatio:e.retina.pixelRatio,fill:g,stroke:f>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(m);const y=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#Q(y,m),this.#K(v,m),this.#Z(v,m),this.#J(v,m),this.#Y(y,m),i.resetTransform()}#X(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#Z(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#J(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#K(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#G(t){let e,i;for(const s of this.#O)if(!e&&s.particleFillColor&&(e=Me(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Me(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#$[0]=e,this.#$[1]=i,this.#$}}const Ss=new WeakMap;function Is(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Ds{domElement;render;renderCanvas;size;zoom=1;#u;#tt;#et;#it;#p;#st;#nt;#at;#ot;constructor(t,e){this.#p=t,this.#u=e,this.render=new ks(t,e,this),this.#at={height:0,width:0};const i=e.retina.pixelRatio,s=this.#at;this.size={height:s.height*i,width:s.width*i},this.#tt=!1,this.#nt=[],this.#st="none"}get#rt(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#tt){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#lt();this.render.destroy(),this.#nt=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#ot?this.#ot:{x:e*a/t,y:i*a/t}}init(){this.#ct(t=>{t.disconnect()}),this.#et=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#ht()}),this.resize(),this.#dt(),this.initBackground(),this.#ct(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#ut(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=be(this.#p,e.color);s.backgroundColor=n?ke(n,t.actualOptions.hdr,e.opacity):"",s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#nt=[];for(const t of this.#u.plugins)t.resize&&this.#nt.push(t)}loadCanvas(t){this.#tt&&this.domElement&&this.domElement.remove();const i=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=i,this.#tt=!!i&&"true"===i.dataset[e],this.renderCanvas=i?(t=>{const e=Ss.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const e=t.transferControlToOffscreen();return Ss.set(t,e),e}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(i):t;const s=this.domElement;s&&(s.ariaHidden="true",this.#it=function(t){const e=Z().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||_(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(s.style));const n=this.#at,a=this.renderCanvas;s?(n.height=s.offsetHeight,n.width=s.offsetWidth):(n.height=a.height,n.width=a.width);const o=this.#u.retina.pixelRatio,r=this.size;a.height=r.height=n.height*o,a.width=r.width=n.width*o}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#at,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,o={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&o.height===i.height&&o.width===i.width)return!1;const r={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=o.width,i.height=l.height=o.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/r.width,height:s.height/r.height}),!0}setPointerEvents(t){this.domElement&&(this.#st=t,this.#ht())}setZoom(t,e){this.zoom=t,this.#ot=e}stop(){this.#ct(t=>{t.disconnect()}),this.#et=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#pt(),e&&await t.refresh()}#pt(){for(const t of this.#nt)t.resize?.()}#ut(){const t=this.#u.actualOptions.hdr&&J("(color-gamut: p3)")?.matches&&J("(dynamic-range: high)")?.matches;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...t?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});const e=this.renderCanvas;e&&this.render.setContext(e.getContext("2d",this.render.settings))}#dt(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#rt?this.#gt():this.#lt();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#ht(){const t=this.domElement;if(!t)return;this.#ct(t=>{t.disconnect()}),this.#dt(),this.initBackground();const e=this.#st;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#ct(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#lt(){const t=this.domElement,e=this.#it;t&&e&&Is(t,e,!0)}#ct(t){this.#et&&t(this.#et)}#gt(){const t=this.domElement;t&&Is(t,function(t){if(rt!==t||!lt){rt=t;const e=Z().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}lt=e}return lt}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Os{#u;#ft;#mt;#yt;constructor(t){this.#u=t,this.#ft={visibilityChange:()=>{this.#vt()},resize:()=>{this.#wt()}}}addListeners(){this.#Pt(!0)}removeListeners(){this.#Pt(!1)}#vt(){const t=this.#u;t.actualOptions.pauseOnBlur&&(Z().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#wt(){this.#yt&&(clearTimeout(this.#yt),this.#yt=void 0);const t=async()=>{const t=this.#u.canvas;await t.windowResize()};this.#yt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*o)}#Pt(t){const e=this.#ft;this.#bt(t),ct(document,s,e.visibilityChange,t,!1)}#bt(t){const e=this.#ft,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void ct(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#mt&&!t?(s&&this.#mt.unobserve(s),this.#mt.disconnect(),this.#mt=void 0):!this.#mt&&t&&s&&(this.#mt=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this.#wt()}),this.#mt.observe(s))}}function _s(t){if(e=t.outMode,i=t.checkModes,!(e===i||O(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Rs(t,e){const i=t%e;return i<0?i+e:i}function Ls(t,e,i,s){const n=ye(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=at(n.effect.type,t.id,a),t.shape=at(n.shape.type,t.id,a);const o=n.effect,r=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=at(e,t.id,a);i&&(t.effect=i)}o.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=at(e,t.id,a);i&&(t.shape=i)}r.load(s.shape)}}if(t.effect===u){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(F()*i.length)]}if(t.shape===u){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(F()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.effect,o,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.shape,r,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class Es{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#xt={fillOpacity:1,opacity:1,strokeOpacity:1};#Mt=C.origin;#Ct={sin:0,cos:0};#zt={a:1,b:0,c:0,d:1};#u;#p;constructor(t,e){this.#p=t,this.#u=e}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(pt.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#kt(this.bubble.color??Ie(this.fillColor))}getMass(){return this.getRadius()**2*Math.PI*a}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=this.bubble.opacity??V(this.opacity?.value??1),s=this.fillOpacity??1,n=this.strokeOpacity??1;return this.#xt.fillOpacity=i*s*e,this.#xt.opacity=i*e,this.#xt.strokeOpacity=i*n*e,this.#xt}getPosition(){return this.#Mt.x=this.position.x+this.offset.x,this.#Mt.y=this.position.y+this.offset.y,this.#Mt.z=this.position.z,this.#Mt}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this.#Ct.sin=Math.sin(t),this.#Ct.cos=Math.cos(t),this.#Ct}getStrokeColor(){return this.#kt(this.bubble.color??Ie(this.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#zt.a=e.cos*(t.a??l),this.#zt.b=i?e.sin*(t.b??1):t.b??c,this.#zt.c=i?-e.sin*(t.c??1):t.c??h,this.#zt.d=e.cos*(t.d??d),this.#zt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=It.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=Ls(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#St(e),this.initialVelocity=this.#It(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#Dt({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#Dt({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Rs(t,p);return e>=Math.PI*a&&e<3*Math.PI*a}if(this.roll.horizontal){const e=Rs(t+Math.PI*a,p);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Rs(t,p);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#Ot(t,e){let i=0,s=t?C.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,o=this.options.move.outModes,r=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return C.create(i.x,i.y,e)}const t=X({size:l,position:s}),c=C.create(t.x,t.y,e);this.#_t(c,r,o.left??o.default),this.#_t(c,r,o.right??o.default),this.#Rt(c,r,o.top??o.default),this.#Rt(c,r,o.bottom??o.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#It(){const t=this.options.move,e=function(t){const e=z.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===x.inside||t.direction===x.outside)return e;const i=N(V(t.angle.value)),s=N(V(t.angle.offset)),n={left:s-i*a,right:s+i*a};return t.straight||(e.angle+=U(W(n.left,n.right))),t.random&&"number"==typeof t.speed&&(e.length*=F()),e}#_t(t,e,i){_s({outMode:i,checkModes:[Ct.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#Rt(t,e,i){_s({outMode:i,checkModes:[Ct.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#Lt(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===Ct.bounce;return t===Q.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===Q.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===Q.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===Q.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#Et(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#Dt(t){const e=this.#Lt(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,o=n?.isInsideCanvas;if(!a&&!o)return e;const r=this.#Et(t.direction,t.outMode),l=a?this.#Tt(a(r),"shape"):void 0,c=o?this.#Tt(o(r),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#kt(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===zt.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#St(t){const e=this.#u,i=Math.floor(V(this.options.zIndex.value)),s=this.#Ot(t,A(i,0,e.zLayers));if(!s)throw new Error("a valid position cannot be found for particle");this.position=s,this.initialPosition=this.position.copy();const n=e.canvas.size;switch(this.moveCenter={...ot(this.options.move.center,n),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(I(t))return N(t);switch(t){case x.top:return-Math.PI*a;case x.topRight:return-Math.PI*b;case x.right:return 0;case x.bottomRight:return Math.PI*b;case x.bottom:return Math.PI*a;case x.bottomLeft:return.75*Math.PI;case x.left:return Math.PI;case x.topLeft:return.75*-Math.PI;case x.inside:return Math.atan2(i.y-e.y,i.x-e.x);case x.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return F()*p}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case x.inside:this.outType=It.inside;break;case x.outside:this.outType=It.outside}this.offset=z.origin}#Tt(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class Ts{#Ft;#Bt=new Map;#At=[];#Ut;#Vt;#Ht=[];#$t;constructor(t){this.#Ft=t,this.#Ut=0,this.#$t=0}clear(){this.#Bt.clear();const t=this.#Vt;t&&(this.#Ft=t),this.#Vt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#Wt(e,i);this.#Bt.has(s)||this.#Bt.set(s,[]),this.#Bt.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Gt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Ft),a=Math.floor(s.maxX/this.#Ft),o=Math.floor(s.minY/this.#Ft),r=Math.floor(s.maxY/this.#Ft);for(let s=n;s<=a;s++)for(let n=o;n<=r;n++){const a=`${s}_${n}`,o=this.#Bt.get(a);if(o)for(const s of o)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this.#jt(t.x,t.y,e),a=this.query(n,i,s);return this.#qt(),a}queryRectangle(t,e,i,s=[]){const n=this.#Nt(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this.#qt(),a}setCellSize(t){this.#Vt=t}#jt(t,e,i){return(this.#At[this.#Ut++]??=new Rt(t,e,i)).reset(t,e,i)}#Nt(t,e,i,s){return(this.#Ht[this.#$t++]??=new Lt(t,e,i,s)).reset(t,e,i,s)}#Wt(t,e){return`${Math.floor(t/this.#Ft)}_${Math.floor(e/this.#Ft)}`}#Gt(t){if(t instanceof Rt){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Lt){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#qt(){this.#Ut=0,this.#$t=0}}class Fs{checkParticlePositionPlugins;grid;#Xt;#u;#Yt;#Qt;#Kt;#Zt;#Jt;#te;#p;#ee;#ie;#se;#ne;#ae;#oe;constructor(t,e){this.#p=t,this.#u=e,this.#Kt=0,this.#Xt=[],this.#ee=[],this.#Qt=0,this.#Yt=new Map,this.#Zt=new Map,this.#oe=this.#re(this.#u.zLayers),this.grid=new Ts(100),this.checkParticlePositionPlugins=[],this.#Jt=[],this.#te=[],this.#se=[],this.#ie=[],this.#ae=[]}get count(){return this.#Xt.length}addParticle(t,e,i,s){const n=this.#u.actualOptions.particles.number.limit.mode,a=void 0===i?this.#Qt:this.#Yt.get(i)??this.#Qt,o=this.count;if(a>0)switch(n){case Mt.delete:{const t=o+1-a;t>0&&this.removeQuantity(t);break}case Mt.wait:if(o>=a)return}try{const n=this.#ee.pop()??new Es(this.#p,this.#u);n.init(this.#Kt,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#Xt.push(n),this.#le(n),this.#Kt++,this.#u.dispatchEvent(pt.particleAdded,{particle:n}),n):void this.#ee.push(n)}catch(t){yt().warning(`error adding particle: ${t}`)}}clear(){this.#Xt=[],this.#Zt.clear(),this.#ce(this.#u.zLayers)}destroy(){this.#Xt=[],this.#ee.length=0,this.#Zt.clear(),this.#oe=[],this.checkParticlePositionPlugins=[],this.#Jt=[],this.#te=[],this.#se=[],this.#ie=[],this.#ae=[]}drawParticles(t){for(let e=this.#oe.length-1;e>=0;e--){const i=this.#oe[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#Xt.filter(t)}find(t){return this.#Xt.find(t)}get(t){return this.#Xt[t]}async init(){const t=this.#u,e=t.actualOptions;this.checkParticlePositionPlugins=[],this.#ae=[],this.#te=[],this.#se=[],this.#Jt=[],this.#ie=[],this.#Zt.clear(),this.#ce(t.zLayers),this.grid=new Ts(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#ae.push(e),e.particleUpdate&&this.#te.push(e),e.postUpdate&&this.#se.push(e),e.particleReset&&this.#Jt.push(e),e.postParticleUpdate&&this.#ie.push(e);await this.#u.initDrawersAndUpdaters();for(const e of this.#u.effectDrawers.values())await(e.init?.(t));for(const e of this.#u.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#Xt.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this.#he(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=ye(this.#p,this.#u,s);this.#de(n,i,t)}this.#de(t.particles,i)}setResizeFactor(t){this.#ne=t}update(t){this.grid.clear();for(const e of this.#ae)e.update?.(t);const e=this.#ue(t);for(const e of this.#se)e.postUpdate?.(t);if(this.#pe(t,e),e.size)for(const t of e)this.remove(t);this.#ne=void 0}#ge(...t){this.#ee.push(...t)}#de(t,e,i,s){const n=t.number;if(!n.density.enable)return void(void 0===i?this.#Qt=n.limit.value:(s?.number.limit.value??n.limit.value)&&this.#Yt.set(i,s?.number.limit.value??n.limit.value));const a=this.#fe(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#Qt=n.limit.value*a:this.#Yt.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#re(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#me(t){const e=this.#oe.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#fe(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}#le(t){const e=this.#me(t.position.z),i=this.#oe[e];i&&(i.push(t),this.#Zt.set(t.id,e))}#he(t,e,i){const s=this.#Xt[t];return!!s&&(s.group===e&&(this.#Xt.splice(t,1),this.#ye(s),s.destroy(i),this.#u.dispatchEvent(pt.particleRemoved,{particle:s}),this.#ge(s),!0))}#ye(t){const e=this.#Zt.get(t.id)??this.#me(t.position.z),i=this.#oe[e];if(!i)return void this.#Zt.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#Zt.delete(t.id)}#ce(t){const e=Math.max(Math.floor(t),1);if(this.#oe.length===e)for(const t of this.#oe)t.length=0;else this.#oe=this.#re(e)}#ve(t){const e=this.#me(t.position.z),i=this.#Zt.get(t.id);if(void 0===i)return void this.#le(t);if(i===e)return;const s=this.#oe[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#oe[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#Zt.set(t.id,e)}else this.#Zt.set(t.id,e)}#ue(t){const e=new Set,i=this.#ne;for(const s of this.#Xt){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#Jt)t.particleReset?.(s);for(const e of this.#te){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}return e}#pe(t,e){for(const i of this.#Xt)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#ie)e.postParticleUpdate?.(i,t);this.#ve(i)}}}class Bs{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=V(s.gravity.maxSpeed)*i,a.moveDrift=V(s.drift)*i,a.moveSpeed=V(s.speed)*i;const o=a.maxDistance;o.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,o.vertical=void 0===n.vertical?void 0:n.vertical*i}}function As(t){return!t.destroyed}function Us(t,e,...i){const s=new ve(t,e);return Tt(s,...i),s}var Vs=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#we;#Pe;#be={value:0,factor:0};#xe;#Me;#Ce;#ze;#ke;#Se;#Ie;#De;#Oe;#_e;#Re;#p;#Le;#Ee;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#xe=e,this.#Oe=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.#Le=!1,this.#we=0,this.#Ce=0,this.#De=0,this.#ke=!0,this.started=!1,this.destroyed=!1,this.#Re=!0,this.#Ie=0,this.zLayers=100,this.pageHidden=!1,this.#Ee=a,this.#Se=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Bs(this),this.canvas=new Ds(this.#p,this),this.particles=new Fs(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#_e=Us(this.#p,this),this.actualOptions=Us(this.#p,this),this.#ze=new Os(this),this.dispatchEvent(pt.containerBuilt)}get animationStatus(){return!this.#Re&&!this.pageHidden&&As(this)}get options(){return this.#_e}get sourceOptions(){return this.#Ee}addLifeTime(t){this.#De+=t}alive(){return!this.#Ce||this.#De<=this.#Ce}destroy(t=!0){if(As(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#p.clearPlugins(this),this.destroyed=!0,this.#Oe(t),this.dispatchEvent(pt.containerDestroyed)}}dispatchEvent(t,e){this.#xe(t,{container:this,data:e})}draw(t){if(!As(this))return;let e=t;this.#Me=E(t=>{e&&(this.#Ie=void 0,e=!1),this.#Te(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}yt().error(`Export plugin with type ${t} not found`)}async init(){if(!As(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#_e=Us(this.#p,this,this.#Se,this.sourceOptions),this.actualOptions=Us(this.#p,this,this.#_e),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,hdr:n,smooth:a,zLayers:r}=this.actualOptions;this.hdr=n,this.zLayers=r,this.#Ce=V(i)*o,this.#we=V(e)*o,this.#De=0,this.fpsLimit=s>0?s:120,this.#Le=a;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(pt.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(pt.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(As(this)&&(void 0!==this.#Me&&(t=this.#Me,T(t),this.#Me=void 0),!this.#Re)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Re=!0),this.dispatchEvent(pt.containerPaused)}}play(t){if(!As(this))return;const e=this.#Re||t;if(!this.#ke||this.actualOptions.autoPlay){if(this.#Re&&(this.#Re=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(pt.containerPlay),this.draw(e??!1)}else this.#ke=!1}async refresh(){if(As(this))return this.stop(),this.start()}async reset(t){if(As(this))return this.#Se=t,this.#Ee=t,this.#_e=Us(this.#p,this,this.#Se,this.sourceOptions),this.actualOptions=Us(this.#p,this,this.#_e),this.refresh()}async start(){As(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this.#ze.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(pt.containerStarted),this.play(),t()};this.#Pe=setTimeout(()=>{e()},this.#we)}))}stop(){if(As(this)&&this.started){this.#Pe&&(clearTimeout(this.#Pe),this.#Pe=void 0),this.#ke=!0,this.started=!1,this.#ze.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#Ee=this.#_e,this.dispatchEvent(pt.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#Te(t){try{if(!this.#Le&&void 0!==this.#Ie&&t<this.#Ie+o/this.fpsLimit)return void this.draw(!1);if(this.#Ie??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/o}(this.#be,t-this.#Ie,this.fpsLimit,this.#Le),this.addLifeTime(this.#be.value),this.#Ie=t,this.#be.value>o)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#be),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){yt().error("error in animation loop",t)}}}});var Hs=Object.freeze({__proto__:null,BlendPluginInstance:class{#u;#Fe;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??i,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#Fe&&(t.globalCompositeOperation=this.#Fe)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#Fe=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function $s(t,e,i,s,n,a,o){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=A(t.velocity.x,-1,1),t.velocity.y=A(t.velocity.y,-1,1));t.lastPathTime-=n}(t,o);const r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*o.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}var Ws=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-V(e.decay),t.pathDelay=V(s.delay.value)*o,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:V(i.acceleration),inverse:i.inverse},function(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=q(e.getPosition(),n),o=V(i.acceleration);e.retina.spinAcceleration=o*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?bt.clockwise:bt.counterClockwise,angle:F()*p,radius:a,acceleration:e.retina.spinAcceleration}}(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,n=function(t){return t.slow.inRange?t.slow.factor:1}(t),o=s.retina.reduceFactor,r=t.retina.moveSpeed,l=t.retina.moveDrift,c=t.size.max,h=r*(i.size?t.getRadius()/c:1)*n*(e.factor||1)*a,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const n=e.spin.direction===bt.clockwise,o={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*o.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*o.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const r=Math.max(t.canvas.size.width,t.canvas.size.height),l=r*a;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(s,t,h,o):$s(t,i,h,d,l,o,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=G(e,t.position),n=Math.abs(i),o=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(!l&&!c)return;if((l&&n>=l||c&&o>=c)&&!t.misplaced)t.misplaced=!!l&&n>l||!!c&&o>c,l&&(t.velocity.x=t.velocity.y*a-t.velocity.x),c&&(t.velocity.y=t.velocity.x*a-t.velocity.y);else if((!l||n<l)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-F()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-F())}}(t)}preInit(){return this.#Be()}redrawInit(){return this.#Be()}update(){for(const t of this.pathGenerators.values())t.update()}async#Be(){const t=await(this.#p.getPathGenerators?.(this.#u,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});class Gs{#Ae=!0;#Ue;#u;#ft;#Ve;#He;constructor(t,e){this.#u=t,this.#Ue=[],this.#Ve=e,this.#He=new Map,this.#ft={mouseDown:()=>{this.#$e()},mouseLeave:()=>{this.#We()},mouseMove:t=>{this.#Ge(t)},mouseUp:t=>{this.#je(t)},touchStart:t=>{this.#qe(t)},touchMove:t=>{this.#Ge(t)},touchEnd:t=>{this.#Ne(t)},touchCancel:t=>{this.#Ne(t)},touchEndClick:t=>{this.#Xe(t)},visibilityChange:()=>{this.#vt()}}}addListeners(){this.#Pt(!0)}init(){this.#Ue.length=0;for(const t of this.#u.plugins.filter(t=>!!t.clickPositionValid))this.#Ue.push(t)}removeListeners(){this.#Pt(!1)}#Ye(t){const e=this.#u,i=this.#Ve,s=e.actualOptions;if(this.#Ae){const t=i.interactivityData.mouse,e=t.position;if(!e)return;t.clickPosition={...e},t.clickTime=performance.now();const n=s.interactivity?.events.onClick;if(!n?.mode)return;nt(n.mode,t=>{i.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this.#We()},500)}#vt(){this.#We()}#Qe(t){const e=this.#ft,i=this.#u,s=this.#Ve,n=i.actualOptions,a=s.interactivityData.element;if(!a)return;const o=a,r=i.canvas;r.setPointerEvents(o===r.domElement?"initial":"none"),(!t||n.interactivity?.events.onHover.enable||n.interactivity?.events.onClick.enable)&&(ct(a,Fi,e.mouseMove,t),ct(a,Bi,e.touchStart,t),ct(a,Ui,e.touchMove,t),t?n.interactivity?.events.onClick.enable?(ct(a,Ai,e.touchEndClick,t),ct(a,Ei,e.mouseUp,t),ct(a,Li,e.mouseDown,t)):ct(a,Ai,e.touchEnd,t):(ct(a,Ai,e.touchEndClick,t),ct(a,Ei,e.mouseUp,t),ct(a,Li,e.mouseDown,t),ct(a,Ai,e.touchEnd,t)),ct(a,Ti,e.mouseLeave,t),ct(a,Vi,e.touchCancel,t))}#Pt(t){const e=this.#ft,i=this.#u,n=this.#Ve,a=i.actualOptions,o=a.interactivity?.detectsOn,r=i.canvas.domElement;o===Ci.window?n.interactivityData.element=Z():o===Ci.parent&&r?n.interactivityData.element=r.parentElement??r.parentNode:n.interactivityData.element=r,this.#Qe(t),ct(document,s,e.visibilityChange,t,!1)}#$e(){const{interactivityData:t}=this.#Ve,{mouse:e}=t;e.clicking=!0,e.downPosition=e.position}#je(t){const e=this.#u,i=this.#Ve,s=e.actualOptions,{mouse:n}=i.interactivityData;n.inside=!0;let a=!1;const o=n.position;if(o&&s.interactivity?.events.onClick.enable){for(const t of this.#Ue)if(a=t.clickPositionValid?.(o)??!1,a)break;a||this.#Ye(t),n.clicking=!1}}#We(){const{interactivityData:t}=this.#Ve,{mouse:e}=t;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=Ti,e.inside=!1,e.clicking=!1}#Ge(t){const e=this.#u,i=this.#Ve,s=e.actualOptions,n=i.interactivityData,a=e.canvas.domElement;if(!n.element)return;let o;if(n.mouse.inside=!0,t.type.startsWith("pointer")){this.#Ae=!0;const e=t;if(n.element===Z()){if(a){const t=a.getBoundingClientRect();o={x:e.clientX-t.left,y:e.clientY-t.top}}}else if(s.interactivity?.detectsOn===Ci.parent){const t=e.target,i=e.currentTarget;if(a){const s=t.getBoundingClientRect(),n=i.getBoundingClientRect(),r=a.getBoundingClientRect();o={x:e.offsetX+2*s.left-(n.left+r.left),y:e.offsetY+2*s.top-(n.top+r.top)}}else o={x:e.offsetX,y:e.offsetY}}else e.target===a&&(o={x:e.offsetX,y:e.offsetY})}else if(this.#Ae="touchmove"!==t.type,a){const e=t,i=e.touches[e.touches.length-1],s=a.getBoundingClientRect();if(!i)return;o={x:i.clientX-s.left,y:i.clientY-s.top}}const r=e.retina.pixelRatio;o&&(o.x*=r,o.y*=r),n.mouse.position=o,n.status=Fi}#Ne(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.delete(t.identifier);this.#We()}#Xe(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.delete(t.identifier);this.#je(t)}#qe(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.set(t.identifier,performance.now());this.#Ge(t)}}class js{interactivityData;#Ke;#u;#ze;#Ze;#Je;#ti;#ei;#p;constructor(t,e){this.#u=e,this.#p=t,this.#Je=[],this.#Ze=[],this.#ei=[],this.#Ke=new Map,this.#ze=new Gs(e,this),this.interactivityData={mouse:{clicking:!1,inside:!1}},this.#ti=function(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>{this.#ii(t)})}addClickHandler(t){const e=this.#u,i=this.interactivityData;if(e.destroyed)return;const s=i.element;if(!s)return;const n=(i,s,n)=>{if(e.destroyed)return;const a=e.retina.pixelRatio,o={x:s.x*a,y:s.y*a},r=e.particles.grid.queryCircle(o,n*a);t(i,r)};let a=!1,o=!1;this.#Ke.set("click",t=>{if(e.destroyed)return;const i=t,s={x:i.offsetX,y:i.offsetY};n(t,s,1)}),this.#Ke.set(Bi,()=>{e.destroyed||(a=!0,o=!1)}),this.#Ke.set(Ui,()=>{e.destroyed||(o=!0)}),this.#Ke.set(Ai,t=>{if(!e.destroyed){if(a&&!o){const i=t,s=i.touches[i.touches.length-1];if(!s)return;const a=e.canvas.domElement,o=a?a.getBoundingClientRect():void 0,r={x:s.clientX-(o?o.left:0),y:s.clientY-(o?o.top:0)};n(t,r,Math.max(s.radiusX,s.radiusY))}a=!1,o=!1}}),this.#Ke.set(Vi,()=>{e.destroyed||(a=!1,o=!1)});for(const[t,e]of this.#Ke)s.addEventListener(t,e)}addListeners(){this.#ze.addListeners()}clearClickHandlers(){const t=this.#u,e=this.interactivityData;if(!t.destroyed){for(const[t,i]of this.#Ke)e.element?.removeEventListener(t,i);this.#Ke.clear()}}externalInteract(t){for(const e of this.#Ze){const i=this.interactivityData;e.isEnabled(i)&&e.interact(i,t)}}handleClickMode(t){if(this.#u.destroyed)return;const e=this.interactivityData;for(const i of this.#Ze)i.handleClickMode?.(t,e)}init(){this.#ze.init();for(const t of this.#Je){switch(t.type){case zi.external:this.#Ze.push(t);break;case zi.particles:this.#ei.push(t)}t.init()}}async initInteractors(){const t=await(this.#p.getInteractors?.(this.#u,!0));t&&(this.#Je=t,this.#Ze=[],this.#ei=[])}particlesInteract(t,e){const i=this.interactivityData;for(const i of this.#Ze)i.clear(t,e);for(const s of this.#ei)s.isEnabled(t,i)&&s.interact(t,i,e)}removeListeners(){this.#ze.removeListeners()}reset(t){const e=this.interactivityData;for(const i of this.#Ze)i.isEnabled(e)&&i.reset(e,t);for(const i of this.#ei)i.isEnabled(t,e)&&i.reset(e,t)}startObserving(){const t=this.interactivityData;t.element instanceof HTMLElement&&this.#ti&&this.#ti.observe(t.element)}stopObserving(){const t=this.interactivityData;t.element instanceof HTMLElement&&this.#ti&&this.#ti.unobserve(t.element)}updateMaxDistance(){let t=0;for(const e of this.#Je)e.maxDistance>t&&(t=e.maxDistance);const e=this.#u;e.particles.grid.setCellSize(t*e.retina.pixelRatio)}#ii(t){const e=this.#u;if(!e.destroyed&&e.actualOptions.pauseOnOutsideViewport)for(const i of t)i.target===this.interactivityData.element&&(i.isIntersecting?e.play():e.pause())}}var qs=Object.freeze({__proto__:null,InteractivityPluginInstance:class{interactionManager;#u;#p;constructor(t,e){this.#u=e,this.#p=t,this.interactionManager=new js(t,e),this.#u.addClickHandler=t=>{this.interactionManager.addClickHandler(t)}}addClickHandler(t){this.interactionManager.addClickHandler(t)}clearClickHandlers(){this.interactionManager.clearClickHandlers()}destroy(){this.clearClickHandlers(),this.#p.interactors?.delete(this.#u)}particleCreated(t){const e=t,i=new Oi(this.#p,this.#u);i.load(this.#u.actualOptions.interactivity),i.load(e.options.interactivity),e.interactivity=i}particleReset(t){this.interactionManager.reset(t)}postParticleUpdate(t,e){this.interactionManager.particlesInteract(t,e)}postUpdate(t){this.interactionManager.externalInteract(t),this.interactionManager.updateMaxDistance()}async preInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}async redrawInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}start(){return this.interactionManager.addListeners(),this.interactionManager.startObserving(),Promise.resolve()}stop(){this.interactionManager.removeListeners(),this.interactionManager.stopObserving()}}});var Ns=Object.freeze({__proto__:null,MotionPluginInstance:class{#u;constructor(t){this.#u=t}async init(){const t=this.#u,e=t.actualOptions.motion;if(!e||!e.disable&&!e.reduce.value)return void(t.retina.reduceFactor=1);const i=J("(prefers-reduced-motion: reduce)");if(!i)return void(t.retina.reduceFactor=1);this.#si(i);i.addEventListener("change",()=>{(async()=>{this.#si(i);try{await t.refresh()}catch{}})()}),await Promise.resolve()}#si(t){const e=this.#u,i=e.actualOptions.motion;i&&(t.matches?i.disable?e.retina.reduceFactor=0:e.retina.reduceFactor=i.reduce.value?1/i.reduce.factor:1:e.retina.reduceFactor=1)}}});t.loadConfettiCannonPreset=Ms,t.tsParticles=Le}),Object.assign(globalThis.window||globalThis,{loadConfettiCannonPreset:(globalThis.__tsParticlesInternals.presets.confettiCannon||{}).loadConfettiCannonPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.confettiCannon=t.__tsParticlesInternals.presets.confettiCannon||{}))}(this,function(t){"use strict";const e="generated",i="source-over",s="visibilitychange",n=100,a=.5,o=1e3,r={x:0,y:0,z:0},l=1,c=0,h=0,d=1,u="random",p=2*Math.PI,g="true",f="false",m="canvas",y=255,v=360,w=100,P=100,b=.25;var x;function M(t){return"z"in t?t.z:r.z}!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"}(x||(x={}));class C{x;y;z;constructor(t=r.x,e=r.y,i=r.z){this.x=t,this.y=e,this.z=i}static get origin(){return C.create(r.x,r.y,r.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return C.create(t.x,t.y,M(t))}static create(t,e,i){return"number"==typeof t?new C(t,e??r.y,i??r.z):new C(t.x,t.y,M(t))}add(t){return C.create(this.x+t.x,this.y+t.y,this.z+M(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=M(t)}copy(){return C.clone(this)}div(t){return C.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return C.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;0!=t&&this.multTo(1/t)}rotate(t){return C.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=M(t)}sub(t){return C.create(this.x-t.x,this.y-t.y,this.z-M(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=M(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class z extends C{constructor(t=r.x,e=r.y){super(t,e,r.z)}static get origin(){return z.create(r.x,r.y)}static clone(t){return z.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new z(t,e??r.y):new z(t.x,t.y)}}function k(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function I(t){return"number"==typeof t}function D(t){return"object"==typeof t&&null!==t}function O(t){return Array.isArray(t)}function _(t){return null==t}const R=Math.PI/180;let L=Math.random;const E=t=>requestAnimationFrame(t),T=t=>{cancelAnimationFrame(t)};function F(){return A(L(),0,1-Number.EPSILON)}function B(t,e){return F()*(e-t)+t}function A(t,e,i){return Math.min(Math.max(t,e),i)}function U(t){const e=$(t);let i=H(t);return e===i&&(i=0),B(i,e)}function V(t){return I(t)?t:U(t)}function H(t){return I(t)?t:t.min}function $(t){return I(t)?t:t.max}function W(t,e){if(t===e||void 0===e&&I(t))return t;const i=H(t),s=$(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:W(i,s)}function G(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function j(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function q(t,e){return Math.sqrt(j(t,e))}function N(t){return t*R}function X(t){const{position:e,size:i}=t;return{x:e?.x??F()*i.width,y:e?.y??F()*i.height}}function Y(t){return t?t.endsWith("%")?parseFloat(t)/n:parseFloat(t):1}var Q,K;!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(Q||(Q={})),function(t){t.precise="precise",t.percent="percent"}(K||(K={}));function Z(){return globalThis.document}function J(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function tt(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(F()*t.length)]}function et(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==Q.bottom||(n=t.top<e.height+i.x);!n||s&&s!==Q.left||(n=t.right>i.x);!n||s&&s!==Q.right||(n=t.left<e.width+i.y);!n||s&&s!==Q.top||(n=t.bottom>i.y);return n}(it(t,s??0),e,i,n)}function it(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function st(t,...e){for(const i of e){if(_(i))continue;if(!D(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):D(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),s=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return D(e)||Array.isArray(e)})){const n=i,a=t;for(const t of e)if(!s.has(t)&&t in n){const e=n[t];void 0!==e&&(a[t]=e)}continue}for(const n of e){if(s.has(n))continue;const e=t,a=i[n];e[n]=Array.isArray(a)?a.map(t=>st(void 0,t)):st(e[n],a)}}return t}function nt(t,e){return O(t)?t.map((t,i)=>e(t,i)):e(t,0)}function at(t,e,i){return O(t)?tt(t,e,i):t}function ot(t,e){return function(t,e){if(t.mode!==K.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/n*e.width,y:t.y/n*e.height}:{width:t.width/n*e.width,height:t.height/n*e.height}}(t,e)}let rt,lt;function ct(t,e,i,s,n){if(s){let s={passive:!0};k(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function ht(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}async function dt(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class ut{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this.#e.get(t);i||(i=[],this.#e.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):i.splice(n,1))}}var pt;!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"}(pt||(pt={}));class gt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#o=!1;#r=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(pt.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.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,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return dt(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return dt(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return ht(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this.#o&&!this.#r){this.#r=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#r=!1,this.#o=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this.#o)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this.#r?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}const ft=t=>(...e)=>{t(...e)},mt={debug:ft(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:ft(console.info),log:ft(console.log),trace:ft(console.trace),verbose:ft(console.log),warning:ft(console.warn)};function yt(){return mt}const vt="100%";class wt{pluginManager=new gt(this);#h=[];#d=new ut;#o=!1;get items(){return this.#h}get version(){return"4.2.1"}addEventListener(t,e){this.#d.addEventListener(t,e)}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}`)}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#o||(await this.pluginManager.init(),this.#o=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let i;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(i=t.element);const{Container:s}=await Promise.resolve().then(function(){return Vs}),n=t.id??i?.id??`tsparticles${Math.floor(1e4*F()).toString()}`,{index:a,url:o}=t,r=o?await async function(t){const e=at(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(yt().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:a}):t.options,l=at(r,a),{items:c}=this,h=c.findIndex(t=>t.id.description===n),d=new s({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:n,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const i=Z();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===m)s=t,s.dataset[e]??=f,s.dataset[e]===g&&(s.style.width||=vt,s.style.height||=vt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(m).item(0);n?(s=n,s.dataset[e]=f):(s=i.createElement(m),s.dataset[e]=g,t.appendChild(s)),s.style.width||=vt,s.style.height||=vt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(((t,i)=>{const s=Z();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=g,s.body.append(n),n)})(n,i));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}var Pt,bt,xt,Mt,Ct,zt,kt,St,It,Dt,Ot;!function(t){t.circle="circle",t.rectangle="rectangle"}(Pt||(Pt={}));class _t{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class Rt extends _t{radius;constructor(t,e,i){super(t,e,Pt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,j(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof Rt||t.type===Pt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Lt||t.type===Pt.rectangle){const e=t,{width:i,height:o}=e.size;return Math.pow(n-i,2)+Math.pow(a-o,2)<=s**2||n<=s+i&&a<=s+o||n<=i||a<=o}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Lt extends _t{size;constructor(t,e,i,s){super(t,e,Pt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof Rt)return t.intersects(this);if(!(t instanceof Lt))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(bt||(bt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(xt||(xt={})),function(t){t.delete="delete",t.wait="wait"}(Mt||(Mt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(Ct||(Ct={})),function(t){t.darken="darken",t.enlighten="enlighten"}(zt||(zt={})),function(t){t.none="none",t.max="max",t.min="min"}(kt||(kt={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(St||(St={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(It||(It={})),function(t){t.max="max",t.min="min",t.random="random"}(Dt||(Dt={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(Ot||(Ot={}));class Et{load(t){_(t)||this.doLoad(t)}}function Tt(t,...e){for(const i of e)t.load(i)}function Ft(t,e,i){void 0!==i&&(t[e]=i)}function Bt(t,e,i){void 0!==i&&(t[e]=W(i))}function At(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function Ut(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}class Vt extends Et{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){Bt(this,"count",t.count),Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Bt(this,"delay",t.delay),Ft(this,"sync",t.sync)}}class Ht extends Vt{mode=xt.auto;startValue=Dt.random;doLoad(t){super.doLoad(t),Ft(this,"mode",t.mode),Ft(this,"startValue",t.startValue)}}class $t extends Vt{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Ft(this,"max",t.max),Ft(this,"min",t.min),Bt(this,"offset",t.offset)}}class Wt extends Et{h=new $t(0,v);l=new $t(0,P);s=new $t(0,w);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class Gt extends Et{value="";static create(t,e){const i=new Gt;return i.load(t),void 0!==e&&(S(e)||O(e)?i.load({value:e}):i.load(e)),i}doLoad(t){_(t.value)||(this.value=t.value)}}class jt extends Gt{animation=new Wt;static create(t,e){const i=new jt;return i.load(t),void 0!==e&&(S(e)||O(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class qt extends Et{color;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new Gt,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Ft(this,"image",t.image),Ft(this,"position",t.position),Ft(this,"repeat",t.repeat),Ft(this,"size",t.size),Ft(this,"opacity",t.opacity)}}class Nt extends Et{enable=!0;zIndex=0;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"zIndex",t.zIndex)}}class Xt extends Et{delay=.5;enable=!0;doLoad(t){Ft(this,"delay",t.delay),Ft(this,"enable",t.enable)}}class Yt extends Et{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class Qt extends Et{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Ft(this,"enable",t.enable),Bt(this,"opacity",t.opacity)}}class Kt extends Et{offset=0;value=90;doLoad(t){Bt(this,"offset",t.offset),Bt(this,"value",t.value)}}class Zt extends Et{mode=K.percent;radius=0;x=50;y=50;doLoad(t){Ft(this,"x",t.x),Ft(this,"y",t.y),Ft(this,"mode",t.mode),Ft(this,"radius",t.radius)}}class Jt extends Et{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){Bt(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),Ft(this,"inverse",t.inverse),Bt(this,"maxSpeed",t.maxSpeed)}}class te extends Et{value=0;doLoad(t){_(t.value)||(this.value=W(t.value))}}class ee extends te{animation=new Vt;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class ie extends ee{animation=new Ht}class se extends Et{clamp=!0;delay=new te;enable=!1;generator;options={};doLoad(t){Ft(this,"clamp",t.clamp),this.delay.load(t.delay),Ft(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=st(this.options,t.options))}}class ne extends Et{bottom;default=Ct.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class ae extends Et{acceleration=0;enable=!1;position;doLoad(t){Bt(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),t.position&&(this.position=st({},t.position))}}class oe extends Et{angle=new Kt;center=new Zt;decay=0;direction=x.none;distance={};drift=0;enable=!1;gravity=new Jt;outModes=new ne;path=new se;random=!1;size=!1;speed=2;spin=new ae;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(I(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),Bt(this,"decay",t.decay),Ft(this,"direction",t.direction),void 0!==t.distance&&(this.distance=I(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),Bt(this,"drift",t.drift),Ft(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(D(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Ft(this,"random",t.random),Ft(this,"size",t.size),Bt(this,"speed",t.speed),this.spin.load(t.spin),Ft(this,"straight",t.straight),Ft(this,"vibrate",t.vibrate),Ft(this,"warp",t.warp)}}class re extends Et{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Bt(this,"width",t.width),Bt(this,"opacity",t.opacity)}}class le extends Et{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),At(this,"fill",t.fill,()=>new Qt),At(this,"stroke",t.stroke,()=>new re)}}class ce extends te{value=1}class he extends Et{horizontal=new ce;vertical=new ce;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class de extends Et{enable=!1;height=1080;width=1920;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"width",t.width),Ft(this,"height",t.height)}}class ue extends Et{mode=Mt.delete;value=0;doLoad(t){Ft(this,"mode",t.mode),Ft(this,"value",t.value)}}class pe extends Et{density=new de;limit=new ue;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Ft(this,"value",t.value)}}class ge extends Et{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class fe extends te{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Ft(this,"opacityRate",t.opacityRate),Ft(this,"sizeRate",t.sizeRate),Ft(this,"velocityRate",t.velocityRate)}}class me extends Et{bounce=new he;effect=new Yt;groups={};move=new oe;number=new pe;paint;palette;reduceDuplicates=!1;shape=new ge;zIndex=new fe;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new le,this.paint.color=new jt,this.paint.color.value="#fff",this.paint.fill=new Qt,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#g(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=st(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(O(e)?this.paint=nt(e,t=>{const e=new le;return e.load(t),e}):O(this.paint)?(this.paint=new le,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#p.updaters.get(this.#u);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#g(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(O(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function ye(t,e,...i){const s=new me(t,e);return Tt(s,...i),s}class ve extends Et{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr=!0;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new qt,this.fullScreen=new Nt,this.particles=ye(this.#p,this.#u),this.resize=new Xt}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,nt(this.preset,t=>{this.#f(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#g(this.palette)),Ft(this,"autoPlay",t.autoPlay),Ft(this,"clear",t.clear),Ft(this,"key",t.key),Ft(this,"name",t.name),Bt(this,"delay",t.delay),Ft(this,"detectRetina",t.detectRetina),Bt(this,"duration",t.duration),Ft(this,"fpsLimit",t.fpsLimit),Ft(this,"hdr",t.hdr),Ft(this,"pauseOnBlur",t.pauseOnBlur),Ft(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Ft(this,"zLayers",t.zLayers),this.background.load(t.background);const e=t.fullScreen;k(e)?this.fullScreen.enable=e:this.fullScreen.load(e),this.particles.load(t.particles),this.resize.load(t.resize),this.style=st(this.style,t.style),Ft(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#g(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#f(t){this.load(this.#p.getPreset(t))}}const we=new Map;function Pe(t,e){let i=we.get(t);return i||(i=e(),we.size>2e3&&we.clear(),we.set(t,i)),i}function be(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return xe(t,n.value,i,s);if(O(n.value)){const e=tt(n.value,i,s);if(!e)return;return be(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function xe(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return n.value===u?function(){const t=0,e=256,i=()=>Math.floor(B(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(O(n.value)){const e=tt(n.value,i,s);if(!e)return;return xe(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Me(t,e,i,s=!0){const n=be(t,e,i,s);return n?function(t){const e=t.r/y,i=t.g/y,s=t.b/y,n=Math.max(e,i,s),o=Math.min(e,i,s),r={h:0,l:(n+o)*a,s:0};n!==o&&(r.s=r.l<a?(n-o)/(n+o):(n-o)/(2-n-o),r.h=e===n?(i-s)/(n-o):i===n?2+(s-e)/(n-o):4+(e-i)/(n-o));r.l*=P,r.s*=w,r.h*=60,r.h<0&&(r.h+=v);r.h>=v&&(r.h-=v);return r}(n):void 0}function Ce(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function ze(t){const e=(t.h%v+v)%v,i=Math.max(0,Math.min(w,t.s)),s=Math.max(0,Math.min(P,t.l)),n=e/v,o=i/w,r=s/P;if(0===i){const t=Math.round(r*y);return{r:t,g:t,b:t}}const l=r<a?r*(1+o):r+o-r*o,c=2*r-l,h=1/3,d=Math.min(y,y*Ce(c,l,n+h)),u=Math.min(y,y*Ce(c,l,n)),p=Math.min(y,y*Ce(c,l,n-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function ke(t,e,i){const s=i??1;return Pe(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?function(t,e,i=400){const s=i/203;return`color(display-p3 ${(t.r/y*s).toString()} ${(t.g/y*s).toString()} ${(t.b/y*s).toString()} / ${(e??1).toString()})`}(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Se(t,e,i){const s=i??1;return Pe(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?ke(ze(t),!0,i):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${s.toString()})`)}function Ie(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function De(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:v},s:{enable:!1,value:t.s,min:0,max:w},l:{enable:!1,value:t.l,min:0,max:P}};return e&&(Oe(s.h,e.h,i),Oe(s.s,e.s,i),Oe(s.l,e.l,i)),s}function Oe(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=V(e.speed)/n*i,t.decay=1-V(e.decay),t.status=Ot.increasing,t.loops=0,t.maxLoops=V(e.count),t.time=0,t.delayTime=V(e.delay)*o,e.sync||(t.velocity*=F(),t.value*=F()),t.initialValue=t.value,t.offset=W(e.offset)):t.velocity=0}function _e(t,e,i){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+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?U(t.offset):0,n=(t.velocity??0)*i.factor+3.6*s,a=t.decay??1,o=t.max,r=t.min;e&&t.status!==Ot.increasing?(t.value-=n,t.value<r&&(t.loops??=0,t.loops++,t.status=Ot.increasing)):(t.value+=n,t.value>o&&(t.loops??=0,t.loops++,e?t.status=Ot.decreasing:t.value-=o)),t.velocity&&1!==a&&(t.velocity*=a),t.value=A(t.value,r,o)}function Re(t,e){if(!t)return;const{h:i,s:s,l:n}=t;_e(i,!1,e),_e(s,!0,e),_e(n,!0,e)}const Le=new wt;class Ee{enable=!1;mode="destination-out";load(t){_(t)||(Ft(this,"mode",t.mode),Ft(this,"enable",t.enable))}}class Te{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return Hs});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new Ee),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new Ee,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function Fe(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Te)})}class Be{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:p};const n=i.circleRange;e.arc(r.x,r.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=D(s)?{min:N(s.min),max:N(s.max)}:{min:0,max:N(s)}}}async function Ae(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Be))})}var Ue;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Ue||(Ue={}));const Ve=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,He=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class $e{accepts(t){return t.startsWith("#")}handleColor(t){return this.#m(t.value)}handleRangeColor(t){return this.#m(t.value)}parseString(t){return this.#m(t)}#m(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Ve,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=He.exec(e);return i?{a:i[Ue.a]?Number.parseInt(i[Ue.a],16)/255:1,b:Number.parseInt(i[Ue.b]??"0",16),g:Number.parseInt(i[Ue.g]??"0",16),r:Number.parseInt(i[Ue.r]??"0",16)}:void 0}}async function We(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new $e)})}var Ge;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(Ge||(Ge={}));const je=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class qe{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return ze(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return ze({h:V(e.h),l:V(e.l),s:V(e.s)})}parseString(t){if(!this.accepts(t))return;const e=je.exec(t);return e?function(t){const e=ze(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?Y(e[Ge.a]):1,h:Number.parseInt(e[Ge.h]??"0",10),l:Number.parseInt(e[Ge.l]??"0",10),s:Number.parseInt(e[Ge.s]??"0",10)}):void 0}}async function Ne(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new qe)})}class Xe{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Ws});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function Ye(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,dt(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new Xe(t.pluginManager))})}function Qe(t,e){const i=t.value,s=t.animation,n={delayTime:V(s.delay)*o,enable:s.enable,value:V(t.value)*e,max:$(i)*e,min:H(i)*e,loops:0,maxLoops:V(s.count),time:0};if(s.enable){switch(n.decay=1-V(s.decay),s.mode){case xt.increase:n.status=Ot.increasing;break;case xt.decrease:n.status=Ot.decreasing;break;case xt.random:n.status=F()>=a?Ot.increasing:Ot.decreasing}const t=s.mode===xt.auto;switch(s.startValue){case Dt.min:n.value=n.min,t&&(n.status=Ot.increasing);break;case Dt.max:n.value=n.max,t&&(n.status=Ot.decreasing);break;case Dt.random:default:n.value=U(n),t&&(n.status=F()>=a?Ot.increasing:Ot.decreasing)}}return n.initialValue=n.value,n}function Ke(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,o=e.min,r=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case Ot.increasing:e.value+=a;break;case Ot.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case Ot.increasing:e.value>=r&&(i?e.status=Ot.decreasing:e.value-=r,e.loops??=0,e.loops++);break;case Ot.decreasing:e.value<=o&&(i?e.status=Ot.increasing:e.value+=r,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case kt.max:i>=n&&t.destroy();break;case kt.min:i<=s&&t.destroy()}}(t,s,e.value,o,r),t.destroyed||(e.value=A(e.value,o,r))}}class Ze extends Ht{destroy=kt.none;load(t){super.load(t),_(t)||Ft(this,"destroy",t.destroy)}}class Je extends ie{animation=new Ze;value=1;load(t){if(_(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class ti{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=Qe(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=V(i.speed)/n*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=F()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){Ut(t,"opacity",Je,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&Ke(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function ei(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new ti(t)))})}class ii{modes;#u;#y;constructor(t){this.#u=t,this.modes=[Ct.bounce,Ct.split],this.#y=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;let a=!1;for(const s of this.#y)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const o=t.getPosition(),r=t.offset,l=t.getRadius(),c=it(o,l),h=n.canvas.size,d=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Q.left&&t.direction!==Q.right)return;t.bounds.right<0&&t.direction===Q.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===Q.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.outOfCanvas&&(t.direction===Q.right&&e>0||t.direction===Q.left&&e<0)){const e=V(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.outOfCanvas&&t.direction===Q.right?t.particle.position.x=t.canvasSize.width-s:t.outOfCanvas&&t.direction===Q.left&&(t.particle.position.x=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l}),function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Q.bottom&&t.direction!==Q.top)return;t.bounds.bottom<0&&t.direction===Q.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===Q.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.outOfCanvas&&(t.direction===Q.bottom&&e>0||t.direction===Q.top&&e<0)){const e=V(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.outOfCanvas&&t.direction===Q.bottom?t.particle.position.y=t.canvasSize.height-s:t.outOfCanvas&&t.direction===Q.top&&(t.particle.position.y=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l})}}class si{modes;constructor(t){this.modes=[Ct.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case It.normal:case It.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case It.inside:{const{dx:e,dy:i}=G(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class ni{modes;#u;constructor(t){this.#u=t,this.modes=[Ct.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===Q.left||e===Q.right))??(t.options.move.distance.vertical&&(e===Q.top||e===Q.bottom)))return;const n=t.options.move.gravity,a=this.#u,o=a.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>o.height+l&&e===Q.bottom||n.inverse&&i.y<-l&&e===Q.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=o.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=o.width+l||t.velocity.x<0&&t.position.x>=-l)return;et(t.position,a.canvas.size,r,l,e)||t.destroy()}}}const ai=z.origin;class oi{modes;#u;constructor(t){this.#u=t,this.modes=[Ct.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;switch(t.outType){case It.inside:{const{x:e,y:i}=t.velocity;ai.setTo(r),ai.length=t.moveCenter.radius,ai.angle=t.velocity.angle+Math.PI,ai.addTo(t.moveCenter);const{dx:s,dy:a}=G(t.position,ai);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor(U({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(U({min:0,max:n.canvas.size.height}));const{dx:o,dy:l}=G(t.position,t.moveCenter);t.direction=Math.atan2(-l,-o),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(t.isInsideCanvasForOutMode(s,e))return;switch(t.outType){case It.outside:{t.position.x=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=G(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case It.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=it(t.position,o);e===Q.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=F()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===Q.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=F()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===Q.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=F()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===Q.top&&r.bottom<-t.offset.y&&(i||(t.position.x=F()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class ri{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#v(t,Ct.bounce,t=>new ii(t)),this.#v(t,Ct.out,t=>new oi(t)),this.#v(t,Ct.destroy,t=>new si(t)),this.#v(t,Ct.none,t=>new ni(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#w(t,e,i.bottom??i.default,Q.bottom),this.#w(t,e,i.left??i.default,Q.left),this.#w(t,e,i.right??i.default,Q.right),this.#w(t,e,i.top??i.default,Q.top)}#v(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#w(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function li(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new ri(t)))})}class ci{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=at(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,o=s?.fill,r=s?.stroke;if(o){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),o.color);t.fillEnabled=o.enable,t.fillOpacity=V(o.opacity),t.fillAnimation=i.animation;const s=Me(this.#p,i);s&&(t.fillColor=De(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(r){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),r.color);t.strokeWidth=V(r.width)*e.retina.pixelRatio,t.strokeOpacity=V(r.opacity??1),t.strokeAnimation=i.animation;const s=Me(this.#p,i)??t.getFillColor();s&&(t.strokeColor=De(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),o=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||o)}update(t,e){this.isEnabled(t)&&(Re(t.fillColor,e),Re(t.strokeColor,e))}}async function hi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new ci(t.pluginManager,e)))})}var di;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(di||(di={}));const ui=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class pi{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:V(e.r),g:V(e.g),b:V(e.b)}}parseString(t){if(!this.accepts(t))return;const e=ui.exec(t);return e?{a:e.length>4?Y(e[di.a]):1,b:parseInt(e[di.b]??"0",10),g:parseInt(e[di.g]??"0",10),r:parseInt(e[di.r]??"0",10)}:void 0}}async function gi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new pi)})}class fi extends Ht{destroy=kt.none;load(t){super.load(t),_(t)||Ft(this,"destroy",t.destroy)}}class mi extends ie{animation=new fi;value=3;load(t){if(super.load(t),_(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class yi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const s=i.animation;s.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/n*e.retina.reduceFactor,s.sync||(t.size.velocity*=F()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){Ut(t,"size",mi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=Qe(i,e),t.retina.sizeAnimationSpeed=V(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&Ke(t,t.size,!0,t.options.size.animation.destroy,e)}}async function vi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new yi(t)))})}async function wi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(async t=>{await Promise.all([Fe(t),We(t),Ne(t),gi(t),Ye(t),Ae(t),hi(t),ei(t),li(t),vi(t)])})}const Pi={name:"Confetti",background:"#1a1a2e",blendMode:"source-over",colors:{fill:{enable:!0,value:["#FF0044","#FF4400","#FFCC00","#00CC44","#00AAFF","#AA00FF","#FF00AA","#00FFCC","#FF6600","#FFFFFF"]}}};async function bi(t){await t.pluginManager.register(t=>{t.pluginManager.addPalette("confetti",Pi)})}class xi{enable=!1;mode=[];load(t){_(t)||(Ft(this,"enable",t.enable),Ft(this,"mode",t.mode))}}var Mi,Ci,zi;!function(t){t.circle="circle",t.rectangle="rectangle"}(Mi||(Mi={}));class ki{enable=!1;mode=[];selectors=[];type=Mi.circle;load(t){_(t)||(Ft(this,"selectors",t.selectors),Ft(this,"enable",t.enable),Ft(this,"mode",t.mode),Ft(this,"type",t.type))}}class Si{enable=!1;mode=[];load(t){_(t)||(Ft(this,"enable",t.enable),Ft(this,"mode",t.mode))}}class Ii{onClick=new xi;onDiv=new ki;onHover=new Si;load(t){if(_(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=nt(e,t=>{const e=new ki;return e.load(t),e})),this.onHover.load(t.onHover)}}!function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(Ci||(Ci={}));class Di{#u;#p;constructor(t,e){this.#p=t,this.#u=e}load(t){if(_(t))return;if(!this.#u)return;const e=this.#p.interactors?.get(this.#u);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class Oi{detectsOn=Ci.window;events=new Ii;modes;constructor(t,e){this.modes=new Di(t,e)}load(t){if(_(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class _i{id="interactivity";#p;constructor(t){this.#p=t}async getPlugin(t){const{InteractivityPluginInstance:e}=await Promise.resolve().then(function(){return qs});return new e(this.#p,t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let s=e.interactivity;s?.load||(e.interactivity=s=new Oi(this.#p,t)),s.load(i?.interactivity);const n=this.#p.interactors?.get(t);if(n)for(const t of n)t.loadOptions&&t.loadOptions(e,i)}loadParticlesOptions(t,e,i){i?.interactivity&&(e.interactivity=st({},i.interactivity));const s=this.#p.interactors?.get(t);if(s)for(const t of s)t.loadParticlesOptions?.(e,i)}needsPlugin(){return!0}}!function(t){t.external="external",t.particles="particles"}(zi||(zi={}));class Ri{type=zi.external;container;constructor(t){this.container=t}}const Li="pointerdown",Ei="pointerup",Ti="pointerleave",Fi="pointermove",Bi="touchstart",Ai="touchend",Ui="touchmove",Vi="touchcancel";class Hi{drawVector=!0;maxDragDistance=0;maxParticles=200;minParticles=5;particleFactor=.2;spread=30;vectorColor="#ffffff80";velocityFactor=.5;load(t){t&&(Ft(this,"spread",t.spread),Ft(this,"velocityFactor",t.velocityFactor),Ft(this,"particleFactor",t.particleFactor),Ft(this,"minParticles",t.minParticles),Ft(this,"maxParticles",t.maxParticles),Ft(this,"maxDragDistance",t.maxDragDistance),Ft(this,"drawVector",t.drawVector),Ft(this,"vectorColor",t.vectorColor))}}var $i;!function(t){t[t.idle=0]="idle",t[t.aiming=1]="aiming",t[t.fired=2]="fired"}($i||($i={}));const Wi="cannon";class Gi extends Ri{maxDistance=0;#P;#b={origin:z.origin,current:z.origin,active:!1};#x=void 0;#M=$i.idle;constructor(t){super(t)}clear(t,e){}init(){const t=this.container.actualOptions.interactivity?.modes.cannon??new Hi;this.#P={spread:N(t.spread),maxDragDistance:t.maxDragDistance,velocityFactor:t.velocityFactor,particleFactor:t.particleFactor,minParticles:t.minParticles,maxParticles:t.maxParticles,drawVector:t.drawVector,vectorColor:t.vectorColor}}interact(t,e){const i=t.mouse,s=i.position,n=i.clicking,a=i.downPosition;n&&a&&a!==this.#x&&this.#M===$i.idle&&(this.#x=a,this.#b={origin:{x:a.x,y:a.y},current:{x:a.x,y:a.y},active:!0},this.#M=$i.aiming),this.#M===$i.aiming&&s&&(this.#b.current={x:s.x,y:s.y},this.#C()),n||this.#M!==$i.aiming||(this.#b.active=!1,this.#z(),this.#M=$i.idle)}isEnabled(t){const e=this.container,i=e.actualOptions.interactivity?.events;if(!i?.onClick.enable)return!1;const s=i.onClick.mode;return!!(Array.isArray(s)?s.includes(Wi):s===Wi)&&(this.#M!==$i.idle||t.mouse.clicking)}loadModeOptions(t,...e){Ut(t,"cannon",Hi,...e)}reset(t,e){}#C(){this.container.canvas.render.draw(t=>{const e=this.#P;if(!e)return;const{origin:i,current:s}=this.#b,n=this.container.retina.pixelRatio,a=q(i,s),o=e.maxDragDistance>0?Math.min(a,e.maxDragDistance*n):a,r=a>0?o/a:0,l=i.x+(s.x-i.x)*r,c=i.y+(s.y-i.y)*r;t.save(),t.strokeStyle=e.vectorColor,t.lineWidth=2*n,t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(l,c),t.stroke();const h=Math.max(4,.05*o)*n;t.beginPath(),t.arc(i.x,i.y,h,0,p),t.strokeStyle=e.vectorColor,t.lineWidth=2*n,t.stroke(),t.restore()})}#z(){const t=this.#P;if(!t)return;const{origin:e,current:i}=this.#b,s=this.container.retina.pixelRatio,n=q(e,i),a=t.maxDragDistance>0?Math.min(n,t.maxDragDistance*s):n;if(a<2)return;const o=1/s,r=(d=i.x,u=i.y,p=e.x,g=e.y,Math.atan2(g-u,p-d)),l=a*o*t.velocityFactor,c=Math.min(t.maxParticles,Math.max(t.minParticles,Math.round(a*t.particleFactor))),h=180/Math.PI;var d,u,p,g;for(let i=0;i<c;i++){const i=r+B(-t.spread,t.spread),s=B(.25*l,l);this.container.particles.addParticle(e,{move:{enable:!0,speed:s,direction:i*h}})}}}async function ji(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{!function(t){if(!t.pluginManager.addInteractor)throw new Error("tsParticles Interactivity Plugin is not loaded")}(t),t.pluginManager.addInteractor?.("externalCannon",t=>Promise.resolve(new Gi(t)))})}class qi extends te{sync=!1;load(t){_(t)||(super.load(t),Ft(this,"sync",t.sync))}}class Ni extends te{sync=!1;load(t){_(t)||(super.load(t),Ft(this,"sync",t.sync))}}class Xi{count=0;delay=new qi;duration=new Ni;load(t){_(t)||(Ft(this,"count",t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Yi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.life;if(!i)return;const s=i.delay.sync?1:F(),n=i.duration.sync?1:F();t.life={delay:e.retina.reduceFactor?V(i.delay.value)*s/e.retina.reduceFactor*o:0,delayTime:0,duration:e.retina.reduceFactor?V(i.duration.value)*n/e.retina.reduceFactor*o:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.spawning=t.life.delay>0}isEnabled(t){return!t.destroyed}loadOptions(t,...e){Ut(t,"life",Xi,...e)}update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;const s=t.life;let n=!1;if(t.spawning){if(s.delayTime+=e.value,!(s.delayTime>=t.life.delay))return;n=!0,t.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration)return;if(n?s.time=0:s.time+=e.value,s.time<s.duration)return;if(s.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const a=W(0,i.width),r=W(0,i.width);t.position.x=U(a),t.position.y=U(r),t.spawning=!0,s.delayTime=0,s.time=0,t.reset();const l=t.options.life;l&&(s.delay=V(l.delay.value)*o,s.duration=V(l.duration.value)*o)}(t,e,this.#u.canvas.size)}}async function Qi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("life",t=>Promise.resolve(new Yi(t)))})}class Ki{factor=4;value=!0;load(t){_(t)||(Ft(this,"factor",t.factor),Ft(this,"value",t.value))}}class Zi{disable=!0;reduce=new Ki;load(t){_(t)||(Ft(this,"disable",t.disable),this.reduce.load(t.reduce))}}class Ji{id="motion";async getPlugin(t){const{MotionPluginInstance:e}=await Promise.resolve().then(function(){return Ns});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let s=e.motion;s?.load||(e.motion=s=new Zi),s.load(i?.motion)}needsPlugin(){return!0}}async function ts(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Ji)})}var es;!function(t){t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(es||(es={}));class is{enable=!1;value=0;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"value",t.value))}}class ss{backColor;darken=new is;enable=!1;enlighten=new is;mode=es.vertical;speed=25;load(t){_(t)||(void 0!==t.backColor&&(this.backColor=Gt.create(this.backColor,t.backColor)),this.darken.load(t.darken),Ft(this,"enable",t.enable),this.enlighten.load(t.enlighten),Ft(this,"mode",t.mode),Bt(this,"speed",t.speed))}}class ns{#p;constructor(t){this.#p=t}getTransformValues(t){const e=t.roll?.enable&&t.roll,i=e&&e.horizontal,s=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:s?Math.sin(e.angle):void 0}}init(t){!function(t,e){const i=e.options.roll;if(i?.enable)if(e.roll={enable:i.enable,horizontal:i.mode===es.horizontal||i.mode===es.both,vertical:i.mode===es.vertical||i.mode===es.both,angle:F()*p,speed:V(i.speed)/360},i.backColor)e.backColor=Me(t,i.backColor);else if(i.darken.enable&&i.enlighten.enable){const t=F()>=a?zt.darken:zt.enlighten;e.roll.alter={type:t,value:V(t===zt.darken?i.darken.value:i.enlighten.value)}}else i.darken.enable?e.roll.alter={type:zt.darken,value:V(i.darken.value)}:i.enlighten.enable&&(e.roll.alter={type:zt.enlighten,value:V(i.enlighten.value)});else e.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}(this.#p,t)}isEnabled(t){const e=t.options.roll;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){Ut(t,"roll",ss,...e)}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.options.roll,s=t.roll;if(!s||!i?.enable)return;const n=s.speed*e.factor,a=p;s.angle+=n,s.angle>a&&(s.angle-=a)}(t,e)}}async function as(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("roll",()=>Promise.resolve(new ns(t.pluginManager)))})}class os{decay=0;enable=!1;speed=0;sync=!1;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Ft(this,"sync",t.sync))}}class rs extends te{animation=new os;direction=bt.clockwise;path=!1;load(t){_(t)||(super.load(t),Ft(this,"direction",t.direction),this.animation.load(t.animation),Ft(this,"path",t.path))}}class ls{#u;constructor(t){this.#u=t}init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:N(V(e.value)),min:0,max:p},t.pathRotation=e.path;let i=e.direction;if(i===bt.random){i=Math.floor(2*F())>0?bt.counterClockwise:bt.clockwise}switch(i){case bt.counterClockwise:case"counterClockwise":t.rotate.status=Ot.decreasing;break;case bt.clockwise:t.rotate.status=Ot.increasing}const s=e.animation;s.enable&&(t.rotate.decay=1-V(s.decay),t.rotate.velocity=V(s.speed)/360*this.#u.retina.reduceFactor,s.sync||(t.rotate.velocity*=F())),t.rotation=t.rotate.value}isEnabled(t){const e=t.options.rotate;return!!e&&(!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path))}loadOptions(t,...e){Ut(t,"rotate",rs,...e)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(Ke(t,t.rotate,!1,kt.none,e),t.rotation=t.rotate.value))}}async function cs(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("rotate",t=>Promise.resolve(new ls(t)))})}class hs{draw(t){!function(t){const{context:e,radius:i}=t,s=i*Math.SQRT1_2,n=2*s;e.rect(-s,-s,n,n)}(t)}getSidesCount(){return 4}}async function ds(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["edge","square"],()=>Promise.resolve(new hs))})}var us;!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(us||(us={}));class ps{decay=0;enable=!1;speed=0;sync=!1;load(t){_(t)||(Ft(this,"enable",t.enable),Bt(this,"speed",t.speed),Bt(this,"decay",t.decay),Ft(this,"sync",t.sync))}}class gs extends te{animation=new ps;direction=us.clockwise;enable=!1;load(t){super.load(t),_(t)||(this.animation.load(t.animation),Ft(this,"direction",t.direction),Ft(this,"enable",t.enable))}}class fs{#u;constructor(t){this.#u=t}getTransformValues(t){const e=t.tilt?.enable&&t.tilt;return{b:e?Math.cos(e.value)*e.cosDirection:void 0,c:e?Math.sin(e.value)*e.sinDirection:void 0}}init(t){const e=t.options.tilt;if(!e)return;t.tilt={enable:e.enable,value:N(V(e.value)),sinDirection:F()>=a?1:-1,cosDirection:F()>=a?1:-1,min:0,max:p};let i=e.direction;if(i===us.random){i=Math.floor(2*F())>0?us.counterClockwise:us.clockwise}switch(i){case us.counterClockwise:case"counterClockwise":t.tilt.status=Ot.decreasing;break;case us.clockwise:t.tilt.status=Ot.increasing}const s=t.options.tilt?.animation;s?.enable&&(t.tilt.decay=1-V(s.decay),t.tilt.velocity=V(s.speed)/360*this.#u.retina.reduceFactor,s.sync||(t.tilt.velocity*=F()))}isEnabled(t){const e=t.options.tilt?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){Ut(t,"tilt",gs,...e)}update(t,e){this.isEnabled(t)&&t.tilt&&Ke(t,t.tilt,!1,kt.none,e)}}async function ms(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("tilt",t=>Promise.resolve(new fs(t)))})}class ys{angle=50;move=10;load(t){_(t)||(Bt(this,"angle",t.angle),Bt(this,"move",t.move))}}class vs{distance=5;enable=!1;speed=new ys;load(t){if(!_(t)&&(Bt(this,"distance",t.distance),Ft(this,"enable",t.enable),void 0!==t.speed))if(I(t.speed))this.speed.load({angle:t.speed});else{const e=t.speed;"min"in e?this.speed.load({angle:e}):this.speed.load(t.speed)}}}class ws{#u;constructor(t){this.#u=t}init(t){const e=t.options.wobble;t.wobble=e?.enable?{angle:F()*p,angleSpeed:V(e.speed.angle)/360,moveSpeed:V(e.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=V(e?.distance??0)*this.#u.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.options.wobble?.enable}loadOptions(t,...e){Ut(t,"wobble",vs,...e)}update(t,e){this.isEnabled(t)&&function(t,e,i){const{wobble:s}=e.options,{wobble:n}=e;if(!s?.enable||!n)return;const a=t.retina.reduceFactor,o=n.angleSpeed*i.factor*a,r=n.moveSpeed*i.factor*a*(e.retina.wobbleDistance??0)/16.666666666666668,l=p,{position:c}=e;n.angle+=o,n.angle>l&&(n.angle-=l),c.x+=r*Math.cos(n.angle),c.y+=r*Math.abs(Math.sin(n.angle))}(this.#u,t,e)}}async function Ps(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("wobble",t=>Promise.resolve(new ws(t)))})}const bs={palette:"confetti",background:{color:{value:""}},fullScreen:{enable:!0,zIndex:100},particles:{number:{value:0,density:{enable:!0}},shape:{type:["square","circle"]},size:{value:{min:3,max:5}},opacity:{value:{min:0,max:1},animation:{enable:!0,startValue:"max",destroy:"min",speed:.1}},move:{enable:!0,speed:1,decay:.1,gravity:{enable:!0},outModes:{default:"destroy",top:"none"}},rotate:{value:{min:0,max:360},direction:"random",move:!0,animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:30},enlighten:{enable:!0,value:30},enable:!0,mode:"both",speed:{min:15,max:25}},wobble:{distance:30,enable:!0,move:!0,speed:{min:-15,max:15}}},interactivity:{events:{onClick:{enable:!0,mode:"cannon"}}},motion:{disable:!0}},xs=["confettiCannon","confetti-cannon"];async function Ms(t){await t.pluginManager.register(async t=>{await Promise.all([wi(t),bi(t),(async()=>{await async function(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{const e=t,i=e.pluginManager;i.addPlugin(new _i(i)),i.initializers.interactors??=new Map,i.interactors??=new Map,i.addInteractor=(t,e)=>{i.initializers.interactors??=new Map,i.initializers.interactors.set(t,e)},i.getInteractors=async(t,e=!1)=>(i.interactors??=new Map,i.initializers.interactors??=new Map,ht(t,i.interactors,i.initializers.interactors,e)),i.setOnClickHandler=t=>{const{items:i}=e;if(!i.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");i.forEach(e=>{const i=e;i.addClickHandler?.(t)})}})}(t),await ji(t)})(),ds(t),ts(t),Ps(t),as(t),cs(t),ms(t),Qi(t)]),xs.forEach(e=>{t.pluginManager.addPreset(e,bs,!1)})})}const Cs=globalThis;Cs.loadConfettiCannonPreset=Ms,Cs.tsParticles=Le;function zs(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class ks{#k;#S;#I;#D;#O;#u;#_;#R;#L;#E;#T;#F;#B;#A;#p;#U;#V;#H={};#$=[void 0,void 0];#W={};constructor(t,e,i){this.#p=t,this.#u=e,this.#S=i,this.#_=null,this.#V=[],this.#U=[],this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#E=[],this.#T=[],this.#F=[],this.#A=[],this.#B=[]}get settings(){return this.#R}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}clear(){let t=!1;for(const e of this.#k)if(t=e.canvasClear?.()??!1,t)break;t||this.canvasClear()}destroy(){this.stop(),this.#V=[],this.#U=[],this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#E=[],this.#T=[],this.#F=[],this.#A=[],this.#B=[]}draw(t){const e=this.#_;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,o]=this.#G(t);if(a??=s,o??=n,!a&&!o)return;const r=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#W,g=this.#H,f=a?Se(a,r.hdr,h*d):void 0,m=o?Se(o,r.hdr,u*d):f;p.a=p.b=p.c=p.d=void 0,g.fill=f,g.stroke=m,this.draw(s=>{for(const i of this.#T)i.drawParticleSetup?.(s,t,e);this.#j(s,t,i,d,g,p),this.#q({container:r,context:s,particle:t,delta:e,colorStyles:g,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#N(t);for(const i of this.#E)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#L)this.#X(i,s,t,e)})}drawParticles(t){const{particles:e}=this.#u;this.clear(),e.update(t),this.draw(i=>{for(const e of this.#A)e.drawSettingsSetup?.(i,t);for(const e of this.#F)e.draw?.(i,t);e.drawParticles(t);for(const e of this.#D)e.clearDraw?.(i,t);for(const e of this.#B)e.drawSettingsCleanup?.(i,t)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#O=[],this.#k=[],this.#I=[],this.#D=[],this.#L=[],this.#T=[],this.#E=[],this.#F=[],this.#A=[],this.#B=[];for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#O.push(t),t.canvasClear&&this.#k.push(t),t.canvasPaint&&this.#I.push(t),t.drawParticle&&this.#L.push(t),t.drawParticleSetup&&this.#T.push(t),t.drawParticleCleanup&&this.#E.push(t),t.draw&&this.#F.push(t),t.drawSettingsSetup&&this.#A.push(t),t.drawSettingsCleanup&&this.#B.push(t),t.clearDraw&&this.#D.push(t)}initUpdaters(){this.#V=[],this.#U=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#U.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#V.push(t)}paint(){let t=!1;for(const e of this.#I)if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,r.x,r.y,this.#S.size.width,this.#S.size.height),i.globalAlpha=s})}setContext(t){this.#_=t,this.#_&&(this.#_.globalCompositeOperation=i)}setContextSettings(t){this.#R=t}stop(){this.draw(t=>{t.clearRect(r.x,r.y,this.#S.size.width,this.#S.size.height)})}#N(t){for(const e of this.#U)e.afterDraw?.(t)}#j(t,e,i,s,n,a){for(const o of this.#V){if(o.getColorStyles){const{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){const t=o.getTransformValues(e);for(const e in t)zs(a,t,e)}o.beforeDraw?.(e)}}#Y(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#Q(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#q(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:o,opacity:r,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const g=!!s.fillEnabled,f=s.strokeWidth??0;i.lineWidth=f,a.stroke&&(i.strokeStyle=a.stroke);const m={context:i,particle:s,radius:o,drawRadius:1*o,opacity:r,delta:n,pixelRatio:e.retina.pixelRatio,fill:g,stroke:f>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(m);const y=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#Q(y,m),this.#K(v,m),this.#Z(v,m),this.#J(v,m),this.#Y(y,m),i.resetTransform()}#X(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#Z(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#J(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#K(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#G(t){let e,i;for(const s of this.#O)if(!e&&s.particleFillColor&&(e=Me(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Me(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#$[0]=e,this.#$[1]=i,this.#$}}const Ss=new WeakMap;function Is(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Ds{domElement;render;renderCanvas;size;zoom=1;#u;#tt;#et;#it;#p;#st;#nt;#at;#ot;constructor(t,e){this.#p=t,this.#u=e,this.render=new ks(t,e,this),this.#at={height:0,width:0};const i=e.retina.pixelRatio,s=this.#at;this.size={height:s.height*i,width:s.width*i},this.#tt=!1,this.#nt=[],this.#st="none"}get#rt(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#tt){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#lt();this.render.destroy(),this.#nt=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#ot?this.#ot:{x:e*a/t,y:i*a/t}}init(){this.#ct(t=>{t.disconnect()}),this.#et=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#ht()}),this.resize(),this.#dt(),this.initBackground(),this.#ct(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#ut(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=be(this.#p,e.color);s.backgroundColor=n?ke(n,t.actualOptions.hdr,e.opacity):"",s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#nt=[];for(const t of this.#u.plugins)t.resize&&this.#nt.push(t)}loadCanvas(t){this.#tt&&this.domElement&&this.domElement.remove();const i=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=i,this.#tt=!!i&&"true"===i.dataset[e],this.renderCanvas=i?(t=>{const e=Ss.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const e=t.transferControlToOffscreen();return Ss.set(t,e),e}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(i):t;const s=this.domElement;s&&(s.ariaHidden="true",this.#it=function(t){const e=Z().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||_(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(s.style));const n=this.#at,a=this.renderCanvas;s?(n.height=s.offsetHeight,n.width=s.offsetWidth):(n.height=a.height,n.width=a.width);const o=this.#u.retina.pixelRatio,r=this.size;a.height=r.height=n.height*o,a.width=r.width=n.width*o}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#at,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,o={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&o.height===i.height&&o.width===i.width)return!1;const r={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=o.width,i.height=l.height=o.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/r.width,height:s.height/r.height}),!0}setPointerEvents(t){this.domElement&&(this.#st=t,this.#ht())}setZoom(t,e){this.zoom=t,this.#ot=e}stop(){this.#ct(t=>{t.disconnect()}),this.#et=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#pt(),e&&await t.refresh()}#pt(){for(const t of this.#nt)t.resize?.()}#ut(){const t=this.#u.actualOptions.hdr&&J("(color-gamut: p3)")?.matches&&J("(dynamic-range: high)")?.matches;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...t?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});const e=this.renderCanvas;e&&this.render.setContext(e.getContext("2d",this.render.settings))}#dt(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#rt?this.#gt():this.#lt();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#ht(){const t=this.domElement;if(!t)return;this.#ct(t=>{t.disconnect()}),this.#dt(),this.initBackground();const e=this.#st;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#ct(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#lt(){const t=this.domElement,e=this.#it;t&&e&&Is(t,e,!0)}#ct(t){this.#et&&t(this.#et)}#gt(){const t=this.domElement;t&&Is(t,function(t){if(rt!==t||!lt){rt=t;const e=Z().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}lt=e}return lt}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Os{#u;#ft;#mt;#yt;constructor(t){this.#u=t,this.#ft={visibilityChange:()=>{this.#vt()},resize:()=>{this.#wt()}}}addListeners(){this.#Pt(!0)}removeListeners(){this.#Pt(!1)}#vt(){const t=this.#u;t.actualOptions.pauseOnBlur&&(Z().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#wt(){this.#yt&&(clearTimeout(this.#yt),this.#yt=void 0);const t=async()=>{const t=this.#u.canvas;await t.windowResize()};this.#yt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*o)}#Pt(t){const e=this.#ft;this.#bt(t),ct(document,s,e.visibilityChange,t,!1)}#bt(t){const e=this.#ft,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void ct(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#mt&&!t?(s&&this.#mt.unobserve(s),this.#mt.disconnect(),this.#mt=void 0):!this.#mt&&t&&s&&(this.#mt=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this.#wt()}),this.#mt.observe(s))}}function _s(t){if(e=t.outMode,i=t.checkModes,!(e===i||O(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Rs(t,e){const i=t%e;return i<0?i+e:i}function Ls(t,e,i,s){const n=ye(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=at(n.effect.type,t.id,a),t.shape=at(n.shape.type,t.id,a);const o=n.effect,r=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=at(e,t.id,a);i&&(t.effect=i)}o.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=at(e,t.id,a);i&&(t.shape=i)}r.load(s.shape)}}if(t.effect===u){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(F()*i.length)]}if(t.shape===u){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(F()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.effect,o,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.shape,r,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class Es{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#xt={fillOpacity:1,opacity:1,strokeOpacity:1};#Mt=C.origin;#Ct={sin:0,cos:0};#zt={a:1,b:0,c:0,d:1};#u;#p;constructor(t,e){this.#p=t,this.#u=e}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(pt.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#kt(this.bubble.color??Ie(this.fillColor))}getMass(){return this.getRadius()**2*Math.PI*a}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=this.bubble.opacity??V(this.opacity?.value??1),s=this.fillOpacity??1,n=this.strokeOpacity??1;return this.#xt.fillOpacity=i*s*e,this.#xt.opacity=i*e,this.#xt.strokeOpacity=i*n*e,this.#xt}getPosition(){return this.#Mt.x=this.position.x+this.offset.x,this.#Mt.y=this.position.y+this.offset.y,this.#Mt.z=this.position.z,this.#Mt}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this.#Ct.sin=Math.sin(t),this.#Ct.cos=Math.cos(t),this.#Ct}getStrokeColor(){return this.#kt(this.bubble.color??Ie(this.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#zt.a=e.cos*(t.a??l),this.#zt.b=i?e.sin*(t.b??1):t.b??c,this.#zt.c=i?-e.sin*(t.c??1):t.c??h,this.#zt.d=e.cos*(t.d??d),this.#zt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=It.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=Ls(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#St(e),this.initialVelocity=this.#It(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#Dt({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#Dt({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Rs(t,p);return e>=Math.PI*a&&e<3*Math.PI*a}if(this.roll.horizontal){const e=Rs(t+Math.PI*a,p);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Rs(t,p);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#Ot(t,e){let i=0,s=t?C.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,o=this.options.move.outModes,r=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return C.create(i.x,i.y,e)}const t=X({size:l,position:s}),c=C.create(t.x,t.y,e);this.#_t(c,r,o.left??o.default),this.#_t(c,r,o.right??o.default),this.#Rt(c,r,o.top??o.default),this.#Rt(c,r,o.bottom??o.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#It(){const t=this.options.move,e=function(t){const e=z.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===x.inside||t.direction===x.outside)return e;const i=N(V(t.angle.value)),s=N(V(t.angle.offset)),n={left:s-i*a,right:s+i*a};return t.straight||(e.angle+=U(W(n.left,n.right))),t.random&&"number"==typeof t.speed&&(e.length*=F()),e}#_t(t,e,i){_s({outMode:i,checkModes:[Ct.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#Rt(t,e,i){_s({outMode:i,checkModes:[Ct.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#Lt(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===Ct.bounce;return t===Q.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===Q.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===Q.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===Q.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#Et(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#Dt(t){const e=this.#Lt(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,o=n?.isInsideCanvas;if(!a&&!o)return e;const r=this.#Et(t.direction,t.outMode),l=a?this.#Tt(a(r),"shape"):void 0,c=o?this.#Tt(o(r),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#kt(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===zt.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#St(t){const e=this.#u,i=Math.floor(V(this.options.zIndex.value)),s=this.#Ot(t,A(i,0,e.zLayers));if(!s)throw new Error("a valid position cannot be found for particle");this.position=s,this.initialPosition=this.position.copy();const n=e.canvas.size;switch(this.moveCenter={...ot(this.options.move.center,n),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(I(t))return N(t);switch(t){case x.top:return-Math.PI*a;case x.topRight:return-Math.PI*b;case x.right:return 0;case x.bottomRight:return Math.PI*b;case x.bottom:return Math.PI*a;case x.bottomLeft:return.75*Math.PI;case x.left:return Math.PI;case x.topLeft:return.75*-Math.PI;case x.inside:return Math.atan2(i.y-e.y,i.x-e.x);case x.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return F()*p}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case x.inside:this.outType=It.inside;break;case x.outside:this.outType=It.outside}this.offset=z.origin}#Tt(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class Ts{#Ft;#Bt=new Map;#At=[];#Ut;#Vt;#Ht=[];#$t;constructor(t){this.#Ft=t,this.#Ut=0,this.#$t=0}clear(){this.#Bt.clear();const t=this.#Vt;t&&(this.#Ft=t),this.#Vt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#Wt(e,i);this.#Bt.has(s)||this.#Bt.set(s,[]),this.#Bt.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Gt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Ft),a=Math.floor(s.maxX/this.#Ft),o=Math.floor(s.minY/this.#Ft),r=Math.floor(s.maxY/this.#Ft);for(let s=n;s<=a;s++)for(let n=o;n<=r;n++){const a=`${s}_${n}`,o=this.#Bt.get(a);if(o)for(const s of o)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this.#jt(t.x,t.y,e),a=this.query(n,i,s);return this.#qt(),a}queryRectangle(t,e,i,s=[]){const n=this.#Nt(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this.#qt(),a}setCellSize(t){this.#Vt=t}#jt(t,e,i){return(this.#At[this.#Ut++]??=new Rt(t,e,i)).reset(t,e,i)}#Nt(t,e,i,s){return(this.#Ht[this.#$t++]??=new Lt(t,e,i,s)).reset(t,e,i,s)}#Wt(t,e){return`${Math.floor(t/this.#Ft)}_${Math.floor(e/this.#Ft)}`}#Gt(t){if(t instanceof Rt){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Lt){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#qt(){this.#Ut=0,this.#$t=0}}class Fs{checkParticlePositionPlugins;grid;#Xt;#u;#Yt;#Qt;#Kt;#Zt;#Jt;#te;#p;#ee;#ie;#se;#ne;#ae;#oe;constructor(t,e){this.#p=t,this.#u=e,this.#Kt=0,this.#Xt=[],this.#ee=[],this.#Qt=0,this.#Yt=new Map,this.#Zt=new Map,this.#oe=this.#re(this.#u.zLayers),this.grid=new Ts(100),this.checkParticlePositionPlugins=[],this.#Jt=[],this.#te=[],this.#se=[],this.#ie=[],this.#ae=[]}get count(){return this.#Xt.length}addParticle(t,e,i,s){const n=this.#u.actualOptions.particles.number.limit.mode,a=void 0===i?this.#Qt:this.#Yt.get(i)??this.#Qt,o=this.count;if(a>0)switch(n){case Mt.delete:{const t=o+1-a;t>0&&this.removeQuantity(t);break}case Mt.wait:if(o>=a)return}try{const n=this.#ee.pop()??new Es(this.#p,this.#u);n.init(this.#Kt,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#Xt.push(n),this.#le(n),this.#Kt++,this.#u.dispatchEvent(pt.particleAdded,{particle:n}),n):void this.#ee.push(n)}catch(t){yt().warning(`error adding particle: ${t}`)}}clear(){this.#Xt=[],this.#Zt.clear(),this.#ce(this.#u.zLayers)}destroy(){this.#Xt=[],this.#ee.length=0,this.#Zt.clear(),this.#oe=[],this.checkParticlePositionPlugins=[],this.#Jt=[],this.#te=[],this.#se=[],this.#ie=[],this.#ae=[]}drawParticles(t){for(let e=this.#oe.length-1;e>=0;e--){const i=this.#oe[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#Xt.filter(t)}find(t){return this.#Xt.find(t)}get(t){return this.#Xt[t]}async init(){const t=this.#u,e=t.actualOptions;this.checkParticlePositionPlugins=[],this.#ae=[],this.#te=[],this.#se=[],this.#Jt=[],this.#ie=[],this.#Zt.clear(),this.#ce(t.zLayers),this.grid=new Ts(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#ae.push(e),e.particleUpdate&&this.#te.push(e),e.postUpdate&&this.#se.push(e),e.particleReset&&this.#Jt.push(e),e.postParticleUpdate&&this.#ie.push(e);await this.#u.initDrawersAndUpdaters();for(const e of this.#u.effectDrawers.values())await(e.init?.(t));for(const e of this.#u.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#Xt.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this.#he(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=ye(this.#p,this.#u,s);this.#de(n,i,t)}this.#de(t.particles,i)}setResizeFactor(t){this.#ne=t}update(t){this.grid.clear();for(const e of this.#ae)e.update?.(t);const e=this.#ue(t);for(const e of this.#se)e.postUpdate?.(t);if(this.#pe(t,e),e.size)for(const t of e)this.remove(t);this.#ne=void 0}#ge(...t){this.#ee.push(...t)}#de(t,e,i,s){const n=t.number;if(!n.density.enable)return void(void 0===i?this.#Qt=n.limit.value:(s?.number.limit.value??n.limit.value)&&this.#Yt.set(i,s?.number.limit.value??n.limit.value));const a=this.#fe(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#Qt=n.limit.value*a:this.#Yt.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#re(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#me(t){const e=this.#oe.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#fe(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}#le(t){const e=this.#me(t.position.z),i=this.#oe[e];i&&(i.push(t),this.#Zt.set(t.id,e))}#he(t,e,i){const s=this.#Xt[t];return!!s&&(s.group===e&&(this.#Xt.splice(t,1),this.#ye(s),s.destroy(i),this.#u.dispatchEvent(pt.particleRemoved,{particle:s}),this.#ge(s),!0))}#ye(t){const e=this.#Zt.get(t.id)??this.#me(t.position.z),i=this.#oe[e];if(!i)return void this.#Zt.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#Zt.delete(t.id)}#ce(t){const e=Math.max(Math.floor(t),1);if(this.#oe.length===e)for(const t of this.#oe)t.length=0;else this.#oe=this.#re(e)}#ve(t){const e=this.#me(t.position.z),i=this.#Zt.get(t.id);if(void 0===i)return void this.#le(t);if(i===e)return;const s=this.#oe[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#oe[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#Zt.set(t.id,e)}else this.#Zt.set(t.id,e)}#ue(t){const e=new Set,i=this.#ne;for(const s of this.#Xt){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#Jt)t.particleReset?.(s);for(const e of this.#te){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}return e}#pe(t,e){for(const i of this.#Xt)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#ie)e.postParticleUpdate?.(i,t);this.#ve(i)}}}class Bs{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=V(s.gravity.maxSpeed)*i,a.moveDrift=V(s.drift)*i,a.moveSpeed=V(s.speed)*i;const o=a.maxDistance;o.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,o.vertical=void 0===n.vertical?void 0:n.vertical*i}}function As(t){return!t.destroyed}function Us(t,e,...i){const s=new ve(t,e);return Tt(s,...i),s}var Vs=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#we;#Pe;#be={value:0,factor:0};#xe;#Me;#Ce;#ze;#ke;#Se;#Ie;#De;#Oe;#_e;#Re;#p;#Le;#Ee;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#xe=e,this.#Oe=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.#Le=!1,this.#we=0,this.#Ce=0,this.#De=0,this.#ke=!0,this.started=!1,this.destroyed=!1,this.#Re=!0,this.#Ie=0,this.zLayers=100,this.pageHidden=!1,this.#Ee=a,this.#Se=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Bs(this),this.canvas=new Ds(this.#p,this),this.particles=new Fs(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#_e=Us(this.#p,this),this.actualOptions=Us(this.#p,this),this.#ze=new Os(this),this.dispatchEvent(pt.containerBuilt)}get animationStatus(){return!this.#Re&&!this.pageHidden&&As(this)}get options(){return this.#_e}get sourceOptions(){return this.#Ee}addLifeTime(t){this.#De+=t}alive(){return!this.#Ce||this.#De<=this.#Ce}destroy(t=!0){if(As(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#p.clearPlugins(this),this.destroyed=!0,this.#Oe(t),this.dispatchEvent(pt.containerDestroyed)}}dispatchEvent(t,e){this.#xe(t,{container:this,data:e})}draw(t){if(!As(this))return;let e=t;this.#Me=E(t=>{e&&(this.#Ie=void 0,e=!1),this.#Te(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}yt().error(`Export plugin with type ${t} not found`)}async init(){if(!As(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#_e=Us(this.#p,this,this.#Se,this.sourceOptions),this.actualOptions=Us(this.#p,this,this.#_e),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,hdr:n,smooth:a,zLayers:r}=this.actualOptions;this.hdr=n,this.zLayers=r,this.#Ce=V(i)*o,this.#we=V(e)*o,this.#De=0,this.fpsLimit=s>0?s:120,this.#Le=a;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(pt.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(pt.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(As(this)&&(void 0!==this.#Me&&(t=this.#Me,T(t),this.#Me=void 0),!this.#Re)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Re=!0),this.dispatchEvent(pt.containerPaused)}}play(t){if(!As(this))return;const e=this.#Re||t;if(!this.#ke||this.actualOptions.autoPlay){if(this.#Re&&(this.#Re=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(pt.containerPlay),this.draw(e??!1)}else this.#ke=!1}async refresh(){if(As(this))return this.stop(),this.start()}async reset(t){if(As(this))return this.#Se=t,this.#Ee=t,this.#_e=Us(this.#p,this,this.#Se,this.sourceOptions),this.actualOptions=Us(this.#p,this,this.#_e),this.refresh()}async start(){As(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this.#ze.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(pt.containerStarted),this.play(),t()};this.#Pe=setTimeout(()=>{e()},this.#we)}))}stop(){if(As(this)&&this.started){this.#Pe&&(clearTimeout(this.#Pe),this.#Pe=void 0),this.#ke=!0,this.started=!1,this.#ze.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#Ee=this.#_e,this.dispatchEvent(pt.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#Te(t){try{if(!this.#Le&&void 0!==this.#Ie&&t<this.#Ie+o/this.fpsLimit)return void this.draw(!1);if(this.#Ie??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/o}(this.#be,t-this.#Ie,this.fpsLimit,this.#Le),this.addLifeTime(this.#be.value),this.#Ie=t,this.#be.value>o)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#be),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){yt().error("error in animation loop",t)}}}});var Hs=Object.freeze({__proto__:null,BlendPluginInstance:class{#u;#Fe;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??i,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#Fe&&(t.globalCompositeOperation=this.#Fe)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#Fe=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function $s(t,e,i,s,n,a,o){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=A(t.velocity.x,-1,1),t.velocity.y=A(t.velocity.y,-1,1));t.lastPathTime-=n}(t,o);const r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*o.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}var Ws=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-V(e.decay),t.pathDelay=V(s.delay.value)*o,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:V(i.acceleration),inverse:i.inverse},function(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=q(e.getPosition(),n),o=V(i.acceleration);e.retina.spinAcceleration=o*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?bt.clockwise:bt.counterClockwise,angle:F()*p,radius:a,acceleration:e.retina.spinAcceleration}}(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,n=function(t){return t.slow.inRange?t.slow.factor:1}(t),o=s.retina.reduceFactor,r=t.retina.moveSpeed,l=t.retina.moveDrift,c=t.size.max,h=r*(i.size?t.getRadius()/c:1)*n*(e.factor||1)*a,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const n=e.spin.direction===bt.clockwise,o={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*o.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*o.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const r=Math.max(t.canvas.size.width,t.canvas.size.height),l=r*a;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(s,t,h,o):$s(t,i,h,d,l,o,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=G(e,t.position),n=Math.abs(i),o=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(!l&&!c)return;if((l&&n>=l||c&&o>=c)&&!t.misplaced)t.misplaced=!!l&&n>l||!!c&&o>c,l&&(t.velocity.x=t.velocity.y*a-t.velocity.x),c&&(t.velocity.y=t.velocity.x*a-t.velocity.y);else if((!l||n<l)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-F()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-F())}}(t)}preInit(){return this.#Be()}redrawInit(){return this.#Be()}update(){for(const t of this.pathGenerators.values())t.update()}async#Be(){const t=await(this.#p.getPathGenerators?.(this.#u,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});class Gs{#Ae=!0;#Ue;#u;#ft;#Ve;#He;constructor(t,e){this.#u=t,this.#Ue=[],this.#Ve=e,this.#He=new Map,this.#ft={mouseDown:()=>{this.#$e()},mouseLeave:()=>{this.#We()},mouseMove:t=>{this.#Ge(t)},mouseUp:t=>{this.#je(t)},touchStart:t=>{this.#qe(t)},touchMove:t=>{this.#Ge(t)},touchEnd:t=>{this.#Ne(t)},touchCancel:t=>{this.#Ne(t)},touchEndClick:t=>{this.#Xe(t)},visibilityChange:()=>{this.#vt()}}}addListeners(){this.#Pt(!0)}init(){this.#Ue.length=0;for(const t of this.#u.plugins.filter(t=>!!t.clickPositionValid))this.#Ue.push(t)}removeListeners(){this.#Pt(!1)}#Ye(t){const e=this.#u,i=this.#Ve,s=e.actualOptions;if(this.#Ae){const t=i.interactivityData.mouse,e=t.position;if(!e)return;t.clickPosition={...e},t.clickTime=performance.now();const n=s.interactivity?.events.onClick;if(!n?.mode)return;nt(n.mode,t=>{i.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this.#We()},500)}#vt(){this.#We()}#Qe(t){const e=this.#ft,i=this.#u,s=this.#Ve,n=i.actualOptions,a=s.interactivityData.element;if(!a)return;const o=a,r=i.canvas;r.setPointerEvents(o===r.domElement?"initial":"none"),(!t||n.interactivity?.events.onHover.enable||n.interactivity?.events.onClick.enable)&&(ct(a,Fi,e.mouseMove,t),ct(a,Bi,e.touchStart,t),ct(a,Ui,e.touchMove,t),t?n.interactivity?.events.onClick.enable?(ct(a,Ai,e.touchEndClick,t),ct(a,Ei,e.mouseUp,t),ct(a,Li,e.mouseDown,t)):ct(a,Ai,e.touchEnd,t):(ct(a,Ai,e.touchEndClick,t),ct(a,Ei,e.mouseUp,t),ct(a,Li,e.mouseDown,t),ct(a,Ai,e.touchEnd,t)),ct(a,Ti,e.mouseLeave,t),ct(a,Vi,e.touchCancel,t))}#Pt(t){const e=this.#ft,i=this.#u,n=this.#Ve,a=i.actualOptions,o=a.interactivity?.detectsOn,r=i.canvas.domElement;o===Ci.window?n.interactivityData.element=Z():o===Ci.parent&&r?n.interactivityData.element=r.parentElement??r.parentNode:n.interactivityData.element=r,this.#Qe(t),ct(document,s,e.visibilityChange,t,!1)}#$e(){const{interactivityData:t}=this.#Ve,{mouse:e}=t;e.clicking=!0,e.downPosition=e.position}#je(t){const e=this.#u,i=this.#Ve,s=e.actualOptions,{mouse:n}=i.interactivityData;n.inside=!0;let a=!1;const o=n.position;if(o&&s.interactivity?.events.onClick.enable){for(const t of this.#Ue)if(a=t.clickPositionValid?.(o)??!1,a)break;a||this.#Ye(t),n.clicking=!1}}#We(){const{interactivityData:t}=this.#Ve,{mouse:e}=t;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=Ti,e.inside=!1,e.clicking=!1}#Ge(t){const e=this.#u,i=this.#Ve,s=e.actualOptions,n=i.interactivityData,a=e.canvas.domElement;if(!n.element)return;let o;if(n.mouse.inside=!0,t.type.startsWith("pointer")){this.#Ae=!0;const e=t;if(n.element===Z()){if(a){const t=a.getBoundingClientRect();o={x:e.clientX-t.left,y:e.clientY-t.top}}}else if(s.interactivity?.detectsOn===Ci.parent){const t=e.target,i=e.currentTarget;if(a){const s=t.getBoundingClientRect(),n=i.getBoundingClientRect(),r=a.getBoundingClientRect();o={x:e.offsetX+2*s.left-(n.left+r.left),y:e.offsetY+2*s.top-(n.top+r.top)}}else o={x:e.offsetX,y:e.offsetY}}else e.target===a&&(o={x:e.offsetX,y:e.offsetY})}else if(this.#Ae="touchmove"!==t.type,a){const e=t,i=e.touches[e.touches.length-1],s=a.getBoundingClientRect();if(!i)return;o={x:i.clientX-s.left,y:i.clientY-s.top}}const r=e.retina.pixelRatio;o&&(o.x*=r,o.y*=r),n.mouse.position=o,n.status=Fi}#Ne(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.delete(t.identifier);this.#We()}#Xe(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.delete(t.identifier);this.#je(t)}#qe(t){const e=t,i=Array.from(e.changedTouches);for(const t of i)this.#He.set(t.identifier,performance.now());this.#Ge(t)}}class js{interactivityData;#Ke;#u;#ze;#Ze;#Je;#ti;#ei;#p;constructor(t,e){this.#u=e,this.#p=t,this.#Je=[],this.#Ze=[],this.#ei=[],this.#Ke=new Map,this.#ze=new Gs(e,this),this.interactivityData={mouse:{clicking:!1,inside:!1}},this.#ti=function(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>{this.#ii(t)})}addClickHandler(t){const e=this.#u,i=this.interactivityData;if(e.destroyed)return;const s=i.element;if(!s)return;const n=(i,s,n)=>{if(e.destroyed)return;const a=e.retina.pixelRatio,o={x:s.x*a,y:s.y*a},r=e.particles.grid.queryCircle(o,n*a);t(i,r)};let a=!1,o=!1;this.#Ke.set("click",t=>{if(e.destroyed)return;const i=t,s={x:i.offsetX,y:i.offsetY};n(t,s,1)}),this.#Ke.set(Bi,()=>{e.destroyed||(a=!0,o=!1)}),this.#Ke.set(Ui,()=>{e.destroyed||(o=!0)}),this.#Ke.set(Ai,t=>{if(!e.destroyed){if(a&&!o){const i=t,s=i.touches[i.touches.length-1];if(!s)return;const a=e.canvas.domElement,o=a?a.getBoundingClientRect():void 0,r={x:s.clientX-(o?o.left:0),y:s.clientY-(o?o.top:0)};n(t,r,Math.max(s.radiusX,s.radiusY))}a=!1,o=!1}}),this.#Ke.set(Vi,()=>{e.destroyed||(a=!1,o=!1)});for(const[t,e]of this.#Ke)s.addEventListener(t,e)}addListeners(){this.#ze.addListeners()}clearClickHandlers(){const t=this.#u,e=this.interactivityData;if(!t.destroyed){for(const[t,i]of this.#Ke)e.element?.removeEventListener(t,i);this.#Ke.clear()}}externalInteract(t){for(const e of this.#Ze){const i=this.interactivityData;e.isEnabled(i)&&e.interact(i,t)}}handleClickMode(t){if(this.#u.destroyed)return;const e=this.interactivityData;for(const i of this.#Ze)i.handleClickMode?.(t,e)}init(){this.#ze.init();for(const t of this.#Je){switch(t.type){case zi.external:this.#Ze.push(t);break;case zi.particles:this.#ei.push(t)}t.init()}}async initInteractors(){const t=await(this.#p.getInteractors?.(this.#u,!0));t&&(this.#Je=t,this.#Ze=[],this.#ei=[])}particlesInteract(t,e){const i=this.interactivityData;for(const i of this.#Ze)i.clear(t,e);for(const s of this.#ei)s.isEnabled(t,i)&&s.interact(t,i,e)}removeListeners(){this.#ze.removeListeners()}reset(t){const e=this.interactivityData;for(const i of this.#Ze)i.isEnabled(e)&&i.reset(e,t);for(const i of this.#ei)i.isEnabled(t,e)&&i.reset(e,t)}startObserving(){const t=this.interactivityData;t.element instanceof HTMLElement&&this.#ti&&this.#ti.observe(t.element)}stopObserving(){const t=this.interactivityData;t.element instanceof HTMLElement&&this.#ti&&this.#ti.unobserve(t.element)}updateMaxDistance(){let t=0;for(const e of this.#Je)e.maxDistance>t&&(t=e.maxDistance);const e=this.#u;e.particles.grid.setCellSize(t*e.retina.pixelRatio)}#ii(t){const e=this.#u;if(!e.destroyed&&e.actualOptions.pauseOnOutsideViewport)for(const i of t)i.target===this.interactivityData.element&&(i.isIntersecting?e.play():e.pause())}}var qs=Object.freeze({__proto__:null,InteractivityPluginInstance:class{interactionManager;#u;#p;constructor(t,e){this.#u=e,this.#p=t,this.interactionManager=new js(t,e),this.#u.addClickHandler=t=>{this.interactionManager.addClickHandler(t)}}addClickHandler(t){this.interactionManager.addClickHandler(t)}clearClickHandlers(){this.interactionManager.clearClickHandlers()}destroy(){this.clearClickHandlers(),this.#p.interactors?.delete(this.#u)}particleCreated(t){const e=t,i=new Oi(this.#p,this.#u);i.load(this.#u.actualOptions.interactivity),i.load(e.options.interactivity),e.interactivity=i}particleReset(t){this.interactionManager.reset(t)}postParticleUpdate(t,e){this.interactionManager.particlesInteract(t,e)}postUpdate(t){this.interactionManager.externalInteract(t),this.interactionManager.updateMaxDistance()}async preInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}async redrawInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}start(){return this.interactionManager.addListeners(),this.interactionManager.startObserving(),Promise.resolve()}stop(){this.interactionManager.removeListeners(),this.interactionManager.stopObserving()}}});var Ns=Object.freeze({__proto__:null,MotionPluginInstance:class{#u;constructor(t){this.#u=t}async init(){const t=this.#u,e=t.actualOptions.motion;if(!e||!e.disable&&!e.reduce.value)return void(t.retina.reduceFactor=1);const i=J("(prefers-reduced-motion: reduce)");if(!i)return void(t.retina.reduceFactor=1);this.#si(i);i.addEventListener("change",()=>{(async()=>{this.#si(i);try{await t.refresh()}catch{}})()}),await Promise.resolve()}#si(t){const e=this.#u,i=e.actualOptions.motion;i&&(t.matches?i.disable?e.retina.reduceFactor=0:e.retina.reduceFactor=i.reduce.value?1/i.reduce.factor:1:e.retina.reduceFactor=1)}}});t.loadConfettiCannonPreset=Ms,t.tsParticles=Le}),Object.assign(globalThis.window||globalThis,{loadConfettiCannonPreset:(globalThis.__tsParticlesInternals.presets.confettiCannon||{}).loadConfettiCannonPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.2.0 */
2
+ /* Preset v4.2.1 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/palette-confetti'), require('@tsparticles/interaction-external-cannon'), require('@tsparticles/plugin-interactivity'), require('@tsparticles/updater-life'), require('@tsparticles/plugin-motion'), require('@tsparticles/updater-roll'), require('@tsparticles/updater-rotate'), require('@tsparticles/shape-square'), require('@tsparticles/updater-tilt'), require('@tsparticles/updater-wobble')) :
5
5
  typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/palette-confetti', '@tsparticles/interaction-external-cannon', '@tsparticles/plugin-interactivity', '@tsparticles/updater-life', '@tsparticles/plugin-motion', '@tsparticles/updater-roll', '@tsparticles/updater-rotate', '@tsparticles/shape-square', '@tsparticles/updater-tilt', '@tsparticles/updater-wobble'], factory) :