text: /*! For license information please see component---src-templates-trash-js-74c7e25373c65f3ecaff.js.LICENSE.txt */
  (window.webpackJsonp=window.webpackJsonp||[]).push([[40],{"1GBj":function(t,e,i){var s=i("vlbB");t.exports=function(t,e){var i=-1,o=t.length,n=o-1;for(e=void 0===e?o:e;++i<e;){var r=s(i,n),a=t[r];t[r]=t[i],t[i]=a}return t.length=e,t}},JmpY:function(t,e,i){var s=i("eUgh");t.exports=function(t,e){return s(e,(function(e){return t[e]}))}},"P/G1":function(t,e,i){var s=i("JmpY"),o=i("7GkX");t.exports=function(t){return null==t?[]:s(t,o(t))}},Q1l4:function(t,e){t.exports=function(t,e){var i=-1,s=t.length;for(e||(e=Array(s));++i<s;)e[i]=t[i];return e}},"RD0/":function(t,e,i){var s=i("xQGg"),o=i("Yq7J"),n=i("Z0cm"),r=i("mv/X"),a=i("Sxd8");t.exports=function(t,e,i){return e=(i?r(t,e,i):void 0===e)?1:a(e),(n(t)?s:o)(t,e)}},XeZG:function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij4NCiAgPGcgaWQ9IuWcluWxpF82IiBkYXRhLW5hbWU9IuWcluWxpCA2Ij4NCiAgICA8Zz4NCiAgICAgIDxnPg0KICAgICAgICA8cGF0aCBkPSJNMzMuMTIsMTYuNDljLTEuMiwwLTMuMDctLjY2LTUuNTQtMS45NGwtLjkxLS40OUEyMy44MiwyMy44MiwwLDAsMSwxNy4zMSw1LjhjLS40LS42NS0uNzMtMS4yMi0uNjMtMS42Ni4wNS0uMi4yLS44Mi40MS0uODlsLjE5LDBhMy40OCwzLjQ4LDAsMCwxLC43Mi4xMkMyNC43LDUsMzAuNDgsOC44MywzMy40OCwxMy43MWE0LjEyLDQuMTIsMCwwLDEsLjcyLDEuODRjMCwuMzgtLjA2LjYzLS4yLjczQTEuNTc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U9IiMwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIyIi8+DQogICAgPC9nPg0KICA8L2c+DQo8L3N2Zz4NCg=="},g4R6:function(t,e){t.exports=function(t,e,i){return t==t&&(void 0!==i&&(t=t<=i?t:i),void 0!==e&&(t=t>=e?t:e)),t}},nCnw:function(t,e,i){"use strict";i.r(e);var s=i("wx14"),o=i("zLVn"),n=i("RD0/"),r=i.n(n),a=i("WjpJ"),c=i.n(a),l=i("D0BC"),h=i.n(l),p=i("mwIZ"),u=i.n(p),d=(i("RUBk"),i("q1tI")),m=i.n(d),f=i("YIRC"),g=i("z/o8"),b=i("LWeC"),w=i("IZOP"),j=i("wXU7"),y=i.n(j),M=i("dPRQ"),S=i("oVTX"),v=i("2dMJ"),x=i("HEen"),L=i("5Epl"),I=i("PhU4"),O=i("VUD3"),T=i("svYx"),N=i("pxIR"),D=i("S5sB"),C=i("l9Ij"),E=i("Qona"),A=i("oWGI"),z=i("bOC9"),Y=i("cLSJ"),P=i("LS4l"),k=i("53+Z"),X=i("Osoc"),W=i("XeZG"),H=i.n(W),_=i("2phU"),B=i.n(_),Q=i("UPwY"),R=i.n(Q),Z=i("I7oX"),U=i.n(Z),G=i("Ognr"),J=i.n(G),F=i("GuiV"),q=i("DZdY"),V=i("NIcq"),K=i("YMcO"),$=i.n(K),tt=i("d0Gh"),et=i.n(tt),it=i("AeFk");var st,ot=Object(q.a)(S.a,{target:"ecmrhva0"})({name:"1dx29ey",styles:"background:linear-gradient(black 50%, rgba(255, 255, 255, 0) 0%);background-position:right;background-repeat:repeat-y;background-size:1px 16px"}),nt=function(t){var e=t.progress,i=t.isMobile,s=t.onClick;return Object(it.d)(x.a,{direction:"column",height:"100%",mt:"1.25em"},!i&&Object(it.d)(m.a.Fragment,null,Object(it.d)(S.a,{flex:"1"},Object(it.d)(S.a.Relative,{height:"100%"},Object(it.d)(S.a.Absolute,{top:"2.5%",left:"50%",transform:"translateX(-50%)"},Object(it.d)(V.a,{size:"1.25em"})),Object(it.d)(ot,{position:"absolute",top:"10%",bottom:"0",width:"1px",right:"50%"}),Object(it.d)(S.a.Absolute,{width:"100%",style:{top:100*e+"%"},transform:"translateY(-50%)"},Object(it.d)(L.a,{src:et.a})))),Object(it.d)(S.a.Relative,{width:"100%",onClick:s},Object(it.d)(L.a,{src:$.a}))))},rt=i("Kg81"),at=i("mLm7"),ct=i("5Jok"),lt=i("qobX"),ht=i("NF8C"),pt=i("jkA9"),ut=i("fgq1"),dt=i("cuRf"),mt=i("XMW0");"undefined"!=typeof window&&i("oKAg");var ft,gt,bt,wt=function(t){var e=t.children,i=Object(o.a)(t,["children"]);return Object(it.d)(S.a.Absolute,Object(s.a)({top:Object(lt.d)("1.75em","1.25em"),left:Object(lt.d)("1em","1.5em"),color:"white"},i),Object(it.d)(v.a,{fontSize:Object(lt.d)("1em","1.5625em"),fontWeight:"900",letterSpacing:"0.1em"},e))},jt=function(t){var e=t.children,i=Object(o.a)(t,["children"]);return Object(it.d)(S.a.Absolute,Object(s.a)({left:Object(lt.d)("1em","1.5em"),top:Object(lt.d)("3.25em","3.4375em")},i),Object(it.d)(v.a,{fontSize:Object(lt.d)("0.875em","0.9375em")},e))},yt=function(t){return Object(it.d)(S.a.Absolute,{bottom:Object(lt.d)("9%","10%"),right:Object(lt.d)("5%","6em"),width:Object(lt.d)("90%","30%")},Object(it.d)(v.a,Object(s.a)({lineHeight:"1.625",letterSpacing:"0.075em",textAlign:"justify",fontSize:Object(lt.d)("0.75em","1em")},t)))},Mt=function(t){return Object(it.d)(S.a.Absolute,{bottom:Object(lt.d)("12%","10%"),right:Object(lt.d)("10%","8em"),width:Object(lt.d)("80%","25%")},Object(it.d)(v.a,Object(s.a)({lineHeight:"1.75",letterSpacing:"0.075em",textAlign:"justify",fontSize:Object(lt.d)("1em","1em"),fontWeight:"700"},t)))},St=function(t){var e=t.children,i=Object(o.a)(t,["children"]),n=Object(d.useMemo)((function(){return e&&e.replace(/\|/g,"\n")}),[e]);return e&&Object(it.d)(S.a.Absolute,{top:Object(lt.d)("1em","auto"),bottom:Object(lt.d)("auto","1.25em"),right:Object(lt.d)("6%","4.75em"),width:Object(lt.d)("50%","20%")},Object(it.d)(v.a,Object(s.a)({fontSize:Object(lt.d)("0.875em","0.875em"),whiteSpace:"pre-wrap"},i),"*",n))},vt=function(t){var e=t.children,i=Object(o.a)(t,["children"]);return Object(it.d)(S.a.Absolute,Object(s.a)({bottom:Object(lt.d)("auto","1.25em"),top:Object(lt.d)("0em","auto"),left:Object(lt.d)("1em","1.5em"),color:"white"},i),Object(it.d)(v.a.Number,{fontSize:Object(lt.d)("1.25em","1em")},e))},xt={A:"green",B:"orange",C:"pink"},Lt=function(t){return{A:t?"This kind of trash has a plain composition that can be easily processed. If it is placed in the right trash bin, it has a high chance to recycle and be reused!":"因為材質單純、處理成本相對低，此類垃圾回收價值高。只要你不分錯，它們就有很高的機會被再利用。",B:t?"This kind of trash has certain recycle value. However, reasons including low in quantity, or no enough processors make it a bit difficult to recycle the trash.":"這類的垃圾有回收價值，但因為某些原因造成結果浮動，像是垃圾的量不夠、怎麼回收或製造。我們可以試著好好回收，創造它的回收價值喔！",C:t?"This kind of trash is either difficult to process (because of its composition or usage), or lowly-priced. We can choose to reuse or reduce the use of this kind of trash.":"因為回收價格低、太難處理或太髒等，造成它沒有回收價值。我們可以選擇重複使用，或者少用點。"}},It={},Ot=Object(C.a)((function(t){var e=t.trashData,i=t.allData,s=t.data.site.siteMetadata,o=Object(dt.a)(),n=Object(d.useState)(),a=n[0],l=n[1],p=Object(b.a)(),j=Object(at.a)().isMobile,C=Object(d.useContext)(rt.a).containerWidth,W=Object(d.useRef)(),_=Object(d.useRef)(),Q=Object(d.useRef)(),Z=Object(d.useMemo)((function(){return e.imgs.map((function(){return Object(d.createRef)()}))}),[e]),G=Object(d.useMemo)((function(){return e.imgs.map((function(){return Object(d.createRef)()}))}),[e]),q=Object(d.useMemo)((function(){return e.imgs.map((function(){return Object(d.createRef)()}))}),[e]),V="colors."+xt[e.recycleValue],K=(j?X.a?135:160:75)*(e.transform.scale?(j&&e.transform.mobileScale?e.transform.mobileScale:e.transform.scale)/100:Math.min(1,200/(e.xRange[1]-e.xRange[0]))),$=(j?10:5)*(100+(e.transform.gap||0))/100,tt=Object(d.useMemo)((function(){return e.transform.faceNo||h()(4)+1}),[e]),et=Object(d.useMemo)((function(){return r()(i.filter((function(t){return t.img&&t.id!==e.id})),5)}),[e,i]),ot=[[0+(e.transform.mobileX||0),-50+(e.transform.mobileY||0)],[-20+(e.transform.x||0),-20+(e.transform.y||0)]],Ot=[1*C,.25*C];Object(ct.a)(V),Object(ht.a)(e.img);var Tt=s.url+"/trash/"+e.id,Nt="#"+String(e.id).padStart(3,"0"),Dt=Object(d.useMemo)((function(){return e?e.imgs.map((function(t,i){var s,o,n,r=t.src,a=t.centeroid,c=t.x,l=t.width,h=t.partName,p=t.side,d=j?0:p;h&&(o=d?(1*c+1*l)/pt.a[0]*100+3:100*(1-c/pt.a[0])+3,n=d?{left:o+"%",right:100-o+"%"}:{right:o+"%",left:100-o+"%"},It[h]={pos:o,linePos:n});var m=a[1]/pt.a[1]*100+"%";return Object(it.d)(S.a.FullAbs,{ref:Z[i],key:i},Object(it.d)(D.a,{ref:G[i],ratio:pt.a[0]/pt.a[1],src:r}),h&&Object(it.d)(S.a,{ref:q[i]},Object(it.d)(S.a.Absolute,{top:m,style:n,height:"2px",bg:V,className:"line"}),Object(it.d)(S.a.Absolute,{top:m,style:(s={},s[d?"left":"right"]=o+"%",s),transform:"translateY(-50%)",whiteSpace:"nowrap",className:"circle-container",pointerEvents:"all"},Object(it.d)(I.a,{bg:V,width:Object(lt.d)("7em","7.5em"),textAlign:"center",className:"circle-1",whiteSpace:"pre-wrap",opacity:0},Object(it.d)(v.a,{color:"black",fontSize:Object(lt.d)("1.125em","0.9375em"),fontWeight:"900"},h),Object(it.d)(v.a,{color:"white",fontSize:Object(lt.d)("0.625em","0.78125em")},e.partsDetail[h])),Object(it.d)(S.a.FullAbs,{className:"circle-2",transform:"scale(0)"},Object(it.d)(I.a,{border:"2px solid",borderColor:V,bg:"white",width:"100%",textAlign:"center",whiteSpace:"pre-wrap"},Object(it.d)(v.a,{color:"black",fontSize:Object(lt.d)("1.125em","0.9375em"),fontWeight:"900"},e.belongsTo[h]),u()(e.recycleRate,[e.belongsTo[h]])&&Object(it.d)(v.a,{color:V,fontSize:Object(lt.d)("0.625em","0.78125em"),fontWeight:"900"},"回收率",e.recycleRate[e.belongsTo[h]],"%"))),Object(it.d)(S.a.Absolute,{className:"circle-rate",opacity:"0",left:"-8%",right:"-8%",top:"-8%",bottom:"-8%",pointerEvents:"none"},u()(e.recycleRate,[e.belongsTo[h]])&&Object(it.d)(Y.a,{className:"circle-rate-progress",value:e.recycleRate[e.belongsTo[h]],color:V})))))})):null}),[e,j]),Ct=[Object(it.d)(O.a,{height:"100%"},Object(it.d)(S.a.Absolute,{left:Object(lt.d)("1em","1.5em"),top:"0em"},Object(it.d)(v.a.Number,{textStroke:"0.15625rem",textStrokeColor:"colors."+V,color:"white",fontSize:Object(lt.d)("2.5em","6.25em")},Nt)),Object(it.d)(S.a.AbsCenter,{top:Object(lt.d)("17%","40%"),width:"100%",textAlign:"center",transform:"rotate(-12deg)"},Object(it.d)(w.SizeMe,null,(function(t){var i=t.size;return Object(it.d)(v.a,{as:"h2",color:V,fontSize:i.width?Math.min(Math.floor(i.width/(e.name.length+1)),i.width/4.5)+"px":0,fontWeight:"900",letterSpacing:e.name.length<3&&"0.5em",ml:e.name.length<3&&"0.25em"},e.name)}))),Object(it.d)(yt,{color:V},e.description),Object(it.d)(A.a,{onClick:function(){return st.moveSectionDown()}})),Object(it.d)(O.a,{height:"100%"},Object(it.d)(wt,null,o?mt.a[e.name]:e.name),Object(it.d)(S.a.Absolute,{top:Object(lt.d)("5%","10%"),width:Object(lt.d)("86%","50%"),left:Object(lt.d)("7%",0)},Object(it.d)(z.a,{color:V},e.recycleValue)),Object(it.d)(Mt,{color:"white"},Lt(o)[e.recycleValue]),Object(it.d)(vt,null,Nt),Object(it.d)(A.a,{onClick:function(){return st.moveSectionDown()}})),Object(it.d)(O.a,{height:"100%"},Object(it.d)(wt,{color:V},o?mt.a[e.name]:e.name),Object(it.d)(jt,null,o?"What is the composition?":"組成的材質是什麼？"),Object(it.d)(vt,{color:V},Nt),e.partsNote&&Object(it.d)(St,{color:V},e.partsNote),Object(it.d)(A.a,{onClick:function(){return st.moveSectionDown()}})),Object(it.d)(O.a,{height:"100%"},Object(it.d)(wt,{color:V},o?mt.a[e.name]:e.name),Object(it.d)(jt,null,o?"Which category should it be thrown?":"用完應該丟在哪裡？"),Object(it.d)(vt,{color:V},Nt),e.recycleNote&&Object(it.d)(St,{color:V},e.recycleNote),Object(it.d)(A.a,{onClick:function(){return st.moveSectionDown()}})),Object(it.d)(m.a.Fragment,null,Object(it.d)(S.a,{as:j?"div":O.a,px:Object(lt.d)(0,"1.25em")},Object(it.d)(S.a,{width:Object(lt.d)("100%","50%"),mx:"auto",pt:Object(lt.d)("0","5vh")},Object(it.d)(D.a,{src:j?J.a:B.a,ratio:j?750/574:1368/746,overflow:"visible"},Object(it.d)(w.SizeMe,null,(function(t){var i=t.size;return Object(it.d)(S.a.Absolute,{left:Object(lt.d)("2em","40%"),top:Object(lt.d)("3em","36%"),transform:Object(lt.d)("","trnsateY(-50%)"),width:Object(lt.d)("55%","45%")},Object(it.d)(S.a,{fontSize:i.width/25+"px"},Object(it.d)(v.a,{letterSpacing:"0.05em",fontSize:Object(lt.d)("1.75em","2.25em"),fontWeight:"900"},"＃如果你不好好丟垃圾"),Object(it.d)(v.a,{fontSize:Object(lt.d)("3.25em","3.5em"),fontWeight:"900",color:V},e.share)))}))),Object(it.d)(x.a,{fontSize:Object(lt.d)("1em","0.625em"),px:"0.25em",justifyContent:Object(lt.d)("","flex-end"),mt:Object(lt.d)("-10%","-4rem"),mr:Object(lt.d)(0,"-2rem")},Object(it.d)(T.a,{border:"1px solid black",mx:"0.125em",rounded:"0.25em",href:"https://www.facebook.com/sharer/sharer.php?u="+Tt}),Object(it.d)(N.a,{border:"1px solid black",mx:"0.125em",rounded:"0.25em",href:"https://line.naver.jp/R/msg/text/?"+Tt})))),Object(it.d)(S.a,{bg:V,pb:"1em",pt:"2em",position:"relative"},Object(it.d)(O.a,{px:"1.25em"},Object(it.d)(x.a,{pt:"1em",flexDirection:Object(lt.d)("column","row")},Object(it.d)(S.a,null,Object(it.d)(S.a,{pr:Object(lt.d)(0,"1.5em")},Object(it.d)(v.a,{fontWeight:"700",color:"white",fontSize:Object(lt.d)("1.125em","1.25em"),letterSpacing:"0.1em"},"＃要給垃圾一個好歸宿，你該這麼做")),Object(it.d)(F.a,{steps:e.handling})),e.alternative&&Object(it.d)(S.a,{flex:"1",color:"white",mt:Object(lt.d)("1em",0),pt:Object(lt.d)("1em",0),pl:Object(lt.d)("0","1.5em"),borderTop:Object(lt.d)("2px solid","none"),borderLeft:Object(lt.d)("none","2px solid"),alignItems:Object(lt.d)("flex-start","center")},Object(it.d)(v.a,{fontWeight:"700",fontSize:Object(lt.d)("1.125em","1.25em"),letterSpacing:"0.1em"},"＃或者，你有替代方案："),Object(it.d)(x.a,{width:Object(lt.d)("20em","24em"),mr:Object(lt.d)("0","1em"),alignItems:"flex-end",my:Object(lt.d)("1em","0.5em")},Object(it.d)(S.a,{width:"22%",pb:"5%"},Object(it.d)(L.a,{src:R.a})),Object(it.d)(S.a,{flex:"1",pl:"2%"},Object(it.d)(D.a,{src:U.a,ratio:486/176},Object(it.d)(S.a.Absolute,{top:"50%",left:"16%",right:"5%",transform:"translateY(-50%)"},Object(it.d)(v.a,{fontSize:Object(lt.d)("1.125em","1em"),letterSpacing:"0.1em"},e.alternative))))))))),Object(it.d)(S.a,{bg:"white",py:"1.25em",position:"relative",zIndex:1},Object(it.d)(O.a,null,Object(it.d)(x.a,{mt:Object(lt.d)("0.5em","0.25em")},Object(it.d)(S.a,{width:"1.75em",mr:"0.5em"},Object(it.d)(L.a,{src:H.a})),Object(it.d)(v.a,{fontSize:Object(lt.d)("1.25em","1.25em"),fontWeight:"900",letterSpacing:"0.125em"},"猜你也丟過這些..."))),Object(it.d)(S.a,{overflow:Object(lt.d)("scroll","hidden"),mr:Object(lt.d)(0,"1.25em"),className:"overflow-scroll",py:"1em"},Object(it.d)(S.a,{as:j?"div":O.a},Object(it.d)(x.a,{width:Object(lt.d)("200vw","100%")},et.map((function(t){return Object(it.d)(S.a,{key:t.id,width:"20%"},Object(it.d)(S.a,{p:"2%"},Object(it.d)(ut.a,{data:t})))}))))),Object(it.d)(O.a,{px:Object(lt.d)("0","2em")},Object(it.d)(k.a,{pt:"2em"}))),Object(it.d)(S.a.Absolute,{left:"0",right:"0",top:"0",height:p.height-lt.c.headerHeight+"px)",pointerEvents:"none",opacity:1*(a>=1)},Object(it.d)(O.a,{height:"100%"},Object(it.d)(S.a.Relative,{height:"100%"},Object(it.d)(S.a.Absolute,{width:K+"%",left:(100-K)/2+"%",top:Object(lt.d)(Ot[0]+"px",Ot[1]+"px"),transform:"translate3d("+(j?"10%":0)+", -50%, 0) "+(e.transform.rotate?"rotate("+(j&&e.transform.mobileRotate?e.transform.mobileRotate:e.transform.rotate)+"deg)":"")},Object(it.d)(S.a,{transform:"translate("+ot[j?0:1].map((function(t){return t+"%"})).join(",")+") "+(e.transform.shareScale?"scale("+(j&&e.transform.mobileShareScale?e.transform.mobileShareScale:e.transform.shareScale)/100+")":"")},Object(it.d)(L.a,{src:e.img}),Object(it.d)(P.a,{transform:e.transform.face,id:tt})))))))],Et=Ct.length,At=Object(d.useMemo)((function(){return c()(Et).map((function(){return Object(d.createRef)()}))}),[]);Object(d.useEffect)((function(){ft&&ft.kill();var t={width:K+"%",left:(100-K)/2+"%",rotate:(j&&e.transform.mobileRotate?e.transform.mobileRotate:e.transform.rotate)||0,y:"-50%",x:0};g.a.set(_.current,t),g.a.set(Q.current,{x:0,y:0,scale:1}),g.a.set(W.current,{opacity:1});var i=[];ft=g.a.timeline({onUpdate:function(){i.length&&i.forEach((function(t){var e=new Event("progress");e.progress=Math.min(1,Math.max(0,ft.time()-2)),t.dispatchEvent(e)}))}}),gt=g.a.timeline();var s=function(t,e){return t.totalHeight+(t.partsCount-1)*pt.a[1]*e/100}(e,$),o=Math.min(Math.floor((p.height-60)/(s*(j?1.35:1.2))*pt.a[0]/C*100),j?e.transform.explosionScale||100:50),n=E.a[e.name];ft.to(W.current,{opacity:0,duration:1}),ft.to(_.current,{rotate:0,duration:1},0),ft.to(_.current,{width:o+"%",left:(100-o)/2+"%",top:j?50+(e.transform.mobileExplosionY||0)+"%":"50%",x:j?"25%":"0",duration:1},1);var r=function(t,e,i){var s={},o=[],n=e-(e-pt.a[1])/2;return[t.imgs.map((function(e){var r=(n-e.y-t.positions[e.order]-pt.a[1]*i/100*e.order)/pt.a[1]*100;o[e.order]=r;var a=r+"%";return e.partName&&(s[e.partName]=a),a})),s,o]}(e,s,$),a=r[0],c=r[1],l=[];e.imgs.forEach((function(t,i){var s,o,r;if((g.a.set(Z[t.index].current,{y:"0%"}),ft.to(Z[t.index].current,{y:a[i],duration:1},1),n&&n[t.layerName]&&Object.entries(n[t.layerName]).forEach((function(e){var i=e[0],s=e[1];ft.to(G[t.index].current,Object.assign({},s,{duration:i/100*1}),1)})),t.partName)&&(g.a.set(q[t.index].current.querySelector(".circle-container"),((s={})[t.side&&!j?"left":"right"]=It[t.partName].pos+"%",s)),g.a.set(q[t.index].current.querySelector(".line"),{opacity:0}),g.a.set(q[t.index].current.querySelector(".circle-1"),{opacity:0}),ft.to(q[t.index].current.querySelector(".circle-container"),((o={})[t.side&&!j?"left":"right"]=j?"92%":"100%",o.duration=1,o),1),ft.to(q[t.index].current.querySelector(".line"),((r={})[t.side&&!j?"right":"left"]="-2%",r.opacity=1,r.duration=1,r),1),ft.to(q[t.index].current.querySelector(".circle-1"),{opacity:1,duration:1},1),/^@/.test(e.belongsTo[t.partName]))){var h=e.belongsTo[t.partName].substring(1),p=c[h].replace("%","")-a[i].replace("%","");l[t.order]=[h,p]}ft.to(Z[t.index].current,{y:0,duration:1},3)}));var h=l.length?l.reduce((function(t,e){if(0===t)return 0;var i=e?Math.sign(e[1]):null;return"number"==typeof t?t===i?t:0:i}),null):0,u=l.length?l.reduce((function(t,e){return t+(e?e[1]:0)}),0):0;u&&ft.to(Q.current,{y:-u/(l.filter(Boolean).length+1)+"%",duration:1},2),e.imgs.forEach((function(t,e){if(l[t.order]){var s;if(ft.to(Z[t.index].current,{y:c[l[t.order][0]],duration:1},2),t.partName)ft.to(q[t.index].current.querySelector(".circle-container"),((s={opacity:0})[t.side&&!j?"left":"right"]=It[t.partName].pos+"%",s.duration=1,s),2),ft.to(q[t.index].current.querySelector(".line"),Object.assign({opacity:0},It[t.partName].linePos,{duration:1}),2),ft.to(q[t.index].current.querySelector(".circle-1"),{opacity:0,duration:1},2)}else{if(h<0&&t.order<l.length&&!l[t.order]){var o=l.slice(t.order).find(Boolean);ft.to(Z[t.index].current,{y:1*a[e].replace("%","")+o[1]+"%",duration:1},2)}if(t.partName){var r;g.a.set(q[t.index].current.querySelector(".circle-2"),{scale:0}),g.a.set(q[t.index].current.querySelector(".circle-rate"),{opacity:0}),ft.to(q[t.index].current.querySelector(".circle-2"),{scale:1,duration:1},2),ft.to(q[t.index].current.querySelector(".circle-rate"),{opacity:1,duration:.5},2.5);var p=q[t.index].current.querySelector(".circle-rate-progress");p&&i.push(p),ft.to(q[t.index].current.querySelector(".circle-container"),((r={opacity:0})[t.side&&!j?"left":"right"]=It[t.partName].pos+"%",r.duration=1,r),3),ft.to(q[t.index].current.querySelector(".line"),Object.assign({opacity:0},It[t.partName].linePos,{duration:1}),3),ft.to(q[t.index].current.querySelector(".circle-1"),{opacity:0,duration:.1},3),ft.to(q[t.index].current.querySelector(".circle-2"),{opacity:0,duration:1},3),ft.to(q[t.index].current.querySelector(".circle-rate"),{opacity:0,duration:1},3)}n&&n[t.layerName]&&ft.to(G[t.index].current,Object.assign({},n[t.layerName][0],{duration:1}),3)}})),ft.to(_.current,Object.assign({},t,{duration:1}),3),gt.to(Q.current,{duration:1,x:ot[j?0:1][0]+"%",y:ot[j?0:1][1]+"%",scale:e.transform.shareScale?(j&&e.transform.mobileShareScale?e.transform.mobileShareScale:e.transform.shareScale)/100:1},0).to(_.current,{x:j?"10%":0,duration:1,top:Ot[j?0:1]+"px"},0).to(W.current,{duration:1,opacity:1}),gt.pause(),ft.pause()}),[e,p.height,C,j]);var zt=u()(lt.c,"colors."+V);return Object(it.d)("div",null,Object(it.d)(y.a,{sectionsColor:["",zt,"white","white",zt],licenseKey:"6313A8FC-72634A8F-B83D01C8-ACBFD3D5",scrollingSpeed:1e3,verticalCentered:!1,onLeave:function(t,e){ft.tweenTo(1*e.index,{duration:1}),gt.tweenTo(1*Math.max(e.index-3,0)),bt&&bt.stop();var i=e.index-t.index;bt=Object(M.c)((function(e){l((t.index+i*Math.min(e/1e3,1))/(Et-1)),e>1e3&&bt.stop()}))},scrollOverflow:!0,normalScrollElements:j?".overflow-scroll, .footer-nav":".footer-nav",afterRender:function(){setTimeout((function(){document.body.style.height=p.height+"px"}))},afterResize:function(){setTimeout((function(){document.body.style.height=p.height+"px",st.getActiveSection().index<4&&st.silentMoveTo(1)}))},render:function(t){var e=t.fullpageApi;return st=e,Object(it.d)(y.a.Wrapper,null,Ct.map((function(t,e){return Object(it.d)("div",{className:"section "+(4===e?"":"fp-noscroll"),key:e,ref:At[e]},Object(it.d)(S.a,{height:"100%",pt:lt.c.headerHeight},Object(it.d)(S.a.Relative,{height:"100%"},t)))})))}}),Object(it.d)(S.a.Fixed,{top:"0",left:"0",right:"0",display:a>=1?"none":"block",height:p.height+"px",zIndex:"docked",pointerEvents:"none",pt:lt.c.headerHeight},Object(it.d)(O.a,{height:"100%"},Object(it.d)(S.a.Relative,{height:"100%"},Object(it.d)(S.a.Absolute,{ref:_,id:"trash-container",top:Object(lt.d)(45+(e.transform.mobileFirstY||0)+"%",50+(e.transform.firstY||0)+"%"),width:K+"%",left:(100-K)/2+"%"},Object(it.d)("div",{ref:Q},Object(it.d)(f.a,{ratio:pt.a[0]/pt.a[1],overflow:"visible"},Object(it.d)(S.a,{overflow:"visible"},Dt,Object(it.d)(P.a,{transform:e.transform.face,ref:W,id:tt})))))))),!j&&Object(it.d)(S.a.Fixed,{top:Object(lt.d)("2em","5%"),bottom:"5%",right:"1.25em",width:Object(lt.d)("9em","1.875em"),zIndex:"docked",pt:lt.c.headerHeight},Object(it.d)(nt,{onClick:function(){return st.moveTo(5)},isMobile:j,progress:a})))}));e.default=Ot},oKAg:function(t,e,i){var s;!function(o,n,r){var a=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||function(t){o.setTimeout(t,1e3/60)},c=function(){var t={},e=n.createElement("div").style,i=function(){for(var t=["t","webkitT","MozT","msT","OT"],i=0,s=t.length;i<s;i++)if(t[i]+"ransform"in e)return t[i].substr(0,t[i].length-1);return!1}();function s(t){return!1!==i&&(""===i?t:i+t.charAt(0).toUpperCase()+t.substr(1))}t.getTime=Date.now||function(){return(new Date).getTime()},t.extend=function(t,e){for(var i in e)t[i]=e[i]},t.addEvent=function(t,e,i,s){t.addEventListener(e,i,!!s)},t.removeEvent=function(t,e,i,s){t.removeEventListener(e,i,!!s)},t.prefixPointerEvent=function(t){return o.MSPointerEvent?"MSPointer"+t.charAt(7).toUpperCase()+t.substr(8):t},t.momentum=function(t,e,i,s,o,n){var a,c,l=t-e,h=r.abs(l)/i;return c=h/(n=void 0===n?6e-4:n),(a=t+h*h/(2*n)*(l<0?-1:1))<s?(a=o?s-o/2.5*(h/8):s,c=(l=r.abs(a-t))/h):a>0&&(a=o?o/2.5*(h/8):0,c=(l=r.abs(t)+a)/h),{destination:r.round(a),duration:c}};var a=s("transform");return t.extend(t,{hasTransform:!1!==a,hasPerspective:s("perspective")in e,hasTouch:"ontouchstart"in o,hasPointer:!(!o.PointerEvent&&!o.MSPointerEvent),hasTransition:s("transition")in e}),t.isBadAndroid=function(){var t=o.navigator.appVersion;if(/Android/.test(t)&&!/Chrome\/\d/.test(t)){var e=t.match(/Safari\/(\d+.\d)/);return!(e&&"object"==typeof e&&e.length>=2)||parseFloat(e[1])<535.19}return!1}(),t.extend(t.style={},{transform:a,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin")}),t.hasClass=function(t,e){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},t.addClass=function(e,i){if(!t.hasClass(e,i)){var s=e.className.split(" ");s.push(i),e.className=s.join(" ")}},t.removeClass=function(e,i){if(t.hasClass(e,i)){var s=new RegExp("(^|\\s)"+i+"(\\s|$)","g");e.className=e.className.replace(s," ")}},t.offset=function(t){for(var e=-t.offsetLeft,i=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,i-=t.offsetTop;return{left:e,top:i}},t.preventDefaultException=function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},t.extend(t.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),t.extend(t.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return r.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){return(t-=1)*t*(5*t+4)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){return 0===t?0:1==t?1:.4*r.pow(2,-10*t)*r.sin((t-.055)*(2*r.PI)/.22)+1}}}),t.tap=function(t,e){var i=n.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)},t.click=function(t){var e,i=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||((e=n.createEvent(o.MouseEvent?"MouseEvents":"Event")).initEvent("click",!0,!0),e.view=t.view||o,e.detail=1,e.screenX=i.screenX||0,e.screenY=i.screenY||0,e.clientX=i.clientX||0,e.clientY=i.clientY||0,e.ctrlKey=!!t.ctrlKey,e.altKey=!!t.altKey,e.shiftKey=!!t.shiftKey,e.metaKey=!!t.metaKey,e.button=0,e.relatedTarget=null,e._constructed=!0,i.dispatchEvent(e))},t}();function l(t,e){for(var i in this.wrapper="string"==typeof t?n.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!c.hasPointer,disableTouch:c.hasPointer||!c.hasTouch,disableMouse:c.hasPointer||c.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:void 0===o.onmousedown},e)this.options[i]=e[i];this.translateZ=this.options.HWCompositing&&c.hasPerspective?" translateZ(0)":"",this.options.useTransition=c.hasTransition&&this.options.useTransition,this.options.useTransform=c.hasTransform&&this.options.useTransform,this.options.eventPassthrough=!0===this.options.eventPassthrough?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY,this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?c.ease[this.options.bounceEasing]||c.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,!0===this.options.tap&&(this.options.tap="tap"),this.options.useTransition||this.options.useTransform||/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function h(t,e,i){var s=n.createElement("div"),o=n.createElement("div");return!0===i&&(s.style.cssText="position:absolute;z-index:9999",o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),o.className="iScrollIndicator","h"==t?(!0===i&&(s.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%"),s.className="iScrollHorizontalScrollbar"):(!0===i&&(s.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%"),s.className="iScrollVerticalScrollbar"),s.style.cssText+=";overflow:hidden",e||(s.style.pointerEvents="none"),s.appendChild(o),s}function p(t,e){for(var i in this.wrapper="string"==typeof e.el?n.querySelector(e.el):e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0},e)this.options[i]=e[i];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(c.addEvent(this.indicator,"touchstart",this),c.addEvent(o,"touchend",this)),this.options.disablePointer||(c.addEvent(this.indicator,c.prefixPointerEvent("pointerdown"),this),c.addEvent(o,c.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(c.addEvent(this.indicator,"mousedown",this),c.addEvent(o,"mouseup",this))),this.options.fade){this.wrapperStyle[c.style.transform]=this.scroller.translateZ;var s=c.style.transitionDuration;if(!s)return;this.wrapperStyle[s]=c.isBadAndroid?"0.0001ms":"0ms";var r=this;c.isBadAndroid&&a((function(){"0.0001ms"===r.wrapperStyle[s]&&(r.wrapperStyle[s]="0s")})),this.wrapperStyle.opacity="0"}}l.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(1!=c.eventType[t.type]&&0!==(t.which?t.button:t.button<2?0:4==t.button?1:2))return;if(this.enabled&&(!this.initiated||c.eventType[t.type]===this.initiated)){!this.options.preventDefault||c.isBadAndroid||c.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,i=t.touches?t.touches[0]:t;this.initiated=c.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=c.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,e=this.getComputedPosition(),this._translate(r.round(e.x),r.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&c.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,i,s,o,n=t.touches?t.touches[0]:t,a=n.pageX-this.pointX,l=n.pageY-this.pointY,h=c.getTime();if(this.pointX=n.pageX,this.pointY=n.pageY,this.distX+=a,this.distY+=l,s=r.abs(this.distX),o=r.abs(this.distY),!(h-this.endTime>300&&s<10&&o<10)){if(this.directionLocked||this.options.freeScroll||(s>o+this.options.directionLockThreshold?this.directionLocked="h":o>=s+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);l=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}a=this.hasHorizontalScroll?a:0,l=this.hasVerticalScroll?l:0,e=this.x+a,i=this.y+l,(e>0||e<this.maxScrollX)&&(e=this.options.bounce?this.x+a/3:e>0?0:this.maxScrollX),(i>0||i<this.maxScrollY)&&(i=this.options.bounce?this.y+l/3:i>0?0:this.maxScrollY),this.directionX=a>0?-1:a<0?1:0,this.directionY=l>0?-1:l<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(e,i),h-this.startTime>300&&(this.startTime=h,this.startX=this.x,this.startY=this.y)}}},_end:function(t){if(this.enabled&&c.eventType[t.type]===this.initiated){this.options.preventDefault&&!c.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();t.changedTouches&&t.changedTouches[0];var e,i,s=c.getTime()-this.startTime,o=r.round(this.x),n=r.round(this.y),a=r.abs(o-this.startX),l=r.abs(n-this.startY),h=0,p="";if(this.isInTransition=0,this.initiated=0,this.endTime=c.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(o,n),!this.moved)return this.options.tap&&c.tap(t,this.options.tap),this.options.click&&c.click(t),void this._execEvent("scrollCancel");if(this._events.flick&&s<200&&a<100&&l<100)this._execEvent("flick");else{if(this.options.momentum&&s<300&&(e=this.hasHorizontalScroll?c.momentum(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:o,duration:0},i=this.hasVerticalScroll?c.momentum(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:n,duration:0},o=e.destination,n=i.destination,h=r.max(e.duration,i.duration),this.isInTransition=1),this.options.snap){var u=this._nearestSnap(o,n);this.currentPage=u,h=this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-u.x),1e3),r.min(r.abs(n-u.y),1e3)),300),o=u.x,n=u.y,this.directionX=0,this.directionY=0,p=this.options.bounceEasing}if(o!=this.x||n!=this.y)return(o>0||o<this.maxScrollX||n>0||n<this.maxScrollY)&&(p=c.ease.quadratic),void this.scrollTo(o,n,h,p);this._execEvent("scrollEnd")}}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){t.refresh()}),this.options.resizePolling)},resetPosition:function(t){var e=this.x,i=this.y;return t=t||0,!this.hasHorizontalScroll||this.x>0?e=0:this.x<this.maxScrollX&&(e=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),(e!=this.x||i!=this.y)&&(this.scrollTo(e,i,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=c.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,e){this._events[t]||(this._events[t]=[]),this._events[t].push(e)},off:function(t,e){if(this._events[t]){var i=this._events[t].indexOf(e);i>-1&&this._events[t].splice(i,1)}},_execEvent:function(t){if(this._events[t]){var e=0,i=this._events[t].length;if(i)for(;e<i;e++)this._events[t][e].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,e,i,s){t=this.x+t,e=this.y+e,i=i||0,this.scrollTo(t,e,i,s)},scrollTo:function(t,e,i,s){s=s||c.ease.circular,this.isInTransition=this.options.useTransition&&i>0;var o=this.options.useTransition&&s.style;!i||o?(o&&(this._transitionTimingFunction(s.style),this._transitionTime(i)),this._translate(t,e)):this._animate(t,e,i,s.fn)},scrollToElement:function(t,e,i,s,o){if(t=t.nodeType?t:this.scroller.querySelector(t)){var n=c.offset(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,!0===i&&(i=r.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===s&&(s=r.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=i||0,n.top-=s||0,n.left=n.left>0?0:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>0?0:n.top<this.maxScrollY?this.maxScrollY:n.top,e=null==e||"auto"===e?r.max(r.abs(this.x-n.left),r.abs(this.y-n.top)):e,this.scrollTo(n.left,n.top,e,o)}},_transitionTime:function(t){if(this.options.useTransition){t=t||0;var e=c.style.transitionDuration;if(e){if(this.scrollerStyle[e]=t+"ms",!t&&c.isBadAndroid){this.scrollerStyle[e]="0.0001ms";var i=this;a((function(){"0.0001ms"===i.scrollerStyle[e]&&(i.scrollerStyle[e]="0s")}))}if(this.indicators)for(var s=this.indicators.length;s--;)this.indicators[s].transitionTime(t)}}},_transitionTimingFunction:function(t){if(this.scrollerStyle[c.style.transitionTimingFunction]=t,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTimingFunction(t)},_translate:function(t,e){if(this.options.useTransform?this.scrollerStyle[c.style.transform]="translate("+t+"px,"+e+"px)"+this.translateZ:(t=r.round(t),e=r.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.x=t,this.y=e,this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition()},_initEvents:function(t){var e=t?c.removeEvent:c.addEvent,i=this.options.bindToWrapper?this.wrapper:o;e(o,"orientationchange",this),e(o,"resize",this),this.options.click&&e(this.wrapper,"click",this,!0),this.options.disableMouse||(e(this.wrapper,"mousedown",this),e(i,"mousemove",this),e(i,"mousecancel",this),e(i,"mouseup",this)),c.hasPointer&&!this.options.disablePointer&&(e(this.wrapper,c.prefixPointerEvent("pointerdown"),this),e(i,c.prefixPointerEvent("pointermove"),this),e(i,c.prefixPointerEvent("pointercancel"),this),e(i,c.prefixPointerEvent("pointerup"),this)),c.hasTouch&&!this.options.disableTouch&&(e(this.wrapper,"touchstart",this),e(i,"touchmove",this),e(i,"touchcancel",this),e(i,"touchend",this)),e(this.scroller,"transitionend",this),e(this.scroller,"webkitTransitionEnd",this),e(this.scroller,"oTransitionEnd",this),e(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t,e,i=o.getComputedStyle(this.scroller,null);return this.options.useTransform?(t=+((i=i[c.style.transform].split(")")[0].split(", "))[12]||i[4]),e=+(i[13]||i[5])):(t=+i.left.replace(/[^-\d.]/g,""),e=+i.top.replace(/[^-\d.]/g,"")),{x:t,y:e}},_initIndicators:function(){var t,e=this.options.interactiveScrollbars,i="string"!=typeof this.options.scrollbars,s=[],o=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:h("v",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:i,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),s.push(t)),this.options.scrollX&&(t={el:h("h",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:i,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),s.push(t))),this.options.indicators&&(s=s.concat(this.options.indicators));for(var n=s.length;n--;)this.indicators.push(new p(this,s[n]));function r(t){if(o.indicators)for(var e=o.indicators.length;e--;)t.call(o.indicators[e])}this.options.fadeScrollbars&&(this.on("scrollEnd",(function(){r((function(){this.fade()}))})),this.on("scrollCancel",(function(){r((function(){this.fade()}))})),this.on("scrollStart",(function(){r((function(){this.fade(1)}))})),this.on("beforeScrollStart",(function(){r((function(){this.fade(1,!0)}))}))),this.on("refresh",(function(){r((function(){this.refresh()}))})),this.on("destroy",(function(){r((function(){this.destroy()})),delete this.indicators}))},_initWheel:function(){c.addEvent(this.wrapper,"wheel",this),c.addEvent(this.wrapper,"mousewheel",this),c.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",(function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,c.removeEvent(this.wrapper,"wheel",this),c.removeEvent(this.wrapper,"mousewheel",this),c.removeEvent(this.wrapper,"DOMMouseScroll",this)}))},_wheel:function(t){if(this.enabled){o.navigator.userAgent.match(/(MSIE|Trident)/)||t.preventDefault();var e,i,s,n,a=this;if(void 0===this.wheelTimeout&&a._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout((function(){a.options.snap||a._execEvent("scrollEnd"),a.wheelTimeout=void 0}),400),"deltaX"in t)1===t.deltaMode?(e=-t.deltaX*this.options.mouseWheelSpeed,i=-t.deltaY*this.options.mouseWheelSpeed):(e=-t.deltaX,i=-t.deltaY);else if("wheelDeltaX"in t)e=t.wheelDeltaX/120*this.options.mouseWheelSpeed,i=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)e=i=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;e=i=-t.detail/3*this.options.mouseWheelSpeed}if(e*=this.options.invertWheelDirection,i*=this.options.invertWheelDirection,this.hasVerticalScroll||(e=i,i=0),this.options.snap)return s=this.currentPage.pageX,n=this.currentPage.pageY,e>0?s--:e<0&&s++,i>0?n--:i<0&&n++,void this.goToPage(s,n);s=this.x+r.round(this.hasHorizontalScroll?e:0),n=this.y+r.round(this.hasVerticalScroll?i:0),this.directionX=e>0?-1:e<0?1:0,this.directionY=i>0?-1:i<0?1:0,s>0?s=0:s<this.maxScrollX&&(s=this.maxScrollX),n>0?n=0:n<this.maxScrollY&&(n=this.maxScrollY),this.scrollTo(s,n,0)}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",(function(){var t,e,i,s,o,n,a=0,c=0,l=0,h=this.options.snapStepX||this.wrapperWidth,p=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(!0===this.options.snap)for(i=r.round(h/2),s=r.round(p/2);l>-this.scrollerWidth;){for(this.pages[a]=[],t=0,o=0;o>-this.scrollerHeight;)this.pages[a][t]={x:r.max(l,this.maxScrollX),y:r.max(o,this.maxScrollY),width:h,height:p,cx:l-i,cy:o-s},o-=p,t++;l-=h,a++}else for(t=(n=this.options.snap).length,e=-1;a<t;a++)(0===a||n[a].offsetLeft<=n[a-1].offsetLeft)&&(c=0,e++),this.pages[c]||(this.pages[c]=[]),l=r.max(-n[a].offsetLeft,this.maxScrollX),o=r.max(-n[a].offsetTop,this.maxScrollY),i=l-r.round(n[a].offsetWidth/2),s=o-r.round(n[a].offsetHeight/2),this.pages[c][e]={x:l,y:o,width:n[a].offsetWidth,height:n[a].offsetHeight,cx:i,cy:s},l>this.maxScrollX&&c++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}})),this.on("flick",(function(){var t=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.x-this.startX),1e3),r.min(r.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)}))},_nearestSnap:function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,s=this.pages.length,o=0;if(r.abs(t-this.absStartX)<this.snapThresholdX&&r.abs(e-this.absStartY)<this.snapThresholdY)return this.currentPage;for(t>0?t=0:t<this.maxScrollX&&(t=this.maxScrollX),e>0?e=0:e<this.maxScrollY&&(e=this.maxScrollY);i<s;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}for(s=this.pages[i].length;o<s;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i==this.currentPage.pageX&&((i+=this.directionX)<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o==this.currentPage.pageY&&((o+=this.directionY)<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},goToPage:function(t,e,i,s){s=s||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,n=this.pages[t][e].y;i=void 0===i?this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-this.x),1e3),r.min(r.abs(n-this.y),1e3)),300):i,this.currentPage={x:o,y:n,pageX:t,pageY:e},this.scrollTo(o,n,i,s)},next:function(t,e){var i=this.currentPage.pageX,s=this.currentPage.pageY;++i>=this.pages.length&&this.hasVerticalScroll&&(i=0,s++),this.goToPage(i,s,t,e)},prev:function(t,e){var i=this.currentPage.pageX,s=this.currentPage.pageY;--i<0&&this.hasVerticalScroll&&(i=0,s--),this.goToPage(i,s,t,e)},_initKeys:function(t){var e,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(e in this.options.keyBindings)"string"==typeof this.options.keyBindings[e]&&(this.options.keyBindings[e]=this.options.keyBindings[e].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(e in i)this.options.keyBindings[e]=this.options.keyBindings[e]||i[e];c.addEvent(o,"keydown",this),this.on("destroy",(function(){c.removeEvent(o,"keydown",this)}))},_key:function(t){if(this.enabled){var e,i=this.options.snap,s=i?this.currentPage.pageX:this.x,o=i?this.currentPage.pageY:this.y,n=c.getTime(),a=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(r.round(e.x),r.round(e.y)),this.isInTransition=!1),this.keyAcceleration=n-a<200?r.min(this.keyAcceleration+.25,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?s+=i?1:this.wrapperWidth:o+=i?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?s-=i?1:this.wrapperWidth:o-=i?1:this.wrapperHeight;break;case this.options.keyBindings.end:s=i?this.pages.length-1:this.maxScrollX,o=i?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:s=0,o=0;break;case this.options.keyBindings.left:s+=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:o+=i?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:s-=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:o-=i?1:5+this.keyAcceleration>>0;break;default:return}i?this.goToPage(s,o):(s>0?(s=0,this.keyAcceleration=0):s<this.maxScrollX&&(s=this.maxScrollX,this.keyAcceleration=0),o>0?(o=0,this.keyAcceleration=0):o<this.maxScrollY&&(o=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(s,o,0),this.keyTime=n)}},_animate:function(t,e,i,s){var o=this,n=this.x,r=this.y,l=c.getTime(),h=l+i;this.isAnimating=!0,function p(){var u,d,m,f=c.getTime();if(f>=h)return o.isAnimating=!1,o._translate(t,e),void(o.resetPosition(o.options.bounceTime)||o._execEvent("scrollEnd"));m=s(f=(f-l)/i),u=(t-n)*m+n,d=(e-r)*m+r,o._translate(u,d),o.isAnimating&&a(p)}()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":this.enabled&&!t._constructed&&(t.preventDefault(),t.stopPropagation())}}},p.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(c.removeEvent(this.indicator,"touchstart",this),c.removeEvent(this.indicator,c.prefixPointerEvent("pointerdown"),this),c.removeEvent(this.indicator,"mousedown",this),c.removeEvent(o,"touchmove",this),c.removeEvent(o,c.prefixPointerEvent("pointermove"),this),c.removeEvent(o,"mousemove",this),c.removeEvent(o,"touchend",this),c.removeEvent(o,c.prefixPointerEvent("pointerup"),this),c.removeEvent(o,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=c.getTime(),this.options.disableTouch||c.addEvent(o,"touchmove",this),this.options.disablePointer||c.addEvent(o,c.prefixPointerEvent("pointermove"),this),this.options.disableMouse||c.addEvent(o,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var e,i,s,o,n=t.touches?t.touches[0]:t;c.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,e=n.pageX-this.lastPointX,this.lastPointX=n.pageX,i=n.pageY-this.lastPointY,this.lastPointY=n.pageY,s=this.x+e,o=this.y+i,this._pos(s,o),t.preventDefault(),t.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),c.removeEvent(o,"touchmove",this),c.removeEvent(o,c.prefixPointerEvent("pointermove"),this),c.removeEvent(o,"mousemove",this),this.scroller.options.snap){var e=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),i=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.scroller.x-e.x),1e3),r.min(r.abs(this.scroller.y-e.y),1e3)),300);this.scroller.x==e.x&&this.scroller.y==e.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=e,this.scroller.scrollTo(e.x,e.y,i,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0;var e=c.style.transitionDuration;if(e&&(this.indicatorStyle[e]=t+"ms",!t&&c.isBadAndroid)){this.indicatorStyle[e]="0.0001ms";var i=this;a((function(){"0.0001ms"===i.indicatorStyle[e]&&(i.indicatorStyle[e]="0s")}))}},transitionTimingFunction:function(t){this.indicatorStyle[c.style.transitionTimingFunction]=t},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(c.addClass(this.wrapper,"iScrollBothScrollbars"),c.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(c.removeClass(this.wrapper,"iScrollBothScrollbars"),c.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=r.max(r.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=8-this.indicatorWidth,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=r.max(r.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=8-this.indicatorHeight,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&r.round(this.sizeRatioX*this.scroller.x)||0,e=this.options.listenY&&r.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=r.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=r.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",t=this.maxPosX+this.indicatorWidth-this.width):t=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),e<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=r.max(this.indicatorHeight+3*e,8),this.indicatorStyle.height=this.height+"px"),e=this.minBoundaryY):e>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=r.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",e=this.maxPosY+this.indicatorHeight-this.height):e=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=e,this.scroller.options.useTransform?this.indicatorStyle[c.style.transform]="translate("+t+"px,"+e+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=e+"px")},_pos:function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=this.options.listenX?r.round(t/this.sizeRatioX):this.scroller.x,e=this.options.listenY?r.round(e/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=t?250:500,s=t?0:300;t=t?"1":"0",this.wrapperStyle[c.style.transitionDuration]=i+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),s)}}},l.utils=c,t.exports?t.exports=l:(void 0===(s=function(){return l}.call(e,i,e,t))||(t.exports=s),void 0!==o&&(o.IScroll=l))}(window,document,Math),function(e,i){e.fp_scrolloverflow=function(){e.IScroll||(e.IScroll=t.exports);function s(){var t=this;function s(){fp_utils.hasClass(i.body,"fp-responsive")?r(a):r(n)}function n(e){if(!fp_utils.hasClass(e,"fp-noscroll")){fp_utils.css(e,{overflow:"hidden"});var i,s=t.options.scrollOverflowHandler,n=s.wrapContent(),r=fp_utils.closest(e,".fp-section"),a=s.scrollable(e),c=function(t){var e=fp_utils.closest(t,".fp-section");return null!=e?parseInt(getComputedStyle(e)["padding-bottom"])+parseInt(getComputedStyle(e)["padding-top"]):0}(r);null!=a?i=s.scrollHeight(e):(i=e.scrollHeight,t.options.verticalCentered&&(i=o(".fp-tableCell",e)[0].scrollHeight));var l=fp_utils.getWindowHeight(),h=l-c;i+c>l?null!=a?s.update(e,h):(t.options.verticalCentered?(fp_utils.wrapInner(o(".fp-tableCell",e)[0],n.scroller),fp_utils.wrapInner(o(".fp-tableCell",e)[0],n.scrollable)):(fp_utils.wrapInner(e,n.scroller),fp_utils.wrapInner(e,n.scrollable)),s.create(e,h,t.iscrollOptions)):s.remove(e),fp_utils.css(e,{overflow:""})}}function r(t){o(".fp-section").forEach((function(e){var i=o(".fp-slide",e);i.length?i.forEach((function(e){t(e)})):t(e)}))}function a(e){var i=t.options.scrollOverflowHandler;fp_utils.hasClass(fp_utils.closest(e,".fp-section"),"fp-auto-height-responsive")&&i.remove(e)}t.options=null,t.init=function(o,n){return t.options=o,t.iscrollOptions=n,"complete"===i.readyState&&(s(),fullpage_api.shared.afterRenderActions()),e.addEventListener("load",(function(){s(),fullpage_api.shared.afterRenderActions()})),t},t.createScrollBarForAll=s,t.createScrollBar=n}IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)};var o=null,n=null,r={refreshId:null,iScrollInstances:[],lastScrollY:null,hasBeenInit:!1,iscrollOptions:{scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},init:function(t){o=fp_utils.$,n=t;var i="ontouchstart"in e||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;return r.iscrollOptions.click=i,r.hasBeenInit=!0,r.iscrollOptions=fp_utils.deepExtend(r.iscrollOptions,t.scrollOverflowOptions),(new s).init(t,r.iscrollOptions)},toggleWheel:function(t){o(".fp-scrollable",o(".fp-section.active")[0]).forEach((function(e){var i=e.fp_iscrollInstance;null!=i&&(t?i.wheelOn():i.wheelOff())}))},setIscroll:function(t,e){if(r.hasBeenInit&&t){var i=fp_utils.closest(t,".fp-scrollable")||o(".fp-scrollable",t)&&o(".fp-scrollable",t)[0],s=e?"enable":"disable";i&&i.fp_iscrollInstance[s]()}},onLeave:function(){r.toggleWheel(!1)},beforeLeave:function(){r.onLeave()},afterLoad:function(){r.toggleWheel(!0)},create:function(t,e,i){o(".fp-scrollable",t).forEach((function(s){fp_utils.css(s,{height:e+"px"});var o=s.fp_iscrollInstance;null!=o&&r.iScrollInstances.forEach((function(t){t.destroy()})),o=new IScroll(s,i),r.iScrollInstances.push(o),fp_utils.hasClass(fp_utils.closest(t,".fp-section"),"active")||o.wheelOff(),s.fp_iscrollInstance=o}))},isScrolled:function(t,e){var i=e.fp_iscrollInstance;if(!i)return!0;if("top"===t)return i.y>=0&&!fp_utils.getScrollTop(e);if("bottom"===t){var s=r.lastScrollY===i.y;return r.lastScrollY=i.y,(s?1:0)+(0-i.y)+fp_utils.getScrollTop(e)+e.offsetHeight>=e.scrollHeight}},scrollable:function(t){return o(".fp-slides",t).length?o(".fp-scrollable",o(".fp-slide.active",t)[0])[0]:o(".fp-scrollable",t)[0]},scrollHeight:function(t){return o(".fp-scroller",o(".fp-scrollable",t)[0])[0].scrollHeight},remove:function(t){if(null!=t){var e=o(".fp-scrollable",t)[0];if(null!=e){var i=e.fp_iscrollInstance;null!=i&&i.destroy(),e.fp_iscrollInstance=null,fp_utils.unwrap(o(".fp-scroller",t)[0]),fp_utils.unwrap(o(".fp-scrollable",t)[0])}}},update:function(t,e){clearTimeout(r.refreshId),r.refreshId=setTimeout((function(){r.iScrollInstances.forEach((function(t){t.refresh(),fullpage_api.silentMoveTo(fp_utils.index(o(".fp-section.active")[0])+1)}))}),150),fp_utils.css(o(".fp-scrollable",t)[0],{height:e+"px"}),n.verticalCentered&&fp_utils.css(o(".fp-scrollable",t)[0].parentNode,{height:e+"px"})},wrapContent:function(){var t=i.createElement("div");t.className="fp-scrollable";var e=i.createElement("div");return e.className="fp-scroller",{scrollable:t,scroller:e}}};return{iscrollHandler:r}}()}(window,document)},xQGg:function(t,e,i){var s=i("g4R6"),o=i("Q1l4"),n=i("1GBj");t.exports=function(t,e){return n(o(t),s(e,0,t.length))}}}]);
  //# sourceMappingURL=component---src-templates-trash-js-74c7e25373c65f3ecaff.js.map