tsparticles 1.41.0 → 1.41.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.
Files changed (193) hide show
  1. package/Core/Container.js +2 -2
  2. package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  3. package/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  4. package/Core/Particles.d.ts +3 -3
  5. package/Core/Particles.js +7 -7
  6. package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  7. package/Core/Utils/FrameManager.d.ts +1 -1
  8. package/Core/Utils/FrameManager.js +2 -2
  9. package/Core/Utils/InteractionManager.d.ts +2 -2
  10. package/Core/Utils/InteractionManager.js +4 -4
  11. package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  12. package/Interactions/External/Attract/Attractor.d.ts +1 -1
  13. package/Interactions/External/Attract/Attractor.js +1 -1
  14. package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  15. package/Interactions/External/Bounce/Bouncer.js +1 -1
  16. package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  17. package/Interactions/External/Bubble/Bubbler.js +1 -1
  18. package/Interactions/External/Connect/Connector.d.ts +1 -1
  19. package/Interactions/External/Connect/Connector.js +1 -1
  20. package/Interactions/External/Grab/Grabber.d.ts +1 -1
  21. package/Interactions/External/Grab/Grabber.js +1 -1
  22. package/Interactions/External/Repulse/Repulser.d.ts +1 -1
  23. package/Interactions/External/Repulse/Repulser.js +1 -1
  24. package/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  25. package/Interactions/External/Trail/TrailMaker.js +1 -1
  26. package/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  27. package/Interactions/Particles/Attract/Attractor.js +1 -1
  28. package/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  29. package/Interactions/Particles/Collisions/Collider.js +1 -1
  30. package/Interactions/Particles/Links/Linker.d.ts +1 -1
  31. package/Interactions/Particles/Links/Linker.js +1 -1
  32. package/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  33. package/browser/Core/Container.js +2 -2
  34. package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  35. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  36. package/browser/Core/Particles.d.ts +3 -3
  37. package/browser/Core/Particles.js +7 -7
  38. package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  39. package/browser/Core/Utils/FrameManager.d.ts +1 -1
  40. package/browser/Core/Utils/FrameManager.js +2 -2
  41. package/browser/Core/Utils/InteractionManager.d.ts +2 -2
  42. package/browser/Core/Utils/InteractionManager.js +4 -4
  43. package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  44. package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
  45. package/browser/Interactions/External/Attract/Attractor.js +1 -1
  46. package/browser/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  47. package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
  48. package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  49. package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
  50. package/browser/Interactions/External/Connect/Connector.d.ts +1 -1
  51. package/browser/Interactions/External/Connect/Connector.js +1 -1
  52. package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
  53. package/browser/Interactions/External/Grab/Grabber.js +1 -1
  54. package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
  55. package/browser/Interactions/External/Repulse/Repulser.js +1 -1
  56. package/browser/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  57. package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
  58. package/browser/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  59. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  60. package/browser/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  61. package/browser/Interactions/Particles/Collisions/Collider.js +1 -1
  62. package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
  63. package/browser/Interactions/Particles/Links/Linker.js +1 -1
  64. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  65. package/esm/Core/Container.js +2 -2
  66. package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  67. package/esm/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  68. package/esm/Core/Particles.d.ts +3 -3
  69. package/esm/Core/Particles.js +7 -7
  70. package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  71. package/esm/Core/Utils/FrameManager.d.ts +1 -1
  72. package/esm/Core/Utils/FrameManager.js +2 -2
  73. package/esm/Core/Utils/InteractionManager.d.ts +2 -2
  74. package/esm/Core/Utils/InteractionManager.js +4 -4
  75. package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  76. package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
  77. package/esm/Interactions/External/Attract/Attractor.js +1 -1
  78. package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  79. package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
  80. package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  81. package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
  82. package/esm/Interactions/External/Connect/Connector.d.ts +1 -1
  83. package/esm/Interactions/External/Connect/Connector.js +1 -1
  84. package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
  85. package/esm/Interactions/External/Grab/Grabber.js +1 -1
  86. package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
  87. package/esm/Interactions/External/Repulse/Repulser.js +1 -1
  88. package/esm/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  89. package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
  90. package/esm/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  91. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  92. package/esm/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  93. package/esm/Interactions/Particles/Collisions/Collider.js +1 -1
  94. package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
  95. package/esm/Interactions/Particles/Links/Linker.js +1 -1
  96. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  97. package/package.json +1 -1
  98. package/report.html +6 -5
  99. package/report.slim.html +6 -5
  100. package/tsparticles.engine.js +15 -15
  101. package/tsparticles.engine.min.js +2 -2
  102. package/tsparticles.interaction.external.attract.js +14 -14
  103. package/tsparticles.interaction.external.attract.min.js +2 -2
  104. package/tsparticles.interaction.external.bounce.js +14 -14
  105. package/tsparticles.interaction.external.bounce.min.js +2 -2
  106. package/tsparticles.interaction.external.bubble.js +14 -14
  107. package/tsparticles.interaction.external.bubble.min.js +2 -2
  108. package/tsparticles.interaction.external.connect.js +14 -14
  109. package/tsparticles.interaction.external.connect.min.js +2 -2
  110. package/tsparticles.interaction.external.grab.js +14 -14
  111. package/tsparticles.interaction.external.grab.min.js +2 -2
  112. package/tsparticles.interaction.external.repulse.js +14 -14
  113. package/tsparticles.interaction.external.repulse.min.js +2 -2
  114. package/tsparticles.interaction.external.trail.js +14 -14
  115. package/tsparticles.interaction.external.trail.min.js +2 -2
  116. package/tsparticles.interaction.particles.attract.js +14 -14
  117. package/tsparticles.interaction.particles.attract.min.js +2 -2
  118. package/tsparticles.interaction.particles.collisions.js +14 -14
  119. package/tsparticles.interaction.particles.collisions.min.js +2 -2
  120. package/tsparticles.interaction.particles.links.js +14 -14
  121. package/tsparticles.interaction.particles.links.min.js +2 -2
  122. package/tsparticles.js +27 -27
  123. package/tsparticles.min.js +2 -2
  124. package/tsparticles.pathseg.min.js +1 -1
  125. package/tsparticles.plugins.absorbers.js +13 -13
  126. package/tsparticles.plugins.absorbers.min.js +1 -1
  127. package/tsparticles.plugins.emitters.js +13 -13
  128. package/tsparticles.plugins.emitters.min.js +1 -1
  129. package/tsparticles.plugins.polygonMask.js +15 -15
  130. package/tsparticles.plugins.polygonMask.min.js +2 -2
  131. package/tsparticles.shape.circle.min.js +1 -1
  132. package/tsparticles.shape.image.js +13 -13
  133. package/tsparticles.shape.image.min.js +1 -1
  134. package/tsparticles.shape.line.min.js +1 -1
  135. package/tsparticles.shape.polygon.min.js +1 -1
  136. package/tsparticles.shape.square.min.js +1 -1
  137. package/tsparticles.shape.star.min.js +1 -1
  138. package/tsparticles.shape.text.js +13 -13
  139. package/tsparticles.shape.text.min.js +1 -1
  140. package/tsparticles.slim.js +24 -24
  141. package/tsparticles.slim.min.js +2 -2
  142. package/tsparticles.updater.angle.js +13 -13
  143. package/tsparticles.updater.angle.min.js +1 -1
  144. package/tsparticles.updater.color.js +13 -13
  145. package/tsparticles.updater.color.min.js +1 -1
  146. package/tsparticles.updater.life.js +13 -13
  147. package/tsparticles.updater.life.min.js +1 -1
  148. package/tsparticles.updater.opacity.js +13 -13
  149. package/tsparticles.updater.opacity.min.js +1 -1
  150. package/tsparticles.updater.outModes.js +13 -13
  151. package/tsparticles.updater.outModes.min.js +1 -1
  152. package/tsparticles.updater.roll.js +13 -13
  153. package/tsparticles.updater.roll.min.js +1 -1
  154. package/tsparticles.updater.size.js +13 -13
  155. package/tsparticles.updater.size.min.js +1 -1
  156. package/tsparticles.updater.strokeColor.js +13 -13
  157. package/tsparticles.updater.strokeColor.min.js +1 -1
  158. package/tsparticles.updater.tilt.js +13 -13
  159. package/tsparticles.updater.tilt.min.js +1 -1
  160. package/tsparticles.updater.wobble.js +13 -13
  161. package/tsparticles.updater.wobble.min.js +1 -1
  162. package/umd/Core/Container.js +2 -2
  163. package/umd/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  164. package/umd/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  165. package/umd/Core/Particles.d.ts +3 -3
  166. package/umd/Core/Particles.js +7 -7
  167. package/umd/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  168. package/umd/Core/Utils/FrameManager.d.ts +1 -1
  169. package/umd/Core/Utils/FrameManager.js +2 -2
  170. package/umd/Core/Utils/InteractionManager.d.ts +2 -2
  171. package/umd/Core/Utils/InteractionManager.js +4 -4
  172. package/umd/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  173. package/umd/Interactions/External/Attract/Attractor.d.ts +1 -1
  174. package/umd/Interactions/External/Attract/Attractor.js +1 -1
  175. package/umd/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  176. package/umd/Interactions/External/Bounce/Bouncer.js +1 -1
  177. package/umd/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  178. package/umd/Interactions/External/Bubble/Bubbler.js +1 -1
  179. package/umd/Interactions/External/Connect/Connector.d.ts +1 -1
  180. package/umd/Interactions/External/Connect/Connector.js +1 -1
  181. package/umd/Interactions/External/Grab/Grabber.d.ts +1 -1
  182. package/umd/Interactions/External/Grab/Grabber.js +1 -1
  183. package/umd/Interactions/External/Repulse/Repulser.d.ts +1 -1
  184. package/umd/Interactions/External/Repulse/Repulser.js +1 -1
  185. package/umd/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  186. package/umd/Interactions/External/Trail/TrailMaker.js +1 -1
  187. package/umd/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  188. package/umd/Interactions/Particles/Attract/Attractor.js +1 -1
  189. package/umd/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  190. package/umd/Interactions/Particles/Collisions/Collider.js +1 -1
  191. package/umd/Interactions/Particles/Links/Linker.d.ts +1 -1
  192. package/umd/Interactions/Particles/Links/Linker.js +1 -1
  193. package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
