function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}!function(t,e,o){var i,n,r,h,a,s,c,l,d,g,f,u,p,m,w,x,y,v,b,T,C,I,H,E,k,S,W,M,L,_,R,K,O,P={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 t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,o=t(this).data("cbox-img-attrs");return"object"===_typeof(o)&&t.each(o,(function(t,o){e[t]=o})),e},createIframe:function(){var o=e.createElement("iframe"),i=t(this).data("cbox-iframe-attrs");return"object"===_typeof(i)&&t.each(i,(function(t,e){o[t]=e})),"frameBorder"in o&&(o.frameBorder=0),"allowTransparency"in o&&(o.allowTransparency="true"),o.name=(new Date).getTime(),o.allowFullscreen=!0,o}},B="colorbox",j="cbox",D="cboxElement",F="cbox_load",G="cbox_complete",J="cbox_cleanup",N="cbox_closed",z="cbox_purge",q=t("<a/>"),A="div",Q=0,U={};function $(o,i,n){var r=e.createElement(o);return i&&(r.id=j+i),n&&(r.style.cssText=n),t(r)}function V(){return o.innerHeight?o.innerHeight:t(o).height()}function X(e,o){o!==Object(o)&&(o={}),this.cache={},this.el=e,this.value=function(e){var i;return void 0===this.cache[e]&&(void 0!==(i=t(this.el).attr("data-cbox-"+e))?this.cache[e]=i:void 0!==o[e]?this.cache[e]=o[e]:void 0!==P[e]&&(this.cache[e]=P[e])),this.cache[e]},this.get=function(t){var e=this.value(t);return"function"==typeof e?e.call(this.el,this):e}}function Y(t){var e=d.length,o=(S+t)%e;return o<0?e+o:o}function Z(t,e){return Math.round((/%/.test(t)?("x"===e?g.width():V())/100:1)*parseInt(t,10))}function tt(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function et(t,e){return t.get("retinaUrl")&&o.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function ot(t){"contains"in n[0]&&!n[0].contains(t.target)&&t.target!==i[0]&&(t.stopPropagation(),n.focus())}function it(t){it.str!==t&&(n.add(i).removeClass(it.str).addClass(t),it.str=t)}function nt(o){t(e).trigger(o),q.triggerHandler(o)}var rt=function(){var t,e,o="cboxSlideshow_",i="click.cbox";function r(){clearTimeout(e)}function h(){(C.get("loop")||d[S+1])&&(r(),e=setTimeout(K.next,C.get("slideshowSpeed")))}function a(){x.html(C.get("slideshowStop")).off(i).one(i,s),q.on(G,h).on(F,r),n.removeClass(o+"off").addClass(o+"on")}function s(){r(),q.off(G,h).off(F,r),x.html(C.get("slideshowStart")).off(i).one(i,(function(){K.next(),a()})),n.removeClass(o+"on").addClass(o+"off")}function c(){t=!1,x.hide(),r(),q.off(G,h).off(F,r),n.removeClass(o+"off "+o+"on")}return function(){t?C.get("slideshow")||(q.off(J,c),c()):C.get("slideshow")&&d[1]&&(t=!0,q.one(J,c),C.get("slideshowAuto")?a():s(),x.show())}}();function ht(r){var g,w;if(!_){if(g=t(r).data(B),C=new X(r,g),w=C.get("rel"),S=0,w&&!1!==w&&"nofollow"!==w?(d=t(".cboxElement").filter((function(){return new X(this,t.data(this,B)).get("rel")===w})),-1===(S=d.index(C.el))&&(d=d.add(C.el),S=d.length-1)):d=t(C.el),!M){M=L=!0,it(C.get("className")),n.css({visibility:"hidden",display:"block",opacity:""}),f=$(A,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),h.css({width:"",height:""}).append(f),I=a.height()+l.height()+h.outerHeight(!0)-h.height(),H=s.width()+c.width()+h.outerWidth(!0)-h.width(),E=f.outerHeight(!0),k=f.outerWidth(!0);var x=Z(C.get("initialWidth"),"x"),y=Z(C.get("initialHeight"),"y"),v=C.get("maxWidth"),O=C.get("maxHeight");C.w=Math.max((!1!==v?Math.min(x,Z(v,"x")):x)-k-H,0),C.h=Math.max((!1!==O?Math.min(y,Z(O,"y")):y)-E-I,0),f.css({width:"",height:C.h}),K.position(),nt("cbox_open"),C.get("onOpen"),T.add(m).hide(),n.focus(),C.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",ot,!0),q.one(N,(function(){e.removeEventListener("focus",ot,!0)}))),C.get("returnFocus")&&q.one(N,(function(){t(C.el).focus()}))}var P=parseFloat(C.get("opacity"));i.css({opacity:P==P?P:"",cursor:C.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),C.get("closeButton")?b.html(C.get("close")).appendTo(h):b.appendTo("<div/>"),function(){var e,i,n,r=K.prep,h=++Q;L=!0,W=!1,nt(z),nt(F),C.get("onLoad"),C.h=C.get("height")?Z(C.get("height"),"y")-E-I:C.get("innerHeight")&&Z(C.get("innerHeight"),"y"),C.w=C.get("width")?Z(C.get("width"),"x")-k-H:C.get("innerWidth")&&Z(C.get("innerWidth"),"x"),C.mw=C.w,C.mh=C.h,C.get("maxWidth")&&(C.mw=Z(C.get("maxWidth"),"x")-k-H,C.mw=C.w&&C.w<C.mw?C.w:C.mw);C.get("maxHeight")&&(C.mh=Z(C.get("maxHeight"),"y")-E-I,C.mh=C.h&&C.h<C.mh?C.h:C.mh);if(e=C.get("href"),R=setTimeout((function(){p.show()}),100),C.get("inline")){var a=t(e).eq(0);n=t("<div>").hide().insertBefore(a),q.one(z,(function(){n.replaceWith(a)})),r(a)}else C.get("iframe")?r(" "):C.get("html")?r(C.get("html")):tt(C,e)?(e=et(C,e),W=C.get("createImg"),t(W).addClass("cboxPhoto").on("error.cbox",(function(){r($(A,"Error").html(C.get("imgError")))})).one("load",(function(){h===Q&&setTimeout((function(){var e;C.get("retinaImage")&&o.devicePixelRatio>1&&(W.height=W.height/o.devicePixelRatio,W.width=W.width/o.devicePixelRatio),C.get("scalePhotos")&&(i=function(){W.height-=W.height*e,W.width-=W.width*e},C.mw&&W.width>C.mw&&(e=(W.width-C.mw)/W.width,i()),C.mh&&W.height>C.mh&&(e=(W.height-C.mh)/W.height,i())),C.h&&(W.style.marginTop=Math.max(C.mh-W.height,0)/2+"px"),d[1]&&(C.get("loop")||d[S+1])&&(W.style.cursor="pointer",t(W).on("click.cbox",(function(){K.next()}))),W.style.width=W.width+"px",W.style.height=W.height+"px",r(W)}),1)})),W.src=e):e&&u.load(e,C.get("data"),(function(e,o){h===Q&&r("error"===o?$(A,"Error").html(C.get("xhrError")):t(this).contents())}))}()}}function at(){n||(O=!1,g=t(o),n=$(A).attr({id:B,class:"",role:"dialog",tabindex:"-1"}).hide(),i=$(A,"Overlay").hide(),p=t([$(A,"LoadingOverlay")[0],$(A,"LoadingGraphic")[0]]),r=$(A,"Wrapper"),h=$(A,"Content").append(m=$(A,"Title"),w=$(A,"Current"),v=t('<button type="button"/>').attr({id:"cboxPrevious"}),y=t('<button type="button"/>').attr({id:"cboxNext"}),x=t('<button type="button"/>').attr({id:"cboxSlideshow"}),p),b=t('<button type="button"/>').attr({id:"cboxClose"}),r.append($(A).append($(A,"TopLeft"),a=$(A,"TopCenter"),$(A,"TopRight")),$(A,!1,"clear:left").append(s=$(A,"MiddleLeft"),h,c=$(A,"MiddleRight")),$(A,!1,"clear:left").append($(A,"BottomLeft"),l=$(A,"BottomCenter"),$(A,"BottomRight"))).find("div div").css({float:"left"}),u=$(A,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),T=y.add(v).add(w).add(x)),e.body&&!n.parent().length&&t(e.body).append(i,n.append(r,u))}function st(){return!!n&&(O||(O=!0,y.click((function(){K.next()})),v.click((function(){K.prev()})),b.click((function(){K.close()})),i.click((function(){C.get("overlayClose")&&K.close()})),t(e).on("keydown.cbox",(function(t){var e=t.keyCode;M&&C.get("escKey")&&27===e&&(t.preventDefault(),K.close()),M&&C.get("arrowKey")&&d[1]&&!t.altKey&&(37===e?(t.preventDefault(),v.click()):39===e&&(t.preventDefault(),y.click()))})),t(e).on("click.cbox",".cboxElement",(function(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),ht(this))}))),!0)}t.colorbox||(t(at),(K=t.fn.colorbox=t.colorbox=function(e,o){var i=this;return e=e||{},"function"==typeof i&&(i=t("<a/>"),e.open=!0),i[0]?(at(),st()&&(o&&(e.onComplete=o),i.each((function(){var o=t.data(this,B)||{};t.data(this,B,t.extend(o,e))})).addClass(D),new X(i[0],e).get("open")&&ht(i[0])),i):i}).position=function(e,o){var i,d,f,u=0,p=0,m=n.offset();function w(){a[0].style.width=l[0].style.width=h[0].style.width=parseInt(n[0].style.width,10)-H+"px",h[0].style.height=s[0].style.height=c[0].style.height=parseInt(n[0].style.height,10)-I+"px"}if(g.off("resize.cbox"),n.css({top:-9e4,left:-9e4}),d=g.scrollTop(),f=g.scrollLeft(),C.get("fixed")?(m.top-=d,m.left-=f,n.css({position:"fixed"})):(u=d,p=f,n.css({position:"absolute"})),!1!==C.get("right")?p+=Math.max(g.width()-C.w-k-H-Z(C.get("right"),"x"),0):!1!==C.get("left")?p+=Z(C.get("left"),"x"):p+=Math.round(Math.max(g.width()-C.w-k-H,0)/2),!1!==C.get("bottom")?u+=Math.max(V()-C.h-E-I-Z(C.get("bottom"),"y"),0):!1!==C.get("top")?u+=Z(C.get("top"),"y"):u+=Math.round(Math.max(V()-C.h-E-I,0)/2),n.css({top:m.top-t("html").position().top,left:m.left,visibility:"visible"}),r[0].style.width=r[0].style.height="9999px",i={width:C.w+k+H,height:C.h+E+I,top:u,left:p},e){var x=0;t.each(i,(function(t){i[t]===U[t]||(x=e)})),e=x}U=i,e||n.css(i),n.dequeue().animate(i,{duration:e||0,easing:"JIGeaseInOutQuad",complete:function(){w(),L=!1,r[0].style.width=C.w+k+H+"px",r[0].style.height=C.h+E+I+"px",C.get("reposition")&&setTimeout((function(){g.on("resize.cbox",K.position)}),1),"function"==typeof o&&o()},step:w})},K.resize=function(t){var e;M&&((t=t||{}).width&&(C.w=Z(t.width,"x")-k-H),t.innerWidth&&(C.w=Z(t.innerWidth,"x")),f.css({width:C.w}),t.height&&(C.h=Z(t.height,"y")-E-I),t.innerHeight&&(C.h=Z(t.innerHeight,"y")),t.innerHeight||t.height||(e=f.scrollTop(),f.css({height:"auto"}),C.h=f.height()),f.css({height:C.h}),e&&f.scrollTop(e),K.position("none"===C.get("transition")?0:C.get("speed")))},K.prep=function(o){if(M){var i,r="none"===C.get("transition")?0:C.get("speed");f.remove(),(f=$(A,"LoadedContent").append(o)).hide().appendTo(u.show()).css({width:(C.w=C.w||f.width(),C.w=C.mw&&C.mw<C.w?C.mw:C.w,C.w),overflow:C.get("scrolling")?"auto":"hidden"}).css({height:(C.h=C.h||f.height(),C.h=C.mh&&C.mh<C.h?C.mh:C.h,C.h)}).prependTo(h),u.hide(),t(W).css({float:"none"}),it(C.get("className")),i=function(){var o,i,h=d.length;M&&(i=function(){clearTimeout(R),p.hide(),nt(G),C.get("onComplete")},m.html(C.get("title")).show(),f.show(),h>1?("string"==typeof C.get("current")&&w.html(C.get("current").replace("{current}",S+1).replace("{total}",h)).show(),y[C.get("loop")||S<h-1?"show":"hide"]().html(C.get("next")),v[C.get("loop")||S?"show":"hide"]().html(C.get("previous")),rt(),C.get("preloading")&&t.each([Y(-1),Y(1)],(function(){var o=d[this],i=new X(o,t.data(o,B)),n=i.get("href");n&&tt(i,n)&&(n=et(i,n),e.createElement("img").src=n)}))):T.hide(),C.get("iframe")?(o=C.get("createIframe"),C.get("scrolling")||(o.scrolling="no"),t(o).attr({src:C.get("href"),class:"cboxIframe"}).one("load",i).appendTo(f),q.one(z,(function(){o.src="//about:blank"})),C.get("fastIframe")&&t(o).trigger("load")):i(),"fade"===C.get("transition")&&n.fadeTo(r,1,"JIGswing"))},"fade"===C.get("transition")?n.fadeTo(r,0,"JIGswing",(function(){K.position(0,i)})):K.position(r,i)}},K.next=function(){!L&&d[1]&&(C.get("loop")||d[S+1])&&(S=Y(1),ht(d[S]))},K.prev=function(){!L&&d[1]&&(C.get("loop")||S)&&(S=Y(-1),ht(d[S]))},K.close=function(){M&&!_&&(_=!0,M=!1,nt(J),C.get("onCleanup"),g.off(".cbox"),i.fadeTo(C.get("fadeOut")||0,0,"JIGswing"),n.stop().fadeTo(C.get("fadeOut")||0,0,"JIGswing",(function(){n.hide(),i.hide(),nt(z),f.remove(),setTimeout((function(){_=!1,nt(N),C.get("onClosed")}),1)})))},K.remove=function(){n&&(n.stop(),t.colorbox.close(),n.stop(!1,!0).remove(),i.remove(),_=!1,n=null,t(".cboxElement").removeData(B).removeClass(D),t(e).off("click.cbox").off("keydown.cbox"))},K.element=function(){return t(C.el)},K.settings=P)}(jQuery,document,window);