tsparticles
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -150,8 +150,28 @@ "use strict"; | ||
for (var i = 0; i < tsParticlesDom.length; i++) { | ||
var el = tsParticlesDom[i].interactivity.el; | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
if (el) { | ||
el.addEventListener('click', callback); | ||
try { | ||
for (var _iterator = tsParticlesDom[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var domItem = _step.value; | ||
var el = domItem.interactivity.el; | ||
if (el) { | ||
el.addEventListener('click', callback); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator["return"] != null) { | ||
_iterator["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
@@ -165,2 +185,2 @@ } | ||
; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbGFzc2VzL2xvYWRlci50cyJdLCJuYW1lcyI6WyJ0c1BhcnRpY2xlc0RvbSIsIkxvYWRlciIsImRvbVNldCIsInZhbHVlIiwidGFnX2lkIiwicGFyYW1zIiwidGFnIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50QnlJZCIsImV4aXN0X2NhbnZhcyIsImdldEVsZW1lbnRzQnlDbGFzc05hbWUiLCJDb25zdGFudHMiLCJjYW52YXNDbGFzcyIsImxlbmd0aCIsInJlbW92ZUNoaWxkIiwiY2FudmFzX2VsIiwiY3JlYXRlRWxlbWVudCIsImNsYXNzTmFtZSIsInN0eWxlIiwid2lkdGgiLCJoZWlnaHQiLCJjYW52YXMiLCJhcHBlbmRDaGlsZCIsIm5ld0l0ZW0iLCJDb250YWluZXIiLCJkb20iLCJpZHgiLCJmaW5k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yBhZnRlciBjYWxsaW5nIHRzUGFydGljbGVzLmxvYWQoKSBvciB0c1BhcnRpY2xlcy5sb2FkSlNPTigpXCIpO1xuICAgIH1cbiAgICBmb3IgKGNvbnN0IGRvbUl0ZW0gb2YgdHNQYXJ0aWNsZXNEb20pIHtcbiAgICAgIGxldCBlbCA9IGRvbUl0ZW0uaW50ZXJhY3Rpdml0eS5lbDtcblxuICAgICAgaWYgKGVsKSB7XG4gICAgICAgIGVsLmFkZEV2ZW50TGlzdGVuZXIoJ2NsaWNrJywgY2FsbGJhY2spO1xuICAgICAgfVxuICAgIH1cbiAgfVxufTsiXX0= |
@@ -23,4 +23,4 @@ import { Options } from './utils/interfaces'; | ||
setOnClickHandler(callback: EventListenerOrEventListenerObject): void; | ||
tsParticlesDom(): Container[]; | ||
dom(): Container[]; | ||
} | ||
export {}; |
@@ -21,3 +21,3 @@ "use strict"; | ||
/* How to use? : Check the GitHub README | ||
/* v1.4.1 | ||
/* v1.4.2 | ||
/* ----------------------------------------------- */ | ||
@@ -84,4 +84,4 @@ 'use strict'; | ||
}, { | ||
key: "tsParticlesDom", | ||
value: function tsParticlesDom() { | ||
key: "dom", | ||
value: function dom() { | ||
return _loader.Loader.dom(); | ||
@@ -144,7 +144,7 @@ } | ||
if (console) { | ||
console.info('this method is obsolete, please use the new tsParticles.tsParticlesDom'); | ||
console.info('this method is obsolete, please use the new tsParticles.dom'); | ||
} | ||
return window.tsParticles.tsParticlesDom(); | ||
return window.tsParticles.dom(); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbIndpbmRvdyIsInJlcXVlc3RBbmltRnJhbWUiLCJyZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJ3ZWJraXRSZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJtb3pSZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJvUm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GUpIHtcbiAgICBjb25zb2xlLmluZm8oJ3RoaXMgbWV0aG9kIGlzIG9ic29sZXRlLCBwbGVhc2UgdXNlIHRoZSBuZXcgdHNQYXJ0aWNsZXMubG9hZEpTT04nKTtcbiAgfVxuXG4gIHdpbmRvdy50c1BhcnRpY2xlcy5sb2FkSlNPTih0YWdfaWQsIHBhdGhfY29uZmlnX2pzb24pLnRoZW4oY2FsbGJhY2spO1xufTtcblxud2luZG93LnBhcnRpY2xlc0pTLnNldE9uQ2xpY2tIYW5kbGVyID0gZnVuY3Rpb24gKGNhbGxiYWNrOiBFdmVudExpc3RlbmVyT3JFdmVudExpc3RlbmVyT2JqZWN0KSB7XG4gIGlmIChjb25zb2xlKSB7XG4gICAgY29uc29sZS5pbmZvKCd0aGlzIG1ldGhvZCBpcyBvYnNvbGV0ZSwgcGxlYXNlIHVzZSB0aGUgbmV3IHRzUGFydGljbGVzLnNldE9uQ2xpY2tIYW5kbGVyJyk7XG4gIH1cblxuICB3aW5kb3cudHNQYXJ0aWNsZXMuc2V0T25DbGlja0hhbmRsZXIoY2FsbGJhY2spO1xufTtcblxud2luZG93LnBKU0RvbSA9IGZ1bmN0aW9uICgpIHtcbiAgaWYgKGNvbnNvbGUpIHtcbiAgICBjb25zb2xlLmluZm8oJ3RoaXMgbWV0aG9kIGlzIG9ic29sZXRlLCBwbGVhc2UgdXNlIHRoZSBuZXcgdHNQYXJ0aWNsZXMuZG9tJyk7XG4gIH1cblxuICByZXR1cm4gd2luZG93LnRzUGFydGljbGVzLmRvbSgpO1xufTsiXX0= |
@@ -1,1 +0,1 @@ | ||
!function(i){var a={};function r(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=i,r.c=a,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=10)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}t.exports=function(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}},function(t,e){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){t.exports=i(11)},function(t,e){function c(t,e,i,a,r,n,s){try{var o=t[n](s),c=o.value}catch(t){return void i(t)}o.done?e(c):Promise.resolve(c).then(a,r)}t.exports=function(o){return function(){var t=this,s=arguments;return new Promise(function(e,i){var a=o.apply(t,s);function r(t){c(a,e,i,r,n,"next",t)}function n(t){c(a,e,i,r,n,"throw",t)}r(void 0)})}}},function(t,e,i){"use strict";var a,r,n,s,o,c,l,u,h,v,d,p,f,y;Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessBubbleType=e.ClickMode=e.HoverMode=e.InteractivityDetect=e.OutMode=e.MoveDirection=e.ShapeType=void 0,e.ShapeType=a,(r=a||(e.ShapeType=a={})).circle="circle",r.edge="edge",r.triangle="triangle",r.polygon="polygon",r.star="star",r.image="image",r.square="square",r.heart="heart",r.char="char",r.character="character",r.line="line",e.MoveDirection=n,(s=n||(e.MoveDirection=n={})).none="none",s.top="top",s.topRight="top-right",s.right="right",s.bottomRight="bottom-right",s.bottom="bottom",s.bottomLeft="bottom-left",s.left="left",s.topLeft="top-left",e.OutMode=o,(c=o||(e.OutMode=o={})).out="out",c.bounce="bounce",c.bounceVertical="bounce-vertical",c.bounceHorizontal="bounce-horizontal",e.InteractivityDetect=l,(u=l||(e.InteractivityDetect=l={})).canvas="canvas",u.window="window",u.parent="parent",e.HoverMode=h,(v=h||(e.HoverMode=h={})).grab="grab",v.bubble="bubble",v.repulse="repulse",e.ClickMode=d,(p=d||(e.ClickMode=d={})).push="push",p.remove="remove",p.bubble="bubble",p.repulse="repulse",e.ProcessBubbleType=f,(y=f||(e.ProcessBubbleType=f={})).size="size",y.opacity="opacity"},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;var r=a(i(1)),n=a(i(2)),s=function(){function a(){(0,r.default)(this,a)}return(0,n.default)(a,null,[{key:"hexToRgb",value:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,a){return e+e+i+i+a+a});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}},{key:"clamp",value:function(t,e,i){return Math.min(Math.max(t,e),i)}},{key:"isInArray",value:function(t,e){return t==e||-1<e.indexOf(t)}},{key:"deepExtend",value:function(t,e){for(var i in e)e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},a.deepExtend(t[i],e[i])):t[i]=e[i];return t}}]),a}();e.Utils=s},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Constants=void 0;function r(){(0,n.default)(this,r)}var n=a(i(1)),s=a(i(3)),o=i(6);e.Constants=r,(0,s.default)(r,"canvasClass","tsparticles-canvas-el"),(0,s.default)(r,"defaultOptions",{particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:o.ShapeType.circle,stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},character:{value:"*",font:"Verdana",weight:"400"},image:{src:"",width:100,height:100,replace_color:!0}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:o.MoveDirection.none,random:!1,straight:!1,out_mode:o.OutMode.out,bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:o.InteractivityDetect.canvas,events:{onhover:{enable:!0,mode:o.HoverMode.grab,parallax:{enable:!1,force:2,smooth:10}},onclick:{enable:!0,mode:o.ClickMode.push},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1,fps_limit:60})},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var n=a(i(4)),r=a(i(5)),s=a(i(1)),o=a(i(2)),u=i(12),h=i(8),c=[],l=function(){function l(){(0,s.default)(this,l)}var i;return(0,o.default)(l,null,[{key:"dom",value:function(){return c||l.domSet([]),c}},{key:"domSet",value:function(t){c=t}},{key:"load",value:function(e,t){var i,a=document.getElementById(e);if(a){var r=a.getElementsByClassName(h.Constants.canvasClass);if(r.length)for(;0<r.length;)a.removeChild(r[0]);var n=document.createElement("canvas");if(n.className=h.Constants.canvasClass,n.style.width="100%",n.style.height="100%",null===(i=document.getElementById(e))||void 0===i?void 0:i.appendChild(n)){var s=new u.Container(e,t),o=l.dom(),c=o.findIndex(function(t){return t.canvas.tag_id==e});return 0<=c?o.splice(c,1,s):o.push(s),s}}}},{key:"loadJSON",value:(i=(0,r.default)(n.default.mark(function t(e,i){var a,r;return n.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(i);case 2:if((a=t.sent).ok)return t.next=6,a.json();t.next=10;break;case 6:r=t.sent,l.load(e,r),t.next=12;break;case 10:console.error("Error pJS - fetch status: ".concat(a.status)),console.error("Error pJS - File config not found");case 12:case"end":return t.stop()}},t)})),function(t,e){return i.apply(this,arguments)})},{key:"setOnClickHandler",value:function(t){var e=l.dom();if(0==e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(var i=0;i<e.length;i++){var a=e[i].interactivity.el;a&&a.addEventListener("click",t)}}}]),l}();e.Loader=l},function(t,e,i){"use strict";var a=i(0),r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=i(9);window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;var l=function(){function t(){(0,s.default)(this,t)}var i;return(0,o.default)(t,[{key:"load",value:function(t,e){c.Loader.load(t,e)}},{key:"loadJSON",value:(i=(0,n.default)(r.default.mark(function t(e,i){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Loader.loadJSON(e,i);case 2:case"end":return t.stop()}},t)})),function(t,e){return i.apply(this,arguments)})},{key:"setOnClickHandler",value:function(t){c.Loader.setOnClickHandler(t)}},{key:"tsParticlesDom",value:function(){return c.Loader.dom()}}]),t}();window.tsParticles=new l,Object.freeze(window.tsParticles),window.particlesJS=function(t,e){console&&console.info("this method is obsolete, please use the new tsParticles.load"),window.tsParticles.load(t,e)},window.particlesJS.load=function(){var a=(0,n.default)(r.default.mark(function t(e,i,a){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:console&&console.info("this method is obsolete, please use the new tsParticles.loadJSON"),window.tsParticles.loadJSON(e,i).then(a);case 2:case"end":return t.stop()}},t)}));return function(t,e,i){return a.apply(this,arguments)}}(),window.particlesJS.setOnClickHandler=function(t){console&&console.info("this method is obsolete, please use the new tsParticles.setOnClickHandler"),window.tsParticles.setOnClickHandler(t)},window.pJSDom=function(){return console&&console.info("this method is obsolete, please use the new tsParticles.tsParticlesDom"),window.tsParticles.tsParticlesDom()}},function(t,e,i){var a=function(n){"use strict";var c,t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";function s(t,e,i,a){var n,s,o,c,r=e&&e.prototype instanceof m?e:m,l=Object.create(r.prototype),u=new T(a||[]);return l._invoke=(n=t,s=i,o=u,c=v,function(t,e){if(c===p)throw new Error("Generator is already running");if(c===f){if("throw"===t)throw e;return O()}for(o.method=t,o.arg=e;;){var i=o.delegate;if(i){var a=M(i,o);if(a){if(a===y)continue;return a}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(c===v)throw c=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c=p;var r=h(n,s,o);if("normal"===r.type){if(c=o.done?f:d,r.arg===y)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(c=f,o.method="throw",o.arg=r.arg)}}),l}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var v="suspendedStart",d="suspendedYield",p="executing",f="completed",y={};function m(){}function o(){}function u(){}var b={};b[r]=function(){return this};var g=Object.getPrototypeOf,x=g&&g(g(P([])));x&&x!==t&&l.call(x,r)&&(b=x);var w=u.prototype=m.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(c){var e;this._invoke=function(i,a){function t(){return new Promise(function(t,e){!function e(t,i,a,r){var n=h(c[t],c,i);if("throw"!==n.type){var s=n.arg,o=s.value;return o&&"object"==typeof o&&l.call(o,"__await")?Promise.resolve(o.__await).then(function(t){e("next",t,a,r)},function(t){e("throw",t,a,r)}):Promise.resolve(o).then(function(t){s.value=t,a(s)},function(t){return e("throw",t,a,r)})}r(n.arg)}(i,a,t,e)})}return e=e?e.then(t,t):t()}}function M(t,e){var i=t.iterator[e.method];if(i===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,M(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var a=h(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,y;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,y):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(l.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=c,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:c,done:!0}}return o.prototype=w.constructor=u,u.constructor=o,u[a]=o.displayName="GeneratorFunction",n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},_(k.prototype),k.prototype[i]=function(){return this},n.AsyncIterator=k,n.async=function(t,e,i,a){var r=new k(s(t,e,i,a));return n.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},_(w),w[a]="Generator",w[r]=function(){return this},w.toString=function(){return"[object Generator]"},n.keys=function(i){var a=[];for(var t in i)a.push(t);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in i)return t.value=e,t.done=!1,t}return t.done=!0,t}},n.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var a=this;function t(t,e){return n.type="throw",n.arg=i,a.next=t,e&&(a.method="next",a.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],n=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=l.call(r,"catchLoc"),o=l.call(r,"finallyLoc");if(s&&o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&l.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,y):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),y}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var r=a.arg;C(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:P(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=c),y}},n}(t.exports);try{regeneratorRuntime=a}catch(t){Function("r","regeneratorRuntime = r")(a)}},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=a(i(3)),l=i(7),u=i(13),h=i(14),v=i(15),d=i(16),p=i(6),f=i(9),y=i(8),m=function(){function a(t,e){var i=this;(0,s.default)(this,a),(0,c.default)(this,"interactivity",void 0),(0,c.default)(this,"options",void 0),(0,c.default)(this,"retina",void 0),(0,c.default)(this,"canvas",void 0),(0,c.default)(this,"particles",void 0),(0,c.default)(this,"checkAnimFrame",void 0),(0,c.default)(this,"drawAnimFrame",void 0),(0,c.default)(this,"bubble",void 0),(0,c.default)(this,"repulse",void 0),(0,c.default)(this,"svg",void 0),(0,c.default)(this,"img",void 0),(0,c.default)(this,"lastFrameTime",0),(0,c.default)(this,"pageHidden",!1),this.retina=new h.Retina(this),this.canvas=new v.Canvas(this,t),this.particles=new d.Particles(this),this.interactivity={mouse:{}},this.svg={source:void 0,count:0},this.img={},this.bubble={},this.repulse={},this.options=y.Constants.defaultOptions,e&&l.Utils.deepExtend(this.options,e),this.eventsListeners(),this.start().then(function(){document.addEventListener("visibilitychange",function(){return i.handleVisibilityChange()},!1)})}var t,e;return(0,o.default)(a,[{key:"handleVisibilityChange",value:function(){document.hidden?(this.pageHidden=!0,this.drawAnimFrame&&this.cancelAnimation(this.drawAnimFrame)):(this.pageHidden=!1,this.lastFrameTime=performance.now(),this.draw(0))}},{key:"eventsListeners",value:function(){var c=this;this.options.interactivity.detect_on==p.InteractivityDetect.window?this.interactivity.el=window:"parent"==this.options.interactivity.detect_on?this.interactivity.el=this.canvas.el.parentNode:this.interactivity.el=this.canvas.el,(this.options.interactivity.events.onhover.enable||this.options.interactivity.events.onclick.enable)&&this.interactivity.el&&(this.interactivity.el.addEventListener("mousemove",function(t){var e,i,a=t;if(c.interactivity.el==window)e=a.clientX,i=a.clientY;else if(c.options.interactivity.detect_on==p.InteractivityDetect.parent){var r=a.srcElement,n=a.currentTarget;if(r&&n){var s=r.getBoundingClientRect(),o=n.getBoundingClientRect();e=a.offsetX+s.left-o.left,i=a.offsetY+s.top-o.top}else e=a.offsetX||a.clientX,i=a.offsetY||a.clientY}else e=a.offsetX||a.clientX,i=a.offsetY||a.clientY;c.interactivity.mouse.pos_x=e*(c.retina.isRetina?c.canvas.pxratio:1),c.interactivity.mouse.pos_y=i*(c.retina.isRetina?c.canvas.pxratio:1),c.interactivity.status="mousemove"}),this.interactivity.el.addEventListener("mouseleave",function(){c.interactivity.mouse.pos_x=null,c.interactivity.mouse.pos_y=null,c.interactivity.status="mouseleave"})),this.options.interactivity.events.onclick.enable&&this.interactivity.el&&this.interactivity.el.addEventListener("click",function(){if(c.interactivity.mouse.click_pos_x=c.interactivity.mouse.pos_x,c.interactivity.mouse.click_pos_y=c.interactivity.mouse.pos_y,c.interactivity.mouse.click_time=(new Date).getTime(),c.options.interactivity.events.onclick.enable)switch(c.options.interactivity.events.onclick.mode){case p.ClickMode.push:c.options.particles.move.enable||1==c.options.interactivity.modes.push.particles_nb?c.particles.push(c.options.interactivity.modes.push.particles_nb,c.interactivity.mouse):1<c.options.interactivity.modes.push.particles_nb&&c.particles.push(c.options.interactivity.modes.push.particles_nb);break;case p.ClickMode.remove:c.particles.remove(c.options.interactivity.modes.remove.particles_nb);break;case p.ClickMode.bubble:c.bubble.clicking=!0;break;case p.ClickMode.repulse:c.repulse.clicking=!0,c.repulse.count=0,c.repulse.finish=!1,setTimeout(function(){c.repulse.clicking=!1},1e3*c.options.interactivity.modes.repulse.duration)}})}},{key:"densityAutoParticles",value:function(){if(this.options.particles.number.density.enable){var t=this.canvas.el.width*this.canvas.el.height/1e3;this.retina.isRetina&&(t/=2*this.canvas.pxratio);var e=t*this.options.particles.number.value/this.options.particles.number.density.value_area,i=this.particles.array.length-e;i<0?this.particles.push(Math.abs(i)):this.particles.remove(i)}}},{key:"destroypJS",value:function(){void 0!==this.drawAnimFrame&&cancelAnimationFrame(this.drawAnimFrame),this.canvas.el.remove(),f.Loader.domSet([])}},{key:"exportImg",value:function(){window.open(this.canvas.el.toDataURL("image/png"),"_blank")}},{key:"loadImg",value:(e=(0,n.default)(r.default.mark(function t(e){var i,a=this;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.img.error=void 0,""!=this.options.particles.shape.image.src?((i=new u.Image).addEventListener("load",function(){a.img.obj=i,a.checkBeforeDraw()}),i.src=this.options.particles.shape.image.src):(console.error("Error pJS - No image.src"),this.img.error=!0);case 2:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"requestFrame",value:function(t){return window.requestAnimFrame(t)}},{key:"cancelAnimation",value:function(t){return window.cancelAnimationFrame(t)}},{key:"draw",value:function(t){var e=this,i=this.options.fps_limit;if(0<i&&t<this.lastFrameTime+1e3/i)return console.log("fps limited"),void(this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}));var a=t-this.lastFrameTime;this.lastFrameTime=t,this.options.particles.shape.type==p.ShapeType.image?null!=this.img.obj?(this.particles.draw(a),void 0===this.drawAnimFrame||this.options.particles.move.enable?this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}):this.cancelAnimation(this.drawAnimFrame)):this.img.error||(this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)})):(this.particles.draw(a),this.options.particles.move.enable?this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}):void 0!==this.drawAnimFrame&&this.cancelAnimation(this.drawAnimFrame))}},{key:"checkBeforeDraw",value:function(){this.options.particles.shape.type==p.ShapeType.image?(this.checkAnimFrame&&this.cancelAnimation(this.checkAnimFrame),this.img.error||(this.init(),this.draw(0))):(this.init(),this.draw(0))}},{key:"processBubble",value:function(t,e,i,a,r,n,s,o){var c=this.options;if(a!=r)if(this.bubble.duration_end){if(null!=n){var l=a+(a-(s-i*(s-a)/c.interactivity.modes.bubble.duration));o==p.ProcessBubbleType.size&&(t.radius_bubble=l),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=l)}}else if(e<=c.interactivity.modes.bubble.distance){if((null!=n?n:s)!=a){var u=s-i*(s-a)/c.interactivity.modes.bubble.duration;o==p.ProcessBubbleType.size&&(t.radius_bubble=u),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=u)}}else o==p.ProcessBubbleType.size&&(t.radius_bubble=void 0),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=void 0)}},{key:"init",value:function(){this.retina.init(),this.canvas.init(),this.canvas.size(),this.canvas.paint(),this.particles.create(),this.densityAutoParticles()}},{key:"start",value:(t=(0,n.default)(r.default.mark(function t(){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.particles.shape.type==p.ShapeType.image)return this.img.type=this.options.particles.shape.image.src.substr(this.options.particles.shape.image.src.length-3),t.next=4,this.loadImg(this.img.type);t.next=6;break;case 4:t.next=7;break;case 6:this.checkBeforeDraw();case 7:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]),a}();e.Container=m},function(t,e,i){},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Retina=void 0;var r=a(i(1)),n=a(i(2)),s=a(i(3)),o=function(){function e(t){(0,r.default)(this,e),(0,s.default)(this,"pJSContainer",void 0),(0,s.default)(this,"isRetina",void 0),this.pJSContainer=t,this.isRetina=!1}return(0,n.default)(e,[{key:"init",value:function(){var t=this.pJSContainer,e=t.options;e.retina_detect&&1<window.devicePixelRatio?(t.canvas.pxratio=window.devicePixelRatio,this.isRetina=!0):(t.canvas.pxratio=1,this.isRetina=!1),t.canvas.w=t.canvas.el.offsetWidth*t.canvas.pxratio,t.canvas.h=t.canvas.el.offsetHeight*t.canvas.pxratio,e.particles.size.value=e.particles.size.value*t.canvas.pxratio,e.particles.size.anim.speed=e.particles.size.anim.speed*t.canvas.pxratio,e.particles.move.speed=e.particles.move.speed*t.canvas.pxratio,e.particles.line_linked.distance=e.particles.line_linked.distance*t.canvas.pxratio,e.interactivity.modes.grab.distance=e.interactivity.modes.grab.distance*t.canvas.pxratio,e.interactivity.modes.bubble.distance=e.interactivity.modes.bubble.distance*t.canvas.pxratio,e.particles.line_linked.width=e.particles.line_linked.width*t.canvas.pxratio,e.interactivity.modes.bubble.size=e.interactivity.modes.bubble.size*t.canvas.pxratio,e.interactivity.modes.repulse.distance=e.interactivity.modes.repulse.distance*t.canvas.pxratio}}]),e}();e.Retina=o},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Canvas=void 0;var r=a(i(1)),n=a(i(2)),s=a(i(3)),o=i(8),c=function(){function a(t,e){(0,r.default)(this,a),(0,s.default)(this,"pJSContainer",void 0),(0,s.default)(this,"el",void 0),(0,s.default)(this,"ctx",void 0),(0,s.default)(this,"w",void 0),(0,s.default)(this,"h",void 0),(0,s.default)(this,"tag_id",void 0),(0,s.default)(this,"pxratio",void 0);var i=document.querySelector("#".concat(e," > .").concat(o.Constants.canvasClass));this.pJSContainer=t,this.el=i,this.w=i.offsetWidth,this.h=i.offsetHeight,this.tag_id=e,this.pxratio=1,this.ctx=this.el.getContext("2d")}return(0,n.default)(a,[{key:"init",value:function(){}},{key:"size",value:function(){var t=this,e=this.pJSContainer,i=e.options;this.el.width=this.w,this.el.height=this.h,e&&i.interactivity.events.resize&&window.addEventListener("resize",function(){t.w=t.el.offsetWidth,t.h=t.el.offsetHeight,e.retina.isRetina&&(t.w*=t.pxratio,t.h*=t.pxratio),t.el.width=t.w,t.el.height=t.h,i.particles.move.enable||(e.particles.empty(),e.particles.create(),e.particles.draw(0)),e.densityAutoParticles()})}},{key:"paint",value:function(){this.ctx&&this.ctx.fillRect(0,0,this.w,this.h)}},{key:"clear",value:function(){this.ctx&&this.ctx.clearRect(0,0,this.w,this.h)}}]),a}();e.Canvas=c},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Particles=void 0;var r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=a(i(3)),l=i(17),v=i(7),d=i(6),u=function(){function e(t){(0,s.default)(this,e),(0,c.default)(this,"pJSContainer",void 0),(0,c.default)(this,"array",void 0),(0,c.default)(this,"pushing",void 0),this.pJSContainer=t,this.array=[]}var t;return(0,o.default)(e,[{key:"create",value:function(){for(var t=this.pJSContainer,e=t.options,i=0;i<e.particles.number.value;i++){var a=new l.Particle(t,e.particles.color,e.particles.opacity.value);this.array.push(a)}}},{key:"update",value:function(t){for(var e=this.pJSContainer,i=e.options,a=this.array.length,r=0;r<a;r++){var n=this.array[r];if(i.particles.move.enable){var s=i.particles.move.speed/10;n.x+=n.vx*s*t,n.y+=n.vy*s*t}if(e.interactivity.mouse.pos_x&&i.interactivity.events.onhover.parallax.enable){var o=(e.interactivity.mouse.pos_x-window.innerWidth/2)*(n.radius/i.interactivity.events.onhover.parallax.force);n.offsetX+=(o-n.offsetX)/i.interactivity.events.onhover.parallax.smooth;var c=((e.interactivity.mouse.pos_y||0)-window.innerHeight/2)*(n.radius/i.interactivity.events.onhover.parallax.force);n.offsetY+=(c-n.offsetY)/i.interactivity.events.onhover.parallax.smooth}i.particles.opacity.anim.enable&&(1==n.opacity_status?(n.opacity>=i.particles.opacity.value&&(n.opacity_status=!1),n.opacity+=n.vo||0):(n.opacity<=i.particles.opacity.anim.opacity_min&&(n.opacity_status=!0),n.opacity-=n.vo||0),n.opacity<0&&(n.opacity=0)),i.particles.size.anim.enable&&(1==n.size_status?(n.radius>=i.particles.size.value&&(n.size_status=!1),n.radius+=n.vs||0):(n.radius<=i.particles.size.anim.size_min&&(n.size_status=!0),n.radius-=n.vs||0),n.radius<0&&(n.radius=0));var l=void 0;switch(l=i.particles.move.out_mode==d.OutMode.bounce||i.particles.move.out_mode==d.OutMode.bounceVertical?{x_left:n.radius,x_right:e.canvas.w,y_top:n.radius,y_bottom:e.canvas.h}:{x_left:-n.radius-n.offsetX,x_right:e.canvas.w+n.radius+n.offsetX,y_top:-n.radius-n.offsetY,y_bottom:e.canvas.h+n.radius-n.offsetY},n.x-n.radius>e.canvas.w-n.offsetX?(n.x=l.x_left,n.y=Math.random()*e.canvas.h):n.x+n.radius<0-n.offsetX&&(n.x=l.x_right,n.y=Math.random()*e.canvas.h),n.y-n.radius>e.canvas.h-n.offsetY?(n.y=l.y_top,n.x=Math.random()*e.canvas.w):n.y+n.radius<0-n.offsetY&&(n.y=l.y_bottom,n.x=Math.random()*e.canvas.w),i.particles.move.out_mode){case d.OutMode.bounce:(n.x+n.offsetX+n.radius>e.canvas.w||n.x+n.offsetX-n.radius<0)&&(n.vx=-n.vx),(n.y+n.offsetY+n.radius>e.canvas.h||n.y+n.offsetY-n.radius<0)&&(n.vy=-n.vy);break;case d.OutMode.bounceVertical:n.y+n.radius>e.canvas.h&&(n.vy=-n.vy),n.y-n.radius<0&&(n.vy=-n.vy);break;case d.OutMode.bounceHorizontal:(n.x+n.radius>e.canvas.w||n.x-n.radius<0)&&(n.vx=-n.vx)}if(v.Utils.isInArray(d.HoverMode.grab,i.interactivity.events.onhover.mode)&&n.grab(),(v.Utils.isInArray(d.HoverMode.bubble,i.interactivity.events.onhover.mode)||v.Utils.isInArray(d.ClickMode.bubble,i.interactivity.events.onclick.mode))&&n.bubble(),(v.Utils.isInArray(d.HoverMode.repulse,i.interactivity.events.onhover.mode)||v.Utils.isInArray(d.ClickMode.repulse,i.interactivity.events.onclick.mode))&&n.repulse(),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var u=r+1;u<a;u++){var h=this.array[u];i.particles.line_linked.enable&&n.link(h),i.particles.move.attract.enable&&n.attract(h),i.particles.move.bounce&&n.bounce(h)}}}},{key:"draw",value:function(t){var e=this.pJSContainer;e.canvas.ctx&&e.canvas.ctx.clearRect(0,0,e.canvas.w,e.canvas.h),e.particles.update(t);var i=!0,a=!1,r=void 0;try{for(var n,s=this.array[Symbol.iterator]();!(i=(n=s.next()).done);i=!0){n.value.draw()}}catch(t){a=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}}},{key:"empty",value:function(){this.array=[]}},{key:"push",value:function(t,e){var i=this.pJSContainer,a=i.options;this.pushing=!0;for(var r=0;r<t;r++){var n=new l.Particle(i,a.particles.color,a.particles.opacity.value,{x:e&&e.pos_x?e.pos_x:Math.random()*i.canvas.w,y:e&&e.pos_y?e.pos_y:Math.random()*i.canvas.h});this.array.push(n)}a.particles.move.enable||this.draw(0),this.pushing=!1}},{key:"remove",value:function(t){var e=this.pJSContainer.options;this.array.splice(0,t),e.particles.move.enable||this.draw(0)}},{key:"refresh",value:(t=(0,n.default)(r.default.mark(function t(){var e;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(e=this.pJSContainer).checkAnimFrame&&e.cancelAnimation(e.checkAnimFrame),e.drawAnimFrame&&e.cancelAnimation(e.drawAnimFrame),e.svg.source=void 0,e.svg.count=0,e.img.obj=void 0,this.empty(),e.canvas.clear(),t.next=10,e.start();case 10:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]),e}();e.Particles=u},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Particle=void 0;var p=a(i(18)),f=a(i(1)),r=a(i(2)),y=a(i(3)),m=i(7),g=i(6),n=function(){function d(t,e,i,a){(0,f.default)(this,d),(0,y.default)(this,"pJSContainer",void 0),(0,y.default)(this,"radius",void 0),(0,y.default)(this,"size_status",void 0),(0,y.default)(this,"vs",void 0),(0,y.default)(this,"x",void 0),(0,y.default)(this,"y",void 0),(0,y.default)(this,"offsetX",void 0),(0,y.default)(this,"offsetY",void 0),(0,y.default)(this,"color",void 0),(0,y.default)(this,"opacity",void 0),(0,y.default)(this,"opacity_status",void 0),(0,y.default)(this,"vo",void 0),(0,y.default)(this,"vx",void 0),(0,y.default)(this,"vy",void 0),(0,y.default)(this,"vx_i",void 0),(0,y.default)(this,"vy_i",void 0),(0,y.default)(this,"shape",void 0),(0,y.default)(this,"img",void 0),(0,y.default)(this,"radius_bubble",void 0),(0,y.default)(this,"opacity_bubble",void 0),(0,y.default)(this,"text",void 0);var r,n=(this.pJSContainer=t).options;if(this.radius=(n.particles.size.random?Math.random():1)*n.particles.size.value,n.particles.size.anim.enable&&(this.size_status=!1,this.vs=n.particles.size.anim.speed/100,n.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=a?a.x:Math.random()*t.canvas.w,this.y=a?a.y:Math.random()*t.canvas.h,this.x>t.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>t.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),this.offsetX=0,this.offsetY=0,n.particles.move.bounce&&this.checkOverlap(a),this.color={},"object"==(0,p.default)(e.value))if(e.value instanceof Array){var s=n.particles.color.value,o=e.value[Math.floor(Math.random()*s.length)];this.color.rgb=m.Utils.hexToRgb(o)}else{var c=e.value;c&&null!=c.r&&null!=c.g&&null!=c.b&&(this.color.rgb={r:c.r,g:c.g,b:c.b});var l=e.value;null!=l.h&&null!=l.s&&null!=l.l&&(this.color.hsl={h:l.h,s:l.s,l:l.l})}else"string"==typeof e.value&&("random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:(this.color={},this.color.rgb=m.Utils.hexToRgb(e.value)));switch(this.opacity=(n.particles.opacity.random?Math.random():1)*n.particles.opacity.value,n.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=n.particles.opacity.anim.speed/100,n.particles.opacity.anim.sync||(this.vo=this.vo*Math.random())),n.particles.move.direction){case g.MoveDirection.top:r={x:0,y:-1};break;case g.MoveDirection.topRight:r={x:.5,y:-.5};break;case g.MoveDirection.right:r={x:1,y:-0};break;case g.MoveDirection.bottomRight:r={x:.5,y:.5};break;case g.MoveDirection.bottom:r={x:0,y:1};break;case g.MoveDirection.bottomLeft:r={x:-.5,y:1};break;case g.MoveDirection.left:r={x:-1,y:0};break;case g.MoveDirection.topLeft:r={x:-.5,y:-.5};break;default:r={x:0,y:0}}n.particles.move.straight?(this.vx=r.x,this.vy=r.y,n.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var u=n.particles.shape.type;if(u instanceof Array){var h=u[Math.floor(Math.random()*u.length)];this.shape=h}else this.shape=u;if(this.shape==g.ShapeType.image){var v=n.particles.shape;this.img={src:v.image.src,ratio:v.image.width/v.image.height,replace_color:v.image.replace_color},this.img.ratio||(this.img.ratio=1)}this.shape!=g.ShapeType.char&&this.shape!=g.ShapeType.character||("string"==typeof n.particles.shape.character.value?this.text=n.particles.shape.character.value:this.text=n.particles.shape.character.value[Math.floor(Math.random()*n.particles.shape.character.value.length)])}return(0,r.default)(d,[{key:"draw",value:function(){var t,e,i,a=this.pJSContainer,r=a.options;if(t=null!=this.radius_bubble?this.radius_bubble:this.radius,e=null!=this.opacity_bubble?this.opacity_bubble:this.opacity,this.color.rgb?i="rgba(".concat(this.color.rgb.r,",").concat(this.color.rgb.g,",").concat(this.color.rgb.b,",").concat(e,")"):this.color.hsl&&(i="hsla(".concat(this.color.hsl.h,",").concat(this.color.hsl.s,"%,").concat(this.color.hsl.l,"%,").concat(e,")")),a.canvas.ctx&&i){a.canvas.ctx.fillStyle=i,a.canvas.ctx.beginPath();var n=this.x+this.offsetX,s=this.y+this.offsetY,o=a.canvas.ctx;switch(this.shape){case g.ShapeType.line:o.moveTo(this.x,this.y),o.lineTo(this.x,this.y+t),o.strokeStyle=r.particles.shape.stroke.color,o.lineWidth=r.particles.shape.stroke.width,o.stroke();break;case g.ShapeType.circle:o.arc(n,s,t,0,2*Math.PI,!1);break;case g.ShapeType.edge:case g.ShapeType.square:o.rect(this.x-t,this.y-t,2*t,2*t);break;case g.ShapeType.triangle:this.drawShape(o,this.x-t,this.y+t/1.66,2*t,3,2);break;case g.ShapeType.polygon:var c=this.x-t/(r.particles.shape.polygon.nb_sides/3.5),l=this.y-t/.76,u=2.66*t/(r.particles.shape.polygon.nb_sides/3),h=r.particles.shape.polygon.nb_sides;this.drawShape(o,c,l,u,h,1);break;case g.ShapeType.star:var v=this.x-2*t/(r.particles.shape.polygon.nb_sides/4),d=this.y-t/1.52,p=2*t*2.66/(r.particles.shape.polygon.nb_sides/3),f=r.particles.shape.polygon.nb_sides;this.drawShape(o,v,d,p,f,2);break;case g.ShapeType.heart:var y=this.x-t/2,m=this.y-t/2;o.moveTo(y,m+t/4),o.quadraticCurveTo(y,m,y+t/4,m),o.quadraticCurveTo(y+t/2,m,y+t/2,m+t/4),o.quadraticCurveTo(y+t/2,m,y+3*t/4,m),o.quadraticCurveTo(y+t,m,y+t,m+t/4),o.quadraticCurveTo(y+t,m+t/2,y+3*t/4,m+3*t/4),o.lineTo(y+t/2,m+t),o.lineTo(y+t/4,m+3*t/4),o.quadraticCurveTo(y,m+t/2,y,m+t/4);break;case g.ShapeType.char:case g.ShapeType.character:o.font="".concat(r.particles.shape.character.style," ").concat(r.particles.shape.character.weight," ").concat(2*Math.round(t),"px ").concat(r.particles.shape.character.font),void 0!==this.text&&o.strokeText(this.text,this.x-t/2,this.y+t/2);break;case g.ShapeType.image:var b;(b=a.img.obj)&&this.subDraw(o,b,t)}a.canvas.ctx.closePath(),0<r.particles.shape.stroke.width&&(a.canvas.ctx.strokeStyle=r.particles.shape.stroke.color,a.canvas.ctx.lineWidth=r.particles.shape.stroke.width,a.canvas.ctx.stroke()),a.canvas.ctx.fill()}}},{key:"subDraw",value:function(t,e,i){var a=1;this.img&&(a=this.img.ratio),t.drawImage(e,this.x-i,this.y-i,2*i,2*i/a)}},{key:"drawShape",value:function(t,e,i,a,r,n){var s=r*n,o=r/n,c=180*(o-2)/o,l=Math.PI-Math.PI*c/180;t.save(),t.beginPath(),t.translate(e,i),t.moveTo(0,0);for(var u=0;u<s;u++)t.lineTo(a,0),t.translate(a,0),t.rotate(l);t.fill(),t.restore()}},{key:"checkOverlap",value:function(t){var e=this.pJSContainer,i=this,a=!0,r=!1,n=void 0;try{for(var s,o=e.particles.array[Symbol.iterator]();!(a=(s=o.next()).done);a=!0){var c=s.value,l=i.x-c.x,u=i.y-c.y;Math.sqrt(l*l+u*u)<=i.radius+c.radius&&(i.x=t?t.x:Math.random()*e.canvas.w,i.y=t?t.y:Math.random()*e.canvas.h,i.checkOverlap())}}catch(t){r=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(r)throw n}}}},{key:"initBubble",value:function(){this.opacity_bubble=this.opacity,this.radius_bubble=this.radius}},{key:"grab",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&"mousemove"==t.interactivity.status){var i=this.x-(t.interactivity.mouse.pos_x||0),a=this.y-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a);if(r<=e.interactivity.modes.grab.distance){var n=e.interactivity.modes.grab.line_linked.opacity-r/(1/e.interactivity.modes.grab.line_linked.opacity)/e.interactivity.modes.grab.distance;if(0<n){e.particles.line_linked.color_rgb=e.particles.line_linked.color_rgb||m.Utils.hexToRgb(e.particles.line_linked.color);var s=e.particles.line_linked.color_rgb||{r:127,g:127,b:127};t.canvas.ctx&&(t.canvas.ctx.strokeStyle="rgba(".concat(s.r,",").concat(s.g,",").concat(s.b,",").concat(n,")"),t.canvas.ctx.lineWidth=e.particles.line_linked.width,t.canvas.ctx.beginPath(),t.canvas.ctx.moveTo(this.x+this.offsetX,this.y+this.offsetY),t.canvas.ctx.lineTo(t.interactivity.mouse.pos_x||0,t.interactivity.mouse.pos_y||0),t.canvas.ctx.stroke(),t.canvas.ctx.closePath())}}}}},{key:"bubble",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&m.Utils.isInArray(g.HoverMode.bubble,e.interactivity.events.onhover.mode)){var i=this.x+this.offsetX-(t.interactivity.mouse.pos_x||0),a=this.y+this.offsetY-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a),n=1-r/e.interactivity.modes.bubble.distance;if(r<=e.interactivity.modes.bubble.distance){if(0<=n&&"mousemove"==t.interactivity.status){if(e.interactivity.modes.bubble.size!=e.particles.size.value)if(e.interactivity.modes.bubble.size>e.particles.size.value){var s=this.radius+e.interactivity.modes.bubble.size*n;0<=s&&(this.radius_bubble=s)}else{var o=this.radius-e.interactivity.modes.bubble.size,c=this.radius-o*n;this.radius_bubble=0<c?c:0}if(e.interactivity.modes.bubble.opacity!=e.particles.opacity.value)if(e.interactivity.modes.bubble.opacity>e.particles.opacity.value){var l=e.interactivity.modes.bubble.opacity*n;l>this.opacity&&l<=e.interactivity.modes.bubble.opacity&&(this.opacity_bubble=l)}else{var u=this.opacity-(e.particles.opacity.value-e.interactivity.modes.bubble.opacity)*n;u<this.opacity&&u>=e.interactivity.modes.bubble.opacity&&(this.opacity_bubble=u)}}}else this.initBubble();"mouseleave"==t.interactivity.status&&this.initBubble()}else if(e.interactivity.events.onclick.enable&&m.Utils.isInArray(g.ClickMode.bubble,e.interactivity.events.onclick.mode)){var h=this.x-(t.interactivity.mouse.click_pos_x||0),v=this.y-(t.interactivity.mouse.click_pos_y||0),d=Math.sqrt(h*h+v*v),p=((new Date).getTime()-(t.interactivity.mouse.click_time||0))/1e3;t.bubble.clicking&&(p>e.interactivity.modes.bubble.duration&&(t.bubble.duration_end=!0),p>2*e.interactivity.modes.bubble.duration&&(t.bubble.clicking=!1,t.bubble.duration_end=!1)),t.bubble.clicking&&(t.processBubble(this,d,p,e.interactivity.modes.bubble.size,e.particles.size.value,this.radius_bubble,this.radius,g.ProcessBubbleType.size),t.processBubble(this,d,p,e.interactivity.modes.bubble.opacity,e.particles.opacity.value,this.opacity_bubble,this.opacity,g.ProcessBubbleType.opacity))}}},{key:"repulse",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&m.Utils.isInArray(g.HoverMode.repulse,e.interactivity.events.onhover.mode)&&"mousemove"==t.interactivity.status){var i=this.x-(t.interactivity.mouse.pos_x||0),a=this.y-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a),n=i/r,s=a/r,o=e.interactivity.modes.repulse.distance,c=m.Utils.clamp(1/o*(-1*Math.pow(r/o,2)+1)*o*100,0,50),l={x:this.x+n*c,y:this.y+s*c};e.particles.move.out_mode==g.OutMode.bounce||e.particles.move.out_mode==g.OutMode.bounceVertical?(0<l.x-this.radius&&l.x+this.radius<t.canvas.w&&(this.x=l.x),0<l.y-this.radius&&l.y+this.radius<t.canvas.h&&(this.y=l.y)):(this.x=l.x,this.y=l.y)}else if(e.interactivity.events.onclick.enable&&m.Utils.isInArray(g.ClickMode.repulse,e.interactivity.events.onclick.mode))if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count==t.particles.array.length&&(t.repulse.finish=!0)),t.repulse.clicking){var u=Math.pow(e.interactivity.modes.repulse.distance/6,3),h=(t.interactivity.mouse.click_pos_x||0)-this.x,v=(t.interactivity.mouse.click_pos_y||0)-this.y,d=h*h+v*v,p=-u/d;d<=u&&this.processRepulse(h,v,p)}else!1===t.repulse.clicking&&(this.vx=this.vx_i,this.vy=this.vy_i)}},{key:"processRepulse",value:function(t,e,i){var a=this.pJSContainer,r=a.options,n=Math.atan2(e,t);if(this.vx=i*Math.cos(n),this.vy=i*Math.sin(n),r.particles.move.out_mode==g.OutMode.bounce||r.particles.move.out_mode==g.OutMode.bounceVertical){var s=this.x+this.vx,o=this.y+this.vy;(s+this.radius>a.canvas.w||s-this.radius<0)&&(this.vx=-this.vx),(o+this.radius>a.canvas.h||o-this.radius<0)&&(this.vy=-this.vy)}}},{key:"link",value:function(t){var e=this.pJSContainer,i=e.options,a=this.x+this.offsetX,r=t.x+t.offsetX,n=a-r,s=this.y+this.offsetY,o=t.y+t.offsetY,c=s-o,l=Math.sqrt(n*n+c*c);if(l<=i.particles.line_linked.distance){var u=i.particles.line_linked.opacity-l*i.particles.line_linked.opacity/i.particles.line_linked.distance;if(0<u){if(i.particles.line_linked.color_rgb||(i.particles.line_linked.color_rgb=m.Utils.hexToRgb(i.particles.line_linked.color)),!e.canvas.ctx)return;var h=e.canvas.ctx,v=i.particles.line_linked.color_rgb;v&&(h.strokeStyle="rgba(".concat(v.r,",").concat(v.g,",").concat(v.b,",").concat(u,")")),h.lineWidth=i.particles.line_linked.width,h.beginPath(),h.moveTo(a,s),h.lineTo(r,o),h.stroke(),h.closePath()}}}},{key:"attract",value:function(t){var e=this.pJSContainer.options,i=this.x-t.x,a=this.y-t.y;if(Math.sqrt(i*i+a*a)<=e.particles.line_linked.distance){var r=i/(1e3*e.particles.move.attract.rotateX),n=a/(1e3*e.particles.move.attract.rotateY);this.vx-=r,this.vy-=n,t.vx+=r,t.vy+=n}}},{key:"bounce",value:function(t){var e=this.x-t.x,i=this.y-t.y;Math.sqrt(e*e+i*i)<=this.radius+t.radius&&(this.vx=-this.vx,this.vy=-this.vy,t.vx=-t.vx,t.vy=-t.vy)}}]),d}();e.Particle=n},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=i=function(t){return typeof t}:e.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}e.exports=i}]); | ||
!function(i){var a={};function r(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=i,r.c=a,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=10)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}t.exports=function(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}},function(t,e){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){t.exports=i(11)},function(t,e){function c(t,e,i,a,r,n,s){try{var o=t[n](s),c=o.value}catch(t){return void i(t)}o.done?e(c):Promise.resolve(c).then(a,r)}t.exports=function(o){return function(){var t=this,s=arguments;return new Promise(function(e,i){var a=o.apply(t,s);function r(t){c(a,e,i,r,n,"next",t)}function n(t){c(a,e,i,r,n,"throw",t)}r(void 0)})}}},function(t,e,i){"use strict";var a,r,n,s,o,c,l,u,h,v,d,p,f,y;Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessBubbleType=e.ClickMode=e.HoverMode=e.InteractivityDetect=e.OutMode=e.MoveDirection=e.ShapeType=void 0,e.ShapeType=a,(r=a||(e.ShapeType=a={})).circle="circle",r.edge="edge",r.triangle="triangle",r.polygon="polygon",r.star="star",r.image="image",r.square="square",r.heart="heart",r.char="char",r.character="character",r.line="line",e.MoveDirection=n,(s=n||(e.MoveDirection=n={})).none="none",s.top="top",s.topRight="top-right",s.right="right",s.bottomRight="bottom-right",s.bottom="bottom",s.bottomLeft="bottom-left",s.left="left",s.topLeft="top-left",e.OutMode=o,(c=o||(e.OutMode=o={})).out="out",c.bounce="bounce",c.bounceVertical="bounce-vertical",c.bounceHorizontal="bounce-horizontal",e.InteractivityDetect=l,(u=l||(e.InteractivityDetect=l={})).canvas="canvas",u.window="window",u.parent="parent",e.HoverMode=h,(v=h||(e.HoverMode=h={})).grab="grab",v.bubble="bubble",v.repulse="repulse",e.ClickMode=d,(p=d||(e.ClickMode=d={})).push="push",p.remove="remove",p.bubble="bubble",p.repulse="repulse",e.ProcessBubbleType=f,(y=f||(e.ProcessBubbleType=f={})).size="size",y.opacity="opacity"},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;var r=a(i(1)),n=a(i(2)),s=function(){function a(){(0,r.default)(this,a)}return(0,n.default)(a,null,[{key:"hexToRgb",value:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,a){return e+e+i+i+a+a});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}},{key:"clamp",value:function(t,e,i){return Math.min(Math.max(t,e),i)}},{key:"isInArray",value:function(t,e){return t==e||-1<e.indexOf(t)}},{key:"deepExtend",value:function(t,e){for(var i in e)e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},a.deepExtend(t[i],e[i])):t[i]=e[i];return t}}]),a}();e.Utils=s},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Constants=void 0;function r(){(0,n.default)(this,r)}var n=a(i(1)),s=a(i(3)),o=i(6);e.Constants=r,(0,s.default)(r,"canvasClass","tsparticles-canvas-el"),(0,s.default)(r,"defaultOptions",{particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:o.ShapeType.circle,stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},character:{value:"*",font:"Verdana",weight:"400"},image:{src:"",width:100,height:100,replace_color:!0}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:o.MoveDirection.none,random:!1,straight:!1,out_mode:o.OutMode.out,bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:o.InteractivityDetect.canvas,events:{onhover:{enable:!0,mode:o.HoverMode.grab,parallax:{enable:!1,force:2,smooth:10}},onclick:{enable:!0,mode:o.ClickMode.push},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1,fps_limit:60})},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var n=a(i(4)),r=a(i(5)),s=a(i(1)),o=a(i(2)),u=i(12),h=i(8),c=[],l=function(){function l(){(0,s.default)(this,l)}var i;return(0,o.default)(l,null,[{key:"dom",value:function(){return c||l.domSet([]),c}},{key:"domSet",value:function(t){c=t}},{key:"load",value:function(e,t){var i,a=document.getElementById(e);if(a){var r=a.getElementsByClassName(h.Constants.canvasClass);if(r.length)for(;0<r.length;)a.removeChild(r[0]);var n=document.createElement("canvas");if(n.className=h.Constants.canvasClass,n.style.width="100%",n.style.height="100%",null===(i=document.getElementById(e))||void 0===i?void 0:i.appendChild(n)){var s=new u.Container(e,t),o=l.dom(),c=o.findIndex(function(t){return t.canvas.tag_id==e});return 0<=c?o.splice(c,1,s):o.push(s),s}}}},{key:"loadJSON",value:(i=(0,r.default)(n.default.mark(function t(e,i){var a,r;return n.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(i);case 2:if((a=t.sent).ok)return t.next=6,a.json();t.next=10;break;case 6:r=t.sent,l.load(e,r),t.next=12;break;case 10:console.error("Error pJS - fetch status: ".concat(a.status)),console.error("Error pJS - File config not found");case 12:case"end":return t.stop()}},t)})),function(t,e){return i.apply(this,arguments)})},{key:"setOnClickHandler",value:function(t){var e=l.dom();if(0==e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");var i=!0,a=!1,r=void 0;try{for(var n,s=e[Symbol.iterator]();!(i=(n=s.next()).done);i=!0){var o=n.value.interactivity.el;o&&o.addEventListener("click",t)}}catch(t){a=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}}}]),l}();e.Loader=l},function(t,e,i){"use strict";var a=i(0),r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=i(9);window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;var l=function(){function t(){(0,s.default)(this,t)}var i;return(0,o.default)(t,[{key:"load",value:function(t,e){c.Loader.load(t,e)}},{key:"loadJSON",value:(i=(0,n.default)(r.default.mark(function t(e,i){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Loader.loadJSON(e,i);case 2:case"end":return t.stop()}},t)})),function(t,e){return i.apply(this,arguments)})},{key:"setOnClickHandler",value:function(t){c.Loader.setOnClickHandler(t)}},{key:"dom",value:function(){return c.Loader.dom()}}]),t}();window.tsParticles=new l,Object.freeze(window.tsParticles),window.particlesJS=function(t,e){console&&console.info("this method is obsolete, please use the new tsParticles.load"),window.tsParticles.load(t,e)},window.particlesJS.load=function(){var a=(0,n.default)(r.default.mark(function t(e,i,a){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:console&&console.info("this method is obsolete, please use the new tsParticles.loadJSON"),window.tsParticles.loadJSON(e,i).then(a);case 2:case"end":return t.stop()}},t)}));return function(t,e,i){return a.apply(this,arguments)}}(),window.particlesJS.setOnClickHandler=function(t){console&&console.info("this method is obsolete, please use the new tsParticles.setOnClickHandler"),window.tsParticles.setOnClickHandler(t)},window.pJSDom=function(){return console&&console.info("this method is obsolete, please use the new tsParticles.dom"),window.tsParticles.dom()}},function(t,e,i){var a=function(n){"use strict";var c,t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";function s(t,e,i,a){var n,s,o,c,r=e&&e.prototype instanceof m?e:m,l=Object.create(r.prototype),u=new T(a||[]);return l._invoke=(n=t,s=i,o=u,c=v,function(t,e){if(c===p)throw new Error("Generator is already running");if(c===f){if("throw"===t)throw e;return O()}for(o.method=t,o.arg=e;;){var i=o.delegate;if(i){var a=M(i,o);if(a){if(a===y)continue;return a}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(c===v)throw c=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c=p;var r=h(n,s,o);if("normal"===r.type){if(c=o.done?f:d,r.arg===y)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(c=f,o.method="throw",o.arg=r.arg)}}),l}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var v="suspendedStart",d="suspendedYield",p="executing",f="completed",y={};function m(){}function o(){}function u(){}var b={};b[r]=function(){return this};var g=Object.getPrototypeOf,x=g&&g(g(P([])));x&&x!==t&&l.call(x,r)&&(b=x);var w=u.prototype=m.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(c){var e;this._invoke=function(i,a){function t(){return new Promise(function(t,e){!function e(t,i,a,r){var n=h(c[t],c,i);if("throw"!==n.type){var s=n.arg,o=s.value;return o&&"object"==typeof o&&l.call(o,"__await")?Promise.resolve(o.__await).then(function(t){e("next",t,a,r)},function(t){e("throw",t,a,r)}):Promise.resolve(o).then(function(t){s.value=t,a(s)},function(t){return e("throw",t,a,r)})}r(n.arg)}(i,a,t,e)})}return e=e?e.then(t,t):t()}}function M(t,e){var i=t.iterator[e.method];if(i===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,M(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var a=h(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,y;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,y):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(l.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=c,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:c,done:!0}}return o.prototype=w.constructor=u,u.constructor=o,u[a]=o.displayName="GeneratorFunction",n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},_(k.prototype),k.prototype[i]=function(){return this},n.AsyncIterator=k,n.async=function(t,e,i,a){var r=new k(s(t,e,i,a));return n.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},_(w),w[a]="Generator",w[r]=function(){return this},w.toString=function(){return"[object Generator]"},n.keys=function(i){var a=[];for(var t in i)a.push(t);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in i)return t.value=e,t.done=!1,t}return t.done=!0,t}},n.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var a=this;function t(t,e){return n.type="throw",n.arg=i,a.next=t,e&&(a.method="next",a.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],n=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=l.call(r,"catchLoc"),o=l.call(r,"finallyLoc");if(s&&o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&l.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,y):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),y}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var r=a.arg;C(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:P(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=c),y}},n}(t.exports);try{regeneratorRuntime=a}catch(t){Function("r","regeneratorRuntime = r")(a)}},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=a(i(3)),l=i(7),u=i(13),h=i(14),v=i(15),d=i(16),p=i(6),f=i(9),y=i(8),m=function(){function a(t,e){var i=this;(0,s.default)(this,a),(0,c.default)(this,"interactivity",void 0),(0,c.default)(this,"options",void 0),(0,c.default)(this,"retina",void 0),(0,c.default)(this,"canvas",void 0),(0,c.default)(this,"particles",void 0),(0,c.default)(this,"checkAnimFrame",void 0),(0,c.default)(this,"drawAnimFrame",void 0),(0,c.default)(this,"bubble",void 0),(0,c.default)(this,"repulse",void 0),(0,c.default)(this,"svg",void 0),(0,c.default)(this,"img",void 0),(0,c.default)(this,"lastFrameTime",0),(0,c.default)(this,"pageHidden",!1),this.retina=new h.Retina(this),this.canvas=new v.Canvas(this,t),this.particles=new d.Particles(this),this.interactivity={mouse:{}},this.svg={source:void 0,count:0},this.img={},this.bubble={},this.repulse={},this.options=y.Constants.defaultOptions,e&&l.Utils.deepExtend(this.options,e),this.eventsListeners(),this.start().then(function(){document.addEventListener("visibilitychange",function(){return i.handleVisibilityChange()},!1)})}var t,e;return(0,o.default)(a,[{key:"handleVisibilityChange",value:function(){document.hidden?(this.pageHidden=!0,this.drawAnimFrame&&this.cancelAnimation(this.drawAnimFrame)):(this.pageHidden=!1,this.lastFrameTime=performance.now(),this.draw(0))}},{key:"eventsListeners",value:function(){var c=this;this.options.interactivity.detect_on==p.InteractivityDetect.window?this.interactivity.el=window:"parent"==this.options.interactivity.detect_on?this.interactivity.el=this.canvas.el.parentNode:this.interactivity.el=this.canvas.el,(this.options.interactivity.events.onhover.enable||this.options.interactivity.events.onclick.enable)&&this.interactivity.el&&(this.interactivity.el.addEventListener("mousemove",function(t){var e,i,a=t;if(c.interactivity.el==window)e=a.clientX,i=a.clientY;else if(c.options.interactivity.detect_on==p.InteractivityDetect.parent){var r=a.srcElement,n=a.currentTarget;if(r&&n){var s=r.getBoundingClientRect(),o=n.getBoundingClientRect();e=a.offsetX+s.left-o.left,i=a.offsetY+s.top-o.top}else e=a.offsetX||a.clientX,i=a.offsetY||a.clientY}else e=a.offsetX||a.clientX,i=a.offsetY||a.clientY;c.interactivity.mouse.pos_x=e*(c.retina.isRetina?c.canvas.pxratio:1),c.interactivity.mouse.pos_y=i*(c.retina.isRetina?c.canvas.pxratio:1),c.interactivity.status="mousemove"}),this.interactivity.el.addEventListener("mouseleave",function(){c.interactivity.mouse.pos_x=null,c.interactivity.mouse.pos_y=null,c.interactivity.status="mouseleave"})),this.options.interactivity.events.onclick.enable&&this.interactivity.el&&this.interactivity.el.addEventListener("click",function(){if(c.interactivity.mouse.click_pos_x=c.interactivity.mouse.pos_x,c.interactivity.mouse.click_pos_y=c.interactivity.mouse.pos_y,c.interactivity.mouse.click_time=(new Date).getTime(),c.options.interactivity.events.onclick.enable)switch(c.options.interactivity.events.onclick.mode){case p.ClickMode.push:c.options.particles.move.enable||1==c.options.interactivity.modes.push.particles_nb?c.particles.push(c.options.interactivity.modes.push.particles_nb,c.interactivity.mouse):1<c.options.interactivity.modes.push.particles_nb&&c.particles.push(c.options.interactivity.modes.push.particles_nb);break;case p.ClickMode.remove:c.particles.remove(c.options.interactivity.modes.remove.particles_nb);break;case p.ClickMode.bubble:c.bubble.clicking=!0;break;case p.ClickMode.repulse:c.repulse.clicking=!0,c.repulse.count=0,c.repulse.finish=!1,setTimeout(function(){c.repulse.clicking=!1},1e3*c.options.interactivity.modes.repulse.duration)}})}},{key:"densityAutoParticles",value:function(){if(this.options.particles.number.density.enable){var t=this.canvas.el.width*this.canvas.el.height/1e3;this.retina.isRetina&&(t/=2*this.canvas.pxratio);var e=t*this.options.particles.number.value/this.options.particles.number.density.value_area,i=this.particles.array.length-e;i<0?this.particles.push(Math.abs(i)):this.particles.remove(i)}}},{key:"destroypJS",value:function(){void 0!==this.drawAnimFrame&&cancelAnimationFrame(this.drawAnimFrame),this.canvas.el.remove(),f.Loader.domSet([])}},{key:"exportImg",value:function(){window.open(this.canvas.el.toDataURL("image/png"),"_blank")}},{key:"loadImg",value:(e=(0,n.default)(r.default.mark(function t(e){var i,a=this;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.img.error=void 0,""!=this.options.particles.shape.image.src?((i=new u.Image).addEventListener("load",function(){a.img.obj=i,a.checkBeforeDraw()}),i.src=this.options.particles.shape.image.src):(console.error("Error pJS - No image.src"),this.img.error=!0);case 2:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"requestFrame",value:function(t){return window.requestAnimFrame(t)}},{key:"cancelAnimation",value:function(t){return window.cancelAnimationFrame(t)}},{key:"draw",value:function(t){var e=this,i=this.options.fps_limit;if(0<i&&t<this.lastFrameTime+1e3/i)return console.log("fps limited"),void(this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}));var a=t-this.lastFrameTime;this.lastFrameTime=t,this.options.particles.shape.type==p.ShapeType.image?null!=this.img.obj?(this.particles.draw(a),void 0===this.drawAnimFrame||this.options.particles.move.enable?this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}):this.cancelAnimation(this.drawAnimFrame)):this.img.error||(this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)})):(this.particles.draw(a),this.options.particles.move.enable?this.drawAnimFrame=this.requestFrame(function(t){return e.draw(t)}):void 0!==this.drawAnimFrame&&this.cancelAnimation(this.drawAnimFrame))}},{key:"checkBeforeDraw",value:function(){this.options.particles.shape.type==p.ShapeType.image?(this.checkAnimFrame&&this.cancelAnimation(this.checkAnimFrame),this.img.error||(this.init(),this.draw(0))):(this.init(),this.draw(0))}},{key:"processBubble",value:function(t,e,i,a,r,n,s,o){var c=this.options;if(a!=r)if(this.bubble.duration_end){if(null!=n){var l=a+(a-(s-i*(s-a)/c.interactivity.modes.bubble.duration));o==p.ProcessBubbleType.size&&(t.radius_bubble=l),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=l)}}else if(e<=c.interactivity.modes.bubble.distance){if((null!=n?n:s)!=a){var u=s-i*(s-a)/c.interactivity.modes.bubble.duration;o==p.ProcessBubbleType.size&&(t.radius_bubble=u),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=u)}}else o==p.ProcessBubbleType.size&&(t.radius_bubble=void 0),o==p.ProcessBubbleType.opacity&&(t.opacity_bubble=void 0)}},{key:"init",value:function(){this.retina.init(),this.canvas.init(),this.canvas.size(),this.canvas.paint(),this.particles.create(),this.densityAutoParticles()}},{key:"start",value:(t=(0,n.default)(r.default.mark(function t(){return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.particles.shape.type==p.ShapeType.image)return this.img.type=this.options.particles.shape.image.src.substr(this.options.particles.shape.image.src.length-3),t.next=4,this.loadImg(this.img.type);t.next=6;break;case 4:t.next=7;break;case 6:this.checkBeforeDraw();case 7:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]),a}();e.Container=m},function(t,e,i){},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Retina=void 0;var r=a(i(1)),n=a(i(2)),s=a(i(3)),o=function(){function e(t){(0,r.default)(this,e),(0,s.default)(this,"pJSContainer",void 0),(0,s.default)(this,"isRetina",void 0),this.pJSContainer=t,this.isRetina=!1}return(0,n.default)(e,[{key:"init",value:function(){var t=this.pJSContainer,e=t.options;e.retina_detect&&1<window.devicePixelRatio?(t.canvas.pxratio=window.devicePixelRatio,this.isRetina=!0):(t.canvas.pxratio=1,this.isRetina=!1),t.canvas.w=t.canvas.el.offsetWidth*t.canvas.pxratio,t.canvas.h=t.canvas.el.offsetHeight*t.canvas.pxratio,e.particles.size.value=e.particles.size.value*t.canvas.pxratio,e.particles.size.anim.speed=e.particles.size.anim.speed*t.canvas.pxratio,e.particles.move.speed=e.particles.move.speed*t.canvas.pxratio,e.particles.line_linked.distance=e.particles.line_linked.distance*t.canvas.pxratio,e.interactivity.modes.grab.distance=e.interactivity.modes.grab.distance*t.canvas.pxratio,e.interactivity.modes.bubble.distance=e.interactivity.modes.bubble.distance*t.canvas.pxratio,e.particles.line_linked.width=e.particles.line_linked.width*t.canvas.pxratio,e.interactivity.modes.bubble.size=e.interactivity.modes.bubble.size*t.canvas.pxratio,e.interactivity.modes.repulse.distance=e.interactivity.modes.repulse.distance*t.canvas.pxratio}}]),e}();e.Retina=o},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Canvas=void 0;var r=a(i(1)),n=a(i(2)),s=a(i(3)),o=i(8),c=function(){function a(t,e){(0,r.default)(this,a),(0,s.default)(this,"pJSContainer",void 0),(0,s.default)(this,"el",void 0),(0,s.default)(this,"ctx",void 0),(0,s.default)(this,"w",void 0),(0,s.default)(this,"h",void 0),(0,s.default)(this,"tag_id",void 0),(0,s.default)(this,"pxratio",void 0);var i=document.querySelector("#".concat(e," > .").concat(o.Constants.canvasClass));this.pJSContainer=t,this.el=i,this.w=i.offsetWidth,this.h=i.offsetHeight,this.tag_id=e,this.pxratio=1,this.ctx=this.el.getContext("2d")}return(0,n.default)(a,[{key:"init",value:function(){}},{key:"size",value:function(){var t=this,e=this.pJSContainer,i=e.options;this.el.width=this.w,this.el.height=this.h,e&&i.interactivity.events.resize&&window.addEventListener("resize",function(){t.w=t.el.offsetWidth,t.h=t.el.offsetHeight,e.retina.isRetina&&(t.w*=t.pxratio,t.h*=t.pxratio),t.el.width=t.w,t.el.height=t.h,i.particles.move.enable||(e.particles.empty(),e.particles.create(),e.particles.draw(0)),e.densityAutoParticles()})}},{key:"paint",value:function(){this.ctx&&this.ctx.fillRect(0,0,this.w,this.h)}},{key:"clear",value:function(){this.ctx&&this.ctx.clearRect(0,0,this.w,this.h)}}]),a}();e.Canvas=c},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Particles=void 0;var r=a(i(4)),n=a(i(5)),s=a(i(1)),o=a(i(2)),c=a(i(3)),l=i(17),v=i(7),d=i(6),u=function(){function e(t){(0,s.default)(this,e),(0,c.default)(this,"pJSContainer",void 0),(0,c.default)(this,"array",void 0),(0,c.default)(this,"pushing",void 0),this.pJSContainer=t,this.array=[]}var t;return(0,o.default)(e,[{key:"create",value:function(){for(var t=this.pJSContainer,e=t.options,i=0;i<e.particles.number.value;i++){var a=new l.Particle(t,e.particles.color,e.particles.opacity.value);this.array.push(a)}}},{key:"update",value:function(t){for(var e=this.pJSContainer,i=e.options,a=this.array.length,r=0;r<a;r++){var n=this.array[r];if(i.particles.move.enable){var s=i.particles.move.speed/10;n.x+=n.vx*s*t,n.y+=n.vy*s*t}if(e.interactivity.mouse.pos_x&&i.interactivity.events.onhover.parallax.enable){var o=(e.interactivity.mouse.pos_x-window.innerWidth/2)*(n.radius/i.interactivity.events.onhover.parallax.force);n.offsetX+=(o-n.offsetX)/i.interactivity.events.onhover.parallax.smooth;var c=((e.interactivity.mouse.pos_y||0)-window.innerHeight/2)*(n.radius/i.interactivity.events.onhover.parallax.force);n.offsetY+=(c-n.offsetY)/i.interactivity.events.onhover.parallax.smooth}i.particles.opacity.anim.enable&&(1==n.opacity_status?(n.opacity>=i.particles.opacity.value&&(n.opacity_status=!1),n.opacity+=n.vo||0):(n.opacity<=i.particles.opacity.anim.opacity_min&&(n.opacity_status=!0),n.opacity-=n.vo||0),n.opacity<0&&(n.opacity=0)),i.particles.size.anim.enable&&(1==n.size_status?(n.radius>=i.particles.size.value&&(n.size_status=!1),n.radius+=n.vs||0):(n.radius<=i.particles.size.anim.size_min&&(n.size_status=!0),n.radius-=n.vs||0),n.radius<0&&(n.radius=0));var l=void 0;switch(l=i.particles.move.out_mode==d.OutMode.bounce||i.particles.move.out_mode==d.OutMode.bounceVertical?{x_left:n.radius,x_right:e.canvas.w,y_top:n.radius,y_bottom:e.canvas.h}:{x_left:-n.radius-n.offsetX,x_right:e.canvas.w+n.radius+n.offsetX,y_top:-n.radius-n.offsetY,y_bottom:e.canvas.h+n.radius-n.offsetY},n.x-n.radius>e.canvas.w-n.offsetX?(n.x=l.x_left,n.y=Math.random()*e.canvas.h):n.x+n.radius<0-n.offsetX&&(n.x=l.x_right,n.y=Math.random()*e.canvas.h),n.y-n.radius>e.canvas.h-n.offsetY?(n.y=l.y_top,n.x=Math.random()*e.canvas.w):n.y+n.radius<0-n.offsetY&&(n.y=l.y_bottom,n.x=Math.random()*e.canvas.w),i.particles.move.out_mode){case d.OutMode.bounce:(n.x+n.offsetX+n.radius>e.canvas.w||n.x+n.offsetX-n.radius<0)&&(n.vx=-n.vx),(n.y+n.offsetY+n.radius>e.canvas.h||n.y+n.offsetY-n.radius<0)&&(n.vy=-n.vy);break;case d.OutMode.bounceVertical:n.y+n.radius>e.canvas.h&&(n.vy=-n.vy),n.y-n.radius<0&&(n.vy=-n.vy);break;case d.OutMode.bounceHorizontal:(n.x+n.radius>e.canvas.w||n.x-n.radius<0)&&(n.vx=-n.vx)}if(v.Utils.isInArray(d.HoverMode.grab,i.interactivity.events.onhover.mode)&&n.grab(),(v.Utils.isInArray(d.HoverMode.bubble,i.interactivity.events.onhover.mode)||v.Utils.isInArray(d.ClickMode.bubble,i.interactivity.events.onclick.mode))&&n.bubble(),(v.Utils.isInArray(d.HoverMode.repulse,i.interactivity.events.onhover.mode)||v.Utils.isInArray(d.ClickMode.repulse,i.interactivity.events.onclick.mode))&&n.repulse(),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var u=r+1;u<a;u++){var h=this.array[u];i.particles.line_linked.enable&&n.link(h),i.particles.move.attract.enable&&n.attract(h),i.particles.move.bounce&&n.bounce(h)}}}},{key:"draw",value:function(t){var e=this.pJSContainer;e.canvas.ctx&&e.canvas.ctx.clearRect(0,0,e.canvas.w,e.canvas.h),e.particles.update(t);var i=!0,a=!1,r=void 0;try{for(var n,s=this.array[Symbol.iterator]();!(i=(n=s.next()).done);i=!0){n.value.draw()}}catch(t){a=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}}},{key:"empty",value:function(){this.array=[]}},{key:"push",value:function(t,e){var i=this.pJSContainer,a=i.options;this.pushing=!0;for(var r=0;r<t;r++){var n=new l.Particle(i,a.particles.color,a.particles.opacity.value,{x:e&&e.pos_x?e.pos_x:Math.random()*i.canvas.w,y:e&&e.pos_y?e.pos_y:Math.random()*i.canvas.h});this.array.push(n)}a.particles.move.enable||this.draw(0),this.pushing=!1}},{key:"remove",value:function(t){var e=this.pJSContainer.options;this.array.splice(0,t),e.particles.move.enable||this.draw(0)}},{key:"refresh",value:(t=(0,n.default)(r.default.mark(function t(){var e;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(e=this.pJSContainer).checkAnimFrame&&e.cancelAnimation(e.checkAnimFrame),e.drawAnimFrame&&e.cancelAnimation(e.drawAnimFrame),e.svg.source=void 0,e.svg.count=0,e.img.obj=void 0,this.empty(),e.canvas.clear(),t.next=10,e.start();case 10:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]),e}();e.Particles=u},function(t,e,i){"use strict";var a=i(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Particle=void 0;var p=a(i(18)),f=a(i(1)),r=a(i(2)),y=a(i(3)),m=i(7),g=i(6),n=function(){function d(t,e,i,a){(0,f.default)(this,d),(0,y.default)(this,"pJSContainer",void 0),(0,y.default)(this,"radius",void 0),(0,y.default)(this,"size_status",void 0),(0,y.default)(this,"vs",void 0),(0,y.default)(this,"x",void 0),(0,y.default)(this,"y",void 0),(0,y.default)(this,"offsetX",void 0),(0,y.default)(this,"offsetY",void 0),(0,y.default)(this,"color",void 0),(0,y.default)(this,"opacity",void 0),(0,y.default)(this,"opacity_status",void 0),(0,y.default)(this,"vo",void 0),(0,y.default)(this,"vx",void 0),(0,y.default)(this,"vy",void 0),(0,y.default)(this,"vx_i",void 0),(0,y.default)(this,"vy_i",void 0),(0,y.default)(this,"shape",void 0),(0,y.default)(this,"img",void 0),(0,y.default)(this,"radius_bubble",void 0),(0,y.default)(this,"opacity_bubble",void 0),(0,y.default)(this,"text",void 0);var r,n=(this.pJSContainer=t).options;if(this.radius=(n.particles.size.random?Math.random():1)*n.particles.size.value,n.particles.size.anim.enable&&(this.size_status=!1,this.vs=n.particles.size.anim.speed/100,n.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=a?a.x:Math.random()*t.canvas.w,this.y=a?a.y:Math.random()*t.canvas.h,this.x>t.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>t.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),this.offsetX=0,this.offsetY=0,n.particles.move.bounce&&this.checkOverlap(a),this.color={},"object"==(0,p.default)(e.value))if(e.value instanceof Array){var s=n.particles.color.value,o=e.value[Math.floor(Math.random()*s.length)];this.color.rgb=m.Utils.hexToRgb(o)}else{var c=e.value;c&&null!=c.r&&null!=c.g&&null!=c.b&&(this.color.rgb={r:c.r,g:c.g,b:c.b});var l=e.value;null!=l.h&&null!=l.s&&null!=l.l&&(this.color.hsl={h:l.h,s:l.s,l:l.l})}else"string"==typeof e.value&&("random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:(this.color={},this.color.rgb=m.Utils.hexToRgb(e.value)));switch(this.opacity=(n.particles.opacity.random?Math.random():1)*n.particles.opacity.value,n.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=n.particles.opacity.anim.speed/100,n.particles.opacity.anim.sync||(this.vo=this.vo*Math.random())),n.particles.move.direction){case g.MoveDirection.top:r={x:0,y:-1};break;case g.MoveDirection.topRight:r={x:.5,y:-.5};break;case g.MoveDirection.right:r={x:1,y:-0};break;case g.MoveDirection.bottomRight:r={x:.5,y:.5};break;case g.MoveDirection.bottom:r={x:0,y:1};break;case g.MoveDirection.bottomLeft:r={x:-.5,y:1};break;case g.MoveDirection.left:r={x:-1,y:0};break;case g.MoveDirection.topLeft:r={x:-.5,y:-.5};break;default:r={x:0,y:0}}n.particles.move.straight?(this.vx=r.x,this.vy=r.y,n.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var u=n.particles.shape.type;if(u instanceof Array){var h=u[Math.floor(Math.random()*u.length)];this.shape=h}else this.shape=u;if(this.shape==g.ShapeType.image){var v=n.particles.shape;this.img={src:v.image.src,ratio:v.image.width/v.image.height,replace_color:v.image.replace_color},this.img.ratio||(this.img.ratio=1)}this.shape!=g.ShapeType.char&&this.shape!=g.ShapeType.character||("string"==typeof n.particles.shape.character.value?this.text=n.particles.shape.character.value:this.text=n.particles.shape.character.value[Math.floor(Math.random()*n.particles.shape.character.value.length)])}return(0,r.default)(d,[{key:"draw",value:function(){var t,e,i,a=this.pJSContainer,r=a.options;if(t=null!=this.radius_bubble?this.radius_bubble:this.radius,e=null!=this.opacity_bubble?this.opacity_bubble:this.opacity,this.color.rgb?i="rgba(".concat(this.color.rgb.r,",").concat(this.color.rgb.g,",").concat(this.color.rgb.b,",").concat(e,")"):this.color.hsl&&(i="hsla(".concat(this.color.hsl.h,",").concat(this.color.hsl.s,"%,").concat(this.color.hsl.l,"%,").concat(e,")")),a.canvas.ctx&&i){a.canvas.ctx.fillStyle=i,a.canvas.ctx.beginPath();var n=this.x+this.offsetX,s=this.y+this.offsetY,o=a.canvas.ctx;switch(this.shape){case g.ShapeType.line:o.moveTo(this.x,this.y),o.lineTo(this.x,this.y+t),o.strokeStyle=r.particles.shape.stroke.color,o.lineWidth=r.particles.shape.stroke.width,o.stroke();break;case g.ShapeType.circle:o.arc(n,s,t,0,2*Math.PI,!1);break;case g.ShapeType.edge:case g.ShapeType.square:o.rect(this.x-t,this.y-t,2*t,2*t);break;case g.ShapeType.triangle:this.drawShape(o,this.x-t,this.y+t/1.66,2*t,3,2);break;case g.ShapeType.polygon:var c=this.x-t/(r.particles.shape.polygon.nb_sides/3.5),l=this.y-t/.76,u=2.66*t/(r.particles.shape.polygon.nb_sides/3),h=r.particles.shape.polygon.nb_sides;this.drawShape(o,c,l,u,h,1);break;case g.ShapeType.star:var v=this.x-2*t/(r.particles.shape.polygon.nb_sides/4),d=this.y-t/1.52,p=2*t*2.66/(r.particles.shape.polygon.nb_sides/3),f=r.particles.shape.polygon.nb_sides;this.drawShape(o,v,d,p,f,2);break;case g.ShapeType.heart:var y=this.x-t/2,m=this.y-t/2;o.moveTo(y,m+t/4),o.quadraticCurveTo(y,m,y+t/4,m),o.quadraticCurveTo(y+t/2,m,y+t/2,m+t/4),o.quadraticCurveTo(y+t/2,m,y+3*t/4,m),o.quadraticCurveTo(y+t,m,y+t,m+t/4),o.quadraticCurveTo(y+t,m+t/2,y+3*t/4,m+3*t/4),o.lineTo(y+t/2,m+t),o.lineTo(y+t/4,m+3*t/4),o.quadraticCurveTo(y,m+t/2,y,m+t/4);break;case g.ShapeType.char:case g.ShapeType.character:o.font="".concat(r.particles.shape.character.style," ").concat(r.particles.shape.character.weight," ").concat(2*Math.round(t),"px ").concat(r.particles.shape.character.font),void 0!==this.text&&o.strokeText(this.text,this.x-t/2,this.y+t/2);break;case g.ShapeType.image:var b;(b=a.img.obj)&&this.subDraw(o,b,t)}a.canvas.ctx.closePath(),0<r.particles.shape.stroke.width&&(a.canvas.ctx.strokeStyle=r.particles.shape.stroke.color,a.canvas.ctx.lineWidth=r.particles.shape.stroke.width,a.canvas.ctx.stroke()),a.canvas.ctx.fill()}}},{key:"subDraw",value:function(t,e,i){var a=1;this.img&&(a=this.img.ratio),t.drawImage(e,this.x-i,this.y-i,2*i,2*i/a)}},{key:"drawShape",value:function(t,e,i,a,r,n){var s=r*n,o=r/n,c=180*(o-2)/o,l=Math.PI-Math.PI*c/180;t.save(),t.beginPath(),t.translate(e,i),t.moveTo(0,0);for(var u=0;u<s;u++)t.lineTo(a,0),t.translate(a,0),t.rotate(l);t.fill(),t.restore()}},{key:"checkOverlap",value:function(t){var e=this.pJSContainer,i=this,a=!0,r=!1,n=void 0;try{for(var s,o=e.particles.array[Symbol.iterator]();!(a=(s=o.next()).done);a=!0){var c=s.value,l=i.x-c.x,u=i.y-c.y;Math.sqrt(l*l+u*u)<=i.radius+c.radius&&(i.x=t?t.x:Math.random()*e.canvas.w,i.y=t?t.y:Math.random()*e.canvas.h,i.checkOverlap())}}catch(t){r=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(r)throw n}}}},{key:"initBubble",value:function(){this.opacity_bubble=this.opacity,this.radius_bubble=this.radius}},{key:"grab",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&"mousemove"==t.interactivity.status){var i=this.x-(t.interactivity.mouse.pos_x||0),a=this.y-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a);if(r<=e.interactivity.modes.grab.distance){var n=e.interactivity.modes.grab.line_linked.opacity-r/(1/e.interactivity.modes.grab.line_linked.opacity)/e.interactivity.modes.grab.distance;if(0<n){e.particles.line_linked.color_rgb=e.particles.line_linked.color_rgb||m.Utils.hexToRgb(e.particles.line_linked.color);var s=e.particles.line_linked.color_rgb||{r:127,g:127,b:127};t.canvas.ctx&&(t.canvas.ctx.strokeStyle="rgba(".concat(s.r,",").concat(s.g,",").concat(s.b,",").concat(n,")"),t.canvas.ctx.lineWidth=e.particles.line_linked.width,t.canvas.ctx.beginPath(),t.canvas.ctx.moveTo(this.x+this.offsetX,this.y+this.offsetY),t.canvas.ctx.lineTo(t.interactivity.mouse.pos_x||0,t.interactivity.mouse.pos_y||0),t.canvas.ctx.stroke(),t.canvas.ctx.closePath())}}}}},{key:"bubble",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&m.Utils.isInArray(g.HoverMode.bubble,e.interactivity.events.onhover.mode)){var i=this.x+this.offsetX-(t.interactivity.mouse.pos_x||0),a=this.y+this.offsetY-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a),n=1-r/e.interactivity.modes.bubble.distance;if(r<=e.interactivity.modes.bubble.distance){if(0<=n&&"mousemove"==t.interactivity.status){if(e.interactivity.modes.bubble.size!=e.particles.size.value)if(e.interactivity.modes.bubble.size>e.particles.size.value){var s=this.radius+e.interactivity.modes.bubble.size*n;0<=s&&(this.radius_bubble=s)}else{var o=this.radius-e.interactivity.modes.bubble.size,c=this.radius-o*n;this.radius_bubble=0<c?c:0}if(e.interactivity.modes.bubble.opacity!=e.particles.opacity.value)if(e.interactivity.modes.bubble.opacity>e.particles.opacity.value){var l=e.interactivity.modes.bubble.opacity*n;l>this.opacity&&l<=e.interactivity.modes.bubble.opacity&&(this.opacity_bubble=l)}else{var u=this.opacity-(e.particles.opacity.value-e.interactivity.modes.bubble.opacity)*n;u<this.opacity&&u>=e.interactivity.modes.bubble.opacity&&(this.opacity_bubble=u)}}}else this.initBubble();"mouseleave"==t.interactivity.status&&this.initBubble()}else if(e.interactivity.events.onclick.enable&&m.Utils.isInArray(g.ClickMode.bubble,e.interactivity.events.onclick.mode)){var h=this.x-(t.interactivity.mouse.click_pos_x||0),v=this.y-(t.interactivity.mouse.click_pos_y||0),d=Math.sqrt(h*h+v*v),p=((new Date).getTime()-(t.interactivity.mouse.click_time||0))/1e3;t.bubble.clicking&&(p>e.interactivity.modes.bubble.duration&&(t.bubble.duration_end=!0),p>2*e.interactivity.modes.bubble.duration&&(t.bubble.clicking=!1,t.bubble.duration_end=!1)),t.bubble.clicking&&(t.processBubble(this,d,p,e.interactivity.modes.bubble.size,e.particles.size.value,this.radius_bubble,this.radius,g.ProcessBubbleType.size),t.processBubble(this,d,p,e.interactivity.modes.bubble.opacity,e.particles.opacity.value,this.opacity_bubble,this.opacity,g.ProcessBubbleType.opacity))}}},{key:"repulse",value:function(){var t=this.pJSContainer,e=t.options;if(e.interactivity.events.onhover.enable&&m.Utils.isInArray(g.HoverMode.repulse,e.interactivity.events.onhover.mode)&&"mousemove"==t.interactivity.status){var i=this.x-(t.interactivity.mouse.pos_x||0),a=this.y-(t.interactivity.mouse.pos_y||0),r=Math.sqrt(i*i+a*a),n=i/r,s=a/r,o=e.interactivity.modes.repulse.distance,c=m.Utils.clamp(1/o*(-1*Math.pow(r/o,2)+1)*o*100,0,50),l={x:this.x+n*c,y:this.y+s*c};e.particles.move.out_mode==g.OutMode.bounce||e.particles.move.out_mode==g.OutMode.bounceVertical?(0<l.x-this.radius&&l.x+this.radius<t.canvas.w&&(this.x=l.x),0<l.y-this.radius&&l.y+this.radius<t.canvas.h&&(this.y=l.y)):(this.x=l.x,this.y=l.y)}else if(e.interactivity.events.onclick.enable&&m.Utils.isInArray(g.ClickMode.repulse,e.interactivity.events.onclick.mode))if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count==t.particles.array.length&&(t.repulse.finish=!0)),t.repulse.clicking){var u=Math.pow(e.interactivity.modes.repulse.distance/6,3),h=(t.interactivity.mouse.click_pos_x||0)-this.x,v=(t.interactivity.mouse.click_pos_y||0)-this.y,d=h*h+v*v,p=-u/d;d<=u&&this.processRepulse(h,v,p)}else!1===t.repulse.clicking&&(this.vx=this.vx_i,this.vy=this.vy_i)}},{key:"processRepulse",value:function(t,e,i){var a=this.pJSContainer,r=a.options,n=Math.atan2(e,t);if(this.vx=i*Math.cos(n),this.vy=i*Math.sin(n),r.particles.move.out_mode==g.OutMode.bounce||r.particles.move.out_mode==g.OutMode.bounceVertical){var s=this.x+this.vx,o=this.y+this.vy;(s+this.radius>a.canvas.w||s-this.radius<0)&&(this.vx=-this.vx),(o+this.radius>a.canvas.h||o-this.radius<0)&&(this.vy=-this.vy)}}},{key:"link",value:function(t){var e=this.pJSContainer,i=e.options,a=this.x+this.offsetX,r=t.x+t.offsetX,n=a-r,s=this.y+this.offsetY,o=t.y+t.offsetY,c=s-o,l=Math.sqrt(n*n+c*c);if(l<=i.particles.line_linked.distance){var u=i.particles.line_linked.opacity-l*i.particles.line_linked.opacity/i.particles.line_linked.distance;if(0<u){if(i.particles.line_linked.color_rgb||(i.particles.line_linked.color_rgb=m.Utils.hexToRgb(i.particles.line_linked.color)),!e.canvas.ctx)return;var h=e.canvas.ctx,v=i.particles.line_linked.color_rgb;v&&(h.strokeStyle="rgba(".concat(v.r,",").concat(v.g,",").concat(v.b,",").concat(u,")")),h.lineWidth=i.particles.line_linked.width,h.beginPath(),h.moveTo(a,s),h.lineTo(r,o),h.stroke(),h.closePath()}}}},{key:"attract",value:function(t){var e=this.pJSContainer.options,i=this.x-t.x,a=this.y-t.y;if(Math.sqrt(i*i+a*a)<=e.particles.line_linked.distance){var r=i/(1e3*e.particles.move.attract.rotateX),n=a/(1e3*e.particles.move.attract.rotateY);this.vx-=r,this.vy-=n,t.vx+=r,t.vy+=n}}},{key:"bounce",value:function(t){var e=this.x-t.x,i=this.y-t.y;Math.sqrt(e*e+i*i)<=this.radius+t.radius&&(this.vx=-this.vx,this.vy=-this.vy,t.vx=-t.vx,t.vy=-t.vy)}}]),d}();e.Particle=n},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=i=function(t){return typeof t}:e.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}e.exports=i}]); |
{ | ||
"name": "tsparticles", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Porting of Vincent Garreau' particles.js, converted in TypeScript.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/matteobruni/tsparticles", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
447528
5314