forked from cmswalker/fullpage-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FullpageReact.js.map
1 lines (1 loc) · 139 KB
/
FullpageReact.js.map
1
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 1c5622f4edcf8312663e","webpack:///external \"react\"","webpack:///./lib/components/Slide.js","webpack:///./lib/components/HorizontalSlider.js","webpack:///./lib/utils/index.js","webpack:///./lib/components/Fullpage.js","webpack:///./lib/index.js","webpack:///./lib/utils/constants.js","webpack:///./lib/utils/detectOS.js","webpack:///./lib/utils/renderUtils.js","webpack:///./lib/utils/scrollTo.js","webpack:///./~/process/browser.js","webpack:///./~/react-fns/dist/index.es6.js","webpack:///./~/react-media/esm/react-media.js","webpack:///./~/scroll-swipe/dist/ScrollSwipe.js","webpack:///(webpack)/buildin/global.js","webpack:///./~/window-or-global/lib/index.js"],"names":["HorizontalSlide","VerticalSlide","Slide","id","render","className","width","height","horizontal","horizontalSliderName","children","style","slideStyle","styles","Object","assign","overflow","position","slideClassName","push","join","attrs","HorizontalSlider","props","name","activeSlide","document","cache","nodes","getNodes","hideAllButActive","p","Error","elements","slides","reduce","result","sl","type","other","overflowX","hideScrollBars","overflowY","horizontalSliderStyle","whiteSpace","padding","margin","horizontalSlideStyle","display","node","map","o","i","s","sStyle","hSlideProps","React","Component","composedPath","el","paths","tagName","window","parentElement","sel","querySelectorAll","Array","prototype","forEach","call","n","showAll","INTENT_MAP","detectBrowser","userAgentString","browsers","rule","test","match","exec","version","split","slice","length","apply","os","detectOS","filter","Boolean","shift","noOp","KEY_IDX","_fp","global","TIMEOUT","documentStub","documentElement","body","generateState","lastActive","Fullpage","infinite","resetSlides","horizontalMap","horizontals","scrollSensitivity","touchSensitivity","scrollSpeed","ss","verticalRoot","determineVerticalRoot","onHorizontalChange","onSlideChangeStart","onSlideChangeEnd","f","bind","isLocked","hSlideCache","cacheHslide","slide","state","scrollPending","setState","lockScroll","checkKey","enableArrowKeys","addEventListener","target","scrollPreventDefault","touchPreventDefault","scrollCb","onScrollAction","touchCb","ssStub","killAll","removeEventListener","direction","intent","startEvent","flush","listen","dir","onVerticalScroll","path","polyFillPath","isHorizontal","find","dataset","onHorizontalScroll","next","to","innerHeight","newState","handleScroll","innerWidth","comp","hp","leftVal","determineHSlide","setTimeout","handleHorizontal","len","infStart","infEnd","lastToFirst","scrollLeft","firstToLast","winProp","compName","cb","cancellable","scrollTo","unlockScroll","showScrollBars","oldProps","frozen","e","keyCode","context","changeFullpageSlide","horizontalName","changeHorizontalSlide","scrollTop","op","sp","eligible","isEligible","idx","swap","parentNode","insertBefore","userAgent","platform","navigator","browser","major","minor","patch","docElementSet","Set","conflictingPlatforms","has","INCREMENT","DECREMENT","VERTICAL","HORIZONTAL","HEAD","TAIL","I_BLOCK","BLOCK","NONE","module","exports","operatingSystems","detected","element","elementBoundary","duration","callback","start","change","increment","currentTime","globalId","requestAnimationFrame","repeatOften","val","easeInOutQuad","cancelAnimationFrame","t","b","c","d"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AChEA,+C;;;;;;;;;;;ACAA;;AAEA,IAAMA,kBAAkB,iBAAxB;AACA,IAAMC,gBAAgB,eAAtB;;AAEA,IAAMC,QAAQ,SAARA,KAAQ,OAAiG;AAAA,MAA9FC,EAA8F,QAA9FA,EAA8F;AAAA,MAA1FC,MAA0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qE,KADhB;AAAA,MAEEE,YAAY,EAFd;;AAIA,MAAIC,cAAc,CAAlB;AACA,MAAIC,WAAWC,sBAAsBC,WAAtB,CAAf;AACA,WAASA,WAAT,GAAuB;AACrBH,mBAAeD,SAAf;AACA,QAAIK,MAAMC,cAAcL,WAAd,EAA2BH,KAA3B,EAAkCC,MAAlC,EAA0CH,QAA1C,CAAV;AACAF,YAAQC,eAAR,IAA2BU,GAA3B;;AAEA,QAAIJ,eAAeL,QAAnB,EAA6B;AAC3BW,2BAAqBL,QAArB;AACA,aAAOL,UAAP;AACD;AACDK,eAAWC,sBAAsBC,WAAtB,CAAX;AACD;AACF;;AAED;AACA;AACA;AACA;AACA,IAAME,gBAAgB,SAAhBA,aAAgB,CAACE,CAAD,EAAIC,CAAJ,EAAOC,CAAP,EAAUC,CAAV,EAAgB;AACpCH,OAAKG,CAAL;AACD,SAAO,CAACD,CAAD,GAAKF,CAAL,IAAQA,IAAE,CAAV,IAAeC,CAAtB;AACA,CAHD;;AAKA,yDAAe3D,QAAf,E;;;;;;AC7BA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;ACvLO;;AAE7C;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM,gBAAgB,sCAAsC,iBAAiB,EAAE;AAC/E,qBAAqB,uDAAuD;;AAE5E;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;AACA,uCAAuC;AACvC;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA,4BAA4B,uCAAuC;AACnE,SAAS;AACT;AACA;AACA;AACA;AACA,8FAA8F,gBAAgB;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qGAAuC,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AAC9H;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,2GAA6C,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AACpI;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,gHAAkD,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AACzI;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA,4BAA4B,qCAAqC;AACjE;AACA;AACA,4BAA4B,uCAAuC;AACnE;AACA;AACA;AACA;AACA;AACA,2BAA2B,2BAA2B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,sGAAwC,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AAC/H;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB,aAAa,oBAAoB,wBAAwB,iCAAiC,EAAE,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,0GAA4C,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AACnI;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA,4BAA4B,uDAAuD;AACnF,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,yGAA2C,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AAClI;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,sGAAwC,uBAAuB,6GAA+C,aAAa,EAAE,EAAE;AAC/H;AACA;AACA;;AAEQ;AACR;;;;;;;;;;;AC9cA;;AAEA;AACA,kBAAkB,YAAY,EAAE;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA,4FAA4F,eAAe;AAC3G;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kGAAkG;AAClG;AACA,SAAS;AACT;AACA;AACA,kGAAkG;AAClG;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6BAA6B;AAC7B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gCAAgC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0CAA0C,yBAAyB,EAAE;AACrE;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AAYA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;;;;;AAYA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,mEAAmE,aAAa;AAChF;AACA;;AAEA;AACA;AACA,KAAK;AACL,6BAA6B,wCAAwC;AACrE,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACznCA,iGAAC;AACD;AACA;AAAA;AAAA;AAAA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;ACjbD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;8CCpBA;AACA;AACA;AACA","file":"FullpageReact.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"FullpageReact\", [\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"FullpageReact\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"FullpageReact\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 5);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1c5622f4edcf8312663e","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 0\n// module chunks = 0","import React from 'react';\n\nconst HorizontalSlide = 'HorizontalSlide';\nconst VerticalSlide = 'VerticalSlide';\n\nconst Slide = ({ id, render, className, width, height, horizontal, horizontalSliderName, children, style }) => {\n if (!render) {\n return null;\n }\n\n const slideStyle = style || {};\n\n const styles = Object.assign({\n overflow: 'hidden', width: `${width}px`, height: `${height}px`, position: 'relative'\n }, slideStyle);\n\n let slideClassName = horizontal ? [HorizontalSlide] : [VerticalSlide];\n if (className) {\n slideClassName.push(className);\n }\n slideClassName = slideClassName.join(' ');\n\n const attrs = {\n 'data-slide': horizontal ? HorizontalSlide : VerticalSlide,\n 'data-horizontal-slider': horizontalSliderName || null\n };\n\n return (\n <div className={slideClassName} id={id} {...attrs} style={styles}>\n {children}\n </div>\n );\n}\n\nexport default Slide;\n\n\n\n// WEBPACK FOOTER //\n// ./lib/components/Slide.js","import React from 'react'\n\nimport Slide from './Slide'\nimport { getNodes, hideAllButActive } from '../utils';\n\nclass HorizontalSlider extends React.Component {\n constructor(props) {\n super(props);\n this.name = this.props.name;\n }\n\n componentDidMount() {\n const { activeSlide, document, name, cache } = this.props;\n cache(this);\n\n const nodes = getNodes(document, `data-horizontal-slider=\"${name}\"`);\n hideAllButActive(activeSlide, nodes);\n }\n\n render() {\n const p = this.props;\n const { name, children, height, width } = p;\n\n if (!name) {\n throw new Error('name is a required prop for HorizontalSlider');\n }\n\n const elements = p.slides.reduce((result, sl) => {\n if (!sl) {\n return result;\n }\n\n if (typeof sl.type !== 'function') {\n result.other.push(sl);\n } else {\n result.slides.push(sl);\n }\n\n return result;\n }, { slides: [], other: [] });\n\n const { other, slides } = elements;\n\n const attrs = {\n 'data-slide': 'HorizontalSlider',\n 'data-name': name\n };\n\n const className = (p.className || '') + 'HorizontalSlider';\n const overflowX = p.hideScrollBars ? 'hidden' : 'auto';\n const overflowY = overflowX;\n\n const horizontalSliderStyle = Object.assign({}, p.style,\n {height: `${height}px`, width: `${width}px`, position: 'relative', overflowX, overflowY, whiteSpace: 'nowrap', padding: '0px', margin: '0'});\n const horizontalSlideStyle = {overflow: 'hidden', whiteSpace: 'normal', display: 'inline-block' };\n\n return (\n <div ref={node => this.node = node} className={className} id={p.id} {...attrs} style={horizontalSliderStyle}>\n {other.map((o, i) => {\n const p = o.props || {};\n return <div key={i} {...p}></div>\n })}\n\n {slides.map((s, i) => {\n if (!s) {\n return null;\n }\n\n let sStyle = Object.assign({}, horizontalSlideStyle, slideStyle);\n const hSlideProps = s.props || {};\n const slideStyle = hSlideProps.style || {};\n\n return <Slide render={true} key={i} horizontalSliderName={name} slide={s} id={hSlideProps.id} className={hSlideProps.className || ''} height={height} width={width} horizontal={true} style={sStyle} {...hSlideProps}>{hSlideProps.children}</Slide>\n })}\n\n {children}\n </div>\n );\n }\n}\n\nexport default HorizontalSlider;\n\n\n\n// WEBPACK FOOTER //\n// ./lib/components/HorizontalSlider.js","import * as renderUtils from './renderUtils';\nimport scrollTo from './scrollTo';\nimport * as constants from './constants';\nimport detectOS from './detectOS.js';\n\nfunction composedPath (el) {\n const paths = [];\n\n while (el) {\n paths.push(el);\n\n if (el.tagName === 'HTML') {\n paths.push(document);\n paths.push(window);\n return paths;\n }\n\n el = el.parentElement;\n\t}\n\n\treturn paths;\n}\n\nfunction getNodes(document, sel) {\n\treturn document.querySelectorAll(`[${sel}]`);\n}\n\nfunction hideAllButActive(activeSlide, nodes) {\n\tArray.prototype.forEach.call(nodes, (n, i) => {\n\t\tif (i === activeSlide) {\n\t\t\tn.style.display = 'inline-block';\n\t\t} else {\n\t\t\tn.style.display = 'none';\n\t\t}\n\t});\n}\n\nfunction showAll(nodes) {\n\tArray.prototype.forEach.call(nodes, (n) => {\n\t\tn.style.display = 'inline-block';\n\t});\n}\n\nconst INTENT_MAP = {\n\t'VERTICAL': {\n\t\t0: 'UP',\n\t\t1: 'DOWN'\n\t},\n\t'HORIZONTAL': {\n\t\t0: 'LEFT',\n\t\t1: 'RIGHT'\n\t}\n};\n\nfunction detectBrowser(userAgentString) {\n\tif (!userAgentString) {\n\t\treturn null;\n\t}\n\n\tconst browsers = [\n\t\t['edge', /Edge\\/([0-9\\._]+)/],\n\t\t['yandexbrowser', /YaBrowser\\/([0-9\\._]+)/],\n\t\t['vivaldi', /Vivaldi\\/([0-9\\.]+)/],\n\t\t['kakaotalk', /KAKAOTALK\\s([0-9\\.]+)/],\n\t\t['chrome', /(?!Chrom.*OPR)Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],\n\t\t['phantomjs', /PhantomJS\\/([0-9\\.]+)(:?\\s|$)/],\n\t\t['crios', /CriOS\\/([0-9\\.]+)(:?\\s|$)/],\n\t\t['firefox', /Firefox\\/([0-9\\.]+)(?:\\s|$)/],\n\t\t['fxios', /FxiOS\\/([0-9\\.]+)/],\n\t\t['opera', /Opera\\/([0-9\\.]+)(?:\\s|$)/],\n\t\t['opera', /OPR\\/([0-9\\.]+)(:?\\s|$)$/],\n\t\t['ie', /Trident\\/7\\.0.*rv\\:([0-9\\.]+).*\\).*Gecko$/],\n\t\t['ie', /MSIE\\s([0-9\\.]+);.*Trident\\/[4-7].0/],\n\t\t['ie', /MSIE\\s(7\\.0)/],\n\t\t['bb10', /BB10;\\sTouch.*Version\\/([0-9\\.]+)/],\n\t\t['android', /Android\\s([0-9\\.]+)/],\n\t\t['ios', /Version\\/([0-9\\._]+).*Mobile.*Safari.*/],\n\t\t['safari', /Version\\/([0-9\\._]+).*Safari/]\n\t];\n\n\treturn browsers.map(function (rule) {\n\t\tif (rule[1].test(userAgentString)) {\n\t\t\tconst match = rule[1].exec(userAgentString);\n\t\t\tconst version = match && match[1].split(/[._]/).slice(0, 3);\n\n\t\t\tif (version && version.length < 3) {\n\t\t\t\tArray.prototype.push.apply(version, (version.length == 1) ? [0, 0] : [0]);\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tname: rule[0],\n\t\t\t\tversion: version.join('.'),\n\t\t\t\tos: detectOS(userAgentString)\n\t\t\t};\n\t\t}\n\t}).filter(Boolean).shift();\n}\n\nexport {\n\tcomposedPath,\n\tconstants,\n\tshowAll,\n\thideAllButActive,\n\tINTENT_MAP,\n\trenderUtils,\n\tscrollTo,\n\tgetNodes,\n\tdetectBrowser\n};\n\n\n\n// WEBPACK FOOTER //\n// ./lib/utils/index.js","import React from 'react';\nimport ScrollSwipe from 'scroll-swipe';\nimport root from 'window-or-global';\nimport { WindowSize } from 'react-fns';\n\nimport { detectBrowser, constants, scrollTo, renderUtils, INTENT_MAP, getNodes, showAll, hideAllButActive, composedPath } from '../utils';\nimport Slide from './Slide';\nimport HorizontalSlider from './HorizontalSlider';\n\nconst { noOp } = constants;\nconst { KEY_IDX } = renderUtils;\n\nlet _fp = {};\nlet global = {};\n\nconst TIMEOUT = 200;\n\nconst documentStub = () => {\n const style = {};\n return {\n querySelectorAll: () => [<div></div>],\n documentElement: {\n style\n },\n body: {\n style\n }\n };\n}\n\nfunction generateState(activeSlide = 0) {\n return {\n activeSlide,\n lastActive: activeSlide - 1\n };\n}\n\nclass Fullpage extends React.Component {\n constructor(props) {\n super(props);\n const p = this.props;\n\n global.window = root;\n global.document = global.window.document || documentStub();\n\n if (p.infinite && p.resetSlides) {\n throw new Error('Fullpage Component cannot have both infinite and resetSlides as truthy props');\n }\n\n const { slides } = p;\n\n if (!slides || !slides.length) {\n throw new Error('Please provide slides for Fullpage');\n }\n\n let horizontalMap = {};\n // generate state for horizontals;\n const horizontals = slides.reduce((result, s, i) => {\n const { name } = s.props;\n\n if (s.props.slides && name) {\n result[name] = generateState(0);\n horizontalMap[i] = name;\n }\n\n return result;\n }, {});\n horizontals.horizontalMap = horizontalMap;\n\n const { activeSlide = 0, scrollSensitivity, touchSensitivity, scrollSpeed = 500 } = p;\n\n this.name = 'Fullpage';\n this.scrollSensitivity = scrollSensitivity;\n this.touchSensitivity = touchSensitivity;\n this.scrollSpeed = scrollSpeed;\n\n this.node = null;\n this.ss = null;\n this.verticalRoot = determineVerticalRoot();\n\n this.onHorizontalChange = p.onHorizontalChange || noOp;\n this.onSlideChangeStart = p.onSlideChangeStart || noOp;\n this.onSlideChangeEnd = p.onSlideChangeEnd || noOp;\n\n ['onScrollAction', 'onVerticalScroll',\n 'onHorizontalScroll', 'lockScroll', 'handleScroll',\n 'checkKey'].forEach(f => this[f] = this[f].bind(this));\n\n this.isLocked = false;\n this.hSlideCache = {};\n this.cacheHslide = (slide) => {\n this.hSlideCache[slide.name] = slide;\n }\n\n _fp = this;\n\n this.state = Object.assign({\n scrollPending: false,\n window: null,\n document: null\n }, horizontals, generateState(activeSlide));\n }\n\n componentDidMount() {\n this.hideScrollBars();\n\n this.window = global.window;\n this.document = global.document;\n\n this.setState({\n window: global.window,\n document: global.document\n }, () => {\n this.lockScroll();\n });\n }\n\n hideScrollBars() {\n const { hideScrollBars } = this.props;\n\n if (!hideScrollBars) {\n return;\n }\n\n const { document } = global;\n document.documentElement.style.overflow = 'hidden';\n document.body.style.overflow = 'hidden';\n }\n\n showScrollBars() {\n const { document } = global;\n document.documentElement.style.overflow = 'auto';\n document.body.style.overflow = 'auto';\n }\n\n lockScroll() {\n if (!this.isLocked) {\n const {node, checkKey} = this;\n const {enableArrowKeys} = this.props;\n\n if (enableArrowKeys) {\n window.addEventListener('keydown', checkKey.bind(this));\n }\n\n const ss = new ScrollSwipe({\n target: node,\n scrollSensitivity: this.scrollSensitivity,\n touchSensitivity: this.touchSensitivity,\n scrollPreventDefault: true,\n touchPreventDefault: true,\n scrollCb: this.onScrollAction,\n touchCb: this.onScrollAction\n });\n this.ss = ss;\n this.isLocked = true;\n }\n }\n\n unlockScroll() {\n if( this.isLocked ) {\n const ss = this.ss || ssStub();\n ss.killAll();\n this.ss = null;\n\n const {window} = this.state;\n\n if (this.props.enableArrowKeys) {\n window.removeEventListener('keydown', this.checkKey);\n }\n this.isLocked = false;\n }\n }\n\n onScrollAction({direction, intent, startEvent}) {\n const s = this.state;\n const { ss = ssStub() } = this;\n\n if (s.scrollPending) {\n ss.flush();\n return ss.listen();\n }\n\n const dir = INTENT_MAP[direction];\n\n // at this point we are dedicating\n if (direction === 'VERTICAL') {\n return this.onVerticalScroll(dir[intent], startEvent);\n }\n\n let path = startEvent.path || (startEvent.composedPath && startEvent.composedPath());\n\n if (!path) {\n const polyFillPath = composedPath(startEvent.target);\n path = polyFillPath;\n }\n\n const isHorizontal = path.find((p) => {\n if (!p.dataset) {\n return false;\n }\n\n return p.dataset.slide === 'HorizontalSlider';\n });\n\n if (!isHorizontal) {\n ss.flush();\n return ss.listen();\n }\n\n this.onHorizontalScroll(dir[intent], isHorizontal);\n }\n\n onVerticalScroll(intent) {\n const s = this.state;\n const { window, activeSlide } = s;\n const { slides } = this.props;\n\n const next = intent === 'DOWN' ? activeSlide + 1 : activeSlide - 1;\n if (next < 0 || next > slides.length - 1) {\n const { ss = ssStub() } = this;\n ss.flush();\n return ss.listen();\n }\n\n const to = next * window.innerHeight;\n const newState = {\n activeSlide: next,\n lastActive: activeSlide\n };\n\n this.setState({ scrollPending: true }, () => {\n this.handleScroll(this.verticalRoot, 'scrollTop', to, newState, this.name);\n });\n }\n\n onHorizontalScroll(intent, node) {\n const { name } = node.dataset;\n let { activeSlide } = this.state[name];\n let next = intent === 'RIGHT' ? activeSlide + 1 : activeSlide - 1;\n const { innerWidth } = this.state.window;\n const { ss = ssStub() } = this;\n\n const comp = _fp.hSlideCache[name];\n const hp = comp.props;\n const { infinite } = hp;\n\n let nodes = getNodes(this.state.document, `data-horizontal-slider=\"${name}\"`);\n\n let leftVal = activeSlide * innerWidth;\n let to = next * innerWidth;\n\n const result = this.determineHSlide(comp, activeSlide, next, leftVal, to, nodes);\n\n if (!result) {\n setTimeout(() => {\n ss.flush();\n ss.listen();\n }, TIMEOUT);\n return;\n }\n\n leftVal = result.leftVal\n next = result.next;\n to = result.to;\n\n const newState = {\n [name]: {\n activeSlide: next,\n lastActive: activeSlide\n }\n };\n\n this.handleHorizontal(name, node, nodes, leftVal, to, next, newState, infinite);\n }\n\n determineHSlide(comp, activeSlide, next, leftVal, to, nodes) {\n const hp = comp.props;\n const { infinite, resetSlides } = hp;\n const { innerWidth } = this.state.window;\n\n const len = nodes.length;\n\n const infStart = activeSlide === 0 && next === -1;\n const infEnd = activeSlide === len - 1 && next === len;\n\n if (!infinite && !resetSlides && (infStart || infEnd)) {\n return null;\n }\n\n if (infinite && infStart) {\n // simulate last <- 0\n next = len - 1;\n lastToFirst(nodes);\n leftVal = innerWidth;\n to = 0;\n } else if (infinite && infEnd) {\n // simulate last -> 0\n next = 0;\n lastToFirst(nodes);\n leftVal = 0;\n to = innerWidth;\n }\n\n const result = { next, leftVal, to };\n return result;\n }\n\n handleHorizontal(name, node, nodes, leftVal, to, next, newState, infinite) {\n showAll(nodes);\n node.scrollLeft = leftVal;\n\n //show, reset window\n //scroll\n //hide\n\n this.setState({ scrollPending: true }, () => {\n this.handleScroll(node, 'scrollLeft', to, newState, name, () => {\n if (infinite) {\n firstToLast(nodes);\n node.scrollLeft = innerWidth * next;\n }\n hideAllButActive(next, nodes);\n });\n });\n }\n\n handleScroll(node, winProp, to, newState, compName, cb = noOp) {\n const ss = this.ss || ssStub();\n ss.flush();\n const cancellable = this.onSlideChangeStart(compName, this.props, this.state, newState[compName] || newState);\n\n if (cancellable === true) {\n return;\n }\n\n scrollTo(node, winProp, to, this.scrollSpeed, () => {\n newState.scrollPending = false;\n this.setState(newState, () => {\n cb();\n this.onSlideChangeEnd(compName, this.props, this.state, newState[compName] || newState);\n setTimeout(() => {\n ss.flush();\n ss.listen();\n }, TIMEOUT);\n });\n });\n }\n\n componentWillUnmount() {\n this.unlockScroll();\n\n if (this.props.hideScrollBars) {\n this.showScrollBars();\n }\n }\n\n componentDidUpdate(oldProps){\n if(this.props.frozen !== oldProps.frozen){\n if(this.props.frozen){\n this.unlockScroll();\n } else {\n this.lockScroll();\n }\n }\n }\n\n checkKey(e) {\n const direction = KEY_IDX[e.keyCode];\n if (!direction) {\n return;\n }\n\n const intent = (direction === 'UP' || direction === 'LEFT') ? -1 : 1;\n const context = (direction === 'UP' || direction === 'DOWN') ? 'VERTICAL' : 'HORIZONTAL';\n\n if (context === 'VERTICAL') {\n Fullpage.changeFullpageSlide(this.state.activeSlide + intent);\n return;\n }\n\n const horizontalName = this.state.horizontalMap[this.state.activeSlide];\n if (!horizontalName) {\n return;\n }\n\n const { activeSlide } = this.state[horizontalName];\n Fullpage.changeHorizontalSlide(horizontalName, activeSlide + intent);\n }\n\n static changeHorizontalSlide(name, next) {\n next = +next;\n\n const comp = _fp.hSlideCache[name];\n if (!comp) {\n throw Error('cannt find HorizontalSlider by name', name);\n }\n\n const { node, props } = comp;\n const { infinite } = props;\n const eligible = isEligible(next, props, _fp.state);\n\n if (!eligible) {\n return;\n }\n\n const { activeSlide } = _fp.state[name];\n const { innerWidth } = _fp.state.window;\n\n let nodes = getNodes(_fp.state.document, `data-horizontal-slider=\"${name}\"`);\n let leftVal = activeSlide * innerWidth;\n let to = next * innerWidth;\n\n const result = _fp.determineHSlide.call(_fp, comp, activeSlide, next, leftVal, to, nodes);\n\n leftVal = result.leftVal\n next = result.next;\n to = result.to;\n\n const newState = {\n [name]: {\n activeSlide: next,\n lastActive: activeSlide\n }\n };\n\n _fp.handleHorizontal.call(_fp, name, node, nodes, leftVal, to, next, newState, infinite);\n }\n\n static changeFullpageSlide(idx) {\n const { props, state, name, verticalRoot } = _fp;\n const { activeSlide, window } = state;\n\n const eligible = isEligible(idx, props, state);\n\n if (!eligible) {\n return;\n }\n\n const newState = {\n activeSlide: idx,\n lastActive: activeSlide\n };\n\n const to = idx * window.innerHeight;\n\n _fp.setState({ scrollPending: true }, () => {\n _fp.onSlideChangeStart(name, props, state, newState);\n _fp.handleScroll(verticalRoot, 'scrollTop', to, newState, name);\n });\n }\n\n render() {\n const s = this.state;\n const p = this.props;\n const { window, document, activeSlide } = s;\n\n const children = p.children || null;\n\n if (!window) {\n return children;\n }\n\n const elements = p.slides.reduce((result, sl) => {\n if (!sl) {\n return result;\n }\n\n if (typeof sl.type !== 'function') {\n result.other.push(sl);\n } else {\n result.slides.push(sl);\n }\n\n return result;\n }, { slides: [], other: [] });\n\n const { other, slides } = elements;\n\n // TODO: sub other for children\n return (\n <WindowSize\n render={({ width, height }) => {\n\n const to = activeSlide * height;\n setTimeout(() => {\n this.verticalRoot.scrollTop = to;\n }, 0);\n\n return (\n <div ref={node => (this.node = node)} className=\"Fullpage\">\n {children}\n {other.map((o, i) => {\n const op = o.props || {};\n return <div key={i} {...op} />;\n })}\n\n {slides.map((sl, i) => {\n const sp = sl.props || {};\n const children = sp.children;\n\n if (sp.slides) {\n const { name } = sp;\n return <HorizontalSlider cache={this.cacheHslide.bind(this)} width={width} height={height} window={window} document={document} activeSlide={s[name].activeSlide} hideScrollBars={p.hideScrollBars} {...sp} key={i}>\n {children}\n </HorizontalSlider>;\n }\n\n return <Slide render={true} className={sp.className || ''} id={sp.id} width={width} height={height} key={i} {...sp}>\n {children}\n </Slide>;\n })}\n </div>\n );\n }}\n />\n );\n }\n}\n\nfunction swap(nodes, o, i) {\n nodes[o || i].parentNode.insertBefore(nodes[i], nodes[o]);\n return nodes;\n}\n\nfunction lastToFirst(nodes) {\n swap(nodes, 0, nodes.length - 1);\n}\n\nfunction firstToLast(nodes) {\n swap(nodes, null, nodes.length - 1);\n}\n\nfunction isEligible(idx, props, state) {\n const { slides } = props;\n const { activeSlide } = state;\n\n if (state.scrollPending) {\n return false;\n }\n\n if (props.infinite) {\n return true;\n }\n\n if (idx > slides.length - 1 || idx < 0) {\n return false;\n }\n\n if (idx == activeSlide) {\n return false;\n }\n\n return true;\n}\n\nfunction ssStub() {\n return {\n flush: noOp,\n killAll: noOp,\n listen: noOp\n };\n}\n\nfunction determineVerticalRoot() {\n let userAgent, platform;\n\n const { document } = global;\n\n if (typeof navigator !== 'undefined' && navigator) {\n ({ userAgent, platform } = navigator);\n }\n\n if (!userAgent) {\n return document.body;\n }\n\n // http://developer.samsung.com/technical-doc/view.do?v=T000000203\n if (/SAMSUNG.*Build\\//.test(userAgent)) {\n return document.body;\n }\n\n const browser = detectBrowser(userAgent);\n\n if (!browser) {\n return document.body;\n }\n\n // NOTE: various browsers and devTools handle this differently as the userAgent source of truth\n // To get the root scrollable element we have to play around with OS and browser to find the right\n // root to return. If need be we can be specific about version\n\n const { name, version, os } = browser; // eslint-disable-line no-unused-vars\n const [ major, minor, patch ] = version.split('.'); // eslint-disable-line no-unused-vars\n\n const docElementSet = new Set([\n 'firefox',\n 'chrome',\n 'ios', // iPad (chrome devtools)\n 'crios', // chrome ios (chrome devtools)\n 'ie'\n ]);\n\n // Some platforms conflict with the devtools when it comes to supporting document.body\n // In order to support both user-agents in chrome devtools and the native device we need to\n // check for both browser name and device platform\n const conflictingPlatforms = new Set([\n 'iPhone',\n 'iPad'\n ]);\n\n if (docElementSet.has(name) && !conflictingPlatforms.has(platform)) {\n return document.documentElement;\n }\n\n // safari, chrome ios etc\n return document.body;\n}\nexport default Fullpage;\n\n\n\n// WEBPACK FOOTER //\n// ./lib/components/Fullpage.js","import Fullpage from './components/Fullpage';\nimport Slide from './components/Slide';\nimport HorizontalSlider from './components/HorizontalSlider';\n\nexport {\n Fullpage,\n Slide,\n HorizontalSlider\n};\n\n\n\n// WEBPACK FOOTER //\n// ./lib/index.js","const INCREMENT = 'INCREMENT';\nconst DECREMENT = 'DECREMENT';\nconst VERTICAL = 'VERTICAL';\nconst HORIZONTAL = 'HORIZONTAL';\nconst HEAD = 'HEAD';\nconst TAIL = 'TAIL';\nconst I_BLOCK = 'inline-block';\nconst BLOCK = 'block';\nconst NONE = 'none';\nconst noOp = () => {};\n\nexport {\n INCREMENT,\n DECREMENT,\n VERTICAL,\n HORIZONTAL,\n I_BLOCK,\n HEAD,\n TAIL,\n BLOCK,\n NONE,\n noOp\n};\n\n\n\n// WEBPACK FOOTER //\n// ./lib/utils/constants.js","module.exports = function detectOS(userAgentString) {\n const operatingSystems = [\n {\n name: 'iOS',\n rule: /iP(hone|od|ad)/\n },\n {\n name: 'Android OS',\n rule: /Android/\n },\n {\n name: 'BlackBerry OS',\n rule: /BlackBerry|BB10/\n },\n {\n name: 'Windows Mobile',\n rule: /IEMobile/\n },\n {\n name: 'Amazon OS',\n rule: /Kindle/\n },\n {\n name: 'Windows 3.11',\n rule: /Win16/\n },\n {\n name: 'Windows 95',\n rule: /(Windows 95)|(Win95)|(Windows_95)/\n },\n {\n name: 'Windows 98',\n rule: /(Windows 98)|(Win98)/\n },\n {\n name: 'Windows 2000',\n rule: /(Windows NT 5.0)|(Windows 2000)/\n },\n {\n name: 'Windows XP',\n rule: /(Windows NT 5.1)|(Windows XP)/\n },\n {\n name: 'Windows Server 2003',\n rule: /(Windows NT 5.2)/\n },\n {\n name: 'Windows Vista',\n rule: /(Windows NT 6.0)/\n },\n {\n name: 'Windows 7',\n rule: /(Windows NT 6.1)/\n },\n {\n name: 'Windows 8',\n rule: /(Windows NT 6.2)/\n },\n {\n name: 'Windows 8.1',\n rule: /(Windows NT 6.3)/\n },\n {\n name: 'Windows 10',\n rule: /(Windows NT 10.0)/\n },\n {\n name: 'Windows ME',\n rule: /Windows ME/\n },\n {\n name: 'Open BSD',\n rule: /OpenBSD/\n },\n {\n name: 'Sun OS',\n rule: /SunOS/\n },\n {\n name: 'Linux',\n rule: /(Linux)|(X11)/\n },\n {\n name: 'Mac OS',\n rule: /(Mac_PowerPC)|(Macintosh)/\n },\n {\n name: 'QNX',\n rule: /QNX/\n },\n {\n name: 'BeOS',\n rule: /BeOS/\n },\n {\n name: 'OS/2',\n rule: /OS\\/2/\n },\n {\n name: 'Search Bot',\n rule: /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\\/Teoma)|(ia_archiver)/\n }\n ];\n\n const detected = operatingSystems.filter(function (os) {\n if (userAgentString.match(os.rule)) {\n return true;\n }\n });\n\n return detected && detected[0] ? detected[0].name : null;\n};\n\n\n// WEBPACK FOOTER //\n// ./lib/utils/detectOS.js","const KEY_IDX = {\n 37: 'LEFT',\n 38: 'UP',\n 39: 'RIGHT',\n 40: 'DOWN'\n};\n\nexport {\n KEY_IDX\n};\n\n\n\n// WEBPACK FOOTER //\n// ./lib/utils/renderUtils.js","function scrollTo(element, elementBoundary, to, duration, callback) {\n const start = element[elementBoundary],\n change = to - start,\n increment = 10;\n\n let currentTime = 0;\n let globalId = requestAnimationFrame(repeatOften);\n function repeatOften() {\n currentTime += increment;\n let val = easeInOutQuad(currentTime, start, change, duration);\n element[elementBoundary] = val;\n\n if (currentTime >= duration) {\n cancelAnimationFrame(globalId);\n return callback();\n }\n globalId = requestAnimationFrame(repeatOften);\n }\n}\n\n//t = current time\n//b = start value\n//c = change in value\n//d = duration\nconst easeInOutQuad = (t, b, c, d) => {\n t /= d;\n\treturn -c * t*(t-2) + b;\n}\n\nexport default scrollTo;\n\n\n\n// WEBPACK FOOTER //\n// ./lib/utils/scrollTo.js","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/process/browser.js\n// module id = 10\n// module chunks = 0","import { Children, Component, createElement } from 'react';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n};\n\nvar isEmptyChildren = function (children) {\n return Children.count(children) === 0;\n};\n\nfunction throttle(func, wait) {\n var timeout = null;\n var callbackArgs = null;\n var context = this;\n var later = function () {\n func.apply(context, callbackArgs);\n timeout = null;\n };\n return function () {\n if (!timeout) {\n callbackArgs = arguments;\n timeout = setTimeout(later, wait);\n }\n };\n}\n\nvar supportsPassiveListener = false;\nvar noop = function () { };\ntry {\n var opts = Object.defineProperty({}, 'passive', {\n get: function () {\n supportsPassiveListener = true;\n },\n });\n window.addEventListener('testPassive', noop, opts);\n window.removeEventListener('testPassive', noop, opts);\n}\ncatch (e) { }\n\nvar Scroll = (function (_super) {\n __extends(Scroll, _super);\n function Scroll() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = { x: 0, y: 0 };\n _this.handleWindowScroll = throttle(function () {\n _this.setState({ x: window.scrollX, y: window.scrollY });\n }, _this.props.throttle);\n return _this;\n }\n Scroll.prototype.componentDidMount = function () {\n this.handleWindowScroll();\n window.addEventListener('scroll', this.handleWindowScroll, supportsPassiveListener ? { passive: true } : false);\n };\n Scroll.prototype.componentWillUnmount = function () {\n window.removeEventListener('scroll', this.handleWindowScroll);\n };\n Scroll.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n Scroll.defaultProps = {\n throttle: 100,\n };\n return Scroll;\n}(Component));\n\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n mixins: true,\n propTypes: true,\n type: true,\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true,\n};\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n var keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] &&\n !KNOWN_STATICS[key] &&\n (!blacklist || !blacklist[key])) {\n if (propIsEnumerable.call(sourceComponent, key) ||\n typeof sourceComponent[key] === 'function') {\n try {\n targetComponent[key] = sourceComponent[key];\n }\n catch (e) { }\n }\n }\n }\n return targetComponent;\n }\n return targetComponent;\n}\n\nfunction withScroll(Component$$1) {\n var S = function (props) {\n return (createElement(Scroll, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar DeviceMotion = (function (_super) {\n __extends(DeviceMotion, _super);\n function DeviceMotion() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = {\n acceleration: {\n x: null,\n y: null,\n z: null,\n },\n accelerationIncludingGravity: {\n x: null,\n y: null,\n z: null,\n },\n rotationRate: {\n alpha: null,\n beta: null,\n gamma: null,\n },\n interval: 0,\n };\n _this.handleDeviceMotion = function (e) {\n _this.setState({\n acceleration: e.acceleration,\n accelerationIncludingGravity: e.accelerationIncludingGravity,\n rotationRate: e.rotationRate,\n interval: e.interval,\n });\n };\n return _this;\n }\n DeviceMotion.prototype.componentDidMount = function () {\n window.addEventListener('devicemotion', this.handleDeviceMotion, true);\n };\n DeviceMotion.prototype.componentWillUnmount = function () {\n window.removeEventListener('devicemotion', this.handleDeviceMotion);\n };\n DeviceMotion.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n return DeviceMotion;\n}(Component));\n\nfunction withDeviceMotion(Component$$1) {\n var S = function (props) {\n return (createElement(DeviceMotion, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar DeviceOrientation = (function (_super) {\n __extends(DeviceOrientation, _super);\n function DeviceOrientation() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = {\n alpha: null,\n beta: null,\n gamma: null,\n absolute: false,\n };\n _this.handleDeviceOrientation = function (e) {\n _this.setState({\n beta: e.beta,\n alpha: e.alpha,\n gamma: e.gamma,\n absolute: e.absolute,\n });\n };\n return _this;\n }\n DeviceOrientation.prototype.componentDidMount = function () {\n window.addEventListener('deviceorientation', this.handleDeviceOrientation, true);\n };\n DeviceOrientation.prototype.componentWillUnmount = function () {\n window.removeEventListener('deviceorientation', this.handleDeviceOrientation);\n };\n DeviceOrientation.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n return DeviceOrientation;\n}(Component));\n\nfunction withDeviceOrientation(Component$$1) {\n var S = function (props) {\n return (createElement(DeviceOrientation, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar Network = (function (_super) {\n __extends(Network, _super);\n function Network() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = { online: navigator.onLine };\n _this.handleOnline = function () {\n _this.setState({ online: true, offlineAt: undefined });\n };\n _this.handleOffline = function () {\n _this.setState({ online: false, offlineAt: new Date() });\n };\n return _this;\n }\n Network.prototype.componentDidMount = function () {\n if (typeof window !== 'undefined' && navigator) {\n this.setState({ online: navigator.onLine });\n }\n window.addEventListener('online', this.handleOnline);\n window.addEventListener('offline', this.handleOffline);\n };\n Network.prototype.componentWillUnmount = function () {\n window.removeEventListener('online', this.handleOnline);\n window.removeEventListener('offline', this.handleOffline);\n };\n Network.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n return Network;\n}(Component));\n\nfunction withNetwork(Component$$1) {\n var S = function (props) {\n return (createElement(Network, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar GeoPosition = (function (_super) {\n __extends(GeoPosition, _super);\n function GeoPosition() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = {\n isLoading: true,\n };\n _this.requestGeo = function () {\n _this.setState({ isLoading: true });\n _this.geoId = navigator.geolocation.watchPosition(function (position) {\n return _this.setState({\n isLoading: false,\n coords: {\n latitude: position.coords.latitude,\n longitude: position.coords.longitude,\n },\n error: undefined,\n });\n }, function (error) { return _this.setState({ error: error, isLoading: false }); });\n };\n return _this;\n }\n GeoPosition.prototype.componentDidMount = function () {\n this.requestGeo();\n };\n GeoPosition.prototype.componentWillUnmount = function () {\n navigator.geolocation.clearWatch(this.geoId);\n };\n GeoPosition.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n return GeoPosition;\n}(Component));\n\nfunction withGeoPosition(Component$$1) {\n var S = function (props) {\n return (createElement(GeoPosition, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar M = require('react-media');\nvar Media = M;\n\nvar WindowSize = (function (_super) {\n __extends(WindowSize, _super);\n function WindowSize() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = { width: 0, height: 0 };\n _this.handleWindowSize = throttle(function () {\n _this.setState({ width: window.innerWidth, height: window.innerHeight });\n }, _this.props.throttle);\n return _this;\n }\n WindowSize.prototype.componentDidMount = function () {\n this.handleWindowSize();\n window.addEventListener('resize', this.handleWindowSize);\n };\n WindowSize.prototype.componentWillUnmount = function () {\n window.removeEventListener('resize', this.handleWindowSize);\n };\n WindowSize.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n WindowSize.defaultProps = {\n throttle: 100,\n };\n return WindowSize;\n}(Component));\n\nfunction withWindowSize(Component$$1) {\n var S = function (props) {\n return (createElement(WindowSize, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nvar Locales = (function (_super) {\n __extends(Locales, _super);\n function Locales() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = { locale: _this.preferredLocales() };\n _this.handleLanguageChange = function () {\n _this.setState({\n locale: _this.preferredLocales(),\n });\n };\n return _this;\n }\n Locales.prototype.preferredLocales = function () {\n if (navigator.languages && navigator.languages.length > 0) {\n return Intl.getCanonicalLocales(navigator.languages)[0];\n }\n return Intl.getCanonicalLocales([navigator.language])[0];\n };\n Locales.prototype.componentDidMount = function () {\n window.addEventListener('languagechange', this.handleLanguageChange);\n };\n Locales.prototype.componentWillUnmount = function () {\n window.removeEventListener('languagechange', this.handleLanguageChange);\n };\n Locales.prototype.render = function () {\n var _a = this.props, render = _a.render, component = _a.component, children = _a.children;\n return component\n ? createElement(component, this.state)\n : render\n ? render(this.state)\n : children\n ? typeof children === 'function'\n ? children(this.state)\n : !isEmptyChildren(children) ? Children.only(children) : null\n : null;\n };\n return Locales;\n}(Component));\n\nfunction withLocales(Component$$1) {\n var S = function (props) {\n return (createElement(Locales, { render: function (p) { return createElement(Component$$1, __assign({}, props, p)); } }));\n };\n return hoistNonReactStatics(S, Component$$1);\n}\n\nexport { Scroll, withScroll, DeviceMotion, withDeviceMotion, DeviceOrientation, withDeviceOrientation, Network, withNetwork, GeoPosition, withGeoPosition, Media, WindowSize, withWindowSize, Locales, withLocales };\n//# sourceMappingURL=index.es6.js.map\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-fns/dist/index.es6.js\n// module id = 11\n// module chunks = 0","import React from 'react';\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nvar emptyFunction_1 = emptyFunction;\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nvar invariant_1 = invariant;\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction_1;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar warning_1 = warning;\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nvar objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nvar ReactPropTypesSecret_1 = ReactPropTypesSecret;\n\nif (process.env.NODE_ENV !== 'production') {\n var invariant$1 = invariant_1;\n var warning$1 = warning_1;\n var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;\n var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);\n } catch (ex) {\n error = ex;\n }\n warning$1(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n warning$1(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n }\n }\n }\n }\n}\n\nvar checkPropTypes_1 = checkPropTypes;\n\nvar factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret_1) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n invariant_1(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n warning_1(\n false,\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `%s` prop on `%s`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n propFullName,\n componentName\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction_1.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? warning_1(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction_1.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? warning_1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction_1.thatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n warning_1(\n false,\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received %s at index %s.',\n getPostfixForTypeWarning(checker),\n i\n );\n return emptyFunction_1.thatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = objectAssign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes_1;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\nvar factoryWithThrowingShims = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret_1) {\n // It is still safe when called from React.\n return;\n }\n invariant_1(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n }\n shim.isRequired = shim;\n function getShim() {\n return shim;\n }\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction_1;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\nvar propTypes = createCommonjsModule(function (module) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = factoryWithTypeCheckers(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = factoryWithThrowingShims();\n}\n});\n\n/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar NODE_ENV = process.env.NODE_ENV;\n\nvar invariant$3 = function(condition, format, a, b, c, d, e, f) {\n if (NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nvar invariant_1$2 = invariant$3;\n\nvar camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nvar camel2hyphen_1 = camel2hyphen;\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen_1(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and ';\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', ';\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nvar json2mq_1 = json2mq;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\n\n\n\n\n\n\n\n\n\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n\n\n\n\n\n\n\n\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n\n\n\n\n\n\n\n\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n/**\n * Conditionally renders based on whether or not a media query matches.\n */\n\nvar Media = function (_React$Component) {\n inherits(Media, _React$Component);\n\n function Media() {\n var _temp, _this, _ret;\n\n classCallCheck(this, Media);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n matches: _this.props.defaultMatches\n }, _this.updateMatches = function () {\n return _this.setState({ matches: _this.mediaQueryList.matches });\n }, _temp), possibleConstructorReturn(_this, _ret);\n }\n\n Media.prototype.componentWillMount = function componentWillMount() {\n if ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) !== \"object\") return;\n\n var targetWindow = this.props.targetWindow || window;\n\n invariant_1$2(typeof targetWindow.matchMedia === \"function\", \"<Media targetWindow> does not support `matchMedia`.\");\n\n var query = this.props.query;\n\n if (typeof query !== \"string\") query = json2mq_1(query);\n\n this.mediaQueryList = targetWindow.matchMedia(query);\n this.mediaQueryList.addListener(this.updateMatches);\n this.updateMatches();\n };\n\n Media.prototype.componentWillUnmount = function componentWillUnmount() {\n this.mediaQueryList.removeListener(this.updateMatches);\n };\n\n Media.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n render = _props.render;\n var matches = this.state.matches;\n\n\n return render ? matches ? render() : null : children ? typeof children === \"function\" ? children(matches) : !Array.isArray(children) || children.length // Preact defaults to empty children array\n ? matches ? React.Children.only(children) : null : null : null;\n };\n\n return Media;\n}(React.Component);\n\nMedia.propTypes = {\n defaultMatches: propTypes.bool,\n query: propTypes.oneOfType([propTypes.string, propTypes.object, propTypes.arrayOf(propTypes.object.isRequired)]).isRequired,\n render: propTypes.func,\n children: propTypes.oneOfType([propTypes.node, propTypes.func]),\n targetWindow: propTypes.object\n};\nMedia.defaultProps = {\n defaultMatches: true\n};\n\nexport default Media;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-media/esm/react-media.js\n// module id = 12\n// module chunks = 0",";(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.ScrollSwipe = factory();\n }\n}(this, function() {\n'use strict';\n\nvar VERTICAL = 'VERTICAL';\nvar HORIZONTAL = 'HORIZONTAL';\n\nvar acceptedParams = {\n target: true,\n scrollSensitivity: true,\n touchSensitivity: true,\n scrollCb: true,\n touchCb: true,\n scrollPreventDefault: true,\n touchPreventDefault: true\n};\n\nif (typeof module !== 'undefined') {\n module.exports = ScrollSwipe;\n}\n\nfunction ScrollSwipe(opts) {\n var _this = this;\n\n Object.keys(opts).forEach(function (key) {\n if (acceptedParams[key]) {\n _this[key] = opts[key];\n return;\n }\n\n throw new Error('unknown options for ScrollSwipe: ' + key);\n });\n\n if (!opts.target) {\n throw new Error('must provide DOM target element to ScrollSwipe');\n }\n\n if (!this.scrollSensitivity || this.scrollSensitivity < 0) {\n this.scrollSensitivity = 0;\n }\n\n if (!this.touchSensitivity || this.touchSensitivity < 0) {\n this.touchSensitivity = 0;\n }\n\n this.startTouchEvent = null;\n this.latestTouchEvent = null;\n this.latestTouch = null;\n\n this.startScrollEvent = null;\n this.latestScrollEvent = null;\n this.latestScroll = null;\n\n this.intent = 0;\n this.currentDirection = VERTICAL;\n this.touchArr = [];\n this.xArr = [];\n this.yArr = [];\n this.touchArrX = [];\n this.touchArrY = [];\n\n this.scrollPending = false;\n\n //these should only init if true\n if (this.scrollCb) {\n this.initScroll();\n }\n\n if (this.touchCb) {\n this.initTouch();\n }\n\n return this;\n}\n\nScrollSwipe.prototype.listen = function listen() {\n this.flush();\n this.scrollPending = false;\n return this;\n};\n\nScrollSwipe.prototype.onWheel = function onWheel(e) {\n var _this2 = this;\n\n if (this.scrollPreventDefault) {\n e.preventDefault();\n }\n\n if (this.scrollPending) {\n return;\n }\n\n this.startScrollEvent = e;\n\n var x = e.deltaX;\n var y = e.deltaY;\n\n this.addXScroll(x);\n this.addYScroll(y);\n\n this.scrollFulfilled(function (fulfilled, direction, intent) {\n if (!fulfilled) {\n return;\n }\n\n _this2.lockout();\n _this2.latestScrollEvent = e;\n\n var result = {\n startEvent: e,\n lastEvent: _this2.latestScrollEvent,\n scrollPending: _this2.scrollPending,\n direction: direction,\n intent: intent\n };\n\n _this2.scrollCb(result);\n _this2.undoLockout();\n });\n};\n\nScrollSwipe.prototype.initScroll = function initScroll() {\n this.newOnWheel = this.onWheel.bind(this);\n\n if (this.target && this.target.addEventListener) {\n this.target.addEventListener('wheel', this.newOnWheel, false);\n }\n\n return this;\n};\n\nScrollSwipe.prototype.touchMove = function touchMove(e) {\n if (this.touchPreventDefault) {\n e.preventDefault();\n }\n\n var changedTouches = e.changedTouches[0];\n var x = changedTouches.clientX;\n var y = changedTouches.clientY;\n\n this.startTouchEvent = e;\n this.addXTouch(x);\n this.addYTouch(y);\n};\n\nScrollSwipe.prototype.touchEnd = function touchEnd(e) {\n var _this3 = this;\n\n this.touchFulfilled(e, function (fulfilled, direction, intent) {\n if (!fulfilled) {\n return;\n }\n\n var result = {\n startEvent: _this3.startTouchEvent,\n lastEvent: _this3.latestTouchEvent,\n scrollPending: _this3.scrollPending,\n direction: direction,\n intent: intent\n };\n\n _this3.touchCb(result);\n });\n};\n\nScrollSwipe.prototype.initTouch = function initTouch() {\n this.newTouchMove = this.touchMove.bind(this);\n this.newTouchEnd = this.touchEnd.bind(this);\n\n if (this.target && this.target.addEventListener) {\n this.target.addEventListener('touchmove', this.newTouchMove, false);\n this.target.addEventListener('touchend', this.newTouchEnd, false);\n }\n\n return this;\n};\n\n//touch events\nScrollSwipe.prototype.touchFulfilled = function touchFulfilled(e, cb) {\n if (!e) {\n throw new Error('must provide event to touchFulfilled');\n }\n\n if (!cb) {\n throw new Error('must provide callback to touchFulfilled');\n }\n\n var touchSensitivity = this.touchSensitivity,\n touchArrX = this.touchArrX,\n touchArrY = this.touchArrY;\n\n\n var bool = touchArrX.length > touchSensitivity && touchArrY.length > touchSensitivity;\n\n if (!bool) {\n return cb(false, null);\n }\n\n var changedTouches = e.changedTouches[0];\n\n var xStart = touchArrX[0];\n var yStart = touchArrY[0];\n\n var xEnd = changedTouches.clientX;\n var yEnd = changedTouches.clientY;\n\n var xIntent = xStart < xEnd ? 0 : 1;\n var yIntent = yStart < yEnd ? 0 : 1;\n\n var direction = VERTICAL;\n\n //determine vertical or horizontal based on the greatest difference\n if (Math.abs(xStart - xEnd) > Math.abs(yStart - yEnd)) {\n direction = HORIZONTAL;\n }\n\n var intent = direction === VERTICAL ? yIntent : xIntent;\n\n swap.call(this, intent, direction);\n this.resetTouches();\n this.scrollPending = true;\n this.latestTouchEvent = e;\n\n cb(this.scrollPending, this.currentDirection, this.currentIntent);\n return this;\n};\n\nScrollSwipe.prototype.getTouch = function getTouch(idx) {\n return this.touchArr[idx];\n};\n\nScrollSwipe.prototype.addXTouch = function addTouch(touch) {\n if (this.pending()) {\n return this;\n }\n\n this.latestTouch = touch;\n this.touchArrX.push(touch);\n\n return this;\n};\n\nScrollSwipe.prototype.addYTouch = function addTouch(touch) {\n if (this.pending()) {\n return this;\n }\n\n this.latestTouch = touch;\n this.touchArrY.push(touch);\n\n return this;\n};\n\nScrollSwipe.prototype.resetTouches = function resetTouches() {\n this.touchArrX = [];\n this.touchArrY = [];\n return this;\n};\n\n//wheel events\nScrollSwipe.prototype.addXScroll = function addXScroll(s) {\n if (this.pending()) {\n return this;\n }\n\n this.latestScroll = s;\n this.xArr.push(s);\n return this;\n};\n\nScrollSwipe.prototype.addYScroll = function addYScroll(s) {\n if (this.pending()) {\n return this;\n }\n\n this.latestScroll = s;\n this.yArr.push(s);\n return this;\n};\n\nScrollSwipe.prototype.getDirection = function getDirection() {\n return this.currentDirection;\n};\n\nScrollSwipe.prototype.resetScroll = function resetScroll() {\n this.xArr = [];\n this.yArr = [];\n\n return this;\n};\n\nScrollSwipe.prototype.flush = function flush() {\n this.resetScroll();\n this.resetTouches();\n\n return this;\n};\n\nScrollSwipe.prototype.lockout = function lockout() {\n this.originalAddXTouch = this.addXTouch;\n this.originalAddYTouch = this.addYTouch;\n\n this.originalAddXScroll = this.addXScroll;\n this.originalAddYScroll = this.addYScroll;\n\n this.addXScroll = function () {};\n this.addYScroll = function () {};\n this.addXTouch = function () {};\n this.addYTouch = function () {};\n\n return this;\n};\n\nScrollSwipe.prototype.undoLockout = function undoLockout() {\n this.addXScroll = this.originalAddXScroll;\n this.addYScroll = this.originalAddYScroll;\n this.addXTouch = this.originalAddXTouch;\n this.addYTouch = this.originalAddYTouch;\n\n return this;\n};\n\nScrollSwipe.prototype.scrollFulfilled = function scrollFulfilled(cb) {\n if (!cb) {\n throw new Error('must provide callback to scrollFulfilled');\n }\n\n var xArr = this.xArr,\n yArr = this.yArr,\n scrollSensitivity = this.scrollSensitivity;\n\n\n var bool = xArr.length > scrollSensitivity && yArr.length > scrollSensitivity;\n\n var _evalScrollDirection = this.evalScrollDirection(),\n direction = _evalScrollDirection.direction,\n intent = _evalScrollDirection.intent;\n\n if (bool) {\n swap.call(this, intent, direction);\n this.resetScroll();\n this.scrollPending = true;\n }\n\n cb(this.scrollPending, this.currentDirection, this.currentIntent);\n return this;\n};\n\nScrollSwipe.prototype.evalScrollDirection = function evalScrollDirection() {\n var _getSums = this.getSums(),\n x = _getSums.x,\n y = _getSums.y,\n xIntent = _getSums.xIntent,\n yIntent = _getSums.yIntent;\n\n var direction = x > y ? HORIZONTAL : VERTICAL;\n var base = direction === VERTICAL ? yIntent : xIntent;\n\n var intent = 0;\n\n if (base > 0) {\n intent = 1;\n }\n\n return { direction: direction, intent: intent };\n};\n\nScrollSwipe.prototype.getSums = function getSums() {\n var xArr = this.xArr,\n yArr = this.yArr;\n\n\n var xIntent = 0;\n var yIntent = 0;\n\n var x = xArr.reduce(function (result, curr) {\n xIntent = xIntent + curr;\n return result += Math.abs(curr);\n }, 0);\n\n var y = yArr.reduce(function (result, curr) {\n yIntent = yIntent + curr;\n return result += Math.abs(curr);\n }, 0);\n\n return { x: x, y: y, xIntent: xIntent, yIntent: yIntent };\n};\n\nScrollSwipe.prototype.getScrollDirection = function getScrollDirection() {\n return this.currentDirection;\n};\n\nScrollSwipe.prototype.pending = function pending() {\n return this.scrollPending;\n};\n\nScrollSwipe.prototype.killScroll = function killScroll() {\n if (this.target && this.target.removeEventListener) {\n this.target.removeEventListener('wheel', this.newOnWheel, false);\n }\n\n return this;\n};\n\nScrollSwipe.prototype.killTouch = function killTouch() {\n if (this.target && this.target.removeEventListener) {\n this.target.removeEventListener('touchmove', this.newTouchMove, false);\n this.target.removeEventListener('touchend', this.newTouchEnd, false);\n }\n\n return this;\n};\n\nScrollSwipe.prototype.killAll = function teardown() {\n this.killScroll().killTouch();\n this.flush();\n return this;\n};\n\nfunction swap(intent, direction) {\n this.previousIntent = this.currentIntent;\n this.currentIntent = intent;\n this.previousDirection = this.currentDirection;\n this.currentDirection = direction;\n}\nreturn ScrollSwipe;\n}));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/scroll-swipe/dist/ScrollSwipe.js\n// module id = 13\n// module chunks = 0","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 14\n// module chunks = 0","'use strict'\nmodule.exports = (typeof self === 'object' && self.self === self && self) ||\n (typeof global === 'object' && global.global === global && global) ||\n this\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/window-or-global/lib/index.js\n// module id = 15\n// module chunks = 0"],"sourceRoot":""}