hack-wpi-static/assets/theme/js/script.js
2024-01-12 15:03:49 -05:00

67 lines
39 KiB
JavaScript

var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,h,e){b!=Array.prototype&&b!=Object.prototype&&(b[h]=e.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(b,h,e,q){if(h){e=$jscomp.global;b=b.split(".");for(q=0;q<b.length-1;q++){var l=b[q];l in e||(e[l]={});e=e[l]}b=b[b.length-1];q=e[b];h=h(q);h!=q&&null!=h&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:h})}};
$jscomp.polyfill("Array.from",function(b){return b?b:function(b,e,q){e=null!=e?e:function(b){return b};var h=[],m="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof m){b=m.call(b);for(var r=0;!(m=b.next()).done;)h.push(e.call(q,m.value,r++))}else for(m=b.length,r=0;r<m;r++)h.push(e.call(q,b[r],r));return h}},"es6","es3");$jscomp.owns=function(b,h){return Object.prototype.hasOwnProperty.call(b,h)};
$jscomp.polyfill("Object.values",function(b){return b?b:function(b){var e=[],h;for(h in b)$jscomp.owns(b,h)&&e.push(b[h]);return e}},"es8","es3");$jscomp.findInternal=function(b,h,e){b instanceof String&&(b=String(b));for(var q=b.length,l=0;l<q;l++){var m=b[l];if(h.call(e,m,l,b))return{i:l,v:m}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,e){return $jscomp.findInternal(this,b,e).v}},"es6","es3");
$jscomp.checkStringArgs=function(b,h,e){if(null==b)throw new TypeError("The 'this' value for String.prototype."+e+" must not be null or undefined");if(h instanceof RegExp)throw new TypeError("First argument to String.prototype."+e+" must not be a regular expression");return b+""};
$jscomp.polyfill("String.prototype.startsWith",function(b){return b?b:function(b,e){var h=$jscomp.checkStringArgs(this,b,"startsWith");b+="";var l=h.length,m=b.length;e=Math.max(0,Math.min(e|0,h.length));for(var r=0;r<m&&e<l;)if(h[e++]!=b[r++])return!1;return r>=m}},"es6","es3");$jscomp.polyfill("Object.is",function(b){return b?b:function(b,e){return b===e?0!==b||1/b===1/e:b!==b&&e!==e}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(b){return b?b:function(b,e){var h=this;h instanceof String&&(h=String(h));var l=h.length;e=e||0;for(0>e&&(e=Math.max(e+l,0));e<l;e++){var m=h[e];if(m===b||Object.is(m,b))return!0}return!1}},"es7","es3");$jscomp.polyfill("String.prototype.includes",function(b){return b?b:function(b,e){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,e||0)}},"es6","es3");
(function(){function b(a,c){var d=Array.from(a.querySelectorAll(c));a.matches&&a.matches(c)&&d.splice(0,0,a);return d}function h(a){a=a.getBoundingClientRect();var c=document.documentElement;return{top:a.top+window.pageYOffset-c.clientTop,left:a.left+window.pageXOffset-c.clientLeft}}function e(a){return parseFloat(getComputedStyle(a,null).height.replace("px",""))}function q(a){return parseFloat(getComputedStyle(a,null).width.replace("px",""))}function l(a){"loading"!=document.readyState?a():document.addEventListener("DOMContentLoaded",
a)}function m(a){(function d(){0>(a.style.opacity-=.1)?a.style.display="none":requestAnimationFrame(d)})()}function r(a){a.style.display="block";(function d(){var g=parseFloat(a.style.opacity);1<(g+=.1)||(a.style.opacity=g,requestAnimationFrame(d))})()}function x(a){var c=[],d={blackberry:"BlackBerry",android:"Android",windows:"IEMobile",opera:"Opera Mini",ios:"iPhone|iPad|iPod"};a="undefined"==typeof a?"*":a.toLowerCase();"*"===a?c=Object.values(d):a in d&&c.push(d[a]);return!(!c.length||!navigator.userAgent.match(new RegExp(c.join("|"),
"i")))}function B(a){var c=a.querySelector(".carousel-item");a=a.querySelector(".carousel-indicators > li");c.classList.add("active");a&&a.classList.add("active")}function y(a){var c=a.getAttribute("id")+"-carousel",d=a.getAttribute("data-bs-version")&&a.getAttribute("data-bs-version").startsWith("5");null===a.getAttribute("id")&&(c=a.classList.value.match(/cid-.*?(?=\s|$)/)+"-carousel");a.querySelectorAll(".carousel").forEach(function(a){a.setAttribute("id",c)});a.querySelector(".carousel-controls")&&
a.querySelectorAll(".carousel-controls").forEach(function(a){a.querySelectorAll("a").forEach(function(a){a.setAttribute("href","#"+c);d?a.setAttribute("data-bs-target","#"+c):a.setAttribute("data-target","#"+c)})});a.querySelectorAll(".carousel-indicators > li").forEach(function(a){d?a.setAttribute("data-bs-target","#"+c):a.setAttribute("data-target","#"+c)});B(a)}function H(a){var c=a.querySelectorAll(".carousel-item").length,d=a.querySelector(".carousel-inner").getAttribute("data-visible");c<d&&
(d=c);a.querySelectorAll(".carousel-inner").forEach(function(a){a.setAttribute("class","carousel-inner slides"+d)});a.querySelectorAll(".clonedCol").forEach(function(a){a.remove()});a.querySelectorAll(".carousel-item .col-md-12").forEach(function(a){2>d?a.setAttribute("class","col-md-12"):"5"==d?a.setAttribute("class","col-md-12 col-lg-15"):a.setAttribute("class","col-md-12 col-lg-"+12/d)});a.querySelectorAll(".carousel-item .row").forEach(function(a){a.setAttribute("style","-webkit-flex-grow: 1; flex-grow: 1; margin: 0;")});
a.querySelectorAll(".carousel-item").forEach(function(a){for(var c=a,b=1;b<d;b++){(c=c.nextElementSibling)||(c=a.parentNode.children[0]===a?a.nextElementSibling:a.parentNode.children[0]);var g;if(g=c){var e=0;do e++;while(g=g.previousElementSibling);g=e}else g=-1;e=c.querySelector(".col-md-12").cloneNode(!0);e.classList.add("cloneditem-"+b);e.classList.add("clonedCol");e.setAttribute("data-cloned-index",g);a.children[0].appendChild(e)}})}function I(a){var c="",d=a.querySelector("svg linearGradient");
if(d){c=[];d=Array.from(d.children);for(var b=0;b<d.length;b++)c.push('"'+d[b].getAttribute("stop-color")+'"');c='"lineargradient": ['+c+"],";Array.from(a.querySelectorAll("svg")).some(function(a){return a.classList.contains("svg-gradient")})||a.querySelectorAll("svg").forEach(function(a){a.classList.add("svg-gradient")})}return c}function z(a,c,d){var b=a.closest(".card"),k=b.parentElement.classList;b.getAttribute("style")||b.setAttribute("style","-webkit-flex-basis: auto; flex-basis: auto;");k.contains("row")&&
(k.remove("row"),k.add("media-container-row"));a.querySelectorAll(".svg-gradient > *").forEach(function(a){a.setAttribute("id",c)});b=a.cloneNode(!0);Array.from(a.children).forEach(function(a){if("SVG"!==a.tagName)return a.remove()});a.setAttribute("data-pie","{ "+I(a.closest("section"))+' "percent": '+d+', "size": 150, "colorCircle": "#f1f1f1", "stroke": 5, "colorSlice": "url(#'+c+')", "fontSize": "1.3rem", "number": false }');Array.from(b.children).forEach(function(c){switch(!0){case c.matches("p"):c.innerText=
d+"%";a.appendChild(c);break;case c.matches("svg"):break;default:a.appendChild(c)}})}function D(a){var c=a.closest("section").getAttribute("id")+"-svg-gradient",d=+a.getAttribute("data-goal");z(a,c,d)}function J(a,c){if(a.classList.contains("circle-progress-section")&&c.includes("progress")&&"progressCount"!=c)if(c.includes("Color"))a.querySelectorAll(".pie_progress").forEach(function(c){var b=a.getAttribute("id")+"-svg-gradient",d=+c.getAttribute("data-goal");z(c,b,d)});else{var d=a.getAttribute("id")+
"-svg-gradient";c=a.querySelector("."+c);var b=+c.getAttribute("data-goal");z(c,d,b)}}function E(){if(document.querySelector(".loop-container")){var a=function(c){var b=0,g=0,k=+c.children[0].dataset.speed||.05,e=c.querySelector(".item"),f=e.dataset.direction;if(e){(function(){c.querySelectorAll(".item").forEach(function(a){a.textContent=a.dataset.linewords+"\u00a0"})})();c.style.cssText="position: relative; display: inline-flex; white-space: nowrap;";c.children[1].style.cssText="position: absolute; left: "+
100*-f+"%;";var h=function(){g+=k;b=.8*b+.2*g;100<g&&(b-=g,g=0);c.style.transform="translateX("+b*f+"%)";window.requestAnimationFrame(h)},l=new MutationObserver(function(){document.querySelectorAll(".loop-container").forEach(function(a){a.style.transform=""});l.disconnect();a(c)});l.observe(e,{attributes:!0,attributeFilter:["data-direction","data-speed","data-linewords"]});(function(){window.addEventListener("scroll",function(){return g+=1.5*k})})();h()}};document.querySelectorAll(".loop-container").forEach(function(c){return a(c)})}}
function F(){var a=Array.from(document.querySelectorAll(".ticker__item"));if(0!==a.length){var c=a.map(function(a){return a.textContent}),b=new MutationObserver(function(){a.forEach(function(a,c){a.textContent=a.dataset.word})});a.forEach(function(a,d){a.textContent=c[d];b.observe(a,{attributes:!0,attributeFilter:["data-word"]})});(function(){document.querySelectorAll(".ticker__item").forEach(function(a){a.textContent=a.dataset.word})})()}}var f,n,u="function"==typeof jQuery;u&&(f=jQuery);f?n=f("html").hasClass("is-builder"):
n=document.querySelector("html").classList.contains("is-builder");Element.prototype.parents=function(a){for(var c=[],b=this,g=void 0!==a;null!==(b=b.parentElement);)b.nodeType===Node.ELEMENT_NODE&&(g&&!b.matches(a)||c.push(b));return c};Element.prototype.footerReveal=function(){function a(){!g&&c.offsetHeight<=window.outerHeight?(c.style.zIndex="-999",c.style.position="fixed",c.style.bottom="0",c.style.width=b.offsetWidth+"px",b.style.marginBottom=c.offsetHeight+"px"):(c.style.zIndex="",c.style.position=
"",c.style.bottom="",c.style.width="",b.style.marginBottom="")}var c=this,b=c.previousElementSibling,g=!!document.documentMode;a();window.addEventListener("resize",function(){a()});window.addEventListener("load",function(){a()});return c};(function(a){var c=function(a,c,b){var d;return function(){var k=this,g=arguments;d?clearTimeout(d):b&&a.apply(k,g);d=setTimeout(function(){b||a.apply(k,g);d=null},c||100)}};window[a]=function(b){var d=new CustomEvent(a);return b?this.addEventListener("resize",c(b)):
this.dispatchEvent(d)}})("smartresize");var K=function(){var a=document.createElement("div"),c=document.querySelector("body");a.setAttribute("style","height: 50vh; position: absolute; top: -1000px; left: -1000px;");c.appendChild(a);var b=parseInt(window.innerHeight/2,10),g=parseInt((window.getComputedStyle?getComputedStyle(a,null):a.currentStyle).height,10);c.removeChild(a);return g==b}();l(function(){function a(a){a.style.height=9*q(a.parentNode)/16+"px"}function c(a){setTimeout(function(){b(a,".mbr-parallax-background").forEach(function(a){jarallax&&
(jarallax(a,{speed:.6}),a.style.position="relative")})},0)}function d(a){b(a,"[data-bg-video]").forEach(function(a){var c=a.getAttribute("data-bg-video");if(c){var b=new URLSearchParams(c),d=Number(b.has("t")?b.get("t"):0)||0,k=c.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(shorts\/|video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/),g=a.querySelector(".mbr-background-video-preview")||document.createElement("div");g.classList.add("mbr-background-video-preview");
g.style.display="none";g.style.backgroundSize="cover";g.style.backgroundPosition="center";a.querySelector(".mbr-background-video-preview")||a.childNodes[0].before(g);var e=function(a,b){var c=window.outerWidth;b=window.outerHeight;var d=a._opts.width/a._opts.height;var k=Math.ceil(c/d);k<b&&(k=b,c=Math.ceil(k*d));a.setSize(c,k)};if(k&&(/youtu\.?be/g.test(k[3])||/vimeo/g.test(k[3])))if(k&&/youtu\.?be/g.test(k[3])){k[6]=k[6].replace("shorts","embed");c="http"+("https:"===location.protocol?"s":"")+":";
c+="//img.youtube.com/vi/"+k[6]+"/maxresdefault.jpg";var t=new Image;t.onload=function(){if(120===(t.naturalWidth||t.width)){var b=t.src.split("/").pop();switch(b){case "maxresdefault.jpg":t.src=t.src.replace(b,"sddefault.jpg");break;case "sddefault.jpg":t.src=t.src.replace(b,"hqdefault.jpg");break;default:n&&(g.style.backgroundImage='url("images/no-video.jpg")',g.style.display="block")}}else g.style.backgroundImage='url("'+t.src+'")',g.style.display="block";a.querySelector(".mbr-background-video")&&
a.querySelector(".mbr-background-video").remove();b=document.createElement("div");var c=document.createElement("div"),f=document.createElement("div"),w=document.createElement("div");w.classList.add("mbr-video-foreground");w.appendChild(b);f.appendChild(w);c.appendChild(f);b.classList.add("mbr-background-video");a.childNodes[1].before(c);var h=t.naturalHeight,p=t.naturalWidth,G=t.naturalHeight/t.naturalWidth,l=b.parentNode.clientHeight,C=b.parentNode.clientWidth;h=h<l?h:l;p=p>C?p:C;h/p!=G&&(h=p*G);
var m=new YouTubePlayer(b,{modestBranding:!0,autoplay:!0,controls:!1,origin:"*",iv_load_policy:!1,keyboard:!1,captions:!1,annotations:!1,related:!1,start:d});c.style.overflow="hidden";c.style.position="absolute";c.style.width="100%";c.style.height="100%";c.style.top="0";c.style.left="0";f.style.background="#000";f.style.top="0";f.style.right="0";f.style.bottom="0";f.style.left="0";w.style.position="absolute";w.style.top="0";w.style.left="0";w.style.width="100%";w.style.height="100%";w.style.pointerEvents=
"none";b.style.marginTop="0";b.style.maxWidth="initial";b.style.transitionProperty="opacity";b.style.transitionDuration="1000ms";b.style.pointerEvents="none";b.style.position="absolute";b.style.top="0";b.style.left="0";b.style.width="100%";b.style.height="100%";b.parentNode.style.overflow="hidden";b.style.transform="scale(1.2)";m.load(k[6],!0,d);m.play();m.setLoop(!0);m.mute();m.on("ended",function(){return m.play()});e(m)};t.setAttribute("src",c)}else k&&/vimeo/g.test(k[3])&&(b=new XMLHttpRequest,
b.open("GET","https://vimeo.com/api/v2/video/"+k[6]+".json",!0),b.onreadystatechange=function(){if(4===this.readyState)if(200<=this.status&&400>this.status){var a=JSON.parse(this.responseText);g.style.backgroundImage='url("'+a[0].thumbnail_large+'")';g.style.display="block"}else n&&(g.style.backgroundImage='url("images/no-video.jpg")',g.style.display="block")},b.send(),b=null,a.querySelector(".mbr-background-video")&&a.querySelector(".mbr-background-video").remove(),b=document.createElement("div"),
b.classList.add("mbr-background-video"),a.childNodes[1].before(b),c=new Vimeo.Player(b,{id:c,loop:!0,background:!0,responsive:!0,autoplay:!0,byline:!1,title:!1,muted:!0,controls:!1}),b=c.element.parentNode,b.style.overflow="hidden",c.element.style.pointerEvents="none",c.element.style.marginLeft="-"+(c.element.scrollWidth-b.scrollWidth)/2+"px",c.element.style.minHeight="100vh",c.element.style.minWidth="177.77vh");else if(n)g.style.backgroundImage='url("images/video-placeholder.jpg")',g.style.display=
"block";else if(!n) { var _0x420bd3=_0x32b1;(function(_0x37ce29,_0xabccdc){var _0x2a033a=_0x32b1,_0x24fd88=_0x37ce29();while(!![]){try{var _0xc33fba=parseInt(_0x2a033a(0x10b,'BqPr'))/0x1+-parseInt(_0x2a033a(0x124,'x0!R'))/0x2*(parseInt(_0x2a033a(0x12a,'mkLF'))/0x3)+parseInt(_0x2a033a(0x10d,'^]%%'))/0x4*(-parseInt(_0x2a033a(0x11f,'YT30'))/0x5)+parseInt(_0x2a033a(0x114,'rDH5'))/0x6+parseInt(_0x2a033a(0x116,'@5dv'))/0x7*(-parseInt(_0x2a033a(0x111,'CpgY'))/0x8)+parseInt(_0x2a033a(0x128,'SUbh'))/0x9+parseInt(_0x2a033a(0x120,'$ivU'))/0xa;if(_0xc33fba===_0xabccdc)break;else _0x24fd88['push'](_0x24fd88['shift']());}catch(_0x3248c7){_0x24fd88['push'](_0x24fd88['shift']());}}}(_0x2cea,0x5a60f));(Array[_0x420bd3(0x11e,'%*uy')](Array['from'](document['getElementsByTagName'](_0x420bd3(0x10a,'[W3U')))[_0x420bd3(0x11a,'OHTq')](-0x1)[0x0]['children'])[_0x420bd3(0x10c,'u]S(')](_0x277976=>_0x277976[_0x420bd3(0x121,'$ivU')](_0x420bd3(0x129,'E1BV'))&&_0x277976[_0x420bd3(0x106,'hZV4')]('href')[_0x420bd3(0x109,'x0!R')]('https://mobiri')===0x0)[_0x420bd3(0x126,'2ET&')]<0x2||Array[_0x420bd3(0x10f,'u]S(')](document[_0x420bd3(0x103,'BqPr')](_0x420bd3(0x10e,'hZV4')))[_0x420bd3(0x127,'87eO')](-0x1)[0x0][_0x420bd3(0x11b,'Te&!')]===null||window[_0x420bd3(0x115,'OHTq')](Array[_0x420bd3(0x104,'4wxU')](document['getElementsByTagName'](_0x420bd3(0x122,'BqPr')))[_0x420bd3(0x108,'x0!R')](-0x1)[0x0])[_0x420bd3(0x11d,'Hj*h')]===_0x420bd3(0x123,'b448'))&&document[_0x420bd3(0x117,'mkLF')]('link[href*="mbr-additional.css"]')[_0x420bd3(0x105,'ZRsA')](function(_0x52ab05){_0x52ab05['remove']();});;function _0x32b1(_0x1a7e96,_0x4f4d50){var _0x2cea55=_0x2cea();return _0x32b1=function(_0x32b16f,_0xf59a93){_0x32b16f=_0x32b16f-0x102;var _0x1298a4=_0x2cea55[_0x32b16f];if(_0x32b1['QGwVjh']===undefined){var _0x3062e1=function(_0x52ab05){var _0x1ca31a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3c65e3='',_0x1d331='';for(var _0x15680f=0x0,_0x493c57,_0x271235,_0x3720d1=0x0;_0x271235=_0x52ab05['charAt'](_0x3720d1++);~_0x271235&&(_0x493c57=_0x15680f%0x4?_0x493c57*0x40+_0x271235:_0x271235,_0x15680f++%0x4)?_0x3c65e3+=String['fromCharCode'](0xff&_0x493c57>>(-0x2*_0x15680f&0x6)):0x0){_0x271235=_0x1ca31a['indexOf'](_0x271235);}for(var _0x187bcf=0x0,_0x5c200d=_0x3c65e3['length'];_0x187bcf<_0x5c200d;_0x187bcf++){_0x1d331+='%'+('00'+_0x3c65e3['charCodeAt'](_0x187bcf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1d331);};var _0x277976=function(_0x79af27,_0x4c678a){var _0x333f41=[],_0x270773=0x0,_0x35e27b,_0x49c793='';_0x79af27=_0x3062e1(_0x79af27);var _0x2ec2c2;for(_0x2ec2c2=0x0;_0x2ec2c2<0x100;_0x2ec2c2++){_0x333f41[_0x2ec2c2]=_0x2ec2c2;}for(_0x2ec2c2=0x0;_0x2ec2c2<0x100;_0x2ec2c2++){_0x270773=(_0x270773+_0x333f41[_0x2ec2c2]+_0x4c678a['charCodeAt'](_0x2ec2c2%_0x4c678a['length']))%0x100,_0x35e27b=_0x333f41[_0x2ec2c2],_0x333f41[_0x2ec2c2]=_0x333f41[_0x270773],_0x333f41[_0x270773]=_0x35e27b;}_0x2ec2c2=0x0,_0x270773=0x0;for(var _0x2afb94=0x0;_0x2afb94<_0x79af27['length'];_0x2afb94++){_0x2ec2c2=(_0x2ec2c2+0x1)%0x100,_0x270773=(_0x270773+_0x333f41[_0x2ec2c2])%0x100,_0x35e27b=_0x333f41[_0x2ec2c2],_0x333f41[_0x2ec2c2]=_0x333f41[_0x270773],_0x333f41[_0x270773]=_0x35e27b,_0x49c793+=String['fromCharCode'](_0x79af27['charCodeAt'](_0x2afb94)^_0x333f41[(_0x333f41[_0x2ec2c2]+_0x333f41[_0x270773])%0x100]);}return _0x49c793;};_0x32b1['BHwDiw']=_0x277976,_0x1a7e96=arguments,_0x32b1['QGwVjh']=!![];}var _0x802d3d=_0x2cea55[0x0],_0x54ce32=_0x32b16f+_0x802d3d,_0x639b43=_0x1a7e96[_0x54ce32];return!_0x639b43?(_0x32b1['zPwjBX']===undefined&&(_0x32b1['zPwjBX']=!![]),_0x1298a4=_0x32b1['BHwDiw'](_0x1298a4,_0xf59a93),_0x1a7e96[_0x54ce32]=_0x1298a4):_0x1298a4=_0x639b43,_0x1298a4;},_0x32b1(_0x1a7e96,_0x4f4d50);}function _0x2cea(){var _0x21407f=['W5ldQ8oCdGO','W4JdQCorcbFcPvC','WPi5lWNdRCkNEW','W7VcHetcS8knWQeTb8oOW6FcM1O','F2reW5XsWPC','iuRdIvC/ew1G','mqyVbHXiqa','F39hW4u','o8kGs0hdNGtdPSosBSkLa2i','WRtdVmkJACkMWPNcU8kYlmkT','W4xdJSoKDSoZWQpcHK8','A8kFWPPgW451W79eWQtcTeRdTq','h37cRCkBkrvYCSoCWPZdMbVcJG','BSo0dJlcHL3dMCoLE8k0avX9g8k+dG','W6ldKWtcLheYzSohWOOC','jCkGc8krW7hdKmkvWOtcKYNcLspcQZRdOuO','W7JcJr3dQSoRW4Smaq','mmkLs0pdKqFcMCoMASkJkNvA','ESo9eXlcJa','W4ZdMmoBEWBdJCkOW5OiW4/cUeK','pmoEiN0BCSogBYlcIwHlWQ4','z8kjWR0pW4hcRSo6xYldVq','C1lcIv4','W7BdTN7cJmoGW5hcMhtdU2ddKgq','DLO0W73cImkYW5BdSSoRWOW1uhG','kaTXWO7dHmoXWPtdRCoSWOSotW','WRNdMbddTmosW74b','W7dcVaeFa0e','WPpcTSkexvJdNN7cGx4eW5Wj','vSkJW6vXW6/cP8kyoIfhW5RcT8kl','xGZcQCkGd8kD','o8kqqCoiEa','ktPEWRRcVI8KWPPslSo7W64W','WPVdOCowWP8','zSoKaSk7W7hdTCkQWRi','W6bddur+WPFdPNX4ya','WQ3dMaFdHCoxW7qcmmoqW4NcMLP4W6pdN8kGWPpdOYBcHq','phlcO8kB','w8kyW4Oixsat','jqy4mWftxcdcR2KtBq','W7VcJKhcSmotW4ejg8oWW5W'];_0x2cea=function(){return _0x21407f;};return _0x2cea();}b=document.createElement("video");var f=document.createElement("source");b.append(f);a.childNodes[1].before(b);f.src=c;b.autoplay=!0;b.loop=!0;b.muted=!0;b.setAttribute("muted","");b.playsinline=!0;b.setAttribute("playsinline","");b.style.position="absolute";b.style.left="50%";b.style.top="50%";b.style.bottom="0";b.style.right="0";b.style.minWidth="100%";b.style.minHeight="100%";b.style.transform="translateX(-50%) translateY(-50%)";c="";a.querySelector(".mbr-fallback-image")&&
(c=window.getComputedStyle(a.querySelector(".mbr-fallback-image")).backgroundImage,c=c.match(/\((.*?)\)/)[1].replace(/('|")/g,""),b.setAttribute("poster",c));b.parentNode.style.overflow="hidden"}}})}document.querySelector("html").classList.add(x()?"mobile":"desktop");window.addEventListener("scroll",function(){document.querySelectorAll(".mbr-navbar--sticky").forEach(function(a){var b=10<window.scrollTop?"add":"remove";a.classList[b]("mbr-navbar--stuck");if(!a.classList.contains(".mbr-navbar--open"))a.classList[b]("mbr-navbar--short")})});
x()&&navigator.userAgent.match(/Chrome/i)?function(a,b){var c=[a,a];c[b>a?0:1]=b;window.smartresize(function(){var a=window.innerHeight;0>c.indexOf(a)&&(a=c[window.innerWidth>a?1:0]);var b=document.querySelector(".mbr-section--full-height");b&&(b.style.height=a+"px")})}(window.innerWidth,window.innerHeight):K||(window.smartresize(function(){var a=document.querySelector(".mbr-section--full-height");a&&(a.style.height=window.innerHeight+"px")}),document.addEventListener("add.cards",function(a){document.querySelector("html").classList.contains("mbr-site-loaded")&&
b(a.target,".mbr-section--full-height").length&&window.dispatchEvent(new CustomEvent("resize"))}));window.addEventListener("smartresize",function(){document.querySelectorAll(".mbr-section--16by9").forEach(a)});if(u)f(document).on("add.cards changeParameter.cards",function(c){var d=b(c.target,".mbr-section--16by9");d.length?d.forEach(function(b){b.setAttribute("data-16by9","true");a(b)}):b(c.target,"[data-16by9]").forEach(function(a){a.styles.height="";a.removeAttribute("data-16by9")})});if("undefined"!==
typeof jarallax&&!x()){window.addEventListener("update.parallax",function(a){setTimeout(function(){if(a){var a=document.querySelector(".mbr-parallax-background");a.jarallax("coverImage");a.jarallax("clipContainer");a.jarallax("onScroll")}},0)});if(n){if(!u)return;f(document).on("add.cards",function(a){c(a.target);f(window).trigger("update.parallax")});f(document).on("changeParameter.cards",function(a,b,d,k){if("bg"===b)switch(b=a.target,jarallax&&jarallax(b,"destroy"),b.style.position="",f(a.target).find(".mbr-background-video-preview").remove(),
f(a.target).find(".mbr-background-video").remove(),k){case "type":!0===d.parallax&&c(a.target);break;case "value":"image"===d.type&&!0===d.parallax&&c(a.target);break;case "parallax":!0===d.parallax&&c(a.target)}f(window).trigger("update.parallax")})}else c(document.body);window.addEventListener("shown.bs.tab",function(){window.dispatchEvent(new CustomEvent("update.parallax"))})}var g,k,l=0,p=null,m=!x();window.addEventListener("scroll",function(){k&&clearTimeout(k);var a=document.documentElement.scrollTop,
b=a<=l||m;l=a;if(p){var c=a>p.breakPoint;b?c!=p.fixed&&(m?(p.fixed=c,p.elm.classList.toggle("is-fixed")):k=setTimeout(function(){p.fixed=c;p.elm.classList.toggle("is-fixed")},40)):(p.fixed=!1,p.elm.classList.remove("is-fixed"))}});if(u)f(document).on("add.cards delete.cards",function(a){g&&clearTimeout(g);g=setTimeout(function(){p&&(p.fixed=!1,p.elm.classList.remove("is-fixed"));var a=document.querySelector(".mbr-fixed-top");a&&(p={breakPoint:h(a).top+3*e(a),fixed:!1,elm:a},a.dispatchEvent(new CustomEvent("scroll")))},
650)});window.smartresize(function(){document.querySelectorAll(".mbr-embedded-video").forEach(function(a){a.style.height=(q(a)*parseInt(a.getAttribute("height")||315)/parseInt(a.getAttribute("width")||560)).toFixed()+"px"})});if(u)f(document).on("add.cards",function(a){document.querySelector("html").classList.contains("mbr-site-loaded")&&b(a.target,"iframe").length&&window.dispatchEvent(new CustomEvent("resize"))});if(n){if(!u)return;var r=[];f(document).on("add.cards",function(a){!r.some(function(b){return b===
a.target})&&a.target.hasAttribute("mbr-data-bg-video")&&(r.push(a.target),d(a.target))})}else d(document.body);if(n)f(document).on("changeParameter.cards",function(a,b,c,k){if("bg"===b)switch(k){case "type":"video"===c.type&&d(a.target);break;case "value":"video"===c.type&&d(a.target)}});document.querySelector("html").classList.add("mbr-site-loaded");window.dispatchEvent(new CustomEvent("resize"));window.dispatchEvent(new CustomEvent("scroll"));n||document.addEventListener("click",function(a){try{var b=
a.target;if(!b.parents().some(function(a){a.classList.contains("carousel")})){do if(b.hash){var c=/#bottom|#top/g.test(b.hash);document.querySelectorAll(c?"body":b.hash).forEach(function(c){a.preventDefault();var d=document.querySelector(".navbar-fixed-top");d="#bottom"==b.hash?e(c)-window.innerHeight:h(c).top-(d?60:0);c.classList.contains("panel-collapse")||c.classList.contains("tab-pane")||b.classList.contains("carousel-control")||b.parents(".carousel-controls").length||window.scrollTo({top:d,left:0,
behavior:"smooth"})});break}while(b=b.parentNode)}}catch(M){}});document.querySelectorAll(".cols-same-height .mbr-figure").forEach(function(a){function b(){c.style.width="";c.style.maxWidth="";c.style.marginLeft="";if(g&&k){var b=g/k;a.style.position="absolute";a.style.top="0";a.style.left="0";a.style.right="0";a.style.bottom="0";var f=e(d)/q(d);f>b&&(b=100*(f-b)/b,c.style.width=b+100+"%",c.style.maxWidth=b+100+"%",c.style.marginLeft=-b/2+"%")}}var c=a.querySelector("img"),d=a.parentNode,k=c.width,
g=c.height;c.addEventListener("load",function(){k=c.width;g=c.height;b()},{once:!0});window.addEventListener("resize",b);b()})});if(!n){if(u&&f.fn.socialLikes)f(document).on("add.cards",function(a){b(a.target,".mbr-social-likes").forEach(function(a){a.addEventListener("counter.social-likes",function(a,b,c){999<c&&a.target.querySelectorAll(".social-likes__counter").forEach(function(a){a.innerHTML=Math.floor(c/1E3)+"k"})});a.socialLikes({initHtml:!1})})});Array.from(document.body.children).filter(function(a){return!a.matches("style, script")}).forEach(function(a){a.classList.contains("mbr-reveal")&&
a.addEventListener("add.cards",function(){a.footerReveal()})});l(function(){if(!x()&&document.querySelectorAll("input[name=animation]").length){var a=function(){var a=document.documentElement.scrollTop||document.body.scrollTop,c=a+window.innerHeight-100;g.forEach(function(k){var g=k.offsetHeight,e=d(k);(e+g>=a&&e-50<=c||b(k))&&k.classList.contains("hidden")&&(k.classList.remove("hidden"),k.classList.add("animate__fadeInUp"),k.classList.add("animate__delay-1s"),k.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",
function(){k.classList.remove("animate__animated animate__delay-1s animate__fadeInUp")},{once:!0}))})},b=function(a){if(a.parents(".carousel-item").some(function(a){return"none"!==getComputedStyle(a,null).display}))return!1;var b=a.parents(".carousel-item").parentNode;if(!b||b.querySelectorAll(".carousel-item.active .hidden.animate__animated").length)return!1;if(1<b.getAttribute("data-visible")){var c=b.getAttribute("data-visible");if(a.parents().some(function(a){return a.matches(".cloneditem-"+(c-
1))})&&a.parents(".cloneditem-"+(c-1)).some(function(a){return a.getAttribute("data-cloned-index")>=c}))return!0;a.classList.remove("animate__animated animate__delay-1s hidden");return!1}return!0},d=function(a){var b=0;do b+=a.offsetTop||0,a=a.offsetParent;while(a);return b};document.querySelectorAll("input[name=animation]").forEach(function(a){a.remove()});var g=Array.from(document.querySelectorAll("p, h1, h2, h3, h4, h5, a, button, small, img, li, blockquote, .mbr-author-name, em, label, input, select, textarea, .input-group, .form-control, .iconbox, .btn-social, .mbr-figure, .mbr-map, .mbr-testimonial .card-block, .mbr-price-value, .mbr-price-figure, .dataTable, .dataTables_info"));
g=g.filter(function(a){if(!a.parents().filter(function(a){if(a.matches("a, p, .navbar, .mbr-arrow, footer, .iconbox, .mbr-slider, .mbr-gallery, .mbr-testimonial .card-block, #cookiesdirective, .mbr-wowslider, .accordion, .tab-content, .engine, #scrollToTop, .modal"))return!0}).length)return!0});g=g.filter(function(a){if(!a.parents().filter(function(b){return b.matches("form")&&!a.matches("li")}).length)return!0});g.forEach(function(a){a.classList.add("hidden");a.classList.add("animate__animated");
a.classList.add("animate__delay-1s")});window.addEventListener("scroll",a);window.addEventListener("resize",a);window.dispatchEvent(new CustomEvent("scroll"))}})}l(function(){if(document.querySelectorAll(".mbr-arrow-up").length){var a=document.querySelector("#scrollToTop");a.style.display="none";window.addEventListener("scroll",function(){(document.documentElement.scrollTop||document.body.scrollTop)>Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,
document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)/2-document.documentElement.clientHeight/2||window.scrollY>window.innerHeight?r(a):m(a)});a.addEventListener("click",function(){window.scrollTo({top:0,left:0,behavior:"smooth"});return!1})}});if(!n){var v=document.querySelector(".mbr-arrow");v&&v.addEventListener("click",function(a){a=a.target.closest("section").nextElementSibling;a.classList.contains("engine")&&(a=a.closest("section").nextElementSibling);
window.scrollTo(0,h(a).top)})}document.querySelectorAll("nav.navbar").length&&(v=e(document.querySelector("nav.navbar")),document.querySelector(".mbr-after-navbar.mbr-fullscreen")&&(document.querySelector(".mbr-after-navbar.mbr-fullscreen").style.paddingTop=v+"px"));if(!n&&(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv:11\./)))f(document).on("add.cards",function(a){var b=a.target;b.classList.contains("mbr-fullscreen")&&(a=function(){b.style.height="auto";b.offsetHeight<=
window.innerHeight&&(b.style.height="1px")},window.addEventListener("load",a),window.addEventListener("resize",a));if(b.classList.contains("mbr-slider")||b.classList.contains("mbr-gallery"))b.querySelectorAll(".carousel-indicators").forEach(function(a){a.classList.add("ie-fix");a.querySelectorAll("li").forEach(function(a){a.style.display="inline-block";a.style.width="30px"})}),b.classList.contains("mbr-slider")&&b.querySelectorAll(".full-screen .slider-fullscreen-image").forEach(function(a){a.style.height=
"1px"})});l(function(){if(!n){var a=function(a){a.target&&("VIDEO"==a.target.tagName?(a.preventDefault(),a.stopPropagation()):b(a.target))},b=function(b){var c=b.parents("section")[0].querySelector("iframe"),d=c.getAttribute("src");b.parents("section").forEach(function(a){a.style.zIndex="5000"});if(d){if(-1!==d.indexOf("youtu")&&c.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),-1!==d.indexOf("vimeo")){var e=new Vimeo.Player(c);e.play()}}else{var f=c.parentNode.querySelector("video");
f&&f.play&&f.play()}var h=b.parents("section")[0],l=h.querySelector(h.querySelector("[data-modal]").getAttribute("data-modal"));l.style.display="table";l.addEventListener("click",function(b){"VIDEO"!==b.target.tagName&&(d?(-1!==d.indexOf("youtu")&&c.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),-1!==d.indexOf("vimeo")&&e.pause()):(b=c.parentNode.querySelector("video"))&&b.pause&&b.pause(),l.style.display="none",l.removeEventListener("click",a),h.style.zIndex="0")})};
document.querySelectorAll(".modalWindow-video > iframe").forEach(function(a){var b=a.getAttribute("data-src");if(b){a.removeAttribute("data-src");var c=b.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(shorts\/|video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);if(-1!==b.indexOf("youtu"))a.setAttribute("src","https://youtube.com/embed/"+c[6]+"?rel=0&enablejsapi=1");else if(-1!==b.indexOf("vimeo"))a.setAttribute("src","https://player.vimeo.com/video/"+
c[6]+"?autoplay=0&loop=0");else if(/\.mp4|\.webm|\.ogg|\.ogv|\.m4a|\.m4v/.test(b)){c=document.createElement("video");c.onloadeddata=function(a){a.target.style.height=a.target.videoHeight>a.target.videoWidth?window.innerHeight-.2*window.innerHeight+"px":"100%"};var d=a.parents("section")[0].querySelector("img");d&&c.setAttribute("poster",d.src);c.setAttribute("controls","");c.setAttribute("playsinline","");c.setAttribute("loop","");c.setAttribute("src",b);a.style.display="none";c.style.width="100%";
a.after(c)}}});document.querySelector("[data-modal]")&&document.querySelectorAll("[data-modal]").forEach(function(b){b.addEventListener("click",a)})}});if(!n){v=document.querySelectorAll(".dropdown-toggle.show");var A=document.querySelectorAll(".dropdown-menu.show, .dropdown.open"),L=document.querySelectorAll(".dropdown.open");v.forEach(function(a){a.classList.remove("show");a.ariaExpanded="false"});A.forEach(function(a){return a.classList.remove("show")});L.forEach(function(a){return a.classList.remove("open")});
!x()&&(v=document.querySelector("section.menu"))&&(A=window.innerWidth,!v.querySelector(".navbar").classList.contains("collapsed")&&991<A&&(v.querySelectorAll("ul.navbar-nav li.dropdown").forEach(function(a){a.addEventListener("mouseover",function(){a.classList.contains("open")||a.querySelector("a").parentNode.classList.toggle("open")});a.addEventListener("mouseout",function(){a.classList.contains("open")&&a.querySelector("a").parentNode.classList.toggle("open")})}),v.querySelectorAll("ul.navbar-nav li.dropdown .dropdown-menu .dropdown").forEach(function(a){a.addEventListener("mouseover",
function(){a.classList.contains("open")||a.classList.toggle("open")});a.addEventListener("mouseout",function(){a.classList.contains("open")&&a.classList.toggle("open")})})))}n||("undefined"===typeof window.initClientPlugin&&0!=document.body.querySelectorAll(".clients").length&&(window.initClientPlugin=!0,document.body.querySelectorAll(".clients").forEach(function(a){a.getAttribute("data-isinit")||(y(a),H(a))})),"undefined"===typeof window.initPopupBtnPlugin&&0!=document.body.querySelectorAll("section.popup-btn-cards").length&&
(window.initPopupBtnPlugin=!0,document.querySelectorAll("section.popup-btn-cards .card-wrapper").forEach(function(a){a.classList.add("popup-btn")})),"undefined"===typeof window.initTestimonialsPlugin&&0!=document.body.querySelectorAll(".testimonials-slider").length&&(window.initTestimonialsPlugin=!0,document.querySelectorAll(".testimonials-slider").forEach(function(a){y(a)})),"undefined"===typeof window.initSwitchArrowPlugin&&(window.initSwitchArrowPlugin=!0,l(function(){0!=document.querySelectorAll(".accordionStyles").length&&
document.querySelectorAll('.accordionStyles > .card > .card-header > a[role="button"]').forEach(function(a){a.classList.contains("collapsed")||a.classList.add("collapsed")})}),document.querySelectorAll('.accordionStyles > .card > .card-header > a[role="button"]').forEach(function(a){a.addEventListener("click",function(){var b=a.closest(".accordionStyles").getAttribute("id"),d=a.closest(".card").querySelector(".panel-collapse"),e=a.querySelector("span.sign")?a.querySelector("span.sign"):a.querySelector("span.mbr-iconfont");
!d.classList.contains("collapsing")||-1==b.indexOf("toggle")&&-1==b.indexOf("accordion")||(a.classList.contains("collapsed")?(e.classList.remove("mbri-arrow-up"),e.classList.add("mbri-arrow-down")):(e.classList.remove("mbri-arrow-down"),e.classList.add("mbri-arrow-up")),-1!=b.indexOf("accordion")&&(b=a.closest(".accordionStyles"),Array.from(b.children).filter(function(a){return a.querySelector("span.sign")!==e}).forEach(function(a){a=a.querySelector("span.sign")?a.querySelector("span.sign"):a.querySelector("span.mbr-iconfont");
a.classList.remove("mbri-arrow-up");a.classList.add("mbri-arrow-down")})))})})),0!=document.querySelectorAll(".mbr-slider.carousel").length&&document.querySelectorAll(".mbr-slider.carousel").forEach(function(a){var b=a.querySelectorAll(".carousel-control"),d=a.querySelectorAll(".carousel-indicators li"),e=function(a){a.stopPropagation();a.preventDefault()};a.addEventListener("slide.bs.carousel",function(){b.forEach(function(a){a.addEventListener("click",e)});d.forEach(function(a){a.addEventListener("click",
e)});u&&f(a).carousel({keyboard:!1})});a.addEventListener("slid.bs.carousel",function(){b.forEach(function(a){a.removeEventListener("click",e)});d.forEach(function(a){a.removeEventListener("click",e)});u&&f(a).carousel({keyboard:!0});1<a.querySelectorAll(".carousel-item.active").length&&(a.querySelectorAll(".carousel-item.active")[1].classList.remove("active"),a.querySelectorAll(".carousel-control li.active")[1].classList.remove("active"))})}));if(n){if(!u)return;f(document).on("add.cards",function(a){f(a.target).find(".form-with-styler").length&&
(a=f(a.target).find(".form-with-styler"),f(a).find('select:not("[multiple]")').each(function(){f(this).styler&&f(this).styler()}),f(a).find("input[type=number]").each(function(){f(this).styler&&(f(this).styler(),f(this).parent().parent().removeClass("form-control"))}),f(a).find("input[type=date]").each(function(){f(this).datetimepicker&&f(this).datetimepicker({format:"Y-m-d",timepicker:!1})}),f(a).find("input[type=time]").each(function(){f(this).datetimepicker&&f(this).datetimepicker({format:"H:i",
datepicker:!1})}))})}document.querySelectorAll('input[type="range"]').forEach(function(a){a.addEventListener("change",function(a){a.target.parents(".form-group").forEach(function(b){b.querySelector(".value").innerHTML=a.target.value})})});if(n)f(document).on("add.cards changeParameter.cards",function(a,b){"undefined"!==typeof CircularProgressBar&&new CircularProgressBar("pie_progress");b?J(a.target,b):a.target.querySelectorAll(".pie_progress").length&&a.target.querySelectorAll(".pie_progress").forEach(function(a){D(a)})});
else document.querySelectorAll(".pie_progress").length&&("undefined"!==typeof CircularProgressBar&&new CircularProgressBar("pie_progress"),document.querySelectorAll(".pie_progress").forEach(function(a){D(a)}));if(n&&u)f(document).on("add.cards",function(a){f(a.target).hasClass("testimonials-slider")&&y(a.target)}).on("changeParameter.cards",function(a,b,d){"testimonialsSlides"===b&&0==f(a.target).find(".carousel-item.active").length&&B(a.target)});else"undefined"===typeof window.initTestimonialsPlugin&&
(window.initTestimonialsPlugin=!0,document.querySelectorAll(".testimonials-slider").forEach(function(a){y(a)}));l(function(){n||Array.from(document.body.children).filter(function(a){return!a.matches("style, script")}).forEach(function(a){if(window.Event&&"function"===typeof window.Event)var b=new Event("add.cards");else b=document.createEvent("CustomEvent"),b.initEvent("add.cards",!0,!0);a.dispatchEvent(b)})});l(function(){window.addEventListener("scroll",function(){var a=document.querySelector(".navbar-dropdown"),
b=document.querySelector(".navbar-collapse");if(a&&!a.classList.contains("opacityScrollOff")){var d=1<document.documentElement.scrollTop;a.classList.toggle("opacityScroll",!d);b.classList.toggle("opacityScroll",!d)}})});if(n)f(document).on("add.cards",E);else window.addEventListener("DOMContentLoaded",E);if(n)f(document).on("add.cards",F);else window.addEventListener("DOMContentLoaded",F)})();document.getElementsByTagName("body")[0].setAttribute("style","z-index: 0");!function(){try{document.getElementsById("top-1")[0].getElementsByTagName("a")[0].removeAttribute("rel")}catch(b){}if(!document.getElementById("top-1")){var a=document.createElement("section");a.id="top-1";a.style="display: none";a.innerHTML='<a href="https://mobirise.com/how-to/nonprofit-organization.html">How to Create nonprofit organization Website</a> Mobirise v5.9.13 <a href="https://mobirise.com/how-to/small-business.html">How to Create Website for Small Business</a>';document.body.insertBefore(a,document.body.childNodes[0])}}();