");return i.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(o,{},i),o}}});var M,F="ajax",H=function(){M&&o.removeClass(M)},j=function(){H(),t.req&&t.req.abort()};e.magnificPopup.registerModule(F,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){t.types.push(F),M=t.st.ajax.cursor,k(l+"."+F,j),k("BeforeChange."+F,j)},getAjax:function(i){M&&o.addClass(M),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(o,n,r){var a={data:o,xhr:r};S("ParseAjax",a),t.appendContent(e(a.data),F),i.finished=!0,H(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),S("AjaxContentAdded")},error:function(){H(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var N,W=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=t.st.image.titleSrc;if(o){if(e.isFunction(o))return o.call(t,i);if(i.el)return i.el.attr(o)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var e=t.st.image,i=".image";t.types.push("image"),k(u+i,function(){"image"===t.currItem.type&&e.cursor&&o.addClass(e.cursor)}),k(l+i,function(){e.cursor&&o.removeClass(e.cursor),x.off("resize"+h)}),k("Resize"+i,t.resizeImage),t.isLowIE&&k("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,S("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(r){N&&clearInterval(N),N=setInterval(function(){return o.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(N),i++,void(3===i?n(10):40===i?n(50):100===i&&n(500)))},r)};n(1)},getImage:function(i,o){var n=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,S("ImageLoadComplete")):(n++,200>n?setTimeout(r,100):a()))},a=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(o,{title:W(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(N&&clearInterval(N),i.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready")),o):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(i)),o)}}});var A,R=function(){return void 0===A&&(A=void 0!==document.createElement("p").style.MozTransform),A};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,o=".zoom";if(i.enabled&&t.supportsTransition){var n,r,a=i.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return n["-webkit-"+r]=n["-moz-"+r]=n["-o-"+r]=n[r]=o,t.css(n),t},d=function(){t.content.css("visibility","visible")};k("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();r=s(e),r.css(t._getOffset()),t.wrap.append(r),n=setTimeout(function(){r.css(t._getOffset(!0)),n=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,S("ZoomAnimationEnded")},16)},a)},16)}}),k(c+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),k(l+o,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var o;o=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var n=o.offset(),r=parseInt(o.css("padding-top"),10),a=parseInt(o.css("padding-bottom"),10);n.top-=e(window).scrollTop()-r;var s={width:o.width(),height:(C?o.innerHeight():o[0].offsetHeight)-a-r};return R()?s["-moz-transform"]=s.transform="translate("+n.left+"px,"+n.top+"px)":(s.left=n.left,s.top=n.top),s}}});var $="iframe",Y="//about:blank",D=function(e){if(t.currTemplate[$]){var i=t.currTemplate[$].find("iframe");i.length&&(e||(i[0].src=Y),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule($,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push($),k("BeforeChange",function(e,t,i){t!==i&&(t===$?D():i===$&&D(!0))}),k(l+"."+$,function(){D()})},getIframe:function(i,o){var n=i.src,r=t.st.iframe;e.each(r.patterns,function(){return n.indexOf(this.index)>-1?(this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=n),t._parseMarkup(o,a,i),t.updateStatus("ready"),o}}});var Z=function(e){var i=t.items.length;return e>i-1?e-i:0>e?i+e:e},q=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,i&&i.enabled?(a+=" mfp-gallery",k(u+o,function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),n.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),k("UpdateStatus"+o,function(e,i){i.text&&(i.text=q(i.text,t.currItem.index,t.items.length))}),k(p+o,function(e,o,n,r){var a=t.items.length;n.counter=a>1?q(i.tCounter,r.index,a):""}),k("BuildControls"+o,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var o=i.arrowMarkup,n=t.arrowLeft=e(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y),s=r?"mfpFastClick":"click";n[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(I("b",n[0],!1,!0),I("a",n[0],!1,!0),I("b",a[0],!1,!0),I("a",a[0],!1,!0)),t.container.append(n.add(a))}}),k(m+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void k(l+o,function(){n.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})):!1},next:function(){t.direction=!0,t.index=Z(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=Z(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,o=Math.min(i[0],t.items.length),n=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=Z(i),!t.items[i].preloaded){var o=t.items[i];o.parsed||(o=t.parseEl(i)),S("LazyLoad",o),"image"===o.type&&(o.img=e('
').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,S("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});var K="retina";e.magnificPopup.registerModule(K,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(k("ImageHasSize."+K,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),k("ElementParse."+K,function(t,o){o.src=e.replaceSrc(o,i)}))}}}}),function(){var t=1e3,i="ontouchstart"in window,o=function(){x.off("touchmove"+r+" touchend"+r)},n="mfpFastClick",r="."+n;e.fn.mfpFastClick=function(n){return e(this).each(function(){var a,s=e(this);if(i){var l,c,d,f,p,u;s.on("touchstart"+r,function(e){f=!1,u=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,x.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,u=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(f=!0,o())}).on("touchend"+r,function(e){o(),f||u>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),n())})})}s.on("click"+r,function(){a||n()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),i&&x.off("touchmove"+r+" touchend"+r)}}(),E()}(window.jQuery||window.Zepto),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(e){var t="1.7.2",i={},o={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},n=function(t){var i=[],o=!1,n=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each(function(){var t=e(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(t[n]()>0?i.push(this):(t[n](1),o=t[n]()>0,o&&i.push(this),t[n](0))):(i.push(document.scrollingElement),!1):void 0}),i.length||this.each(function(){this===document.documentElement&&"smooth"===e(this).css("scrollBehavior")&&(i=[this]),i.length||"BODY"!==this.nodeName||(i=[this])}),"first"===t.el&&i.length>1&&(i=[i[0]]),i};e.fn.extend({scrollable:function(e){var t=n.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=n.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(t,i){if(t=t||{},"options"===t)return i?this.each(function(){var t=e(this),o=e.extend(t.data("ssOpts")||{},i);e(this).data("ssOpts",o)}):this.first().data("ssOpts");var o=e.extend({},e.fn.smoothScroll.defaults,t),n=function(t){var i=function(e){return e.replace(/(:|\.|\/)/g,"\\$1")},n=this,r=e(this),a=e.extend({},o,r.data("ssOpts")||{}),s=o.exclude,l=a.excludeWithin,c=0,d=0,f=!0,p={},u=e.smoothScroll.filterPath(location.pathname),m=e.smoothScroll.filterPath(n.pathname),g=location.hostname===n.hostname||!n.hostname,h=a.scrollTarget||m===u,v=i(n.hash);if(v&&!e(v).length&&(f=!1),a.scrollTarget||g&&h&&v){for(;f&&c
=0;e--)c(z[e])}function c(e){if(e.inited){var t=_.top<=e.limit.start?0:_.top>=e.limit.end?2:1;e.mode!=t&&g(e,t)}}function d(){for(var e=z.length-1;e>=0;e--)if(z[e].inited){var t=Math.abs(y(z[e].clone)-z[e].docOffsetTop),i=Math.abs(z[e].parent.node.offsetHeight-z[e].parent.height);if(t>=2||i>=2)return!1}return!0}function f(e){isNaN(parseFloat(e.computed.top))||e.isCell||"none"==e.computed.display||(e.inited=!0,e.clone||h(e),"absolute"!=e.parent.computed.position&&"relative"!=e.parent.computed.position&&(e.parent.node.style.position="relative"),c(e),e.parent.height=e.parent.node.offsetHeight,e.docOffsetTop=y(e.clone))}function p(e){var t=!0;e.clone&&v(e),o(e.node.style,e.css);for(var i=z.length-1;i>=0;i--)if(z[i].node!==e.node&&z[i].parent.node===e.parent.node){t=!1;break}t&&(e.parent.node.style.position=e.parent.css.position),e.mode=-1}function u(){for(var e=z.length-1;e>=0;e--)f(z[e])}function m(){for(var e=z.length-1;e>=0;e--)p(z[e])}function g(e,t){var i=e.node.style;switch(t){case 0:i.position="absolute",i.left=e.offset.left+"px",i.right=e.offset.right+"px",i.top=e.offset.top+"px",i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 1:i.position="fixed",i.left=e.box.left+"px",i.right=e.box.right+"px",i.top=e.css.top,i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 2:i.position="absolute",i.left=e.offset.left+"px",i.right=e.offset.right+"px",i.top="auto",i.bottom=0,i.width="auto",i.marginLeft=0,i.marginRight=0}e.mode=t}function h(e){e.clone=document.createElement("div");var t=e.node.nextSibling||e.node,i=e.clone.style;i.height=e.height+"px",i.width=e.width+"px",i.marginTop=e.computed.marginTop,i.marginBottom=e.computed.marginBottom,i.marginLeft=e.computed.marginLeft,i.marginRight=e.computed.marginRight,i.padding=i.border=i.borderSpacing=0,i.fontSize="1em",i.position="static",i.cssFloat=e.computed.cssFloat,e.node.parentNode.insertBefore(e.clone,t)}function v(e){e.clone.parentNode.removeChild(e.clone),e.clone=void 0}function w(e){var t=getComputedStyle(e),i=e.parentNode,o=getComputedStyle(i),r=e.style.position;e.style.position="relative";var a={top:t.top,marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,display:t.display},s={top:n(t.top),marginBottom:n(t.marginBottom),paddingLeft:n(t.paddingLeft),paddingRight:n(t.paddingRight),borderLeftWidth:n(t.borderLeftWidth),borderRightWidth:n(t.borderRightWidth)};e.style.position=r;var l={position:e.style.position,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},c=b(e),d=b(i),f={node:i,css:{position:i.style.position},computed:{position:o.position},numeric:{borderLeftWidth:n(o.borderLeftWidth),borderRightWidth:n(o.borderRightWidth),borderTopWidth:n(o.borderTopWidth),borderBottomWidth:n(o.borderBottomWidth)}},p={node:e,box:{left:c.win.left,right:F.clientWidth-c.win.right},offset:{top:c.win.top-d.win.top-f.numeric.borderTopWidth,left:c.win.left-d.win.left-f.numeric.borderLeftWidth,right:-c.win.right+d.win.right-f.numeric.borderRightWidth},css:l,isCell:"table-cell"==t.display,computed:a,numeric:s,width:c.win.right-c.win.left,height:c.win.bottom-c.win.top,mode:-1,inited:!1,parent:f,limit:{start:c.doc.top-s.top,end:d.doc.top+i.offsetHeight-f.numeric.borderBottomWidth-e.offsetHeight-s.top-s.marginBottom}};return p}function y(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function b(e){var i=e.getBoundingClientRect();return{doc:{top:i.top+t.pageYOffset,left:i.left+t.pageXOffset},win:i}}function C(){B=setInterval(function(){!d()&&S()},500)}function x(){clearInterval(B)}function k(){M&&(document[j]?x():C())}function I(){M||(r(),u(),t.addEventListener("scroll",a),t.addEventListener("wheel",s),t.addEventListener("resize",S),t.addEventListener("orientationchange",S),e.addEventListener(N,k),C(),M=!0)}function S(){if(M){m();for(var e=z.length-1;e>=0;e--)z[e]=w(z[e].node);u()}}function T(){t.removeEventListener("scroll",a),t.removeEventListener("wheel",s),t.removeEventListener("resize",S),t.removeEventListener("orientationchange",S),e.removeEventListener(N,k),x(),M=!1}function E(){T(),m()}function O(){for(E();z.length;)z.pop()}function L(e){for(var t=z.length-1;t>=0;t--)if(z[t].node===e)return;var i=w(e);z.push(i),M?f(i):I()}function P(e){for(var t=z.length-1;t>=0;t--)z[t].node===e&&(p(z[t]),z.splice(t,1))}var _,B,z=[],M=!1,F=e.documentElement,H=function(){},j="hidden",N="visibilitychange";void 0!==e.webkitHidden&&(j="webkitHidden",N="webkitvisibilitychange"),t.getComputedStyle||i();for(var W=["","-webkit-","-moz-","-ms-"],A=document.createElement("div"),R=W.length-1;R>=0;R--){try{A.style.position=W[R]+"sticky"}catch($){}""!=A.style.position&&i()}r(),t.Stickyfill={stickies:z,add:L,remove:P,init:I,rebuild:S,pause:T,stop:E,kill:O}}(document,window),window.jQuery&&!function(e){e.fn.Stickyfill=function(){return this.each(function(){
Stickyfill.add(this)}),this}}(window.jQuery);