File: /home/adventp/www/wp-content/themes/brooklyn/js/morphing/digital.min.js
Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},r=Math.pow(2,53)-1;return function(e){var n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!t(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2])}for(var i,u=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),r)}(n.length),c=t(this)?Object(new this(u)):new Array(u),l=0;l<u;)i=n[l],c[l]=o?void 0===a?o(i,l):o.call(a,i,l):i,l+=1;return c.length=u,c}}());{const e={};e.intro=document.querySelector(".ut-loader-overlay"),e.shape=e.intro.querySelector("svg.ut-shape"),e.path=e.shape.querySelector("path"),e.enter=document.querySelector(".ut-close-query-loader"),e.enterLetters=Array.from(e.enter.querySelectorAll("span")),e.shape.style.transformOrigin="50% 0%";var init=function(){jQuery(e.enter).bind("click",function(){navigate()})};let t;var navigate=function(){t||(t=!0,anime({targets:e.intro,translateY:{value:"-200vh",delay:100,duration:2e3,easing:"easeInOutQuad"}}),anime({targets:e.path,duration:1200,easing:"linear",d:e.path.getAttribute("pathdata:id"),complete:function(){jQuery.force_appear()}}))};init()}