@piranna/react-pull-to-refresh
Version:
A React component for pull to refresh on the web.
11 lines • 39.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports["react-pull-to-refresh.min"]=e(require("React")):t["react-pull-to-refresh.min"]=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i);e["default"]=o["default"],t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t,e,n){for(var r=!0;r;){var i=t,o=e,s=n;a=c=u=void 0,r=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,o);if(void 0!==a){if("value"in a)return a.value;var u=a.get;return void 0===u?void 0:u.call(s)}var c=Object.getPrototypeOf(i);if(null===c)return void 0;t=c,e=o,n=s,r=!0}},l=n(2),f=r(l),p=n(3),h=r(p),d=n(13),v=r(d),m=function(t){function e(t){o(this,e),c(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.state={initialized:!1},this.handleRefresh=this.handleRefresh.bind(this)}return s(e,t),u(e,[{key:"handleRefresh",value:function(){var t=this;return new Promise(function(e,n){t.props.onRefresh(e,n)})}},{key:"init",value:function(){this.state.initialized||(v["default"]().init({contentEl:this.refresh,ptrEl:this.ptr,bodyEl:this.body,distanceToRefresh:this.props.distanceToRefresh||void 0,loadingFunction:this.handleRefresh,resistance:this.props.resistance||void 0,hammerOptions:this.props.hammerOptions||void 0,scrollEl:this.refs.refresh.children[0]}),this.setState({initialized:!0}))}},{key:"componentDidMount",value:function(){this.props.disabled||this.init()}},{key:"componentDidUpdate",value:function(){this.props.disabled||this.init()}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=e.disabled,o=(e.distanceToRefresh,e.hammerOptions,e.icon),s=e.loading,u=(e.onRefresh,e.resistance,i(e,["children","disabled","distanceToRefresh","hammerOptions","icon","loading","onRefresh","resistance"]));return r?f["default"].createElement("div",u,n):f["default"].createElement("div",a({ref:function(e){t.body=e}},u),f["default"].createElement("div",{ref:function(e){t.ptr=e},className:"ptr-element"},o||f["default"].createElement("span",{className:"genericon genericon-next"}),s||f["default"].createElement("div",{className:"loading"},f["default"].createElement("span",{className:"loading-ptr-1"}),f["default"].createElement("span",{className:"loading-ptr-2"}),f["default"].createElement("span",{className:"loading-ptr-3"}))),f["default"].createElement("div",{ref:function(e){t.refresh=e},className:"refresh-view"},n))}}]),e}(l.Component);e["default"]=m,m.propTypes={onRefresh:h["default"].func.isRequired,icon:h["default"].element,loading:h["default"].element,disabled:h["default"].bool,className:h["default"].string,style:h["default"].object,distanceToRefresh:h["default"].number,resistance:h["default"].number,hammerOptions:h["default"].object},t.exports=e["default"]},function(e,n){e.exports=t},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,i=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},o=!0;t.exports=n(5)(i,o)}else t.exports=n(12)()}).call(e,n(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){v&&h&&(v=!1,h.length?d=h.concat(d):m=-1,d.length&&a())}function a(){if(!v){var t=i(s);v=!0;for(var e=d.length;e;){for(h=d,d=[];++m<e;)h&&h[m].run();m=-1,e=d.length}h=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],v=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||v||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var r=n(6),i=n(7),o=n(8),s=n(9),a=n(10),u=n(11);t.exports=function(t,n){function c(t){var e=t&&(j&&t[j]||t[S]);return"function"==typeof e?e:void 0}function l(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function p(t){function r(r,c,l,p,h,d,v){if(p=p||A,d=d||l,v!==a)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=p+":"+l;!s[m]&&3>u&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),s[m]=!0,u++)}return null==c[l]?r?new f(null===c[l]?"The "+h+" `"+d+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+h+" `"+d+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:t(c,l,p,h,d)}if("production"!==e.env.NODE_ENV)var s={},u=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function h(t){function e(e,n,r,i,o,s){var a=e[n],u=R(a);if(u!==t){var c=_(a);return new f("Invalid "+i+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return p(e)}function d(){return p(r.thatReturnsNull)}function v(t){function e(e,n,r,i,o){if("function"!=typeof t)return new f("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){var u=R(s);return new f("Invalid "+i+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var l=t(s,c,r,i,o+"["+c+"]",a);if(l instanceof Error)return l}return null}return p(e)}function m(){function e(e,n,r,i,o){var s=e[n];if(!t(s)){var a=R(s);return new f("Invalid "+i+" `"+o+"` of type "+("`"+a+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return p(e)}function y(t){function e(e,n,r,i,o){if(!(e[n]instanceof t)){var s=t.name||A,a=N(e[n]);return new f("Invalid "+i+" `"+o+"` of type "+("`"+a+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return p(e)}function g(t){function n(e,n,r,i,o){for(var s=e[n],a=0;a<t.length;a++)if(l(s,t[a]))return null;var u=JSON.stringify(t);return new f("Invalid "+i+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return Array.isArray(t)?p(n):("production"!==e.env.NODE_ENV?o(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function T(t){function e(e,n,r,i,o){if("function"!=typeof t)return new f("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=e[n],u=R(s);if("object"!==u)return new f("Invalid "+i+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var c in s)if(s.hasOwnProperty(c)){var l=t(s,c,r,i,o+"."+c,a);if(l instanceof Error)return l}return null}return p(e)}function E(t){function n(e,n,r,i,o){for(var s=0;s<t.length;s++){var u=t[s];if(null==u(e,n,r,i,o,a))return null}return new f("Invalid "+i+" `"+o+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return"production"!==e.env.NODE_ENV?o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var i=0;i<t.length;i++){var s=t[i];if("function"!=typeof s)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",I(s),i),r.thatReturnsNull}return p(n)}function b(){function t(t,e,n,r,i){return x(t[e])?null:new f("Invalid "+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return p(t)}function O(t){function e(e,n,r,i,o){var s=e[n],u=R(s);if("object"!==u)return new f("Invalid "+i+" `"+o+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in t){var l=t[c];if(l){var p=l(s,c,r,i,o+"."+c,a);if(p)return p}}return null}return p(e)}function w(t){function e(e,n,r,i,o){var u=e[n],c=R(u);if("object"!==c)return new f("Invalid "+i+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));var l=s({},e[n],t);for(var p in l){var h=t[p];if(!h)return new f("Invalid "+i+" `"+o+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(u,p,r,i,o+"."+p,a);if(d)return d}return null}return p(e)}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||t(e))return!0;var n=c(e);if(!n)return!1;var r,i=n.call(e);if(n!==e.entries){for(;!(r=i.next()).done;)if(!x(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!x(o[1]))return!1}return!0;default:return!1}}function P(t,e){return"symbol"===t?!0:"Symbol"===e["@@toStringTag"]?!0:"function"==typeof Symbol&&e instanceof Symbol?!0:!1}function R(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":P(e,t)?"symbol":e}function _(t){if("undefined"==typeof t||null===t)return""+t;var e=R(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function I(t){var e=_(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function N(t){return t.constructor&&t.constructor.name?t.constructor.name:A}var j="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",A="<<anonymous>>",D={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:d(),arrayOf:v,element:m(),instanceOf:y,node:b(),objectOf:T,oneOf:g,oneOfType:E,shape:O,exact:w};return f.prototype=Error.prototype,D.checkPropTypes=u,D.PropTypes=D,D}}).call(e,n(4))},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){(function(e){"use strict";function n(t,e,n,i,o,s,a,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,s,a,u],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};"production"!==e.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(4))},function(t,e,n){(function(e){"use strict";var r=n(6),i=r;if("production"!==e.env.NODE_ENV){var o=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(s){}};i=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];o.apply(void 0,[e].concat(r))}}}t.exports=i}).call(e,n(4))},function(t,e){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join("")?!1:!0}catch(o){return!1}}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,u=n(t),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)o.call(r,l)&&(u[l]=r[l]);if(i){a=i(r);for(var f=0;f<a.length;f++)s.call(r,a[f])&&(u[a[f]]=r[a[f]])}}return u}},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){(function(e){"use strict";function r(t,n,r,u,c){if("production"!==e.env.NODE_ENV)for(var l in t)if(t.hasOwnProperty(l)){var f;try{i("function"==typeof t[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",r,l,typeof t[l]),f=t[l](n,l,u,r,null,s)}catch(p){f=p}if(o(!f||f 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).",u||"React class",r,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var h=c?c():"";o(!1,"Failed %s type: %s%s",r,f.message,null!=h?h:"")}}}if("production"!==e.env.NODE_ENV)var i=n(7),o=n(8),s=n(10),a={};t.exports=r}).call(e,n(4))},function(t,e,n){"use strict";var r=n(6),i=n(7),o=n(10);t.exports=function(){function t(t,e,n,r,s,a){a!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(){var t={contentEl:"content",ptrEl:"ptr",scrollEl:document.body,bodyEl:document.body,distanceToRefresh:70,loadingFunction:!1,resistance:2.5},e={},n={enabled:!1,distance:0,startingPositionY:0},r=t.bodyEl.classList,i=function(n){if(n=n||{},e={contentEl:n.contentEl||document.getElementById(t.contentEl),ptrEl:n.ptrEl||document.getElementById(t.ptrEl),bodyEl:n.bodyEl||t.bodyEl,distanceToRefresh:n.distanceToRefresh||t.distanceToRefresh,loadingFunction:n.loadingFunction||t.loadingFunction,resistance:n.resistance||t.resistance,hammerOptions:n.hammerOptions||{},scrollEl:n.scrollEl||t.scrollEl},!e.contentEl||!e.ptrEl)return!1;r=e.bodyEl.classList;var i=-1;e.contentEl.addEventListener("touchstart",function(t){i=t.touches[0].clientY,o(t)}),e.contentEl.addEventListener("touchend",l),e.contentEl.addEventListener("touchmove",function(t){t.touches[0].clientY>i&&(t.distance=t.touches[0].clientY-i,s(t)),t.touches[0].clientY<i&&(t.distance=i-t.touches[0].clientY,a(t))}),e.ptrEl.style.visibility="hidden"},o=function(t){n.startingPositionY=e.scrollEl.scrollTop,0===n.startingPositionY&&(n.enabled=!0,e.ptrEl.style.visibility="visible")},s=function(t){n.enabled&&(t.preventDefault(),n.distance=t.distance/e.resistance,u(),c())},a=function(t){n.enabled&&0!==n.distance&&(t.preventDefault(),n.distance<t.distance/e.resistance?n.distance=0:n.distance=t.distance/e.resistance,u(),c())},u=function(){e.contentEl.style.transform=e.contentEl.style.webkitTransform="translate3d( 0, "+n.distance+"px, 0 )",e.ptrEl.style.transform=e.ptrEl.style.webkitTransform="translate3d( 0, "+(n.distance-e.ptrEl.offsetHeight)+"px, 0 )"},c=function(){n.distance>e.distanceToRefresh?r.add("ptr-refresh"):r.remove("ptr-refresh")},l=function(t){n.enabled&&(0!==n.distance&&t.preventDefault(),e.contentEl.style.transform=e.contentEl.style.webkitTransform="",e.ptrEl.style.transform=e.ptrEl.style.webkitTransform="",e.bodyEl.classList.contains("ptr-refresh")?f():p(),n.distance=0,n.enabled=!1)},f=function(){if(r.add("ptr-loading"),!e.loadingFunction)return p();var t=e.loadingFunction();setTimeout(function(){t.then(p)},1e3)},p=function(){r.remove("ptr-loading"),r.remove("ptr-refresh"),r.add("ptr-reset");var t=function n(){r.remove("ptr-reset"),e.bodyEl.removeEventListener("transitionend",n,!1)};e.bodyEl.addEventListener("transitionend",t,!1),e.ptrEl.style.visibility="hidden"};return{init:i}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=i;var o=n(14);r(o);t.exports=e["default"]},function(t,e,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */
!function(i,o,s,a){"use strict";function u(t,e,n){return setTimeout(h(t,n),e)}function c(t,e,n){return Array.isArray(t)?(l(t,n[e],n),!0):!1}function l(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function p(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&vt(r,n)}function h(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==gt?t.apply(e?e[0]||a:a,e):t}function v(t,e){return t===a?e:t}function m(t,e,n){l(E(e),function(e){t.addEventListener(e,n,!1)})}function y(t,e,n){l(E(e),function(e){t.removeEventListener(e,n,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function T(t,e){return t.indexOf(e)>-1}function E(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function O(t){return Array.prototype.slice.call(t,0)}function w(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];b(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}function x(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<mt.length;){if(n=mt[o],r=n?n+i:e,r in t)return r;o++}return a}function P(){return xt++}function R(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}function _(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function I(t){var e,n=t.options.inputClass;return new(e=n?n:_t?X:It?H:Rt?B:q)(t,N)}function N(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&kt&&r-i===0,s=e&(Yt|Mt)&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,j(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function j(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=D(e)),i>1&&!n.firstMultiple?n.firstMultiple=D(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=k(r);e.timeStamp=bt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(a,u),e.distance=M(a,u),S(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var c=C(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=Et(c.x)>Et(c.y)?c.x:c.y,e.scale=s?L(s.pointers,r):1,e.rotation=s?z(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,A(n,e);var l=t.element;g(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function S(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(e.eventType===kt||o.eventType===Yt)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function A(t,e){var n,r,i,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=Mt&&(u>Dt||s.velocity===a)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,f=C(u,c,l);r=f.x,i=f.y,n=Et(f.x)>Et(f.y)?f.x:f.y,o=Y(c,l),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function D(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Tt(t.pointers[n].clientX),clientY:Tt(t.pointers[n].clientY)},n++;return{timeStamp:bt(),pointers:e,center:k(e),deltaX:t.deltaX,deltaY:t.deltaY}}function k(t){var e=t.length;if(1===e)return{x:Tt(t[0].clientX),y:Tt(t[0].clientY)};for(var n=0,r=0,i=0;e>i;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Tt(n/e),y:Tt(r/e)}}function C(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?Ft:Et(t)>=Et(e)?0>t?zt:Lt:0>e?qt:Xt}function M(t,e,n){n||(n=Ut);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function F(t,e,n){n||(n=Ut);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function z(t,e){return F(e[1],e[0],Bt)+F(t[1],t[0],Bt)}function L(t,e){return M(e[0],e[1],Bt)/M(t[0],t[1],Bt)}function q(){this.evEl=Jt,this.evWin=Zt,this.pressed=!1,_.apply(this,arguments)}function X(){this.evEl=Qt,this.evWin=te,_.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget=ne,this.evWin=re,this.started=!1,_.apply(this,arguments)}function W(t,e){var n=O(t.touches),r=O(t.changedTouches);return e&(Yt|Mt)&&(n=w(n.concat(r),"identifier",!0)),[n,r]}function H(){this.evTarget=oe,this.targetIds={},_.apply(this,arguments)}function U(t,e){var n=O(t.touches),r=this.targetIds;if(e&(kt|Ct)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=O(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return g(t.target,u)}),e===kt)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),e&(Yt|Mt)&&delete r[s[i].identifier],i++;return a.length?[w(o.concat(a),"identifier",!0),a]:void 0}function B(){_.apply(this,arguments);var t=h(this.handler,this);this.touch=new H(this.manager,t),this.mouse=new q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&kt?(this.primaryTouch=e.changedPointers[0].identifier,J.call(this,e)):t&(Yt|Mt)&&J.call(this,e)}function J(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches,i=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(i,se)}}function Z(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(ae>=o&&ae>=s)return!0}return!1}function $(t,e){this.manager=t,this.set(e)}function K(t){if(T(t,he))return he;var e=T(t,de),n=T(t,ve);return e&&n?he:e||n?e?de:ve:T(t,pe)?pe:fe}function Q(){if(!ce)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=e?i.CSS.supports("touch-action",n):!0}),t}function tt(t){this.options=vt({},this.defaults,t||{}),this.id=P(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=ye,this.simultaneous={},this.requireFail=[]}function et(t){return t&Oe?"cancel":t&Ee?"end":t&Te?"move":t&ge?"start":""}function nt(t){return t==Xt?"down":t==qt?"up":t==zt?"left":t==Lt?"right":""}function rt(t,e){var n=e.manager;return n?n.get(t):t}function it(){tt.apply(this,arguments)}function ot(){it.apply(this,arguments),this.pX=null,this.pY=null}function st(){it.apply(this,arguments)}function at(){tt.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function ct(){it.apply(this,arguments)}function lt(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=v(e.recognizers,ft.defaults.preset),new pt(t,e)}function pt(t,e){this.options=vt({},ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=I(this),this.touchAction=new $(this,this.options.touchAction),ht(this,!0),l(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ht(t,e){var n=t.element;if(n.style){var r;l(t.options.cssProps,function(i,o){r=x(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function dt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var vt,mt=["","webkit","Moz","MS","ms","o"],yt=o.createElement("div"),gt="function",Tt=Math.round,Et=Math.abs,bt=Date.now;vt="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var Ot=f(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===a)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),wt=f(function(t,e){return Ot(t,e,!0)},"merge","Use `assign`."),xt=1,Pt=/mobile|tablet|ip(ad|hone|od)|android/i,Rt="ontouchstart"in i,_t=x(i,"PointerEvent")!==a,It=Rt&&Pt.test(navigator.userAgent),Nt="touch",jt="pen",St="mouse",At="kinect",Dt=25,kt=1,Ct=2,Yt=4,Mt=8,Ft=1,zt=2,Lt=4,qt=8,Xt=16,Vt=zt|Lt,Wt=qt|Xt,Ht=Vt|Wt,Ut=["x","y"],Bt=["clientX","clientY"];_.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(R(this.element),this.evWin,this.domHandler)}};var Gt={mousedown:kt,mousemove:Ct,mouseup:Yt},Jt="mousedown",Zt="mousemove mouseup";p(q,_,{handler:function(t){var e=Gt[t.type];e&kt&&0===t.button&&(this.pressed=!0),e&Ct&&1!==t.which&&(e=Yt),this.pressed&&(e&Yt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:St,srcEvent:t}))}});var $t={pointerdown:kt,pointermove:Ct,pointerup:Yt,pointercancel:Mt,pointerout:Mt},Kt={2:Nt,3:jt,4:St,5:At},Qt="pointerdown",te="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Qt="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),p(X,_,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=$t[r],o=Kt[t.pointerType]||t.pointerType,s=o==Nt,a=b(e,t.pointerId,"pointerId");i&kt&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):i&(Yt|Mt)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var ee={touchstart:kt,touchmove:Ct,touchend:Yt,touchcancel:Mt},ne="touchstart",re="touchstart touchmove touchend touchcancel";p(V,_,{handler:function(t){var e=ee[t.type];if(e===kt&&(this.started=!0),this.started){var n=W.call(this,t,e);e&(Yt|Mt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Nt,srcEvent:t})}}});var ie={touchstart:kt,touchmove:Ct,touchend:Yt,touchcancel:Mt},oe="touchstart touchmove touchend touchcancel";p(H,_,{handler:function(t){var e=ie[t.type],n=U.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Nt,srcEvent:t})}});var se=2500,ae=25;p(B,_,{handler:function(t,e,n){var r=n.pointerType==Nt,i=n.pointerType==St;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)G.call(this,e,n);else if(i&&Z.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ue=x(yt.style,"touchAction"),ce=ue!==a,le="compute",fe="auto",pe="manipulation",he="none",de="pan-x",ve="pan-y",me=Q();$.prototype={set:function(t){t==le&&(t=this.compute()),ce&&this.manager.element.style&&me[t]&&(this.manager.element.style[ue]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),K(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var r=this.actions,i=T(r,he)&&!me[he],o=T(r,ve)&&!me[ve],s=T(r,de)&&!me[de];if(i){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}return s&&o?void 0:i||o&&n&Vt||s&&n&Wt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ye=1,ge=2,Te=4,Ee=8,be=Ee,Oe=16,we=32;tt.prototype={defaults:{},set:function(t){return vt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=rt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=rt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=rt(t,this),-1===b(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=rt(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;Ee>r&&e(n.options.event+et(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=Ee&&e(n.options.event+et(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=we)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(we|ye)))return!1;t++}return!0},recognize:function(t){var e=vt({},t);return d(this.options.enable,[this,e])?(this.state&(be|Oe|we)&&(this.state=ye),this.state=this.process(e),void(this.state&(ge|Te|Ee|Oe)&&this.tryEmit(e))):(this.reset(),void(this.state=we))},process:function(t){},getTouchAction:function(){},reset:function(){}},p(it,tt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(ge|Te),i=this.attrTest(t);return r&&(n&Mt||!i)?e|Oe:r||i?n&Yt?e|Ee:e&ge?e|Te:ge:we}}),p(ot,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ht},getTouchAction:function(){var t=this.options.direction,e=[];return t&Vt&&e.push(ve),t&Wt&&e.push(de),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(e.direction&Vt?(i=0===o?Ft:0>o?zt:Lt,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?Ft:0>s?qt:Xt,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&ge||!(this.state&ge)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(st,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[he]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ge)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(at,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Yt|Mt)&&!i)this.reset();else if(t.eventType&kt)this.reset(),this._timer=u(function(){this.state=be,this.tryEmit()},e.time,this);else if(t.eventType&Yt)return be;return we},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===be&&(t&&t.eventType&Yt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=bt(),this.manager.emit(this.options.event,this._input)))}}),p(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[he]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ge)}}),p(ct,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Vt|Wt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Vt|Wt)?e=t.overallVelocity:n&Vt?e=t.overallVelocityX:n&Wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&Et(e)>this.options.velocity&&t.eventType&Yt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(lt,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&kt&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=Yt)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,s=!this.pCenter||M(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var a=this.count%e.taps;if(0===a)return this.hasRequireFailures()?(this._timer=u(function(){this.state=be,this.tryEmit()},e.interval,this),ge):be}return we},failTimeout:function(){return this._timer=u(function(){this.state=we},this.options.interval,this),we},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==be&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:le,enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[st,{enable:!1},["rotate"]],[ct,{direction:Vt}],[ot,{direction:Vt},["swipe"]],[lt],[lt,{event:"doubletap",taps:2},["tap"]],[at]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var xe=1,Pe=2;pt.prototype={set:function(t){return vt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?Pe:xe},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&be)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],e.stopped===Pe||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(ge|Te|Ee)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof tt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=b(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return l(E(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return l(E(t),function(t){e?n[t]&&n[t].splice(b(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},vt(ft,{INPUT_START:kt,INPUT_MOVE:Ct,INPUT_END:Yt,INPUT_CANCEL:Mt,STATE_POSSIBLE:ye,STATE_BEGAN:ge,STATE_CHANGED:Te,STATE_ENDED:Ee,STATE_RECOGNIZED:be,STATE_CANCELLED:Oe,STATE_FAILED:we,DIRECTION_NONE:Ft,DIRECTION_LEFT:zt,DIRECTION_RIGHT:Lt,DIRECTION_UP:qt,DIRECTION_DOWN:Xt,DIRECTION_HORIZONTAL:Vt,DIRECTION_VERTICAL:Wt,DIRECTION_ALL:Ht,Manager:pt,Input:_,TouchAction:$,TouchInput:H,MouseInput:q,PointerEventInput:X,TouchMouseInput:B,SingleTouchInput:V,Recognizer:tt,AttrRecognizer:it,Tap:lt,Pan:ot,Swipe:ct,Pinch:st,Rotate:ut,Press:at,on:m,off:y,each:l,merge:wt,extend:Ot,assign:vt,inherit:p,bindFn:h,prefixed:x});var Re="undefined"!=typeof i?i:"undefined"!=typeof self?self:{};Re.Hammer=ft,r=function(){return ft}.call(e,n,e,t),!(r!==a&&(t.exports=r))}(window,document,"Hammer")}])});