function fusionInitAudioElements(){"undefined"!=typeof mejs&&jQuery(".fusion-audio audio").each((function(){jQuery(this).closest(".mejs-container").length||jQuery(this).mediaelementplayer()}))}jQuery(window).on("load fusion-element-render-fusion_audio",(function(){var a,t;setTimeout((function(){jQuery(".awb-playback-speed audio").each((function(){const e=jQuery(this).closest(".fusion-audio");a=e.find(".mejs-controls"),t=["2.0","1.5","1.25","1.0","0.5"],a.children(".awb-playback-rate").length||(a.find(".mejs-duration-container").after('<div class="awb-button awb-playback-rate mejs-button blank-button"><button type="button" class="awb-playback-rate-active playback-rate-button mejs-active" data-value="1" title="1.0" aria-label="1.0" tabindex="0">1.0</button></div>'),a.find(".awb-playback-rate").append('<div class="awb-playback-rate-flyout"></div>'),t.forEach((function(t){a.find(".awb-playback-rate-flyout").append('<div class="awb-button mejs-button blank-button"><button type="button" class="awb-playback-rate-change playback-rate-button" data-value="'+t+'" title="'+t+'" aria-label="'+t+'" tabindex="0">'+t+"</button></div>")})),jQuery(this).on("loadedmetadata",(function(a){const t=a.target,e=jQuery(t).closest(".mejs-container");t.playbackRate=e.find(".awb-playback-rate button").attr("data-value")})))}))}),200)})),jQuery(window).on("load",(function(){jQuery("body").on("click",".awb-playback-rate-active",(function(){jQuery(this).hasClass("active")?(jQuery(this).removeClass("active"),jQuery(this).parent().find(".awb-playback-rate-flyout").slideUp(200)):(jQuery(".awb-playback-rate-active").removeClass("active"),jQuery(".awb-playback-rate-flyout").hide(),jQuery(this).addClass("active"),jQuery(this).parent().find(".awb-playback-rate-flyout").slideDown(200))})),jQuery("body").on("click",".awb-playback-rate-change",(function(){const a=jQuery(this).closest(".mejs-container").find(".mejs-mediaelement").find("audio"),t=jQuery(this).closest(".awb-playback-rate").find(".awb-playback-rate-active");t.attr("data-value",jQuery(this).attr("data-value")).attr("title",jQuery(this).attr("title")).attr("aria-label",jQuery(this).attr("aria-label")).text(jQuery(this).text()),a[0].playbackRate=jQuery(this).attr("data-value"),t.removeClass("active"),jQuery(this).closest(".awb-playback-rate-flyout").slideUp(200)}))}));