text: !function(){"use strict";$(function(){var e;$(".js-fullheight").css("height",$(window).height()),$(window).resize(function(){$(".js-fullheight").css("height",$(window).height())}),$(".js-nav-toggle").on("click",function(e){e.preventDefault();var t=$(this);$("body").hasClass("offcanvas")?(t.removeClass("active"),$("body").removeClass("offcanvas")):(t.addClass("active"),$("body").addClass("offcanvas"))}),$(document).click(function(e){var t=$("#aside, .js-nav-toggle");t.is(e.target)||0!==t.has(e.target).length||$("body").hasClass("offcanvas")&&($("body").removeClass("offcanvas"),$(".js-nav-toggle").removeClass("active"))}),$(window).scroll(function(){$("body").hasClass("offcanvas")&&($("body").removeClass("offcanvas"),$(".js-nav-toggle").removeClass("active"))}),$("#hero .flexslider").flexslider({animation:"fade",slideshowSpeed:5e3,directionNav:!0,start:function(){setTimeout(function(){$(".slider-text").removeClass("animated fadeInUp"),$(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp")},500)},before:function(){setTimeout(function(){$(".slider-text").removeClass("animated fadeInUp"),$(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp")},500)}}),e=$(".image-content").outerHeight(),$(window).width()<=992?$("#sticky_item").trigger("sticky_kit:detach"):($(".sticky-parent").removeClass("stick-detach"),$("#sticky_item").trigger("sticky_kit:detach"),$("#sticky_item").trigger("sticky_kit:unstick")),$(window).resize(function(){var e=$(".image-content").outerHeight();$(".sticky-parent").css("height",e),$(window).width()<=992?$("#sticky_item").trigger("sticky_kit:detach"):($(".sticky-parent").removeClass("stick-detach"),$("#sticky_item").trigger("sticky_kit:detach"),$("#sticky_item").trigger("sticky_kit:unstick"),$("#sticky_item").stick_in_parent())}),$(".sticky-parent").css("height",e),$("#sticky_item").stick_in_parent()})}(),$("body").magnificPopup({delegate:"a.lightbox",type:"image",removalDelay:300,image:{titleSrc:"title",gallery:{enabled:!0}},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div><div class="mfp-title mfp-bottom-iframe-title animate-box fadeInLeft animated" data-animate-effect="fadeInLeft"></div><div class="mfp-bottom-iframe-share"><ul id="shr-bttns" class="shr animate-box fadeInLeft animated" data-animate-effect="fadeInLeft" style="display: none">  <a      href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"      onclick="window.open(this.href, \'pop-up\', \'left=20,top=20,width=500,height=500,toolbar=1,resizable=0\'); return false;"      title="Partilhar no Facebook"><li class="facebook">    <i class="fab fa-facebook-f"></i></li>    </a><a      href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"      onclick="window.open(this.href, \'pop-up\', \'left=20,top=20,width=500,height=500,toolbar=1,resizable=0\'); return false;"      title="Partilhar no Twitter"><li class="twitter"><i class="fab fa-twitter"></i></li></a><a      href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"      onclick="window.open(this.href, \'pop-up\', \'left=20,top=20,width=500,height=500,toolbar=1,resizable=0\'); return false;"      title="Partilhar no LinkedIn"><li class="linkedin"><i class="fab fa-linkedin-in"></i></li></a><a      href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"      onclick="window.open(this.href, \'pop-up\', \'left=20,top=20,width=900,height=500,toolbar=1,resizable=0\'); return false;"      title="Partilhar no Reddit"><li class="reddit"><i class="fab fa-reddit-alien"></i></li></a><a      href="mailto:?subject={{ page.title }}&amp;body={{ site.url }}{{ site.baseurl }}{{ page.url }}"      title="Partilhar por Email"      ><li class="email"><i class="fas fa-envelope"></i    ></li></a>  </ul></div></div></div>',patterns:{youtube:{index:"youtube.com/",id:null,src:"%id%?autoplay=1"}},srcAction:"iframe_src"},callbacks:{markupParse:function(e,t,i){t.title=i.el.attr("title"),t.url=i.el.attr("url");const a=t.title.replace("#","%23"),s=t.url.replace("?","%3F").replace("=","%3D"),l=`https://www.facebook.com/sharer/sharer.php?u=${s}`;e.find("li.facebook a").prop("href",l);const r=`https://twitter.com/intent/tweet?text=${a}&url=${s}`;e.find("li.twitter a").prop("href",r);const o=`https://www.linkedin.com/shareArticle?mini=true&url=${s}&title=${a}&summary=Description&source=${a}`;e.find("li.linkedin a").prop("href",o);const n=`http://www.reddit.com/submit?url=${s}`;e.find("li.reddit a").prop("href",n);const c=`mailto:?subject=${a}&body=${s}`;e.find("li.email a").prop("href",c)}}}),$(".ajax-page-load-link").magnificPopup({type:"ajax",removalDelay:300,mainClass:"mfp-fade",gallery:{enabled:!0}}),"dark"===theme?document.body.classList.add("dark"):($(".moon").toggleClass("sun"),$(".toggle").toggleClass("day")),$(".toggle").click(function(){document.body.classList.toggle("dark"),$(".moon").toggleClass("sun"),$(".toggle").toggleClass("day"),"dark"===theme?(window.localStorage.setItem("theme","light"),theme="light"):(window.localStorage.setItem("theme","dark"),theme="dark")});