@@ -544,20 +544,20 @@
544
544
  }
545
545
  }
546
546
  }
547
- externalInteract(delta) {
547
+ async externalInteract(delta) {
548
548
  for (const interactor of this.externalInteractors) {
549
549
  if (interactor.isEnabled()) {
550
- interactor.interact(delta);
550
+ await interactor.interact(delta);
551
551
  }
552
552
  }
553
553
  }
554
- particlesInteract(particle, delta) {
554
+ async particlesInteract(particle, delta) {
555
555
  for (const interactor of this.externalInteractors) {
556
556
  interactor.reset(particle);
557
557
  }
558
558
  for (const interactor of this.particleInteractors) {
559
559
  if (interactor.isEnabled(particle)) {
560
- interactor.interact(particle, delta);
560
+ await interactor.interact(particle, delta);
561
561
  }
562
562
  }
563
563
  }
@@ -2949,10 +2949,10 @@
2949
2949
  }
2950
2950
  container.pathGenerator.init(container);
2951
2951
  }
2952
- redraw() {
2952
+ async redraw() {
2953
2953
  this.clear();
2954
2954
  this.init();
2955
- this.draw({
2955
+ await this.draw({
2956
2956
  value: 0,
2957
2957
  factor: 0
2958
2958
  });
@@ -2977,7 +2977,7 @@
2977
2977
  remove(particle, group, override) {
2978
2978
  this.removeAt(this.array.indexOf(particle), undefined, group, override);
2979
2979
  }
2980
- update(delta) {
2980
+ async update(delta) {
2981
2981
  const container = this.container;
2982
2982
  const particlesToDelete = [];
2983
2983
  container.pathGenerator.update();
@@ -3011,23 +3011,23 @@
3011
3011
  for (const particle of particlesToDelete) {
3012
3012
  this.remove(particle);
3013
3013
  }
3014
- this.interactionManager.externalInteract(delta);
3014
+ await this.interactionManager.externalInteract(delta);
3015
3015
  for (const particle of container.particles.array) {
3016
3016
  for (const updater of this.updaters) {
3017
3017
  updater.update(particle, delta);
3018
3018
  }
3019
3019
  if (!particle.destroyed && !particle.spawning) {
3020
- this.interactionManager.particlesInteract(particle, delta);
3020
+ await this.interactionManager.particlesInteract(particle, delta);
3021
3021
  }
3022
3022
  }
3023
3023
  delete container.canvas.resizeFactor;
3024
3024
  }
3025
- draw(delta) {
3025
+ async draw(delta) {
3026
3026
  const container = this.container;
3027
3027
  container.canvas.clear();
3028
3028
  const canvasSize = this.container.canvas.size;
3029
3029
  this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
3030
- this.update(delta);
3030
+ await this.update(delta);
3031
3031
  if (this.needsSort) {
3032
3032
  this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
3033
3033
  this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
@@ -3388,12 +3388,12 @@
3388
3388
  }
3389
3389
  draw(force) {
3390
3390
  let refreshTime = force;
3391
- this.drawAnimationFrame = animate()((timestamp => {
3391
+ this.drawAnimationFrame = animate()((async timestamp => {
3392
3392
  if (refreshTime) {
3393
3393
  this.lastFrameTime = undefined;
3394
3394
  refreshTime = false;
3395
3395
  }
3396
- this.drawer.nextFrame(timestamp);
3396
+ await this.drawer.nextFrame(timestamp);
3397
3397
  }));
3398
3398
  }
3399
3399
  getAnimationStatus() {
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(window,(function(){return function(){"use strict";var e={d:function(o,t){for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{loadImageShape:function(){return g}});class t{}t.generatedAttribute="generated",t.randomColorValue="random",t.midColorValue="mid",t.touchEndEvent="touchend",t.mouseDownEvent="mousedown",t.mouseUpEvent="mouseup",t.mouseMoveEvent="mousemove",t.touchStartEvent="touchstart",t.touchMoveEvent="touchmove",t.mouseLeaveEvent="mouseleave",t.mouseOutEvent="mouseout",t.touchCancelEvent="touchcancel",t.resizeEvent="resize",t.visibilityChangeEvent="visibilitychange",t.noPolygonDataLoaded="No polygon data loaded.",t.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;function r(e,o){return`hsla(${e.h}, ${e.s}%, ${e.l}%, ${null!=o?o:1})`}new WeakMap;const a=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function n(e){return new Promise((o=>{e.loading=!0;const t=new Image;t.addEventListener("load",(()=>{e.element=t,e.loading=!1,o()})),t.addEventListener("error",(()=>{e.error=!0,e.loading=!1,console.error(`Error tsParticles - loading image: ${e.source}`),o()})),t.src=e.source}))}async function i(e){if("svg"!==e.type)return void await n(e);e.loading=!0;const o=await fetch(e.source);e.loading=!1,o.ok||(console.error("Error tsParticles - Image not found"),e.error=!0),e.error||(e.svgData=await o.text())}function s(e,o,t,i){var s,l,c;const d=function(e,o,t){const{svgData:n}=e;if(!n)return"";const i=r(o,t);if(n.includes("fill"))return n.replace(a,(()=>i));const s=n.indexOf(">");return`${n.substring(0,s)} fill="${i}"${n.substring(s)}`}(e,t,null!==(l=null===(s=i.opacity)||void 0===s?void 0:s.value)&&void 0!==l?l:1),u=new Blob([d],{type:"image/svg+xml"}),g=URL||window.URL||window.webkitURL||window,f=g.createObjectURL(u),v=new Image,m={data:Object.assign(Object.assign({},e),{svgData:d}),ratio:o.width/o.height,replaceColor:null!==(c=o.replaceColor)&&void 0!==c?c:o.replace_color,source:o.src};return v.addEventListener("load",(()=>{const o=i.image;o&&(o.loaded=!0,e.element=v),g.revokeObjectURL(f)})),v.addEventListener("error",(()=>{g.revokeObjectURL(f);const o=Object.assign(Object.assign({},e),{error:!1,loading:!0});n(o).then((()=>{const t=i.image;t&&(e.element=o.element,t.loaded=!0)}))})),v.src=f,m}var l,c=function(e,o,t,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof o?e!==o||!a:!o.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,t):a?a.value=t:o.set(e,t),t},d=function(e,o,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof o?e!==o||!r:!o.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:o.get(e)};class u{constructor(){l.set(this,void 0),c(this,l,[],"f")}getSidesCount(){return 12}getImages(e){const o=d(this,l,"f").find((o=>o.id===e.id));return o||(d(this,l,"f").push({id:e.id,images:[]}),this.getImages(e))}addImage(e,o){const t=this.getImages(e);null==t||t.images.push(o)}destroy(){c(this,l,[],"f")}async loadImageShape(e,o){const t=o.src;if(!t)throw new Error("Error tsParticles - No image.src");try{const r={source:t,type:t.substr(t.length-3),error:!1,loading:!0};this.addImage(e,r);const a=o.replaceColor?i:n;await a(r)}catch(e){throw new Error(`tsParticles error - ${o.src} not found`)}}draw(e,o,t,r){var a,n;const i=o.image,s=null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.element;if(!s)return;const l=null!==(n=null==i?void 0:i.ratio)&&void 0!==n?n:1,c={x:-t,y:-t};(null==i?void 0:i.data.svgData)&&(null==i?void 0:i.replaceColor)||(e.globalAlpha=r),e.drawImage(s,c.x,c.y,2*t,2*t/l),(null==i?void 0:i.data.svgData)&&(null==i?void 0:i.replaceColor)||(e.globalAlpha=1)}loadShape(e){var o,t,r;if("image"!==e.shape&&"images"!==e.shape)return;const a=this.getImages(e.container).images,n=e.shapeData,i=a.find((e=>e.source===n.src));let l;if(!i)return void this.loadImageShape(e.container,n).then((()=>{this.loadShape(e)}));if(i.error)return;const c=e.getFillColor();l=i.svgData&&n.replaceColor&&c?s(i,n,c,e):{data:i,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(o=n.replaceColor)&&void 0!==o?o:n.replace_color,source:n.src},l.ratio||(l.ratio=1);const d={image:l,fill:null!==(t=n.fill)&&void 0!==t?t:e.fill,close:null!==(r=n.close)&&void 0!==r?r:e.close};e.image=d.image,e.fill=d.fill,e.close=d.close}}async function g(e){const o=new u;await e.addShape("image",o),await e.addShape("images",o)}return l=new WeakMap,o}()}));
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(window,(function(){return function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{loadLineShape:function(){return n}});class t{getSidesCount(){return 1}draw(e,o,t){e.moveTo(-t/2,0),e.lineTo(t/2,0)}}async function n(e){await e.addShape("line",new t)}return o}()}));
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(window,(function(){return function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{loadGenericPolygonShape:function(){return a},loadPolygonShape:function(){return u},loadTriangleShape:function(){return i}});class n{getSidesCount(e){var t,n;const o=e.shapeData;return null!==(n=null!==(t=null==o?void 0:o.sides)&&void 0!==t?t:null==o?void 0:o.nb_sides)&&void 0!==n?n:5}draw(e,t,n){const o=this.getCenter(t,n),r=this.getSidesData(t,n),a=r.count.numerator*r.count.denominator,i=r.count.numerator/r.count.denominator,u=180*(i-2)/i,l=Math.PI-Math.PI*u/180;if(e){e.beginPath(),e.translate(o.x,o.y),e.moveTo(0,0);for(let t=0;t<a;t++)e.lineTo(r.length,0),e.translate(r.length,0),e.rotate(l)}}}class o extends n{getSidesData(e,t){var n,o;const r=e.shapeData,a=null!==(o=null!==(n=null==r?void 0:r.sides)&&void 0!==n?n:null==r?void 0:r.nb_sides)&&void 0!==o?o:5;return{count:{denominator:1,numerator:a},length:2.66*t/(a/3)}}getCenter(e,t){return{x:-t/(this.getSidesCount(e)/3.5),y:-t/.76}}}class r extends n{getSidesCount(){return 3}getSidesData(e,t){return{count:{denominator:2,numerator:3},length:2*t}}getCenter(e,t){return{x:-t,y:t/1.66}}}async function a(e){await e.addShape("polygon",new o)}async function i(e){await e.addShape("triangle",new r)}async function u(e){await a(e),await i(e)}return t}()}));
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{loadSquareShape:function(){return r}});const o=Math.sqrt(2);class n{getSidesCount(){return 4}draw(e,t,n){e.rect(-n/o,-n/o,2*n/o,2*n/o)}}async function r(e){const t=new n;await e.addShape("edge",t),await e.addShape("square",t)}return t}()}));
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{loadStarShape:function(){return n}});class o{getSidesCount(e){var t,o;const n=e.shapeData;return null!==(o=null!==(t=null==n?void 0:n.sides)&&void 0!==t?t:null==n?void 0:n.nb_sides)&&void 0!==o?o:5}draw(e,t,o){var n;const r=t.shapeData,i=this.getSidesCount(t),a=null!==(n=null==r?void 0:r.inset)&&void 0!==n?n:2;e.moveTo(0,0-o);for(let t=0;t<i;t++)e.rotate(Math.PI/i),e.lineTo(0,0-o*a),e.rotate(Math.PI/i),e.lineTo(0,0-o)}}async function n(e){await e.addShape("star",new o)}return t}()}));
@@ -544,20 +544,20 @@
544
544
  }
