Plugin Directory

Changeset 3811939


Ignore:
Timestamp:
11/19/2026 04:02:01 PM (33 hours ago)
Author:
RealMag777
Message:

Security fix. Thanks to Santh (Patchstack)

Location:
woocommerce-products-filter/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-products-filter/trunk/index.php

    r3800257 r3811939  
    88        Author: realmag777
    99        Author URI: https://pluginus.net/
    10         Version: 1.4.8
     10        Version: 1.4.9
    1111        Requires PHP: 7.4
    1212        Tags: filter,search,woocommerce,woocommerce filter,woocommerce product filter,woocommerce products filter,products filter,product filter,filter of products,filter for products,filter for woocommerce
    … …  
    111111define( 'WOOF_PLUGIN_NAME', plugin_basename( __FILE__ ) );
    112112define( 'WOOF_EXT_PATH', WOOF_PATH . 'ext/' );
    113 define( 'WOOF_VERSION', '1.4.8' );
     113define( 'WOOF_VERSION', '1.4.9' );
    114114// define('WOOF_VERSION', uniqid('woof-')); //for dev only to avoid js/css cache
    115115define( 'WOOF_MIN_WOOCOMMERCE_VERSION', '6.0' );
    … …  
    132132HUSKY_MCP::init();
    133133
    134 // 09-11-2026
     134// 19-11-2026
    135135if ( ! class_exists( 'HUSKY' ) ) {
    136136final class HUSKY {
  • woocommerce-products-filter/trunk/js/front.js

    r3736657 r3811939  
    143143    //***
    144144
    145     jQuery('body').on('click', '.woof_open_hidden_li_btn', function () {
     145    jQuery('body').on('click', '.woof .woof_open_hidden_li_btn', function () {
    146146        var state = jQuery(this).data('state');
    147147        var type = jQuery(this).data('type');
    … …  
    161161                        .attr('src', jQuery(this).data('opened'));
    162162            } else {
    163                 jQuery(this).html(jQuery(this).data('opened'));
     163                jQuery(this).text(jQuery(this).data('opened'));
    164164            }
    165165
    … …  
    21292129
    21302130function woof_init_tooltip() {
    2131     var tooltips = jQuery('.woof_tooltip_header');
    2132 
    2133     if (tooltips.length) {
    2134         jQuery(tooltips).tooltipster({
     2131    // Only tooltips inside the plugin's own filter markup
     2132    jQuery('.woof .woof_tooltip_header').each(function () {
     2133        // data-tooltip-content must be a plain "#id", content is passed explicitly
     2134        var ref = String(jQuery(this).attr('data-tooltip-content') || '');
     2135        if (!/^#[\w-]+$/.test(ref)) {
     2136            return;
     2137        }
     2138        var el = document.getElementById(ref.slice(1));
     2139        if (!el) {
     2140            return;
     2141        }
     2142        jQuery(this).tooltipster({
    21352143            theme: 'tooltipster-noir',
    21362144            side: 'right',
    21372145            trigger: 'click',
     2146            content: jQuery(el)
    21382147        });
    2139     }
    2140 }
     2148    });
     2149}
     2150
    21412151function woof_before_ajax_form_redrawing() {
    21422152    if (woof_select_type == 'selectwoo') {
  • woocommerce-products-filter/trunk/js/front_comprssd.js

    r3736657 r3811939  
    1 /* https://jscompress.com/  3.4.2 */
    2 "use strict";function woof_init_checkboxes(){if("none"!=icheck_skin){jQuery(".woof_checkbox_term").iCheck("destroy");let e=".woof_checkbox_term",o=jQuery(e).parents(".woof_redraw_zone").eq(0).data("icheck-skin");o?(o=o.split("_"),jQuery(e).iCheck({checkboxClass:"icheckbox_"+o[0]+"-"+o[1]})):jQuery(e).iCheck({checkboxClass:"icheckbox_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_checkbox_term").off("ifChecked"),jQuery(".woof_checkbox_term").on("ifChecked",function(e){jQuery(this).attr("checked",!0),woof_checkbox_process_data(this,!0)}),jQuery(".woof_checkbox_term").off("ifUnchecked"),jQuery(".woof_checkbox_term").on("ifUnchecked",function(e){jQuery(this).attr("checked",!1),woof_checkbox_process_data(this,!1)}),jQuery(".woof_checkbox_label").off(),jQuery("label.woof_checkbox_label").on("click",function(){if(jQuery(this).prev().find(".woof_checkbox_term").is(":disabled"))return!1;void 0!==jQuery(this).prev().find(".woof_checkbox_term").attr("checked")?(jQuery(this).prev().find(".woof_checkbox_term").trigger("ifUnchecked"),jQuery(this).prev().removeClass("checked")):(jQuery(this).prev().find(".woof_checkbox_term").trigger("ifChecked"),jQuery(this).prev().addClass("checked"))})}else jQuery(".woof_checkbox_term").on("change",function(e){jQuery(this).is(":checked")?(jQuery(this).attr("checked",!0),woof_checkbox_process_data(this,!0)):(jQuery(this).attr("checked",!1),woof_checkbox_process_data(this,!1))})}function woof_checkbox_process_data(e,o){var r=jQuery(e).data("tax"),t=jQuery(e).attr("name");woof_checkbox_direct_search(jQuery(e).data("term-id"),t,r,o)}function woof_checkbox_direct_search(e,o,r,t){var _="",i=!0;if(t)r in woof_current_values?woof_current_values[r]=woof_current_values[r]+","+o:woof_current_values[r]=o,i=!0;else{_=(_=woof_current_values[r]).split(",");var a=[];jQuery.each(_,function(e,r){r!=o&&a.push(r)}),(_=a).length?woof_current_values[r]=_.join(","):delete woof_current_values[r],i=!1}jQuery(".woof_checkbox_term_"+e).attr("checked",i),woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_mselects(){if("chosen"==woof_select_type)jQuery("select.woof_mselect").chosen();else if("selectwoo"==woof_select_type)try{jQuery("select.woof_mselect").selectWoo()}catch(e){console.log(e)}jQuery(".woof_mselect").change(function(e){var o=jQuery(this).val(),r=jQuery(this).attr("name");if("chosen"==woof_select_type){var t=jQuery(this).chosen().val();jQuery(".woof_mselect[name="+r+"] option:selected").removeAttr("selected"),jQuery(".woof_mselect[name="+r+"] option").each(function(e,o){var r=jQuery(this).val();-1!==jQuery.inArray(r,t)&&jQuery(this).prop("selected",!0)})}return woof_mselect_direct_search(r,o),!0});var e=jQuery(".woof_hide_empty_container_ms");jQuery.each(e,function(e,o){var r=jQuery(o).val();r&&jQuery(r).hide()})}function woof_mselect_direct_search(e,o){var r=[];jQuery(".woof_mselect[name="+e+"] option:selected").each(function(e,o){r.push(jQuery(this).val())}),(r=(r=r.filter(function(e,o){return r.indexOf(e)==o})).join(",")).length?woof_current_values[e]=r:delete woof_current_values[e],woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_radios(){if("none"!=icheck_skin){jQuery(".woof_radio_term").iCheck("destroy");let e=jQuery(".woof_radio_term").parents(".woof_redraw_zone").eq(0).data("icheck-skin");e?(e=e.split("_"),jQuery(".woof_radio_term").iCheck({radioClass:"iradio_"+e[0]+"-"+e[1]})):jQuery(".woof_radio_term").iCheck({radioClass:"iradio_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_radio_term").off("ifChecked"),jQuery(".woof_radio_term").on("ifChecked",function(e){jQuery(this).attr("checked",!0),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_term_reset").eq(0).addClass("woof_radio_term_reset_visible");var o=jQuery(this).data("slug"),r=jQuery(this).attr("name");woof_radio_direct_search(jQuery(this).data("term-id"),r,o)})}else jQuery(".woof_radio_term").on("change",function(e){jQuery(this).attr("checked",!0);var o=jQuery(this).data("slug"),r=jQuery(this).attr("name"),t=jQuery(this).data("term-id");jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_term_reset").eq(0).addClass("woof_radio_term_reset_visible"),woof_radio_direct_search(t,r,o)});jQuery(".woof_radio_term_reset").on("click",function(){return woof_radio_direct_search(jQuery(this).data("term-id"),jQuery(this).attr("data-name"),0),jQuery(this).parents(".woof_list").find(".checked").removeClass("checked"),jQuery(this).parents(".woof_list").find("input[type=radio]").removeAttr("checked"),jQuery(this).removeClass("woof_radio_term_reset_visible"),!1})}function woof_radio_direct_search(e,o,r){jQuery.each(woof_current_values,function(e,r){e!=o||delete woof_current_values[o]}),0!=r?(woof_current_values[o]=r,jQuery("a.woof_radio_term_reset_"+e).hide(),jQuery("woof_radio_term_"+e).filter(":checked").parents("li").find("a.woof_radio_term_reset").show(),jQuery("woof_radio_term_"+e).parents("ul.woof_list").find("label").css({fontWeight:"normal"}),jQuery("woof_radio_term_"+e).filter(":checked").parents("li").find("label.woof_radio_label_"+r).css({fontWeight:"bold"})):(jQuery("a.woof_radio_term_reset_"+e).hide(),jQuery("woof_radio_term_"+e).attr("checked",!1),jQuery("woof_radio_term_"+e).parent().removeClass("checked"),jQuery("woof_radio_term_"+e).parents("ul.woof_list").find("label").css({fontWeight:"normal"})),woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_selects(){"chosen"==woof_select_type?jQuery("select.woof_select, select.woof_price_filter_dropdown").chosen():"selectwoo"==woof_select_type&&jQuery("select.woof_select, select.woof_price_filter_dropdown").selectWoo(),jQuery(".woof_select").change(function(){var e=jQuery(this).val();woof_select_direct_search(this,jQuery(this).attr("name"),e)});var e=jQuery(".woof_hide_empty_container");jQuery.each(e,function(e,o){var r=jQuery(o).val();r&&jQuery(r).hide()})}function woof_select_direct_search(e,o,r){jQuery.each(woof_current_values,function(e,r){e!=o||delete woof_current_values[o]}),0!=r&&(woof_current_values[o]=r),woof_ajax_page_num=1,(woof_autosubmit||0==jQuery(e).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}var woof_redirect="",woof_reset_btn_action=!1,woof_additional_fields={};if(jQuery(function(){if("string"==typeof woof_current_values)try{woof_current_values=JSON.parse(woof_current_values)}catch(e){woof_current_values={}}(null==woof_current_values||Array.isArray(woof_current_values))&&(woof_current_values={})}),void 0===woof_lang_custom)var woof_lang_custom={};/*!!important*/function woof_redirect_init(){try{if(jQuery(".woof").length&&void 0!==jQuery(".woof").val())return(woof_redirect=jQuery(".woof").eq(0).data("redirect")).length>0&&(woof_shop_page=woof_current_page_link=woof_redirect),woof_redirect}catch(e){console.log(e)}}function woof_init_orderby(){jQuery("body").on("submit","form.woocommerce-ordering",function(){if(!jQuery("#is_woo_shortcode").length)return!1}),jQuery("body").on("change","form.woocommerce-ordering select.orderby",function(){if(!jQuery("#is_woo_shortcode").length)return woof_current_values.orderby=jQuery(this).val(),woof_ajax_page_num=1,woof_submit_link(woof_get_submit_link(),0),!1})}function woof_init_reset_button(){jQuery("body").on("click",".woof_reset_search_form",function(){if(woof_ajax_page_num=1,woof_ajax_redraw=0,woof_reset_btn_action=!0,woof_is_permalink)woof_current_values={},woof_submit_link(woof_get_submit_link().split("page/")[0]);else{var e=woof_shop_page;woof_current_values.hasOwnProperty("page_id")&&(e=location.protocol+"//"+location.host+"/?page_id="+woof_current_values.page_id,woof_current_values={page_id:woof_current_values.page_id},woof_get_submit_link()),woof_submit_link(e),woof_is_ajax&&(history.pushState({},"",e),woof_current_values.hasOwnProperty("page_id")?woof_current_values={page_id:woof_current_values.page_id}:woof_current_values={})}return!1})}function woof_init_pagination(){1===woof_is_ajax&&jQuery("body").on("click",".woocommerce-pagination a.page-numbers",function(){var e,o,r=jQuery(this).attr("href");return woof_ajax_first_done?(void 0!==(e=r.split("paged="))[1]?woof_ajax_page_num=parseInt(e[1]):woof_ajax_page_num=1,void 0!==(o=r.split("product-page="))[1]&&(woof_ajax_page_num=parseInt(o[1]))):(void 0!==(e=r.split("page/"))[1]?woof_ajax_page_num=parseInt(e[1]):woof_ajax_page_num=1,void 0!==(o=r.split("product-page="))[1]&&(woof_ajax_page_num=parseInt(o[1]))),woof_submit_link(woof_get_submit_link(),0),!1})}function woof_init_search_form(){woof_init_checkboxes(),woof_init_mselects(),woof_init_radios(),woof_price_filter_radio_init(),woof_init_selects(),null!==woof_ext_init_functions&&jQuery.each(woof_ext_init_functions,function(type,func){eval(func+"()")}),jQuery(".woof_submit_search_form").on("click",function(){return woof_ajax_redraw&&(woof_ajax_redraw=0,woof_is_ajax=0),woof_submit_link(woof_get_submit_link()),!1}),jQuery("ul.woof_childs_list").parent("li").addClass("woof_childs_list_li"),woof_remove_class_widget(),woof_checkboxes_slide(),document.dispatchEvent(new CustomEvent("woof_init_search_form",{detail:{}}))}"undefined"!=typeof woof_ext_filter_titles&&(woof_lang_custom=Object.assign({},woof_lang_custom,woof_ext_filter_titles)),jQuery(function(e){jQuery("body").append('<div id="woof_html_buffer" class="woof_info_popup" style="display: none;"></div>'),jQuery.extend(jQuery.fn,{within:function(e){return this.filter(function(){return jQuery(this).closest(e).length})}});let o=document.querySelectorAll(".woof[data-slug]");o.length&&o.forEach(e=>{e.dataset.slug.length>0&&(swoof_search_slug=e.dataset.slug)}),jQuery("#woof_results_by_ajax").length>0&&(woof_is_ajax=1),woof_autosubmit=parseInt(jQuery(".woof").eq(0).data("autosubmit"),10),woof_ajax_redraw=parseInt(jQuery(".woof").eq(0).data("ajax-redraw"),10),woof_ext_init_functions=JSON.parse(woof_ext_init_functions),woof_init_native_woo_price_filter(),jQuery("body").on("price_slider_change",function(e,o,r){if(woof_autosubmit&&!woof_show_price_search_button&&jQuery(".price_slider_wrapper").length<3)jQuery(".woof .widget_price_filter form").trigger("submit");else{var t=jQuery(this).find(".price_slider_amount #min_price").val(),_=jQuery(this).find(".price_slider_amount #max_price").val();woof_current_values.min_price=t,woof_current_values.max_price=_}}),jQuery("body").on("change",".woof_price_filter_dropdown",function(){var e=jQuery(this).val();-1==parseInt(e,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price):(e=e.split("-"),woof_current_values.min_price=e[0],woof_current_values.max_price=e[1]),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}),woof_recount_text_price_filter(),jQuery("body").on("change",".woof_price_filter_txt",function(){var e=parseInt(jQuery(this).parent().find(".woof_price_filter_txt_from").val(),10),o=parseInt(jQuery(this).parent().find(".woof_price_filter_txt_to").val(),10);o<e||e<0?(delete woof_current_values.min_price,delete woof_current_values.max_price):("undefined"!=typeof woocs_current_currency&&(e=Math.ceil(e/parseFloat(woocs_current_currency.rate)),o=Math.ceil(o/parseFloat(woocs_current_currency.rate))),woof_current_values.min_price=e,woof_current_values.max_price=o),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}),jQuery("body").on("click",".woof_open_hidden_li_btn",function(){var e=jQuery(this).data("state"),o=jQuery(this).data("type");return"closed"==e?(jQuery(this).parents(".woof_list").find(".woof_hidden_term").addClass("woof_hidden_term2"),jQuery(this).parents(".woof_list").find(".woof_hidden_term").removeClass("woof_hidden_term"),"image"==o?jQuery(this).find("img").attr("src",jQuery(this).data("opened")):jQuery(this).html(jQuery(this).data("opened")),jQuery(this).data("state","opened")):(jQuery(this).parents(".woof_list").find(".woof_hidden_term2").addClass("woof_hidden_term"),jQuery(this).parents(".woof_list").find(".woof_hidden_term2").removeClass("woof_hidden_term2"),"image"==o?jQuery(this).find("img").attr("src",jQuery(this).data("closed")):jQuery(this).text(jQuery(this).data("closed")),jQuery(this).data("state","closed")),!1}),woof_open_hidden_li(),jQuery(".widget_rating_filter li.wc-layered-nav-rating a").on("click",function(){var e=jQuery(this).parent().hasClass("chosen"),o=woof_parse_url(jQuery(this).attr("href")),r=0;if(void 0!==o.query&&-1!==o.query.indexOf("min_rating")){var t=o.query.split("min_rating=");r=parseInt(t[1],10)}return jQuery(this).parents("ul").find("li").removeClass("chosen"),e?delete woof_current_values.min_rating:(woof_current_values.min_rating=r,jQuery(this).parent().addClass("chosen")),woof_submit_link(woof_get_submit_link()),!1}),jQuery("body").on("click",".woof_start_filtering_btn",function(){var e=jQuery(this).parents(".woof").data("shortcode");jQuery(this).html(woof_lang_loading),jQuery(this).addClass("woof_start_filtering_btn2"),jQuery(this).removeClass("woof_start_filtering_btn");var o={action:"woof_draw_products",page:1,shortcode:"woof_nothing",woof_shortcode:e,nonce_filter:woof_front_nonce};return jQuery.post(woof_ajaxurl,o,function(e){e=JSON.parse(e),jQuery("div.woof_redraw_zone").replaceWith(jQuery(e.form).find(".woof_redraw_zone")),woof_mass_reinit(),woof_init_tooltip()}),!1}),window.addEventListener("pageshow",function(e){(e.persisted||void 0!==window.performance&&2===window.performance.navigation.type)&&(woof_hide_info_popup(),woof_submit_link_locked=!1)});var r=window.location.href;window.onpopstate=function(e){try{if(Object.keys(woof_current_values).length){var o=r.split("?"),t="";null!=o[1]&&(t=o[1].split("#"));var _=window.location.href.split("?");if(null==_[1])var i={0:"",1:""};else i=_[1].split("#");return i[0]!=t[0]&&(woof_show_info_popup(woof_lang_loading),window.location.reload()),!1}}catch(e){console.log(e)}},woof_init_ion_sliders(),woof_init_show_auto_form(),woof_init_hide_auto_form(),woof_remove_empty_elements(),woof_unblur_filter(),woof_init_search_form(),woof_init_pagination(),woof_init_orderby(),woof_init_reset_button(),woof_init_beauty_scroll(),woof_draw_products_top_panel(),woof_shortcode_observer(),woof_init_tooltip(),woof_init_mobile_filter(),woof_is_ajax||woof_redirect_init(),woof_init_toggles()});var woof_submit_link_locked=!1;function woof_submit_link(e,o){if(!woof_submit_link_locked)if("undefined"==typeof WoofTurboMode)if(void 0===o&&(o=woof_ajax_redraw),woof_submit_link_locked=!0,woof_show_info_popup(woof_lang_loading),1!==woof_is_ajax||o)o?(r={action:"woof_draw_products",link:e,page:1,shortcode:"woof_nothing",woof_shortcode:jQuery("div.woof").eq(0).data("shortcode"),nonce_filter:woof_front_nonce},jQuery.post(woof_ajaxurl,r,function(o){woof_before_ajax_form_redrawing(),o=JSON.parse(o),jQuery("div.woof_redraw_zone").replaceWith(jQuery(o.form).find(".woof_redraw_zone")),woof_mass_reinit(),woof_submit_link_locked=!1,woof_init_tooltip(),document.dispatchEvent(new CustomEvent("woof-ajax-form-redrawing",{detail:{link:e}}))})):(setTimeout(()=>{window.location=e},100),woof_show_info_popup(woof_lang_loading));else{woof_ajax_first_done=!0;var r={action:"woof_draw_products",link:e,page:woof_ajax_page_num,shortcode:jQuery("#woof_results_by_ajax").data("shortcode"),woof_shortcode:jQuery("div.woof").data("shortcode"),nonce_filter:woof_front_nonce};jQuery.post(woof_ajaxurl,r,function(o){if(o=JSON.parse(o),woof_before_ajax_form_redrawing(),jQuery(".woof_results_by_ajax_shortcode").length){if(void 0!==o.products){jQuery("#woof_results_by_ajax").replaceWith(o.products);var r=jQuery(".woof_found_count");if(jQuery(r).show(),r.length>0){var t=jQuery("#woof_results_by_ajax").data("count");void 0!==t&&jQuery(r).text(t)}}}else void 0!==o.products&&jQuery(".woof_shortcode_output").replaceWith(o.products);void 0!==o.additional_fields&&(jQuery.each(o.additional_fields,function(e,o){void 0===woof_additional_fields[e]&&(woof_additional_fields[e]=jQuery(e)),jQuery(e).replaceWith(o)}),jQuery.each(woof_additional_fields,function(e,r){void 0===o.additional_fields[e]&&jQuery(e).replaceWith(r)})),jQuery("div.woof_redraw_zone").replaceWith(jQuery(o.form).find(".woof_redraw_zone")),woof_draw_products_top_panel(),woof_mass_reinit(),woof_submit_link_locked=!1,jQuery.each(jQuery("#woof_results_by_ajax"),function(e,o){0!=e&&jQuery(o).removeAttr("id")}),jQuery(".woof").removeClass("woof_show_filter_for_mobile"),woof_infinite(),woof_js_after_ajax_done(),woof_change_link_addtocart(),woof_init_tooltip(),document.dispatchEvent(new CustomEvent("woof-ajax-form-redrawing",{detail:{link:e}}))})}else WoofTurboMode.woof_submit_link(e)}function woof_remove_empty_elements(){jQuery.each(jQuery(".woof_container select"),function(e,o){0===jQuery(o).find("option").length&&jQuery(o).parents(".woof_container").remove()}),jQuery.each(jQuery("ul.woof_list"),function(e,o){0===jQuery(o).find("li").length&&jQuery(o).parents(".woof_container").remove()}),jQuery.each(jQuery(".woof_container .woof_list_sd"),function(e,o){0===jQuery(o).find(".woof-sd-ie").length&&jQuery(o).parents(".woof_container").remove()})}function woof_get_submit_link(){if(woof_is_ajax&&(woof_current_values.page=woof_ajax_page_num),Object.keys(woof_current_values).length>0&&jQuery.each(woof_current_values,function(e,o){e==swoof_search_slug&&delete woof_current_values[e],"s"==e&&delete woof_current_values[e],"product"==e&&delete woof_current_values[e],"really_curr_tax"==e&&delete woof_current_values[e]}),2===Object.keys(woof_current_values).length&&"min_price"in woof_current_values&&"max_price"in woof_current_values){woof_current_page_link=woof_current_page_link.replace(new RegExp(/page\/(\d+)/),"");var e=woof_current_page_link+"?min_price="+woof_current_values.min_price+"&max_price="+woof_current_values.max_price;return woof_is_ajax&&history.pushState({},"",e),e}if(0===Object.keys(woof_current_values).length)return woof_is_ajax&&history.pushState({},"",woof_current_page_link),woof_current_page_link;Object.keys(woof_really_curr_tax).length>0&&(woof_current_values.really_curr_tax=woof_really_curr_tax.term_id+"-"+woof_really_curr_tax.taxonomy);var o=woof_current_page_link+"?"+swoof_search_slug+"=1";woof_is_permalink||(woof_redirect.length>0?(o=woof_redirect+"?"+swoof_search_slug+"=1",woof_current_values.hasOwnProperty("page_id")&&delete woof_current_values.page_id):o=location.protocol+"//"+location.host+"?"+swoof_search_slug+"=1");var r=["path"];return Object.keys(woof_current_values).length>0&&jQuery.each(woof_current_values,function(e,t){"page"==e&&woof_is_ajax&&(e="paged"),"product-page"!=e&&void 0!==t&&(t.length>0||"number"==typeof t)&&-1==jQuery.inArray(e,r)&&(o=o+"&"+e+"="+t)}),o=o.replace(new RegExp(/page\/(\d+)/),""),woof_is_ajax&&history.pushState({},"",o),o}function woof_show_info_popup(e){if("default"==woof_overlay_skin)jQuery("#woof_html_buffer").text(e),jQuery("#woof_html_buffer").fadeTo(200,.9);else switch(woof_overlay_skin){case"loading-balls":case"loading-bars":case"loading-bubbles":case"loading-cubes":case"loading-cylon":case"loading-spin":case"loading-spinning-bubbles":case"loading-spokes":jQuery("body").plainOverlay("show",{progress:function(){return jQuery('<div id="woof_svg_load_container"><img style="height: 100%; width: 100%" src="'+woof_link+"img/loading-master/"+woof_overlay_skin+'.svg" alt=""></div>')}});break;default:jQuery("body").plainOverlay("show",{duration:-1})}}function woof_hide_info_popup(){"default"==woof_overlay_skin?window.setTimeout(function(){jQuery("#woof_html_buffer").fadeOut(400)},200):jQuery("body").plainOverlay("hide")}function woof_draw_products_top_panel(){woof_is_ajax&&jQuery("#woof_results_by_ajax").prev(".woof_products_top_panel").remove();var e=jQuery(".woof_products_top_panel");if(e.html(""),Object.keys(woof_current_values).length>0){e.show(),e.html("<ul></ul>"),e.find("ul").attr("class","woof_products_top_panel_ul");var o=!1;jQuery.each(woof_current_values,function(r,t){if((-1!=jQuery.inArray(r,woof_accept_array)||-1!=jQuery.inArray(r.replace("rev_",""),woof_accept_array))&&("min_price"!=r&&"max_price"!=r||!o)){"min_price"!=r&&"max_price"!=r||o||(o=!0,r="price",t=woof_lang_pricerange);var _=!1,i=jQuery("input[data-anchor='woof_n_"+r+"_all_range']").val();if(void 0!==i&&(_=!0),(t=t.toString().trim()).search(",")&&(t=t.split(",")),_)if(void 0!==woof_filter_titles[r]){var a=e.find("ul.woof_products_top_panel_ul li ul[data-container="+r+"]");a.length?a.append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i)))):e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<ul>").attr("data-container",r).append(jQuery("<li>").text(woof_filter_titles[r]+":")).append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i))))))}else e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i))));else jQuery.each(t,function(o,t){if("page"!=r&&"post_type"!=r){var _=t;if("orderby"==r)_=void 0!==woof_lang[t]?woof_lang.orderby+": "+woof_lang[t]:woof_lang.orderby+": "+t;else if("perpage"==r)_=woof_lang.perpage;else if("price"==r)_=woof_lang.pricerange;else{var i=!1;if(Object.keys(woof_lang_custom).length>0&&jQuery.each(woof_lang_custom,function(e,o){e==r&&(i=!0,_=o,"woof_sku"==r&&(_+=" "+t))}),!i){try{_=jQuery("input[data-anchor='woof_n_"+r+"_"+t+"']").val()}catch(e){console.log(e)}void 0===_&&(_=t)}}if(void 0!==woof_filter_titles[r]){var a=e.find("ul.woof_products_top_panel_ul li ul[data-container="+r+"]");a.length?a.append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_)))):e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<ul>").attr("data-container",r).append(jQuery("<li>").text(woof_filter_titles[r]+":")).append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_))))))}else e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_))))}})}})}0!=jQuery(e).find("li").length&&jQuery(".woof_products_top_panel").length?e.find("ul.woof_products_top_panel_ul").prepend(jQuery("<li>").append(jQuery("<button>").attr("class","woof_reset_button_2").append(woof_lang.clear_all))):e.hide(),jQuery(".woof_reset_button_2").on("click",function(){if(woof_ajax_page_num=1,woof_ajax_redraw=0,woof_reset_btn_action=!0,woof_is_permalink)woof_current_values={},woof_submit_link(woof_get_submit_link().split("page/")[0]);else{var e=woof_shop_page;woof_current_values.hasOwnProperty("page_id")&&(e=location.protocol+"//"+location.host+"/?page_id="+woof_current_values.page_id,woof_current_values={page_id:woof_current_values.page_id},woof_get_submit_link()),woof_submit_link(e),woof_is_ajax&&(history.pushState({},"",e),woof_current_values.hasOwnProperty("page_id")?woof_current_values={page_id:woof_current_values.page_id}:woof_current_values={})}return!1}),jQuery(".woof_remove_ppi").parent().on("click",function(e){e.preventDefault();var o=jQuery(this).data("tax"),r=jQuery(this).data("slug");if("all_range"==r)delete woof_current_values[o];else if("price"!=o){var t=woof_current_values[o];t=t.split(",");var _=[];jQuery.each(t,function(e,o){o!=r&&_.push(o)}),(t=_).length?woof_current_values[o]=t.join(","):delete woof_current_values[o]}else delete woof_current_values.min_price,delete woof_current_values.max_price;return woof_ajax_page_num=1,woof_reset_btn_action=!0,woof_submit_link(woof_get_submit_link()),jQuery(".woof_products_top_panel").find("[data-tax='"+o+"'][href='"+r+"']").hide(333),!1})}function woof_shortcode_observer(){var e=!0;(jQuery(".woof_shortcode_output").length||jQuery(".woocommerce .products, .woocommerce .products-loop").length&&!jQuery(".single-product").length)&&(e=!1),jQuery(".woocommerce .woocommerce-info").length&&(e=!1),"undefined"!=typeof woof_not_redirect&&1==woof_not_redirect&&(e=!1),jQuery(".woot-data-table").length&&(e=!1),e||(woof_current_page_link=location.protocol+"//"+location.host+location.pathname),jQuery("#woof_results_by_ajax").length&&(woof_is_ajax=1)}function woof_init_beauty_scroll(){if(woof_use_beauty_scroll)try{jQuery(".woof_section_scrolled, .woof_sid_auto_shortcode .woof_container").addClass("woof_use_beauty_scroll")}catch(e){console.log(e)}}function woof_remove_class_widget(){jQuery(".woof_container_inner").find(".widget").removeClass("widget")}function woof_init_show_auto_form(){jQuery(".woof_show_auto_form").off("click"),jQuery(".woof_show_auto_form.woof_btn").length&&jQuery(".woof_btn_default").remove(),jQuery(".woof_show_auto_form").on("click",function(){var e=this;return jQuery(e).addClass("woof_hide_auto_form").removeClass("woof_show_auto_form"),jQuery(e).parent().find(".woof_auto_show").show().animate({height:jQuery(e).parent().find(".woof_auto_show_indent").height()+20+"px",opacity:.96},377,function(){woof_init_hide_auto_form(),jQuery(e).parent().find(".woof_auto_show").removeClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show_indent").removeClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show").height("auto")}),!1})}function woof_init_hide_auto_form(){jQuery(".woof_hide_auto_form").off("click"),jQuery(".woof_hide_auto_form").on("click",function(){var e=this;return jQuery(e).addClass("woof_show_auto_form").removeClass("woof_hide_auto_form"),jQuery(e).parent().find(".woof_auto_show").show().animate({height:"1px",opacity:0},377,function(){jQuery(e).parent().find(".woof_auto_show").addClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show_indent").addClass("woof_overflow_hidden"),woof_init_show_auto_form()}),!1})}function woof_checkboxes_slide(){if(woof_checkboxes_slide_flag){var e=jQuery("ul.woof_childs_list");e.length&&(jQuery.each(e,function(e,o){if(!jQuery(o).parents(".woof_no_close_childs").length&&0!=jQuery(o).find("input").length){var r="woof_is_closed";if(woof_supports_html5_storage()){var t=localStorage.getItem(jQuery(o).closest("li").attr("class"));t&&"woof_is_opened"==t&&(r="woof_is_opened",jQuery(o).show()),jQuery(o).parent("li").children("label").after('<a href="javascript:void(0);" rel="nofollow" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+r+'"></span></a>')}else jQuery(o).find("input[type=checkbox],input[type=radio]").is(":checked")&&(jQuery(o).show(),r="woof_is_opened"),jQuery(o).parent("li").children("label").after('<a href="javascript:void(0);" rel="nofollow" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+r+'"></span></a>')}}),jQuery.each(jQuery("a.woof_childs_list_opener span"),function(e,o){jQuery(o).on("click",function(){var e=jQuery(this),o=jQuery(this).parent(".woof_childs_list_opener");if(e.hasClass("woof_is_closed")?(jQuery(o).parent().find("ul.woof_childs_list").first().show(333),e.removeClass("woof_is_closed"),e.addClass("woof_is_opened")):(jQuery(o).parent().find("ul.woof_childs_list").first().hide(333),e.removeClass("woof_is_opened"),e.addClass("woof_is_closed")),woof_supports_html5_storage()){var r=jQuery(o).closest("li").attr("class"),t=jQuery(o).children("span").attr("class");localStorage.setItem(r,t)}return!1})}))}}function woof_init_ion_sliders(){jQuery.each(jQuery(".woof_range_slider"),function(e,o){try{jQuery(o).ionRangeSlider({min:jQuery(o).data("min"),max:jQuery(o).data("max"),from:jQuery(o).data("min-now"),to:jQuery(o).data("max-now"),type:"double",prefix:jQuery(o).data("slider-prefix"),postfix:jQuery(o).data("slider-postfix"),prettify:!0,prettify_separator:jQuery(o).data("thousand-separator"),prettify_enabled:!0,hideMinMax:!1,hideFromTo:!1,grid:!0,step:jQuery(o).data("step"),onFinish:function(e){var r=jQuery(o).data("taxes");return woof_current_values.min_price=parseFloat(e.from,10)/r,woof_current_values.max_price=parseFloat(e.to,10)/r,"undefined"!=typeof woocs_current_currency&&(woof_current_values.min_price=woof_current_values.min_price/parseFloat(woocs_current_currency.rate),woof_current_values.max_price=woof_current_values.max_price/parseFloat(woocs_current_currency.rate)),woof_ajax_page_num=1,(woof_autosubmit||0==jQuery(o).within(".woof").length)&&woof_submit_link(woof_get_submit_link()),!1},onChange:function(e){if(jQuery(".woof_price_filter_txt")){var r=jQuery(o).data("taxes");jQuery(".woof_price_filter_txt_from").val(parseInt(e.from,10)/r),jQuery(".woof_price_filter_txt_to").val(parseInt(e.to,10)/r),"undefined"!=typeof woocs_current_currency&&(jQuery(".woof_price_filter_txt_from").val(Math.ceil(jQuery(".woof_price_filter_txt_from").val()/parseFloat(woocs_current_currency.rate))),jQuery(".woof_price_filter_txt_to").val(Math.ceil(jQuery(".woof_price_filter_txt_to").val()/parseFloat(woocs_current_currency.rate))))}}})}catch(e){}})}function woof_init_native_woo_price_filter(){jQuery(".widget_price_filter form").off("submit"),jQuery(".widget_price_filter form").on("submit",function(){var e=jQuery(this).find(".price_slider_amount #min_price").val(),o=jQuery(this).find(".price_slider_amount #max_price").val();return woof_current_values.min_price=e,woof_current_values.max_price=o,woof_ajax_page_num=1,woof_submit_link(woof_get_submit_link()),!1})}function woof_reinit_native_woo_price_filter(){if("undefined"==typeof woocommerce_price_slider_params)return!1;jQuery("input#min_price, input#max_price").hide(),jQuery(".price_slider, .price_label").show();var e=jQuery(".price_slider_amount #min_price").data("min"),o=jQuery(".price_slider_amount #max_price").data("max"),r=parseInt(e,10),t=parseInt(o,10);woof_current_values.hasOwnProperty("min_price")?(r=parseInt(woof_current_values.min_price,10),t=parseInt(woof_current_values.max_price,10)):(woocommerce_price_slider_params.min_price&&(r=parseInt(woocommerce_price_slider_params.min_price,10)),woocommerce_price_slider_params.max_price&&(t=parseInt(woocommerce_price_slider_params.max_price,10)));var _=woocommerce_price_slider_params.currency_symbol;void 0===_&&(_=woocommerce_price_slider_params.currency_format_symbol),jQuery(document.body).on("price_slider_create price_slider_slide",function(e,o,r){if("undefined"!=typeof woocs_current_currency){var t=o,i=r;void 0===_&&(_=woocs_current_currency.symbol),1!==woocs_current_currency.rate&&(t=Math.ceil(t*parseFloat(woocs_current_currency.rate)),i=Math.ceil(i*parseFloat(woocs_current_currency.rate))),t=woof_front_number_format(t,2,".",","),i=woof_front_number_format(i,2,".",","),(jQuery.inArray(woocs_current_currency.name,woocs_array_no_cents)||1==woocs_current_currency.hide_cents)&&(t=t.replace(".00",""),i=i.replace(".00","")),"left"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(_+t),jQuery(".price_slider_amount span.to").html(_+i)):"left_space"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(_+" "+t),jQuery(".price_slider_amount span.to").html(_+" "+i)):"right"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(t+_),jQuery(".price_slider_amount span.to").html(i+_)):"right_space"===woocs_current_currency.position&&(jQuery(".price_slider_amount span.from").html(t+" "+_),jQuery(".price_slider_amount span.to").html(i+" "+_))}else"left"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(_+o),jQuery(".price_slider_amount span.to").html(_+r)):"left_space"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(_+" "+o),jQuery(".price_slider_amount span.to").html(_+" "+r)):"right"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(o+_),jQuery(".price_slider_amount span.to").html(r+_)):"right_space"===woocommerce_price_slider_params.currency_pos&&(jQuery(".price_slider_amount span.from").html(o+" "+_),jQuery(".price_slider_amount span.to").html(r+" "+_));jQuery(document.body).trigger("price_slider_updated",[o,r])}),jQuery(".price_slider").slider({range:!0,animate:!0,min:e,max:o,values:[r,t],create:function(){jQuery(".price_slider_amount #min_price").val(r),jQuery(".price_slider_amount #max_price").val(t),jQuery(document.body).trigger("price_slider_create",[r,t])},slide:function(e,o){jQuery("input#min_price").val(o.values[0]),jQuery("input#max_price").val(o.values[1]),jQuery(document.body).trigger("price_slider_slide",[o.values[0],o.values[1]])},change:function(e,o){jQuery(document.body).trigger("price_slider_change",[o.values[0],o.values[1]])}}),woof_init_native_woo_price_filter()}function woof_mass_reinit(){woof_remove_empty_elements(),woof_open_hidden_li(),woof_init_search_form(),woof_hide_info_popup(),woof_init_beauty_scroll(),woof_init_ion_sliders(),woof_reinit_native_woo_price_filter(),woof_recount_text_price_filter(),woof_draw_products_top_panel(),woof_unblur_filter()}function woof_unblur_filter(){jQuery(".woof_redraw_zone.woof_blur_redraw_zone").removeClass("woof_blur_redraw_zone")}function woof_recount_text_price_filter(){"undefined"!=typeof woocs_current_currency&&jQuery.each(jQuery(".woof_price_filter_txt_from, .woof_price_filter_txt_to"),function(e,o){jQuery(this).val(Math.ceil(jQuery(this).data("value")))})}function woof_init_toggles(){jQuery("body").off("click",".woof_front_toggle"),jQuery("body").on("click",".woof_front_toggle",function(){return"opened"==jQuery(this).data("condition")?(jQuery(this).removeClass("woof_front_toggle_opened"),jQuery(this).addClass("woof_front_toggle_closed"),jQuery(this).data("condition","closed"),"text"==woof_toggle_type?jQuery(this).text(woof_toggle_closed_text):jQuery(this).find("img").prop("src",woof_toggle_closed_image)):(jQuery(this).addClass("woof_front_toggle_opened"),jQuery(this).removeClass("woof_front_toggle_closed"),jQuery(this).data("condition","opened"),"text"==woof_toggle_type?jQuery(this).text(woof_toggle_opened_text):jQuery(this).find("img").prop("src",woof_toggle_opened_image)),jQuery(this).parents(".woof_container_inner").find(".woof_block_html_items").slideToggle(500),jQuery(this).parents(".woof_container_inner").find(".chosen-container").length&&jQuery(this).hasClass("woof_front_toggle_opened")&&(jQuery(this).parents(".woof_container_inner").find("select").chosen("destroy").trigger("liszt:updated"),jQuery(this).parents(".woof_container_inner").find("select").chosen()),jQuery(this).hasClass("woof_front_toggle_opened")&&woof_reinit_selects(),!1})}function woof_open_hidden_li(){jQuery(".woof_open_hidden_li_btn").length>0&&jQuery.each(jQuery(".woof_open_hidden_li_btn"),function(e,o){jQuery(o).parents("ul").find("li.woof_hidden_term input[type=checkbox],li.woof_hidden_term input[type=radio]").is(":checked")&&jQuery(o).trigger("click")})}function $_woof_GET(e,o){o=o||window.location.search;var r=new RegExp("&"+e+"=([^&]*)","i");return(o=o.replace(/^\?/,"&").match(r))?o[1]:""}function woof_parse_url(e){var o=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=e.match(o);return{scheme:r[2],authority:r[4],path:r[5],query:r[7],fragment:r[9]}}function woof_price_filter_radio_init(){if("none"!=icheck_skin){jQuery(".woof_price_filter_radio").iCheck("destroy");let e=".woof_price_filter_radio",o=jQuery(e).parents(".woof_redraw_zone").eq(0).data("icheck-skin");o?(o=o.split("_"),jQuery(e).iCheck({radioClass:"iradio_"+o[0]+"-"+o[1]})):jQuery(e).iCheck({radioClass:"iradio_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_price_filter_radio").siblings("div").removeClass("checked"),jQuery(".woof_price_filter_radio").off("ifChecked"),jQuery(".woof_price_filter_radio").on("ifChecked",function(e){jQuery(this).attr("checked",!0),jQuery(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_price_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_price_reset").eq(0).addClass("woof_radio_term_reset_visible");var o=jQuery(this).val();-1==parseInt(o,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).removeAttr("checked"),jQuery(this).siblings(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible")):(o=o.split("-"),woof_current_values.min_price=o[0],woof_current_values.max_price=o[1],jQuery(this).siblings(".woof_radio_price_reset").addClass("woof_radio_term_reset_visible"),jQuery(this).attr("checked",!0)),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())})}else jQuery("body").on("change",".woof_price_filter_radio",function(){var e=jQuery(this).val();jQuery(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),-1==parseInt(e,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).removeAttr("checked"),jQuery(this).siblings(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible")):(e=e.split("-"),woof_current_values.min_price=e[0],woof_current_values.max_price=e[1],jQuery(this).siblings(".woof_radio_price_reset").addClass("woof_radio_term_reset_visible"),jQuery(this).attr("checked",!0)),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())});jQuery(".woof_radio_price_reset").on("click",function(){return delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).siblings("div").removeClass("checked"),jQuery(this).parents(".woof_list").find("input[type=radio]").removeAttr("checked"),jQuery(this).removeClass("woof_radio_term_reset_visible"),woof_autosubmit&&woof_submit_link(woof_get_submit_link()),!1})}function woof_serialize(e){for(var o,r,t=decodeURI(e).split("&"),_={},i=0,a=t.length;i<a;i++)if((r=(o=t[i].split("="))[0]).indexOf("[]")==r.length-2){var n=r.substring(0,r.length-2);void 0===_[n]&&(_[n]=[]),_[n].push(o[1])}else _[r]=o[1];return _}function woof_infinite(){if("undefined"!=typeof yith_infs_premium&&yith_infs_premium.options)return woof_change_ajax_next_link(),!1;if("undefined"!=typeof yith_infs){var e={nextSelector:".woocommerce-pagination li .next",navSelector:yith_infs.navSelector,itemSelector:yith_infs.itemSelector,contentSelector:yith_infs.contentSelector,loader:'<img src="'+yith_infs.loader+'">',is_shop:yith_infs.shop};woof_change_ajax_next_link(),jQuery(window).off("yith_infs_start"),jQuery(yith_infs.contentSelector).yit_infinitescroll(e)}}function woof_change_ajax_next_link(){if(!jQuery(".woocommerce-pagination li .next").length)return!1;var e=window.location.href.split("?"),o="";if(null!=e[1]){var r=woof_serialize(e[1]);delete r.paged,o=decodeURIComponent(jQuery.param(r))}var t=jQuery(".woocommerce-pagination li .next").attr("href");null==t&&(t=e+"page/1/");var _=t.split("?"),i="";if(null!=_[1]){var a=woof_serialize(_[1]);null!=a.paged&&(i="/page/"+a.paged+"/")}t=e[0].replace(/\/$/,"")+i+"?"+o,jQuery(".woocommerce-pagination li .next").attr("href",t)}function woof_change_link_addtocart(){woof_is_ajax&&jQuery(".add_to_cart_button").each(function(e,o){var r=jQuery(o).attr("href");if(r){var t=r.split("?"),_=window.location.href.split("?");null!=t[1]&&(r=_[0]+"?"+t[1],jQuery(o).attr("href",r))}})}function woof_front_number_format(e,o,r,t){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var _=isFinite(+e)?+e:0,i=isFinite(+o)?Math.abs(o):0,a=void 0===t?",":t,n=void 0===r?".":r,s="";return s=(i?function(e,o){var r=Math.pow(10,o);return""+(Math.round(e*r)/r).toFixed(o)}(_,i):""+Math.round(_)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(n)}function woof_supports_html5_storage(){if("undefined"!=typeof woof_save_state_checkbox&&0===woof_save_state_checkbox)return!1;try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function woof_init_tooltip(){var e=jQuery(".woof_tooltip_header");e.length&&jQuery(e).tooltipster({theme:"tooltipster-noir",side:"right",trigger:"click"})}function woof_before_ajax_form_redrawing(){if("selectwoo"==woof_select_type)try{jQuery("select.woof_mselect").selectWoo("destroy"),jQuery("select.woof_meta_mselect").selectWoo("destroy")}catch(e){return!1}}function woof_reinit_selects(){if("chosen"==woof_select_type)try{jQuery("select.woof_select, select.woof_mselect").chosen("destroy").trigger("liszt:updated"),jQuery("select.woof_select, select.woof_mselect").chosen(),jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen("destroy").trigger("liszt:updated"),jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen()}catch(e){}else if("selectwoo"==woof_select_type)try{jQuery("select.woof_select, select.woof_mselect").selectWoo("destroy"),jQuery("select.woof_select, select.woof_mselect").selectWoo(),jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo("destroy"),jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo()}catch(e){}}function woof_init_mobile_filter(){var e=jQuery(".woof_show_mobile_filter"),o=jQuery(".woof_show_mobile_filter_container"),r=jQuery(woof_m_b_container);o.length||(o=r),e&&o&&jQuery(o).append(e),jQuery(".woof_show_mobile_filter").on("click",function(e){var o=jQuery(this).data("sid");jQuery(".woof.woof_sid_front_builder").length>0?(o="front_builder",jQuery(".woof.woof_sid_"+o).toggleClass("woof_show_filter_for_mobile")):jQuery(".woof.woof_sid_"+o).toggleClass("woof_show_filter_for_mobile"),setTimeout(function(){try{jQuery(".woof.woof_sid_"+o).find("select.woof_mselect").chosen("destroy"),jQuery(".woof.woof_sid_"+o).find("select.woof_select").chosen("destroy"),jQuery(".woof.woof_sid_"+o).find("select.woof_mselect").chosen(),jQuery(".woof.woof_sid_"+o).find("select.woof_select").chosen()}catch(e){}},300)}),jQuery(".woof_hide_mobile_filter").on("click",function(e){jQuery(this).parents(".woof").toggleClass("woof_show_filter_for_mobile")})}document.addEventListener("click",function(e){let o=document.querySelectorAll(".woof_auto_show"),r=e.target,t=!r.classList.contains("woof_sid");return t&&(t=!r.closest(".woof_sid")),r.classList.contains("woof_show_auto_form")||t&&Array.from(o).length>0&&Array.from(o).forEach(function(e){e.parentNode.querySelector(".woof_hide_auto_form")&&e.parentNode.querySelector(".woof_hide_auto_form").click()}),!0});
     1/* https://jscompress.com/  3.4.9 */
     2"use strict";function woof_init_checkboxes(){if("none"!=icheck_skin){jQuery(".woof_checkbox_term").iCheck("destroy");let e=".woof_checkbox_term",o=jQuery(e).parents(".woof_redraw_zone").eq(0).data("icheck-skin");o?(o=o.split("_"),jQuery(e).iCheck({checkboxClass:"icheckbox_"+o[0]+"-"+o[1]})):jQuery(e).iCheck({checkboxClass:"icheckbox_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_checkbox_term").off("ifChecked"),jQuery(".woof_checkbox_term").on("ifChecked",function(e){jQuery(this).attr("checked",!0),woof_checkbox_process_data(this,!0)}),jQuery(".woof_checkbox_term").off("ifUnchecked"),jQuery(".woof_checkbox_term").on("ifUnchecked",function(e){jQuery(this).attr("checked",!1),woof_checkbox_process_data(this,!1)}),jQuery(".woof_checkbox_label").off(),jQuery("label.woof_checkbox_label").on("click",function(){if(jQuery(this).prev().find(".woof_checkbox_term").is(":disabled"))return!1;void 0!==jQuery(this).prev().find(".woof_checkbox_term").attr("checked")?(jQuery(this).prev().find(".woof_checkbox_term").trigger("ifUnchecked"),jQuery(this).prev().removeClass("checked")):(jQuery(this).prev().find(".woof_checkbox_term").trigger("ifChecked"),jQuery(this).prev().addClass("checked"))})}else jQuery(".woof_checkbox_term").on("change",function(e){jQuery(this).is(":checked")?(jQuery(this).attr("checked",!0),woof_checkbox_process_data(this,!0)):(jQuery(this).attr("checked",!1),woof_checkbox_process_data(this,!1))})}function woof_checkbox_process_data(e,o){var r=jQuery(e).data("tax"),t=jQuery(e).attr("name");woof_checkbox_direct_search(jQuery(e).data("term-id"),t,r,o)}function woof_checkbox_direct_search(e,o,r,t){var _="",i=!0;if(t)r in woof_current_values?woof_current_values[r]=woof_current_values[r]+","+o:woof_current_values[r]=o,i=!0;else{_=(_=woof_current_values[r]).split(",");var a=[];jQuery.each(_,function(e,r){r!=o&&a.push(r)}),(_=a).length?woof_current_values[r]=_.join(","):delete woof_current_values[r],i=!1}jQuery(".woof_checkbox_term_"+e).attr("checked",i),woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_mselects(){if("chosen"==woof_select_type)jQuery("select.woof_mselect").chosen();else if("selectwoo"==woof_select_type)try{jQuery("select.woof_mselect").selectWoo()}catch(e){console.log(e)}jQuery(".woof_mselect").change(function(e){var o=jQuery(this).val(),r=jQuery(this).attr("name");if("chosen"==woof_select_type){var t=jQuery(this).chosen().val();jQuery(".woof_mselect[name="+r+"] option:selected").removeAttr("selected"),jQuery(".woof_mselect[name="+r+"] option").each(function(e,o){var r=jQuery(this).val();-1!==jQuery.inArray(r,t)&&jQuery(this).prop("selected",!0)})}return woof_mselect_direct_search(r,o),!0});var e=jQuery(".woof_hide_empty_container_ms");jQuery.each(e,function(e,o){var r=jQuery(o).val();r&&jQuery(r).hide()})}function woof_mselect_direct_search(e,o){var r=[];jQuery(".woof_mselect[name="+e+"] option:selected").each(function(e,o){r.push(jQuery(this).val())}),(r=(r=r.filter(function(e,o){return r.indexOf(e)==o})).join(",")).length?woof_current_values[e]=r:delete woof_current_values[e],woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_radios(){if("none"!=icheck_skin){jQuery(".woof_radio_term").iCheck("destroy");let e=jQuery(".woof_radio_term").parents(".woof_redraw_zone").eq(0).data("icheck-skin");e?(e=e.split("_"),jQuery(".woof_radio_term").iCheck({radioClass:"iradio_"+e[0]+"-"+e[1]})):jQuery(".woof_radio_term").iCheck({radioClass:"iradio_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_radio_term").off("ifChecked"),jQuery(".woof_radio_term").on("ifChecked",function(e){jQuery(this).attr("checked",!0),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_term_reset").eq(0).addClass("woof_radio_term_reset_visible");var o=jQuery(this).data("slug"),r=jQuery(this).attr("name");woof_radio_direct_search(jQuery(this).data("term-id"),r,o)})}else jQuery(".woof_radio_term").on("change",function(e){jQuery(this).attr("checked",!0);var o=jQuery(this).data("slug"),r=jQuery(this).attr("name"),t=jQuery(this).data("term-id");jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_term_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_term_reset").eq(0).addClass("woof_radio_term_reset_visible"),woof_radio_direct_search(t,r,o)});jQuery(".woof_radio_term_reset").on("click",function(){return woof_radio_direct_search(jQuery(this).data("term-id"),jQuery(this).attr("data-name"),0),jQuery(this).parents(".woof_list").find(".checked").removeClass("checked"),jQuery(this).parents(".woof_list").find("input[type=radio]").removeAttr("checked"),jQuery(this).removeClass("woof_radio_term_reset_visible"),!1})}function woof_radio_direct_search(e,o,r){jQuery.each(woof_current_values,function(e,r){e!=o||delete woof_current_values[o]}),0!=r?(woof_current_values[o]=r,jQuery("a.woof_radio_term_reset_"+e).hide(),jQuery("woof_radio_term_"+e).filter(":checked").parents("li").find("a.woof_radio_term_reset").show(),jQuery("woof_radio_term_"+e).parents("ul.woof_list").find("label").css({fontWeight:"normal"}),jQuery("woof_radio_term_"+e).filter(":checked").parents("li").find("label.woof_radio_label_"+r).css({fontWeight:"bold"})):(jQuery("a.woof_radio_term_reset_"+e).hide(),jQuery("woof_radio_term_"+e).attr("checked",!1),jQuery("woof_radio_term_"+e).parent().removeClass("checked"),jQuery("woof_radio_term_"+e).parents("ul.woof_list").find("label").css({fontWeight:"normal"})),woof_ajax_page_num=1,woof_autosubmit&&woof_submit_link(woof_get_submit_link())}function woof_init_selects(){"chosen"==woof_select_type?jQuery("select.woof_select, select.woof_price_filter_dropdown").chosen():"selectwoo"==woof_select_type&&jQuery("select.woof_select, select.woof_price_filter_dropdown").selectWoo(),jQuery(".woof_select").change(function(){var e=jQuery(this).val();woof_select_direct_search(this,jQuery(this).attr("name"),e)});var e=jQuery(".woof_hide_empty_container");jQuery.each(e,function(e,o){var r=jQuery(o).val();r&&jQuery(r).hide()})}function woof_select_direct_search(e,o,r){jQuery.each(woof_current_values,function(e,r){e!=o||delete woof_current_values[o]}),0!=r&&(woof_current_values[o]=r),woof_ajax_page_num=1,(woof_autosubmit||0==jQuery(e).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}var woof_redirect="",woof_reset_btn_action=!1,woof_additional_fields={};if(jQuery(function(){if("string"==typeof woof_current_values)try{woof_current_values=JSON.parse(woof_current_values)}catch(e){woof_current_values={}}(null==woof_current_values||Array.isArray(woof_current_values))&&(woof_current_values={})}),void 0===woof_lang_custom)var woof_lang_custom={};/*!!important*/function woof_redirect_init(){try{if(jQuery(".woof").length&&void 0!==jQuery(".woof").val())return(woof_redirect=jQuery(".woof").eq(0).data("redirect")).length>0&&(woof_shop_page=woof_current_page_link=woof_redirect),woof_redirect}catch(e){console.log(e)}}function woof_init_orderby(){jQuery("body").on("submit","form.woocommerce-ordering",function(){if(!jQuery("#is_woo_shortcode").length)return!1}),jQuery("body").on("change","form.woocommerce-ordering select.orderby",function(){if(!jQuery("#is_woo_shortcode").length)return woof_current_values.orderby=jQuery(this).val(),woof_ajax_page_num=1,woof_submit_link(woof_get_submit_link(),0),!1})}function woof_init_reset_button(){jQuery("body").on("click",".woof_reset_search_form",function(){if(woof_ajax_page_num=1,woof_ajax_redraw=0,woof_reset_btn_action=!0,woof_is_permalink)woof_current_values={},woof_submit_link(woof_get_submit_link().split("page/")[0]);else{var e=woof_shop_page;woof_current_values.hasOwnProperty("page_id")&&(e=location.protocol+"//"+location.host+"/?page_id="+woof_current_values.page_id,woof_current_values={page_id:woof_current_values.page_id},woof_get_submit_link()),woof_submit_link(e),woof_is_ajax&&(history.pushState({},"",e),woof_current_values.hasOwnProperty("page_id")?woof_current_values={page_id:woof_current_values.page_id}:woof_current_values={})}return!1})}function woof_init_pagination(){1===woof_is_ajax&&jQuery("body").on("click",".woocommerce-pagination a.page-numbers",function(){var e,o,r=jQuery(this).attr("href");return woof_ajax_first_done?(void 0!==(e=r.split("paged="))[1]?woof_ajax_page_num=parseInt(e[1]):woof_ajax_page_num=1,void 0!==(o=r.split("product-page="))[1]&&(woof_ajax_page_num=parseInt(o[1]))):(void 0!==(e=r.split("page/"))[1]?woof_ajax_page_num=parseInt(e[1]):woof_ajax_page_num=1,void 0!==(o=r.split("product-page="))[1]&&(woof_ajax_page_num=parseInt(o[1]))),woof_submit_link(woof_get_submit_link(),0),!1})}function woof_init_search_form(){woof_init_checkboxes(),woof_init_mselects(),woof_init_radios(),woof_price_filter_radio_init(),woof_init_selects(),null!==woof_ext_init_functions&&jQuery.each(woof_ext_init_functions,function(type,func){eval(func+"()")}),jQuery(".woof_submit_search_form").on("click",function(){return woof_ajax_redraw&&(woof_ajax_redraw=0,woof_is_ajax=0),woof_submit_link(woof_get_submit_link()),!1}),jQuery("ul.woof_childs_list").parent("li").addClass("woof_childs_list_li"),woof_remove_class_widget(),woof_checkboxes_slide(),document.dispatchEvent(new CustomEvent("woof_init_search_form",{detail:{}}))}"undefined"!=typeof woof_ext_filter_titles&&(woof_lang_custom=Object.assign({},woof_lang_custom,woof_ext_filter_titles)),jQuery(function(e){jQuery("body").append('<div id="woof_html_buffer" class="woof_info_popup" style="display: none;"></div>'),jQuery.extend(jQuery.fn,{within:function(e){return this.filter(function(){return jQuery(this).closest(e).length})}});let o=document.querySelectorAll(".woof[data-slug]");o.length&&o.forEach(e=>{e.dataset.slug.length>0&&(swoof_search_slug=e.dataset.slug)}),jQuery("#woof_results_by_ajax").length>0&&(woof_is_ajax=1),woof_autosubmit=parseInt(jQuery(".woof").eq(0).data("autosubmit"),10),woof_ajax_redraw=parseInt(jQuery(".woof").eq(0).data("ajax-redraw"),10),woof_ext_init_functions=JSON.parse(woof_ext_init_functions),woof_init_native_woo_price_filter(),jQuery("body").on("price_slider_change",function(e,o,r){if(woof_autosubmit&&!woof_show_price_search_button&&jQuery(".price_slider_wrapper").length<3)jQuery(".woof .widget_price_filter form").trigger("submit");else{var t=jQuery(this).find(".price_slider_amount #min_price").val(),_=jQuery(this).find(".price_slider_amount #max_price").val();woof_current_values.min_price=t,woof_current_values.max_price=_}}),jQuery("body").on("change",".woof_price_filter_dropdown",function(){var e=jQuery(this).val();-1==parseInt(e,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price):(e=e.split("-"),woof_current_values.min_price=e[0],woof_current_values.max_price=e[1]),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}),woof_recount_text_price_filter(),jQuery("body").on("change",".woof_price_filter_txt",function(){var e=parseInt(jQuery(this).parent().find(".woof_price_filter_txt_from").val(),10),o=parseInt(jQuery(this).parent().find(".woof_price_filter_txt_to").val(),10);o<e||e<0?(delete woof_current_values.min_price,delete woof_current_values.max_price):("undefined"!=typeof woocs_current_currency&&(e=Math.ceil(e/parseFloat(woocs_current_currency.rate)),o=Math.ceil(o/parseFloat(woocs_current_currency.rate))),woof_current_values.min_price=e,woof_current_values.max_price=o),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())}),jQuery("body").on("click",".woof .woof_open_hidden_li_btn",function(){var e=jQuery(this).data("state"),o=jQuery(this).data("type");return"closed"==e?(jQuery(this).parents(".woof_list").find(".woof_hidden_term").addClass("woof_hidden_term2"),jQuery(this).parents(".woof_list").find(".woof_hidden_term").removeClass("woof_hidden_term"),"image"==o?jQuery(this).find("img").attr("src",jQuery(this).data("opened")):jQuery(this).text(jQuery(this).data("opened")),jQuery(this).data("state","opened")):(jQuery(this).parents(".woof_list").find(".woof_hidden_term2").addClass("woof_hidden_term"),jQuery(this).parents(".woof_list").find(".woof_hidden_term2").removeClass("woof_hidden_term2"),"image"==o?jQuery(this).find("img").attr("src",jQuery(this).data("closed")):jQuery(this).text(jQuery(this).data("closed")),jQuery(this).data("state","closed")),!1}),woof_open_hidden_li(),jQuery(".widget_rating_filter li.wc-layered-nav-rating a").on("click",function(){var e=jQuery(this).parent().hasClass("chosen"),o=woof_parse_url(jQuery(this).attr("href")),r=0;if(void 0!==o.query&&-1!==o.query.indexOf("min_rating")){var t=o.query.split("min_rating=");r=parseInt(t[1],10)}return jQuery(this).parents("ul").find("li").removeClass("chosen"),e?delete woof_current_values.min_rating:(woof_current_values.min_rating=r,jQuery(this).parent().addClass("chosen")),woof_submit_link(woof_get_submit_link()),!1}),jQuery("body").on("click",".woof_start_filtering_btn",function(){var e=jQuery(this).parents(".woof").data("shortcode");jQuery(this).html(woof_lang_loading),jQuery(this).addClass("woof_start_filtering_btn2"),jQuery(this).removeClass("woof_start_filtering_btn");var o={action:"woof_draw_products",page:1,shortcode:"woof_nothing",woof_shortcode:e,nonce_filter:woof_front_nonce};return jQuery.post(woof_ajaxurl,o,function(e){e=JSON.parse(e),jQuery("div.woof_redraw_zone").replaceWith(jQuery(e.form).find(".woof_redraw_zone")),woof_mass_reinit(),woof_init_tooltip()}),!1}),window.addEventListener("pageshow",function(e){(e.persisted||void 0!==window.performance&&2===window.performance.navigation.type)&&(woof_hide_info_popup(),woof_submit_link_locked=!1)});var r=window.location.href;window.onpopstate=function(e){try{if(Object.keys(woof_current_values).length){var o=r.split("?"),t="";null!=o[1]&&(t=o[1].split("#"));var _=window.location.href.split("?");if(null==_[1])var i={0:"",1:""};else i=_[1].split("#");return i[0]!=t[0]&&(woof_show_info_popup(woof_lang_loading),window.location.reload()),!1}}catch(e){console.log(e)}},woof_init_ion_sliders(),woof_init_show_auto_form(),woof_init_hide_auto_form(),woof_remove_empty_elements(),woof_unblur_filter(),woof_init_search_form(),woof_init_pagination(),woof_init_orderby(),woof_init_reset_button(),woof_init_beauty_scroll(),woof_draw_products_top_panel(),woof_shortcode_observer(),woof_init_tooltip(),woof_init_mobile_filter(),woof_is_ajax||woof_redirect_init(),woof_init_toggles()});var woof_submit_link_locked=!1;function woof_submit_link(e,o){if(!woof_submit_link_locked)if("undefined"==typeof WoofTurboMode)if(void 0===o&&(o=woof_ajax_redraw),woof_submit_link_locked=!0,woof_show_info_popup(woof_lang_loading),1!==woof_is_ajax||o)o?(r={action:"woof_draw_products",link:e,page:1,shortcode:"woof_nothing",woof_shortcode:jQuery("div.woof").eq(0).data("shortcode"),nonce_filter:woof_front_nonce},jQuery.post(woof_ajaxurl,r,function(o){woof_before_ajax_form_redrawing(),o=JSON.parse(o),jQuery("div.woof_redraw_zone").replaceWith(jQuery(o.form).find(".woof_redraw_zone")),woof_mass_reinit(),woof_submit_link_locked=!1,woof_init_tooltip(),document.dispatchEvent(new CustomEvent("woof-ajax-form-redrawing",{detail:{link:e}}))})):(setTimeout(()=>{window.location=e},100),woof_show_info_popup(woof_lang_loading));else{woof_ajax_first_done=!0;var r={action:"woof_draw_products",link:e,page:woof_ajax_page_num,shortcode:jQuery("#woof_results_by_ajax").data("shortcode"),woof_shortcode:jQuery("div.woof").data("shortcode"),nonce_filter:woof_front_nonce};jQuery.post(woof_ajaxurl,r,function(o){if(o=JSON.parse(o),woof_before_ajax_form_redrawing(),jQuery(".woof_results_by_ajax_shortcode").length){if(void 0!==o.products){jQuery("#woof_results_by_ajax").replaceWith(o.products);var r=jQuery(".woof_found_count");if(jQuery(r).show(),r.length>0){var t=jQuery("#woof_results_by_ajax").data("count");void 0!==t&&jQuery(r).text(t)}}}else void 0!==o.products&&jQuery(".woof_shortcode_output").replaceWith(o.products);void 0!==o.additional_fields&&(jQuery.each(o.additional_fields,function(e,o){void 0===woof_additional_fields[e]&&(woof_additional_fields[e]=jQuery(e)),jQuery(e).replaceWith(o)}),jQuery.each(woof_additional_fields,function(e,r){void 0===o.additional_fields[e]&&jQuery(e).replaceWith(r)})),jQuery("div.woof_redraw_zone").replaceWith(jQuery(o.form).find(".woof_redraw_zone")),woof_draw_products_top_panel(),woof_mass_reinit(),woof_submit_link_locked=!1,jQuery.each(jQuery("#woof_results_by_ajax"),function(e,o){0!=e&&jQuery(o).removeAttr("id")}),jQuery(".woof").removeClass("woof_show_filter_for_mobile"),woof_infinite(),woof_js_after_ajax_done(),woof_change_link_addtocart(),woof_init_tooltip(),document.dispatchEvent(new CustomEvent("woof-ajax-form-redrawing",{detail:{link:e}}))})}else WoofTurboMode.woof_submit_link(e)}function woof_remove_empty_elements(){jQuery.each(jQuery(".woof_container select"),function(e,o){0===jQuery(o).find("option").length&&jQuery(o).parents(".woof_container").remove()}),jQuery.each(jQuery("ul.woof_list"),function(e,o){0===jQuery(o).find("li").length&&jQuery(o).parents(".woof_container").remove()}),jQuery.each(jQuery(".woof_container .woof_list_sd"),function(e,o){0===jQuery(o).find(".woof-sd-ie").length&&jQuery(o).parents(".woof_container").remove()})}function woof_get_submit_link(){if(woof_is_ajax&&(woof_current_values.page=woof_ajax_page_num),Object.keys(woof_current_values).length>0&&jQuery.each(woof_current_values,function(e,o){e==swoof_search_slug&&delete woof_current_values[e],"s"==e&&delete woof_current_values[e],"product"==e&&delete woof_current_values[e],"really_curr_tax"==e&&delete woof_current_values[e]}),2===Object.keys(woof_current_values).length&&"min_price"in woof_current_values&&"max_price"in woof_current_values){woof_current_page_link=woof_current_page_link.replace(new RegExp(/page\/(\d+)/),"");var e=woof_current_page_link+"?min_price="+woof_current_values.min_price+"&max_price="+woof_current_values.max_price;return woof_is_ajax&&history.pushState({},"",e),e}if(0===Object.keys(woof_current_values).length)return woof_is_ajax&&history.pushState({},"",woof_current_page_link),woof_current_page_link;Object.keys(woof_really_curr_tax).length>0&&(woof_current_values.really_curr_tax=woof_really_curr_tax.term_id+"-"+woof_really_curr_tax.taxonomy);var o=woof_current_page_link+"?"+swoof_search_slug+"=1";woof_is_permalink||(woof_redirect.length>0?(o=woof_redirect+"?"+swoof_search_slug+"=1",woof_current_values.hasOwnProperty("page_id")&&delete woof_current_values.page_id):o=location.protocol+"//"+location.host+"?"+swoof_search_slug+"=1");var r=["path"];return Object.keys(woof_current_values).length>0&&jQuery.each(woof_current_values,function(e,t){"page"==e&&woof_is_ajax&&(e="paged"),"product-page"!=e&&void 0!==t&&(t.length>0||"number"==typeof t)&&-1==jQuery.inArray(e,r)&&(o=o+"&"+e+"="+t)}),o=o.replace(new RegExp(/page\/(\d+)/),""),woof_is_ajax&&history.pushState({},"",o),o}function woof_show_info_popup(e){if("default"==woof_overlay_skin)jQuery("#woof_html_buffer").text(e),jQuery("#woof_html_buffer").fadeTo(200,.9);else switch(woof_overlay_skin){case"loading-balls":case"loading-bars":case"loading-bubbles":case"loading-cubes":case"loading-cylon":case"loading-spin":case"loading-spinning-bubbles":case"loading-spokes":jQuery("body").plainOverlay("show",{progress:function(){return jQuery('<div id="woof_svg_load_container"><img style="height: 100%; width: 100%" src="'+woof_link+"img/loading-master/"+woof_overlay_skin+'.svg" alt=""></div>')}});break;default:jQuery("body").plainOverlay("show",{duration:-1})}}function woof_hide_info_popup(){"default"==woof_overlay_skin?window.setTimeout(function(){jQuery("#woof_html_buffer").fadeOut(400)},200):jQuery("body").plainOverlay("hide")}function woof_draw_products_top_panel(){woof_is_ajax&&jQuery("#woof_results_by_ajax").prev(".woof_products_top_panel").remove();var e=jQuery(".woof_products_top_panel");if(e.html(""),Object.keys(woof_current_values).length>0){e.show(),e.html("<ul></ul>"),e.find("ul").attr("class","woof_products_top_panel_ul");var o=!1;jQuery.each(woof_current_values,function(r,t){if((-1!=jQuery.inArray(r,woof_accept_array)||-1!=jQuery.inArray(r.replace("rev_",""),woof_accept_array))&&("min_price"!=r&&"max_price"!=r||!o)){"min_price"!=r&&"max_price"!=r||o||(o=!0,r="price",t=woof_lang_pricerange);var _=!1,i=jQuery("input[data-anchor='woof_n_"+r+"_all_range']").val();if(void 0!==i&&(_=!0),(t=t.toString().trim()).search(",")&&(t=t.split(",")),_)if(void 0!==woof_filter_titles[r]){var a=e.find("ul.woof_products_top_panel_ul li ul[data-container="+r+"]");a.length?a.append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i)))):e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<ul>").attr("data-container",r).append(jQuery("<li>").text(woof_filter_titles[r]+":")).append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i))))))}else e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug","all_range").attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(i))));else jQuery.each(t,function(o,t){if("page"!=r&&"post_type"!=r){var _=t;if("orderby"==r)_=void 0!==woof_lang[t]?woof_lang.orderby+": "+woof_lang[t]:woof_lang.orderby+": "+t;else if("perpage"==r)_=woof_lang.perpage;else if("price"==r)_=woof_lang.pricerange;else{var i=!1;if(Object.keys(woof_lang_custom).length>0&&jQuery.each(woof_lang_custom,function(e,o){e==r&&(i=!0,_=o,"woof_sku"==r&&(_+=" "+t))}),!i){try{_=jQuery("input[data-anchor='woof_n_"+r+"_"+t+"']").val()}catch(e){console.log(e)}void 0===_&&(_=t)}}if(void 0!==woof_filter_titles[r]){var a=e.find("ul.woof_products_top_panel_ul li ul[data-container="+r+"]");a.length?a.append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_)))):e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<ul>").attr("data-container",r).append(jQuery("<li>").text(woof_filter_titles[r]+":")).append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_))))))}else e.find("ul.woof_products_top_panel_ul").append(jQuery("<li>").append(jQuery("<a>").attr("href","").attr("data-tax",r).attr("data-slug",t).attr("rel","nofollow").append(jQuery("<span>").attr("class","woof_remove_ppi").append(_))))}})}})}0!=jQuery(e).find("li").length&&jQuery(".woof_products_top_panel").length?e.find("ul.woof_products_top_panel_ul").prepend(jQuery("<li>").append(jQuery("<button>").attr("class","woof_reset_button_2").append(woof_lang.clear_all))):e.hide(),jQuery(".woof_reset_button_2").on("click",function(){if(woof_ajax_page_num=1,woof_ajax_redraw=0,woof_reset_btn_action=!0,woof_is_permalink)woof_current_values={},woof_submit_link(woof_get_submit_link().split("page/")[0]);else{var e=woof_shop_page;woof_current_values.hasOwnProperty("page_id")&&(e=location.protocol+"//"+location.host+"/?page_id="+woof_current_values.page_id,woof_current_values={page_id:woof_current_values.page_id},woof_get_submit_link()),woof_submit_link(e),woof_is_ajax&&(history.pushState({},"",e),woof_current_values.hasOwnProperty("page_id")?woof_current_values={page_id:woof_current_values.page_id}:woof_current_values={})}return!1}),jQuery(".woof_remove_ppi").parent().on("click",function(e){e.preventDefault();var o=jQuery(this).data("tax"),r=jQuery(this).data("slug");if("all_range"==r)delete woof_current_values[o];else if("price"!=o){var t=woof_current_values[o];t=t.split(",");var _=[];jQuery.each(t,function(e,o){o!=r&&_.push(o)}),(t=_).length?woof_current_values[o]=t.join(","):delete woof_current_values[o]}else delete woof_current_values.min_price,delete woof_current_values.max_price;return woof_ajax_page_num=1,woof_reset_btn_action=!0,woof_submit_link(woof_get_submit_link()),jQuery(".woof_products_top_panel").find("[data-tax='"+o+"'][href='"+r+"']").hide(333),!1})}function woof_shortcode_observer(){var e=!0;(jQuery(".woof_shortcode_output").length||jQuery(".woocommerce .products, .woocommerce .products-loop").length&&!jQuery(".single-product").length)&&(e=!1),jQuery(".woocommerce .woocommerce-info").length&&(e=!1),"undefined"!=typeof woof_not_redirect&&1==woof_not_redirect&&(e=!1),jQuery(".woot-data-table").length&&(e=!1),e||(woof_current_page_link=location.protocol+"//"+location.host+location.pathname),jQuery("#woof_results_by_ajax").length&&(woof_is_ajax=1)}function woof_init_beauty_scroll(){if(woof_use_beauty_scroll)try{jQuery(".woof_section_scrolled, .woof_sid_auto_shortcode .woof_container").addClass("woof_use_beauty_scroll")}catch(e){console.log(e)}}function woof_remove_class_widget(){jQuery(".woof_container_inner").find(".widget").removeClass("widget")}function woof_init_show_auto_form(){jQuery(".woof_show_auto_form").off("click"),jQuery(".woof_show_auto_form.woof_btn").length&&jQuery(".woof_btn_default").remove(),jQuery(".woof_show_auto_form").on("click",function(){var e=this;return jQuery(e).addClass("woof_hide_auto_form").removeClass("woof_show_auto_form"),jQuery(e).parent().find(".woof_auto_show").show().animate({height:jQuery(e).parent().find(".woof_auto_show_indent").height()+20+"px",opacity:.96},377,function(){woof_init_hide_auto_form(),jQuery(e).parent().find(".woof_auto_show").removeClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show_indent").removeClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show").height("auto")}),!1})}function woof_init_hide_auto_form(){jQuery(".woof_hide_auto_form").off("click"),jQuery(".woof_hide_auto_form").on("click",function(){var e=this;return jQuery(e).addClass("woof_show_auto_form").removeClass("woof_hide_auto_form"),jQuery(e).parent().find(".woof_auto_show").show().animate({height:"1px",opacity:0},377,function(){jQuery(e).parent().find(".woof_auto_show").addClass("woof_overflow_hidden"),jQuery(e).parent().find(".woof_auto_show_indent").addClass("woof_overflow_hidden"),woof_init_show_auto_form()}),!1})}function woof_checkboxes_slide(){if(woof_checkboxes_slide_flag){var e=jQuery("ul.woof_childs_list");e.length&&(jQuery.each(e,function(e,o){if(!jQuery(o).parents(".woof_no_close_childs").length&&0!=jQuery(o).find("input").length){var r="woof_is_closed";if(woof_supports_html5_storage()){var t=localStorage.getItem(jQuery(o).closest("li").attr("class"));t&&"woof_is_opened"==t&&(r="woof_is_opened",jQuery(o).show()),jQuery(o).parent("li").children("label").after('<a href="javascript:void(0);" rel="nofollow" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+r+'"></span></a>')}else jQuery(o).find("input[type=checkbox],input[type=radio]").is(":checked")&&(jQuery(o).show(),r="woof_is_opened"),jQuery(o).parent("li").children("label").after('<a href="javascript:void(0);" rel="nofollow" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+r+'"></span></a>')}}),jQuery.each(jQuery("a.woof_childs_list_opener span"),function(e,o){jQuery(o).on("click",function(){var e=jQuery(this),o=jQuery(this).parent(".woof_childs_list_opener");if(e.hasClass("woof_is_closed")?(jQuery(o).parent().find("ul.woof_childs_list").first().show(333),e.removeClass("woof_is_closed"),e.addClass("woof_is_opened")):(jQuery(o).parent().find("ul.woof_childs_list").first().hide(333),e.removeClass("woof_is_opened"),e.addClass("woof_is_closed")),woof_supports_html5_storage()){var r=jQuery(o).closest("li").attr("class"),t=jQuery(o).children("span").attr("class");localStorage.setItem(r,t)}return!1})}))}}function woof_init_ion_sliders(){jQuery.each(jQuery(".woof_range_slider"),function(e,o){try{jQuery(o).ionRangeSlider({min:jQuery(o).data("min"),max:jQuery(o).data("max"),from:jQuery(o).data("min-now"),to:jQuery(o).data("max-now"),type:"double",prefix:jQuery(o).data("slider-prefix"),postfix:jQuery(o).data("slider-postfix"),prettify:!0,prettify_separator:jQuery(o).data("thousand-separator"),prettify_enabled:!0,hideMinMax:!1,hideFromTo:!1,grid:!0,step:jQuery(o).data("step"),onFinish:function(e){var r=jQuery(o).data("taxes");return woof_current_values.min_price=parseFloat(e.from,10)/r,woof_current_values.max_price=parseFloat(e.to,10)/r,"undefined"!=typeof woocs_current_currency&&(woof_current_values.min_price=woof_current_values.min_price/parseFloat(woocs_current_currency.rate),woof_current_values.max_price=woof_current_values.max_price/parseFloat(woocs_current_currency.rate)),woof_ajax_page_num=1,(woof_autosubmit||0==jQuery(o).within(".woof").length)&&woof_submit_link(woof_get_submit_link()),!1},onChange:function(e){if(jQuery(".woof_price_filter_txt")){var r=jQuery(o).data("taxes");jQuery(".woof_price_filter_txt_from").val(parseInt(e.from,10)/r),jQuery(".woof_price_filter_txt_to").val(parseInt(e.to,10)/r),"undefined"!=typeof woocs_current_currency&&(jQuery(".woof_price_filter_txt_from").val(Math.ceil(jQuery(".woof_price_filter_txt_from").val()/parseFloat(woocs_current_currency.rate))),jQuery(".woof_price_filter_txt_to").val(Math.ceil(jQuery(".woof_price_filter_txt_to").val()/parseFloat(woocs_current_currency.rate))))}}})}catch(e){}})}function woof_init_native_woo_price_filter(){jQuery(".widget_price_filter form").off("submit"),jQuery(".widget_price_filter form").on("submit",function(){var e=jQuery(this).find(".price_slider_amount #min_price").val(),o=jQuery(this).find(".price_slider_amount #max_price").val();return woof_current_values.min_price=e,woof_current_values.max_price=o,woof_ajax_page_num=1,woof_submit_link(woof_get_submit_link()),!1})}function woof_reinit_native_woo_price_filter(){if("undefined"==typeof woocommerce_price_slider_params)return!1;jQuery("input#min_price, input#max_price").hide(),jQuery(".price_slider, .price_label").show();var e=jQuery(".price_slider_amount #min_price").data("min"),o=jQuery(".price_slider_amount #max_price").data("max"),r=parseInt(e,10),t=parseInt(o,10);woof_current_values.hasOwnProperty("min_price")?(r=parseInt(woof_current_values.min_price,10),t=parseInt(woof_current_values.max_price,10)):(woocommerce_price_slider_params.min_price&&(r=parseInt(woocommerce_price_slider_params.min_price,10)),woocommerce_price_slider_params.max_price&&(t=parseInt(woocommerce_price_slider_params.max_price,10)));var _=woocommerce_price_slider_params.currency_symbol;void 0===_&&(_=woocommerce_price_slider_params.currency_format_symbol),jQuery(document.body).on("price_slider_create price_slider_slide",function(e,o,r){if("undefined"!=typeof woocs_current_currency){var t=o,i=r;void 0===_&&(_=woocs_current_currency.symbol),1!==woocs_current_currency.rate&&(t=Math.ceil(t*parseFloat(woocs_current_currency.rate)),i=Math.ceil(i*parseFloat(woocs_current_currency.rate))),t=woof_front_number_format(t,2,".",","),i=woof_front_number_format(i,2,".",","),(jQuery.inArray(woocs_current_currency.name,woocs_array_no_cents)||1==woocs_current_currency.hide_cents)&&(t=t.replace(".00",""),i=i.replace(".00","")),"left"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(_+t),jQuery(".price_slider_amount span.to").html(_+i)):"left_space"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(_+" "+t),jQuery(".price_slider_amount span.to").html(_+" "+i)):"right"===woocs_current_currency.position?(jQuery(".price_slider_amount span.from").html(t+_),jQuery(".price_slider_amount span.to").html(i+_)):"right_space"===woocs_current_currency.position&&(jQuery(".price_slider_amount span.from").html(t+" "+_),jQuery(".price_slider_amount span.to").html(i+" "+_))}else"left"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(_+o),jQuery(".price_slider_amount span.to").html(_+r)):"left_space"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(_+" "+o),jQuery(".price_slider_amount span.to").html(_+" "+r)):"right"===woocommerce_price_slider_params.currency_pos?(jQuery(".price_slider_amount span.from").html(o+_),jQuery(".price_slider_amount span.to").html(r+_)):"right_space"===woocommerce_price_slider_params.currency_pos&&(jQuery(".price_slider_amount span.from").html(o+" "+_),jQuery(".price_slider_amount span.to").html(r+" "+_));jQuery(document.body).trigger("price_slider_updated",[o,r])}),jQuery(".price_slider").slider({range:!0,animate:!0,min:e,max:o,values:[r,t],create:function(){jQuery(".price_slider_amount #min_price").val(r),jQuery(".price_slider_amount #max_price").val(t),jQuery(document.body).trigger("price_slider_create",[r,t])},slide:function(e,o){jQuery("input#min_price").val(o.values[0]),jQuery("input#max_price").val(o.values[1]),jQuery(document.body).trigger("price_slider_slide",[o.values[0],o.values[1]])},change:function(e,o){jQuery(document.body).trigger("price_slider_change",[o.values[0],o.values[1]])}}),woof_init_native_woo_price_filter()}function woof_mass_reinit(){woof_remove_empty_elements(),woof_open_hidden_li(),woof_init_search_form(),woof_hide_info_popup(),woof_init_beauty_scroll(),woof_init_ion_sliders(),woof_reinit_native_woo_price_filter(),woof_recount_text_price_filter(),woof_draw_products_top_panel(),woof_unblur_filter()}function woof_unblur_filter(){jQuery(".woof_redraw_zone.woof_blur_redraw_zone").removeClass("woof_blur_redraw_zone")}function woof_recount_text_price_filter(){"undefined"!=typeof woocs_current_currency&&jQuery.each(jQuery(".woof_price_filter_txt_from, .woof_price_filter_txt_to"),function(e,o){jQuery(this).val(Math.ceil(jQuery(this).data("value")))})}function woof_init_toggles(){jQuery("body").off("click",".woof_front_toggle"),jQuery("body").on("click",".woof_front_toggle",function(){return"opened"==jQuery(this).data("condition")?(jQuery(this).removeClass("woof_front_toggle_opened"),jQuery(this).addClass("woof_front_toggle_closed"),jQuery(this).data("condition","closed"),"text"==woof_toggle_type?jQuery(this).text(woof_toggle_closed_text):jQuery(this).find("img").prop("src",woof_toggle_closed_image)):(jQuery(this).addClass("woof_front_toggle_opened"),jQuery(this).removeClass("woof_front_toggle_closed"),jQuery(this).data("condition","opened"),"text"==woof_toggle_type?jQuery(this).text(woof_toggle_opened_text):jQuery(this).find("img").prop("src",woof_toggle_opened_image)),jQuery(this).parents(".woof_container_inner").find(".woof_block_html_items").slideToggle(500),jQuery(this).parents(".woof_container_inner").find(".chosen-container").length&&jQuery(this).hasClass("woof_front_toggle_opened")&&(jQuery(this).parents(".woof_container_inner").find("select").chosen("destroy").trigger("liszt:updated"),jQuery(this).parents(".woof_container_inner").find("select").chosen()),jQuery(this).hasClass("woof_front_toggle_opened")&&woof_reinit_selects(),!1})}function woof_open_hidden_li(){jQuery(".woof_open_hidden_li_btn").length>0&&jQuery.each(jQuery(".woof_open_hidden_li_btn"),function(e,o){jQuery(o).parents("ul").find("li.woof_hidden_term input[type=checkbox],li.woof_hidden_term input[type=radio]").is(":checked")&&jQuery(o).trigger("click")})}function $_woof_GET(e,o){o=o||window.location.search;var r=new RegExp("&"+e+"=([^&]*)","i");return(o=o.replace(/^\?/,"&").match(r))?o[1]:""}function woof_parse_url(e){var o=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=e.match(o);return{scheme:r[2],authority:r[4],path:r[5],query:r[7],fragment:r[9]}}function woof_price_filter_radio_init(){if("none"!=icheck_skin){jQuery(".woof_price_filter_radio").iCheck("destroy");let e=".woof_price_filter_radio",o=jQuery(e).parents(".woof_redraw_zone").eq(0).data("icheck-skin");o?(o=o.split("_"),jQuery(e).iCheck({radioClass:"iradio_"+o[0]+"-"+o[1]})):jQuery(e).iCheck({radioClass:"iradio_"+icheck_skin.skin+"-"+icheck_skin.color}),jQuery(".woof_price_filter_radio").siblings("div").removeClass("checked"),jQuery(".woof_price_filter_radio").off("ifChecked"),jQuery(".woof_price_filter_radio").on("ifChecked",function(e){jQuery(this).attr("checked",!0),jQuery(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),jQuery(this).parents(".woof_list").find(".woof_radio_price_reset").hide(),jQuery(this).parents("li").eq(0).find(".woof_radio_price_reset").eq(0).addClass("woof_radio_term_reset_visible");var o=jQuery(this).val();-1==parseInt(o,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).removeAttr("checked"),jQuery(this).siblings(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible")):(o=o.split("-"),woof_current_values.min_price=o[0],woof_current_values.max_price=o[1],jQuery(this).siblings(".woof_radio_price_reset").addClass("woof_radio_term_reset_visible"),jQuery(this).attr("checked",!0)),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())})}else jQuery("body").on("change",".woof_price_filter_radio",function(){var e=jQuery(this).val();jQuery(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible"),-1==parseInt(e,10)?(delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).removeAttr("checked"),jQuery(this).siblings(".woof_radio_price_reset").removeClass("woof_radio_term_reset_visible")):(e=e.split("-"),woof_current_values.min_price=e[0],woof_current_values.max_price=e[1],jQuery(this).siblings(".woof_radio_price_reset").addClass("woof_radio_term_reset_visible"),jQuery(this).attr("checked",!0)),(woof_autosubmit||0==jQuery(this).within(".woof").length)&&woof_submit_link(woof_get_submit_link())});jQuery(".woof_radio_price_reset").on("click",function(){return delete woof_current_values.min_price,delete woof_current_values.max_price,jQuery(this).siblings("div").removeClass("checked"),jQuery(this).parents(".woof_list").find("input[type=radio]").removeAttr("checked"),jQuery(this).removeClass("woof_radio_term_reset_visible"),woof_autosubmit&&woof_submit_link(woof_get_submit_link()),!1})}function woof_serialize(e){for(var o,r,t=decodeURI(e).split("&"),_={},i=0,a=t.length;i<a;i++)if((r=(o=t[i].split("="))[0]).indexOf("[]")==r.length-2){var n=r.substring(0,r.length-2);void 0===_[n]&&(_[n]=[]),_[n].push(o[1])}else _[r]=o[1];return _}function woof_infinite(){if("undefined"!=typeof yith_infs_premium&&yith_infs_premium.options)return woof_change_ajax_next_link(),!1;if("undefined"!=typeof yith_infs){var e={nextSelector:".woocommerce-pagination li .next",navSelector:yith_infs.navSelector,itemSelector:yith_infs.itemSelector,contentSelector:yith_infs.contentSelector,loader:'<img src="'+yith_infs.loader+'">',is_shop:yith_infs.shop};woof_change_ajax_next_link(),jQuery(window).off("yith_infs_start"),jQuery(yith_infs.contentSelector).yit_infinitescroll(e)}}function woof_change_ajax_next_link(){if(!jQuery(".woocommerce-pagination li .next").length)return!1;var e=window.location.href.split("?"),o="";if(null!=e[1]){var r=woof_serialize(e[1]);delete r.paged,o=decodeURIComponent(jQuery.param(r))}var t=jQuery(".woocommerce-pagination li .next").attr("href");null==t&&(t=e+"page/1/");var _=t.split("?"),i="";if(null!=_[1]){var a=woof_serialize(_[1]);null!=a.paged&&(i="/page/"+a.paged+"/")}t=e[0].replace(/\/$/,"")+i+"?"+o,jQuery(".woocommerce-pagination li .next").attr("href",t)}function woof_change_link_addtocart(){woof_is_ajax&&jQuery(".add_to_cart_button").each(function(e,o){var r=jQuery(o).attr("href");if(r){var t=r.split("?"),_=window.location.href.split("?");null!=t[1]&&(r=_[0]+"?"+t[1],jQuery(o).attr("href",r))}})}function woof_front_number_format(e,o,r,t){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var _=isFinite(+e)?+e:0,i=isFinite(+o)?Math.abs(o):0,a=void 0===t?",":t,n=void 0===r?".":r,s="";return s=(i?function(e,o){var r=Math.pow(10,o);return""+(Math.round(e*r)/r).toFixed(o)}(_,i):""+Math.round(_)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(n)}function woof_supports_html5_storage(){if("undefined"!=typeof woof_save_state_checkbox&&0===woof_save_state_checkbox)return!1;try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function woof_init_tooltip(){jQuery(".woof .woof_tooltip_header").each(function(){var e=String(jQuery(this).attr("data-tooltip-content")||"");if(/^#[\w-]+$/.test(e)){var o=document.getElementById(e.slice(1));o&&jQuery(this).tooltipster({theme:"tooltipster-noir",side:"right",trigger:"click",content:jQuery(o)})}})}function woof_before_ajax_form_redrawing(){if("selectwoo"==woof_select_type)try{jQuery("select.woof_mselect").selectWoo("destroy"),jQuery("select.woof_meta_mselect").selectWoo("destroy")}catch(e){return!1}}function woof_reinit_selects(){if("chosen"==woof_select_type)try{jQuery("select.woof_select, select.woof_mselect").chosen("destroy").trigger("liszt:updated"),jQuery("select.woof_select, select.woof_mselect").chosen(),jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen("destroy").trigger("liszt:updated"),jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen()}catch(e){}else if("selectwoo"==woof_select_type)try{jQuery("select.woof_select, select.woof_mselect").selectWoo("destroy"),jQuery("select.woof_select, select.woof_mselect").selectWoo(),jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo("destroy"),jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo()}catch(e){}}function woof_init_mobile_filter(){var e=jQuery(".woof_show_mobile_filter"),o=jQuery(".woof_show_mobile_filter_container"),r=jQuery(woof_m_b_container);o.length||(o=r),e&&o&&jQuery(o).append(e),jQuery(".woof_show_mobile_filter").on("click",function(e){var o=jQuery(this).data("sid");jQuery(".woof.woof_sid_front_builder").length>0?(o="front_builder",jQuery(".woof.woof_sid_"+o).toggleClass("woof_show_filter_for_mobile")):jQuery(".woof.woof_sid_"+o).toggleClass("woof_show_filter_for_mobile"),setTimeout(function(){try{jQuery(".woof.woof_sid_"+o).find("select.woof_mselect").chosen("destroy"),jQuery(".woof.woof_sid_"+o).find("select.woof_select").chosen("destroy"),jQuery(".woof.woof_sid_"+o).find("select.woof_mselect").chosen(),jQuery(".woof.woof_sid_"+o).find("select.woof_select").chosen()}catch(e){}},300)}),jQuery(".woof_hide_mobile_filter").on("click",function(e){jQuery(this).parents(".woof").toggleClass("woof_show_filter_for_mobile")})}document.addEventListener("click",function(e){let o=document.querySelectorAll(".woof_auto_show"),r=e.target,t=!r.classList.contains("woof_sid");return t&&(t=!r.closest(".woof_sid")),r.classList.contains("woof_show_auto_form")||t&&Array.from(o).length>0&&Array.from(o).forEach(function(e){e.parentNode.querySelector(".woof_hide_auto_form")&&e.parentNode.querySelector(".woof_hide_auto_form").click()}),!0});
  • woocommerce-products-filter/trunk/js/tooltip/js/tooltipster.bundle.js

    r3553540 r3811939  
    535535
    536536                    if (selector) {
    537                         $el = $(selector);
     537                        $el = $(document).find(selector);
    538538                    }
    539539
  • woocommerce-products-filter/trunk/js/tooltip/js/tooltipster.bundle.min.js

    r3553540 r3811939  
    11"use strict";
    2 !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.7",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&false:c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),
     2!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.7",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(document).find(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&false:c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),
    33this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});
  • woocommerce-products-filter/trunk/readme.txt

    r3800257 r3811939  
    66Tested up to: 7.1
    77Requires PHP: 7.4
    8 Stable tag: 1.4.8
     8Stable tag: 1.4.9
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    191191
    192192== Changelog ==
     193
     194= 1.4.9 =
     195* Security fix. Thanks to Santh (Patchstack)
    193196
    194197= 1.4.8 =
Note: See TracChangeset for help on using the changeset viewer.