text: /* jQuery Slideshow Plugin for WYSIWYG Web Builder 12 - Copyright Pablo Software solutions 2017 - http://www.wysiwygwebbuilder.com */
  (function(a){a.fn.slideshow=function(b){return this.each(function(){a.slideshow(this,b)})};a.slideshow=function(b,c){var d={effect:"none",effectlength:2E3,easing:"linear",fullscreen:0,direction:"",count:8,interval:2E3,type:"sequence",pagination:!0,pagination_img_default:"",pagination_img_active:"",param:null,maxItems:10,maxWidth:800,current:1,last:0,captionShow:{},captionHide:{},instagramId:"",instagramToken:""};if(c&&"string"==typeof c)if("nextimage"==c)a.slideshow.killTimer(b),a.slideshow.nextimage(b);
  else if("previmage"==c)a.slideshow.killTimer(b),a.slideshow.previmage(b);else if("stop"==c){a.slideshow.killTimer(b);var e=a(b).data("state");e.interval=0}else"start"==c&&(a.slideshow.killTimer(b),e=a(b).data("state"),0==e.interval&&(e.interval=4E3),e.current==e.last&&a.slideshow.next(e),a.slideshow.imagetransition(b));else if(c&&(e=a.extend(d,c)),""!=e.instagramId){var g="UL"==b.tagName;a.ajax({url:"https://api.instagram.com/v1/users/"+e.instagramId+"/media/recent/?access_token="+e.instagramToken+
  "&count="+e.maxItems,crossDomain:!0,dataType:"jsonp"}).done(function(c){var d="";a.each(c.data,function(a,b){var e=null==c.data[a].caption||void 0==c.data[a].caption?Date(c.data[a].created_time):c.data[a].caption.text+" - "+Date(c.data[a].created_time);g&&(d+="<li>");d+='<a href="'+c.data[a].link+'" title="'+e+'">';d+='<img class="image" src="'+c.data[a].images.standard_resolution.url.replace(/\\/,"")+'" alt="" title="'+e+'">';d+="</a>";g&&(d+="</li>")});a(b).append(d);a(b).find(".image:not(:first)").hide();
  a.slideshow.init(b,e)})}else a.slideshow.init(b,e)};a.slideshow.init=function(b,c){var d=a(".caption_text").length;c.images=a(b).find(".image");a.each(c.images,function(b){a(c.images[b]).css("zIndex",0).css("position","absolute").css("top","0").css("left","0");d&&(a(c.images[b]).data("title",a(c.images[b]).attr("title")),a(c.images[b]).removeAttr("title"))});c.random=!1;c.reverse=!1;"random"==c.effect&&(c.random=!0);"flip-x"!=c.effect&&"flip-y"!=c.effect||c.images.css({"-webkit-backface-visibility":"hidden",
  "-moz-backface-visibility":"hidden","-o-backface-visibility":"hidden","backface-visibility":"hidden"});a(b).data("state",c);a.isEmptyObject(c.captionShow)||a(b).mouseover(function(){c.captionShow.hasOwnProperty("visibility")?a(b).find(".caption_background").show():a(b).find(".caption_background").stop().animate(c.captionShow,500)});a.isEmptyObject(c.captionHide)||(a(b).find(".caption_background").stop().css(c.captionHide),a(b).mouseout(function(){c.captionHide.hasOwnProperty("visibility")?a(b).find(".caption_background").hide():
  a(b).find(".caption_background").stop().animate(c.captionHide,500)}));var e=c.interval;"kenburns"==c.effect&&(e=1);0!=e?(e=setTimeout(function(){a.slideshow.imagetransition(b)},e),a(b).data("timerId",e)):"random"==c.type&&(a.slideshow.next(c),a.slideshow.gotoImage(b,c.current));0!=c.fullscreen&&(a(window).resize(function(){a.slideshow.resize(b)}),a(window).load(function(){a.slideshow.resize(b)}));if(c.pagination){$pagination=a('<div class="pagination" />');for(var e=a(b).find(".image").get(),g=0;g<
  e.length;g++){var f=a("<a />").attr("id",String(g+1)).css("cursor","pointer");a("<img />").attr({id:"page_"+String(g+1),src:c.pagination_img_default}).appendTo(f);f.click(function(){a.slideshow.gotoImage(b,a(this).attr("id"))});f.appendTo($pagination)}$pagination.appendTo(a(b));a.slideshow.updateNavigation(b,0,c.last)}setTimeout(function(){a(b).trigger("activate",0)},10)};a.slideshow.killTimer=function(b){b=a(b).data("timerId");clearInterval(b)};a.slideshow.updateNavigation=function(b,c,d){var e=
  a(b).data("state");a(b).parent().find(".pagination img:eq("+c+")").attr("src",e.pagination_img_default);a(b).parent().find(".pagination img:eq("+d+")").attr("src",e.pagination_img_active)};a.slideshow.transformRotate=function(b,c,d){a(b).css({"-webkit-transform":"rotate"+c+"("+d+"deg)","-moz-transform":"rotate"+c+"("+d+"deg)","-ms-transform":"rotate"+c+"("+d+"deg)","-o-transform":"rotate"+c+"("+d+"deg)",transform:"rotate"+c+"("+d+"deg)"})};a.slideshow.gotoImage=function(b,c){a.slideshow.killTimer(b);
  var d=a(b).data("state");0!=d.interval&&(d.current--,0>d.current&&(d.current=d.images.length-1));c-1!=d.current&&(0==d.interval&&(d.last=d.current),d.current=Math.min(c-1,d.images.length-1),d.interval=0,d.pagination&&a.slideshow.updateNavigation(b,d.last,d.current),a.slideshow.imagetransition(b),d.last=d.current)};a.slideshow.nextimage=function(b){state=a(b).data("state");0!=state.interval&&(state.current=state.last);state.interval=0;a.slideshow.next(state);a.slideshow.imagetransition(b)};a.slideshow.previmage=
  function(b){state=a(b).data("state");0!=state.interval&&(state.current=state.last);state.interval=0;0<=state.current-1?(--state.current,state.last=state.current+1):(state.current=state.images.length-1,state.last=0);a.slideshow.imagetransition(b)};a.slideshow.next=function(a){if("sequence"==a.type)a.current+1<a.images.length?(a.current+=1,a.last=a.current-1):(a.current=0,a.last=a.images.length-1);else if("random"==a.type)for(a.last=a.current;a.current==a.last;)a.current=Math.floor(Math.random()*a.images.length)};
  a.slideshow.imagetransition=function(b){state=a(b).data("state");if(state.random){var c="fade slide puff blind drop zoom clip shuffle blast blocks rain swirl squares bars".split(" "),d=["left","up","down","right"],e=["horizontal","vertical"];state.effect=c[Math.floor(Math.random()*c.length)];if("slide"==state.effect||"drop"==state.effect)state.direction=d[Math.floor(Math.random()*d.length)];if("clip"==state.effect||"blinds"==state.effect||"bars"==state.effect)state.direction=e[Math.floor(Math.random()*
  e.length)]}for(c=0;c<state.images.length;c++)a(state.images[c]).css("display","none");a(state.images[state.last]).css("display","block").css("zIndex","0");state.active=state.current;state.pagination&&a.slideshow.updateNavigation(b,state.last,state.current);if("none"==state.effect)a(state.images[state.current]).css("zIndex","1").show(),a(state.images[state.last]).css("display","none"),a(b).trigger("activate",state.current);else if("fade"==state.effect)a(state.images[state.last]).fadeOut(state.effectlength),
  a(state.images[state.current]).css("zIndex","1").css("display","block").hide().fadeIn(state.effectlength,function(){a(b).trigger("activate",state.active)});else if("slide"==state.effect)a(state.images[state.current]).css("zIndex","1").show("slide",{direction:state.direction,easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("puff"==state.effect)a(state.images[state.current]).css("zIndex","1").show("puff",{easing:state.easing},state.effectlength,function(){a(b).trigger("activate",
  state.active)});else if("blind"==state.effect)a(state.images[state.current]).css("zIndex","1").show("blind",{direction:state.direction,easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("clip"==state.effect)a(state.images[state.current]).css("zIndex","1").show("clip",{direction:state.direction,easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("drop"==state.effect)a(state.images[state.current]).css("zIndex",
  "1").show("drop",{direction:state.direction,easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("fold"==state.effect)a(state.images[state.current]).css("zIndex","1").show("fold",{easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("kenburns"==state.effect){var d=a(b).outerWidth(),c=a(b).outerHeight(),e=Math.ceil(d/10),g=d,f=c,h=Math.floor(4*Math.random()),k=Math.floor(2*Math.random()),l=1;g<d+e?l=f<c+e?Math.max((c+
  e)/f,(d+e)/g):(d+e)/g:f<c+e&&(l=(c+e)/f);g*=l;f*=l;0==h||3==h?(leftStart=-e,leftEnd=d-g+e):(leftStart=d-g+e,leftEnd=-e);1==h||3==h?(topStart=-e,topEnd=c-f+e):(topStart=c-f+e,topEnd=-e);1==k?(widthStart=1.2*g,widthEnd=g,heightStart=1.2*f,heightEnd=f):(widthStart=g,widthEnd=1.2*g,heightStart=f,heightEnd=1.2*f);a(state.images[state.current]).css("display","block").css("zIndex","1").css({opacity:0,position:0==state.fullscreen||4==state.fullscreen||5==state.fullscreen||6==state.fullscreen?"absolute":"fixed",
  left:Math.ceil(leftStart),top:Math.ceil(topStart),width:Math.ceil(widthStart),height:Math.ceil(heightStart)}).animate({opacity:1},2E3).animate({left:Math.ceil(leftEnd),top:Math.ceil(topEnd),width:Math.ceil(widthEnd),height:Math.ceil(heightEnd)},{duration:state.effectlength+2E3,queue:!1}).css({width:d,height:c});a(b).trigger("activate",state.active)}else if("zoom"==state.effect)e=a(state.images[state.last]).outerWidth(),g=a(state.images[state.last]).outerHeight(),d=a(b).outerWidth(),c=a(b).outerHeight(),
  d=(d-e)/2,f=(c-g)/2,0!=state.fullscreen&&(f=0),c={top:f,left:d,width:e,height:g},d={width:0,height:0,top:f+g/2,left:d+e/2},a(state.images[state.current]).animate(d,0,null),a(state.images[state.current]).css("display","block").css("zIndex","1"),a(state.images[state.current]).animate(c,state.effectlength,function(){a(b).trigger("activate",state.active)});else if("zoominout"==state.effect)e=a(state.images[state.last]).outerWidth(),g=a(state.images[state.last]).outerHeight(),d=a(b).outerWidth(),c=a(b).outerHeight(),
  d=(d-e)/2,f=(c-g)/2,0!=state.fullscreen&&(f=0),c={top:f,left:d,width:e,height:g},d={width:0,height:0,top:f+g/2,left:d+e/2},a(state.images[state.last]).animate(d,state.effectlength,null),a(state.images[state.current]).animate(d,0,null),a(state.images[state.current]).css("display","block").css("zIndex","1"),a(state.images[state.current]).animate(c,state.effectlength,function(){a(b).trigger("activate",state.active)});else{if("shuffle"==state.effect){c=a(b).outerWidth();d=a(b).outerHeight();a(state.images[state.last]).css("zIndex",
  "1");a(state.images[state.current]).css("zIndex","0");a(state.images[state.current]).show();a(state.images[state.current]).animate({translateX:c,translateY:-d,rotate:45},{duration:state.effectlength/2,easing:state.easing,queue:!0,complete:function(){a(state.images[state.last]).css("zIndex","0");a(state.images[state.current]).css("zIndex","1");a(state.images[state.current]).animate({rotate:"0deg",translateX:"0",translateY:"0"},{duration:state.effectlength/2,easing:state.easing,queue:!0,complete:function(){var c=
  a(state.images[state.current]).data("title");a(b).find(".caption_text").text(c);a(b).trigger("activate",state.active);0!=state.interval&&(a.slideshow.next(state),c=setTimeout(function(){a.slideshow.imagetransition(b)},state.interval),a(b).data("timerId",c))}})}});return}if("rotate"==state.effect)a(state.images[state.last]).animate({rotate:180,scale:10,opacity:"hide"},{duration:state.effectlength,easing:state.easing}),a(state.images[state.current]).css("zIndex","1"),a(state.images[state.current]).css({scale:10,
  rotate:-180}),a(state.images[state.current]).animate({opacity:"show",rotate:0,scale:1},{duration:state.effectlength,easing:state.easing,complete:function(){a(b).trigger("activate",state.active)}});else if("newspaper"==state.effect)a(state.images[state.last]).animate({opacity:"hide"},{duration:state.effectlength,easing:state.easing}),a(state.images[state.current]).css("zIndex","1"),a(state.images[state.current]).css({scale:0,rotate:720}),a(state.images[state.current]).animate({opacity:"show",rotate:0,
  scale:1},{duration:state.effectlength,easing:state.easing,complete:function(){a(b).trigger("activate",state.active)}});else if("blast"==state.effect)a(state.images[state.last]).css("zIndex","1"),a(state.images[state.last]).css("zIndex","0"),a(state.images[state.last]).hide(state.effect,{easing:state.easing,pieces:16},state.effectlength),a(state.images[state.last]).css("visibility","visible"),a(state.images[state.current]).show(state.effect,{easing:state.easing,pieces:16},state.effectlength,function(){a(b).trigger("activate",
  state.active)});else if("explode"==state.effect)a(state.images[state.last]).css("zIndex","1"),a(state.images[state.last]).css("zIndex","0"),a(state.images[state.last]).hide(state.effect,{easing:state.easing,pieces:25},state.effectlength),a(state.images[state.last]).css("visibility","visible"),a(state.images[state.current]).show("fade",{},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("blocks"==state.effect)a(state.images[state.current]).css("zIndex","1").show("squares",
  {easing:state.easing,fx:"random"},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("rain"==state.effect)a(state.images[state.current]).css("zIndex","1").show("squares",{easing:state.easing,fx:"rain",reverse:state.reverse},state.effectlength,function(){a(b).trigger("activate",state.active)}),state.reverse=!state.reverse;else if("swirl"==state.effect)a(state.images[state.current]).css("zIndex","1").show("squares",{easing:state.easing,fx:"swirl",reverse:state.reverse},state.effectlength,
  function(){a(b).trigger("activate",state.active)}),state.reverse=!state.reverse;else if("squares"==state.effect)a(state.images[state.current]).css("zIndex","1").show("squares",{easing:state.easing,fx:"none",reverse:state.reverse},state.effectlength,function(){a(b).trigger("activate",state.active)}),state.reverse=!state.reverse;else if("blockscale"==state.effect)a(state.images[state.current]).css("zIndex","1").show("squares",{easing:state.easing,fx:"blockscale",reverse:state.reverse},state.effectlength,
  function(){a(b).trigger("activate",state.active)}),state.reverse=!state.reverse;else if("bars"==state.effect)a(state.images[state.current]).css("zIndex","1").show("bars",{pieces:state.count,direction:state.direction,easing:state.easing},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("bounce"==state.effect)a(state.images[state.current]).css("zIndex","1").show("bounce",{direction:state.direction},state.effectlength,function(){a(b).trigger("activate",state.active)});else if("css-animation"==
  state.effect){var q=a(b).attr("id")+"_ShowAnimation",r=a(b).attr("id")+"_HideAnimation";a(state.images[state.last]).addClass(r);a(state.images[state.last]).one("webkitAnimationEnd msAnimationEnd oAnimationEnd animationend",function(b){a(this).removeClass(r);a(this).css("visibility","hidden")});a(state.images[state.current]).css("display","block").addClass(q).css("visibility","visible").show();a(state.images[state.current]).one("webkitAnimationEnd msAnimationEnd oAnimationEnd animationend",function(b){a(this).removeClass(q)});
  a(b).trigger("activate",state.current)}else if("flip-x"==state.effect||"flip-y"==state.effect){var n=state.last,m=state.current,p="flip-x"==state.effect?"X":"Y";a.slideshow.transformRotate(state.images[m],p,-90);a(state.images[m]).css({display:"block","background-position":"-90px"});a(state.images[n]).css("background-position","0px");a(state.images[n]).animate({backgroundPosition:90},{step:function(b){a.slideshow.transformRotate(state.images[n],p,b)},duration:state.effectlength/2,easing:state.easing,
  complete:function(){a(state.images[m]).animate({backgroundPosition:0},{step:function(b){a.slideshow.transformRotate(state.images[m],p,b)},duration:state.effectlength/2,easing:state.easing})}})}else a(state.images[state.current]).css("zIndex","1").show(state.effect,{},state.effectlength,function(){a(b).trigger("activate",state.active)})}c=a(state.images[state.current]).data("title");a(b).find(".caption_text").text(c);0!=state.interval&&(a.slideshow.next(state),c=setTimeout(function(){a.slideshow.imagetransition(b)},
  state.interval),a(b).data("timerId",c))};a.slideshow.resize=function(b){var c=a(b).data("state"),d=0,e=0;"undefined"!=typeof window.innerWidth?(d=window.innerWidth,e=window.innerHeight):"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(d=document.documentElement.clientWidth,e=document.documentElement.clientHeight):(d=document.getElementsByTagName("body")[0].clientWidth,e=document.getElementsByTagName("body")[0].clientHeight);
  4==c.fullscreen?(d=a(b).parent().width(),e=a(b).parent().height()):5==c.fullscreen?(d=a(b).parent().width(),e=a(b).height(),a(b).css("overflow","hidden")):6==c.fullscreen&&(d=a(b).width(),e=a(b).height());"kenburns"==c.effect&&5!=c.fullscreen&&(c.fullscreen=1);1==c.fullscreen&&a(b).css("height",e);a(b).css("width","100%");a(b).css("left","0");5!=c.fullscreen&&a(b).css("top","0");a(b).find(".image").each(function(){var g=e,f=d,h=0,k=0;4==c.fullscreen||6==c.fullscreen?(f>c.maxWidth&&(f=c.maxWidth),
  a(this).css({height:"auto",width:f+"px"}),a(this).css({position:"absolute",left:h+"px",top:k+"px"}),a(b).css("height",a(this).height()),d>f&&(h=(d-a(this).width())/2,a(this).css({left:h+"px"}))):((5==c.fullscreen?!(f/g<a(this).width()/a(this).height()):f/g>a(this).width()/a(this).height())?1==c.fullscreen?a(this).css({height:g+"px",width:"auto"}):2!=c.fullscreen&&5!=c.fullscreen||a(this).css({height:"auto",width:f+"px"}):1==c.fullscreen?a(this).css({height:"auto",width:f+"px"}):2!=c.fullscreen&&5!=
  c.fullscreen||a(this).css({height:g+"px",width:"auto"}),1==c.fullscreen?(h=(d-a(this).width())/2,k=(e-a(this).height())/2):3==c.fullscreen&&a(this).css({height:g+"px",width:f+"px"}),5!=c.fullscreen&&a(this).css({position:"fixed",left:h+"px",top:k+"px"}))})}})(jQuery);