!function(o){"use strict";o.ProRadioElementorAjaxLoadmore={masonry:function(e){var n=o(e);n.hasClass("qt-masonry")&&n.masonry("reloadItems").masonry({itemSelector:".qt-ms-item",transitionDuration:0})},autoloadMore:function(){o(".proradioelementor-autoloadMore").each((function(e,n){var t=o(n).offset().top;o(n).outerHeight();t<o(window).scrollTop()+o(window).height()+300&&o(n).click().remove()}))},init:function(){var e=o.ProRadioMainObj.fn;o("body").off("click","[data-proradioelementor-ajaxloadmore]"),o("body").on("click","[data-proradioelementor-ajaxloadmore]",(function(n){n.preventDefault();var t=o(this),r=t.data("proradioelementor-querydata"),i=t.data("proradioelementor-target"),a=t.data("proradioelementor-method");o.ajax({url:prelementor_ajax_var.url,type:"POST",dataType:"text",data:{querydata:r,action:"prelementor-ajaxloadmore"},beforeSend:function(){t.find("i").show(),o(i).animate({opacity:.6},50),o(i).find(".proradio-wp-pagination").css({"pointer-events":"none"})},success:function(n){o(i).find(".proradio-wp-pagination").remove(),"replace"===a?o(i).html(n).animate({opacity:1},50):o(i).append(n).animate({opacity:1},50),e.qtWaypoints.reinitialize(),e.qtWaypoints.update(o.ProRadioMainObj.scrolledTop),e.activatesComponent(i),e.countDown.init(),o(i).hasClass("qt-masonry")&&o(i).masonry("reloadItems").masonry({itemSelector:".qt-ms-item",transitionDuration:0}),o(i).find(".proradio-wp-pagination").css({"pointer-events":"initial"})},error:function(o,e,n){console.log("Error loading next items")}})})),o("body").hasClass("elementor-editor-active")||(o.ProRadioElementorAjaxLoadmore.autoloadMore(),o(window).on("resize scroll",(function(){o.ProRadioElementorAjaxLoadmore.autoloadMore()})))}},jQuery(document).ready((function(){o.ProRadioElementorAjaxLoadmore.init()}))}(jQuery),function(o){var e=!1,n=!1,t=!1;o(".qtmplayer__cover img").hide();var r=function(o,r){try{function i(){r(".qtmplayer__cover img").length>0&&((t=r(".qtmplayer__cover img").attr("src"))!==n&&(n=t),n?(r(".proradio-elementor--artwork__img img").attr("src",n),r(".proradio-elementor--artwork__img").attr("href",n),r(".qtmplayer__cover img").show(),r(".proradio-elementor--artwork").removeClass("proradio-hidden")):(r(".qtmplayer__cover img").hide(),r(".proradio-elementor--artwork").addClass("proradio-hidden")))}e&&clearInterval(e),i(),e=setInterval((function(){i()}),6e3)}catch(o){console.log(o)}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-artwork.default",r)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{if(void 0!==n)clearTimeout(n);else var n=!1;n=setTimeout((function(o){e.ProRadioMainObj.fn.customStylesHead(),e(".proradio-txtfx").addClass("proradio-active"),console.log("Countdown"),e.ProRadioMainObj.fn.countDown.init()}),800)}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-3dheader.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active"))try{if(void 0!==n)clearTimeout(n);else var n=!1;n=setTimeout((function(){e.ProRadioMainObj.fn.customStylesHead(),e(".proradio-anim").addClass("proradio-active")}),800)}catch(o){console.log(o)}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-qt-caption.default",e)}))}(jQuery),function(o){var e=function(o,e){n.init(o,e,n)},n={marqueeInstances:[],marqueeText:function(e,n){if("function"==typeof o.fn.marquee){var t=n.find(".proradio-no-marquee");o.each(t,(function(e,n){o(n).marquee("destroy")}));var r=n.find(".proradio-customplayer-marquee");if(e.marqueeInstances.length>0){for(var i=0;i<e.marqueeInstances.length;i++)void 0!==e.marqueeInstances[i]&&e.marqueeInstances[i].marquee("destroy");e.marqueeInstances=[]}o.each(r,(function(n,t){var r=o(t);0===r.find(".marquee").length&&r.html('<span class="marquee">'+r.html()+"</span>"),r.outerWidth()>r.find(".marquee").outerWidth()||(e.marqueeInstances[n]=r.marquee({duration:12e3,gap:r.outerWidth(),delayBeforeStart:1e3,direction:"left",duplicated:!1,pauseOnCycle:5e3,startVisible:!0}))}))}else console.log("marquee missing")},init:function(o,e,t){try{var r,i,a=!1,d=!1,l=!1,s=!1,c=!1,m=e(".proradio-customplayer");if(m.length>0){var f=m.find(".proradio-customplayer__art");function p(){c=e("#qtmplayer .qtmplayer__title").html(),s!==c&&(m.find(".proradio-customplayer__title").html(c),m.find(".proradio-customplayer__artist").html(e("#qtmplayer .qtmplayer__artist").html()),s=c,n.marqueeText(t,m)),f.length>0?((l=e(".qtmplayer__cover img").attr("src"))!==d&&(d=l),d&&(i.attr("src",d),r.attr("href",d)),"display: none;"===e(".qtmplayer__cover img").attr("style")?r.addClass("proradio-hidden"):r.removeClass("proradio-hidden")):r.addClass("proradio-hidden")}a&&clearInterval(a),r=e(".proradio-customplayer__art"),i=e(".proradio-customplayer__art img"),p(),a=setInterval((function(){p()}),5e3)}}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-customplayer.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.countDown.init(),e.ProRadioMainObj.fn.customStylesHead()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-event-countdown.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.countDown.init()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-event-featured.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.countDown.init()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-event-list.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-post-carousel.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.fn.masonry?(e("[data-proradio-loadmore]").css({"pointer-events":"none"}),jQuery(".proradio-elementor-post-masonry .qt-masonry").imagesLoaded().delay(1e3).then((function(){jQuery(".proradio-elementor-post-masonry .qt-masonry").masonry({itemSelector:".qt-ms-item",columnWidth:".qt-ms-item"})}))):console.log("Missing Masonry JS")}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-post-masonry.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-post-slider.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.qtmplayerRadioFeedObj&&console.log("Missing player script");try{"object"==typeof e.qtmplayerRadioFeedObj&&void 0!==e.qtPlayerObj.songdata&&(console.log("----------------"+e.qtPlayerObj.songdata),e.qtmplayerRadioFeedObj.fn.pushFeed(e.qtPlayerObj.songdata))}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-radiofeed.default",e)}))}(jQuery),function(o){var e=function(o,e){e("#proradio-body").hasClass("elementor-editor-active")&&e.ProRadioMainObj.fn.tabsComponent()};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-schedule.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{if(void 0!==n)clearTimeout(n);else var n=!1;n=setTimeout((function(){e.ProRadioMainObj.fn.customStylesHead(),e(".proradio-txtfx").addClass("proradio-active"),e(".proradio-anim").addClass("proradio-active")}),800)}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-section-caption.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")&&("object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script"),e("#proradio-body").hasClass("elementor-editor-active")))try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-sponsors.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-upcoming-shows-carousel.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-upcoming-shows-slider.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.fn.qtDynamicMaps(),e.fn.qtPlacesInit(),e.fn.QtPlacesStyles()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-qtplaces.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active"))try{"function"==typeof e.PrSideKickFrontend.fn.init&&e.PrSideKickFrontend.fn.init(e.PrSideKickFrontend)}catch(o){console.log(o)}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-songs-list.default",e)}))}(jQuery),function(o){var e=function(o,e){if(e("#proradio-body").hasClass("elementor-editor-active"))try{"function"==typeof e.PrSideKickFrontend.fn.init&&(console.log("Init song slider"),e.PrSideKickFrontend.fn.init(e.PrSideKickFrontend))}catch(o){console.log(o)}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-songs-slider.default",e)}))}(jQuery),function(o){var e=function(o,e){if(console.log("Init custom slideshow"),e("#proradio-body").hasClass("elementor-editor-active")){"object"!=typeof e.ProRadioMainObj&&console.log("Missing main theme script");try{e.ProRadioMainObj.fn.owlCarousel()}catch(o){console.log(o)}}};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-custom-slideshow.default",e)}))}(jQuery),function(o){function e(){o(".proradio-clock").each((function(){var e=o(this).data("timezone")||"UTC",n=parseInt(o(this).data("timeformat"),10)||24,t=o(this).data("monthformat")||"number",r=12===n,i=new Date,a=o(this).data("locale")||void 0,d="";"text"===t?d=new Intl.DateTimeFormat(a,{timeZone:e,month:"long"}).format(i):d=new Intl.DateTimeFormat(a,{timeZone:e,month:"2-digit"}).format(i);o(this).find(".proradio-clock__month").text(d);var l={timeZone:e,year:"numeric",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:r},s=new Intl.DateTimeFormat(a,l).formatToParts(i),c={};s.forEach((function(o){"literal"!==o.type&&(c[o.type]=o.value)})),o(this).find(".proradio-clock__year").text(c.year),o(this).find(".proradio-clock__day").text(c.day),o(this).find(".proradio-clock__weekday").text(c.weekday),o(this).find(".proradio-clock__hour").text(c.hour),o(this).find(".proradio-clock__minutes").text(c.minute),o(this).find(".proradio-clock__seconds").text(c.second),r?o(this).find(".proradio-clock__ampm").text(c.dayPeriod):o(this).find(".proradio-clock__ampm").empty()}))}jQuery(document).ready((function(o){e(),setInterval(e,1e3)}));var n=function(o,n){e(),setInterval(e,1e3)};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/proradio-elementor-clock.default",n)}))}(jQuery),function(o){var e=function(e,n,t){o.ProRadioMainObj&&(e.find(".proradio-bgimg__parallax").remove(),e.prepend('<div class="proradio-bgimg proradio-bgimg__parallax" data-proradio-parallax><img data-stellar-ratio="'+t+'" src="'+n+'"></div>'),o.ProRadioMainObj.fn.qtParallax())},n=function(o){var n=o.css("background-image");if("yes"===o.css("--proradio-section-parallax")&&n&&"none"!==n){n=n.replace("url(","").replace(")","").replace(/\"/gi,"");var t=parseInt(o.css("--proradio-section-parallax-speed"))/100;o.css({"background-position":"-1000000px -1000000px ","background-repeat":"no-repeat"}),o.find(".proradio-bgimg__parallax")?o.find(".proradio-bgimg__parallax img").attr("src")===n&&o.find(".proradio-bgimg__parallax img").data("stellar-ratio")===t||e(o,n,t):e(b,n,t)}else o.removeClass("proradio-parallax-section").find(".proradio-bgimg__parallax").remove()},t=function(o,t){if(t("body").hasClass("elementor-editor-active"))return n(o),void setInterval((function(){n(o)}),2e3);o.hasClass("proradio-section-parallax")&&setTimeout((function(){var n=o.data("proradio-section-parallax-img"),t=o.data("proradio-section-parallax-speed");n&&"none"!==n&&(t=parseInt(t)/100,e(o,n,t))}),800)};o(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/section",(function(o,e){t(o,e),new ResizeObserver(()=>{t(o,e)}).observe(document.querySelector("body"))})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(function(o,e){t(o,e),new ResizeObserver(()=>{t(o,e)}).observe(document.querySelector("body"))}))}))}(jQuery),function(o){var e=o("#proradio-components-particle-url").data("proradio-component-url"),n=function(o,n){var t=o.css("--proradio-section-particles"),r="proradio-particles-box"+o.data("id");if(!t||void 0===t||"disabled"===t)return o.data("proradio-section-particles-style",""),void o.find(".proradio-particles-js").remove();o.find(".proradio-particles-js").data("proradio-particles-style")!==t&&(o.find(".proradio-particles-js").remove(),o.addClass("proradio-particles-js-container").append('<div class="proradio-particles-js" id="'+r+'" data-proradio-particles-style="'+t+'"></div>').promise().done((function(){particlesJS.load(r,e+t+".json")})))},t=function(o,t){if(t("body").hasClass("elementor-editor-active"))n(o),setInterval((function(){n(o)}),2e3);else if(o.hasClass("proradio-particles-js-container")){var r,i=o.data("proradio-particles-style");o.data("id")?r="proradio-particles-box"+o.data("id"):(o.uniqueId(),r=o.attr("id")),i&&"disabled"!==i&&setTimeout((function(){o.append('<div class="proradio-particles-js" id="'+r+'" data-proradio-particles-style="'+i+'"></div>').promise().done((function(){particlesJS.load(r,e+i+".json")}))}),100)}};o(window).on("elementor/frontend/init",(function(){"undefined"!=typeof particlesJS&&(elementorFrontend.hooks.addAction("frontend/element_ready/section",(function(o,e){t(o,e)})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(function(o,e){t(o,e)})))}))}(jQuery),function(o){"use strict";var e={en:"Edit in Customizer",es:"Editar en el Personalizador",fr:"Modifier dans le personnalisateur",de:"Im Customizer bearbeiten",it:"Modifica nel Personalizzatore",pt:"Editar no Personalizador",nl:"Bewerken in de Customizer",ru:"Редактировать в Настройщике",ja:"カスタマイザーで編集",zh:"在自定义器中编辑"};function n(){var o,n,t=(o=document.documentElement&&document.documentElement.lang||navigator.languages&&navigator.languages[0]||navigator.language||"en","pt"===(n=(o=(o||"en").toLowerCase().replace("_","-")).split("-")[0])?"pt":"zh"===n?"zh":e[n]?n:"en");return e[t]||e.en}jQuery((function(){if(o("body").hasClass("elementor-editor-active")&&(window.elementor&&elementor.config&&elementor.config.document?elementor.config.document.id:null)){var e=function(o){try{var e=new URL(o);return e.protocol=window.location.protocol,e.toString()}catch(e){return o}}(function(){try{var o=elementor.config.document;return o.urls&&o.urls.permalink||o.permalink||window.location.origin+"/?p="+o.id}catch(o){return window.location.origin+"/"}}());o("#proradio-headerbar, #proradio-footer").each((function(){var t,r,i,a="proradio-headerbar"===this.id?"proradio_header":"proradio_footer",d=(t=e,r={section:a},i=("string"==typeof window.ajaxurl?window.ajaxurl.replace(/admin-ajax\.php.*/,"customize.php"):window.location.origin+"/wp-admin/customize.php")+"?url="+encodeURIComponent(t),r&&r.section&&(i+="&autofocus[section]="+encodeURIComponent(r.section)),i),l=n();o(this).append('<a href="'+d+'" class="proradio-elementor-editincustomizer" data-url="'+d+'">'+l+"</a>")})),o(document).on("click",".proradio-elementor-editincustomizer",(function(e){e.preventDefault();var n=o(this).data("url"),t=window.top||window.parent;if(!t.open(n,"_blank","noopener")){var r=t.document.createElement("a");r.href=n,r.target="_blank",r.rel="noopener",t.document.body.appendChild(r),r.click(),t.document.body.removeChild(r)}}))}}))}(jQuery);