545
545
  }
546
546
  }
547
- externalInteract(delta) {
547
+ async externalInteract(delta) {
548
548
  for (const interactor of this.externalInteractors) {
549
549
  if (interactor.isEnabled()) {
550
- interactor.interact(delta);
550
+ await interactor.interact(delta);
551
551
  }
552
552
  }
553
553
  }
554
- particlesInteract(particle, delta) {
554
+ async particlesInteract(particle, delta) {
555
555
  for (const interactor of this.externalInteractors) {
556
556
  interactor.reset(particle);
557
557
  }
558
558
  for (const interactor of this.particleInteractors) {
559
559
  if (interactor.isEnabled(particle)) {
560
- interactor.interact(particle, delta);
560
+ await interactor.interact(particle, delta);
561
561
  }
562
562
  }
563
563
  }
@@ -2949,10 +2949,10 @@
2949
2949
  }
2950
2950
  container.pathGenerator.init(container);
2951
2951
  }
2952
- redraw() {
2952
+ async redraw() {
2953
2953
  this.clear();
2954
2954
  this.init();
2955
- this.draw({
2955
+ await this.draw({
2956
2956
  value: 0,
2957
2957
  factor: 0
2958
2958
  });
@@ -2977,7 +2977,7 @@
2977
2977
  remove(particle, group, override) {
2978
2978
  this.removeAt(this.array.indexOf(particle), undefined, group, override);
2979
2979
  }
2980
- update(delta) {
2980
+ async update(delta) {
2981
2981
  const container = this.container;
2982
2982
  const particlesToDelete = [];
2983
2983
  container.pathGenerator.update();
@@ -3011,23 +3011,23 @@
3011
3011
  for (const particle of particlesToDelete) {
3012
3012
  this.remove(particle);
3013
3013
  }
3014
- this.interactionManager.externalInteract(delta);
3014
+ await this.interactionManager.externalInteract(delta);
3015
3015
  for (const particle of container.particles.array) {
3016
3016
  for (const updater of this.updaters) {
3017
3017
  updater.update(particle, delta);
3018
3018
  }
3019
3019
  if (!particle.destroyed && !particle.spawning) {
3020
- this.interactionManager.particlesInteract(particle, delta);
3020
+ await this.interactionManager.particlesInteract(particle, delta);
3021
3021
  }
3022
3022
  }
3023
3023
  delete container.canvas.resizeFactor;
3024
3024
  }
3025
- draw(delta) {
3025
+ async draw(delta) {
3026
3026
  const container = this.container;
3027
3027
  container.canvas.clear();
3028
3028
  const canvasSize = this.container.canvas.size;
3029
3029
  this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
3030
- this.update(delta);
3030
+ await this.update(delta);
3031
3031
  if (this.needsSort) {
3032
3032
  this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
3033
3033
  this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
@@ -3388,12 +3388,12 @@
3388
3388
  }
3389
3389
  draw(force) {
3390
3390
  let refreshTime = force;
3391
- this.drawAnimationFrame = animate()((timestamp => {
3391
+ this.drawAnimationFrame = animate()((async timestamp => {
3392
3392
  if (refreshTime) {
3393
3393
  this.lastFrameTime = undefined;
3394
3394
  refreshTime = false;
3395
3395
  }
3396
- this.drawer.nextFrame(timestamp);
3396
+ await this.drawer.nextFrame(timestamp);
3397
3397
  }));
3398
3398
  }
3399
3399
  getAnimationStatus() {
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.41.0 by Matteo Bruni */
1
+ /*! tsParticles v1.41.1 by Matteo Bruni */
2
2
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{loadTextShape:function(){return l}});class o{}o.generatedAttribute="generated",o.randomColorValue="random",o.midColorValue="mid",o.touchEndEvent="touchend",o.mouseDownEvent="mousedown",o.mouseUpEvent="mouseup",o.mouseMoveEvent="mousemove",o.touchStartEvent="touchstart",o.touchMoveEvent="touchmove",o.mouseLeaveEvent="mouseleave",o.mouseOutEvent="mouseout",o.touchCancelEvent="touchcancel",o.resizeEvent="resize",o.visibilityChangeEvent="visibilitychange",o.noPolygonDataLoaded="No polygon data loaded.",o.noPolygonFound="No polygon found, you need to specify SVG url in config.";new WeakMap;new WeakMap;new WeakMap,new WeakSet;new WeakMap;new WeakMap;new WeakMap;function n(e,t){return e===t||t instanceof Array&&t.indexOf(e)>-1}async function a(e){var t,o;try{await document.fonts.load(`${null!==(t=e.weight)&&void 0!==t?t:"400"} 36px '${null!==(o=e.font)&&void 0!==o?o:"Verdana"}'`)}catch(e){}}function r(e,t,o=!0){return e[void 0!==t&&o?t%e.length:function(e){return Math.floor(Math.random()*e.length)}(e)]}new WeakMap;const i=["text","character","char"];class u{getSidesCount(){return 12}async init(e){const t=e.actualOptions;if(i.find((e=>n(e,t.particles.shape.type)))){const e=i.map((e=>t.particles.shape.options[e])).find((e=>!!e));if(e instanceof Array){const t=[];for(const o of e)t.push(a(o));await Promise.allSettled(t)}else void 0!==e&&await a(e)}}draw(e,t,o,n){var a,i,u;const l=t.shapeData;if(void 0===l)return;const c=l.value;if(void 0===c)return;const s=t;void 0===s.text&&(s.text=c instanceof Array?r(c,t.randomIndexData):c);const d=s.text,f=null!==(a=l.style)&&void 0!==a?a:"",p=null!==(i=l.weight)&&void 0!==i?i:"400",v=2*Math.round(o),y=null!==(u=l.font)&&void 0!==u?u:"Verdana",h=t.fill,m=d.length*o/2;e.font=`${f} ${p} ${v}px "${y}"`;const g={x:-m,y:o/2};e.globalAlpha=n,h?e.fillText(d,g.x,g.y):e.strokeText(d,g.x,g.y),e.globalAlpha=1}}async function l(e){const t=new u;for(const o of i)await e.addShape(o,t)}return t}()}));
@@ -1891,7 +1891,7 @@
1891
1891
  constructor(container) {
1892
1892
  this.container = container;
1893
1893
  }
1894
- nextFrame(timestamp) {
1894
+ async nextFrame(timestamp) {
1895
1895
  var _a;
1896
1896
  try {
1897
1897
  const container = this.container;
@@ -1911,7 +1911,7 @@
1911
1911
  container.draw(false);
1912
1912
  return;
1913
1913
  }
1914
- container.particles.draw(delta);
1914
+ await container.particles.draw(delta);
1915
1915
  if (container.duration > 0 && container.lifeTime > container.duration) {
1916
1916
  container.destroy();
1917
1917
  return;
@@ -1962,20 +1962,20 @@
1962
1962
  }
1963
1963
  }
1964
1964
  }
1965
- externalInteract(delta) {
1965
+ async externalInteract(delta) {
1966
1966
  for (const interactor of this.externalInteractors) {
1967
1967
  if (interactor.isEnabled()) {
1968
- interactor.interact(delta);
1968
+ await interactor.interact(delta);
1969
1969
  }
1970
1970
  }
1971
1971
  }
1972
- particlesInteract(particle, delta) {
1972
+ async particlesInteract(particle, delta) {
1973
1973
  for (const interactor of this.externalInteractors) {
1974
1974
  interactor.reset(particle);
1975
1975
  }
1976
1976
  for (const interactor of this.particleInteractors) {
1977
1977
  if (interactor.isEnabled(particle)) {
1978
- interactor.interact(particle, delta);
1978
+ await interactor.interact(particle, delta);
1979
1979
  }
1980
1980
  }
1981
1981
  }
@@ -5828,10 +5828,10 @@
5828
5828
  }
5829
5829
  container.pathGenerator.init(container);
5830
5830
  }
5831
- redraw() {
5831
+ async redraw() {
5832
5832
  this.clear();
5833
5833
  this.init();
5834
- this.draw({
5834
+ await this.draw({
5835
5835
  value: 0,
5836
5836
  factor: 0
5837
5837
  });
@@ -5856,7 +5856,7 @@
5856
5856
  remove(particle, group, override) {
5857
5857
  this.removeAt(this.array.indexOf(particle), undefined, group, override);
5858
5858
  }
5859
- update(delta) {
5859
+ async update(delta) {
5860
5860
  const container = this.container;
5861
5861
  const particlesToDelete = [];
5862
5862
  container.pathGenerator.update();
@@ -5890,23 +5890,23 @@
5890
5890
  for (const particle of particlesToDelete) {
5891
5891
  this.remove(particle);
5892
5892
  }
5893
- this.interactionManager.externalInteract(delta);
5893
+ await this.interactionManager.externalInteract(delta);
5894
5894
  for (const particle of container.particles.array) {
5895
5895
  for (const updater of this.updaters) {
5896
5896
  updater.update(particle, delta);
5897
5897
  }
5898
5898
  if (!particle.destroyed && !particle.spawning) {
5899
- this.interactionManager.particlesInteract(particle, delta);
5899
+ await this.interactionManager.particlesInteract(particle, delta);
5900
5900
  }
5901
5901
  }
5902
5902
  delete container.canvas.resizeFactor;
5903
5903
  }
5904
- draw(delta) {
5904
+ async draw(delta) {
5905
5905
  const container = this.container;
5906
5906
  container.canvas.clear();
5907
5907
  const canvasSize = this.container.canvas.size;
5908
5908
  this.quadTree = new QuadTree(new Rectangle(-canvasSize.width / 4, -canvasSize.height / 4, canvasSize.width * 3 / 2, canvasSize.height * 3 / 2), 4);
5909
- this.update(delta);
5909
+ await this.update(delta);
5910
5910
  if (this.needsSort) {
5911
5911
  this.zArray.sort(((a, b) => b.position.z - a.position.z || a.id - b.id));
5912
5912
  this.lastZIndex = this.zArray[this.zArray.length - 1].position.z;
@@ -6267,12 +6267,12 @@
6267
6267
  }
6268
6268
  draw(force) {
6269
6269
  let refreshTime = force;
6270
- this.drawAnimationFrame = animate()((timestamp => {
6270
+ this.drawAnimationFrame = animate()((async timestamp => {
6271
6271
  if (refreshTime) {
6272
6272
  this.lastFrameTime = undefined;
6273
6273
  refreshTime = false;
6274
6274
  }
6275
- this.drawer.nextFrame(timestamp);
6275
+ await this.drawer.nextFrame(timestamp);
6276
6276
  }));
6277
6277
  }
6278
6278
  getAnimationStatus() {
@@ -6995,7 +6995,7 @@
6995
6995
  return isInArray("attract", hoverMode) || isInArray("attract", clickMode);
6996
6996
  }
6997
6997
  reset() {}
6998
- interact() {
6998
+ async interact() {
6999
6999
  const container = this.container, options = container.actualOptions, mouseMoveStatus = container.interactivity.status === Constants.mouseMoveEvent, events = options.interactivity.events, hoverEnabled = events.onHover.enable, hoverMode = events.onHover.mode, clickEnabled = events.onClick.enable, clickMode = events.onClick.mode;
7000
7000
  if (mouseMoveStatus && hoverEnabled && isInArray("attract", hoverMode)) {
7001
7001
  this.hoverAttract();
@@ -7059,7 +7059,7 @@
7059
7059
  const container = this.container, options = container.actualOptions, mouse = container.interactivity.mouse, events = options.interactivity.events, divs = events.onDiv;
7060
7060
  return mouse.position && events.onHover.enable && isInArray("bounce", events.onHover.mode) || isDivModeEnabled("bounce", divs);
7061
7061
  }
7062
- interact() {
7062
+ async interact() {
7063
7063
  const container = this.container, options = container.actualOptions, events = options.interactivity.events, mouseMoveStatus = container.interactivity.status === Constants.mouseMoveEvent, hoverEnabled = events.onHover.enable, hoverMode = events.onHover.mode, divs = events.onDiv;
7064
7064
  if (mouseMoveStatus && hoverEnabled && isInArray("bounce", hoverMode)) {
7065
7065
  this.processMouseBounce();
@@ -7140,7 +7140,7 @@
7140
7140
  delete particle.bubble.radius;
7141
7141
  delete particle.bubble.color;
7142
7142
  }
7143
- interact() {
7143
+ async interact() {
7144
7144
  const options = this.container.actualOptions, events = options.interactivity.events, onHover = events.onHover, onClick = events.onClick, hoverEnabled = onHover.enable, hoverMode = onHover.mode, clickEnabled = onClick.enable, clickMode = onClick.mode, divs = events.onDiv;
7145
7145
  if (hoverEnabled && isInArray("bubble", hoverMode)) {
7146
7146
  this.hoverBubble();
@@ -7356,7 +7356,7 @@
7356
7356
  return isInArray("connect", events.onHover.mode);
7357
7357
  }
7358
7358
  reset() {}
7359
- interact() {
7359
+ async interact() {
7360
7360
  const container = this.container, options = container.actualOptions;
7361
7361
  if (options.interactivity.events.onHover.enable && container.interactivity.status === "mousemove") {
7362
7362
  const mousePos = container.interactivity.mouse.position;
@@ -7390,7 +7390,7 @@
7390
7390
  return events.onHover.enable && !!mouse.position && isInArray("grab", events.onHover.mode);
7391
7391
  }
7392
7392
  reset() {}
7393
- interact() {
7393
+ async interact() {
7394
7394
  var _a;
7395
7395
  const container = this.container, options = container.actualOptions, interactivity = options.interactivity;
7396
7396
  if (interactivity.events.onHover.enable && container.interactivity.status === Constants.mouseMoveEvent) {
@@ -7437,7 +7437,7 @@
7437
7437
  return isInArray("repulse", hoverMode) || isInArray("repulse", clickMode) || divRepulse;
7438
7438
  }
7439
7439
  reset() {}
7440
- interact() {
7440
+ async interact() {
7441
7441
  const container = this.container, options = container.actualOptions, mouseMoveStatus = container.interactivity.status === Constants.mouseMoveEvent, events = options.interactivity.events, hoverEnabled = events.onHover.enable, hoverMode = events.onHover.mode, clickEnabled = events.onClick.enable, clickMode = events.onClick.mode, divs = events.onDiv;
7442
7442
  if (mouseMoveStatus && hoverEnabled && isInArray("repulse", hoverMode)) {
7443
7443
  this.hoverRepulse();
@@ -8118,7 +8118,7 @@
8118
8118
  constructor(container) {
8119
8119
  super(container);
8120
8120
  }
8121
- interact(p1) {
8121
+ async interact(p1) {
8122
8122
  var _a;
8123
8123
  const container = this.container, distance = (_a = p1.retina.attractDistance) !== null && _a !== void 0 ? _a : container.retina.attractDistance, pos1 = p1.getPosition(), query = container.particles.quadTree.queryCircle(pos1, distance);
8124
8124
  for (const p2 of query) {
@@ -8167,7 +8167,7 @@
8167
8167
  return particle.options.collisions.enable;
8168
8168
  }
8169
8169
  reset() {}
8170
- interact(p1) {
8170
+ async interact(p1) {
8171
8171
  const container = this.container;
8172
8172
  const pos1 = p1.getPosition();
8173
8173
  const radius1 = p1.getRadius();
@@ -8276,7 +8276,7 @@
8276
8276
  return particle.options.links.enable;
8277
8277
  }
8278
8278
  reset() {}
8279
- interact(p1) {
8279
+ async interact(p1) {
8280
8280
  var _a;
8281
8281
  p1.links = [];
8282
8282
  const pos1 = p1.getPosition();