(()=>{function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}window.addEventListener("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/SimpleAudioPlayer.default",(function(e,t){var r=e[0].querySelector(".h5ap_elementor");n.initialize(r)}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".h5ap_standard_player:not(.h5ap_elementor)");n.initialize(e)}));var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,n;return r=e,n=[{key:"toHHMMSS",value:function(e){var t=parseInt(e,10),r=Math.floor(t/3600),n=Math.floor((t-3600*r)/60),o=t-3600*r-60*n;return r<10&&(r="0"+r),n<10&&(n="0"+n),o<10&&(o="0"+o),n+":"+o}}],null&&t(r.prototype,null),n&&t(r,n),e}();r(n,"initialize",(function(t){var o=n.getDetectorData(t);if(!o)return!1;var a=o.wrapper,i=o.mediaElement,l=o.options,u=(o.infos,new Plyr(i,function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({controls:["play","progress","duration","mute","volume","download"]},l)));return u.on("ready",(function(){a.querySelector(".plyr__time--duration").innerHTML=n.toHHMMSS(u.duration)})),u})),r(n,"getDetectorData",(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return!1;if(void 0!==e[0])return null===(t=e)||void 0===t||t.forEach((function(e){return n.initialize(e)})),!1;if(void 0!==e.length&&0===e.length)return!1;null!==e.querySelector(".h5ap_standard_player")&&(e=e.querySelector(".h5ap_standard_player")),r=r||null==jQuery(e).attr("data-options")?{}:JSON.parse(jQuery(e).attr("data-options")),o=o||null==jQuery(e).attr("data-infos")?{}:JSON.parse(jQuery(e).attr("data-infos"));var a="";return a=e.querySelector("audio"),{wrapper:e,mediaElement:a,options:r,infos:o}}))})();