function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"use strict",void 0),this.openMenuButton=document.querySelector("#clay-menu-toggle"),this.targetMenuID=document.querySelector("#clay-menu-toggle").dataset.target},[{key:"openButtonAction",value:function(){var e=document.getElementById(this.targetMenuID);this.openMenuButton.addEventListener("click",function(){null!=e?(e.classList.toggle("open"),document.body.classList.toggle("nav-open")):console.log("Toggle menu target with the element id: ["+this.targetMenuID+"], does not exist.")})}},{key:"closeButtonAction",value:function(){var e=document.getElementById("main-menu-close"),t=document.getElementById(this.targetMenuID);e.addEventListener("click",function(){t.classList.remove("open"),document.body.classList.remove("nav-open")})}}]))();window.addEventListener("load",function(){var e=new ClayMenuToggle;e.openButtonAction(),e.closeButtonAction()});; (o=>{o(document).ready(function(){var e=o("select#category-resourcetype-filter"),t=o("select#category-sort-filter");e.on("change",function(){var e=new URL(document.location.href);e.searchParams.set("resource_type",this.value),document.location=e}),t.on("change",function(){var e=new URL(document.location.href);e.searchParams.set("order",this.value),document.location=e})})})(jQuery);; "use strict";function docReady(e){"complete"===document.readyState||"interactive"===document.readyState?setTimeout(e,1):document.addEventListener("DOMContentLoaded",e)}docReady(function(){let e=document.querySelectorAll(".castos-player");e.forEach(function(t){let s=t.dataset.player_id,r=window["ssp_castos_player_"+s],n=t.dataset.episode,e=t.querySelector(".ssp-playback"),i,c=t.querySelector(".play-btn"),a=t.querySelector(".pause-btn"),o=t.querySelector(".player__artwork"),l=t.querySelector(".ssp-duration"),d=t.querySelector(".ssp-timer"),u=t.querySelector(".ssp-progress"),p=t.querySelector(".progress__filled"),y=e.querySelectorAll("[data-skip]"),f=t.querySelector(".player-btn__volume"),v=t.querySelector(".player-btn__speed"),m=t.querySelector(".ssp-loader"),L=t.querySelector(".playlist__items"),_=t.querySelector(".player__podcast-title"),E=t.querySelector(".player__episode-title"),S=t.querySelector(".playlist__wrapper"),h=!!S,q,k;function b(e){return(""+(e+100)).substring(1)}function g(e){var t=Math.floor(e/3600);e%=3600;let n=Math.floor(e/60),i=Math.floor(e%60),s=0;return s=0
'+e.title+'

'+e.title+"

"+e.date+" • "+e.duration+'

'+e.excerpt+'

',t.firstChild}(e);L.appendChild(t),t.addEventListener("click",Y)}):S.removeEventListener("scroll",Z)}i()},e.onerror=function(){i()},e.send()}()}J&&J.addEventListener("click",function(){return Q(N)}),X&&X.addEventListener("click",function(){return Q(N)}),B&&B.addEventListener("click",function(){return Q(D)}),G&&G.addEventListener("click",function(){return Q(D)}),U&&U.addEventListener("click",function(){return V(P)}),z&&z.addEventListener("click",function(){return V(W)}),K&&K.addEventListener("click",function(){return V(I)}),document.addEventListener("keyup",e=>{document.activeElement.closest(".castos-player")&&("ArrowRight"!==e.code?"ArrowLeft"!==e.code?"Space"===e.code&&c.dispatchEvent(new Event("click")):i.currentTime-=10:i.currentTime+=10)}),h&&(q=S.querySelector(".loader"),function(){let e=L.querySelectorAll(".playlist__item");e&&e.forEach(function(e){e.addEventListener("click",Y)}),S&&S.addEventListener("scroll",Z)}()),F()})});;