-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.bundle.bd377a30052ab85fb5ea.js
1 lines (1 loc) · 9.01 KB
/
index.bundle.bd377a30052ab85fb5ea.js
1
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e,n){var i=n(1),o=n(2);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=a(l),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:l,updater:_(h,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var l,d=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function h(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function p(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,m=0;function _(t,e){var n,i,o;if(e.singleton){var r=m++;n=f||(f=u(e)),i=h.bind(null,n,r,!1),o=h.bind(null,n,r,!0)}else n=u(e),i=p.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=c(t,e),u=0;u<n.length;u++){var l=a(n[u]);0===s[l].references&&(s[l].updater(),s.splice(l,1))}n=r}}}},function(t,e,n){(e=n(3)(!1)).push([t.i,"html{max-height:100vh}body{margin:0;padding:0}main{min-width:1024px;max-width:1280px;margin:0% auto;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}@media screen and (max-width: 1023px){main{min-width:768px;max-width:1280px}}@media screen and (max-width: 767px){main{width:auto;min-width:0}}main .logo{margin-top:30vh;transform:translate(0%, -50%);width:100%;max-width:100vw}",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e){var n,i,o,r,s,a;n=window,i=document,o="script",r="ga",n.GoogleAnalyticsObject=r,n.ga=n.ga||function(){(n.ga.q=n.ga.q||[]).push(arguments)},n.ga.l=1*new Date,s=i.createElement(o),a=i.getElementsByTagName(o)[0],s.async=1,s.src="https://www.google-analytics.com/analytics.js",a.parentNode.insertBefore(s,a),ga("create","UA-99100044-1","auto"),ga("send","pageview")},function(t,e,n){"use strict";n.r(e);n(0);class i extends HTMLElement{static get _observedAttributes(){return[]}static get observedAttributes(){return this._observedAttributes}constructor(t){super(),t&&(this._shadow=this.attachShadow({mode:"open"}),this._shadow.innerHTML=t)}attributeChangedCallback(t,e,n){const i=this[`_${t.replace("data-","").replace("-","_")}ChangedCallback`];i&&i.call(this,e,n?JSON.parse(n):n)}_template(t){const e=document.createElement("template");return e.innerHTML=t,e.content}}customElements.define("zeuzios-particle",class extends i{static get _observedAttributes(){return["data-position"]}constructor(){super('\n <style>\n #particle {\n position: absolute;\n background-color: black;\n border-radius: 100%;\n border: 2px solid #302f2f;\n }\n\n @media screen and (max-width: 1023px) {\n #particle {\n border-width: 1px;\n }\n }\n </style>\n <div id="particle"></div>\n '),this._size=Math.max(Math.floor(50*Math.random()),20)}connectedCallback(){this._colorize(),this._animate()}get _quantity(){return"px"}get _element(){return this.shadowRoot.querySelector("#particle")}get _position(){return this.__position}set _position({x:t=0,y:e=0}){this._element.style.left=`${t}${this._quantity}`,this._element.style.top=`${e}${this._quantity}`,this.__position={x:t,y:e}}get _size(){return this.__size}get _factor(){return 1/1280*this.parentNode.host.offsetWidth||1}set _size(t){this.__size=t*this._factor,this._element.style.width=this._element.style.height=`${this.__size}${this._quantity}`}get _direction(){return Math.random()>=.5?1:-1}get _randomColor(){return["#fbe10a","#f1bf0b","#f1bf0b","#2e2d2d","#000000"][Math.floor(5*Math.random())]}get _isOutsideWindow(){const t=this._position.x<=-this._size||this._position.x>=window.innerWidth,e=this._position.y>=window.innerHeight;return t||e}_colorize(){this._element.style.background=this._randomColor}_animate(){let t=0;const e=this._direction,n=10*Math.random()*e,i=Math.max(30*Math.random(),10),o=setInterval(()=>{this._position={x:this._position.x-n,y:this._position.y-(i-++t)},this._isOutsideWindow&&(this.remove(),clearInterval(o))},15)}_positionChangedCallback(t,e){this._position={x:e[0]-this._size/2,y:e[1]-this._size/2}}});customElements.define("zeuzios-particles",class extends i{constructor(){super("\n <style>\n :host {\n position: fixed;\n top: 0px;\n left: 0px;\n z-index: 1;\n height: 100vh;\n width: 100vw;\n }\n </style>\n ")}connectedCallback(){this._addEventListeners()}get _position(){return this.__position}set _position({x:t,y:e}){this.__position={x:t,y:e}}_addEventListeners(){this.addEventListener("mousemove",t=>this._processMove(t)),this.addEventListener("touchmove",t=>this._processMove(t)),this.addEventListener("mousedown",t=>this._processTouch(t)),this.addEventListener("touchstart",t=>this._processTouch(t))}_processMove(t){this._position={x:t.x||t.targetTouches[0].pageX,y:t.y||t.targetTouches[0].pageY}}_processTouch(t){this._processMove(t),this._createParticle(),this._createParticle(),this._createParticle();const e=setInterval(()=>this._createParticle(),50),n=()=>clearInterval(e);this.addEventListener("mouseup",n),this.addEventListener("touchend",n),this.addEventListener("touchcancel",n)}_createParticle(){this.shadowRoot.append(this._template(`<zeuzios-particle data-position="[${[this._position.x,this._position.y]}]"></zeuzios-particle>`))}});n(4)}]);