// source --> https://www.picchioallegro.com/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public.js?ver=1.8.2
CLI_ACCEPT_COOKIE_NAME =(typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy');
CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365);
CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
var CLI_Cookie={
set: function (name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else
var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
if(days<1)
{
host_name=window.location.hostname;
document.cookie = name + "=" + value + expires + "; path=/; domain=."+host_name+";";
if(host_name.indexOf("www")!=1)
{
var host_name_withoutwww=host_name.replace('www','');
document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name_withoutwww+";";
}
host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1));
document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name+";";
}
},
read: function (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
},
erase: function (name) {
this.set(name, "", -10);
},
exists: function (name) {
return (this.read(name) !== null);
},
getallcookies:function()
{
var pairs = document.cookie.split(";");
var cookieslist = {};
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split("=");
cookieslist[(pair[0] + '').trim()] = unescape(pair[1]);
}
return cookieslist;
}
}
var CLI=
{
bar_config:{},
showagain_config:{},
set:function(args)
{
if(typeof JSON.parse !== "function")
{
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
return;
}
this.settings = JSON.parse(args.settings);
this.bar_elm=jQuery(this.settings.notify_div_id);
this.showagain_elm = jQuery(this.settings.showagain_div_id);
/* buttons */
this.main_button=jQuery('.cli-plugin-main-button');
this.main_link = jQuery('.cli-plugin-main-link');
this.reject_link = jQuery('.cookie_action_close_header_reject');
this.delete_link=jQuery(".cookielawinfo-cookie-delete");
this.settings_button=jQuery('.cli_settings_button');
if(this.settings.cookie_bar_as=='popup')
{
CLI_COOKIEBAR_AS_POPUP=true;
}
this.configBar();
this.toggleBar();
this.attachDelete();
this.attachEvents();
this.configButtons();
var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();
if(this.settings.scroll_close===true && cli_hidebar_on_readmore===false)
{
window.addEventListener("scroll",CLI.closeOnScroll, false);
}
},
hideBarInReadMoreLink:function()
{
if(CLI.settings.button_2_hidebar===true && this.main_link.length>0 && this.main_link.hasClass('cli-minimize-bar'))
{
this.hideHeader();
this.showagain_elm.slideDown(this.settings.animate_speed_show);
return true;
}
return false;
},
attachEvents:function()
{
jQuery('.cli_action_button').click(function(e){
e.preventDefault();
var elm=jQuery(this);
var button_action=elm.attr('data-cli_action');
var open_link=elm[0].hasAttribute("href") && elm.attr("href") != '#' ? true : false;
var new_window=false;
if(button_action=='accept')
{
CLI.accept_close();
new_window=CLI.settings.button_1_new_win ? true : false;
}else if(button_action=='reject')
{
CLI.reject_close();
new_window=CLI.settings.button_3_new_win ? true : false;
}
if(open_link)
{
if(new_window)
{
window.open(elm.attr("href"),'_blank');
}else
{
window.location.href =elm.attr("href");
}
}
});
this.settingsPopUp();
this.settingsTabbedAccordion();
this.toggleUserPreferenceCheckBox();
},
toggleUserPreferenceCheckBox:function()
{
jQuery('.cli-user-preference-checkbox').each(function(){
if(jQuery(this).is(':checked'))
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE);
}else
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE);
}
});
jQuery('.cli-user-preference-checkbox').click(function(){
if(jQuery(this).is(':checked'))
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE);
}else
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE);
}
});
},
settingsPopUp:function()
{
jQuery('.cli_settings_button').click(function (e) {
e.preventDefault();
jQuery('#cliSettingsPopup').addClass("cli-show").css({'opacity':0}).animate({'opacity':1});
jQuery('#cliSettingsPopup').removeClass('cli-blowup cli-out').addClass("cli-blowup");
jQuery('body').addClass("cli-modal-open");
jQuery(".cli-settings-overlay").addClass("cli-show");
jQuery("#cookie-law-info-bar").css({'opacity':.1});
if(!jQuery('.cli-settings-mobile').is(':visible'))
{
jQuery('#cliSettingsPopup').find('.cli-nav-link:eq(0)').click();
}
});
jQuery('#cliModalClose').click(function(){
CLI.settingsPopUpClose();
});
jQuery("#cliSettingsPopup").click(function(e){
if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target)))
{
CLI.settingsPopUpClose();
}
});
jQuery('.cli_enable_all_btn').click(function(){
var cli_toggle_btn = jQuery(this);
var enable_text = cli_toggle_btn.attr('data-enable-text');
var disable_text= cli_toggle_btn.attr('data-disable-text');
if(cli_toggle_btn.hasClass('cli-enabled')){
CLI.disableAllCookies();
cli_toggle_btn.html(enable_text);
}
else
{
CLI.enableAllCookies();
cli_toggle_btn.html(disable_text);
}
jQuery(this).toggleClass('cli-enabled');
});
this.privacyReadmore();
},
settingsTabbedAccordion:function()
{
jQuery(".cli-tab-header").on("click", function(e) {
if(!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox')))
{
if (jQuery(this).hasClass("cli-tab-active")) {
jQuery(this).removeClass("cli-tab-active");
jQuery(this)
.siblings(".cli-tab-content")
.slideUp(200);
} else {
jQuery(".cli-tab-header").removeClass("cli-tab-active");
jQuery(this).addClass("cli-tab-active");
jQuery(".cli-tab-content").slideUp(200);
jQuery(this)
.siblings(".cli-tab-content")
.slideDown(200);
}
}
});
},
settingsPopUpClose:function()
{
jQuery('#cliSettingsPopup').removeClass('cli-show');
jQuery('#cliSettingsPopup').addClass('cli-out');
jQuery('body').removeClass("cli-modal-open");
jQuery(".cli-settings-overlay").removeClass("cli-show");
jQuery("#cookie-law-info-bar").css({'opacity':1});
},
privacyReadmore:function()
{
var el= jQuery('.cli-privacy-content .cli-privacy-content-text'),
clone= el.clone(),
originalHtml= clone.html(),
originalHeight= el.outerHeight(),
Trunc = {
addReadmore:function(textBlock)
{
if(textBlock.html().length > 250)
{
jQuery('.cli-privacy-readmore').show();
}
else
{
jQuery('.cli-privacy-readmore').hide();
}
},
truncateText : function( textBlock ) {
var strippedText = jQuery('
').html(textBlock.html());
strippedText.find('table').remove();
textBlock.html(strippedText.html());
while (textBlock.text().length > 250 )
{
textBlock.text(function(index, text) {
return text.replace(/\W*\s(\S)*$/, '...');
});
}
},
replaceText: function ( textBlock, original ){
return textBlock.html(original);
}
};
Trunc.addReadmore(el);
Trunc.truncateText(el);
jQuery('a.cli-privacy-readmore').click(function(e){
e.preventDefault();
if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed'))
{
Trunc.truncateText(el);
jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
el.css('height', '100%');
}
else
{
jQuery('.cli-privacy-overview').addClass('cli-collapsed');
Trunc.replaceText(el, originalHtml);
}
});
},
attachDelete:function()
{
this.delete_link.click(function () {
CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
return false;
});
},
configButtons:function()
{
/*[cookie_button] */
this.main_button.css('color',this.settings.button_1_link_colour);
if(this.settings.button_1_as_button)
{
this.main_button.css('background-color',this.settings.button_1_button_colour);
this.main_button.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_1_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_1_button_colour);
});
}
/* [cookie_link] */
this.main_link.css('color',this.settings.button_2_link_colour);
if(this.settings.button_2_as_button)
{
this.main_link.css('background-color',this.settings.button_2_button_colour);
this.main_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_2_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_2_button_colour);
});
}
/* [cookie_reject] */
this.reject_link.css('color',this.settings.button_3_link_colour);
if(this.settings.button_3_as_button)
{
this.reject_link.css('background-color',this.settings.button_3_button_colour);
this.reject_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_hover);
},function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_colour);
});
}
/* [cookie_settings] */
this.settings_button.css('color',this.settings.button_4_link_colour);
if(this.settings.button_4_as_button)
{
this.settings_button.css('background-color',this.settings.button_4_button_colour);
this.settings_button.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_4_button_hover);
},function () {
jQuery(this).css('background-color',CLI.settings.button_4_button_colour);
});
}
},
toggleBar:function()
{
if(CLI_COOKIEBAR_AS_POPUP)
{
this.barAsPopUp(1);
}
if(CLI.settings.cookie_bar_as=='widget')
{
this.barAsWidget(1);
}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME))
{
this.displayHeader();
}else
{
this.hideHeader();
}
if(this.settings.show_once_yn)
{
setTimeout(function(){
CLI.close_header();
},CLI.settings.show_once);
}
this.showagain_elm.click(function (e) {
e.preventDefault();
CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function()
{
CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
if(CLI_COOKIEBAR_AS_POPUP)
{
CLI.showPopupOverlay();
}
});
});
},
configShowAgain:function()
{
this.showagain_config = {
'background-color': this.settings.background,
'color':this.l1hs(this.settings.text),
'position': 'fixed',
'font-family': this.settings.font_family
};
if(this.settings.border_on)
{
var border_to_hide = 'border-' + this.settings.notify_position_vertical;
this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border);
this.showagain_config[border_to_hide] = 'none';
}
var cli_win=jQuery(window);
var cli_winw=cli_win.width();
var showagain_x_pos=this.settings.showagain_x_position;
if(cli_winw<300)
{
showagain_x_pos=10;
this.showagain_config.width=cli_winw-20;
}else
{
this.showagain_config.width='auto';
}
var cli_defw=cli_winw>400 ? 500 : cli_winw-20;
if(CLI_COOKIEBAR_AS_POPUP) /* cookie bar as popup */
{
var sa_pos=this.settings.popup_showagain_position;
var sa_pos_arr=sa_pos.split('-');
if(sa_pos_arr[1]=='left')
{
this.showagain_config.left=showagain_x_pos;
}else if(sa_pos_arr[1]=='right')
{
this.showagain_config.right=showagain_x_pos;
}
if(sa_pos_arr[0]=='top')
{
this.showagain_config.top=0;
}else if(sa_pos_arr[0]=='bottom')
{
this.showagain_config.bottom=0;
}
this.bar_config['position'] = 'fixed';
}else if(this.settings.cookie_bar_as=='widget')
{
this.showagain_config.bottom=0;
if(this.settings.widget_position=='left')
{
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.widget_position=='right')
{
this.showagain_config.right=showagain_x_pos;
}
}
else
{
if(this.settings.notify_position_vertical == "top")
{
this.showagain_config.top = '0';
}
else if(this.settings.notify_position_vertical == "bottom")
{
this.bar_config['position'] = 'fixed';
this.bar_config['bottom'] = '0';
this.showagain_config.bottom = '0';
}
if(this.settings.notify_position_horizontal == "left")
{
this.showagain_config.left =showagain_x_pos;
}else if(this.settings.notify_position_horizontal == "right")
{
this.showagain_config.right =showagain_x_pos;
}
}
this.showagain_elm.css(this.showagain_config);
},
configBar:function()
{
this.bar_config = {
'background-color':this.settings.background,
'color':this.settings.text,
'font-family':this.settings.font_family
};
if(this.settings.notify_position_vertical=="top")
{
this.bar_config['top'] = '0';
if(this.settings.header_fix === true)
{
this.bar_config['position'] = 'fixed';
}
}else
{
this.bar_config['bottom'] = '0';
}
this.configShowAgain();
this.bar_elm.css(this.bar_config).hide();
},
l1hs:function(str)
{
if (str.charAt(0) == "#") {
str = str.substring(1, str.length);
} else {
return "#" + str;
}
return this.l1hs(str);
},
close_header:function()
{
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
this.hideHeader();
},
accept_close:function()
{
this.hidePopupOverlay();
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}else
{
this.bar_elm.hide();
}
if(this.settings.showagain_tab)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(this.settings.accept_close_reload === true)
{
this.reload_current_page();
}
return false;
},
reject_close:function()
{
this.hidePopupOverlay();
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
} else
{
this.bar_elm.hide();
}
if(this.settings.showagain_tab)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(this.settings.reject_close_reload === true)
{
this.reload_current_page();
}
return false;
},
reload_current_page:function()
{
if(typeof cli_flush_cache!=='undefined' && cli_flush_cache==1)
{
window.location.href=this.add_clear_cache_url_query();
}else
{
window.location.reload(true);
}
},
add_clear_cache_url_query:function()
{
var cli_rand=new Date().getTime()/1000;
var cli_url=window.location.href;
var cli_hash_arr=cli_url.split('#');
var cli_urlparts= cli_hash_arr[0].split('?');
if(cli_urlparts.length>=2)
{
var cli_url_arr=cli_urlparts[1].split('&');
cli_url_temp_arr=new Array();
for(var cli_i=0; cli_i0 ? '&': '')+'cli_action=';
}else
{
cli_url=cli_hash_arr[0]+'?cli_action=';
}
cli_url+=cli_rand;
if(cli_hash_arr.length>1)
{
cli_url+='#'+cli_hash_arr[1];
}
return cli_url;
},
closeOnScroll:function()
{
if(window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME))
{
CLI.accept_close();
if(CLI.settings.scroll_close_reload === true)
{
window.location.reload();
}
window.removeEventListener("scroll",CLI.closeOnScroll,false);
}
},
displayHeader:function()
{
if(this.settings.notify_animate_show)
{
this.bar_elm.slideDown(this.settings.animate_speed_show);
}else
{
this.bar_elm.show();
}
this.showagain_elm.hide();
if(CLI_COOKIEBAR_AS_POPUP)
{
this.showPopupOverlay();
}
},
hideHeader:function()
{
if(this.settings.showagain_tab)
{
if(this.settings.notify_animate_show)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
} else {
this.showagain_elm.show();
}
}else
{
this.showagain_elm.hide();
}
this.bar_elm.slideUp(this.settings.animate_speed_show);
this.hidePopupOverlay();
},
hidePopupOverlay:function()
{
jQuery('body').removeClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").removeClass("cli-show");
},
showPopupOverlay:function()
{
if(this.settings.popup_overlay)
{
jQuery('body').addClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").addClass("cli-show");
}
},
barAsWidget:function(a)
{
var cli_elm=this.bar_elm;
var cli_win=jQuery(window);
var cli_winh=cli_win.height()-40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw>400 ? 300 : cli_winw-30;
cli_elm.css({
'width':cli_defw,'height':'auto','max-height':cli_winh,'padding':'25px 15px','overflow':'auto','position':'fixed','box-sizing':'border-box'
});
if(this.settings.widget_position=='left')
{
cli_elm.css({
'left':'15px','right':'auto','bottom':'15px','top':'auto'
});
}else
{
cli_elm.css({
'left':'auto','right':'15px','bottom':'15px','top':'auto'
});
}
if(a)
{
this.setResize();
}
},
barAsPopUp:function(a)
{
if(typeof cookie_law_info_bar_as_popup==='function')
{
return false;
}
var cli_elm=this.bar_elm;
var cli_win=jQuery(window);
var cli_winh=cli_win.height()-40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw>700 ? 500 : cli_winw-20;
cli_elm.css({
'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','padding':'25px 15px','overflow':'auto'
}).addClass('cli-bar-popup cli-modal-content');
cli_h=cli_elm.height();
li_h=cli_h<200 ? 200 : cli_h;
cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1});
setTimeout(function(){
cli_elm.css({
'bottom':''
});
},100);
if(a)
{
this.setResize();
}
},
setResize:function()
{
var resizeTmr=null;
jQuery(window).resize(function() {
clearTimeout(resizeTmr);
resizeTmr=setTimeout(function()
{
if(CLI_COOKIEBAR_AS_POPUP)
{
CLI.barAsPopUp();
}
if(CLI.settings.cookie_bar_as=='widget')
{
CLI.barAsWidget();
}
CLI.configShowAgain();
},500);
});
}
}
jQuery(document).ready(function() {
if(typeof cli_cookiebar_settings!='undefined')
{
CLI.set({
settings:cli_cookiebar_settings
});
}
});
// source --> https://www.picchioallegro.com/wp-content/plugins/responsive-lightbox/assets/swipebox/jquery.swipebox.min.js?ver=2.2.2
/*! Swipebox v1.4.4 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
!function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},j=this,k=[],l=e.selector,m=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),n=null!==m||b.createTouch!==d||"ontouchstart"in a||"onmsgesturechange"in a||navigator.msMaxTouchPoints,o=!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,p=a.innerWidth?a.innerWidth:c(a).width(),q=a.innerHeight?a.innerHeight:c(a).height(),r=0,s='';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?c(l).filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen(a)},build:function(){var a,b=this;c("body").append(s),o&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),m&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('')}),b.setDim(),b.actions(),n&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=p,d=q):(90===a.orientation||-90===a.orientation)&&(b=q,d=p)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a=m||i)){var q=.75-Math.abs(d)/s.height();s.css({top:d+"px"}),s.css({opacity:q}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/p,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/p,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?s.height():-s.height();s.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else s.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):q.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+r+"%, 0, 0)",transform:"translate3d("+r+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");r=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),n?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?(e.html(f.getVideo(b)),j.settings.afterMedia&&j.settings.afterMedia(a)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this),j.settings.afterMedia&&j.settings.afterMedia(a)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=decodeURIComponent(a),e.search&&(f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b=''):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b=''):b='','"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("
").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+1
0?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide(b)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(a){},prevSlide:function(a){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery);
// source --> https://www.picchioallegro.com/wp-content/plugins/responsive-lightbox/assets/infinitescroll/infinite-scroll.pkgd.min.js?ver=5.3.1
/*!
* Infinite Scroll PACKAGED v3.0.5
* Automatically add next page
*
* Licensed GPLv3 for open source use
* or Infinite Scroll Commercial License for commercial use
*
* https://infinite-scroll.com
* Copyright 2018 Metafizzy
*/
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,l){function a(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,a){var h=l.data(a,i);if(!h)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var c=h[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=c.apply(h,n);o=void 0===o?u:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=l.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),l.data(n,i,o))})}l=l||e||t.jQuery,l&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return a(this,t,e)}return h(this,t),this},n(l))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(i&&i.length){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?h.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),l&&(this.jqDeferred=new l.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var l=t.jQuery,a=t.console,h=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n