UNPKG

react-particles-js

Version:
1 lines 219 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Particles=e(require("react")):t.Particles=e(t.React)}(this,(function(t){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(o,s,function(e){return t[e]}.bind(null,s));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=57)}([function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(167),e),s(i(23),e),s(i(47),e),s(i(45),e),s(i(22),e),s(i(168),e),s(i(17),e),s(i(169),e),s(i(170),e),s(i(171),e),s(i(24),e),s(i(25),e),s(i(46),e)},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(129),e),s(i(6),e),s(i(141),e),s(i(42),e),s(i(148),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OptionsColor=void 0;class o{constructor(){this.value="#fff"}static create(t,e){const i=null!=t?t:new o;return void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}e.OptionsColor=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValueWithRandom=void 0;const o=i(186),s=i(0);e.ValueWithRandom=class{constructor(){this.random=new o.Random,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=s.NumberUtils.setRangeValue(t.value,this.random.enable?this.random.minimumValue:void 0)))}}},function(t,e,i){var o=i(32),s="object"==typeof self&&self&&self.Object===Object&&self,n=o||s||Function("return this")();t.exports=n},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(278),e),s(i(279),e),s(i(280),e)},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(133),e),s(i(134),e),s(i(135),e),s(i(136),e),s(i(137),e),s(i(138),e),s(i(139),e),s(i(140),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=void 0;class o{constructor(t,e){let i,o;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,o]=[e.x,e.y]}else[i,o]=[t,e];this.x=i,this.y=o}static clone(t){return o.create(t.x,t.y)}static create(t,e){return new o(t,e)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))}set length(t){this.updateFromAngle(this.angle,t)}add(t){return o.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return o.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return o.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return o.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return Math.pow(this.x,2)+Math.pow(this.y,2)}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return o.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return o.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}e.Vector=o,o.origin=o.create(0,0)},function(t,e,i){var o=i(73),s=i(79);t.exports=function(t,e){var i=s(t,e);return o(i)?i:void 0}},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(269),e)},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(275),e)},function(t,e,i){var o=i(63),s=i(64),n=i(65),r=i(66),a=i(67);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=s,l.prototype.get=n,l.prototype.has=r,l.prototype.set=a,t.exports=l},function(t,e,i){var o=i(30);t.exports=function(t,e){for(var i=t.length;i--;)if(o(t[i][0],e))return i;return-1}},function(t,e,i){var o=i(19),s=i(75),n=i(76),r=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?s(t):n(t)}},function(t,e,i){var o=i(8)(Object,"create");t.exports=o},function(t,e,i){var o=i(88);t.exports=function(t,e){var i=t.__data__;return o(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberUtils=void 0;const o=i(1),s=i(7);class n{static clamp(t,e,i){return Math.min(Math.max(t,e),i)}static mix(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}static randomInRange(t){const e=n.getRangeMax(t);let i=n.getRangeMin(t);return e===i&&(i=0),Math.random()*(e-i)+i}static getRangeValue(t){return"number"==typeof t?t:n.randomInRange(t)}static getRangeMin(t){return"number"==typeof t?t:t.min}static getRangeMax(t){return"number"==typeof t?t:t.max}static setRangeValue(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=n.getRangeMin(t),o=n.getRangeMax(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:n.setRangeValue(i,o)}static getValue(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return i?n.getRangeValue(n.setRangeValue(t.value,o)):n.getRangeValue(t.value)}static getDistances(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}static getDistance(t,e){return n.getDistances(t,e).distance}static getParticleDirectionAngle(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case o.MoveDirection.top:return-Math.PI/2;case o.MoveDirection.topRight:return-Math.PI/4;case o.MoveDirection.right:return 0;case o.MoveDirection.bottomRight:return Math.PI/4;case o.MoveDirection.bottom:return Math.PI/2;case o.MoveDirection.bottomLeft:return 3*Math.PI/4;case o.MoveDirection.left:return Math.PI;case o.MoveDirection.topLeft:return-3*Math.PI/4;case o.MoveDirection.none:default:return Math.random()*Math.PI*2}}static getParticleBaseVelocity(t){const e=s.Vector.origin;return e.length=1,e.angle=t,e}static rotateVelocity(t,e){return{horizontal:t.horizontal*Math.cos(e)-t.vertical*Math.sin(e),vertical:t.horizontal*Math.sin(e)+t.vertical*Math.cos(e)}}static collisionVelocity(t,e,i,o){return s.Vector.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}static calcEasing(t,e){switch(e){case o.EasingType.easeOutQuad:return 1-Math.pow(1-t,2);case o.EasingType.easeOutCubic:return 1-Math.pow(1-t,3);case o.EasingType.easeOutQuart:return 1-Math.pow(1-t,4);case o.EasingType.easeOutQuint:return 1-Math.pow(1-t,5);case o.EasingType.easeOutExpo:return 1===t?1:1-Math.pow(2,-10*t);case o.EasingType.easeOutSine:return Math.sin(t*Math.PI/2);case o.EasingType.easeOutBack:{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case o.EasingType.easeOutCirc:return Math.sqrt(1-Math.pow(t-1,2));default:return t}}}e.NumberUtils=n},function(t,e,i){var o=i(8)(i(4),"Map");t.exports=o},function(t,e,i){var o=i(4).Symbol;t.exports=o},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutModeDirection=void 0,function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(e.OutModeDirection||(e.OutModeDirection={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Constants=void 0;class o{}e.Constants=o,o.canvasClass="tsparticles-canvas-el",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."},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Circle=void 0;const o=i(24);class s extends o.Range{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return Math.pow(t.x-this.position.x,2)+Math.pow(t.y-this.position.y,2)<=this.radius*this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),r=Math.abs(s.y-o.y),a=this.radius;if(void 0!==i.radius){return a+i.radius>Math.sqrt(n*n+r+r)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(r-i,2);return!(n>a+t||r>a+i)&&(n<=t||r<=i||o<=a*a)}return!1}}e.Circle=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;e.Range=class{constructor(t,e){this.position={x:t,y:e}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rectangle=void 0;const o=i(24);class s extends o.Range{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,r=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,a=t.height;return r.x<n.x+o&&r.x+i>n.x&&r.y<n.y+s&&r.y+a>n.y}return!1}}e.Rectangle=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParticlesOptions=void 0;const o=i(178),s=i(181),n=i(190),r=i(192),a=i(49),l=i(194),c=i(196),u=i(198),d=i(199),h=i(202),v=i(205),p=i(27),f=i(207),y=i(50),b=i(210),m=i(214),g=i(215),w=i(217);e.ParticlesOptions=class{constructor(){this.bounce=new y.Bounce,this.collisions=new h.Collisions,this.color=new p.AnimatableColor,this.destroy=new b.Destroy,this.life=new f.Life,this.links=new o.Links,this.move=new s.Move,this.number=new n.ParticlesNumber,this.opacity=new r.Opacity,this.reduceDuplicates=!1,this.roll=new w.Roll,this.rotate=new c.Rotate,this.shadow=new u.Shadow,this.shape=new a.Shape,this.size=new l.Size,this.stroke=new d.Stroke,this.tilt=new g.Tilt,this.twinkle=new v.Twinkle,this.wobble=new m.Wobble}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,r,a;if(void 0===t)return;this.bounce.load(t.bounce),this.color=p.AnimatableColor.create(this.color,t.color),this.destroy.load(t.destroy),this.life.load(t.life);const l=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;void 0!==l&&this.links.load(l),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble);const c=null!==(s=null===(o=t.move)||void 0===o?void 0:o.collisions)&&void 0!==s?s:null===(n=t.move)||void 0===n?void 0:n.bounce;void 0!==c&&(this.collisions.enable=c),this.collisions.load(t.collisions);const u=null!==(r=t.stroke)&&void 0!==r?r:null===(a=t.shape)||void 0===a?void 0:a.stroke;void 0!==u&&(u instanceof Array?this.stroke=u.map(t=>{const e=new d.Stroke;return e.load(t),e}):(this.stroke instanceof Array&&(this.stroke=new d.Stroke),this.stroke.load(u)))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatableColor=void 0;const o=i(2),s=i(200);class n extends o.OptionsColor{constructor(){super(),this.animation=new s.HslAnimation}static create(t,e){const i=null!=t?t:new n;return void 0!==e&&i.load("string"==typeof e?{value:e}:e),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}e.AnimatableColor=n},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.tsParticles=e.pJSDom=e.particlesJS=e.Main=e.Utils=e.Constants=e.ColorUtils=e.CanvasUtils=void 0;const n=i(231),r=i(232);Object.defineProperty(e,"Main",{enumerable:!0,get:function(){return r.Main}});const a=i(0);Object.defineProperty(e,"CanvasUtils",{enumerable:!0,get:function(){return a.CanvasUtils}}),Object.defineProperty(e,"ColorUtils",{enumerable:!0,get:function(){return a.ColorUtils}}),Object.defineProperty(e,"Constants",{enumerable:!0,get:function(){return a.Constants}}),Object.defineProperty(e,"Utils",{enumerable:!0,get:function(){return a.Utils}});const l=new r.Main;e.tsParticles=l,l.init();const{particlesJS:c,pJSDom:u}=n.initPjs(l);e.particlesJS=c,e.pJSDom=u,s(i(7),e),s(i(52),e),s(i(1),e),s(i(9),e),s(i(10),e),s(i(5),e),s(i(286),e),s(i(292),e)},function(e,i){e.exports=t},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){var o=i(13),s=i(33);t.exports=function(t){if(!s(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(this,i(74))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var i=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,i){var o=i(80),s=i(87),n=i(89),r=i(90),a=i(91);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=s,l.prototype.get=n,l.prototype.has=r,l.prototype.set=a,t.exports=l},function(t,e,i){var o=i(92),s=i(95),n=i(96);t.exports=function(t,e,i,r,a,l){var c=1&i,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(t);if(h&&l.get(e))return h==e;var v=-1,p=!0,f=2&i?new o:void 0;for(l.set(t,e),l.set(e,t);++v<u;){var y=t[v],b=e[v];if(r)var m=c?r(b,y,v,e,t,l):r(y,b,v,t,e,l);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!s(e,(function(t,e){if(!n(f,e)&&(y===t||a(y,t,i,r,l)))return f.push(e)}))){p=!1;break}}else if(y!==b&&!a(y,b,i,r,l)){p=!1;break}}return l.delete(t),l.delete(e),p}},function(t,e,i){(function(t){var o=i(4),s=i(113),n=e&&!e.nodeType&&e,r=n&&"object"==typeof t&&t&&!t.nodeType&&t,a=r&&r.exports===n?o.Buffer:void 0,l=(a?a.isBuffer:void 0)||s;t.exports=l}).call(this,i(38)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var o=i(115),s=i(116),n=i(117),r=n&&n.isTypedArray,a=r?s(r):o;t.exports=a},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Options=void 0;const o=i(128),s=i(26),n=i(219),r=i(221),a=i(222),l=i(0),c=i(224),u=i(1),d=i(226),h=i(227),v=i(229),p=i(230);e.Options=class{constructor(){this.autoPlay=!0,this.background=new r.Background,this.backgroundMask=new n.BackgroundMask,this.fullScreen=new d.FullScreen,this.detectRetina=!0,this.fpsLimit=60,this.infection=new a.Infection,this.interactivity=new o.Interactivity,this.manualParticles=[],this.motion=new h.Motion,this.particles=new s.ParticlesOptions,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.themes=[]}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const s=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==s&&(this.detectRetina=s);const n=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;if(void 0!==n&&(this.fpsLimit=n),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),this.background.load(t.background),this.fullScreen.load(null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode),this.backgroundMask.load(t.backgroundMask),this.infection.load(t.infection),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{const e=new v.ManualParticle;return e.load(t),e})),this.motion.load(t.motion),this.particles.load(t.particles),l.Plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new p.Responsive;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(const e of t.themes){const t=new c.Theme;t.load(e),this.themes.push(t)}}setTheme(t){if(t){const e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches;let e=this.themes.find(e=>e.default.value&&(e.default.mode===u.ThemeMode.dark&&t||e.default.mode===u.ThemeMode.light&&!t));e||(e=this.themes.find(t=>t.default.value&&t.default.mode===u.ThemeMode.any)),e&&this.load(e.options)}}importPreset(t){this.load(l.Plugins.getPreset(t))}setResponsive(t,e,i){var o;this.load(i),this.load(null===(o=this.responsive.find(i=>i.maxWidth*e>t))||void 0===o?void 0:o.options)}}},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(i(142),e),s(i(143),e),s(i(144),e),s(i(145),e),s(i(146),e),s(i(147),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BubbleBase=void 0;const o=i(2);e.BubbleBase=class{constructor(){this.distance=200,this.duration=.4}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map(t=>o.OptionsColor.create(void 0,t)):(this.color instanceof Array&&(this.color=new o.OptionsColor),this.color=o.OptionsColor.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepulseBase=void 0;const o=i(1);e.RepulseBase=class{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=o.EasingType.easeOutQuad}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorUtils=void 0;const o=i(46),s=i(22),n=i(17);function r(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function a(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?l.hslaToRgba({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?l.hsvaToRgba({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,(t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}class l{static colorToRgb(t,e,i=!0){var n,r,a;if(void 0===t)return;const c="string"==typeof t?{value:t}:t;let u;if("string"==typeof c.value)u=c.value===s.Constants.randomColorValue?l.getRandomRgbColor():l.stringToRgb(c.value);else if(c.value instanceof Array){const t=o.Utils.itemFromArray(c.value,e,i);u=l.colorToRgb({value:t})}else{const t=c.value,e=null!==(n=t.rgb)&&void 0!==n?n:c.value;if(void 0!==e.r)u=e;else{const e=null!==(r=t.hsl)&&void 0!==r?r:c.value;if(void 0!==e.h&&void 0!==e.l)u=l.hslToRgb(e);else{const e=null!==(a=t.hsv)&&void 0!==a?a:c.value;void 0!==e.h&&void 0!==e.v&&(u=l.hsvToRgb(e))}}}return u}static colorToHsl(t,e,i=!0){const o=l.colorToRgb(t,e,i);return void 0!==o?l.rgbToHsl(o):void 0}static rgbToHsl(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),r={h:0,l:(s+n)/2,s:0};return s!=n&&(r.s=r.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),r.h=e===s?(i-o)/(s-n):r.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),r.l*=100,r.s*=100,r.h*=60,r.h<0&&(r.h+=360),r}static stringToAlpha(t){var e;return null===(e=a(t))||void 0===e?void 0:e.a}static stringToRgb(t){return a(t)}static hslToRgb(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=r(o,t,i.h+1/3),e.g=r(o,t,i.h),e.b=r(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}static hslaToRgba(t){const e=l.hslToRgb(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}static hslToHsv(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),o=i?2*(1-e/i):0;return{h:t.h,s:100*o,v:100*i}}static hslaToHsva(t){const e=l.hslToHsv(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}static hsvToHsl(t){const e=t.v/100,i=e*(1-t.s/100/2),o=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*o}}static hsvaToHsla(t){const e=l.hsvToHsl(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}static hsvToRgb(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,r=n*(1-Math.abs(i%2-1));let a;if(i>=0&&i<=1?a={r:n,g:r,b:0}:i>1&&i<=2?a={r:r,g:n,b:0}:i>2&&i<=3?a={r:0,g:n,b:r}:i>3&&i<=4?a={r:0,g:r,b:n}:i>4&&i<=5?a={r:r,g:0,b:n}:i>5&&i<=6&&(a={r:n,g:0,b:r}),a){const t=s-n;e.r=Math.floor(255*(a.r+t)),e.g=Math.floor(255*(a.g+t)),e.b=Math.floor(255*(a.b+t))}return e}static hsvaToRgba(t){const e=l.hsvToRgb(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}static rgbToHsv(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),o=i-Math.min(e.r,e.g,e.b);let s=0;i===e.r?s=(e.g-e.b)/o*60:i===e.g?s=60*(2+(e.b-e.r)/o):i===e.b&&(s=60*(4+(e.r-e.g)/o));return{h:s,s:100*(i?o/i:0),v:100*i}}static rgbaToHsva(t){const e=l.rgbToHsv(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}static getRandomRgbColor(t){const e=null!=t?t:0;return{b:Math.floor(n.NumberUtils.randomInRange(n.NumberUtils.setRangeValue(e,256))),g:Math.floor(n.NumberUtils.randomInRange(n.NumberUtils.setRangeValue(e,256))),r:Math.floor(n.NumberUtils.randomInRange(n.NumberUtils.setRangeValue(e,256)))}}static getStyleFromRgb(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}static getStyleFromHsl(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}static getStyleFromHsv(t,e){return l.getStyleFromHsl(l.hsvToHsl(t),e)}static mix(t,e,i,o){let s=t,r=e;return void 0===s.r&&(s=l.hslToRgb(t)),void 0===r.r&&(r=l.hslToRgb(e)),{b:n.NumberUtils.mix(s.b,r.b,i,o),g:n.NumberUtils.mix(s.g,r.g,i,o),r:n.NumberUtils.mix(s.r,r.r,i,o)}}static replaceColorSvg(t,e,i){const{svgData:o}=t;if(!o)return"";if(o.includes("fill")){const t=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;return o.replace(t,()=>l.getStyleFromHsl(e,i))}const s=o.indexOf(">");return`${o.substring(0,s)} fill="${l.getStyleFromHsl(e,i)}"${o.substring(s)}`}static getLinkColor(t,e,i){var o,n;if(i===s.Constants.randomColorValue)return l.getRandomRgbColor();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),s=null!==(n=null==e?void 0:e.getFillColor())&&void 0!==n?n:null==e?void 0:e.getStrokeColor();if(i&&s&&e)return l.mix(i,s,t.getRadius(),e.getRadius());{const t=null!=i?i:s;if(t)return l.hslToRgb(t)}}}static getLinkRandomColor(t,e,i){const o="string"==typeof t?t:t.value;return o===s.Constants.randomColorValue?i?l.colorToRgb({value:o}):e?s.Constants.randomColorValue:s.Constants.midColorValue:l.colorToRgb({value:o})}static getHslFromAnimation(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}}e.ColorUtils=l},function(t,e,i){"use strict";var o=this&&this.__awaiter||function(t,e,i,o){return new(i||(i=Promise))((function(s,n){function r(t){try{l(o.next(t))}catch(t){n(t)}}function a(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,a)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;const s=i(21),n=i(17);function r(t,e,i,o,s,n){const r={bounced:!1};return e.min>=o.min&&e.min<=o.max&&e.max>=o.min&&e.max<=o.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(r.velocity=s*-n,r.bounced=!0),r}function a(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}class l{static isSsr(){return"undefined"==typeof window||!window}static get animate(){return l.isSsr()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}static get cancelAnimation(){return l.isSsr()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}static isInArray(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}static loadFont(t){return o(this,void 0,void 0,(function*(){try{yield document.fonts.load(`${t.weight} 36px '${t.font}'`)}catch(t){}}))}static arrayRandomIndex(t){return Math.floor(Math.random()*t.length)}static itemFromArray(t,e,i=!0){return t[void 0!==e&&i?e%t.length:l.arrayRandomIndex(t)]}static isPointInside(t,e,i,o){return l.areBoundsInside(l.calculateBounds(t,null!=i?i:0),e,o)}static areBoundsInside(t,e,i){let o=!0;return i&&i!==s.OutModeDirection.bottom||(o=t.top<e.height),!o||i&&i!==s.OutModeDirection.left||(o=t.right>0),!o||i&&i!==s.OutModeDirection.right||(o=t.left<e.width),!o||i&&i!==s.OutModeDirection.top||(o=t.bottom>0),o}static calculateBounds(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}static loadImage(t){return new Promise((e,i)=>{if(!t)return void i("Error tsParticles - No image.src");const o={source:t,type:t.substr(t.length-3)},s=new Image;s.addEventListener("load",()=>{o.element=s,e(o)}),s.addEventListener("error",()=>{i("Error tsParticles - loading image: "+t)}),s.src=t})}static downloadSvgImage(t){return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Error tsParticles - No image.src");const e={source:t,type:t.substr(t.length-3)};if("svg"!==e.type)return l.loadImage(t);const i=yield fetch(e.source);if(!i.ok)throw new Error("Error tsParticles - Image not found");return e.svgData=yield i.text(),e}))}static deepExtend(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map(t=>l.deepExtend(n[e],t)):l.deepExtend(n[e],o)}}return t}static isDivModeEnabled(t,e){return e instanceof Array?!!e.find(e=>e.enable&&l.isInArray(t,e.mode)):l.isInArray(t,e.mode)}static divModeExecute(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&l.isInArray(t,e)&&l.singleDivModeExecute(o,i)}else{const o=e.mode;e.enable&&l.isInArray(t,o)&&l.singleDivModeExecute(e,i)}}static singleDivModeExecute(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}static divMode(t,e){if(e&&t)return t instanceof Array?t.find(t=>a(e,t.selectors)):a(e,t.selectors)?t:void 0}static circleBounceDataFromParticle(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:{horizontal:n.NumberUtils.getValue(t.options.bounce.horizontal),vertical:n.NumberUtils.getValue(t.options.bounce.vertical)}}}static circleBounce(t,e){const i=t.velocity.x,o=t.velocity.y,s=t.position,r=e.position;if(i*(r.x-s.x)+o*(r.y-s.y)>=0){const i=-Math.atan2(r.y-s.y,r.x-s.x),o=t.mass,a=e.mass,l=t.velocity.rotate(i),c=e.velocity.rotate(i),u=n.NumberUtils.collisionVelocity(l,c,o,a),d=n.NumberUtils.collisionVelocity(c,l,o,a),h=u.rotate(-i),v=d.rotate(-i);t.velocity.x=h.x*t.factor.horizontal,t.velocity.y=h.y*t.factor.vertical,e.velocity.x=v.x*e.factor.horizontal,e.velocity.y=v.y*e.factor.vertical}}static rectBounce(t,e){const i=t.getPosition(),o=t.getRadius(),s=l.calculateBounds(i,o),a=r({min:s.left,max:s.right},{min:s.top,max:s.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,n.NumberUtils.getValue(t.options.bounce.horizontal));a.bounced&&(void 0!==a.velocity&&(t.velocity.x=a.velocity),void 0!==a.position&&(t.position.x=a.position));const c=r({min:s.top,max:s.bottom},{min:s.left,max:s.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,n.NumberUtils.getValue(t.options.bounce.vertical));c.bounced&&(void 0!==c.velocity&&(t.velocity.y=c.velocity),void 0!==c.position&&(t.position.y=c.position))}}e.Utils=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CircleWarp=void 0;const o=i(25),s=i(23);class n extends s.Circle{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,n={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new s.Circle(n.x,n.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new o.Rectangle(n.x,n.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}e.CircleWarp=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationOptions=void 0;e.AnimationOptions=class{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=void 0;const o=i(1),s=i(0);e.Shape=class{constructor(){this.options={},this.type=o.ShapeType.circle}get image(){var t;return null!==(t=this.options[o.ShapeType.image])&&void 0!==t?t:this.options[o.ShapeType.images]}set image(t){this.options[o.ShapeType.image]=t,this.options[o.ShapeType.images]=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image instanceof Array?this.image:[this.image]}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options[o.ShapeType.character])&&void 0!==t?t:this.options[o.ShapeType.char]}set character(t){this.options[o.ShapeType.character]=t,this.options[o.ShapeType.char]=t}get polygon(){var t;return null!==(t=this.options[o.ShapeType.polygon])&&void 0!==t?t:this.options[o.ShapeType.star]}set polygon(t){this.options[o.ShapeType.polygon]=t,this.options[o.ShapeType.star]=t}load(t){var e,i,n;if(void 0===t)return;const r=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==r)for(const t in r){const e=r[t];void 0!==e&&(this.options[t]=s.Utils.deepExtend(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,o.ShapeType.character,o.ShapeType.char,!0),this.loadShape(t.polygon,o.ShapeType.polygon,o.ShapeType.star,!1),this.loadShape(null!==(n=t.image)&&void 0!==n?n:t.images,o.ShapeType.image,o.ShapeType.images,!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var n,r,a,l;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=s.Utils.deepExtend(null!==(n=this.options[e])&&void 0!==n?n:[],t),this.options[i]&&!o||(this.options[i]=s.Utils.deepExtend(null!==(r=this.options[i])&&void 0!==r?r:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=s.Utils.deepExtend(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=s.Utils.deepExtend(null!==(l=this.options[i])&&void 0!==l?l:{},t))))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bounce=void 0;const o=i(203);e.Bounce=class{constructor(){this.horizontal=new o.BounceFactor,this.vertical=new o.BounceFactor}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolygonDrawerBase=void 0;e.PolygonDrawerBase=class{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,r=s.count.numerator/s.count.denominator,a=180*(r-2)/r,l=Math.PI-Math.PI*a/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e<n;e++)t.lineTo(s.length,0),t.translate(s.length,0),t.rotate(l)}}}},function(t,e,i){"use strict";var o=this&&this.__awaiter||function(t,e,i,o){return new(i||(i=Promise))((function(s,n){function r(t){try{l(o.next(t))}catch(t){n(t)}}function a(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,a)}l((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;const s=i(243),n=i(244),r=i(263),a=i(264),l=i(41),c=i(0),u=i(7);e.Container=class{constructor(t,e,...i){this.id=t,this.fpsLimit=60,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.pageHidden=!1,this._sourceOptions=e,this.retina=new r.Retina(this),this.canvas=new s.Canvas(this),this.particles=new n.Particles(this),this.drawer=new a.FrameManager(this),this.pathGenerator={generate:()=>{const t=u.Vector.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new l.Options,this.actualOptions=new l.Options;for(const t of i)this._options.load(c.Plugins.getPreset(t));const o=c.Plugins.getSupportedShapes();for(const t of o){const e=c.Plugins.getShapeDrawer(t);e&&this.drawers.set(t,e)}this._options&&this._options.load(this._sourceOptions),this.eventListeners=new c.EventListeners(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(t=>this.intersectionManager(t)))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e){for(const[,t]of this.plugins)t.play&&t.play();this.lastFrameTime=performance.now()}this.draw()}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(c.Utils.cancelAnimation(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(){this.drawAnimationFrame=c.Utils.animate(t=>this.drawer.nextFrame(t))}getAnimationStatus(){return!this.paused}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){t&&("function"==typeof t?(this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i)):(t.generate&&(this.pathGenerator.generate=t.generate),t.init&&(this.pathGenerator.init=t.init),t.update&&(this.pathGenerator.update=t.update)))}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new l.Options,this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor}}loadTheme(t){return o(this,void 0,void 0,(function*(){this.currentTheme=t,yield this.refresh()}))}start(){return o(this,void 0,void 0,(function*(){if(!this.started){yield this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?yield t.startAsync():void 0!==t.start&&t.start();this.play()}}))}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i)=>{if(this.destroyed)return;const o=this.retina.pixelRatio,s={x:i.x*o,y:i.y*o},n=this.particles.quadTree.queryCircle(s,this.retina.sizeValue);t(e,n)};let o=!1,s=!1;e.addEventListener("click",t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o)}),e.addEventListener("touchstart",()=>{this.destroyed||(o=!0,s=!1)}),e.addEventListener("touchmove",()=>{this.destroyed||(s=!0)}),e.addEventListener("touchend",t=>{var e,n,r;if(!this.destroyed){if(o&&!s){const o=t,s=o.touches[o.touches.length-1],a=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==a?void 0:a.left)&&void 0!==n?n:0),y:s.clientY-(null!==(r=null==a?void 0:a.top)&&void 0!==r?r:0)};i(t,l)}o=!1,s=!1}}),e.addEventListener("touchcancel",()=>{this.destroyed||(o=!1,s=!1)})}init(){return o(this,void 0,void 0,(function*(){this.actualOptions=new l.Options,this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options),this.actualOptions.setTheme(this.currentTheme),this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:60;const t=c.Plugins.getAvailablePlugins(this);for(const[e,i]of t)this.plugins.set(e,i);for(const[,t]of this.drawers)t.init&&(yield t.init(this));for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&(yield t.initAsync(this.actualOptions));this.canvas.initBackground(),this.canvas.resize(),this.particles.init(),this.particles.setDensity()}))}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Absorber=void 0;const o=i(268),s=i(2);e.Absorber=class{constructor(){this.color=new s.OptionsColor,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new o.AbsorberSize}load(t){void 0!==t&&(void 0!==t.color&&(this.color=s.OptionsColor.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.orbits&&(this.orbits=t.orbits))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmitterSize=void 0;const o=i(1);e.EmitterSize=class{constructor(){this.mode=o.SizeMode.percent,this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=void 0;const o=i(273),s=i(274),n=i(0),r=i(54),a=i(27);e.Emitter=class{constructor(){this.autoPlay=!0,this.life=new s.EmitterLife,this.rate=new o.EmitterRate}load(t){void 0!==t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(void 0===this.size&&(this.size=new r.EmitterSize),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.life.load(t.life),this.name=t.name,void 0!==t.particles&&(this.particles=n.Utils.deepExtend({},t.particles)),this.rate.load(t.rate),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new a.AnimatableColor),this.spawnColor.load(t.spawnColor)))}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolygonMask=void 0;const o=i(5),s=i(281),n=i(283),r=i(284),a=i(285),l=i(0);e.PolygonMask=class{constructor(){this.draw=new s.Draw,this.enable=!1,this.inline=new r.Inline,this.move=new n.Move,this.scale=1,this.type=o.Type.none}get inlineArrangement(){return this.inline.arrangement}set inlineArrangement(t){this.inline.arrangement=t}load(t){var e;if(void 0!==t){this.draw.load(t.draw);const i=null!==(e=t.inline)&&void 0!==e?e:{arrangement:t.inlineArrangement};void 0!==i&&this.inline.load(i),this.move.load(t.move),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.type&&(this.type=t.type),void 0!==t.enable?this.enable=t.enable:this.enable=this.type!==o.Type.none,void 0!==t.url&&(this.url=t.url),void 0!==t.data&&("string"==typeof t.data?this.data=t.data:(this.data=new a.LocalSvg,this.data.load(t.data))),void 0!==t.position&&(this.position=l.Utils.deepExtend({},t.position))}}}},function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Particles=void 0;var r=n(i(58));e.Particles=r.default,s(i(1),e),s(i(9),e),s(i(10),e),s(i(5),e),e.default=r.default},function(t,e,i){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(o){var s=Object.getOwnPropertyDescriptor(o,e);return s.get?s.get.call(i):s.value}})(t,e,i||t)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=u(t);if(e){var s=u(this).constructor;i=Reflect.construct(o,arguments,s)}else i=o.apply(this,arguments);return l(this,i)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),h=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),v=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&d(e,t,i);return h(e,t),e},p=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=v(i(29)),y=i(29),b=p(i(59)),m=i(41),g=i(28),w=i(293),M=i(28),_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(d,t);var e,i,o,l=a(d);function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(e=l.call(this,t)).state={canvas:void 0,library:void 0},e.loadCanvas=e.loadCanvas.bind(c(e)),e}return e=d,(i=[{key:"buildParticlesLibrary",value:function(t,e){try{if(void 0===window)return null}catch(t){return null}M.tsParticles.init();var i=new m.Options;i.load(w.defaultParams),i.load(e);var o=new g.Container(t,i);return this.props.particlesRef&&(this.props.particlesRef.current=o),o}},{key:"refresh",value:function(t){var e=this,i=this.state.canvas;i&&(this.destroy(),this.setState({library:this.buildParticlesLibrary(t.id,t.params)},(function(){e.loadCanvas(i)})))}},{key:"destroy",value:function(){this.state.library&&this.state.libra