/*! For license information please see 525.55e1908b7a7b72b2213a.js.LICENSE.txt */
(self.webpackChunklib=self.webpackChunklib||[]).push([[525],{16525:(t,e,n)=>{var o=n(19755);!function(t,e,n,i,a){"use strict";var r="fotorama",s="fullscreen",u=r+"__wrap",l=u+"--css2",c=u+"--css3",f=u+"--video",d=u+"--fade",h=u+"--slide",p=u+"--no-controls",m=u+"--no-shadows",v=u+"--pan-y",w=u+"--rtl",g=u+"--only-active",y=u+"--no-captions",b=u+"--toggle-arrows",x=r+"__stage",_=x+"__frame",C=_+"--video",T=x+"__shaft",k=r+"__grab",M=r+"__pointer",S=r+"__arr",F=S+"--disabled",E=S+"--prev",P=S+"--next",N=r+"__nav",j=N+"-wrap",$=N+"__shaft",q=N+"--dots",A=N+"--thumbs",z=N+"__frame",O=z+"--dot",L=z+"--thumb",I=r+"__fade",D=I+"-front",R=I+"-rear",W=r+"__shadow"+"s",H=W+"--left",K=W+"--right",B=r+"__active",V=r+"__select",X=r+"--hidden",U=r+"--fullscreen",Y=r+"__fullscreen-icon",Q=r+"__error",G=r+"__loading",J=r+"__loaded",Z=J+"--full",tt=J+"--img",et=r+"__grabbing",nt=r+"__img",ot=nt+"--full",it=r+"__dot",at=r+"__thumb",rt=at+"-border",st=r+"__html",ut=r+"__video",lt=ut+"-play",ct=ut+"-close",ft=r+"__caption",dt=r+"__caption__wrap",ht=r+"__spinner",pt='" tabindex="0" role="button',mt=i&&i.fn.jquery.split(".");if(!mt||mt[0]<1||1==mt[0]&&mt[1]<8)throw"Fotorama requires jQuery 1.8 or later and will not run without it.";var vt=function(t,e,n){var o,i,a={},r=e.documentElement,s="modernizr",u=e.createElement(s),l=u.style,c=" -webkit- -moz- -o- -ms- ".split(" "),f="Webkit Moz O ms",d=f.split(" "),h=f.toLowerCase().split(" "),p={},m=[],v=m.slice,w={}.hasOwnProperty;function g(t){l.cssText=t}function y(t,e){return typeof t===e}function b(t,e){for(var o in t){var i=t[o];if(!~(""+i).indexOf("-")&&l[i]!==n)return"pfx"!=e||i}return!1}function x(t,e,o){var i=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+d.join(i+" ")+i).split(" ");return y(e,"string")||y(e,"undefined")?b(a,e):function(t,e,o){for(var i in t){var a=e[t[i]];if(a!==n)return!1===o?t[i]:y(a,"function")?a.bind(o||e):a}return!1}(a=(t+" "+h.join(i+" ")+i).split(" "),e,o)}for(var _ in i=y(w,"undefined")||y(w.call,"undefined")?function(t,e){return e in t&&y(t.constructor.prototype[e],"undefined")}:function(t,e){return w.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var n=v.call(arguments,1);return function o(){if(this instanceof o){var i=function(){};i.prototype=e.prototype;var a=new i,r=e.apply(a,n.concat(v.call(arguments)));return Object(r)===r?r:a}return e.apply(t,n.concat(v.call(arguments)))}}),p.csstransforms3d=function(){return!!x("perspective")},p)i(p,_)&&(o=_.toLowerCase(),a[o]=p[_](),m.push((a[o]?"":"no-")+o));return a.addTest=function(t,e){if("object"==typeof t)for(var o in t)i(t,o)&&a.addTest(o,t[o]);else{if(t=t.toLowerCase(),a[t]!==n)return a;e="function"==typeof e?e():e,"undefined"!=typeof enableClasses&&enableClasses&&(r.className+=" "+(e?"":"no-")+t),a[t]=e}return a},g(""),u=null,a._version="2.6.2",a._prefixes=c,a._domPrefixes=h,a._cssomPrefixes=d,a.testProp=function(t){return b([t])},a.testAllProps=x,a.testStyles=function(t,n,o,i){var a,u,l,c,f=e.createElement("div"),d=e.body,h=d||e.createElement("body");if(parseInt(o,10))for(;o--;)(l=e.createElement("div")).id=i?i[o]:s+(o+1),f.appendChild(l);return a=["",'"].join(""),f.id=s,(d?f:h).innerHTML+=a,h.appendChild(f),d||(h.style.background="",h.style.overflow="hidden",c=r.style.overflow,r.style.overflow="hidden",r.appendChild(h)),u=n(f,t),d?f.parentNode.removeChild(f):(h.parentNode.removeChild(h),r.style.overflow=c),!!u},a.prefixed=function(t,e,n){return e?x(t,e,n):x(t,"pfx")},a}(0,e),wt={ok:!1,is:function(){return!1},request:function(){},cancel:function(){},event:"",prefix:""},gt="webkit moz o ms khtml".split(" ");if(void 0!==e.cancelFullScreen)wt.ok=!0;else for(var yt=0,bt=gt.length;yt',e)}u.addRule(".spin-vml","behavior:url(#default#VML)"),v.prototype.lines=function(e,n){var o=n.length+n.width,i=2*o;function a(){return f(t("group",{coordsize:i+" "+i,coordorigin:-o+" "+-o}),{width:i,height:i})}var s,u=2*-(n.width+n.length)+"px",l=f(a(),{position:"absolute",top:u,left:u});function c(e,i,s){r(l,r(f(a(),{rotation:360/n.lines*e+"deg",left:~~i}),r(f(t("roundrect",{arcsize:n.corners}),{width:o,height:n.width,left:n.radius,top:-n.width>>1,filter:s}),t("fill",{color:p(n.color,e),opacity:n.opacity}),t("stroke",{opacity:0}))))}if(n.shadow)for(s=1;s<=n.lines;s++)c(s,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(s=1;s<=n.lines;s++)c(s);return r(e,l)},v.prototype.opacity=function(t,e,n,o){var i=t.firstChild;o=o.shadow&&o.lines||0,i&&e+o>1):parseInt(r.left,10)+u)+"px",top:("auto"==r.top?o.y-n.y+(e.offsetHeight>>1):parseInt(r.top,10)+u)+"px"})),s.setAttribute("role","progressbar"),a.lines(s,a.opts),!t){var l,c=0,d=(r.lines-1)*(1-r.direction)/2,p=r.fps,m=p/r.speed,v=(1-r.opacity)/(m*r.trail/100),w=m/r.lines;!function t(){c++;for(var e=0;e>1)+"px"})}for(;a=l,f="scaledown"===n,d="contain"===n,h="cover"===n,p={x:ae((i=((i=o)+"").split(/\s+/))[0])||Yt,y:ae(i[1])||Yt};c&&(f||d)||!c&&h?u=(s=Zt(e.w,0,f?s:1/0))/r.ratio:(c&&h||!c&&(f||d))&&(s=(u=Zt(e.h,0,f?u:1/0))*r.ratio),t.css({width:s,height:u,left:ie(p.x,e.w-s),top:ie(p.y,e.h-u)}),a.l={W:r.width,H:r.height,r:r.ratio,w:e.w,h:e.h,m:n,p:o}}return!0}function we(t,e,n){return e!==n&&(t<=e?"left":t>=n?"right":"left right")}function ge(t,e,n,o){if(!n)return!1;if(!isNaN(t))return t-(o?0:1);for(var i,a=0,r=e.length;a'+(e||"")+""}function be(t){for(var e=t.length;e;){var n=Math.floor(Math.random()*e--),o=t[e];t[e]=t[n],t[n]=o}return t}function xe(t){return"[object Array]"==Object.prototype.toString.call(t)&&i.map(t,(function(t){return i.extend({},t)}))}function _e(t,e,n){t.scrollLeft(e||0).scrollTop(n||0)}function Ce(t){if(t){var e={};return i.each(t,(function(t,n){e[t.toLowerCase()]=n})),e}}function Te(t){if(t){var e=+t;return isNaN(e)?+(e=t.split("/"))[0]/+e[1]||a:e}}function ke(t,e,n,o){e&&(t.addEventListener?t.addEventListener(e,n,!!o):t.attachEvent("on"+e,n))}function Me(t){return{tabindex:-1*t+"",disabled:t}}function Se(t,e){ke(t,"keyup",(function(n){(function(t){return!!t.getAttribute("disabled")})(t)||13==n.keyCode&&e.call(t,n)}))}function Fe(t,e){ke(t,"focus",t.onfocusin=function(n){e.call(t,n)},!0)}function Ee(t,e){t.preventDefault?t.preventDefault():t.returnValue=!1,e&&t.stopPropagation&&t.stopPropagation()}function Pe(t){return t?">":"<"}function Ne(t,e){var n=t.data(),o=Math.round(e.pos),a=function(){n.sliding=!1,(e.onEnd||Jt)()};void 0!==e.overPos&&e.overPos!==e.pos&&(o=e.overPos,a=function(){Ne(t,i.extend({},e,{overPos:e.pos,time:Math.max(Wt,e.time/2)}))});var r=i.extend(te(o),e.width&&{width:e.width});n.sliding=!0,qt?(t.css(i.extend(ee(e.time),r)),e.time>10?se(t,"transform",a,e.time):a()):t.stop().animate(r,e.time,Ut,a)}function je(t,e,n,o,a,r){var s=void 0!==r;if(s||(a.push(arguments),Array.prototype.push.call(arguments,a.length),!(a.length>1))){t=t||i(t),e=e||i(e);var u=t[0],l=e[0],c="crossfade"===o.method,f=function t(){if(!t.done){t.done=!0;var e=(s||a.shift())&&a.shift();e&&je.apply(this,e),(o.onEnd||Jt)(!!e)}},d=o.time/(r||1);n.removeClass(R+" "+D),t.stop().addClass(R),e.stop().addClass(D),c&&l&&t.fadeTo(0,0),t.fadeTo(c?d:0,1,c&&f),e.fadeTo(d,0,f),u&&c||l||f()}}function $e(t){var e=(t.touches||[])[0]||t;t._x=e.pageX,t._y=e.clientY,t._now=i.now()}function qe(t,n){var o,a,r,s,u,l,c,f,d,h=t[0],p={};function m(t){if(r=i(t.target),p.checked=l=c=d=!1,o||p.flow||t.touches&&t.touches.length>1||t.which>1||Mt&&Mt.type!==t.type&&Ft||(l=n.select&&r.is(n.select,h)))return l;u="touchstart"===t.type,c=r.is("a, a *",h),s=p.control,f=p.noMove||p.noSwipe||s?16:p.snap?0:4,$e(t),a=Mt=t,St=t.type.replace(/down|start/,"move").replace(/Down/,"Move"),(n.onStart||Jt).call(h,t,{control:s,$target:r}),o=p.flow=!0,u&&!p.go||Ee(t)}function v(t){if(t.touches&&t.touches.length>1||It&&!t.isPrimary||St!==t.type||!o)return o&&w(),void(n.onTouchEnd||Jt)();$e(t);var e=Math.abs(t._x-a._x),i=Math.abs(t._y-a._y),r=e-i,s=(p.go||p.x||r>=0)&&!p.noSwipe,l=r<0;u&&!p.checked?(o=s)&&Ee(t):(Ee(t),(n.onMove||Jt).call(h,t,{touch:u})),!d&&Math.sqrt(Math.pow(e,2)+Math.pow(i,2))>f&&(d=!0),p.checked=p.checked||s||l}function w(t){(n.onTouchEnd||Jt)();var e=o;p.control=o=!1,e&&(p.flow=!1),!e||c&&!p.checked||(t&&Ee(t),Ft=!0,clearTimeout(Et),Et=setTimeout((function(){Ft=!1}),1e3),(n.onEnd||Jt).call(h,{moved:d,$target:r,control:s,touch:u,startEvent:a,aborted:!t||"MSPointerCancel"===t.type}))}function g(){p.flow&&setTimeout((function(){p.flow=!1}),Rt)}return It?(ke(h,"MSPointerDown",m),ke(e,"MSPointerMove",v),ke(e,"MSPointerCancel",w),ke(e,"MSPointerUp",w)):(ke(h,"touchstart",m),ke(h,"touchmove",v),ke(h,"touchend",w),ke(e,"touchstart",(function(){p.flow||setTimeout((function(){p.flow=!0}),10)})),ke(e,"touchend",g),ke(e,"touchcancel",g),Pt.on("scroll",g),t.on("mousedown",m),Nt.on("mousemove",v).on("mouseup",w)),t.on("click","a",(function(t){p.checked&&Ee(t)})),p}function Ae(t,e){var n,o,a,r,s,u,l,c,f,d,h,p,m,v,w=t[0],g=t.data(),y={};function b(i,s){v=!0,n=o=i._x,l=i._now,u=[[l,n]],a=r=y.noMove||s?0:ue(t,(e.getPos||Jt)()),(e.onStart||Jt).call(w,i)}return y=i.extend(qe(e.$wrap,i.extend({},e,{onStart:function(t,e){f=y.min,d=y.max,h=y.snap,p=t.altKey,v=m=!1,e.control||g.sliding||b(t)},onMove:function(i,l){y.noSwipe||(v||b(i),o=i._x,u.push([i._now,o]),s=we(r=a-(n-o),f,d),r<=f?r=ce(r,f):r>=d&&(r=ce(r,d)),y.noMove||(t.css(te(r)),m||(m=!0,l.touch||It||t.addClass(et)),(e.onMove||Jt).call(w,i,{pos:r,edge:s})))},onEnd:function(n){if(!y.noSwipe||!n.moved){v||b(n.startEvent,!0),n.touch||It||t.removeClass(et);for(var s,l,m,g,x,_,C,T,k,M=(c=i.now())-Rt,S=null,F=Wt,E=e.friction,P=u.length-1;P>=0;P--){if(s=u[P][0],l=Math.abs(s-M),null===S||lm)break;m=l}C=Zt(r,f,d);var N=g-o,j=N>=0,$=c-S,q=$>Rt,A=!q&&r!==a&&C===r;h&&(C=Zt(Math[A?j?"floor":"ceil":"round"](r/h)*h,f,d),f=d=C),A&&(h||C===r)&&(k=-N/$,F*=Zt(Math.abs(k),e.timeLow,e.timeHigh),x=Math.round(r+k*F/E),h||(C=x),(!j&&x>d||j&&x"),an=i(ye(X)),rn=i(ye(u)),sn=i(ye(x)).appendTo(rn),un=(sn[0],i(ye(T)).appendTo(sn)),ln=i(),cn=i(ye(S+" "+E+pt)),fn=i(ye(S+" "+P+pt)),dn=cn.add(fn).appendTo(sn),hn=i(ye(j)),pn=i(ye(N)).appendTo(hn),mn=i(ye($)).appendTo(pn),vn=i(),wn=i(),gn=(un.data(),mn.data(),i(ye(rt)).appendTo(mn)),yn=i(ye(Y+pt)),bn=yn[0],xn=i(ye(lt)),_n=i(ye(ct)).appendTo(sn)[0],Cn=i(ye(ht)),Tn=!1,kn={},Mn={},Sn={},Fn={},En={},Pn={},Nn={},jn=0,$n=[];function qn(){i.each(a,(function(t,e){if(!e.i){e.i=en++;var n=de(e.video,!0);if(n){var o={};e.video=n,e.img||e.thumb?e.thumbsReady=!0:o=function(t,e,n){var o,a,r=t.video;return"youtube"===r.type?(o=(a=fe()+"img.youtube.com/vi/"+r.id+"/default.jpg").replace(/\/default.jpg$/,"/hqdefault.jpg"),t.thumbsReady=!0):"vimeo"===r.type?i.ajax({url:fe()+"vimeo.com/api/v2/video/"+r.id+".json",dataType:"jsonp",success:function(o){t.thumbsReady=!0,he(e,{img:o[0].thumbnail_large,thumb:o[0].thumbnail_small},t.i,n)}}):t.thumbsReady=!0,{img:o,thumb:a}}(e,a,Ge),he(a,{img:o.img,thumb:o.thumb},e.i,Ge)}}}))}function An(t){return Le[t]||Ge.fullScreen}function zn(e){var n;e!==zn.f&&(e?(t.html("").addClass(r+" "+Ze).append(rn).before(on).before(an),n=Ge,i.Fotorama.instances.push(n),Oe()):(rn.detach(),on.detach(),an.detach(),t.html(nn.urtext).removeClass(Ze),function(t){i.Fotorama.instances.splice(t.index,1),Oe()}(Ge)),function(t){var e="keydown."+r,n=r+Je,i="keydown."+n,a="resize."+n+" orientationchange."+n;t?(Nt.on(i,(function(t){var e,n;et&&27===t.keyCode?(e=!0,bo(et,!0,!0)):(Ge.fullScreen||o.keyboard&&!Ge.index)&&(27===t.keyCode?(e=!0,Ge.cancelFullScreen()):t.shiftKey&&32===t.keyCode&&An("space")||37===t.keyCode&&An("left")||38===t.keyCode&&An("up")?n="<":32===t.keyCode&&An("space")||39===t.keyCode&&An("right")||40===t.keyCode&&An("down")?n=">":36===t.keyCode&&An("home")?n="<<":35===t.keyCode&&An("end")&&(n=">>")),(e||n)&&Ee(t),n&&Ge.show({index:n,slow:t.altKey,user:!0})})),Ge.index||Nt.off(e).on(e,"textarea, input, select",(function(t){!kt.hasClass(s)&&t.stopPropagation()})),Pt.on(a,Ge.resize)):(Nt.off(i),Pt.off(a))}(e),zn.f=e)}function On(){var t=I<2&&!o.enableifsingleframe||et;Mn.noMove=t||Ut,Mn.noSwipe=t||!o.swipe,!se&&un.toggleClass(k,!o.click&&!Mn.noMove&&!Mn.noSwipe),It&&rn.toggleClass(v,!Mn.noSwipe)}function Ln(t){!0===t&&(t=""),o.autoplay=Math.max(+t||5e3,1.5*ne)}function In(t){return t<0?(I+t%I)%I:t>=I?t%I:t}function Dn(t){return Zt(t,0,I-1)}function Rn(t){return Et?In(t):Dn(t)}function Wn(t){return!!(t>0||Et)&&t-1}function Hn(t){return!!(t1&&a[l]===c)||c.html||c.deleted||c.video||p||(c.deleted=!0,Ge.splice(l,1))):(c[g]=y=b,Vn([l],e,n,r,s,!0))}function C(){var t=10;me((function(){return!Ve||!t--&&!Lt}),(function(){i.Fotorama.measures[y]=w.measures=i.Fotorama.measures[y]||{width:m.width,height:m.height,ratio:m.width/m.height},Bn(w.measures.width,w.measures.height,w.measures.ratio,l),v.off("load error").addClass(nt+(p?" "+ot:"")).prependTo(f),ve(v,(i.isFunction(n)?n():n)||kn,r||c.fit||o.fit,s||c.position||o.position),i.Fotorama.cache[y]=h.state="loaded",setTimeout((function(){f.trigger("f:load").removeClass(G+" "+Q).addClass(J+" "+(p?Z:tt)),"stage"===e?x("load"):(c.thumbratio===Xt||!c.thumbratio&&o.thumbratio===Xt)&&(c.thumbratio=w.measures.ratio,Fo())}),0)}))}}))}function Xn(){Cn.detach(),R&&R.stop()}function Un(){var t,e=ut[Kt];e&&!e.data().state&&(t=e,Cn.append(R.spin().el).appendTo(t),e.on("f:load f:error",(function(){e.off("f:load f:error"),Xn()})))}function Yn(t){Se(t,ko),Fe(t,(function(){setTimeout((function(){_e(pn)}),0),so({time:ne,guessIndex:i(this).data().eq,minMax:Fn})}))}function Qn(t,e){Kn(t,e,(function(t,n,o,a,r,s){if(!a){a=o[r]=rn[r].clone(),(s=a.data()).data=o;var u=a[0];"stage"===e?(o.html&&i('').append(o._html?i(o.html).removeAttr("id").html(o._html):o.html).appendTo(a),o.caption&&i(ye(ft,ye(dt,o.caption))).appendTo(a),o.video&&a.addClass(C).append(xn.clone()),Fe(u,(function(){setTimeout((function(){_e(sn)}),0),Co({index:s.eq,user:!0})})),ln=ln.add(a)):"navDot"===e?(Yn(u),vn=vn.add(a)):"navThumb"===e&&(Yn(u),s.$wrap=a.children(":first"),wn=wn.add(a),o.video&&s.$wrap.append(xn.clone()))}}))}function Gn(t,e,n,o){return t&&t.length&&ve(t,e,n,o)}function Jn(t){Kn(t,"stage",(function(t,n,a,r,s,u){if(r){var l,c=In(n),f=a.fit||o.fit,d=a.position||o.position;u.eq=c,Nn[Kt][c]=r.css(i.extend({left:Ut?0:re(n,kn.w,o.margin,vt)},Ut&&ee(0))),l=r[0],i.contains(e.documentElement,l)||(r.appendTo(un),bo(a.$video)),Gn(u.$img,kn,f,d),Gn(u.$full,kn,f,d)}}))}function Zn(t,e){if("thumbs"===jt&&!isNaN(t)){var n=-t,r=-t+kn.nw;wn.each((function(){var t=i(this).data(),s=t.eq,u=function(){return{h:Qt,w:t.w}},l=u(),c=a[s]||{},f=c.thumbfit||o.thumbfit,d=c.thumbposition||o.thumbposition;l.w=t.w,t.l+t.wr||Gn(t.$img,l,f,d)||e&&Vn([s],"navThumb",u,f,d)}))}}function to(t,e,n){if(!to[n]){var r="nav"===n&&$t,s=0;e.append(t.filter((function(){for(var t,e=i(this),n=e.data(),o=0,r=a.length;okn.w/3}function no(t){return!(Et||Tn+t&&Tn-I+t||et)}function oo(){var t=no(0),e=no(1);cn.toggleClass(F,t).attr(Me(t)),fn.toggleClass(F,e).attr(Me(e))}function io(){Sn.ok&&(Sn.prevent={"<":no(0),">":no(1)})}function ao(t){var e,n,i=t.data();return $t?(e=i.l,n=i.w):(e=t.position().left,n=t.width()),{c:e+n/2,min:-e+10*o.thumbmargin,max:-e+kn.w-n-10*o.thumbmargin}}function ro(t){var e=ut[Ue].data();Ne(gn,{time:1.2*t,pos:e.l,width:e.w-2*o.thumbborderwidth})}function so(t){var e=a[t.guessIndex][Ue];if(e){var n=Fn.min!==Fn.max,o=t.minMax||n&&ao(ut[Ue]),i=n&&(t.keep&&so.l?so.l:Zt((t.coo||kn.nw/2)-ao(e).c,o.min,o.max)),r=n&&Zt(i,Fn.min,Fn.max),s=1.1*t.time;Ne(mn,{time:s,pos:r||0,onEnd:function(){Zn(r,!0)}}),yo(pn,we(r,Fn.min,Fn.max)),so.l=i}}function uo(t){for(var e=Pn[t];e.length;)e.shift().removeClass(B)}function lo(t){var e=Nn[t];i.each(mt,(function(t,n){delete e[In(n)]})),i.each(e,(function(t,n){delete e[t],n.detach()}))}function co(t){vt=gt=Tn;var e=ut[Kt];e&&(uo(Kt),Pn[Kt].push(e.addClass(B)),t||Ge.show.onEnd(!0),ue(un,0),lo(Kt),Jn(mt),Mn.min=Et?-1/0:-re(I-1,kn.w,o.margin,vt),Mn.max=Et?1/0:-re(0,kn.w,o.margin,vt),Mn.snap=kn.w+o.margin,Fn.min=Math.min(0,kn.nw-mn.width()),Fn.max=0,mn.toggleClass(k,!(Fn.noMove=Fn.min===Fn.max)))}function fo(t,e){t&&i.each(e,(function(e,n){n&&i.extend(n,{width:t.width||n.width,height:t.height,minwidth:t.minwidth,maxwidth:t.maxwidth,minheight:t.minheight,maxheight:t.maxheight,ratio:Te(t.ratio)})}))}function ho(e,n){t.trigger(r+":"+e,[Ge,n])}function po(){clearTimeout(mo.t),Ve=1,o.stopautoplayontouch?Ge.stopAutoplay():He=!0}function mo(){Ve&&(o.stopautoplayontouch||(vo(),wo()),mo.t=setTimeout((function(){Ve=0}),Wt+Rt))}function vo(){He=!(!et&&!Ke)}function wo(){if(clearTimeout(wo.t),me.stop(wo.w),o.autoplay&&!He){Ge.autoplay||(Ge.autoplay=!0,ho("startautoplay"));var t=Tn,e=ut[Kt].data();wo.w=me((function(){return e.state||t!==Tn}),(function(){wo.t=setTimeout((function(){if(!He&&t===Tn){var e=St,n=a[e][Kt].data();wo.w=me((function(){return n.state||e!==St}),(function(){He||e!==St||Ge.show(Et?Pe(!$e):St)}))}}),o.autoplay)}))}else Ge.autoplay&&(Ge.autoplay=!1,ho("stopautoplay"))}function go(){Ge.fullScreen&&(Ge.fullScreen=!1,zt&&wt.cancel(tn),kt.removeClass(s),Tt.removeClass(s),t.removeClass(U).insertAfter(an),kn=i.extend({},Be),bo(et,!0,!0),To("x",!1),Ge.resize(),Vn(mt,"stage"),_e(Pt,Re,De),ho("fullscreenexit"))}function yo(t,e){ce&&(t.removeClass(H+" "+K),e&&!et&&t.addClass(e.replace(/^|\s/g," "+W+"--")))}function bo(t,e,n){e&&(rn.removeClass(f),et=!1,On()),t&&t!==et&&(t.remove(),ho("unloadvideo")),n&&(vo(),wo())}function xo(t){rn.toggleClass(p,t)}function _o(t){if(!Mn.flow){var e=t?t.pageX:_o.x,n=e&&!no(eo(e))&&o.click;_o.p!==n&&sn.toggleClass(M,n)&&(_o.p=n,_o.x=e)}}function Co(t){clearTimeout(Co.t),o.clicktransition&&o.clicktransition!==o.transition?setTimeout((function(){var e=o.transition;Ge.setOptions({transition:o.clicktransition}),se=e,Co.t=setTimeout((function(){Ge.show(t)}),10)}),0):Ge.show(t)}function To(t,e){Mn[t]=Fn[t]=e}function ko(t){Co({index:i(this).data().eq,slow:t.altKey,user:!0,coo:t._x-pn.offset().left})}function Mo(t){Co({index:dn.index(this)?">":"<",slow:t.altKey,user:!0})}function So(t){Fe(t,(function(){setTimeout((function(){_e(sn)}),0),xo(!1)}))}function Fo(){if(a=Ge.data=a||xe(o.data)||pe(t),I=Ge.size=a.length,!Po.ok&&o.shuffle&&be(a),qn(),Tn=Dn(Tn),I&&zn(!0),function(){Ge.options=o=Ce(o),Ut="crossfade"===o.transition||"dissolve"===o.transition,Et=o.loop&&(I>2||Ut&&(!se||"slide"!==se)),ne=+o.transitionduration||Wt,$e="rtl"===o.direction,Le=i.extend({},o.keyboard&&Gt,o.keyboard);var t,e,n,a={add:[],remove:[]};function r(t,e){a[t?"add":"remove"].push(e)}I>1||o.enableifsingleframe?(jt=o.nav,Ot="top"===o.navposition,a.remove.push(V),dn.toggle(!!o.arrows)):(jt=!1,dn.hide()),Xn(),R=new xt(i.extend(_t,o.spinner,Ct,{direction:$e?-1:1})),oo(),io(),o.autoplay&&Ln(o.autoplay),Yt=oe(o.thumbwidth)||64,Qt=oe(o.thumbheight)||64,Sn.ok=En.ok=o.trackpad&&!Lt,On(),fo(o,[kn]),($t="thumbs"===jt)?(Qn(I,"navThumb"),D=wn,Ue=Vt,t=on,e=i.Fotorama.jst.style({w:Yt,h:Qt,b:o.thumbborderwidth,m:o.thumbmargin,s:Je,q:!At}),(n=t[0]).styleSheet?n.styleSheet.cssText=e:t.html(e),pn.addClass(A).removeClass(q)):"dots"===jt?(Qn(I,"navDot"),D=vn,Ue=Bt,pn.addClass(q).removeClass(A)):(jt=!1,pn.removeClass(A+" "+q)),jt&&(Ot?hn.insertBefore(sn):hn.insertAfter(sn),to.nav=!1,to(D,mn,"nav")),(Dt=o.allowfullscreen)?(yn.prependTo(sn),Ht=zt&&"native"===Dt):(yn.detach(),Ht=!1),r(Ut,d),r(!Ut,h),r(!o.captions,y),r($e,w),r("always"!==o.arrows,b),r(!(ce=o.shadows&&!Lt),m),rn.addClass(a.add.join(" ")).removeClass(a.remove.join(" ")),i.extend({},o)}(),!Fo.i){Fo.i=!0;var e=o.startindex;(e||o.hash&&n.hash)&&(Ft=ge(e||n.hash.replace(/^#/,""),a,0===Ge.index||e,e)),Tn=vt=gt=yt=Ft=Rn(Ft)||0}if(I){if(Eo())return;et&&bo(et,!0),mt=[],lo(Kt),Fo.ok=!0,Ge.show({index:Tn,time:0}),Ge.resize()}else Ge.destroy()}function Eo(){if(!Eo.f===$e)return Eo.f=$e,Tn=I-1-Tn,Ge.reverse(),!0}function Po(){Po.ok||(Po.ok=!0,ho("ready"))}rn[Kt]=i(ye(_)),rn[Vt]=i(ye(z+" "+L+pt,ye(at))),rn[Bt]=i(ye(z+" "+O+pt,ye(it))),Pn[Kt]=[],Pn[Vt]=[],Pn[Bt]=[],Nn[Kt]={},rn.addClass(qt?c:l).toggleClass(p,!o.controlsonstart),nn.fotorama=this,Ge.startAutoplay=function(t){return Ge.autoplay||(He=Ke=!1,Ln(t||o.autoplay),wo()),this},Ge.stopAutoplay=function(){return Ge.autoplay&&(He=Ke=!0,wo()),this},Ge.show=function(t){var e;"object"!=typeof t?(e=t,t={}):e=t.index,e=">"===e?gt+1:"<"===e?gt-1:"<<"===e?0:">>"===e?I-1:e,e=void 0===(e=isNaN(e)?ge(e,a,!0):e)?Tn||0:e,Ge.activeIndex=Tn=Rn(e),bt=Wn(Tn),Mt=Hn(Tn),St=In(Tn+($e?-1:1)),mt=[Tn,bt,Mt],gt=Et?e:Tn;var i=Math.abs(yt-gt),r=le(t.time,(function(){return Math.min(ne*(1+(i-1)/12),2*ne)})),s=t.overPos;t.slow&&(r*=10);var u=ut;Ge.activeFrame=ut=a[Tn];var l=u===ut&&!t.user;bo(et,ut.i!==a[In(vt)].i),Qn(mt,"stage"),Jn(Lt?[gt]:[gt,Wn(gt),Hn(gt)]),To("go",!0),l||ho("show",{user:t.user,time:r}),He=!0;var c,f=Ge.show.onEnd=function(e){if(!f.ok){if(f.ok=!0,e||co(!0),l||ho("showend",{user:t.user}),!e&&se&&se!==o.transition)return Ge.setOptions({transition:se}),void(se=!1);Un(),Vn(mt,"stage"),To("go",!1),io(),_o(),vo(),wo()}};Ut?je(ut[Kt],Tn!==yt?a[yt][Kt]:null,ln,{time:r,method:o.transition,onEnd:f},$n):Ne(un,{pos:-re(gt,kn.w,o.margin,vt),overPos:s,time:r,onEnd:f});if(oo(),jt){uo(Ue),Pn[Ue].push(ut[Ue].addClass(B));var d=Dn(Tn+Zt(gt-yt,-1,1));so({time:r,coo:d!==Tn&&t.coo,guessIndex:void 0!==t.coo?d:Tn,keep:l}),$t&&ro(r)}return We=void 0!==yt&&yt!==Tn,yt=Tn,o.hash&&We&&!Ge.eq&&(c=ut.id||Tn+1,n.replace(n.protocol+"//"+n.host+n.pathname.replace(/^\/?/,"/")+n.search+"#"+c)),this},Ge.requestFullScreen=function(){return Dt&&!Ge.fullScreen&&(De=Pt.scrollTop(),Re=Pt.scrollLeft(),_e(Pt),To("x",!0),Be=i.extend({},kn),t.addClass(U).appendTo(kt.addClass(s)),Tt.addClass(s),bo(et,!0,!0),Ge.fullScreen=!0,Ht&&wt.request(tn),Ge.resize(),Vn(mt,"stage"),Un(),ho("fullscreenenter")),this},Ge.cancelFullScreen=function(){return Ht&&wt.is()?wt.cancel(e):go(),this},Ge.toggleFullScreen=function(){return Ge[(Ge.fullScreen?"cancel":"request")+"FullScreen"]()},ke(e,wt.event,(function(){!a||wt.is()||et||go()})),Ge.resize=function(t){if(!a)return this;var e=arguments[1]||0,n=arguments[2];fo(Ge.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:Ce(t),[kn,n||Ge.fullScreen||o]);var i=kn.width,r=kn.height,s=kn.ratio,u=Pt.height()-(jt?pn.height():0);return ae(i)&&(rn.addClass(g).css({width:i,minWidth:kn.minwidth||0,maxWidth:kn.maxwidth||99999}),i=kn.W=kn.w=rn.width(),kn.nw=jt&&ie(o.navwidth,i)||i,o.glimpse&&(kn.w-=Math.round(2*(ie(o.glimpse,i)||0))),un.css({width:kn.w,marginLeft:(kn.W-kn.w)/2}),(r=(r=ie(r,u))||s&&i/s)&&(i=Math.round(i),r=kn.h=Math.round(Zt(r,ie(kn.minheight,u),ie(kn.maxheight,u))),sn.stop().animate({width:i,height:r},e,(function(){rn.removeClass(g)})),co(),jt&&(pn.stop().animate({width:kn.nw},e),so({guessIndex:Tn,time:e,keep:!0}),$t&&to.nav&&ro(e)),Ie=n||!0,Po())),jn=sn.offset().left,this},Ge.setOptions=function(t){return i.extend(o,t),Fo(),this},Ge.shuffle=function(){return a&&be(a)&&Fo(),this},Ge.destroy=function(){return Ge.cancelFullScreen(),Ge.stopAutoplay(),a=Ge.data=null,zn(),mt=[],lo(Kt),Fo.ok=!1,this},Ge.playVideo=function(){var t=ut,e=t.video,n=Tn;return"object"==typeof e&&t.videoReady&&(Ht&&Ge.fullScreen&&Ge.cancelFullScreen(),me((function(){return!wt.is()||n!==Tn}),(function(){n===Tn&&(t.$video=t.$video||i(i.Fotorama.jst.video(e)),t.$video.appendTo(t[Kt]),rn.addClass(f),et=t.$video,On(),dn.blur(),yn.blur(),ho("loadvideo"))}))),this},Ge.stopVideo=function(){return bo(et,!0,!0),this},sn.on("mousemove",_o),Mn=Ae(un,{onStart:po,onMove:function(t,e){yo(sn,e.edge)},onTouchEnd:mo,onEnd:function(t){yo(sn);var e,n,a,r,s=(It&&!Xe||t.touch)&&o.arrows&&"always"!==o.arrows;if(t.moved||s&&t.pos!==t.newPos&&!t.control){var u=(e=t.newPos,n=kn.w,a=o.margin,r=vt,-Math.round(e/(n+(a||0))-(r||0)));Ge.show({index:u,time:Ut?ne:t.time,overPos:t.overPos,user:!0})}else t.aborted||t.control||function(t,e){var n=t.target;i(n).hasClass(lt)?Ge.playVideo():n===bn?Ge.toggleFullScreen():et?n===_n&&bo(et,!0,!0):e?xo():o.click&&Co({index:t.shiftKey||Pe(eo(t._x)),slow:t.altKey,user:!0})}(t.startEvent,s)},timeLow:1,timeHigh:1,friction:2,select:"."+V+", ."+V+" *",$wrap:sn}),Fn=Ae(mn,{onStart:po,onMove:function(t,e){yo(pn,e.edge)},onTouchEnd:mo,onEnd:function(t){function e(){so.l=t.newPos,vo(),wo(),Zn(t.newPos,!0)}if(t.moved)t.pos!==t.newPos?(He=!0,Ne(mn,{time:t.time,pos:t.newPos,overPos:t.overPos,onEnd:e}),Zn(t.newPos),ce&&yo(pn,we(t.newPos,Fn.min,Fn.max))):e();else{var n=t.$target.closest("."+z,mn)[0];n&&ko.call(n,t.startEvent)}},timeLow:.5,timeHigh:2,friction:5,$wrap:pn}),Sn=ze(sn,{shift:!0,onEnd:function(t,e){po(),mo(),Ge.show({index:e,slow:t.altKey})}}),En=ze(pn,{onEnd:function(t,e){po(),mo();var n=ue(mn)+.25*e;mn.css(te(Zt(n,Fn.min,Fn.max))),ce&&yo(pn,we(n,Fn.min,Fn.max)),En.prevent={"<":n>=Fn.max,">":n<=Fn.min},clearTimeout(En.t),En.t=setTimeout((function(){so.l=n,Zn(n,!0)}),Rt),Zn(n)}}),rn.hover((function(){setTimeout((function(){Ve||xo(!(Xe=!0))}),0)}),(function(){Xe&&xo(!(Xe=!1))})),Ye=function(t){Ee(t),Mo.call(this,t)},Qe=(Qe={onStart:function(){po(),Mn.control=!0},onTouchEnd:mo})||{},dn.each((function(){var t,e=i(this),n=e.data();n.clickOn||(n.clickOn=!0,i.extend(qe(e,{onStart:function(e){t=e,(Qe.onStart||Jt).call(this,e)},onMove:Qe.onMove||Jt,onTouchEnd:Qe.onTouchEnd||Jt,onEnd:function(e){e.moved||Ye.call(this,t)}}),{noMove:!0}))})),dn.each((function(){Se(this,(function(t){Mo.call(this,t)})),So(this)})),Se(bn,Ge.toggleFullScreen),So(bn),i.each("load push pop shift unshift reverse sort splice".split(" "),(function(t,e){Ge[e]=function(){return a=a||[],"load"!==e?Array.prototype[e].apply(a,arguments):arguments[0]&&"object"==typeof arguments[0]&&arguments[0].length&&(a=xe(arguments[0])),Fo(),Ge}})),Fo()},i.fn.fotorama=function(e){return this.each((function(){var n=this,o=i(this),a=o.data(),r=a.fotorama;r?r.setOptions(e,!0):me((function(){return!(0===(t=n).offsetWidth&&0===t.offsetHeight);var t}),(function(){a.urtext=o.html(),new i.Fotorama(o,i.extend({},Qt,t.fotoramaDefaults,e,a))}))}))},i.Fotorama.instances=[],i.Fotorama.cache={},i.Fotorama.measures={},(i=i||{}).Fotorama=i.Fotorama||{},i.Fotorama.jst=i.Fotorama.jst||{},i.Fotorama.jst.style=function(t){var e,n="";return n+=".fotorama"+(null==(e=t.s)?"":e)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+(null==(e=t.m)?"":e)+"px;\nheight:"+(null==(e=t.h)?"":e)+"px}\n.fotorama"+(null==(e=t.s)?"":e)+" .fotorama__thumb-border{\nheight:"+(null==(e=t.h-t.b*(t.q?0:2))?"":e)+"px;\nborder-width:"+(null==(e=t.b)?"":e)+"px;\nmargin-top:"+(null==(e=t.m)?"":e)+"px}"},i.Fotorama.jst.video=function(t){var e="",n=Array.prototype.join;return e+='\n'},i((function(){i("."+r+':not([data-auto="false"])').fotorama()}))}(window,document,location,void 0!==o&&o)}}]);