File "jquery.min.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/yith-woocommerce-compare/assets/js/jquery.min.js
File size: 11.42 KB
MIME-type: text/plain
Charset: utf-8

/*!
	Colorbox 1.6.1
	license: MIT
	http://www.jacklmoore.com/colorbox
*/
!function(d,c,g){function u(t,e,i){t=c.createElement(t);return e&&(t.id=O+e),i&&(t.style.cssText=i),d(t)}function N(){return g.innerHeight||d(g).height()}function z(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=d(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==ot[t]&&(this.cache[t]=ot[t])),this.cache[t]},this.get=function(t){t=this.value(t);return d.isFunction(t)?t.call(this.el,this):t}}function a(t){var e=b.length,t=(M+t)%e;return t<0?e+t:t}function p(t,e){return Math.round((/%/.test(t)?("x"===e?T.width():N())/100:1)*parseInt(t,10))}function A(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function U(t,e){return t.get("retinaUrl")&&1<g.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function $(t){"contains"in v[0]&&!v[0].contains(t.target)&&t.target!==w[0]&&(t.stopPropagation(),v.focus())}function f(t){f.str!==t&&(v.add(w).removeClass(f.str).addClass(t),f.str=t)}function m(t){d(c).trigger(t),j.triggerHandler(t)}function o(t){var e,i,n,o,h,r,a,s,l;K||(i=d(t).data(B),H=new z(t,i),l=H.get("rel"),M=0,l&&!1!==l&&"nofollow"!==l?(b=d("."+_).filter(function(){return new z(this,d.data(this,B)).get("rel")===l}),-1===(M=b.index(H.el))&&(b=b.add(H.el),M=b.length-1)):b=d(H.el),F||(F=R=!0,f(H.get("className")),v.css({visibility:"hidden",display:"block",opacity:""}),C=u(D,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),x.css({width:"",height:""}).append(C),W=q.height()+J.height()+x.outerHeight(!0)-x.height(),E=G.width()+Q.width()+x.outerWidth(!0)-x.width(),I=C.outerHeight(!0),L=C.outerWidth(!0),t=p(H.get("initialWidth"),"x"),i=p(H.get("initialHeight"),"y"),n=H.get("maxWidth"),e=H.get("maxHeight"),H.w=(!1!==n?Math.min(t,p(n,"x")):t)-L-E,H.h=(!1!==e?Math.min(i,p(e,"y")):i)-I-W,C.css({width:"",height:H.h}),P.position(),m(ht),H.get("onOpen"),Z.add(X).hide(),v.focus(),H.get("trapFocus")&&c.addEventListener&&(c.addEventListener("focus",$,!0),j.one(lt,function(){c.removeEventListener("focus",$,!0)})),H.get("returnFocus")&&j.one(lt,function(){d(H.el).focus()})),n=parseFloat(H.get("opacity")),w.css({opacity:n==n?n:"",cursor:H.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),H.get("closeButton")?Y.html(H.get("close")).appendTo(x):Y.appendTo("<div/>"),a=P.prep,s=++ct,S=!(R=!0),m(dt),m(rt),H.get("onLoad"),H.h=H.get("height")?p(H.get("height"),"y")-I-W:H.get("innerHeight")&&p(H.get("innerHeight"),"y"),H.w=H.get("width")?p(H.get("width"),"x")-L-E:H.get("innerWidth")&&p(H.get("innerWidth"),"x"),H.mw=H.w,H.mh=H.h,H.get("maxWidth")&&(H.mw=p(H.get("maxWidth"),"x")-L-E,H.mw=H.w&&H.w<H.mw?H.w:H.mw),H.get("maxHeight")&&(H.mh=p(H.get("maxHeight"),"y")-I-W,H.mh=H.h&&H.h<H.mh?H.h:H.mh),t=H.get("href"),tt=setTimeout(function(){V.show()},100),H.get("inline")?(o=d(t),r=d("<div>").hide().insertBefore(o),j.one(dt,function(){r.replaceWith(o)}),a(o)):H.get("iframe")?a(" "):H.get("html")?a(H.get("html")):A(H,t)?(t=U(H,t),S=H.get("createImg"),d(S).addClass(O+"Photo").bind("error."+O,function(){a(u(D,"Error").html(H.get("imgError")))}).one("load",function(){s===ct&&setTimeout(function(){var t;H.get("retinaImage")&&1<g.devicePixelRatio&&(S.height=S.height/g.devicePixelRatio,S.width=S.width/g.devicePixelRatio),H.get("scalePhotos")&&(h=function(){S.height-=S.height*t,S.width-=S.width*t},H.mw&&S.width>H.mw&&(t=(S.width-H.mw)/S.width,h()),H.mh)&&S.height>H.mh&&(t=(S.height-H.mh)/S.height,h()),H.h&&(S.style.marginTop=Math.max(H.mh-S.height,0)/2+"px"),b[1]&&(H.get("loop")||b[M+1])&&(S.style.cursor="pointer",d(S).bind("click."+O,function(){P.next()})),S.style.width=S.width+"px",S.style.height=S.height+"px",a(S)},1)}),S.src=t):t&&k.load(t,H.get("data"),function(t,e){s===ct&&a("error"===e?u(D,"Error").html(H.get("xhrError")):d(this).contents())}))}function s(){v||(et=!1,T=d(g),v=u(D).attr({id:B,"class":!1===d.support.opacity?O+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=u(D,"Overlay").hide(),V=d([u(D,"LoadingOverlay")[0],u(D,"LoadingGraphic")[0]]),y=u(D,"Wrapper"),x=u(D,"Content").append(X=u(D,"Title"),l=u(D,"Current"),r=d('<button type="button"/>').attr({id:O+"Previous"}),h=d('<button type="button"/>').attr({id:O+"Next"}),t=u("button","Slideshow"),V),Y=d('<button type="button"/>').attr({id:O+"Close"}),y.append(u(D).append(u(D,"TopLeft"),q=u(D,"TopCenter"),u(D,"TopRight")),u(D,!1,"clear:left").append(G=u(D,"MiddleLeft"),x,Q=u(D,"MiddleRight")),u(D,!1,"clear:left").append(u(D,"BottomLeft"),J=u(D,"BottomCenter"),u(D,"BottomRight"))).find("div div").css({"float":"left"}),k=u(D,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),Z=h.add(r).add(l).add(t)),c.body&&!v.parent().length&&d(c.body).append(w,v.append(y,k))}var w,v,y,x,q,G,Q,J,b,T,C,k,V,X,l,t,h,r,Y,Z,H,W,E,I,L,M,S,F,R,K,tt,P,et,n,it,e,nt,ot={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return d(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=d(this).data("cbox-img-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=c.createElement("iframe"),t=d(this).data("cbox-iframe-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullScreen=!0,i}},B="colorbox",O="cbox",_=O+"Element",ht=O+"_open",rt=O+"_load",at=O+"_complete",st=O+"_cleanup",lt=O+"_closed",dt=O+"_purge",j=d("<a/>"),D="div",ct=0,gt={},ut=(e=O+"Slideshow_",nt="click."+O,function(){n?H.get("slideshow")||(j.unbind(st,wt),wt()):H.get("slideshow")&&b[1]&&(n=!0,j.one(st,wt),(H.get("slideshowAuto")?ft:mt)(),t.show())});function i(){clearTimeout(it)}function pt(){(H.get("loop")||b[M+1])&&(i(),it=setTimeout(P.next,H.get("slideshowSpeed")))}function ft(){t.html(H.get("slideshowStop")).unbind(nt).one(nt,mt),j.bind(at,pt).bind(rt,i),v.removeClass(e+"off").addClass(e+"on")}function mt(){i(),j.unbind(at,pt).unbind(rt,i),t.html(H.get("slideshowStart")).unbind(nt).one(nt,function(){P.next(),ft()}),v.removeClass(e+"on").addClass(e+"off")}function wt(){n=!1,t.hide(),i(),j.unbind(at,pt).unbind(rt,i),v.removeClass(e+"off "+e+"on")}d[B]||(d(s),(P=d.fn[B]=d[B]=function(e,t){var i=this;return e=e||{},d.isFunction(i)&&(i=d("<a/>"),e.open=!0),i[0]&&(s(),v)&&(et||(et=!0,h.click(function(){P.next()}),r.click(function(){P.prev()}),Y.click(function(){P.close()}),w.click(function(){H.get("overlayClose")&&P.close()}),d(c).bind("keydown."+O,function(t){var e=t.keyCode;F&&H.get("escKey")&&27===e&&(t.preventDefault(),P.close()),F&&H.get("arrowKey")&&b[1]&&!t.altKey&&(37===e?(t.preventDefault(),r.click()):39===e&&(t.preventDefault(),h.click()))}),d.isFunction(d.fn.on)?d(c).on("click."+O,"."+_,n):d("."+_).live("click."+O,n)),1)&&(t&&(e.onComplete=t),i.each(function(){var t=d.data(this,B)||{};d.data(this,B,d.extend(t,e))}).addClass(_),new z(i[0],e).get("open")&&o(i[0])),i;function n(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),o(this))}}).position=function(e,t){function i(){q[0].style.width=J[0].style.width=x[0].style.width=parseInt(v[0].style.width,10)-E+"px",x[0].style.height=G[0].style.height=Q[0].style.height=parseInt(v[0].style.height,10)-W+"px"}var n,o,h,r,a=0,s=0,l=v.offset();T.unbind("resize."+O),v.css({top:-9e4,left:-9e4}),o=T.scrollTop(),h=T.scrollLeft(),H.get("fixed")?(l.top-=o,l.left-=h,v.css({position:"fixed"})):(a=o,s=h,v.css({position:"absolute"})),s+=!1!==H.get("right")?Math.max(T.width()-H.w-L-E-p(H.get("right"),"x"),0):!1!==H.get("left")?p(H.get("left"),"x"):Math.round(Math.max(T.width()-H.w-L-E,0)/2),a+=!1!==H.get("bottom")?Math.max(N()-H.h-I-W-p(H.get("bottom"),"y"),0):!1!==H.get("top")?p(H.get("top"),"y"):Math.round(Math.max(N()-H.h-I-W,0)/2),v.css({top:l.top,left:l.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",n={width:H.w+L+E,height:H.h+I+W,top:a,left:s},e&&(r=0,d.each(n,function(t){return n[t]!==gt[t]?void(r=e):void 0}),e=r),gt=n,e||v.css(n),v.dequeue().animate(n,{duration:e||0,complete:function(){i(),R=!1,y[0].style.width=H.w+L+E+"px",y[0].style.height=H.h+I+W+"px",H.get("reposition")&&setTimeout(function(){T.bind("resize."+O,P.position)},1),d.isFunction(t)&&t()},step:i})},P.resize=function(t){var e;F&&((t=t||{}).width&&(H.w=p(t.width,"x")-L-E),t.innerWidth&&(H.w=p(t.innerWidth,"x")),C.css({width:H.w}),t.height&&(H.h=p(t.height,"y")-I-W),t.innerHeight&&(H.h=p(t.innerHeight,"y")),t.innerHeight||t.height||(e=C.scrollTop(),C.css({height:"auto"}),H.h=C.height()),C.css({height:H.h}),e&&C.scrollTop(e),P.position("none"===H.get("transition")?0:H.get("speed")))},P.prep=function(t){var e,o;F&&(o="none"===H.get("transition")?0:H.get("speed"),C.remove(),(C=u(D,"LoadedContent").append(t)).hide().appendTo(k.show()).css({width:(H.w=H.w||C.width(),H.w=H.mw&&H.mw<H.w?H.mw:H.w,H.w),overflow:H.get("scrolling")?"auto":"hidden"}).css({height:(H.h=H.h||C.height(),H.h=H.mh&&H.mh<H.h?H.mh:H.h,H.h)}).prependTo(x),k.hide(),d(S).css({"float":"none"}),f(H.get("className")),e=function(){function t(){!1===d.support.opacity&&v[0].style.removeAttribute("filter")}var e,i,n=b.length;F&&(i=function(){clearTimeout(tt),V.hide(),m(at),H.get("onComplete")},X.html(H.get("title")).show(),C.show(),1<n?("string"==typeof H.get("current")&&l.html(H.get("current").replace("{current}",M+1).replace("{total}",n)).show(),h[H.get("loop")||M<n-1?"show":"hide"]().html(H.get("next")),r[H.get("loop")||M?"show":"hide"]().html(H.get("previous")),ut(),H.get("preloading")&&d.each([a(-1),a(1)],function(){var t=b[this],t=new z(t,d.data(t,B)),e=t.get("href");e&&A(t,e)&&(e=U(t,e),c.createElement("img").src=e)})):Z.hide(),H.get("iframe")?(e=H.get("createIframe"),H.get("scrolling")||(e.scrolling="no"),d(e).attr({src:H.get("href"),"class":O+"Iframe"}).one("load",i).appendTo(C),j.one(dt,function(){e.src="//about:blank"}),H.get("fastIframe")&&d(e).trigger("load")):i(),"fade"===H.get("transition")?v.fadeTo(o,1,t):t())},"fade"===H.get("transition")?v.fadeTo(o,0,function(){P.position(0,e)}):P.position(o,e))},P.next=function(){!R&&b[1]&&(H.get("loop")||b[M+1])&&(M=a(1),o(b[M]))},P.prev=function(){!R&&b[1]&&(H.get("loop")||M)&&(M=a(-1),o(b[M]))},P.close=function(){F&&!K&&(F=!(K=!0),m(st),H.get("onCleanup"),T.unbind("."+O),w.fadeTo(H.get("fadeOut")||0,0),v.stop().fadeTo(H.get("fadeOut")||0,0,function(){v.hide(),w.hide(),m(dt),C.remove(),setTimeout(function(){K=!1,m(lt),H.get("onClosed")},1)}))},P.remove=function(){v&&(v.stop(),d[B].close(),v.stop(!1,!0).remove(),w.remove(),K=!1,v=null,d("."+_).removeData(B).removeClass(_),d(c).unbind("click."+O).unbind("keydown."+O))},P.element=function(){return d(H.el)},P.settings=ot)}(jQuery,document,window);