PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/watchpalace.kerihosting.com/wp-content/plugins/wp-optimize/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/watchpalace.kerihosting.com/wp-content/plugins/wp-optimize/js/minify-3-3-1.min.js

!function(e){function t(t){var n=e(t).serializeArray().reduce(i,{});return e(t).find('input[type="checkbox"]').each(function(t){var i=e(this).prop("name");if(i.includes("[]")){if(!e(this).is(":checked"))return;var s=i.replace("[]","");n[s]||(n[s]=[]),n[s].push(e(this).val())}else n[i]=e(this).is(":checked")?"true":"false"}),n}function i(e,t){return t.name.includes("[]")?e:(e[t.name]=t.value,e)}var n=window.wp_optimize||{},s=n.send_command,a=wpoptimize.refresh_frequency||3e4,o=WP_Optimize_Heartbeat(),c=[];if(!s)return void console.error("WP-Optimize Minify: wp_optimize.send_command is required.");var l={};l.init=function(){function i(e){return e.data("url")}function a(t){var i=e("#exclude_js"),n=i.val();n+=t+"\n",i.val(n)}function l(t){var i=e("#exclude_css"),n=i.val();n+=t+"\n",i.val(n)}function p(t){var i=t.data("url"),n=e("#async_js"),s=n.val();s+=i+"\n",n.val(s),d("js"),f(t)}function r(t){var i=t.data("url"),n=e("#async_css"),s=n.val();s+=i+"\n",n.val(s),d("css"),f(t)}function d(t){e("#wp-optimize-nav-tab-wpo_minify-"+t+"-contents form").data("need_saving",!0)}function f(t){t.closest(".wpo_min_log").prev().removeClass("hidden").addClass("updated").slideDown(),t.text(wpoptimize.added_to_list),t.removeClass("exclude"),t.parent().addClass("disable-list-item"),t.replaceWith(e("<span>"+t.text()+"</span>"))}function u(t){e('input[name="enable_defer_js"]').each(function(t,i){e(i).closest("fieldset").removeClass("selected").find(".defer-js-settings").slideUp("fast")}),e('input[name="enable_defer_js"]:checked').closest("fieldset").addClass("selected").find(".defer-js-settings").slideDown("fast")}function _(){var e=o.add_agent({command:"get_minify_preload_status",callback:m});null!==e&&c.push(e)}function m(e){e.done?(g.val(wpoptimize.run_now),g.data("running",!1)):(g.val(wpoptimize.cancel),g.data("running",!0),_()),v.text(e.message),h(e)}function h(t){e("#wpo_min_cache_size").text(t.size),e("#wpo_min_cache_total_size").text(t.total_size)}var w=this;this.enabled=!1,e(document).on("wp-optimize/minify/toggle-status",function(t,i){i.hasOwnProperty("enabled")&&(e('[data-whichpage="wpo_minify"]').toggleClass("is-enabled",i.enabled),w.enabled=i.enabled,w.enabled&&w.getFiles())}),e(".purge_minify_cache").on("click",function(t){t.preventDefault(),e.blockUI(),s("purge_minify_cache",null,function(e){e.hasOwnProperty("files")&&(w.updateFilesLists(e.files),w.updateStats(e.files))}).always(function(){e.unblockUI()})}),e(".purge_all_minify_cache").on("click",function(){e.blockUI(),s("purge_all_minify_cache",null,function(e){e.hasOwnProperty("files")&&(w.updateFilesLists(e.files),w.updateStats(e.files))}).always(function(){e.unblockUI()})}),e(".minify_increment_cache").on("click",function(){e.blockUI(),s("minify_increment_cache",null,function(e){e.hasOwnProperty("files")&&(w.updateFilesLists(e.files),w.updateStats(e.files))}).always(function(){e.unblockUI()})}),e("#wp-optimize-nav-tab-wpo_minify-status-contents form :input, #wp-optimize-nav-tab-wpo_minify-js-contents form :input, #wp-optimize-nav-tab-wpo_minify-css-contents form :input, #wp-optimize-nav-tab-wpo_minify-font-contents form :input, #wp-optimize-nav-tab-wpo_minify-settings-contents form :input, #wp-optimize-nav-tab-wpo_minify-advanced-contents form :input").on("change",function(){e(this).closest("form").data("need_saving",!0)}),e("input[type=checkbox].wpo-save-setting").on("change",function(t){var i=e(this),n=i.prop("checked"),a=i.prop("name"),o={};o[a]=n,e.blockUI(),s("save_minify_settings",o,function(e){e.success?(i.trigger("wp-optimize/minify/saved_setting"),e.hasOwnProperty("files")&&(w.updateFilesLists(e.files),w.updateStats(e.files))):console.log("Settings not saved",o)}).always(function(){e.unblockUI()})}),e("#wpo_min_enable_minify").on("wp-optimize/minify/saved_setting",function(){this.enabled=e(this).prop("checked"),e(document).trigger("wp-optimize/minify/toggle-status",{enabled:this.enabled})}),e("#wpo_min_enable_minify").on("wp-optimize/minify/saved_setting",function(){e(this).closest(".wpo_section").toggleClass("wpo-feature-is-disabled",!e(this).is(":checked"))}),e("#wpo_min_enable_minify_css, #wpo_min_enable_minify_js").on("wp-optimize/minify/saved_setting",function(){e('#wp-optimize-nav-tab-wrapper__wpo_minify a[data-tab="'+e(this).data("tabname")+'"] span.disabled').toggleClass("hidden",e(this).is(":checked"))}).each(function(){e('#wp-optimize-nav-tab-wrapper__wpo_minify a[data-tab="'+e(this).data("tabname")+'"] span.disabled').toggleClass("hidden",e(this).is(":checked"))}),e("#wpo_min_enable_minify_debug").on("wp-optimize/minify/saved_setting",function(){e.blockUI({message:"<h1>"+wpoptimize.page_refresh+"</h1>"}),location.href=e("#wp-optimize-nav-tab-wpo_minify-advanced").prop("href")}),e("#wpo_min_edit_default_exclutions").on("wp-optimize/minify/saved_setting",function(){e(".wpo-minify-default-exclusions").toggleClass("hidden",!e(this).prop("checked"))}),e(".wp-optimize-save-minify-settings").on("click",function(i){i.preventDefault();var a=e(this),o=a.next(),c=o.next();o.show(),e.blockUI();var l={},p=e('[data-whichpage="wpo_minify"] .wp-optimize-nav-tab-contents form');p.each(function(){var i=e(this);!0===i.data("need_saving")&&(l=Object.assign(l,t(i)),i.data("need_saving",!1))}),s("save_minify_settings",l,function(t){t.hasOwnProperty("error")?(console.log(t.error),n.notices.show_notice(t.success,t.error)):e(".wpo-error__enabling-cache").addClass("wpo_hidden").find("p").text(""),t.hasOwnProperty("files")&&(w.updateFilesLists(t.files),w.updateStats(t.files)),o.hide(),c.show(),setTimeout(function(){c.fadeOut("slow",function(){c.hide()})},5e3)}).always(function(){e.unblockUI()})}),e(".wp-optimize-minify-status-information-notice").on("click",".notice-dismiss",function(e){e.preventDefault(),s("hide_minify_notice")}),e("#wpo_min_jsprocessed, #wpo_min_cssprocessed").on("click",".log",function(t){t.preventDefault(),e(this).nextAll(".wpo_min_log").slideToggle("fast")}),e("#wpo_min_jsprocessed, #wpo_min_cssprocessed").on("click",".delete-file",function(t){t.preventDefault();var i=e(this).data("filename");return""===i||void 0===i?(alert(wpoptimize.cache_file_not_found),!1):(e.blockUI(),void s("delete_minify_cache_file",i,function(e){""!==e.files&&(w.updateFilesLists(e.files),w.updateStats(e.files)),""!==e.result&&alert(e.result),""!==e.error&&alert(e.error)}).always(function(){e.unblockUI()}))}),e("#wpo_min_jsprocessed").on("click",".exclude",function(t){t.preventDefault();var n=e(this),s=i(n);a(s),d("js"),f(n)}),e("#wpo_min_cssprocessed").on("click",".exclude",function(t){t.preventDefault();var n=e(this),s=i(n);l(s),d("css"),f(n)}),e(".wpo-minify-download-metas-button").on("click",function(e){e.preventDefault(),s("get_minify_meta_files",null,function(e){if(e.hasOwnProperty("error"))return void alert(e.error);var t=document.body.appendChild(document.createElement("a"));t.setAttribute("download","combined_metas.json"),t.setAttribute("style","display:none;"),t.setAttribute("href","data:text/json;charset=UTF-8,"+encodeURIComponent(JSON.stringify(e.combined_metas))),t.click()})}),e("#wpo_min_jsprocessed").on("click",".defer",function(t){t.preventDefault(),p(e(this))}),e("#wpo_min_cssprocessed").on("click",".async",function(t){t.preventDefault(),r(e(this))}),e("#wp-optimize-minify-advanced").on("click",".save-exclusions",function(t){t.preventDefault(),e(".wp-optimize-save-minify-settings").first().trigger("click")}),this.enabled=e("#wpo_min_enable_minify").prop("checked"),e(document).trigger("wp-optimize/minify/toggle-status",{enabled:this.enabled}),this.enabled||e('#wp-optimize-nav-tab-wrapper__wpo_minify a[data-tab="status"]').is(".nav-tab-active")||e('#wp-optimize-nav-tab-wrapper__wpo_minify a[data-tab="status"]').trigger("click"),e('input[name="enable_defer_js"]').on("change",u),u();var g=e("#wp_optimize_run_minify_preload"),v=e("#wp_optimize_preload_minify_status");return g.on("click",function(){var t=e(this),i=t.data("running"),n=v.text();if(t.prop("disabled",!0),i){for(t.data("running",!1);agent_id=c.shift();)o.cancel_agent(agent_id);s("cancel_minify_preload",null,function(e){e&&e.hasOwnProperty("message")&&v.text(e.message)}).always(function(){t.val(wpoptimize.run_now),t.prop("disabled",!1)})}else v.text(wpoptimize.starting_preload),t.data("running",!0),s("run_minify_preload",null,null,!0,{timeout:3e3}).always(function(e){try{var i=wpo_parse_json(e)}catch(s){}if(i&&i.error){var a=wpoptimize.error_unexpected_response;return"function"!=typeof i.error?a=i.error:i.status&&(a=i.status+": "+i.statusText),alert(a),v.text(n),t.prop("disabled",!1),void t.data("running",!1)}v.text(wpoptimize.loading_urls),t.val(wpoptimize.cancel),t.prop("disabled",!1),_()})}),g.data("running")&&_(),this},l.getFiles=function(){if(this.enabled){var e={stamp:(new Date).getTime()};s("get_minify_cached_files",e,function(e){l.updateFilesLists(e),l.updateStats(e)}),a&&setTimeout(l.getFiles.bind(this),a)}},l.updateFilesLists=function(t){if(null!==t){var i=[];t.js.length>0&&e(t.js).each(function(){i.push(this.uid),0==e("#"+this.uid).length&&e("#wpo_min_jsprocessed ul.processed").append('\t\t\t\t\t<li id="'+this.uid+'">\t\t\t\t\t\t<span class="filename"><a href="'+this.file_url+'" target="_blank">'+this.filename+"</a> ("+this.fsize+')</span>\t\t\t\t\t\t<a href="#" class="log">'+wpoptimize.toggle_info+'</a>\t\t\t\t\t\t<a href="#" class="delete-file" data-filename="'+this.filename+'">'+wpoptimize.delete_file+'</a>\t\t\t\t\t\t<div class="hidden save_notice">\t\t\t\t\t\t\t<p>'+wpoptimize.added_notice+'</p>\t\t\t\t\t\t\t<p><button class="button button-primary save-exclusions">'+wpoptimize.save_notice+'</button></p>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="hidden wpo_min_log">'+this.log+"</div>\t\t\t\t\t</li>\t\t\t\t")}),e("#wpo_min_jsprocessed ul.processed .no-files-yet").toggle(!t.js.length),t.css.length>0&&e(t.css).each(function(){i.push(this.uid),0==e("#"+this.uid).length&&e("#wpo_min_cssprocessed ul.processed").append('\t\t\t\t\t<li id="'+this.uid+'">\t\t\t\t\t\t<span class="filename"><a href="'+this.file_url+'" target="_blank">'+this.filename+"</a> ("+this.fsize+')</span>\t\t\t\t\t\t<a href="#" class="log">'+wpoptimize.toggle_info+'</a>\t\t\t\t\t\t<a href="#" class="delete-file" data-filename="'+this.filename+'">'+wpoptimize.delete_file+'</a>\t\t\t\t\t\t<div class="hidden save_notice">\t\t\t\t\t\t\t<p>'+wpoptimize.added_to_list+'</p>\t\t\t\t\t\t\t<p><button class="button button-primary save-exclusions">'+wpoptimize.save_notice+'</button></p>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="hidden wpo_min_log">'+this.log+"</div>\t\t\t\t\t</li>\t\t\t\t")}),e("#wpo_min_cssprocessed ul.processed .no-files-yet").toggle(!t.css.length),e("#wpo_min_jsprocessed ul.processed > li, #wpo_min_cssprocessed ul.processed > li").each(function(){-1==jQuery.inArray(e(this).attr("id"),i)&&(e(this).is(".no-files-yet")||e(this).remove())})}},l.updateStats=function(t){t.cachesize.length>0&&(e("#wpo_min_cache_size").html(this.enabled?t.cachesize:wpoptimize.no_minified_assets),e("#wpo_min_cache_total_size").html(this.enabled?t.total_cache_size:wpoptimize.no_minified_assets),e("#wpo_min_cache_time").html(this.enabled?t.cacheTime:"-"),e("#wpo_min_cache_path").html(t.cachePath))},n.minify_settings=function(){var i=e('[data-whichpage="wpo_minify"] .wp-optimize-nav-tab-contents form'),n={};return i.each(function(){var i=e(this);n=Object.assign(n,t(i))}),n},n.minify=l}(jQuery);