UNPKG

fullpage.js

Version:

Create beautiful fullscreen snap scrolling websites

11 lines 57.1 kB
/*! * fullPage 4.0.37 * https://github.com/alvarotrigo/fullPage.js * * @license GPLv3 for open source use only * or Fullpage Commercial License for commercial use * http://alvarotrigo.com/fullPage/pricing/ * * Copyright (C) 2018 http://alvarotrigo.com/fullPage - A project by Alvaro Trigo */ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).fullpage=t()}(this,(function(){"use strict";var n,t,e,i;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),e=t.length>>>0;if("function"!=typeof n)throw new TypeError("predicate must be a function");for(var i=arguments[1],o=0;o<e;){var r=t[o];if(n.call(i,r,o,t))return r;o++}}}),Array.from||(Array.from=(n=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===n.call(t)},e=Math.pow(2,53)-1,i=function(n){var t=function(n){var t=Number(n);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(n);return Math.min(Math.max(t,0),e)},function(n){var e=this,o=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var u,l=i(o.length),c=t(e)?Object(new e(l)):new Array(l),f=0;f<l;)u=o[f],c[f]=a?void 0===r?a(u,f):a.call(r,u,f):u,f+=1;return c.length=l,c}));var o,r=window,a=document,u=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,l=/(Mac|iPhone|iPod|iPad)/i.test(r.navigator.userAgent),c="ontouchstart"in r||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,f=!!window.MSInputMethodContext&&!!document.documentMode,s={test:{},shared:{}},v=["parallax","scrollOverflowReset","dragAndMove","offsetSections","fadingEffect","responsiveSlides","continuousHorizontal","interlockedSlides","scrollHorizontally","resetSliders","cards","dropEffect","waterEffect"],d=(o=window.self!==window.top,function(){return o});function h(n,t){r.console&&r.console[n]&&r.console[n]("fullPage: "+t)}function p(n){return"none"!==r.getComputedStyle(n).display}function g(n){return Array.from(n).filter((function(n){return p(n)}))}function m(n,t){return(t=arguments.length>1?t:document)?t.querySelectorAll(n):null}function w(n){n=n||{};for(var t=1,e=arguments.length;t<e;++t){var i=arguments[t];if(i)for(var o in i)i.hasOwnProperty(o)&&"__proto__"!=o&&"constructor"!=o&&("[object Object]"!==Object.prototype.toString.call(i[o])?n[o]=i[o]:n[o]=w(n[o],i[o]))}return n}function b(n,t){return null!=n&&n.classList.contains(t)}function y(){return"innerHeight"in r?r.innerHeight:a.documentElement.offsetHeight}function S(){return r.innerWidth}function T(n,t){var e;for(e in n=O(n),t)if(t.hasOwnProperty(e)&&null!==e)for(var i=0;i<n.length;i++)n[i].style[e]=t[e];return n}function M(n){return n.previousElementSibling}function A(n){return n.nextElementSibling}function x(n){return n[n.length-1]}function k(n,t){n=D(n)?n[0]:n;for(var e=null!=t?m(t,n.parentNode):n.parentNode.childNodes,i=0,o=0;o<e.length;o++){if(e[o]==n)return i;1==e[o].nodeType&&i++}return-1}function O(n){return D(n)?n:[n]}function j(n){n=O(n);for(var t=0;t<n.length;t++)n[t].style.display="none";return n}function L(n){n=O(n);for(var t=0;t<n.length;t++)n[t].style.display="block";return n}function D(n){return"[object Array]"===Object.prototype.toString.call(n)||"[object NodeList]"===Object.prototype.toString.call(n)}function E(n,t){n=O(n);for(var e=0;e<n.length;e++)n[e].classList.add(t);return n}function R(n,t){n=O(n);for(var e=t.split(" "),i=0;i<e.length;i++){t=e[i];for(var o=0;o<n.length;o++)n[o].classList.remove(t)}return n}function P(n,t){t.appendChild(n)}function F(n,t,e){var i;t=t||a.createElement("div");for(var o=0;o<n.length;o++){var r=n[o];(e&&!o||!e)&&(i=t.cloneNode(!0),r.parentNode.insertBefore(i,r)),i.appendChild(r)}return n}function z(n,t){F(n,t,!0)}function C(n,t){for(n.appendChild(t);n.firstChild!==t;)t.appendChild(n.firstChild)}function I(n){for(var t=a.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);n.parentNode.replaceChild(t,n)}function N(n,t){return n&&1===n.nodeType?J(n,t)?n:N(n.parentNode,t):null}function B(n,t){W(n,n.nextSibling,t)}function H(n,t){W(n,n,t)}function W(n,t,e){D(e)||("string"==typeof e&&(e=nn(e)),e=[e]);for(var i=0;i<e.length;i++)n.parentNode.insertBefore(e[i],t)}function V(){var n=a.documentElement;return(r.pageYOffset||n.scrollTop)-(n.clientTop||0)}function U(n){return Array.prototype.filter.call(n.parentNode.children,(function(t){return t!==n}))}function _(n){n.preventDefault()}function K(n,t){return n.getAttribute(t)}function q(n,t,e){a.addEventListener(n,t,"undefined"===e?null:e)}function G(n,t,e){r.addEventListener(n,t,"undefined"===e?null:e)}function $(n,t,e){a.removeEventListener(n,t,"undefined"===e?null:e)}function Y(n,t,e){r.removeEventListener(n,t,"undefined"===e?null:e)}function X(n){if("function"==typeof n)return!0;var t=Object.prototype.toString.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t}function Q(n,t,e){var i;e=void 0===e?{}:e,"function"==typeof r.CustomEvent?i=new CustomEvent(t,{detail:e}):(i=a.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,e),n.dispatchEvent(i)}function J(n,t){return(n.matches||n.t||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector).call(n,t)}function Z(n,t){if("boolean"==typeof t)for(var e=0;e<n.length;e++)n[e].style.display=t?"block":"none";return n}function nn(n){var t=a.createElement("div");return t.innerHTML=n.trim(),t.firstChild}function tn(n){n=O(n);for(var t=0;t<n.length;t++){var e=n[t];e&&e.parentElement&&e.parentNode.removeChild(e)}}function en(n,t,e){for(var i=n[e],o=[];i;)(J(i,t)||null==t)&&o.push(i),i=i[e];return o}function on(n,t){return en(n,t,"nextElementSibling")}function rn(n,t){return en(n,t,"previousElementSibling")}function an(n){return Object.keys(n).map((function(t){return n[t]}))}function un(n){return n[n.length-1]}function ln(n,t){for(var e=0,i=n.slice(Math.max(n.length-t,1)),o=0;o<i.length;o++)e+=i[o];return Math.ceil(e/t)}function cn(n,t){n.setAttribute(t,K(n,"data-"+t)),n.removeAttribute("data-"+t)}function fn(n,t){var e=[n];do{n=n.parentNode,e.push(n)}while(!J(n,t));return e}function sn(){var n=a.activeElement;return J(n,"textarea")||J(n,"input")||J(n,"select")||"true"==K(n,"contentEditable")||""==K(n,"contentEditable")}r.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var e=0;e<this.length;e++)n.call(t,this[e],e,this)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(n,t){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(n),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},writable:!0,i:!0}),String.prototype.padStart||(String.prototype.padStart=function(n,t){return n>>=0,t=String(void 0!==t?t:" "),this.length>n?String(this):((n-=this.length)>t.length&&(t+=Array.apply(null,Array(n)).map((function(){return t})).join("")),t.slice(0,n)+String(this))}),window.fp_utils={$:m,deepExtend:w,hasClass:b,getWindowHeight:y,css:T,prev:M,next:A,last:x,index:k,getList:O,hide:j,show:L,isArrayOrList:D,addClass:E,removeClass:R,appendTo:P,wrap:F,wrapAll:z,unwrap:I,closest:N,after:B,before:H,insertBefore:W,getScrollTop:V,siblings:U,preventDefault:_,isFunction:X,trigger:Q,matches:J,toggle:Z,createElementFromHTML:nn,remove:tn,untilAll:en,nextAll:on,prevAll:rn,showError:h};var vn=Object.freeze({__proto__:null,showError:h,isVisible:p,o:g,$:m,deepExtend:w,hasClass:b,getWindowHeight:y,u:S,css:T,prev:M,next:A,last:x,index:k,getList:O,hide:j,show:L,isArrayOrList:D,addClass:E,removeClass:R,appendTo:P,wrap:F,wrapAll:z,l:C,unwrap:I,closest:N,after:B,before:H,insertBefore:W,getScrollTop:V,siblings:U,preventDefault:_,v:K,h:q,p:G,g:$,S:Y,isFunction:X,trigger:Q,matches:J,toggle:Z,createElementFromHTML:nn,remove:tn,untilAll:en,nextAll:on,prevAll:rn,toArray:an,T:un,M:ln,A:cn,O:fn,j:sn});function dn(n){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dn(n)}var hn={L:{},D:function(n,t){var e=this;return"object"!==dn(this.L[n])&&(this.L[n]=[]),this.L[n].push(t),function(){return e.removeListener(n,t)}},removeListener:function(n,t){if("object"===dn(this.L[n])){var e=this.L[n].indexOf(t);e>-1&&this.L[n].splice(e,1)}},R:function(n){for(var t=this,e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];"object"===dn(this.L[n])&&this.L[n].forEach((function(n){return n.apply(t,i)}))},once:function(n,t){var e=this,i=this.D(n,(function(){i();for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t.apply(e,o)}))}},pn={P:0,F:0,slides:[],C:[],I:null,N:null,B:!1,H:!1,W:!1,V:!1,U:!1,_:void 0,K:void 0,q:!1,G:!0,Y:"none",X:"none",J:!1,Z:!1,nn:!0,tn:0,en:y(),on:!1,rn:{},scrollY:0,scrollX:0,an:!1},gn=Object.assign({},pn);function mn(n){Object.assign(gn,n)}function wn(){return gn}r.state=gn;var bn="onAfterRenderNoAnchor",yn="onClickOrTouch",Sn="moveSlideLeft",Tn="moveSlideRight",Mn="onInitialise",An="beforeInit",xn="bindEvents",kn="onDestroy",On="onDestroyAll",jn="contentChanged",Ln="onScrollOverflowScrolled",Dn="onScrollPageAndSlide",En="onKeyDown",Rn="onMenuClick",Pn="scrollPage",Fn="landscapeScroll",zn="scrollBeyondFullpage",Cn="onPerformMovement",In="onSlideLeave",Nn="onLeave",Bn="afterSectionLoads",Hn="afterSlideLoads";function Wn(n){hn.R(yn,{e:n,target:n.target})}function Vn(){["click","touchstart"].forEach((function(n){$(n,Wn)}))}function Un(){mn({nn:!0})}hn.D(xn,(function(){["click","touchstart"].forEach((function(n){q(n,Wn)})),G("focus",Un),hn.D(kn,Vn)}));var _n="fullpage-wrapper",Kn="."+_n,qn="fp-scrollable",Gn="fp-responsive",$n="fp-notransition",Yn="fp-destroyed",Xn="fp-enabled",Qn="active",Jn=".active",Zn="fp-completely",nt="fp-loaded",tt="fp-section",et="."+tt,it=".fp-tableCell",ot="fp-auto-height",rt="#fp-nav",at="fp-slide",ut="."+at,lt=".fp-slide.active",ct="fp-slides",ft=".fp-slides",st="fp-slidesContainer",vt="."+st,dt="fp-table",ht="fp-overflow",pt="."+ht,gt="fp-is-overflow",mt=".fp-slidesNav",wt=".fp-slidesNav a",bt="fp-controlArrow",yt="."+bt,St="fp-prev",Tt=".fp-controlArrow.fp-prev",Mt=".fp-controlArrow.fp-next",At={menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,licenseKey:"",credits:{enabled:!0,label:"Made with fullPage.js",position:"right"},css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:600,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!0,scrollOverflowReset:!1,skipIntermediateItems:!1,touchSensitivity:5,touchWrapper:null,bigSectionsDestination:null,adjustOnNavChange:!0,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,allowCorrectDirection:!1,scrollOverflowMacStyle:!0,controlArrows:!0,controlArrowsHTML:['<div class="fp-arrow"></div>','<div class="fp-arrow"></div>'],controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},cards:!1,cardsOptions:{perspective:100,fadeContent:!0,fadeBackground:!0},sectionSelector:".section",slideSelector:".slide",afterLoad:null,beforeLeave:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,onScrollOverflow:null,lazyLoading:!0,lazyLoadThreshold:0,observer:!0,scrollBeyondFullpage:!0},xt=null,kt=!1,Ot=w({},At),jt=null;function Lt(n){return xt}function Dt(){return jt||At}function Et(){return Ot}function Rt(n,t,e){jt[n]=t,"internal"!==e&&(Ot[n]=t)}function Pt(){if(!Dt().anchors.length){var n=m(Dt().sectionSelector.split(",").join("[data-anchor],")+"[data-anchor]",xt);n.length&&n.length===m(Dt().sectionSelector,xt).length&&(kt=!0,n.forEach((function(n){Dt().anchors.push(K(n,"data-anchor").toString())})))}if(!Dt().navigationTooltips.length){var t=m(Dt().sectionSelector.split(",").join("[data-tooltip],")+"[data-tooltip]",xt);t.length&&t.forEach((function(n){Dt().navigationTooltips.push(K(n,"data-tooltip").toString())}))}}var Ft=function(n){this.anchor=n.anchor,this.item=n.item,this.index=n.index(),this.isLast=this.index===n.item.parentElement.querySelectorAll(n.selector).length-1,this.isFirst=!this.index,this.isActive=n.isActive},zt=function(n,t){this.parent=this.parent||null,this.selector=t,this.anchor=K(n,"data-anchor")||Dt().anchors[k(n,Dt().sectionSelector)],this.item=n,this.isVisible=p(n),this.isActive=b(n,Qn),this.un=b(n,ht)||null!=m(pt,n)[0],this.ln=t===Dt().sectionSelector,this.cn=N(n,vt)||N(n,Kn),this.index=function(){return this.siblings().indexOf(this)}};function Ct(n){return n.map((function(n){return n.item}))}function It(n,t){return n.find((function(n){return n.item===t}))}zt.prototype.siblings=function(){return this.ln?this.isVisible?gn.C:gn.sn:this.parent?this.parent.slides:0},zt.prototype.prev=function(){var n=this.siblings(),t=(this.ln?n.indexOf(this):this.parent.slides.indexOf(this))-1;return t>=0?n[t]:null},zt.prototype.next=function(){var n=this.siblings(),t=(this.ln?n.indexOf(this):this.parent.slides.indexOf(this))+1;return t<n.length?n[t]:null},zt.prototype.prevPanel=function(){return this.prev()||(this.parent?this.parent.prev():null)},zt.prototype.nextPanel=function(){return this.next()||(this.parent?this.parent.next():null)},zt.prototype.vn=function(){return this.ln?gn.C:gn.dn};var Nt,Bt=function(n){Ft.call(this,n)},Ht=function(n){Ft.call(this,n)};function Wt(n){var t=m(lt,n);return t.length&&(n=t[0]),n}function Vt(n){return n?n.activeSlide?n.activeSlide:n:null}function Ut(n){var t,e,i=Dt();return i.autoScrolling&&!i.scrollBar?(t=-n,e=m(Kn)[0]):(t=n,e=window),{options:t,element:e}}function _t(n,t){!Dt().autoScrolling||Dt().scrollBar||n.self!=window&&b(n,ct)?n.self!=window&&b(n,ct)?n.scrollLeft=t:n.scrollTo(0,t):n.style.top=t+"px"}function Kt(n){var t="transform "+Dt().scrollingSpeed+"ms "+Dt().easingcss3;return R(n,$n),T(n,{"-webkit-transition":t,transition:t})}function qt(n,t){var e=n.index(),i=k(t,et);return e==i?"none":e>i?"up":"down"}function Gt(n){return E(n,$n)}function $t(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function Yt(n,t){t?Kt(Lt()):Gt(Lt()),clearTimeout(Nt),T(Lt(),$t(n)),s.test.hn=n,Nt=setTimeout((function(){R(Lt(),$n)}),10)}function Xt(n){var t=Math.round(n);if(Dt().css3&&Dt().autoScrolling&&!Dt().scrollBar)Yt("translate3d(0px, -"+t+"px, 0px)",!1);else if(Dt().autoScrolling&&!Dt().scrollBar)T(Lt(),{top:-t+"px"}),s.test.top=-t+"px";else{var e=Ut(t);_t(e.element,e.options)}}function Qt(n,t){Rt("scrollingSpeed",n,t)}s.setScrollingSpeed=Qt;var Jt,Zt=null,ne=null,te=null;function ee(n,t,e,i){var o,a=function(n){return n.self!=r&&b(n,ct)?n.scrollLeft:!Dt().autoScrolling||Dt().scrollBar?V():n.offsetTop}(n),u=t-a,l=!1,c=gn.q;mn({q:!0}),Jt&&window.cancelAnimationFrame(Jt),Jt=function(f){o||(o=f);var s=Math.floor(f-o);if(gn.q){var v=t;e&&(v=r.fp_easings[Dt().easing](s,a,u,e)),s<=e&&_t(n,v),s<e?window.requestAnimationFrame(Jt):void 0===i||l||(_t(n,t),i(),mn({q:!1}),l=!0)}else l||c||(i(),mn({q:!1}),l=!0)},window.requestAnimationFrame(Jt)}function ie(n){return n&&!n.item?new Bt(new di(n)):n?new Bt(n):null}function oe(n){return n?new Ht(n):null}function re(n,t){var e=function(n,t){var e={afterRender:function(){return{section:ie(wn().I),pn:oe(wn().I.activeSlide)}},onLeave:function(){return{origin:ie(t.items.origin),destination:ie(t.items.destination),direction:t.direction,trigger:wn().N}},afterLoad:function(){return e.onLeave()},afterSlideLoad:function(){return{section:ie(t.items.section),origin:ie(t.items.origin),destination:ie(t.items.destination),direction:t.direction,trigger:wn().N}},onSlideLeave:function(){return e.afterSlideLoad()},beforeLeave:function(){return e.onLeave()},onScrollOverflow:function(){return{section:ie(wn().I),pn:oe(wn().I.activeSlide),position:t.position,direction:t.direction}}};return e[n]()}(n,t);return Q(Lt(),n,e),!1!==Dt()[n].apply(e[Object.keys(e)[0]],an(e))}function ae(n){return n.hasAttribute("data-autoplay")||n.hasAttribute("autoplay")}function ue(n){var t=Wt(n);m("video, audio",t).forEach((function(n){ae(n)&&"function"==typeof n.play&&n.play()})),m('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){ae(n)&&le(n),n.onload=function(){ae(n)&&le(n)}}))}function le(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function ce(n){var t=Wt(n);m("video, audio",t).forEach((function(n){n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()})),m('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){/youtube\.com\/embed\//.test(K(n,"src"))&&!n.hasAttribute("data-keepplaying")&&n.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function fe(n){if(Dt().lazyLoading){var t=Wt(n);m("img[data-src], img[data-srcset], source[data-src], source[data-srcset], video[data-src], audio[data-src], iframe[data-src]",t).forEach((function(n){if(["src","srcset"].forEach((function(t){var e=K(n,"data-"+t);null!=e&&e&&(cn(n,t),n.addEventListener("load",(function(){})))})),J(n,"source")){var t=N(n,"video, audio");t&&(t.load(),t.onloadeddata=function(){})}})),E(t,nt)}}function se(n){var t=Dt().lazyLoadThreshold;fe(n.item),t&&(ve(n,"prev",t),ve(n,"next",t))}function ve(n,t,e){for(var i=n,o=0;o<e&&(i=i[t]());o++)fe(i.item)}function de(){var n=wn().I.item,t=wn().I.activeSlide,e=he(n),i=String(e);t&&(i=i+"-"+he(t.item)),i=i.replace("/","-").replace("#","").replace(/\s/g,"");var o=new RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g");Zt.className=Zt.className.replace(o,""),E(Zt,"fp-viewing-"+i)}function he(n){if(!n)return null;var t=K(n,"data-anchor"),e=k(n);return null==t&&(t=e),t}function pe(n,t,e){var i="";Dt().anchors.length&&!Dt().lockAnchors&&(n?(null!=e&&(i=e),null==t&&(t=n),mn({K:t}),ge(i+"/"+t)):null!=n?(mn({K:t}),ge(e)):ge(e)),de()}function ge(n){Dt().recordHistory?location.hash=n:r.history.replaceState(void 0,void 0,"#"+n)}function me(n,t,e){var i="Section"===t?Dt().anchors[n]:K(e,"data-anchor");return encodeURI(Dt().navigationTooltips[n]||i||t+" "+(n+1))}function we(n){n.cancelable&&_(n),mn({N:"horizontalNav"});var t=N(this,et),e=m(ft,N(this,et))[0],i=It(wn().C,t).slides[k(N(this,"li"))];hn.R(Fn,{slides:e,destination:i.item})}hn.D(On,(function(){ge("")}));var be={};function ye(n,t,e){"all"!==t?be[e][t]=n:Object.keys(be[e]).forEach((function(t){be[e][t]=n}))}function Se(){return be}function Te(){var n=N(this,et);b(this,St)||N(this,".fp-prev")?Se().m.left&&(mn({N:"slideArrow"}),hn.R(Sn,{section:n})):Se().m.right&&(mn({N:"slideArrow"}),hn.R(Tn,{section:n}))}function Me(n,t){Rt("recordHistory",n,t)}function Ae(n,t){n||Xt(0),Rt("autoScrolling",n,t);var e=wn().I.item;if(Dt().autoScrolling&&!Dt().scrollBar)T(te,{overflow:"hidden",height:"100%"}),R(Zt,qn),Me(Et().recordHistory,"internal"),T(Lt(),{"-ms-touch-action":"none","touch-action":"none"}),null!=e&&Xt(e.offsetTop);else if(T(te,{overflow:"visible",height:"initial"}),E(Zt,qn),Me(!!Dt().autoScrolling&&Et().recordHistory,"internal"),T(Lt(),{"-ms-touch-action":"","touch-action":""}),null!=e){var i=Ut(e.offsetTop);i.element.scrollTo(0,i.options)}}function xe(n){return b(wn().I.item,ot)?He(wn().I.item):wn().I.item.offsetTop}function ke(){var n=m(".fp-auto-height")[0]||qe()&&m(".fp-auto-height-responsive")[0];Dt().lazyLoading&&n&&m(".fp-section:not(.active)").forEach((function(n){var t,e,i,o,r;e=(t=n.getBoundingClientRect()).top,i=t.bottom,o=e+2<gn.en&&e>0,r=i>2&&i<gn.en,(o||r)&&se(It(wn().C,n))}))}function Oe(){Q(M(this),"click")}function je(){tn(m(rt));var n=a.createElement("div");n.setAttribute("id","fp-nav");var t=a.createElement("ul");n.appendChild(t),P(n,Zt);var e=m(rt)[0];E(e,"fp-"+Dt().navigationPosition),Dt().showActiveTooltip&&E(e,"fp-show-active");for(var i="",o=0;o<wn().C.length;o++){var r=wn().C[o],u="";Dt().anchors.length&&(u=r.anchor),i+='<li><a href="#'+encodeURI(u)+'"><span class="fp-sr-only">'+me(r.index(),"Section")+"</span><span></span></a>";var l=Dt().navigationTooltips[r.index()];void 0!==l&&""!==l&&(i+='<div class="fp-tooltip fp-'+Dt().navigationPosition+'">'+l+"</div>"),i+="</li>"}m("ul",e)[0].innerHTML=i;var c=m("li",m(rt)[0])[wn().I.index()];E(m("a",c),Qn)}function Le(n){n.preventDefault&&_(n),mn({N:"verticalNav"});var t=k(N(this,"#fp-nav li"));hn.R(Pn,{destination:wn().C[t]})}function De(n,t){var e;e=n,Dt().menu&&Dt().menu.length&&m(Dt().menu).forEach((function(n){null!=n&&(R(m(Jn,n),Qn),E(m('[data-menuanchor="'+e+'"]',n),Qn))})),function(n,t){var e=m(rt)[0];Dt().navigation&&null!=e&&"none"!==e.style.display&&(R(m(Jn,e),Qn),E(n?m('a[href="#'+n+'"]',e):m("a",m("li",e)[t]),Qn))}(n,t)}be.m={up:!0,down:!0,left:!0,right:!0},be.k=w({},be.m),hn.D(yn,(function(n){var t=n.target;(J(t,yt)||N(t,yt))&&Te.call(t,n)})),s.setRecordHistory=Me,s.setAutoScrolling=Ae,s.test.setAutoScrolling=Ae,(new Date).getTime();var Ee,Re,Pe,Fe,ze,Ce,Ie=(Re=!0,Pe=(new Date).getTime(),Fe=!r.fullpage_api,function(n,t){var e=(new Date).getTime(),i="wheel"===n?Dt().scrollingSpeed:100;return Re=Fe||e-Pe>=i,Fe=!r.fullpage_api,Re&&(Ee=t(),Pe=e),void 0===Ee||Ee});function Ne(n,t){if(X(Dt().beforeLeave))return Ie(wn().N,(function(){return re(n,t)}))}function Be(n,t,e){var i=n.item;if(null!=i){var o,r,a={element:i,callback:t,isMovementUp:e,dtop:He(i),yMovement:qt(wn().I,i),anchorLink:n.anchor,sectionIndex:n.index(),activeSlide:n.activeSlide?n.activeSlide.item:null,leavingSection:wn().I.index()+1,localIsResizing:gn.V,items:{origin:wn().I,destination:n},direction:null};if(!(wn().I.item==i&&!gn.V||Dt().scrollBar&&V()===a.dtop&&!b(i,ot))){if(null!=a.activeSlide&&(o=K(a.activeSlide,"data-anchor"),r=k(a.activeSlide,null)),!a.localIsResizing){var u=a.yMovement;if(void 0!==e&&(u=e?"up":"down"),a.direction=u,X(Dt().beforeLeave)&&!1===Ne("beforeLeave",a))return;if(X(Dt().onLeave)&&!re("onLeave",a))return}Dt().autoScrolling&&Dt().continuousVertical&&void 0!==a.isMovementUp&&(!a.isMovementUp&&"up"==a.yMovement||a.isMovementUp&&"down"==a.yMovement)&&(a=function(n){mn({on:!0});var t=wn().I.item;return n.isMovementUp?H(t,on(t,et)):B(t,rn(t,et).reverse()[0]),Xt(xe()),function(){for(var n=m(lt),t=0;t<n.length;t++)ai(n[t],"internal")}(),n.gn=t,n.dtop=function(n){return n.isMovementUp&&b(n.element,ot)?He(n.element)-y()+n.element.offsetHeight:n.element.offsetTop}(n),n.yMovement=qt(wn().I,n.element),n}(a)),a.localIsResizing||ce(wn().I.item),E(i,Qn),R(U(i),Qn),ci(),se(n),mn({G:s.test.mn}),pe(r,o,a.anchorLink),hn.R(Nn,a),function(n){mn({Y:"none",scrollY:Math.round(n.dtop)}),hn.R(Cn,n);var t=Dt().scrollingSpeed<700,e=t?700:Dt().scrollingSpeed;if(Dt().css3&&Dt().autoScrolling&&!Dt().scrollBar)Yt("translate3d(0px, -"+Math.round(n.dtop)+"px, 0px)",!0),Dt().scrollingSpeed?(clearTimeout(ze),ze=setTimeout((function(){We(n),mn({G:!t||s.test.mn})}),Dt().scrollingSpeed)):We(n);else{var i=Ut(n.dtop);s.test.top=-n.dtop+"px",clearTimeout(ze),ee(i.element,i.options,Dt().scrollingSpeed,(function(){Dt().scrollBar?ze=setTimeout((function(){We(n)}),30):(We(n),mn({G:!t||s.test.mn}))}))}t&&(clearTimeout(Ce),Ce=setTimeout((function(){mn({G:!0})}),e))}(a),mn({_:a.anchorLink}),De(a.anchorLink,a.sectionIndex)}}}function He(n){var t=n.offsetHeight,e=n.offsetTop,i=e,o=e>gn.tn,r=i-y()+t,a=Dt().bigSectionsDestination;return t>y()?(o||a)&&"bottom"!==a||(i=r):(o||gn.V&&null==A(n))&&(i=r),mn({tn:i}),i}function We(n){mn({B:!1}),function(n){null!=n.gn&&(n.isMovementUp?H(m(et)[0],n.gn):B(m(et)[wn().C.length-1],rn(n.element,et).reverse()),Xt(xe()),function(){for(var n=m(lt),t=0;t<n.length;t++)ai(n[t],"internal")}(),mn({on:!1}))}(n),X(Dt().afterLoad)&&!n.localIsResizing&&re("afterLoad",n),ci(),n.localIsResizing||ue(n.element),E(n.element,Zn),R(U(n.element),Zn),ke(),mn({G:!0}),hn.R(Bn,n),X(n.callback)&&n.callback()}function Ve(n,t){Rt("fitToSection",n,t)}function Ue(){gn.G&&Dt().fitToSection&&(mn({V:!0}),Be(gn.I),mn({V:!1}))}function _e(){var n=Dt().responsive||Dt().responsiveWidth,t=Dt().responsiveHeight,e=n&&r.innerWidth<n,i=t&&r.innerHeight<t;n&&t?Ke(e||i):n?Ke(e):t&&Ke(i)}function Ke(n){var t=qe();n?t||(Ae(!1,"internal"),Ve(!1,"internal"),j(m(rt)),E(Zt,Gn),X(Dt().afterResponsive)&&Dt().afterResponsive.call(Lt(),n)):t&&(Ae(Et().autoScrolling,"internal"),Ve(Et().autoScrolling,"internal"),L(m(rt)),R(Zt,Gn),X(Dt().afterResponsive)&&Dt().afterResponsive.call(Lt(),n))}function qe(){return b(Zt,Gn)}function Ge(n){Dt().verticalCentered&&(!Dt().scrollOverflow&&ti.wn(n.item)||ti.bn(n)||b(n.item,dt)||E(n.item,dt))}s.moveTo=moveTo,s.getScrollY=function(){return gn.scrollY},hn.D(kn,(function(){clearTimeout(ze),clearTimeout(Ce)})),s.setFitToSection=Ve,s.fitToSection=Ue,s.setResponsive=Ke;var $e,Ye=null;function Xe(n){var t=n.item,e=n.yn.length,i=n.index();!wn().I&&n.isVisible&&(E(t,Qn),ci()),!Ye&&n.isVisible&&(Ye=wn().I.item),Dt().paddingTop&&T(t,{"padding-top":Dt().paddingTop}),Dt().paddingBottom&&T(t,{"padding-bottom":Dt().paddingBottom}),void 0!==Dt().sectionsColor[i]&&T(t,{"background-color":Dt().sectionsColor[i]}),void 0!==Dt().anchors[i]&&t.setAttribute("data-anchor",n.anchor),e||Ge(n)}function Qe(){Dt().scrollOverflow&&!Dt().scrollBar&&(ti.Sn(),ti.Tn())}function Je(){hn.removeListener(bn,Qe),$("keyup",ti.Mn)}s.getActiveSection=function(){return wn().I},hn.D(xn,(function(){hn.D(bn,Qe),hn.D(Nn,ti.onLeave),hn.D(In,ti.onLeave),hn.D(Hn,ti.afterLoad),hn.D(Bn,ti.afterLoad),hn.D(kn,Je),q("keyup",ti.Mn)}));var Ze,ni,ti={An:null,xn:!0,kn:!0,On:null,jn:null,Ln:function(n){var t=wn().I;if(!gn.G||d()&&Dt().scrollOverflow&&ti.bn(t)&&ti.isScrolled(wn().X,t.item))return _(n),!1},Dn:function(n){if(!sn()&&Dt().keyboardScrolling&&[38,33,32,40,34,36,35].indexOf(n.keyCode)>-1&&!ti.kn)return _(n),!1},Mn:function(){ti.xn=gn.G},onLeave:function(){clearTimeout($e),ti.kn=!1},afterLoad:function(){ti.kn=!1,clearTimeout($e),$e=setTimeout((function(){ti.xn=gn.G}),200)},En:function(){a.activeElement===this.An&&(this.An.blur(),ti.kn=!1)},Tn:function(){if(Dt().scrollOverflow&&ti.xn){ti.En();var n=ti.Rn(wn().I.item);!n||u||c||(this.An=n,requestAnimationFrame((function(){n.focus({Pn:!0}),ti.kn=!0}))),ti.xn=!1}},Sn:function(){Dt().scrollOverflowMacStyle&&!l&&E(Zt,"fp-scroll-mac"),wn().dn.forEach((function(n){if(!(n.slides&&n.slides.length||b(n.item,"fp-auto-height-responsive")&&qe())){var t,e=Wt(n.item),i=ti.wn(n.item),o=(t=n).ln?t:t.parent;if(f){var r=i?"addClass":"removeClass";vn[r](o.item,gt),vn[r](n.item,gt)}else E(o.item,gt),E(n.item,gt);n.un||(ti.Fn(e),ti.zn(e)),n.un=!0}}))},zn:function(n){ti.Rn(n).addEventListener("scroll",ti.Cn),n.addEventListener("wheel",ti.Ln,{passive:!1}),n.addEventListener("keydown",ti.Dn,{passive:!1})},Fn:function(n){var t=document.createElement("div");t.className=ht,C(n,t),t.setAttribute("tabindex","-1")},In:function(n){var t=m(pt,n)[0];t&&(I(t),n.removeAttribute("tabindex"))},Rn:function(n){var t=Wt(n);return m(pt,t)[0]||t},un:function(n){return b(n,ht)||null!=m(pt,n)[0]},bn:function(n){return n.ln&&n.activeSlide?n.activeSlide.un:n.un},wn:function(n){return ti.Rn(n).scrollHeight>r.innerHeight},isScrolled:function(n,t){if(!gn.G)return!1;if(Dt().scrollBar)return!0;var e=ti.Rn(t);if(!Dt().scrollOverflow||!b(e,ht)||b(t,"fp-noscroll")||b(Wt(t),"fp-noscroll"))return!0;var i=f?1:0,o=e.scrollTop,r="up"===n&&o<=0,a="down"===n&&e.scrollHeight<=Math.ceil(e.offsetHeight+o)+i,u=r||a;return u||"none"===n||(this.On=(new Date).getTime()),u},Nn:function(){this.jn=(new Date).getTime();var n=this.jn-ti.On,t=(u||c)&&gn.J,e=gn.Z&&n>600;return t&&n>400||e},Cn:(Ze=0,function(n){var t=n.target.scrollTop,e="none"!==gn.Y?gn.Y:Ze<t?"down":"up";Ze=t,X(Dt().onScrollOverflow)&&re("onScrollOverflow",{position:t,direction:e}),b(n.target,ht)&&gn.G&&ti.isScrolled(e,n.target)&&ti.Nn()&&ti.wn(wn().I.item)&&hn.R(Ln,{direction:e})})};function ei(){clearTimeout(ni),mn({W:!1})}function ii(n,t,e){var i,o,r=N(n,et),a=wn().C.filter((function(n){return n.item==r}))[0],u=a.slides.filter((function(n){return n.item==t}))[0],l={slides:n,destiny:t,direction:e,destinyPos:{left:t.offsetLeft},slideIndex:u.index(),section:r,sectionIndex:a.index(),anchorLink:a.anchor,slidesNav:m(mt,r)[0],slideAnchor:u.anchor,prevSlide:a.activeSlide.item,prevSlideIndex:a.activeSlide.index(),items:{section:a,origin:a.activeSlide,destination:u},localIsResizing:gn.V};l.Bn=(i=l.prevSlideIndex,o=l.slideIndex,i==o?"none":i>o?"left":"right"),l.direction=l.direction?l.direction:l.Bn,l.localIsResizing||mn({G:!1}),Dt().onSlideLeave&&!l.localIsResizing&&"none"!==l.Bn&&X(Dt().onSlideLeave)&&!1===re("onSlideLeave",l)?mn({W:!1}):(E(t,Qn),R(U(t),Qn),ci(),l.localIsResizing||(ce(l.prevSlide),se(u)),function(n){!Dt().loopHorizontal&&Dt().controlArrows&&(Z(m(Tt,n.section),0!==n.slideIndex),Z(m(Mt,n.section),null!=A(n.destiny)))}(l),a.isActive&&!l.localIsResizing&&pe(l.slideIndex,l.slideAnchor,l.anchorLink),hn.R(In,l),function(n,t,e){var i,o,r=t.destinyPos;if(i=t.slidesNav,o=t.slideIndex,Dt().slidesNavigation&&null!=i&&(R(m(Jn,i),Qn),E(m("a",m("li",i)[o]),Qn)),mn({scrollX:Math.round(r.left)}),Dt().css3){var a="translate3d(-"+Math.round(r.left)+"px, 0px, 0px)";s.test.Hn[t.sectionIndex]=a,T(Kt(m(vt,n)),$t(a)),clearTimeout(ni),ni=setTimeout((function(){ri(t)}),Dt().scrollingSpeed)}else s.test.left[t.sectionIndex]=Math.round(r.left),ee(n,Math.round(r.left),Dt().scrollingSpeed,(function(){ri(t)}))}(n,l))}function oi(){clearTimeout(ni)}function ri(n){n.localIsResizing||(X(Dt().afterSlideLoad)&&re("afterSlideLoad",n),mn({G:!0}),ue(n.destiny),hn.R(Hn,n)),mn({W:!1})}function ai(n,t){Qt(0,"internal"),void 0!==t&&mn({V:!0}),ii(N(n,ft),n),void 0!==t&&mn({V:!1}),Qt(Et().scrollingSpeed,"internal")}s.landscapeScroll=ii,hn.D(xn,(function(){hn.D(Cn,ei)}));var ui=null,li=null;function ci(){gn.I=null,gn.C.map((function(n){var t=b(n.item,Qn);n.isActive=t,n.un=ti.un(n.item),t&&(gn.I=n),n.slides.length&&(n.activeSlide=null,n.slides.map((function(t){var e=b(t.item,Qn);t.un=ti.un(n.item),t.isActive=e,e&&(n.activeSlide=t)})))})),function(){var n=gn.I,t=!!gn.I&&gn.I.slides.length,e=gn.I?gn.I.activeSlide:null;if(!n&&gn.C.length&&!wn().B&&null!==ui){var i=vi(ui,gn.C);i&&(gn.I=i,gn.I.isActive=!0,E(gn.I.item,Qn)),gn.I&&Xt(gn.I.item.offsetTop)}if(t&&!e&&null!==li){var o=vi(li,gn.I.slides);o&&(gn.I.activeSlide=o,gn.I.activeSlide.isActive=!0,E(gn.I.activeSlide.item,Qn)),gn.I.activeSlide&&ai(gn.I.activeSlide.item,"internal")}}()}function fi(){var n=m(Dt().sectionSelector,Lt()),t=g(n),e=Array.from(n).map((function(n){return new di(n)})),i=e.filter((function(n){return n.isVisible})),o=i.reduce((function(n,t){return n.concat(t.slides)}),[]);ui=si(gn.I),li=si(gn.I?gn.I.activeSlide:null),gn.P=t.length,gn.F=i.reduce((function(n,t){return n+t.slides.length}),0),gn.C=i,gn.sn=e,gn.slides=o,gn.dn=gn.C.concat(gn.slides)}function si(n){if(!n)return null;var t=n?n.item:null,e=n.ln?gn.sn:gn.I.Wn;if(t){var i=It(e,t);return i?i.index():null}return null}function vi(n,t){var e,i=n-1,o=n;do{if(e=t[i]||t[o])break;i-=1,o+=1}while(i>=0||o<t.length);return e}hn.D(On,(function(){ui=null,li=null}));var di=function(n){var t=this;[].push.call(arguments,Dt().sectionSelector),zt.apply(this,arguments),this.yn=m(Dt().slideSelector,n),this.Wn=Array.from(this.yn).map((function(n){return new pi(n,t)})),this.slides=this.Wn.filter((function(n){return n.isVisible})),this.activeSlide=this.slides.length?this.slides.filter((function(n){return n.isActive}))[0]||this.slides[0]:null};di.prototype=zt.prototype,di.prototype.constructor=di;var hi,pi=function(n,t){this.parent=t,zt.call(this,n,Dt().slideSelector)};function gi(){E(m(Dt().sectionSelector,Lt()),tt),E(m(Dt().slideSelector,Lt()),at)}function mi(n){var t=n.slides.length,e=n.yn,i=n.slides,o=100*t,r=100/t;if(!m(ft,n.item)[0]){var u=a.createElement("div");u.className=ct,z(e,u);var l=a.createElement("div");l.className=st,z(e,l)}T(m(vt,n.item),{width:o+"%"}),t>1&&(Dt().controlArrows&&function(n){var t=n.item,e=[nn(Dt().controlArrowsHTML[0]),nn(Dt().controlArrowsHTML[1])];B(m(ft,t)[0],e),E(e,bt),E(e[0],St),E(e[1],"fp-next"),"#fff"!==Dt().controlArrowColor&&(T(m(Mt,t),{"border-color":"transparent transparent transparent "+Dt().controlArrowColor}),T(m(Tt,t),{"border-color":"transparent "+Dt().controlArrowColor+" transparent transparent"})),Dt().loopHorizontal||j(m(Tt,t))}(n),Dt().slidesNavigation&&function(n){var t=n.item,e=n.slides.length;P(nn('<div class="fp-slidesNav"><ul></ul></div>'),t);var i=m(mt,t)[0];E(i,"fp-"+Dt().slidesNavPosition);for(var o=0;o<e;o++)P(nn('<li><a href="#"><span class="fp-sr-only">'+me(o,"Slide",m(ut,t)[o])+"</span><span></span></a></li>"),m("ul",i)[0]);T(i,{"margin-left":"-"+i.innerWidth/2+"px"});var r=n.activeSlide?n.activeSlide.index():0;E(m("a",m("li",i)[r]),Qn)}(n)),i.forEach((function(n){T(n.item,{width:r+"%"}),Dt().verticalCentered&&Ge(n)}));var c=n.activeSlide||null;null!=c&&gn.I&&(0!==gn.I.index()||0===gn.I.index()&&0!==c.index())?ai(c.item,"internal"):E(e[0],Qn)}pi.prototype=zt.prototype,pi.prototype.constructor=di;var wi={attributes:!1,subtree:!0,childList:!0,characterData:!0};function bi(){return g(m(Dt().slideSelector,Lt())).length!==wn().F}function yi(n){var t=bi();(bi()||g(m(Dt().sectionSelector,Lt())).length!==wn().P)&&!gn.on&&(Dt().observer&&hi&&hi.disconnect(),fi(),ci(),Dt().anchors=[],tn(m(rt)),gi(),Pt(),Dt().navigation&&je(),t&&(tn(m(mt)),tn(m(yt))),wn().C.forEach((function(n){n.slides.length?t&&mi(n):Xe(n)}))),Dt().observer&&hi&&m(Kn)[0]&&hi.observe(m(Kn)[0],wi)}hn.D(xn,(function(){var n,t,e;Dt().observer&&"MutationObserver"in window&&m(Kn)[0]&&(n=m(Kn)[0],t=wi,(e=new MutationObserver(yi)).observe(n,t),hi=e),hn.D(jn,yi)})),hn.D(kn,(function(){hi&&(hi.disconnect(),hi=null)})),s.render=yi;var Si=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});G("testPassive",null,t),Y("testPassive",null,t)}catch(n){}return function(){return n}}();function Ti(){return!!Si()&&{passive:!1}}var Mi,Ai,xi,ki,Oi=(xi=(new Date).getTime(),ki=[],{Vn:function(n){var t=(n=n||r.event).wheelDelta||-n.deltaY||-n.detail,e=Math.max(-1,Math.min(1,t)),i=void 0!==n.wheelDeltaX||void 0!==n.deltaX;Mi=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!i;var o=(new Date).getTime();Ai=e<0?"down":"up",ki.length>149&&ki.shift(),ki.push(Math.abs(t));var a=o-xi;xi=o,a>200&&(ki=[])},Un:function(){var n=ln(ki,10)>=ln(ki,70);return!!ki.length&&n&&Mi},_n:function(){return Ai}});function ji(){var n=Dt().css3?V()+y():un(wn().C).item.offsetTop+un(wn().C).item.offsetHeight,t=Ut(n);s.test.top=-n+"px",mn({G:!1}),ee(t.element,t.options,Dt().scrollingSpeed,(function(){setTimeout((function(){mn({B:!0}),mn({G:!0})}),30)}))}function Li(){Lt().getBoundingClientRect().bottom>=0&&Di()}function Di(){var n=Ut(un(wn().C).item.offsetTop);mn({G:!1}),ee(n.element,n.options,Dt().scrollingSpeed,(function(){mn({G:!0}),mn({B:!1}),mn({Kn:!1})}))}var Ei,Ri,Pi,Fi=(Ei=!1,Ri={},Pi={},function(n,t,e){switch(n){case"set":Ri[t]=(new Date).getTime(),Pi[t]=e;break;case"isNewKeyframe":var i=(new Date).getTime();Ei=i-Ri[t]>Pi[t]}return Ei});function zi(){var n=wn().I.next();n||!Dt().loopBottom&&!Dt().continuousVertical||(n=wn().C[0]),null!=n?Be(n,null,!1):Lt().scrollHeight<Zt.scrollHeight&&Dt().scrollBar&&Dt().scrollBeyondFullpage&&hn.R(zn)}function Ci(){var n=wn().I.prev();n||!Dt().loopTop&&!Dt().continuousVertical||(n=un(wn().C)),null!=n&&Be(n,null,!0)}s.moveSectionDown=zi,s.moveSectionUp=Ci;var Ii=0;function Ni(n){Dt().autoScrolling&&(gn.G&&(n.pageY<Ii&&Se().m.up?Ci():n.pageY>Ii&&Se().m.down&&zi()),Ii=n.pageY)}function Bi(n){if(Se().m[n]){var t="down"===n?zi:Ci;Dt().scrollOverflow&&ti.bn(wn().I)?ti.isScrolled(n,wn().I.item)&&ti.Nn()&&t():t()}}var Hi,Wi,Vi,Ui,_i=0,Ki=0,qi=0,Gi=0,$i=(r.PointerEvent&&(Ui={down:"pointerdown",move:"pointermove"}),Ui),Yi={qn:"ontouchmove"in window?"touchmove":$i?$i.move:null,Gn:"ontouchstart"in window?"touchstart":$i?$i.down:null};function Xi(n){var t=N(n.target,et)||wn().I.item,e=ti.bn(wn().I);if(Qi(n)){mn({J:!0,Z:!1}),Dt().autoScrolling&&(e&&!gn.G||Dt().scrollBar)&&_(n);var i=no(n);qi=i.y,Gi=i.x;var o=Math.abs(_i-qi)>r.innerHeight/100*Dt().touchSensitivity,a=Math.abs(Ki-Gi)>S()/100*Dt().touchSensitivity,u=m(ft,t).length&&Math.abs(Ki-Gi)>Math.abs(_i-qi),l=_i>qi?"down":"up";mn({Y:u?Ki>Gi?"right":"left":l}),u?!gn.W&&a&&(Ki>Gi?Se().m.right&&hn.R(Tn,{section:t}):Se().m.left&&hn.R(Sn,{section:t})):Dt().autoScrolling&&gn.G&&o&&Bi(l)}}function Qi(n){return void 0===n.pointerType||"mouse"!=n.pointerType}function Ji(n){if(Dt().fitToSection&&mn({q:!1}),Qi(n)){var t=no(n);_i=t.y,Ki=t.x}G("touchend",Zi)}function Zi(){Y("touchend",Zi),mn({J:!1})}function no(n){var t={};return t.y=void 0!==n.pageY&&(n.pageY||n.pageX)?n.pageY:n.touches[0].pageY,t.x=void 0!==n.pageX&&(n.pageY||n.pageX)?n.pageX:n.touches[0].pageX,c&&Qi(n)&&Dt().scrollBar&&void 0!==n.touches&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function to(n){Dt().autoScrolling&&Qi(n)&&Se().m.up&&(gn.G||_(n))}function eo(n,t){var e=null==t?wn().I.item:t,i=It(gn.C,e),o=m(ft,e)[0];if(!(null==o||gn.W||i.slides.length<2)){var r=i.activeSlide,a="left"===n?r.prev():r.next();if(!a){if(!Dt().loopHorizontal)return;a="left"===n?un(i.slides):i.slides[0]}mn({W:!s.test.mn}),ii(o,a.item,n)}}function io(n){eo("left",n)}function oo(n){eo("right",n)}function ro(n){var t=wn().C.filter((function(t){return t.anchor===n}))[0];if(!t){var e=void 0!==n?n-1:0;t=wn().C[e]}return t}function ao(n){null!=n&&ii(N(n,ft),n)}function uo(n,t){var e=ro(n);if(null!=e){var i=function(n,t){var e=t.slides.filter((function(t){return t.anchor===n}))[0];return null==e&&(n=void 0!==n?n:0,e=t.slides[n]),e?e.item:null}(t,e);e.anchor&&e.anchor===gn._||b(e.item,Qn)?ao(i):Be(e,(function(){ao(i)}))}}function lo(n,t){var e=ro(n);void 0!==t?uo(n,t):null!=e&&Be(e)}function co(){clearTimeout(Wi),$("keydown",fo),$("keyup",so)}function fo(n){clearTimeout(Wi);var t=n.keyCode,e=[37,39].indexOf(t)>-1,i=Dt().autoScrolling||Dt().fitToSection||e;9===t?function(n){var t=n.shiftKey,e=a.activeElement,i=mo(Wt(wn().I.item));function o(n){return _(n),i[0]?i[0].focus():null}if(gn.G){if(!function(n){var t=mo(a),e=t.indexOf(a.activeElement),i=t[n.shiftKey?e-1:e+1],o=N(i,ut),r=N(i,et);return!o&&!r}(n)){e?null==N(e,".fp-section.active,.fp-section.active .fp-slide.active")&&(e=o(n)):o(n);var r=e==i[0],u=e==i[i.length-1],l=t&&r;if(l||!t&&u){_(n);var c=function(n){var t,e=n?"prevPanel":"nextPanel",i=[],o=Vt((gn.I&&gn.I.activeSlide?gn.I.activeSlide:gn.I)[e]());do{(i=mo(o.item)).length&&(t={$n:o,Yn:i[n?i.length-1:0]}),o=Vt(o[e]())}while(o&&0===i.length);return t}(l),f=c?c.$n:null;if(f){var s=f.ln?f:f.parent;hn.R(Dn,{Xn:s.index()+1,slideAnchor:f.ln?0:f.index()}),Vi=c.Yn,_(n)}}}}else _(n)}(n):!sn()&&Dt().keyboardScrolling&&i&&(Hi=n.ctrlKey,Wi=setTimeout((function(){!function(n){var t=n.shiftKey,e=a.activeElement,i=J(e,"video")||J(e,"audio"),o=ti.isScrolled("up",wn().I.item),r=ti.isScrolled("down",wn().I.item),u=[37,39].indexOf(n.keyCode)>-1;if(function(n){(function(n){return[40,38,32,33,34].indexOf(n.keyCode)>-1&&!gn.B})(n)&&!N(n.target,pt)&&n.preventDefault()}(n),gn.G||u)switch(mn({N:"keydown"}),n.keyCode){case 38:case 33:Se().k.up&&o?gn.B?hn.R(En,{e:n}):Ci():ti.Tn();break;case 32:if(t&&Se().k.up&&!i&&o){Ci();break}case 40:case 34:if(Se().k.down&&r){if(gn.B)return;32===n.keyCode&&i||zi()}else ti.Tn();break;case 36:Se().k.up&&lo(1);break;case 35:Se().k.down&&lo(wn().C.length);break;case 37:Se().k.left&&io();break;case 39:Se().k.right&&oo()}}(n)}),0))}function so(n){gn.nn&&(Hi=n.ctrlKey)}function vo(){mn({nn:!1}),Hi=!1}function ho(n){go()}function po(n){N(Vi,ut)&&!N(Vi,lt)||go()}function go(){Vi&&(Vi.focus(),Vi=null)}function mo(n){return[].slice.call(m('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], summary:not([disabled]), [contenteditable]',n)).filter((function(n){return"-1"!==K(n,"tabindex")&&null!==n.offsetParent}))}s.moveSlideLeft=io,s.moveSlideRight=oo,s.moveTo=lo,hn.D(xn,(function(){G("blur",vo),q("keydown",fo),q("keyup",so),hn.D(kn,co),hn.D(Hn,ho),hn.D(Bn,po)}));var wo=(new Date).getTime(),bo=[];function yo(n){n?(function(){var n,t="";r.addEventListener?n="addEventListener":(n="attachEvent",t="on");var e="onwheel"in a.createElement("div")?"wheel":void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll",i=Ti();"DOMMouseScroll"==e?a[n](t+"MozMousePixelScroll",So,i):a[n](t+e,So,i)}(),Lt().addEventListener("mousedown",To),Lt().addEventListener("mouseup",Mo)):(a.addEventListener?($("mousewheel",So,!1),$("wheel",So,!1),$("MozMousePixelScroll",So,!1)):a.detachEvent("onmousewheel",So),Lt().removeEventListener("mousedown",To),Lt().removeEventListener("mouseup",Mo))}function So(n){var t=(new Date).getTime(),e=b(m(".fp-completely")[0],"fp-normal-scroll"),i=function(n,t){(new Date).getTime();var e=wn().B&&n.getBoundingClientRect().bottom>=0&&"up"===Oi._n(),i=wn().Kn;if(i)return _(t),!1;if(wn().B){if(e){var o;if(!(i||Fi("isNewKeyframe","beyondFullpage")&&Oi.Un()))return(o=Ut(un(wn().C).item.offsetTop+un(wn().C).item.offsetHeight)).element.scrollTo(0,o.options),mn({Kn:!1}),_(t),!1;if(Oi.Un())return e=!1,mn({Kn:!0}),mn({N:"wheel"}),Di(),_(t),!1}else Fi("set","beyondFullpage",1e3);if(!i&&!e)return!0}}(Lt(),n);if(gn.Z||mn({J:!1,Z:!0,Y:"none"}),!Se().m.down&&!Se().m.up)return!1;if(i)return!0;if(!1===i)return _(n),!1;if(Dt().autoScrolling&&!Hi&&!e){var o=(n=n||r.event).wheelDelta||-n.deltaY||-n.detail,a=Math.max(-1,Math.min(1,o)),u=void 0!==n.wheelDeltaX||void 0!==n.deltaX,l=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!u,c=a<0?"down":a>0?"up":"none";bo.length>149&&bo.shift(),bo.push(Math.abs(o)),!Dt().scrollBar&&Dt().scrollOverflow||_(n);var f=t-wo;return wo=t,f>200&&(bo=[]),mn({X:c}),gn.G&&ln(bo,10)>=ln(bo,70)&&l&&(mn({N:"wheel"}),Bi(a<0?"down":"up")),!1}Dt().fitToSection&&mn({q:!1})}function To(n){var t;2==n.which&&(t=n.pageY,Ii=t,Lt().addEventListener("mousemove",Ni))}function Mo(n){2==n.which&&Lt().removeEventListener("mousemove",Ni)}function Ao(n){n?(yo(!0),function(){if(Yi.qn&&(u||c)){Dt().autoScrolling&&(Zt.removeEventListener(Yi.qn,to,{passive:!1}),Zt.addEventListener(Yi.qn,to,{passive:!1}));var n=Dt().touchWrapper;n.removeEventListener(Yi.Gn,Ji),n.removeEventListener(Yi.qn,Xi,{passive:!1}),n.addEventListener(Yi.Gn,Ji),n.addEventListener(Yi.qn,Xi,{passive:!1})}}()):(yo(!1),function(){if(Yi.qn&&(u||c)){Dt().autoScrolling&&(Zt.removeEventListener(Yi.qn,Xi,{passive:!1}),Zt.removeEventListener(Yi.qn,to,{passive:!1}));var n=Dt().touchWrapper;n.removeEventListener(Yi.Gn,Ji),n.removeEventListener(Yi.qn,Xi,{passive:!1})}}())}s.setMouseWheelScrolling=yo;var xo=!0;function ko(){["mouseenter","touchstart","mouseleave","touchend"].forEach((function(n){$(n,jo,!0)}))}function Oo(n,t){document["fp_"+n]=t,q(n,jo,!0)}function jo(n){var t=n.type,e=!1,i="mouseleave"===t?n.toElement||n.relatedTarget:n.target;i!=document&&i?("touchend"===t&&(xo=!1,setTimeout((function(){xo=!0}),800)),("mouseenter"!==t||xo)&&(Dt().normalScrollElements.split(",").forEach((function(n){if(!e){var t=J(i,n),o=N(i,n);(t||o)&&(s.shared.Qn||Ao(!1),s.shared.Qn=!0,e=!0)}})),!e&&s.shared.Qn&&(Ao(!0),s.shared.Qn=!1))):Ao(!0)}function Lo(n,t){Qt(0,"internal"),lo(n,t),Qt(Et().scrollingSpeed,"internal")}hn.D(xn,(function(){Dt().normalScrollElements&&(["mouseenter","touchstart"].forEach((function(n){Oo(n,!1)})),["mouseleave","touchend"].forEach((function(n){Oo(n,!0)}))),hn.D(kn,ko)})),s.silentMoveTo=Lo;var Do,Eo,Ro=y(),Po=S(),Fo=!1;function zo(){clearTimeout(Do),clearTimeout(Eo),Y("resize",Co)}function Co(){Fo||(Dt().autoScrolling&&!Dt().scrollBar||!Dt().fitToSection)&&No(y()),gn.an&&function(){if(u)for(var n=0;n<4;n++)Eo=setTimeout((function(){window.requestAnimationFrame((function(){Dt().autoScrolling&&!Dt().scrollBar&&(mn({V:!0}),Lo(gn.I.index()+1),mn({V:!1}))}))}),200*n)}(),Fo=!0,clearTimeout(Do),Do=setTimeout((function(){!function(){var n,t,e;if(mn({V:!0}),(!u||Dt().adjustOnNavChange)&&(No(""),gn.B||Dt().autoScrolling||(n=.01*r.innerHeight,a.documentElement.style.setProperty("--vh","".concat(n,"px")))),hn.R(jn),ci(),_e(),u){var i=a.activeElement;if(!J(i,"textarea")&&!J(i,"input")&&!J(i,"select")){var o=y();Math.abs(o-Ro)>20*Math.max(Ro,o)/100&&(Io(!0),Ro=o)}}else t=y(),e=S(),gn.en===t&&Po===e||(mn({en:t}),Po=e,Io(!0));mn({V:!1})}(),Fo=!1}),400)}function Io(n){if(!b(Lt(),Yn)){mn({V:!0,en:y(),Jn:S()});for(var t=wn().C,e=0;e<t.length;++e){var i=t[e],o=m(ft,i.item)[0];i.slides.length>1&&ii(o,i.activeSlide.item)}Dt().scrollOverflow&&ti.Sn();var a=wn().I.index();gn.B||a&&Lo(a+1),mn({V:!1}),X(Dt().afterResize)&&n&&Dt().afterResize.call(Lt(),r.innerWidth,r.innerHeight),X(Dt().afterReBuild)&&!n&&Dt().afterReBuild.call(Lt()),Q(Lt(),"afterRebuild")}}function No(n){var t=""===n?"":n+"px";wn().C.forEach((function(n){T(n.item,{height:t})}))}function Bo(){var n,t,e=r.location.hash;if(e.length){var i=e.replace("#","").split("/"),o=e.indexOf("#/")>-1;n=o?"/"+i[1]:decodeURIComponent(i[0]);var a=o?i[2]:i[1];a&&a.length&&(t=decodeURIComponent(a))}return{section:n,pn:t}}function Ho(){Y("hashchange",Wo)}function Wo(){if(!gn.U&&!Dt().lockAnchors){var n=Bo(),t=n.section,e=n.pn,i=void 0===gn._,o=void 0===gn._&&void 0===e&&!gn.W;t&&t.length&&(t&&t!==gn._&&!i||o||!gn.W&&gn.K!=e)&&hn.R(Dn,{Xn:t,slideAnchor:e})}}function Vo(n){var t=n.target;N(t,Dt().menu+" [data-menuanchor]")&&Uo.call(t,n.e)}function Uo(n){if(mn({N:"menu"}),m(Dt().menu)[0]&&(Dt().lockAnchors||!Dt().anchors.length)){_(n);var t=N(this,"[data-menuanchor]");hn.R(Rn,{anchor:K(t,"data-menuanchor")})}}function _o(n){var t=n.target;t&&N(t,"#fp-nav a")?Le.call(t,n.e):J(t,".fp-tooltip")?Oe.call(t):(J(t,wt)||null!=N(t,wt))&&we.call(t,n.e)}s.reBuild=Io,hn.D(xn,(function(){Co(),G("resize",Co),hn.D(kn,zo)})),s.setLockAnchors=function(n){Dt().lockAnchors=n},hn.D(xn,(function(){G("hashchange",Wo),hn.D(kn,Ho)})),hn.D(xn,(function(){q("wheel",Oi.Vn,Ti()),hn.D(zn,ji),hn.D(En,Li)})),hn.D(xn,(function(){hn.D(yn,Vo)})),hn.D(xn,(function(){hn.D(yn,_o)}));var Ko,qo,Go=0;function $o(n){var t,e,i,o,r;if(!gn.V&&wn().I&&(un(wn().C),!wn().B&&!wn().Kn&&(!Dt().autoScrolling||Dt().scrollBar))){var a=V(),l=function(n){var t=n>Go?"down":"up";return Go=n,mn({tn:n}),t}(a),c=0,f=a+y()/2,s=Zt.scrollHeight-y()===a,v=wn().C;if(mn({scrollY:a}),s)c=v.length-1;else if(a)for(var d=0;d<v.length;++d)v[d].item.offsetTop<=f&&(c=d);else c=0;if(i=l,o=wn().I.item.offsetTop,r=o+y(),("up"==i?r>=V()+y():o<=V())&&(b(wn().I.item,Zn)||(E(wn().I.item,Zn),R(U(wn().I.item),Zn))),e=(t=v[c]).item,!t.isActive){mn({U:!0});var h,p,g=wn().I.item,m=wn().I.index()+1,w=qt(wn().I,e),S=t.anchor,T=t.index()+1,M=t.activeSlide,A={I:g,sectionIndex:T-1,anchorLink:S,element:e,leavingSection:m,direction:w,items:{origin:wn().I,destination:t}};M&&(p=M.anchor,h=M.index()),gn.G&&(E(e,Qn),R(U(e),Qn),X(Dt().beforeLeave)&&Ne("beforeLeave",A),X(Dt().onLeave)&&re("onLeave",A),X(Dt().afterLoad)&&re("afterLoad",A),ce(g),se(t),ue(e),De(S,T-1),Dt().anchors.length&&mn({_:S}),ci(),pe(h,p,S)),clearTimeout(Ko),Ko=setTimeout((function(){mn({U:!1})}),100)}Dt().fitToSection&&gn.G&&(clearTimeout(qo),qo=setTimeout((function(){var n;if(!gn.C.filter((function(n){var t=n.item.getBoundingClientRect();return Math.round(t.bottom)===Math.round(y())||0===Math.round(t.top)})).length){if(u&&(n=document.activeElement)&&n.matches("input, textarea"))return;Ue()}}),Dt().fitToSectionDelay))}}function Yo(n){var t=n.items.destination.activeSlide;mn({scrollX:t?Math.round(t.offsetLeft):0})}function Xo(n){var t=Dt().skipIntermediateItems,e=n.items.origin.ln?"sections":"slides",i=Math.abs(n.items.origin.index()-n.items.destination.index())>1;(!0===t||t===e)&&i&&Qt(0,"internal")}function Qo(n){Dt().skipIntermediateItems&&Rt("scrollingSpeed",Et().scrollingSpeed,"internal")}function Jo(n,t){void 0!==t?(t=t.replace(/ /g,"").split(",")).forEach((function(t){ye(n,t,"k")})):(ye(n,"all","k"),Dt().keyboardScrolling=n)}function Zo(n){var t=n.index();void 0!==Dt().anchors[t]&&n.isActive&&De(Dt().anchors[t],t),Dt().menu&&Dt().css3&&null!=N(m(Dt().menu)[0],Kn)&&m(Dt().menu).forEach((function(n){Zt.appendChild(n)}))}function nr(){var n,t,e=wn().I,i=wn().I.item;E(i,Zn),se(wn().I),ke(),ue(i),t=ro((n=Bo()).section),n.section&&t&&(void 0===t||t.index()!==k(Ye))||!X(Dt().afterLoad)||re("afterLoad",{I:i,element:i,direction:null,anchorLink:e.anchor,sectionIndex:e.index(),items:{origin:wn().I,destination:wn().I}}),X(Dt().afterRender)&&re("afterRender")}function tr(n,t){void 0!==t?(t=t.replace(/ /g,"").split(",")).forEach((function(t){ye(n,t,"m")})):ye(n,"all","m")}function er(){var n=Bo(),t=n.section,e=n.pn;t?Dt().animateAnchor?uo(t,e):Lo(t,e):hn.R(bn,null)}function ir(){fi(),ci(),Dt().scrollBar=Dt().scrollBar||Dt().hybrid,Pt(),function(){T(fn(Lt(),"body"),{height:"100%",position:"relative"}),E(Lt(),_n),E(ne,Xn),mn({en:y()}),R(Lt(),Yn),gi();for(var n=wn().sn,t=0;t<n.length;t++){var e=n[t],i=e.yn,o=K(e.item,"style");o&&e.item.setAttribute("data-fp-styles",o),Xe(e),Zo(e),i.length>0&&mi(e)}Dt().fixedElements&&Dt().css3&&m(Dt().fixedElements).forEach((function(n){Zt.appendChild(n)})),Dt().navigation&&je(),m('iframe[src*="youtube.com/embed/"]',Lt()).forEach((function(n){var t,e;e=K(t=n,"src"),t.