!function(e,t){e(window).on("elementor/frontend/init",(function(){var t,n=elementorModules.frontend.handlers.Base;t=n.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{event:"hover"}},onElementChange:debounce((function(e){-1!==e.indexOf("ep_sound_effects_")&&this.run()}),400),settings:function(e){return this.getElementSettings("ep_sound_effects_"+e)},run:function(){if("yes"==this.settings("active")){this.getDefaultSettings();var t,n,s="",o="ep-sound-effects"+this.getID(),i="#"+o;if(e(this.findElement(".elementor-widget-container").get(0)).attr("id",o),"widget"===this.settings("select_type")?s=e(i):"anchor_tag"===this.settings("select_type")?s=e(i+" a"):"custom"===this.settings("select_type")&&this.settings("element_selector")&&(s=e(i).find(this.settings("element_selector"))),"hosted_url"!==this.settings("source")?t=this.settings("source_local_link")+this.settings("source"):this.settings("hosted_url.url")&&(t=this.settings("hosted_url.url").replace(/\.[^/.]+$/,""),n=this.settings("hosted_url_mp3.url").replace(/\.[^/.]+$/,"")),t){if(!document.createElement("audio").canPlayType)return console.error("Oh man 😩! \nYour browser doesn't support audio awesomeness."),function(){};var r=document.createElement("audio"),u=document.createElement("source"),c=document.createElement("source"),d=!1;r.setAttribute("preload",!0),u.setAttribute("type","audio/mpeg"),c.setAttribute("type","audio/ogg"),r.appendChild(u),r.appendChild(c),document.body.appendChild(r);var l=this;jQuery(document).ready((function(){"hover"==l.settings("event")&&(jQuery(s).on("mouseenter",(function(){a()})),jQuery(s).on("mouseleave",(function(){f()})),jQuery(s).on("click",(function(){f()})),jQuery(s).on("touchstart",(function(){a()}))),"click"==l.settings("event")&&e(s).on("click",(function(){a()}))}))}}function a(){var e,s;t&&(n&&(e=n+".mp3"),s=t+".ogg",d||(d=!0,c.addEventListener("error",(function(){console.error("😶 D'oh! The ogg file URL is wrong!")}))),(e||s)&&(n&&u.setAttribute("src",e),c.setAttribute("src",s),r.load()),r.play())}function f(){r.pause(),r.currentTime=0}}}),elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))}))}(jQuery,window.elementorFrontend);