react-spring
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,1 +0,1 @@ | ||
import React from"react";import PropTypes from"prop-types";function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _objectWithoutProperties(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var REACT_ELEMENT_TYPE$1;function _jsx$1(e,t,n,i){REACT_ELEMENT_TYPE$1||(REACT_ELEMENT_TYPE$1="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),t&&r)for(var o in r)void 0===t[o]&&(t[o]=r[o]);else t||(t=r||{});if(1===a)t.children=i;else if(a>1){for(var s=new Array(a),u=0;u<a;u++)s[u]=arguments[u+3];t.children=s}return{$$typeof:REACT_ELEMENT_TYPE$1,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _asyncIterator$1(e){if("function"==typeof Symbol){if(Symbol.asyncIterator){var t=e[Symbol.asyncIterator];if(null!=t)return t.call(e)}if(Symbol.iterator)return e[Symbol.iterator]()}throw new TypeError("Object is not async iterable")}function _AwaitValue$1(e){this.wrapped=e}function _AsyncGenerator$1(e){var t,n;function i(t,n){try{var a=e[t](n),o=a.value,s=o instanceof _AwaitValue$1;Promise.resolve(s?o.wrapped:o).then(function(e){s?i("next",e):r(a.done?"return":"normal",e)},function(e){i("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(a,o){var s={key:e,arg:r,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function _wrapAsyncGenerator$1(e){return function(){return new _AsyncGenerator$1(e.apply(this,arguments))}}function _awaitAsyncGenerator$1(e){return new _AwaitValue$1(e)}function _asyncGeneratorDelegate$1(e,t){var n={},i=!1;function r(n,r){return i=!0,r=new Promise(function(t){t(e[n](r))}),{done:!1,value:t(r)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return i?(i=!1,e):r("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(i)throw i=!1,e;return r("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return r("return",e)}),n}function _asyncToGenerator$1(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var a=e.apply(t,n);function o(e,t){try{var n=a[e](t),o=n.value}catch(e){return void r(e)}n.done?i(o):Promise.resolve(o).then(s,u)}function s(e){o("next",e)}function u(e){o("throw",e)}s()})}}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),n&&_defineProperties$1(e,n),e}function _defineEnumerableProperties$1(e,t){for(var n in t){(a=t[n]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n,a)}if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),r=0;r<i.length;r++){var a,o=i[r];(a=t[o]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o,a)}return e}function _defaults$1(e,t){for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i],a=Object.getOwnPropertyDescriptor(t,r);a&&a.configurable&&void 0===e[r]&&Object.defineProperty(e,r,a)}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _get$1(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:_get$1(r,t,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator$1.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator$1.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator$1.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator$1.prototype.return=function(e){return this._invoke("return",e)};var _gPO$1=Object.getPrototypeOf||function(e){return e.__proto__},_sPO$1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_construct$1="object"==typeof Reflect&&Reflect.construct||function(e,t,n){var i,r=[null];return r.push.apply(r,t),i=e.bind.apply(e,r),_sPO$1(new i,n.prototype)},_cache$1="function"==typeof Map&&new Map;function _wrapNativeSuper$1(e){if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache$1){if(_cache$1.has(e))return _cache$1.get(e);_cache$1.set(e,t)}function t(){}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writeable:!0,configurable:!0}}),_sPO$1(t,_sPO$1(function(){return _construct$1(e,arguments,_gPO$1(this).constructor)},e))}function _instanceof$1(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard$1(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}function _newArrowCheck$1(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty$1(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutProperties$1(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _set$1(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var a=Object.getPrototypeOf(e);null!==a&&_set$1(a,t,n,i)}else if("value"in r&&r.writable)r.value=n;else{var o=r.set;void 0!==o&&o.call(i,n)}return n}function _sliceIterator$1(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}function _slicedToArray$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return _sliceIterator$1(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _slicedToArrayLoose$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,i=[],r=e[Symbol.iterator]();!(n=r.next()).done&&(i.push(n.value),!t||i.length!==t););return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _taggedTemplateLiteral$1(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose$1(e,t){return e.raw=t,e}function _temporalRef$1(e,t){if(e===_temporalUndefined$1)throw new ReferenceError(t+" is not defined - temporal dead zone");return e}function _readOnlyError$1(e){throw new Error('"'+e+'" is read-only')}function _classNameTDZError$1(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}var _temporalUndefined$1={};function _toArray$1(e){return Array.isArray(e)?e:Array.from(e)}function _toConsumableArray$1(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _skipFirstGeneratorNext$1(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _toPropertyKey$1(e){return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper$1(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function _initializerDefineProperty$1(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function _applyDecoratedDescriptor$1(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var rollupPluginBabelHelpers=Object.freeze({get typeof(){return _typeof$1},jsx:_jsx$1,asyncIterator:_asyncIterator$1,AwaitValue:_AwaitValue$1,AsyncGenerator:_AsyncGenerator$1,wrapAsyncGenerator:_wrapAsyncGenerator$1,awaitAsyncGenerator:_awaitAsyncGenerator$1,asyncGeneratorDelegate:_asyncGeneratorDelegate$1,asyncToGenerator:_asyncToGenerator$1,classCallCheck:_classCallCheck$1,createClass:_createClass$1,defineEnumerableProperties:_defineEnumerableProperties$1,defaults:_defaults$1,defineProperty:_defineProperty$1,get extends(){return _extends$1},get:_get$1,inherits:_inherits$1,inheritsLoose:_inheritsLoose$1,wrapNativeSuper:_wrapNativeSuper$1,instanceof:_instanceof$1,interopRequireDefault:_interopRequireDefault$1,interopRequireWildcard:_interopRequireWildcard$1,newArrowCheck:_newArrowCheck$1,objectDestructuringEmpty:_objectDestructuringEmpty$1,objectWithoutProperties:_objectWithoutProperties$1,assertThisInitialized:_assertThisInitialized$1,possibleConstructorReturn:_possibleConstructorReturn$1,set:_set$1,slicedToArray:_slicedToArray$1,slicedToArrayLoose:_slicedToArrayLoose$1,taggedTemplateLiteral:_taggedTemplateLiteral$1,taggedTemplateLiteralLoose:_taggedTemplateLiteralLoose$1,temporalRef:_temporalRef$1,readOnlyError:_readOnlyError$1,classNameTDZError:_classNameTDZError$1,temporalUndefined:_temporalUndefined$1,toArray:_toArray$1,toConsumableArray:_toConsumableArray$1,skipFirstGeneratorNext:_skipFirstGeneratorNext$1,toPropertyKey:_toPropertyKey$1,initializerWarningHelper:_initializerWarningHelper$1,initializerDefineProperty:_initializerDefineProperty$1,applyDecoratedDescriptor:_applyDecoratedDescriptor$1}),NODE_ENV=process.env.NODE_ENV,invariant=function(e,t,n,i,r,a,o,s){if("production"!==NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===t)u=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,r,a,o,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},invariant_1=invariant,Animated=function(){function e(){}var t=e.prototype;return t.__attach=function(){},t.__detach=function(){},t.__getValue=function(){},t.__getAnimatedValue=function(){return this.__getValue()},t.__addChild=function(e){},t.__removeChild=function(e){},t.__getChildren=function(){return[]},e}(),Animated_1=Animated,commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},require$$0=rollupPluginBabelHelpers,_inheritsLoose$1$1=require$$0.inheritsLoose,AnimatedWithChildren=function(e){function t(){var t;return(t=e.call(this)||this)._children=[],t}_inheritsLoose$1$1(t,e);var n=t.prototype;return n.__addChild=function(e){0===this._children.length&&this.__attach(),this._children.push(e)},n.__removeChild=function(e){var t=this._children.indexOf(e);-1!==t?(this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")},n.__getChildren=function(){return this._children},t}(Animated_1),AnimatedWithChildren_1=AnimatedWithChildren,InteractionManager={current:{createInteractionHandle:function(){},clearInteractionHandle:function(){}},inject:function(e){InteractionManager.current=e}},InteractionManager_1=InteractionManager;function normalizeColor(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=matchers.hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:names.hasOwnProperty(e)?names[e]:(t=matchers.rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=matchers.rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=matchers.hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=matchers.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=matchers.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=matchers.hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=matchers.hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e,t,n){var i=n<.5?n*(1+t):n+t-n*t,r=2*n-i,a=hue2rgb(r,i,e+1/3),o=hue2rgb(r,i,e),s=hue2rgb(r,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}var NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function toArray(e){return Array.prototype.slice.call(e,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var matchers={rgb:new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba:new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl:new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla:new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function parse255(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100}var names={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};function rgba(e){return{r:Math.round((4278190080&e)>>>24),g:Math.round((16711680&e)>>>16),b:Math.round((65280&e)>>>8),a:((255&e)>>>0)/255}}normalizeColor.rgba=rgba;var normalizeCssColor=normalizeColor,_extends$1$1=require$$0.extends,linear=function(e){return e},Interpolation=function(){function e(){}return e.create=function(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return createInterpolationFromStringOutputRange(e);var t=e.outputRange;checkInfiniteRange("outputRange",t);var n=e.inputRange;checkInfiniteRange("inputRange",n),checkValidInputRange(n),invariant_1(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length");var i=e.easing||linear,r="extend";void 0!==e.extrapolateLeft?r=e.extrapolateLeft:void 0!==e.extrapolate&&(r=e.extrapolate);var a="extend";return void 0!==e.extrapolateRight?a=e.extrapolateRight:void 0!==e.extrapolate&&(a=e.extrapolate),function(e){invariant_1("number"==typeof e,"Cannot interpolation an input which is not a number");var o=findRange(e,n);return interpolate(e,n[o],n[o+1],t[o],t[o+1],i,r,a)}},e}();function interpolate(e,t,n,i,r,a,o,s){var u=e;if(u<t){if("identity"===o)return u;"clamp"===o&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}return i===r?i:t===n?e<=t?i:r:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),i===-1/0?u=-u:r===1/0?u+=i:u=u*(r-i)+i,u)}function colorToRgba(e){var t=normalizeCssColor(e);return null===t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var stringShapeRegex=/[0-9\.-]+/g;function createInterpolationFromStringOutputRange(e){var t=e.outputRange;invariant_1(t.length>=2,"Bad output range"),checkPattern(t=t.map(colorToRgba));var n=t[0].match(stringShapeRegex).map(function(){return[]});t.forEach(function(e){e.match(stringShapeRegex).forEach(function(e,t){n[t].push(+e)})});var i=t[0].match(stringShapeRegex).map(function(t,i){return Interpolation.create(_extends$1$1({},e,{outputRange:n[i]}))}),r=/^rgb/.test(t[0]);return function(e){var n=0;return t[0].replace(stringShapeRegex,function(){var t=i[n++](e);return String(r&&n<4?Math.round(t):t)})}}function checkPattern(e){for(var t=e[0].replace(stringShapeRegex,""),n=1;n<e.length;++n)invariant_1(t===e[n].replace(stringShapeRegex,""),"invalid pattern "+e[0]+" and "+e[n])}function findRange(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function checkValidInputRange(e){invariant_1(e.length>=2,"inputRange must have at least 2 elements");for(var t=1;t<e.length;++t)invariant_1(e[t]>=e[t-1],"inputRange must be monotonically increasing "+e)}function checkInfiniteRange(e,t){invariant_1(t.length>=2,e+" must have at least 2 elements"),invariant_1(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}var Interpolation_1=Interpolation,_uniqueId=0,guid$1=function(){return String(_uniqueId++)},_inheritsLoose$2=require$$0.inheritsLoose,AnimatedInterpolation=function(e){function t(t,n){var i;return(i=e.call(this)||this)._parent=t,i._interpolation=n,i._listeners={},i}_inheritsLoose$2(t,e);var n=t.prototype;return n.__getValue=function(){var e=this._parent.__getValue();return invariant_1("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)},n.addListener=function(e){var t=this;this._parentListener||(this._parentListener=this._parent.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid$1();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new t(this,Interpolation_1.create(e))},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this),this._parentListener=this._parent.removeListener(this._parentListener)},t}(AnimatedWithChildren_1),AnimatedInterpolation_1=AnimatedInterpolation,Animation=function(){function e(){}var t=e.prototype;return t.start=function(e,t,n,i){},t.stop=function(){},t.__debouncedOnEnd=function(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)},e}(),Animation_1=Animation;function SetPolyfill(){this._cache=[]}SetPolyfill.prototype.add=function(e){-1===this._cache.indexOf(e)&&this._cache.push(e)},SetPolyfill.prototype.forEach=function(e){this._cache.forEach(e)};var SetPolyfill_1=SetPolyfill,_inheritsLoose$3=require$$0.inheritsLoose,Set=commonjsGlobal.Set||SetPolyfill_1;function _flush(e){var t=new Set;!function e(n){"function"==typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach(function(e){return e.update()})}var AnimatedValue=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n._offset=0,n._animation=null,n._listeners={},n}_inheritsLoose$3(t,e);var n=t.prototype;return n.__detach=function(){this.stopAnimation()},n.__getValue=function(){return this._value+this._offset},n.setValue=function(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e)},n.setOffset=function(e){this._offset=e},n.flattenOffset=function(){this._value+=this._offset,this._offset=0},n.addListener=function(e){var t=guid$1();return this._listeners[t]=e,t},n.removeListener=function(e){delete this._listeners[e]},n.removeAllListeners=function(){this._listeners={}},n.stopAnimation=function(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&e(this.__getValue())},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.animate=function(e,t){var n=this,i=null;e.__isInteraction&&(i=InteractionManager_1.current.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,function(e){n._updateValue(e)},function(e){n._animation=null,null!==i&&InteractionManager_1.current.clearInteractionHandle(i),t&&t(e)},r)},n.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},n.track=function(e){this.stopTracking(),this._tracking=e},n._updateValue=function(e){for(var t in this._value=e,_flush(this),this._listeners)this._listeners[t]({value:this.__getValue()})},t}(AnimatedWithChildren_1),AnimatedValue_1=AnimatedValue,_inheritsLoose$4=require$$0.inheritsLoose,AnimatedValueXY=function(e){function t(t){var n;n=e.call(this)||this;var i=t||{x:0,y:0};return"number"==typeof i.x&&"number"==typeof i.y?(n.x=new AnimatedValue_1(i.x),n.y=new AnimatedValue_1(i.y)):(invariant_1(i.x instanceof AnimatedValue_1&&i.y instanceof AnimatedValue_1,"AnimatedValueXY must be initalized with an object of numbers or AnimatedValues."),n.x=i.x,n.y=i.y),n._listeners={},n}_inheritsLoose$4(t,e);var n=t.prototype;return n.setValue=function(e){this.x.setValue(e.x),this.y.setValue(e.y)},n.setOffset=function(e){this.x.setOffset(e.x),this.y.setOffset(e.y)},n.flattenOffset=function(){this.x.flattenOffset(),this.y.flattenOffset()},n.__getValue=function(){return{x:this.x.__getValue(),y:this.y.__getValue()}},n.stopAnimation=function(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())},n.addListener=function(e){var t=this,n=guid$1(),i=function(n){n.value;e(t.__getValue())};return this._listeners[n]={x:this.x.addListener(i),y:this.y.addListener(i)},n},n.removeListener=function(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]},n.getLayout=function(){return{left:this.x,top:this.y}},n.getTranslateTransform=function(){return[{translateX:this.x},{translateY:this.y}]},t}(AnimatedWithChildren_1),AnimatedValueXY_1=AnimatedValueXY,_inheritsLoose$5=require$$0.inheritsLoose,AnimatedAddition=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a="number"==typeof t?new AnimatedValue_1(t):t,i._b="number"==typeof n?new AnimatedValue_1(n):n,i._listeners={},i}_inheritsLoose$5(t,e);var n=t.prototype;return n.__getValue=function(){return this._a.__getValue()+this._b.__getValue()},n.addListener=function(e){var t=this;!this._aListener&&this._a.addListener&&(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})})),!this._bListener&&this._b.addListener&&(this._bListener=this._b.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this),this._b.__addChild(this)},n.__detach=function(){this._a.__removeChild(this),this._b.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedAddition_1=AnimatedAddition,_inheritsLoose$6=require$$0.inheritsLoose,AnimatedMultiplication=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a="number"==typeof t?new AnimatedValue_1(t):t,i._b="number"==typeof n?new AnimatedValue_1(n):n,i._listeners={},i}_inheritsLoose$6(t,e);var n=t.prototype;return n.__getValue=function(){return this._a.__getValue()*this._b.__getValue()},n.addListener=function(e){var t=this;!this._aListener&&this._a.addListener&&(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})})),!this._bListener&&this._b.addListener&&(this._bListener=this._b.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this),this._b.__addChild(this)},n.__detach=function(){this._a.__removeChild(this),this._b.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedMultiplication_1=AnimatedMultiplication,_inheritsLoose$7=require$$0.inheritsLoose,AnimatedModulo=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a=t,i._modulus=n,i._listeners={},i}_inheritsLoose$7(t,e);var n=t.prototype;return n.__getValue=function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus},n.addListener=function(e){var t=this;this._aListener||(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this)},n.__detach=function(){this._a.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedModulo_1=AnimatedModulo,_inheritsLoose$8=require$$0.inheritsLoose,AnimatedTemplate=function(e){function t(t,n){var i;return(i=e.call(this)||this)._strings=t,i._values=n,i}_inheritsLoose$8(t,e);var n=t.prototype;return n.__transformValue=function(e){return e instanceof Animated_1?e.__getValue():e},n.__getValue=function(){for(var e=this._strings[0],t=0;t<this._values.length;++t)e+=this.__transformValue(this._values[t])+this._strings[1+t];return e},n.__attach=function(){for(var e=0;e<this._values.length;++e)this._values[e]instanceof Animated_1&&this._values[e].__addChild(this)},n.__detach=function(){for(var e=0;e<this._values.length;++e)this._values[e]instanceof Animated_1&&this._values[e].__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedTemplate_1=AnimatedTemplate,_extends$2=require$$0.extends,_inheritsLoose$9=require$$0.inheritsLoose,AnimatedTracking=function(e){function t(t,n,i,r,a){var o;return(o=e.call(this)||this)._value=t,o._parent=n,o._animationClass=i,o._animationConfig=r,o._callback=a,o.__attach(),o}_inheritsLoose$9(t,e);var n=t.prototype;return n.__getValue=function(){return this._parent.__getValue()},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this)},n.update=function(){this._value.animate(new this._animationClass(_extends$2({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)},t}(Animated_1),AnimatedTracking_1=AnimatedTracking;function isAnimated(e){return e instanceof Animated_1}var isAnimated_1=isAnimated,NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="function"==typeof Float32Array;function A(e,t){return 1-3*t+3*e}function B(e,t){return 3*t-6*e}function C(e){return 3*e}function calcBezier(e,t,n){return((A(t,n)*e+B(t,n))*e+C(t))*e}function getSlope(e,t,n){return 3*A(t,n)*e*e+2*B(t,n)*e+C(t)}function binarySubdivide(e,t,n,i,r){var a,o,s=0;do{(a=calcBezier(o=t+(n-t)/2,i,r)-e)>0?n=o:t=o}while(Math.abs(a)>SUBDIVISION_PRECISION&&++s<SUBDIVISION_MAX_ITERATIONS);return o}function newtonRaphsonIterate(e,t,n,i){for(var r=0;r<NEWTON_ITERATIONS;++r){var a=getSlope(t,n,i);if(0===a)return t;t-=(calcBezier(t,n,i)-e)/a}return t}var bezier=function(e,t,n,i){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var r=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);if(e!==t||n!==i)for(var a=0;a<kSplineTableSize;++a)r[a]=calcBezier(a*kSampleStepSize,e,n);return function(a){return e===t&&n===i?a:0===a?0:1===a?1:calcBezier(function(t){for(var i=0,a=1,o=kSplineTableSize-1;a!==o&&r[a]<=t;++a)i+=kSampleStepSize;var s=i+(t-r[--a])/(r[a+1]-r[a])*kSampleStepSize,u=getSlope(s,e,n);return u>=NEWTON_MIN_SLOPE?newtonRaphsonIterate(t,s,e,n):0===u?s:binarySubdivide(t,i,i+kSampleStepSize,e,n)}(a),t,i)}},Easing=function(){function e(){}return e.step0=function(e){return e>0?1:0},e.step1=function(e){return e>=1?1:0},e.linear=function(e){return e},e.ease=function(e){return _ease(e)},e.quad=function(e){return e*e},e.cubic=function(e){return e*e*e},e.poly=function(e){return function(t){return Math.pow(t,e)}},e.sin=function(e){return 1-Math.cos(e*Math.PI/2)},e.circle=function(e){return 1-Math.sqrt(1-e*e)},e.exp=function(e){return Math.pow(2,10*(e-1))},e.elastic=function(e){void 0===e&&(e=1);var t=e*Math.PI;return function(e){return 1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}},e.back=function(e){return void 0===e&&(e=1.70158),function(t){return t*t*((e+1)*t-e)}},e.bounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},e.bezier=function(e,t,n,i){return bezier(e,t,n,i)},e.in=function(e){return e},e.out=function(e){return function(t){return 1-e(1-t)}},e.inOut=function(e){return function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}},e}(),_ease=Easing.bezier(.42,0,1,1),Easing_1=Easing,RequestAnimationFrame={current:function(e){return commonjsGlobal.requestAnimationFrame(e)},inject:function(e){RequestAnimationFrame.current=e}},RequestAnimationFrame_1=RequestAnimationFrame,CancelAnimationFrame={current:function(e){return commonjsGlobal.cancelAnimationFrame(e)},inject:function(e){CancelAnimationFrame.current=e}},CancelAnimationFrame_1=CancelAnimationFrame,_inheritsLoose$10=require$$0.inheritsLoose,easeInOut=Easing_1.inOut(Easing_1.ease),TimingAnimation=function(e){function t(t){var n;return(n=e.call(this)||this)._toValue=t.toValue,n._easing=void 0!==t.easing?t.easing:easeInOut,n._duration=void 0!==t.duration?t.duration:500,n._delay=void 0!==t.delay?t.delay:0,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,n}_inheritsLoose$10(t,e);var n=t.prototype;return n.start=function(e,t,n){var i=this;this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var r=function(){0===i._duration?(i._onUpdate(i._toValue),i.__debouncedOnEnd({finished:!0})):(i._startTime=Date.now(),i._animationFrame=RequestAnimationFrame_1.current(i.onUpdate.bind(i)))};this._delay?this._timeout=setTimeout(r,this._delay):r()},n.onUpdate=function(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this)))},n.stop=function(){this.__active=!1,clearTimeout(this._timeout),CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),TimingAnimation_1=TimingAnimation,_inheritsLoose$11=require$$0.inheritsLoose,DecayAnimation=function(e){function t(t){var n;return(n=e.call(this)||this)._deceleration=void 0!==t.deceleration?t.deceleration:.998,n._velocity=t.velocity,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,n}_inheritsLoose$11(t,e);var n=t.prototype;return n.start=function(e,t,n){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))},n.onUpdate=function(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))))},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),DecayAnimation_1=DecayAnimation;function tensionFromOrigamiValue(e){return 3.62*(e-30)+194}function frictionFromOrigamiValue(e){return 3*(e-8)+25}function fromOrigamiTensionAndFriction(e,t){return{tension:tensionFromOrigamiValue(e),friction:frictionFromOrigamiValue(t)}}function fromBouncinessAndSpeed(e,t){function n(e,t,n){return(e-t)/(n-t)}function i(e,t,n){return t+e*(n-t)}var r=n(e/1.7,0,20);r=i(r,0,.8);var a,o,s,u,l=i(n(t/1.7,0,20),.5,200),c=(a=r,o=(s=l)<=18?(u=s,7e-4*Math.pow(u,3)-.031*Math.pow(u,2)+.64*u+1.28):s>18&&s<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(s):function(e){return 4.5e-7*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(s),function(e,t,n){return e*n+(1-e)*t}(2*a-a*a,o,.01));return{tension:tensionFromOrigamiValue(l),friction:frictionFromOrigamiValue(c)}}var SpringConfig={fromOrigamiTensionAndFriction:fromOrigamiTensionAndFriction,fromBouncinessAndSpeed:fromBouncinessAndSpeed},_inheritsLoose$12=require$$0.inheritsLoose;function withDefault(e,t){return void 0===e||null===e?t:e}var SpringAnimation=function(e){function t(t){var n,i;return(n=e.call(this)||this)._overshootClamping=withDefault(t.overshootClamping,!1),n._restDisplacementThreshold=withDefault(t.restDisplacementThreshold,.001),n._restSpeedThreshold=withDefault(t.restSpeedThreshold,.001),n._initialVelocity=t.velocity,n._lastVelocity=withDefault(t.velocity,0),n._toValue=t.toValue,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,void 0!==t.bounciness||void 0!==t.speed?(invariant_1(void 0===t.tension&&void 0===t.friction,"You can only define bounciness/speed or tension/friction but not both"),i=SpringConfig.fromBouncinessAndSpeed(withDefault(t.bounciness,8),withDefault(t.speed,12))):i=SpringConfig.fromOrigamiTensionAndFriction(withDefault(t.tension,40),withDefault(t.friction,7)),n._tension=i.tension,n._friction=i.friction,n}_inheritsLoose$12(t,e);var n=t.prototype;return n.start=function(e,n,i,r){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=i,this._lastTime=Date.now(),r instanceof t){var a=r.getInternalState();this._lastPosition=a.lastPosition,this._lastVelocity=a.lastVelocity,this._lastTime=a.lastTime}void 0!==this._initialVelocity&&null!==this._initialVelocity&&(this._lastVelocity=this._initialVelocity),this.onUpdate()},n.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},n.onUpdate=function(){var e=this._lastPosition,t=this._lastVelocity,n=this._lastPosition,i=this._lastVelocity,r=Date.now();r>this._lastTime+64&&(r=this._lastTime+64);for(var a=Math.floor((r-this._lastTime)/1),o=0;o<a;++o){var s=t,u=this._tension*(this._toValue-n)-this._friction*i,l=(n=e+.001*s/2,i=t+.001*u/2),c=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*l/2;var _=i=t+.001*c/2,h=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*_/2;var f=i=t+.001*h/2,p=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*_/2,i=t+.001*h/2,e+=.001*((s+2*(l+_)+f)/6),t+=.001*((u+2*(c+h)+p)/6)}if(this._lastTime=r,this._lastPosition=e,this._lastVelocity=t,this._onUpdate(e),this.__active){var d=!1;this._overshootClamping&&0!==this._tension&&(d=this._startPosition<this._toValue?e>this._toValue:e<this._toValue);var m=Math.abs(t)<=this._restSpeedThreshold,y=!0;if(0!==this._tension&&(y=Math.abs(this._toValue-e)<=this._restDisplacementThreshold),d||m&&y)return 0!==this._tension&&this._onUpdate(this._toValue),void this.__debouncedOnEnd({finished:!0});this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))}},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),SpringAnimation_1=SpringAnimation,_inheritsLoose$13=require$$0.inheritsLoose,AnimatedTransform=function(e){function t(t){var n;return(n=e.call(this)||this)._transforms=t,n}_inheritsLoose$13(t,e);var n=t.prototype;return n.__getValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var i=e[n];t[n]=i instanceof Animated_1?i.__getValue():i}return t})},n.__getAnimatedValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var i=e[n];t[n]=i instanceof Animated_1?i.__getAnimatedValue():i}return t})},n.__attach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var i=t[n];i instanceof Animated_1&&i.__addChild(e)}})},n.__detach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var i=t[n];i instanceof Animated_1&&i.__removeChild(e)}})},t}(AnimatedWithChildren_1),AnimatedTransform_1=AnimatedTransform,FlattenStyle={current:function(e){return e},inject:function(e){FlattenStyle.current=e}},FlattenStyle_1=FlattenStyle,_extends$3=require$$0.extends,_inheritsLoose$14=require$$0.inheritsLoose,AnimatedStyle=function(e){function t(t){var n;return n=e.call(this)||this,!(t=FlattenStyle_1.current(t)||{}).transform||t.transform instanceof Animated_1||(t=_extends$3({},t,{transform:new AnimatedTransform_1(t.transform)})),n._style=t,n}_inheritsLoose$14(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._style){var n=this._style[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__removeChild(this)}},t}(AnimatedWithChildren_1),AnimatedStyle_1=AnimatedStyle,_extends$4=require$$0.extends,_inheritsLoose$15=require$$0.inheritsLoose,AnimatedProps=function(e){function t(t,n){var i;return i=e.call(this)||this,t.style&&(t=_extends$4({},t,{style:new AnimatedStyle_1(t.style)})),i._props=t,i._callback=n,i.__attach(),i}_inheritsLoose$15(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._props){var n=this._props[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._props){var n=this._props[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__removeChild(this)}},n.update=function(){this._callback()},t}(Animated_1),AnimatedProps_1=AnimatedProps,ApplyAnimatedValues={current:function(e,t){if(!e.setNativeProps)return!1;e.setNativeProps(t)},transformStyles:function(e){return e},inject:function(e,t){ApplyAnimatedValues.current=e,ApplyAnimatedValues.transformStyles=t}},ApplyAnimatedValues_1=ApplyAnimatedValues,_extends$5=require$$0.extends,_objectWithoutProperties$1$1=require$$0.objectWithoutProperties,_inheritsLoose$16=require$$0.inheritsLoose;function createAnimatedComponent(e){var t=function(t){function n(){return t.apply(this,arguments)||this}_inheritsLoose$16(n,t);var i=n.prototype;return i.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},i.setNativeProps=function(e){this.refName&&ApplyAnimatedValues_1.current(this.refName,e,this)||this.forceUpdate()},i.componentWillMount=function(){this.attachProps(this.props)},i.attachProps=function(e){var t=this,n=this._propsAnimated;this._propsAnimated=new AnimatedProps_1(e,function(){t.refName&&ApplyAnimatedValues_1.current(t.refName,t._propsAnimated.__getAnimatedValue(),t)||t.forceUpdate()}),n&&n.__detach()},i.componentWillReceiveProps=function(e){this.attachProps(e)},i.render=function(){var t=this,n=this._propsAnimated.__getValue(),i=n.style,r=_objectWithoutProperties$1$1(n,["style"]);return React.createElement(e,_extends$5({},r,{style:ApplyAnimatedValues_1.transformStyles(i),ref:function(e){return t.refName=e}}))},n}(React.Component);return"production"!==process.env.NODE_ENV&&(t.propTypes={style:function(t,n,i){e.propTypes}}),t}var createAnimatedComponent_1=createAnimatedComponent,_extends$6=require$$0.extends,maybeVectorAnim=function(e,t,n){if(e instanceof AnimatedValueXY_1){var i=_extends$6({},t),r=_extends$6({},t);for(var a in t){var o=t[a],s=o.x,u=o.y;void 0!==s&&void 0!==u&&(i[a]=s,r[a]=u)}var l=n(e.x,i),c=n(e.y,r);return parallel([l,c],{stopTogether:!1})}return null},spring=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),n.toValue instanceof Animated_1?i.track(new AnimatedTracking_1(i,n.toValue,SpringAnimation_1,r,e)):i.animate(new SpringAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},timing=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),n.toValue instanceof Animated_1?i.track(new AnimatedTracking_1(i,n.toValue,TimingAnimation_1,r,e)):i.animate(new TimingAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},decay=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),i.animate(new DecayAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},sequence=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function i(r){r.finished&&++t!==e.length?e[t].start(i):n&&n(r)})},stop:function(){t<e.length&&e[t].stop()}}},parallel=function(e,t){var n=0,i={},r=!(t&&!1===t.stopTogether),a={start:function(t){n!==e.length?e.forEach(function(o,s){var u=function(o){if(i[s]=!0,++n===e.length)return n=0,void(t&&t(o));!o.finished&&r&&a.stop()};o?o.start(u):u({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach(function(e,t){!i[t]&&e.stop(),i[t]=!0})}};return a},delay=function(e){return timing(new AnimatedValue_1(0),{toValue:0,delay:e,duration:0})},stagger=function(e,t){return parallel(t.map(function(t,n){return sequence([delay(e*n),t])}))},event=function(e,t){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.forEach(function(e,t){!function e(t,n,i){if("number"==typeof n)return invariant_1(t instanceof AnimatedValue_1,"Bad mapping of type "+typeof t+" for key "+i+", event value must map to AnimatedValue"),void t.setValue(n);for(var i in invariant_1("object"==typeof t,"Bad mapping of type "+typeof t+" for key "+i),invariant_1("object"==typeof n,"Bad event of type "+typeof n+" for key "+i),t)e(t[i],n[i],i)}(e,i[t],"arg"+t)}),t&&t.listener&&t.listener.apply(null,i)}},src={Value:AnimatedValue_1,ValueXY:AnimatedValueXY_1,decay:decay,timing:timing,spring:spring,add:function(e,t){return new AnimatedAddition_1(e,t)},multiply:function(e,t){return new AnimatedMultiplication_1(e,t)},modulo:function(e,t){return new AnimatedModulo_1(e,t)},template:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new AnimatedTemplate_1(e,n)},delay:delay,sequence:sequence,parallel:parallel,stagger:stagger,event:event,isAnimated:isAnimated_1,createAnimatedComponent:createAnimatedComponent_1,inject:{ApplyAnimatedValues:ApplyAnimatedValues_1.inject,InteractionManager:InteractionManager_1.inject,FlattenStyle:FlattenStyle_1.inject,RequestAnimationFrame:RequestAnimationFrame_1.inject,CancelAnimationFrame:CancelAnimationFrame_1.inject},__PropsOnlyForTests:AnimatedProps_1},createAnimatedValue=function(e,t,n,i){return{name:t,interpolate:e.interpolate({inputRange:[0,1],outputRange:[n,i]})}},Spring=function(e){function t(t){var n;n=e.call(this)||this,_initialiseProps.call(_assertThisInitialized(n));var i=t.children,r=t.to,a=t.from;return n.animation=new src.Value(0),n.component=src.createAnimatedComponent(i),n.animations=Object.entries(r).map(function(e){var t=e[0],i=e[1];return createAnimatedValue(n.animation,t,void 0!==a[t]?a[t]:i,i)}),n.to=n.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),n}_inheritsLoose(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){this.update(e)},n.componentDidMount=function(){this.props.interpolator(this.animation,{toValue:1}).start()},n.render=function(){var e=this.props,t=(e.children,e.to,_objectWithoutProperties(e,["children","to"]));return React.createElement(this.component,_extends({},this.to,t))},t}(React.PureComponent);Spring.defaultProps={to:{},from:{},interpolator:src.spring};var _initialiseProps=function(){var e=this;this.update=function(t){var n=e.animation._value;e.animation.stopAnimation(),e.animation.setValue(0);var i=t.to,r=(t.from,t.interpolator,e.animations),a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var u=s;i[u.name]!==u.to&&(u.interpolate=e.animation.interpolate({inputRange:[0,1],outputRange:[u.interpolate._interpolation(n),i[u.name]]}))}e.to=e.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),e.props.interpolator(e.animation,{toValue:1}).start()}};"production"!==process.env.NODE_ENV&&(Spring.propTypes={to:PropTypes.object,from:PropTypes.object,interpolator:PropTypes.func});export default Spring; | ||
import React from"react";import PropTypes from"prop-types";function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var REACT_ELEMENT_TYPE$1,NODE_ENV=process.env.NODE_ENV,invariant=function(e,t,n,r,i,o,a,s){if("production"!==NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}},invariant_1=invariant,Animated=function(){function e(){}var t=e.prototype;return t.__attach=function(){},t.__detach=function(){},t.__getValue=function(){},t.__getAnimatedValue=function(){return this.__getValue()},t.__addChild=function(e){},t.__removeChild=function(e){},t.__getChildren=function(){return[]},e}(),Animated_1=Animated,commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _jsx$1(e,t,n,r){REACT_ELEMENT_TYPE$1||(REACT_ELEMENT_TYPE$1="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===o)t.children=r;else if(o>1){for(var s=new Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}return{$$typeof:REACT_ELEMENT_TYPE$1,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _asyncIterator$1(e){if("function"==typeof Symbol){if(Symbol.asyncIterator){var t=e[Symbol.asyncIterator];if(null!=t)return t.call(e)}if(Symbol.iterator)return e[Symbol.iterator]()}throw new TypeError("Object is not async iterable")}function _AwaitValue$1(e){this.wrapped=e}function _AsyncGenerator$1(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof _AwaitValue$1;Promise.resolve(s?a.wrapped:a).then(function(e){s?r("next",e):i(o.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function _wrapAsyncGenerator$1(e){return function(){return new _AsyncGenerator$1(e.apply(this,arguments))}}function _awaitAsyncGenerator$1(e){return new _AwaitValue$1(e)}function _asyncGeneratorDelegate$1(e,t){var n={},r=!1;function i(n,i){return r=!0,i=new Promise(function(t){t(e[n](i))}),{done:!1,value:t(i)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return r?(r=!1,e):i("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return i("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return i("return",e)}),n}function _asyncToGenerator$1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,l)}function s(e){a("next",e)}function l(e){a("throw",e)}s()})}}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),n&&_defineProperties$1(e,n),e}function _defineEnumerableProperties$1(e,t){for(var n in t)(o=t[n]).configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n,o);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(t),i=0;i<r.length;i++){var o,a=r[i];(o=t[a]).configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a,o)}return e}function _defaults$1(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _get$1(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:_get$1(i,t,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator$1.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator$1.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator$1.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator$1.prototype.return=function(e){return this._invoke("return",e)};var _gPO$1=Object.getPrototypeOf||function(e){return e.__proto__},_sPO$1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_construct$1="object"==typeof Reflect&&Reflect.construct||function(e,t,n){var r,i=[null];return i.push.apply(i,t),r=e.bind.apply(e,i),_sPO$1(new r,n.prototype)},_cache$1="function"==typeof Map&&new Map;function _wrapNativeSuper$1(e){if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache$1){if(_cache$1.has(e))return _cache$1.get(e);_cache$1.set(e,t)}function t(){}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writeable:!0,configurable:!0}}),_sPO$1(t,_sPO$1(function(){return _construct$1(e,arguments,_gPO$1(this).constructor)},e))}function _instanceof$1(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard$1(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _newArrowCheck$1(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty$1(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutProperties$1(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _set$1(e,t,n,r){var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);null!==o&&_set$1(o,t,n,r)}else if("value"in i&&i.writable)i.value=n;else{var a=i.set;void 0!==a&&a.call(r,n)}return n}function _sliceIterator$1(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function _slicedToArray$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return _sliceIterator$1(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _slicedToArrayLoose$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],i=e[Symbol.iterator]();!(n=i.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _taggedTemplateLiteral$1(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose$1(e,t){return e.raw=t,e}function _temporalRef$1(e,t){if(e===_temporalUndefined$1)throw new ReferenceError(t+" is not defined - temporal dead zone");return e}function _readOnlyError$1(e){throw new Error('"'+e+'" is read-only')}function _classNameTDZError$1(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}var _temporalUndefined$1={};function _toArray$1(e){return Array.isArray(e)?e:Array.from(e)}function _toConsumableArray$1(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _skipFirstGeneratorNext$1(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _toPropertyKey$1(e){return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper$1(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function _initializerDefineProperty$1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _applyDecoratedDescriptor$1(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var rollupPluginBabelHelpers=Object.freeze({get typeof(){return _typeof$1},jsx:_jsx$1,asyncIterator:_asyncIterator$1,AwaitValue:_AwaitValue$1,AsyncGenerator:_AsyncGenerator$1,wrapAsyncGenerator:_wrapAsyncGenerator$1,awaitAsyncGenerator:_awaitAsyncGenerator$1,asyncGeneratorDelegate:_asyncGeneratorDelegate$1,asyncToGenerator:_asyncToGenerator$1,classCallCheck:_classCallCheck$1,createClass:_createClass$1,defineEnumerableProperties:_defineEnumerableProperties$1,defaults:_defaults$1,defineProperty:_defineProperty$1,get extends(){return _extends$1},get:_get$1,inherits:_inherits$1,inheritsLoose:_inheritsLoose$1,wrapNativeSuper:_wrapNativeSuper$1,instanceof:_instanceof$1,interopRequireDefault:_interopRequireDefault$1,interopRequireWildcard:_interopRequireWildcard$1,newArrowCheck:_newArrowCheck$1,objectDestructuringEmpty:_objectDestructuringEmpty$1,objectWithoutProperties:_objectWithoutProperties$1,assertThisInitialized:_assertThisInitialized$1,possibleConstructorReturn:_possibleConstructorReturn$1,set:_set$1,slicedToArray:_slicedToArray$1,slicedToArrayLoose:_slicedToArrayLoose$1,taggedTemplateLiteral:_taggedTemplateLiteral$1,taggedTemplateLiteralLoose:_taggedTemplateLiteralLoose$1,temporalRef:_temporalRef$1,readOnlyError:_readOnlyError$1,classNameTDZError:_classNameTDZError$1,temporalUndefined:_temporalUndefined$1,toArray:_toArray$1,toConsumableArray:_toConsumableArray$1,skipFirstGeneratorNext:_skipFirstGeneratorNext$1,toPropertyKey:_toPropertyKey$1,initializerWarningHelper:_initializerWarningHelper$1,initializerDefineProperty:_initializerDefineProperty$1,applyDecoratedDescriptor:_applyDecoratedDescriptor$1}),require$$0=rollupPluginBabelHelpers,_inheritsLoose$1$1=require$$0.inheritsLoose,AnimatedWithChildren=function(e){function t(){var t;return(t=e.call(this)||this)._children=[],t}_inheritsLoose$1$1(t,e);var n=t.prototype;return n.__addChild=function(e){0===this._children.length&&this.__attach(),this._children.push(e)},n.__removeChild=function(e){var t=this._children.indexOf(e);-1!==t?(this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")},n.__getChildren=function(){return this._children},t}(Animated_1),AnimatedWithChildren_1=AnimatedWithChildren,InteractionManager={current:{createInteractionHandle:function(){},clearInteractionHandle:function(){}},inject:function(e){InteractionManager.current=e}},InteractionManager_1=InteractionManager;function normalizeColor(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=matchers.hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:names.hasOwnProperty(e)?names[e]:(t=matchers.rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=matchers.rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=matchers.hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=matchers.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=matchers.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=matchers.hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=matchers.hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=hue2rgb(i,r,e+1/3),a=hue2rgb(i,r,e),s=hue2rgb(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}var NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function toArray(e){return Array.prototype.slice.call(e,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var matchers={rgb:new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba:new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl:new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla:new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function parse255(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100}var names={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};function rgba(e){return{r:Math.round((4278190080&e)>>>24),g:Math.round((16711680&e)>>>16),b:Math.round((65280&e)>>>8),a:((255&e)>>>0)/255}}normalizeColor.rgba=rgba;var normalizeCssColor=normalizeColor,_extends$1$1=require$$0.extends,linear=function(e){return e},Interpolation=function(){function e(){}return e.create=function(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return createInterpolationFromStringOutputRange(e);var t=e.outputRange;checkInfiniteRange("outputRange",t);var n=e.inputRange;checkInfiniteRange("inputRange",n),checkValidInputRange(n),invariant_1(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length");var r=e.easing||linear,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),function(e){invariant_1("number"==typeof e,"Cannot interpolation an input which is not a number");var a=findRange(e,n);return interpolate(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}},e}();function interpolate(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function colorToRgba(e){var t=normalizeCssColor(e);return null===t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var stringShapeRegex=/[0-9\.-]+/g;function createInterpolationFromStringOutputRange(e){var t=e.outputRange;invariant_1(t.length>=2,"Bad output range"),checkPattern(t=t.map(colorToRgba));var n=t[0].match(stringShapeRegex).map(function(){return[]});t.forEach(function(e){e.match(stringShapeRegex).forEach(function(e,t){n[t].push(+e)})});var r=t[0].match(stringShapeRegex).map(function(t,r){return Interpolation.create(_extends$1$1({},e,{outputRange:n[r]}))}),i=/^rgb/.test(t[0]);return function(e){var n=0;return t[0].replace(stringShapeRegex,function(){var t=r[n++](e);return String(i&&n<4?Math.round(t):t)})}}function checkPattern(e){for(var t=e[0].replace(stringShapeRegex,""),n=1;n<e.length;++n)invariant_1(t===e[n].replace(stringShapeRegex,""),"invalid pattern "+e[0]+" and "+e[n])}function findRange(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function checkValidInputRange(e){invariant_1(e.length>=2,"inputRange must have at least 2 elements");for(var t=1;t<e.length;++t)invariant_1(e[t]>=e[t-1],"inputRange must be monotonically increasing "+e)}function checkInfiniteRange(e,t){invariant_1(t.length>=2,e+" must have at least 2 elements"),invariant_1(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}var Interpolation_1=Interpolation,_uniqueId=0,guid=function(){return String(_uniqueId++)},_inheritsLoose$2=require$$0.inheritsLoose,AnimatedInterpolation=function(e){function t(t,n){var r;return(r=e.call(this)||this)._parent=t,r._interpolation=n,r._listeners={},r}_inheritsLoose$2(t,e);var n=t.prototype;return n.__getValue=function(){var e=this._parent.__getValue();return invariant_1("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)},n.addListener=function(e){var t=this;this._parentListener||(this._parentListener=this._parent.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new t(this,Interpolation_1.create(e))},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this),this._parentListener=this._parent.removeListener(this._parentListener)},t}(AnimatedWithChildren_1),AnimatedInterpolation_1=AnimatedInterpolation,Animation=function(){function e(){}var t=e.prototype;return t.start=function(e,t,n,r){},t.stop=function(){},t.__debouncedOnEnd=function(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)},e}(),Animation_1=Animation;function SetPolyfill(){this._cache=[]}SetPolyfill.prototype.add=function(e){-1===this._cache.indexOf(e)&&this._cache.push(e)},SetPolyfill.prototype.forEach=function(e){this._cache.forEach(e)};var SetPolyfill_1=SetPolyfill,_inheritsLoose$3=require$$0.inheritsLoose,Set=commonjsGlobal.Set||SetPolyfill_1;function _flush(e){var t=new Set;!function e(n){"function"==typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach(function(e){return e.update()})}var AnimatedValue=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n._offset=0,n._animation=null,n._listeners={},n}_inheritsLoose$3(t,e);var n=t.prototype;return n.__detach=function(){this.stopAnimation()},n.__getValue=function(){return this._value+this._offset},n.setValue=function(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e)},n.setOffset=function(e){this._offset=e},n.flattenOffset=function(){this._value+=this._offset,this._offset=0},n.addListener=function(e){var t=guid();return this._listeners[t]=e,t},n.removeListener=function(e){delete this._listeners[e]},n.removeAllListeners=function(){this._listeners={}},n.stopAnimation=function(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&e(this.__getValue())},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.animate=function(e,t){var n=this,r=null;e.__isInteraction&&(r=InteractionManager_1.current.createInteractionHandle());var i=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,function(e){n._updateValue(e)},function(e){n._animation=null,null!==r&&InteractionManager_1.current.clearInteractionHandle(r),t&&t(e)},i)},n.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},n.track=function(e){this.stopTracking(),this._tracking=e},n._updateValue=function(e){for(var t in this._value=e,_flush(this),this._listeners)this._listeners[t]({value:this.__getValue()})},t}(AnimatedWithChildren_1),AnimatedValue_1=AnimatedValue,_extends$2=require$$0.extends,_inheritsLoose$4=require$$0.inheritsLoose,AnimatedTracking=function(e){function t(t,n,r,i,o){var a;return(a=e.call(this)||this)._value=t,a._parent=n,a._animationClass=r,a._animationConfig=i,a._callback=o,a.__attach(),a}_inheritsLoose$4(t,e);var n=t.prototype;return n.__getValue=function(){return this._parent.__getValue()},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this)},n.update=function(){this._value.animate(new this._animationClass(_extends$2({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)},t}(Animated_1),AnimatedTracking_1=AnimatedTracking,RequestAnimationFrame={current:function(e){return commonjsGlobal.requestAnimationFrame(e)},inject:function(e){RequestAnimationFrame.current=e}},RequestAnimationFrame_1=RequestAnimationFrame,CancelAnimationFrame={current:function(e){return commonjsGlobal.cancelAnimationFrame(e)},inject:function(e){CancelAnimationFrame.current=e}},CancelAnimationFrame_1=CancelAnimationFrame;function tensionFromOrigamiValue(e){return 3.62*(e-30)+194}function frictionFromOrigamiValue(e){return 3*(e-8)+25}function fromOrigamiTensionAndFriction(e,t){return{tension:tensionFromOrigamiValue(e),friction:frictionFromOrigamiValue(t)}}function fromBouncinessAndSpeed(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l,u=r(n(t/1.7,0,20),.5,200),c=(o=i,a=(s=u)<=18?(l=s,7e-4*Math.pow(l,3)-.031*Math.pow(l,2)+.64*l+1.28):s>18&&s<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(s):function(e){return 4.5e-7*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(s),function(e,t,n){return.01*e+(1-e)*a}(2*o-o*o));return{tension:tensionFromOrigamiValue(u),friction:frictionFromOrigamiValue(c)}}var SpringConfig={fromOrigamiTensionAndFriction:fromOrigamiTensionAndFriction,fromBouncinessAndSpeed:fromBouncinessAndSpeed},_inheritsLoose$5=require$$0.inheritsLoose;function withDefault(e,t){return void 0===e||null===e?t:e}var SpringAnimation=function(e){function t(t){var n,r;return(n=e.call(this)||this)._overshootClamping=withDefault(t.overshootClamping,!1),n._restDisplacementThreshold=withDefault(t.restDisplacementThreshold,.001),n._restSpeedThreshold=withDefault(t.restSpeedThreshold,.001),n._initialVelocity=t.velocity,n._lastVelocity=withDefault(t.velocity,0),n._toValue=t.toValue,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,void 0!==t.bounciness||void 0!==t.speed?(invariant_1(void 0===t.tension&&void 0===t.friction,"You can only define bounciness/speed or tension/friction but not both"),r=SpringConfig.fromBouncinessAndSpeed(withDefault(t.bounciness,8),withDefault(t.speed,12))):r=SpringConfig.fromOrigamiTensionAndFriction(withDefault(t.tension,40),withDefault(t.friction,7)),n._tension=r.tension,n._friction=r.friction,n}_inheritsLoose$5(t,e);var n=t.prototype;return n.start=function(e,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=r,this._lastTime=Date.now(),i instanceof t){var o=i.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._lastTime=o.lastTime}void 0!==this._initialVelocity&&null!==this._initialVelocity&&(this._lastVelocity=this._initialVelocity),this.onUpdate()},n.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},n.onUpdate=function(){var e=this._lastPosition,t=this._lastVelocity,n=this._lastPosition,r=this._lastVelocity,i=Date.now();i>this._lastTime+64&&(i=this._lastTime+64);for(var o=Math.floor((i-this._lastTime)/1),a=0;a<o;++a){var s=t,l=this._tension*(this._toValue-n)-this._friction*r,u=(n=e+.001*s/2,r=t+.001*l/2),c=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*u/2;var f=r=t+.001*c/2,p=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*f/2;var _=r=t+.001*p/2,h=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*f/2,r=t+.001*p/2,e+=(s+2*(u+f)+_)/6*.001,t+=(l+2*(c+p)+h)/6*.001}if(this._lastTime=i,this._lastPosition=e,this._lastVelocity=t,this._onUpdate(e),this.__active){var d=!1;this._overshootClamping&&0!==this._tension&&(d=this._startPosition<this._toValue?e>this._toValue:e<this._toValue);var m=Math.abs(t)<=this._restSpeedThreshold,y=!0;if(0!==this._tension&&(y=Math.abs(this._toValue-e)<=this._restDisplacementThreshold),d||m&&y)return 0!==this._tension&&this._onUpdate(this._toValue),void this.__debouncedOnEnd({finished:!0});this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))}},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),SpringAnimation_1=SpringAnimation,_inheritsLoose$6=require$$0.inheritsLoose,AnimatedTransform=function(e){function t(t){var n;return(n=e.call(this)||this)._transforms=t,n}_inheritsLoose$6(t,e);var n=t.prototype;return n.__getValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var r=e[n];t[n]=r instanceof Animated_1?r.__getValue():r}return t})},n.__getAnimatedValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var r=e[n];t[n]=r instanceof Animated_1?r.__getAnimatedValue():r}return t})},n.__attach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var r=t[n];r instanceof Animated_1&&r.__addChild(e)}})},n.__detach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var r=t[n];r instanceof Animated_1&&r.__removeChild(e)}})},t}(AnimatedWithChildren_1),AnimatedTransform_1=AnimatedTransform,FlattenStyle={current:function(e){return e},inject:function(e){FlattenStyle.current=e}},FlattenStyle_1=FlattenStyle,_extends$3=require$$0.extends,_inheritsLoose$7=require$$0.inheritsLoose,AnimatedStyle=function(e){function t(t){var n;return n=e.call(this)||this,!(t=FlattenStyle_1.current(t)||{}).transform||t.transform instanceof Animated_1||(t=_extends$3({},t,{transform:new AnimatedTransform_1(t.transform)})),n._style=t,n}_inheritsLoose$7(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._style){var n=this._style[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__removeChild(this)}},t}(AnimatedWithChildren_1),AnimatedStyle_1=AnimatedStyle,_extends$4=require$$0.extends,_inheritsLoose$8=require$$0.inheritsLoose,AnimatedProps=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=_extends$4({},t,{style:new AnimatedStyle_1(t.style)})),r._props=t,r._callback=n,r.__attach(),r}_inheritsLoose$8(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._props){var n=this._props[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._props){var n=this._props[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__removeChild(this)}},n.update=function(){this._callback()},t}(Animated_1),AnimatedProps_1=AnimatedProps,ApplyAnimatedValues={current:function(e,t){if(!e.setNativeProps)return!1;e.setNativeProps(t)},transformStyles:function(e){return e},inject:function(e,t){ApplyAnimatedValues.current=e,ApplyAnimatedValues.transformStyles=t}},ApplyAnimatedValues_1=ApplyAnimatedValues,_extends$5=require$$0.extends,_objectWithoutProperties$1$1=require$$0.objectWithoutProperties,_inheritsLoose$9=require$$0.inheritsLoose;function createAnimatedComponent(e){var t=function(t){function n(){return t.apply(this,arguments)||this}_inheritsLoose$9(n,t);var r=n.prototype;return r.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},r.setNativeProps=function(e){this.refName&&ApplyAnimatedValues_1.current(this.refName,e,this)||this.forceUpdate()},r.componentWillMount=function(){this.attachProps(this.props)},r.attachProps=function(e){var t=this,n=this._propsAnimated;this._propsAnimated=new AnimatedProps_1(e,function(){t.refName&&ApplyAnimatedValues_1.current(t.refName,t._propsAnimated.__getAnimatedValue(),t)||t.forceUpdate()}),n&&n.__detach()},r.componentWillReceiveProps=function(e){this.attachProps(e)},r.render=function(){var t=this,n=this._propsAnimated.__getValue(),r=n.style,i=_objectWithoutProperties$1$1(n,["style"]);return React.createElement(e,_extends$5({},i,{style:ApplyAnimatedValues_1.transformStyles(r),ref:function(e){return t.refName=e}}))},n}(React.Component);return"production"!==process.env.NODE_ENV&&(t.propTypes={style:function(t,n,r){e.propTypes}}),t}var createAnimatedComponent_1=createAnimatedComponent,spring=function(e,t){return{start:function(n){var r=e,i=t;r.stopTracking(),t.toValue instanceof Animated_1?r.track(new AnimatedTracking_1(r,t.toValue,SpringAnimation_1,i,n)):r.animate(new SpringAnimation_1(i),n)},stop:function(){e.stopAnimation()}}},src={Value:AnimatedValue_1,spring:spring,createAnimatedComponent:createAnimatedComponent_1,inject:{ApplyAnimatedValues:ApplyAnimatedValues_1.inject,InteractionManager:InteractionManager_1.inject,FlattenStyle:FlattenStyle_1.inject,RequestAnimationFrame:RequestAnimationFrame_1.inject,CancelAnimationFrame:CancelAnimationFrame_1.inject},__PropsOnlyForTests:AnimatedProps_1},Spring=function(e){function t(t){var n;n=e.call(this)||this,_initialiseProps.call(_assertThisInitialized(n));var r=t.children,i=t.to,o=t.from;return n.animation=new src.Value(0),n.component=src.createAnimatedComponent(r),n.animations=Object.entries(i).map(function(e){var t=e[0],r=e[1];return{name:t,interpolate:n.animation.interpolate({inputRange:[0,1],outputRange:[void 0!==o[t]?o[t]:r,r]})}}),n.to=n.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),n}_inheritsLoose(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){this.update(e)},n.componentDidMount=function(){this.props.interpolator(this.animation,{toValue:1}).start()},n.render=function(){var e=this.props,t=(e.children,e.to,_objectWithoutProperties(e,["children","to"]));return React.createElement(this.component,_extends({},this.to,t))},t}(React.PureComponent);Spring.defaultProps={to:{},from:{},interpolator:src.spring};var _initialiseProps=function(){var e=this;this.update=function(t){var n=e.animation._value;e.animation.stopAnimation(),e.animation.setValue(0);var r=t.to,i=(t.from,t.interpolator,e.animations),o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var l=s;r[l.name]!==l.to&&(l.interpolate=e.animation.interpolate({inputRange:[0,1],outputRange:[l.interpolate._interpolation(n),r[l.name]]}))}e.to=e.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),e.props.interpolator(e.animation,{toValue:1}).start()}};"production"!==process.env.NODE_ENV&&(Spring.propTypes={to:PropTypes.object,from:PropTypes.object,interpolator:PropTypes.func});export default Spring; |
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var REACT_ELEMENT_TYPE$1,React=_interopDefault(require("react")),PropTypes=_interopDefault(require("prop-types"));function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _objectWithoutProperties(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _jsx$1(e,t,n,i){REACT_ELEMENT_TYPE$1||(REACT_ELEMENT_TYPE$1="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),t&&r)for(var o in r)void 0===t[o]&&(t[o]=r[o]);else t||(t=r||{});if(1===a)t.children=i;else if(a>1){for(var s=new Array(a),u=0;u<a;u++)s[u]=arguments[u+3];t.children=s}return{$$typeof:REACT_ELEMENT_TYPE$1,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _asyncIterator$1(e){if("function"==typeof Symbol){if(Symbol.asyncIterator){var t=e[Symbol.asyncIterator];if(null!=t)return t.call(e)}if(Symbol.iterator)return e[Symbol.iterator]()}throw new TypeError("Object is not async iterable")}function _AwaitValue$1(e){this.wrapped=e}function _AsyncGenerator$1(e){var t,n;function i(t,n){try{var a=e[t](n),o=a.value,s=o instanceof _AwaitValue$1;Promise.resolve(s?o.wrapped:o).then(function(e){s?i("next",e):r(a.done?"return":"normal",e)},function(e){i("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(a,o){var s={key:e,arg:r,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function _wrapAsyncGenerator$1(e){return function(){return new _AsyncGenerator$1(e.apply(this,arguments))}}function _awaitAsyncGenerator$1(e){return new _AwaitValue$1(e)}function _asyncGeneratorDelegate$1(e,t){var n={},i=!1;function r(n,r){return i=!0,r=new Promise(function(t){t(e[n](r))}),{done:!1,value:t(r)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return i?(i=!1,e):r("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(i)throw i=!1,e;return r("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return r("return",e)}),n}function _asyncToGenerator$1(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var a=e.apply(t,n);function o(e,t){try{var n=a[e](t),o=n.value}catch(e){return void r(e)}n.done?i(o):Promise.resolve(o).then(s,u)}function s(e){o("next",e)}function u(e){o("throw",e)}s()})}}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),n&&_defineProperties$1(e,n),e}function _defineEnumerableProperties$1(e,t){for(var n in t){(a=t[n]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n,a)}if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),r=0;r<i.length;r++){var a,o=i[r];(a=t[o]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o,a)}return e}function _defaults$1(e,t){for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i],a=Object.getOwnPropertyDescriptor(t,r);a&&a.configurable&&void 0===e[r]&&Object.defineProperty(e,r,a)}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _get$1(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:_get$1(r,t,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator$1.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator$1.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator$1.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator$1.prototype.return=function(e){return this._invoke("return",e)};var _gPO$1=Object.getPrototypeOf||function(e){return e.__proto__},_sPO$1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_construct$1="object"==typeof Reflect&&Reflect.construct||function(e,t,n){var i,r=[null];return r.push.apply(r,t),i=e.bind.apply(e,r),_sPO$1(new i,n.prototype)},_cache$1="function"==typeof Map&&new Map;function _wrapNativeSuper$1(e){if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache$1){if(_cache$1.has(e))return _cache$1.get(e);_cache$1.set(e,t)}function t(){}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writeable:!0,configurable:!0}}),_sPO$1(t,_sPO$1(function(){return _construct$1(e,arguments,_gPO$1(this).constructor)},e))}function _instanceof$1(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard$1(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}function _newArrowCheck$1(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty$1(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutProperties$1(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _set$1(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var a=Object.getPrototypeOf(e);null!==a&&_set$1(a,t,n,i)}else if("value"in r&&r.writable)r.value=n;else{var o=r.set;void 0!==o&&o.call(i,n)}return n}function _sliceIterator$1(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}function _slicedToArray$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return _sliceIterator$1(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _slicedToArrayLoose$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,i=[],r=e[Symbol.iterator]();!(n=r.next()).done&&(i.push(n.value),!t||i.length!==t););return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _taggedTemplateLiteral$1(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose$1(e,t){return e.raw=t,e}function _temporalRef$1(e,t){if(e===_temporalUndefined$1)throw new ReferenceError(t+" is not defined - temporal dead zone");return e}function _readOnlyError$1(e){throw new Error('"'+e+'" is read-only')}function _classNameTDZError$1(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}var _temporalUndefined$1={};function _toArray$1(e){return Array.isArray(e)?e:Array.from(e)}function _toConsumableArray$1(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _skipFirstGeneratorNext$1(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _toPropertyKey$1(e){return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper$1(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function _initializerDefineProperty$1(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function _applyDecoratedDescriptor$1(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var rollupPluginBabelHelpers=Object.freeze({get typeof(){return _typeof$1},jsx:_jsx$1,asyncIterator:_asyncIterator$1,AwaitValue:_AwaitValue$1,AsyncGenerator:_AsyncGenerator$1,wrapAsyncGenerator:_wrapAsyncGenerator$1,awaitAsyncGenerator:_awaitAsyncGenerator$1,asyncGeneratorDelegate:_asyncGeneratorDelegate$1,asyncToGenerator:_asyncToGenerator$1,classCallCheck:_classCallCheck$1,createClass:_createClass$1,defineEnumerableProperties:_defineEnumerableProperties$1,defaults:_defaults$1,defineProperty:_defineProperty$1,get extends(){return _extends$1},get:_get$1,inherits:_inherits$1,inheritsLoose:_inheritsLoose$1,wrapNativeSuper:_wrapNativeSuper$1,instanceof:_instanceof$1,interopRequireDefault:_interopRequireDefault$1,interopRequireWildcard:_interopRequireWildcard$1,newArrowCheck:_newArrowCheck$1,objectDestructuringEmpty:_objectDestructuringEmpty$1,objectWithoutProperties:_objectWithoutProperties$1,assertThisInitialized:_assertThisInitialized$1,possibleConstructorReturn:_possibleConstructorReturn$1,set:_set$1,slicedToArray:_slicedToArray$1,slicedToArrayLoose:_slicedToArrayLoose$1,taggedTemplateLiteral:_taggedTemplateLiteral$1,taggedTemplateLiteralLoose:_taggedTemplateLiteralLoose$1,temporalRef:_temporalRef$1,readOnlyError:_readOnlyError$1,classNameTDZError:_classNameTDZError$1,temporalUndefined:_temporalUndefined$1,toArray:_toArray$1,toConsumableArray:_toConsumableArray$1,skipFirstGeneratorNext:_skipFirstGeneratorNext$1,toPropertyKey:_toPropertyKey$1,initializerWarningHelper:_initializerWarningHelper$1,initializerDefineProperty:_initializerDefineProperty$1,applyDecoratedDescriptor:_applyDecoratedDescriptor$1}),NODE_ENV=process.env.NODE_ENV,invariant=function(e,t,n,i,r,a,o,s){if("production"!==NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===t)u=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,r,a,o,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},invariant_1=invariant,Animated=function(){function e(){}var t=e.prototype;return t.__attach=function(){},t.__detach=function(){},t.__getValue=function(){},t.__getAnimatedValue=function(){return this.__getValue()},t.__addChild=function(e){},t.__removeChild=function(e){},t.__getChildren=function(){return[]},e}(),Animated_1=Animated,commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},require$$0=rollupPluginBabelHelpers,_inheritsLoose$1$1=require$$0.inheritsLoose,AnimatedWithChildren=function(e){function t(){var t;return(t=e.call(this)||this)._children=[],t}_inheritsLoose$1$1(t,e);var n=t.prototype;return n.__addChild=function(e){0===this._children.length&&this.__attach(),this._children.push(e)},n.__removeChild=function(e){var t=this._children.indexOf(e);-1!==t?(this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")},n.__getChildren=function(){return this._children},t}(Animated_1),AnimatedWithChildren_1=AnimatedWithChildren,InteractionManager={current:{createInteractionHandle:function(){},clearInteractionHandle:function(){}},inject:function(e){InteractionManager.current=e}},InteractionManager_1=InteractionManager;function normalizeColor(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=matchers.hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:names.hasOwnProperty(e)?names[e]:(t=matchers.rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=matchers.rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=matchers.hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=matchers.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=matchers.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=matchers.hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=matchers.hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e,t,n){var i=n<.5?n*(1+t):n+t-n*t,r=2*n-i,a=hue2rgb(r,i,e+1/3),o=hue2rgb(r,i,e),s=hue2rgb(r,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}var NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function toArray(e){return Array.prototype.slice.call(e,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var matchers={rgb:new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba:new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl:new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla:new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function parse255(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100}var names={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};function rgba(e){return{r:Math.round((4278190080&e)>>>24),g:Math.round((16711680&e)>>>16),b:Math.round((65280&e)>>>8),a:((255&e)>>>0)/255}}normalizeColor.rgba=rgba;var normalizeCssColor=normalizeColor,_extends$1$1=require$$0.extends,linear=function(e){return e},Interpolation=function(){function e(){}return e.create=function(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return createInterpolationFromStringOutputRange(e);var t=e.outputRange;checkInfiniteRange("outputRange",t);var n=e.inputRange;checkInfiniteRange("inputRange",n),checkValidInputRange(n),invariant_1(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length");var i=e.easing||linear,r="extend";void 0!==e.extrapolateLeft?r=e.extrapolateLeft:void 0!==e.extrapolate&&(r=e.extrapolate);var a="extend";return void 0!==e.extrapolateRight?a=e.extrapolateRight:void 0!==e.extrapolate&&(a=e.extrapolate),function(e){invariant_1("number"==typeof e,"Cannot interpolation an input which is not a number");var o=findRange(e,n);return interpolate(e,n[o],n[o+1],t[o],t[o+1],i,r,a)}},e}();function interpolate(e,t,n,i,r,a,o,s){var u=e;if(u<t){if("identity"===o)return u;"clamp"===o&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}return i===r?i:t===n?e<=t?i:r:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=a(u),i===-1/0?u=-u:r===1/0?u+=i:u=u*(r-i)+i,u)}function colorToRgba(e){var t=normalizeCssColor(e);return null===t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var stringShapeRegex=/[0-9\.-]+/g;function createInterpolationFromStringOutputRange(e){var t=e.outputRange;invariant_1(t.length>=2,"Bad output range"),checkPattern(t=t.map(colorToRgba));var n=t[0].match(stringShapeRegex).map(function(){return[]});t.forEach(function(e){e.match(stringShapeRegex).forEach(function(e,t){n[t].push(+e)})});var i=t[0].match(stringShapeRegex).map(function(t,i){return Interpolation.create(_extends$1$1({},e,{outputRange:n[i]}))}),r=/^rgb/.test(t[0]);return function(e){var n=0;return t[0].replace(stringShapeRegex,function(){var t=i[n++](e);return String(r&&n<4?Math.round(t):t)})}}function checkPattern(e){for(var t=e[0].replace(stringShapeRegex,""),n=1;n<e.length;++n)invariant_1(t===e[n].replace(stringShapeRegex,""),"invalid pattern "+e[0]+" and "+e[n])}function findRange(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function checkValidInputRange(e){invariant_1(e.length>=2,"inputRange must have at least 2 elements");for(var t=1;t<e.length;++t)invariant_1(e[t]>=e[t-1],"inputRange must be monotonically increasing "+e)}function checkInfiniteRange(e,t){invariant_1(t.length>=2,e+" must have at least 2 elements"),invariant_1(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}var Interpolation_1=Interpolation,_uniqueId=0,guid$1=function(){return String(_uniqueId++)},_inheritsLoose$2=require$$0.inheritsLoose,AnimatedInterpolation=function(e){function t(t,n){var i;return(i=e.call(this)||this)._parent=t,i._interpolation=n,i._listeners={},i}_inheritsLoose$2(t,e);var n=t.prototype;return n.__getValue=function(){var e=this._parent.__getValue();return invariant_1("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)},n.addListener=function(e){var t=this;this._parentListener||(this._parentListener=this._parent.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid$1();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new t(this,Interpolation_1.create(e))},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this),this._parentListener=this._parent.removeListener(this._parentListener)},t}(AnimatedWithChildren_1),AnimatedInterpolation_1=AnimatedInterpolation,Animation=function(){function e(){}var t=e.prototype;return t.start=function(e,t,n,i){},t.stop=function(){},t.__debouncedOnEnd=function(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)},e}(),Animation_1=Animation;function SetPolyfill(){this._cache=[]}SetPolyfill.prototype.add=function(e){-1===this._cache.indexOf(e)&&this._cache.push(e)},SetPolyfill.prototype.forEach=function(e){this._cache.forEach(e)};var SetPolyfill_1=SetPolyfill,_inheritsLoose$3=require$$0.inheritsLoose,Set=commonjsGlobal.Set||SetPolyfill_1;function _flush(e){var t=new Set;!function e(n){"function"==typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach(function(e){return e.update()})}var AnimatedValue=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n._offset=0,n._animation=null,n._listeners={},n}_inheritsLoose$3(t,e);var n=t.prototype;return n.__detach=function(){this.stopAnimation()},n.__getValue=function(){return this._value+this._offset},n.setValue=function(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e)},n.setOffset=function(e){this._offset=e},n.flattenOffset=function(){this._value+=this._offset,this._offset=0},n.addListener=function(e){var t=guid$1();return this._listeners[t]=e,t},n.removeListener=function(e){delete this._listeners[e]},n.removeAllListeners=function(){this._listeners={}},n.stopAnimation=function(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&e(this.__getValue())},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.animate=function(e,t){var n=this,i=null;e.__isInteraction&&(i=InteractionManager_1.current.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,function(e){n._updateValue(e)},function(e){n._animation=null,null!==i&&InteractionManager_1.current.clearInteractionHandle(i),t&&t(e)},r)},n.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},n.track=function(e){this.stopTracking(),this._tracking=e},n._updateValue=function(e){for(var t in this._value=e,_flush(this),this._listeners)this._listeners[t]({value:this.__getValue()})},t}(AnimatedWithChildren_1),AnimatedValue_1=AnimatedValue,_inheritsLoose$4=require$$0.inheritsLoose,AnimatedValueXY=function(e){function t(t){var n;n=e.call(this)||this;var i=t||{x:0,y:0};return"number"==typeof i.x&&"number"==typeof i.y?(n.x=new AnimatedValue_1(i.x),n.y=new AnimatedValue_1(i.y)):(invariant_1(i.x instanceof AnimatedValue_1&&i.y instanceof AnimatedValue_1,"AnimatedValueXY must be initalized with an object of numbers or AnimatedValues."),n.x=i.x,n.y=i.y),n._listeners={},n}_inheritsLoose$4(t,e);var n=t.prototype;return n.setValue=function(e){this.x.setValue(e.x),this.y.setValue(e.y)},n.setOffset=function(e){this.x.setOffset(e.x),this.y.setOffset(e.y)},n.flattenOffset=function(){this.x.flattenOffset(),this.y.flattenOffset()},n.__getValue=function(){return{x:this.x.__getValue(),y:this.y.__getValue()}},n.stopAnimation=function(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())},n.addListener=function(e){var t=this,n=guid$1(),i=function(n){n.value;e(t.__getValue())};return this._listeners[n]={x:this.x.addListener(i),y:this.y.addListener(i)},n},n.removeListener=function(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]},n.getLayout=function(){return{left:this.x,top:this.y}},n.getTranslateTransform=function(){return[{translateX:this.x},{translateY:this.y}]},t}(AnimatedWithChildren_1),AnimatedValueXY_1=AnimatedValueXY,_inheritsLoose$5=require$$0.inheritsLoose,AnimatedAddition=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a="number"==typeof t?new AnimatedValue_1(t):t,i._b="number"==typeof n?new AnimatedValue_1(n):n,i._listeners={},i}_inheritsLoose$5(t,e);var n=t.prototype;return n.__getValue=function(){return this._a.__getValue()+this._b.__getValue()},n.addListener=function(e){var t=this;!this._aListener&&this._a.addListener&&(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})})),!this._bListener&&this._b.addListener&&(this._bListener=this._b.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this),this._b.__addChild(this)},n.__detach=function(){this._a.__removeChild(this),this._b.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedAddition_1=AnimatedAddition,_inheritsLoose$6=require$$0.inheritsLoose,AnimatedMultiplication=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a="number"==typeof t?new AnimatedValue_1(t):t,i._b="number"==typeof n?new AnimatedValue_1(n):n,i._listeners={},i}_inheritsLoose$6(t,e);var n=t.prototype;return n.__getValue=function(){return this._a.__getValue()*this._b.__getValue()},n.addListener=function(e){var t=this;!this._aListener&&this._a.addListener&&(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})})),!this._bListener&&this._b.addListener&&(this._bListener=this._b.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this),this._b.__addChild(this)},n.__detach=function(){this._a.__removeChild(this),this._b.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedMultiplication_1=AnimatedMultiplication,_inheritsLoose$7=require$$0.inheritsLoose,AnimatedModulo=function(e){function t(t,n){var i;return(i=e.call(this)||this)._a=t,i._modulus=n,i._listeners={},i}_inheritsLoose$7(t,e);var n=t.prototype;return n.__getValue=function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus},n.addListener=function(e){var t=this;this._aListener||(this._aListener=this._a.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.__attach=function(){this._a.__addChild(this)},n.__detach=function(){this._a.__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedModulo_1=AnimatedModulo,_inheritsLoose$8=require$$0.inheritsLoose,AnimatedTemplate=function(e){function t(t,n){var i;return(i=e.call(this)||this)._strings=t,i._values=n,i}_inheritsLoose$8(t,e);var n=t.prototype;return n.__transformValue=function(e){return e instanceof Animated_1?e.__getValue():e},n.__getValue=function(){for(var e=this._strings[0],t=0;t<this._values.length;++t)e+=this.__transformValue(this._values[t])+this._strings[1+t];return e},n.__attach=function(){for(var e=0;e<this._values.length;++e)this._values[e]instanceof Animated_1&&this._values[e].__addChild(this)},n.__detach=function(){for(var e=0;e<this._values.length;++e)this._values[e]instanceof Animated_1&&this._values[e].__removeChild(this)},t}(AnimatedWithChildren_1),AnimatedTemplate_1=AnimatedTemplate,_extends$2=require$$0.extends,_inheritsLoose$9=require$$0.inheritsLoose,AnimatedTracking=function(e){function t(t,n,i,r,a){var o;return(o=e.call(this)||this)._value=t,o._parent=n,o._animationClass=i,o._animationConfig=r,o._callback=a,o.__attach(),o}_inheritsLoose$9(t,e);var n=t.prototype;return n.__getValue=function(){return this._parent.__getValue()},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this)},n.update=function(){this._value.animate(new this._animationClass(_extends$2({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)},t}(Animated_1),AnimatedTracking_1=AnimatedTracking;function isAnimated(e){return e instanceof Animated_1}var isAnimated_1=isAnimated,NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="function"==typeof Float32Array;function A(e,t){return 1-3*t+3*e}function B(e,t){return 3*t-6*e}function C(e){return 3*e}function calcBezier(e,t,n){return((A(t,n)*e+B(t,n))*e+C(t))*e}function getSlope(e,t,n){return 3*A(t,n)*e*e+2*B(t,n)*e+C(t)}function binarySubdivide(e,t,n,i,r){var a,o,s=0;do{(a=calcBezier(o=t+(n-t)/2,i,r)-e)>0?n=o:t=o}while(Math.abs(a)>SUBDIVISION_PRECISION&&++s<SUBDIVISION_MAX_ITERATIONS);return o}function newtonRaphsonIterate(e,t,n,i){for(var r=0;r<NEWTON_ITERATIONS;++r){var a=getSlope(t,n,i);if(0===a)return t;t-=(calcBezier(t,n,i)-e)/a}return t}var bezier=function(e,t,n,i){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var r=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);if(e!==t||n!==i)for(var a=0;a<kSplineTableSize;++a)r[a]=calcBezier(a*kSampleStepSize,e,n);return function(a){return e===t&&n===i?a:0===a?0:1===a?1:calcBezier(function(t){for(var i=0,a=1,o=kSplineTableSize-1;a!==o&&r[a]<=t;++a)i+=kSampleStepSize;var s=i+(t-r[--a])/(r[a+1]-r[a])*kSampleStepSize,u=getSlope(s,e,n);return u>=NEWTON_MIN_SLOPE?newtonRaphsonIterate(t,s,e,n):0===u?s:binarySubdivide(t,i,i+kSampleStepSize,e,n)}(a),t,i)}},Easing=function(){function e(){}return e.step0=function(e){return e>0?1:0},e.step1=function(e){return e>=1?1:0},e.linear=function(e){return e},e.ease=function(e){return _ease(e)},e.quad=function(e){return e*e},e.cubic=function(e){return e*e*e},e.poly=function(e){return function(t){return Math.pow(t,e)}},e.sin=function(e){return 1-Math.cos(e*Math.PI/2)},e.circle=function(e){return 1-Math.sqrt(1-e*e)},e.exp=function(e){return Math.pow(2,10*(e-1))},e.elastic=function(e){void 0===e&&(e=1);var t=e*Math.PI;return function(e){return 1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}},e.back=function(e){return void 0===e&&(e=1.70158),function(t){return t*t*((e+1)*t-e)}},e.bounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},e.bezier=function(e,t,n,i){return bezier(e,t,n,i)},e.in=function(e){return e},e.out=function(e){return function(t){return 1-e(1-t)}},e.inOut=function(e){return function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}},e}(),_ease=Easing.bezier(.42,0,1,1),Easing_1=Easing,RequestAnimationFrame={current:function(e){return commonjsGlobal.requestAnimationFrame(e)},inject:function(e){RequestAnimationFrame.current=e}},RequestAnimationFrame_1=RequestAnimationFrame,CancelAnimationFrame={current:function(e){return commonjsGlobal.cancelAnimationFrame(e)},inject:function(e){CancelAnimationFrame.current=e}},CancelAnimationFrame_1=CancelAnimationFrame,_inheritsLoose$10=require$$0.inheritsLoose,easeInOut=Easing_1.inOut(Easing_1.ease),TimingAnimation=function(e){function t(t){var n;return(n=e.call(this)||this)._toValue=t.toValue,n._easing=void 0!==t.easing?t.easing:easeInOut,n._duration=void 0!==t.duration?t.duration:500,n._delay=void 0!==t.delay?t.delay:0,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,n}_inheritsLoose$10(t,e);var n=t.prototype;return n.start=function(e,t,n){var i=this;this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var r=function(){0===i._duration?(i._onUpdate(i._toValue),i.__debouncedOnEnd({finished:!0})):(i._startTime=Date.now(),i._animationFrame=RequestAnimationFrame_1.current(i.onUpdate.bind(i)))};this._delay?this._timeout=setTimeout(r,this._delay):r()},n.onUpdate=function(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this)))},n.stop=function(){this.__active=!1,clearTimeout(this._timeout),CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),TimingAnimation_1=TimingAnimation,_inheritsLoose$11=require$$0.inheritsLoose,DecayAnimation=function(e){function t(t){var n;return(n=e.call(this)||this)._deceleration=void 0!==t.deceleration?t.deceleration:.998,n._velocity=t.velocity,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,n}_inheritsLoose$11(t,e);var n=t.prototype;return n.start=function(e,t,n){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))},n.onUpdate=function(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))))},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),DecayAnimation_1=DecayAnimation;function tensionFromOrigamiValue(e){return 3.62*(e-30)+194}function frictionFromOrigamiValue(e){return 3*(e-8)+25}function fromOrigamiTensionAndFriction(e,t){return{tension:tensionFromOrigamiValue(e),friction:frictionFromOrigamiValue(t)}}function fromBouncinessAndSpeed(e,t){function n(e,t,n){return(e-t)/(n-t)}function i(e,t,n){return t+e*(n-t)}var r=n(e/1.7,0,20);r=i(r,0,.8);var a,o,s,u,l=i(n(t/1.7,0,20),.5,200),c=(a=r,o=(s=l)<=18?(u=s,7e-4*Math.pow(u,3)-.031*Math.pow(u,2)+.64*u+1.28):s>18&&s<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(s):function(e){return 4.5e-7*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(s),function(e,t,n){return e*n+(1-e)*t}(2*a-a*a,o,.01));return{tension:tensionFromOrigamiValue(l),friction:frictionFromOrigamiValue(c)}}var SpringConfig={fromOrigamiTensionAndFriction:fromOrigamiTensionAndFriction,fromBouncinessAndSpeed:fromBouncinessAndSpeed},_inheritsLoose$12=require$$0.inheritsLoose;function withDefault(e,t){return void 0===e||null===e?t:e}var SpringAnimation=function(e){function t(t){var n,i;return(n=e.call(this)||this)._overshootClamping=withDefault(t.overshootClamping,!1),n._restDisplacementThreshold=withDefault(t.restDisplacementThreshold,.001),n._restSpeedThreshold=withDefault(t.restSpeedThreshold,.001),n._initialVelocity=t.velocity,n._lastVelocity=withDefault(t.velocity,0),n._toValue=t.toValue,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,void 0!==t.bounciness||void 0!==t.speed?(invariant_1(void 0===t.tension&&void 0===t.friction,"You can only define bounciness/speed or tension/friction but not both"),i=SpringConfig.fromBouncinessAndSpeed(withDefault(t.bounciness,8),withDefault(t.speed,12))):i=SpringConfig.fromOrigamiTensionAndFriction(withDefault(t.tension,40),withDefault(t.friction,7)),n._tension=i.tension,n._friction=i.friction,n}_inheritsLoose$12(t,e);var n=t.prototype;return n.start=function(e,n,i,r){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=i,this._lastTime=Date.now(),r instanceof t){var a=r.getInternalState();this._lastPosition=a.lastPosition,this._lastVelocity=a.lastVelocity,this._lastTime=a.lastTime}void 0!==this._initialVelocity&&null!==this._initialVelocity&&(this._lastVelocity=this._initialVelocity),this.onUpdate()},n.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},n.onUpdate=function(){var e=this._lastPosition,t=this._lastVelocity,n=this._lastPosition,i=this._lastVelocity,r=Date.now();r>this._lastTime+64&&(r=this._lastTime+64);for(var a=Math.floor((r-this._lastTime)/1),o=0;o<a;++o){var s=t,u=this._tension*(this._toValue-n)-this._friction*i,l=(n=e+.001*s/2,i=t+.001*u/2),c=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*l/2;var _=i=t+.001*c/2,h=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*_/2;var f=i=t+.001*h/2,p=this._tension*(this._toValue-n)-this._friction*i;n=e+.001*_/2,i=t+.001*h/2,e+=.001*((s+2*(l+_)+f)/6),t+=.001*((u+2*(c+h)+p)/6)}if(this._lastTime=r,this._lastPosition=e,this._lastVelocity=t,this._onUpdate(e),this.__active){var d=!1;this._overshootClamping&&0!==this._tension&&(d=this._startPosition<this._toValue?e>this._toValue:e<this._toValue);var m=Math.abs(t)<=this._restSpeedThreshold,y=!0;if(0!==this._tension&&(y=Math.abs(this._toValue-e)<=this._restDisplacementThreshold),d||m&&y)return 0!==this._tension&&this._onUpdate(this._toValue),void this.__debouncedOnEnd({finished:!0});this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))}},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),SpringAnimation_1=SpringAnimation,_inheritsLoose$13=require$$0.inheritsLoose,AnimatedTransform=function(e){function t(t){var n;return(n=e.call(this)||this)._transforms=t,n}_inheritsLoose$13(t,e);var n=t.prototype;return n.__getValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var i=e[n];t[n]=i instanceof Animated_1?i.__getValue():i}return t})},n.__getAnimatedValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var i=e[n];t[n]=i instanceof Animated_1?i.__getAnimatedValue():i}return t})},n.__attach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var i=t[n];i instanceof Animated_1&&i.__addChild(e)}})},n.__detach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var i=t[n];i instanceof Animated_1&&i.__removeChild(e)}})},t}(AnimatedWithChildren_1),AnimatedTransform_1=AnimatedTransform,FlattenStyle={current:function(e){return e},inject:function(e){FlattenStyle.current=e}},FlattenStyle_1=FlattenStyle,_extends$3=require$$0.extends,_inheritsLoose$14=require$$0.inheritsLoose,AnimatedStyle=function(e){function t(t){var n;return n=e.call(this)||this,!(t=FlattenStyle_1.current(t)||{}).transform||t.transform instanceof Animated_1||(t=_extends$3({},t,{transform:new AnimatedTransform_1(t.transform)})),n._style=t,n}_inheritsLoose$14(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._style){var n=this._style[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__removeChild(this)}},t}(AnimatedWithChildren_1),AnimatedStyle_1=AnimatedStyle,_extends$4=require$$0.extends,_inheritsLoose$15=require$$0.inheritsLoose,AnimatedProps=function(e){function t(t,n){var i;return i=e.call(this)||this,t.style&&(t=_extends$4({},t,{style:new AnimatedStyle_1(t.style)})),i._props=t,i._callback=n,i.__attach(),i}_inheritsLoose$15(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._props){var n=this._props[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._props){var n=this._props[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__removeChild(this)}},n.update=function(){this._callback()},t}(Animated_1),AnimatedProps_1=AnimatedProps,ApplyAnimatedValues={current:function(e,t){if(!e.setNativeProps)return!1;e.setNativeProps(t)},transformStyles:function(e){return e},inject:function(e,t){ApplyAnimatedValues.current=e,ApplyAnimatedValues.transformStyles=t}},ApplyAnimatedValues_1=ApplyAnimatedValues,_extends$5=require$$0.extends,_objectWithoutProperties$1$1=require$$0.objectWithoutProperties,_inheritsLoose$16=require$$0.inheritsLoose;function createAnimatedComponent(e){var t=function(t){function n(){return t.apply(this,arguments)||this}_inheritsLoose$16(n,t);var i=n.prototype;return i.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},i.setNativeProps=function(e){this.refName&&ApplyAnimatedValues_1.current(this.refName,e,this)||this.forceUpdate()},i.componentWillMount=function(){this.attachProps(this.props)},i.attachProps=function(e){var t=this,n=this._propsAnimated;this._propsAnimated=new AnimatedProps_1(e,function(){t.refName&&ApplyAnimatedValues_1.current(t.refName,t._propsAnimated.__getAnimatedValue(),t)||t.forceUpdate()}),n&&n.__detach()},i.componentWillReceiveProps=function(e){this.attachProps(e)},i.render=function(){var t=this,n=this._propsAnimated.__getValue(),i=n.style,r=_objectWithoutProperties$1$1(n,["style"]);return React.createElement(e,_extends$5({},r,{style:ApplyAnimatedValues_1.transformStyles(i),ref:function(e){return t.refName=e}}))},n}(React.Component);return"production"!==process.env.NODE_ENV&&(t.propTypes={style:function(t,n,i){e.propTypes}}),t}var createAnimatedComponent_1=createAnimatedComponent,_extends$6=require$$0.extends,maybeVectorAnim=function(e,t,n){if(e instanceof AnimatedValueXY_1){var i=_extends$6({},t),r=_extends$6({},t);for(var a in t){var o=t[a],s=o.x,u=o.y;void 0!==s&&void 0!==u&&(i[a]=s,r[a]=u)}var l=n(e.x,i),c=n(e.y,r);return parallel([l,c],{stopTogether:!1})}return null},spring=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),n.toValue instanceof Animated_1?i.track(new AnimatedTracking_1(i,n.toValue,SpringAnimation_1,r,e)):i.animate(new SpringAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},timing=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),n.toValue instanceof Animated_1?i.track(new AnimatedTracking_1(i,n.toValue,TimingAnimation_1,r,e)):i.animate(new TimingAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},decay=function e(t,n){return maybeVectorAnim(t,n,e)||{start:function(e){var i=t,r=n;i.stopTracking(),i.animate(new DecayAnimation_1(r),e)},stop:function(){t.stopAnimation()}}},sequence=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function i(r){r.finished&&++t!==e.length?e[t].start(i):n&&n(r)})},stop:function(){t<e.length&&e[t].stop()}}},parallel=function(e,t){var n=0,i={},r=!(t&&!1===t.stopTogether),a={start:function(t){n!==e.length?e.forEach(function(o,s){var u=function(o){if(i[s]=!0,++n===e.length)return n=0,void(t&&t(o));!o.finished&&r&&a.stop()};o?o.start(u):u({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach(function(e,t){!i[t]&&e.stop(),i[t]=!0})}};return a},delay=function(e){return timing(new AnimatedValue_1(0),{toValue:0,delay:e,duration:0})},stagger=function(e,t){return parallel(t.map(function(t,n){return sequence([delay(e*n),t])}))},event=function(e,t){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.forEach(function(e,t){!function e(t,n,i){if("number"==typeof n)return invariant_1(t instanceof AnimatedValue_1,"Bad mapping of type "+typeof t+" for key "+i+", event value must map to AnimatedValue"),void t.setValue(n);for(var i in invariant_1("object"==typeof t,"Bad mapping of type "+typeof t+" for key "+i),invariant_1("object"==typeof n,"Bad event of type "+typeof n+" for key "+i),t)e(t[i],n[i],i)}(e,i[t],"arg"+t)}),t&&t.listener&&t.listener.apply(null,i)}},src={Value:AnimatedValue_1,ValueXY:AnimatedValueXY_1,decay:decay,timing:timing,spring:spring,add:function(e,t){return new AnimatedAddition_1(e,t)},multiply:function(e,t){return new AnimatedMultiplication_1(e,t)},modulo:function(e,t){return new AnimatedModulo_1(e,t)},template:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new AnimatedTemplate_1(e,n)},delay:delay,sequence:sequence,parallel:parallel,stagger:stagger,event:event,isAnimated:isAnimated_1,createAnimatedComponent:createAnimatedComponent_1,inject:{ApplyAnimatedValues:ApplyAnimatedValues_1.inject,InteractionManager:InteractionManager_1.inject,FlattenStyle:FlattenStyle_1.inject,RequestAnimationFrame:RequestAnimationFrame_1.inject,CancelAnimationFrame:CancelAnimationFrame_1.inject},__PropsOnlyForTests:AnimatedProps_1},createAnimatedValue=function(e,t,n,i){return{name:t,interpolate:e.interpolate({inputRange:[0,1],outputRange:[n,i]})}},Spring=function(e){function t(t){var n;n=e.call(this)||this,_initialiseProps.call(_assertThisInitialized(n));var i=t.children,r=t.to,a=t.from;return n.animation=new src.Value(0),n.component=src.createAnimatedComponent(i),n.animations=Object.entries(r).map(function(e){var t=e[0],i=e[1];return createAnimatedValue(n.animation,t,void 0!==a[t]?a[t]:i,i)}),n.to=n.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),n}_inheritsLoose(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){this.update(e)},n.componentDidMount=function(){this.props.interpolator(this.animation,{toValue:1}).start()},n.render=function(){var e=this.props,t=(e.children,e.to,_objectWithoutProperties(e,["children","to"]));return React.createElement(this.component,_extends({},this.to,t))},t}(React.PureComponent);Spring.defaultProps={to:{},from:{},interpolator:src.spring};var _initialiseProps=function(){var e=this;this.update=function(t){var n=e.animation._value;e.animation.stopAnimation(),e.animation.setValue(0);var i=t.to,r=(t.from,t.interpolator,e.animations),a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var u=s;i[u.name]!==u.to&&(u.interpolate=e.animation.interpolate({inputRange:[0,1],outputRange:[u.interpolate._interpolation(n),i[u.name]]}))}e.to=e.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),e.props.interpolator(e.animation,{toValue:1}).start()}};"production"!==process.env.NODE_ENV&&(Spring.propTypes={to:PropTypes.object,from:PropTypes.object,interpolator:PropTypes.func}),module.exports=Spring; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var React=_interopDefault(require("react")),PropTypes=_interopDefault(require("prop-types"));function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var REACT_ELEMENT_TYPE$1,NODE_ENV=process.env.NODE_ENV,invariant=function(e,t,n,r,i,o,a,s){if("production"!==NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}},invariant_1=invariant,Animated=function(){function e(){}var t=e.prototype;return t.__attach=function(){},t.__detach=function(){},t.__getValue=function(){},t.__getAnimatedValue=function(){return this.__getValue()},t.__addChild=function(e){},t.__removeChild=function(e){},t.__getChildren=function(){return[]},e}(),Animated_1=Animated,commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _jsx$1(e,t,n,r){REACT_ELEMENT_TYPE$1||(REACT_ELEMENT_TYPE$1="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===o)t.children=r;else if(o>1){for(var s=new Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}return{$$typeof:REACT_ELEMENT_TYPE$1,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _asyncIterator$1(e){if("function"==typeof Symbol){if(Symbol.asyncIterator){var t=e[Symbol.asyncIterator];if(null!=t)return t.call(e)}if(Symbol.iterator)return e[Symbol.iterator]()}throw new TypeError("Object is not async iterable")}function _AwaitValue$1(e){this.wrapped=e}function _AsyncGenerator$1(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof _AwaitValue$1;Promise.resolve(s?a.wrapped:a).then(function(e){s?r("next",e):i(o.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function _wrapAsyncGenerator$1(e){return function(){return new _AsyncGenerator$1(e.apply(this,arguments))}}function _awaitAsyncGenerator$1(e){return new _AwaitValue$1(e)}function _asyncGeneratorDelegate$1(e,t){var n={},r=!1;function i(n,i){return r=!0,i=new Promise(function(t){t(e[n](i))}),{done:!1,value:t(i)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return r?(r=!1,e):i("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return i("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return i("return",e)}),n}function _asyncToGenerator$1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,l)}function s(e){a("next",e)}function l(e){a("throw",e)}s()})}}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),n&&_defineProperties$1(e,n),e}function _defineEnumerableProperties$1(e,t){for(var n in t)(o=t[n]).configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n,o);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(t),i=0;i<r.length;i++){var o,a=r[i];(o=t[a]).configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a,o)}return e}function _defaults$1(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _get$1(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:_get$1(i,t,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0}function _inherits$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator$1.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator$1.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator$1.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator$1.prototype.return=function(e){return this._invoke("return",e)};var _gPO$1=Object.getPrototypeOf||function(e){return e.__proto__},_sPO$1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_construct$1="object"==typeof Reflect&&Reflect.construct||function(e,t,n){var r,i=[null];return i.push.apply(i,t),r=e.bind.apply(e,i),_sPO$1(new r,n.prototype)},_cache$1="function"==typeof Map&&new Map;function _wrapNativeSuper$1(e){if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache$1){if(_cache$1.has(e))return _cache$1.get(e);_cache$1.set(e,t)}function t(){}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writeable:!0,configurable:!0}}),_sPO$1(t,_sPO$1(function(){return _construct$1(e,arguments,_gPO$1(this).constructor)},e))}function _instanceof$1(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard$1(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _newArrowCheck$1(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty$1(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutProperties$1(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn$1(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _set$1(e,t,n,r){var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);null!==o&&_set$1(o,t,n,r)}else if("value"in i&&i.writable)i.value=n;else{var a=i.set;void 0!==a&&a.call(r,n)}return n}function _sliceIterator$1(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function _slicedToArray$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return _sliceIterator$1(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _slicedToArrayLoose$1(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],i=e[Symbol.iterator]();!(n=i.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _taggedTemplateLiteral$1(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose$1(e,t){return e.raw=t,e}function _temporalRef$1(e,t){if(e===_temporalUndefined$1)throw new ReferenceError(t+" is not defined - temporal dead zone");return e}function _readOnlyError$1(e){throw new Error('"'+e+'" is read-only')}function _classNameTDZError$1(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}var _temporalUndefined$1={};function _toArray$1(e){return Array.isArray(e)?e:Array.from(e)}function _toConsumableArray$1(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _skipFirstGeneratorNext$1(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _toPropertyKey$1(e){return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper$1(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function _initializerDefineProperty$1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _applyDecoratedDescriptor$1(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var rollupPluginBabelHelpers=Object.freeze({get typeof(){return _typeof$1},jsx:_jsx$1,asyncIterator:_asyncIterator$1,AwaitValue:_AwaitValue$1,AsyncGenerator:_AsyncGenerator$1,wrapAsyncGenerator:_wrapAsyncGenerator$1,awaitAsyncGenerator:_awaitAsyncGenerator$1,asyncGeneratorDelegate:_asyncGeneratorDelegate$1,asyncToGenerator:_asyncToGenerator$1,classCallCheck:_classCallCheck$1,createClass:_createClass$1,defineEnumerableProperties:_defineEnumerableProperties$1,defaults:_defaults$1,defineProperty:_defineProperty$1,get extends(){return _extends$1},get:_get$1,inherits:_inherits$1,inheritsLoose:_inheritsLoose$1,wrapNativeSuper:_wrapNativeSuper$1,instanceof:_instanceof$1,interopRequireDefault:_interopRequireDefault$1,interopRequireWildcard:_interopRequireWildcard$1,newArrowCheck:_newArrowCheck$1,objectDestructuringEmpty:_objectDestructuringEmpty$1,objectWithoutProperties:_objectWithoutProperties$1,assertThisInitialized:_assertThisInitialized$1,possibleConstructorReturn:_possibleConstructorReturn$1,set:_set$1,slicedToArray:_slicedToArray$1,slicedToArrayLoose:_slicedToArrayLoose$1,taggedTemplateLiteral:_taggedTemplateLiteral$1,taggedTemplateLiteralLoose:_taggedTemplateLiteralLoose$1,temporalRef:_temporalRef$1,readOnlyError:_readOnlyError$1,classNameTDZError:_classNameTDZError$1,temporalUndefined:_temporalUndefined$1,toArray:_toArray$1,toConsumableArray:_toConsumableArray$1,skipFirstGeneratorNext:_skipFirstGeneratorNext$1,toPropertyKey:_toPropertyKey$1,initializerWarningHelper:_initializerWarningHelper$1,initializerDefineProperty:_initializerDefineProperty$1,applyDecoratedDescriptor:_applyDecoratedDescriptor$1}),require$$0=rollupPluginBabelHelpers,_inheritsLoose$1$1=require$$0.inheritsLoose,AnimatedWithChildren=function(e){function t(){var t;return(t=e.call(this)||this)._children=[],t}_inheritsLoose$1$1(t,e);var n=t.prototype;return n.__addChild=function(e){0===this._children.length&&this.__attach(),this._children.push(e)},n.__removeChild=function(e){var t=this._children.indexOf(e);-1!==t?(this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")},n.__getChildren=function(){return this._children},t}(Animated_1),AnimatedWithChildren_1=AnimatedWithChildren,InteractionManager={current:{createInteractionHandle:function(){},clearInteractionHandle:function(){}},inject:function(e){InteractionManager.current=e}},InteractionManager_1=InteractionManager;function normalizeColor(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=matchers.hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:names.hasOwnProperty(e)?names[e]:(t=matchers.rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=matchers.rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=matchers.hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=matchers.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=matchers.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=matchers.hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=matchers.hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=hue2rgb(i,r,e+1/3),a=hue2rgb(i,r,e),s=hue2rgb(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}var NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function toArray(e){return Array.prototype.slice.call(e,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var matchers={rgb:new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba:new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl:new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla:new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function parse255(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100}var names={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};function rgba(e){return{r:Math.round((4278190080&e)>>>24),g:Math.round((16711680&e)>>>16),b:Math.round((65280&e)>>>8),a:((255&e)>>>0)/255}}normalizeColor.rgba=rgba;var normalizeCssColor=normalizeColor,_extends$1$1=require$$0.extends,linear=function(e){return e},Interpolation=function(){function e(){}return e.create=function(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return createInterpolationFromStringOutputRange(e);var t=e.outputRange;checkInfiniteRange("outputRange",t);var n=e.inputRange;checkInfiniteRange("inputRange",n),checkValidInputRange(n),invariant_1(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length");var r=e.easing||linear,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),function(e){invariant_1("number"==typeof e,"Cannot interpolation an input which is not a number");var a=findRange(e,n);return interpolate(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}},e}();function interpolate(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function colorToRgba(e){var t=normalizeCssColor(e);return null===t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var stringShapeRegex=/[0-9\.-]+/g;function createInterpolationFromStringOutputRange(e){var t=e.outputRange;invariant_1(t.length>=2,"Bad output range"),checkPattern(t=t.map(colorToRgba));var n=t[0].match(stringShapeRegex).map(function(){return[]});t.forEach(function(e){e.match(stringShapeRegex).forEach(function(e,t){n[t].push(+e)})});var r=t[0].match(stringShapeRegex).map(function(t,r){return Interpolation.create(_extends$1$1({},e,{outputRange:n[r]}))}),i=/^rgb/.test(t[0]);return function(e){var n=0;return t[0].replace(stringShapeRegex,function(){var t=r[n++](e);return String(i&&n<4?Math.round(t):t)})}}function checkPattern(e){for(var t=e[0].replace(stringShapeRegex,""),n=1;n<e.length;++n)invariant_1(t===e[n].replace(stringShapeRegex,""),"invalid pattern "+e[0]+" and "+e[n])}function findRange(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function checkValidInputRange(e){invariant_1(e.length>=2,"inputRange must have at least 2 elements");for(var t=1;t<e.length;++t)invariant_1(e[t]>=e[t-1],"inputRange must be monotonically increasing "+e)}function checkInfiniteRange(e,t){invariant_1(t.length>=2,e+" must have at least 2 elements"),invariant_1(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}var Interpolation_1=Interpolation,_uniqueId=0,guid=function(){return String(_uniqueId++)},_inheritsLoose$2=require$$0.inheritsLoose,AnimatedInterpolation=function(e){function t(t,n){var r;return(r=e.call(this)||this)._parent=t,r._interpolation=n,r._listeners={},r}_inheritsLoose$2(t,e);var n=t.prototype;return n.__getValue=function(){var e=this._parent.__getValue();return invariant_1("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)},n.addListener=function(e){var t=this;this._parentListener||(this._parentListener=this._parent.addListener(function(){for(var e in t._listeners)t._listeners[e]({value:t.__getValue()})}));var n=guid();return this._listeners[n]=e,n},n.removeListener=function(e){delete this._listeners[e]},n.interpolate=function(e){return new t(this,Interpolation_1.create(e))},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this),this._parentListener=this._parent.removeListener(this._parentListener)},t}(AnimatedWithChildren_1),AnimatedInterpolation_1=AnimatedInterpolation,Animation=function(){function e(){}var t=e.prototype;return t.start=function(e,t,n,r){},t.stop=function(){},t.__debouncedOnEnd=function(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)},e}(),Animation_1=Animation;function SetPolyfill(){this._cache=[]}SetPolyfill.prototype.add=function(e){-1===this._cache.indexOf(e)&&this._cache.push(e)},SetPolyfill.prototype.forEach=function(e){this._cache.forEach(e)};var SetPolyfill_1=SetPolyfill,_inheritsLoose$3=require$$0.inheritsLoose,Set=commonjsGlobal.Set||SetPolyfill_1;function _flush(e){var t=new Set;!function e(n){"function"==typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach(function(e){return e.update()})}var AnimatedValue=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n._offset=0,n._animation=null,n._listeners={},n}_inheritsLoose$3(t,e);var n=t.prototype;return n.__detach=function(){this.stopAnimation()},n.__getValue=function(){return this._value+this._offset},n.setValue=function(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e)},n.setOffset=function(e){this._offset=e},n.flattenOffset=function(){this._value+=this._offset,this._offset=0},n.addListener=function(e){var t=guid();return this._listeners[t]=e,t},n.removeListener=function(e){delete this._listeners[e]},n.removeAllListeners=function(){this._listeners={}},n.stopAnimation=function(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&e(this.__getValue())},n.interpolate=function(e){return new AnimatedInterpolation_1(this,Interpolation_1.create(e))},n.animate=function(e,t){var n=this,r=null;e.__isInteraction&&(r=InteractionManager_1.current.createInteractionHandle());var i=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,function(e){n._updateValue(e)},function(e){n._animation=null,null!==r&&InteractionManager_1.current.clearInteractionHandle(r),t&&t(e)},i)},n.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},n.track=function(e){this.stopTracking(),this._tracking=e},n._updateValue=function(e){for(var t in this._value=e,_flush(this),this._listeners)this._listeners[t]({value:this.__getValue()})},t}(AnimatedWithChildren_1),AnimatedValue_1=AnimatedValue,_extends$2=require$$0.extends,_inheritsLoose$4=require$$0.inheritsLoose,AnimatedTracking=function(e){function t(t,n,r,i,o){var a;return(a=e.call(this)||this)._value=t,a._parent=n,a._animationClass=r,a._animationConfig=i,a._callback=o,a.__attach(),a}_inheritsLoose$4(t,e);var n=t.prototype;return n.__getValue=function(){return this._parent.__getValue()},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this)},n.update=function(){this._value.animate(new this._animationClass(_extends$2({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)},t}(Animated_1),AnimatedTracking_1=AnimatedTracking,RequestAnimationFrame={current:function(e){return commonjsGlobal.requestAnimationFrame(e)},inject:function(e){RequestAnimationFrame.current=e}},RequestAnimationFrame_1=RequestAnimationFrame,CancelAnimationFrame={current:function(e){return commonjsGlobal.cancelAnimationFrame(e)},inject:function(e){CancelAnimationFrame.current=e}},CancelAnimationFrame_1=CancelAnimationFrame;function tensionFromOrigamiValue(e){return 3.62*(e-30)+194}function frictionFromOrigamiValue(e){return 3*(e-8)+25}function fromOrigamiTensionAndFriction(e,t){return{tension:tensionFromOrigamiValue(e),friction:frictionFromOrigamiValue(t)}}function fromBouncinessAndSpeed(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l,u=r(n(t/1.7,0,20),.5,200),c=(o=i,a=(s=u)<=18?(l=s,7e-4*Math.pow(l,3)-.031*Math.pow(l,2)+.64*l+1.28):s>18&&s<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(s):function(e){return 4.5e-7*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(s),function(e,t,n){return.01*e+(1-e)*a}(2*o-o*o));return{tension:tensionFromOrigamiValue(u),friction:frictionFromOrigamiValue(c)}}var SpringConfig={fromOrigamiTensionAndFriction:fromOrigamiTensionAndFriction,fromBouncinessAndSpeed:fromBouncinessAndSpeed},_inheritsLoose$5=require$$0.inheritsLoose;function withDefault(e,t){return void 0===e||null===e?t:e}var SpringAnimation=function(e){function t(t){var n,r;return(n=e.call(this)||this)._overshootClamping=withDefault(t.overshootClamping,!1),n._restDisplacementThreshold=withDefault(t.restDisplacementThreshold,.001),n._restSpeedThreshold=withDefault(t.restSpeedThreshold,.001),n._initialVelocity=t.velocity,n._lastVelocity=withDefault(t.velocity,0),n._toValue=t.toValue,n.__isInteraction=void 0===t.isInteraction||t.isInteraction,void 0!==t.bounciness||void 0!==t.speed?(invariant_1(void 0===t.tension&&void 0===t.friction,"You can only define bounciness/speed or tension/friction but not both"),r=SpringConfig.fromBouncinessAndSpeed(withDefault(t.bounciness,8),withDefault(t.speed,12))):r=SpringConfig.fromOrigamiTensionAndFriction(withDefault(t.tension,40),withDefault(t.friction,7)),n._tension=r.tension,n._friction=r.friction,n}_inheritsLoose$5(t,e);var n=t.prototype;return n.start=function(e,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=r,this._lastTime=Date.now(),i instanceof t){var o=i.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._lastTime=o.lastTime}void 0!==this._initialVelocity&&null!==this._initialVelocity&&(this._lastVelocity=this._initialVelocity),this.onUpdate()},n.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},n.onUpdate=function(){var e=this._lastPosition,t=this._lastVelocity,n=this._lastPosition,r=this._lastVelocity,i=Date.now();i>this._lastTime+64&&(i=this._lastTime+64);for(var o=Math.floor((i-this._lastTime)/1),a=0;a<o;++a){var s=t,l=this._tension*(this._toValue-n)-this._friction*r,u=(n=e+.001*s/2,r=t+.001*l/2),c=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*u/2;var f=r=t+.001*c/2,p=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*f/2;var _=r=t+.001*p/2,h=this._tension*(this._toValue-n)-this._friction*r;n=e+.001*f/2,r=t+.001*p/2,e+=(s+2*(u+f)+_)/6*.001,t+=(l+2*(c+p)+h)/6*.001}if(this._lastTime=i,this._lastPosition=e,this._lastVelocity=t,this._onUpdate(e),this.__active){var d=!1;this._overshootClamping&&0!==this._tension&&(d=this._startPosition<this._toValue?e>this._toValue:e<this._toValue);var m=Math.abs(t)<=this._restSpeedThreshold,y=!0;if(0!==this._tension&&(y=Math.abs(this._toValue-e)<=this._restDisplacementThreshold),d||m&&y)return 0!==this._tension&&this._onUpdate(this._toValue),void this.__debouncedOnEnd({finished:!0});this._animationFrame=RequestAnimationFrame_1.current(this.onUpdate.bind(this))}},n.stop=function(){this.__active=!1,CancelAnimationFrame_1.current(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(Animation_1),SpringAnimation_1=SpringAnimation,_inheritsLoose$6=require$$0.inheritsLoose,AnimatedTransform=function(e){function t(t){var n;return(n=e.call(this)||this)._transforms=t,n}_inheritsLoose$6(t,e);var n=t.prototype;return n.__getValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var r=e[n];t[n]=r instanceof Animated_1?r.__getValue():r}return t})},n.__getAnimatedValue=function(){return this._transforms.map(function(e){var t={};for(var n in e){var r=e[n];t[n]=r instanceof Animated_1?r.__getAnimatedValue():r}return t})},n.__attach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var r=t[n];r instanceof Animated_1&&r.__addChild(e)}})},n.__detach=function(){var e=this;this._transforms.forEach(function(t){for(var n in t){var r=t[n];r instanceof Animated_1&&r.__removeChild(e)}})},t}(AnimatedWithChildren_1),AnimatedTransform_1=AnimatedTransform,FlattenStyle={current:function(e){return e},inject:function(e){FlattenStyle.current=e}},FlattenStyle_1=FlattenStyle,_extends$3=require$$0.extends,_inheritsLoose$7=require$$0.inheritsLoose,AnimatedStyle=function(e){function t(t){var n;return n=e.call(this)||this,!(t=FlattenStyle_1.current(t)||{}).transform||t.transform instanceof Animated_1||(t=_extends$3({},t,{transform:new AnimatedTransform_1(t.transform)})),n._style=t,n}_inheritsLoose$7(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._style){var n=this._style[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._style){var t=this._style[e];t instanceof Animated_1&&t.__removeChild(this)}},t}(AnimatedWithChildren_1),AnimatedStyle_1=AnimatedStyle,_extends$4=require$$0.extends,_inheritsLoose$8=require$$0.inheritsLoose,AnimatedProps=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=_extends$4({},t,{style:new AnimatedStyle_1(t.style)})),r._props=t,r._callback=n,r.__attach(),r}_inheritsLoose$8(t,e);var n=t.prototype;return n.__getValue=function(){var e={};for(var t in this._props){var n=this._props[t];e[t]=n instanceof Animated_1?n.__getValue():n}return e},n.__getAnimatedValue=function(){var e={};for(var t in this._props){var n=this._props[t];n instanceof Animated_1&&(e[t]=n.__getAnimatedValue())}return e},n.__attach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__addChild(this)}},n.__detach=function(){for(var e in this._props){var t=this._props[e];t instanceof Animated_1&&t.__removeChild(this)}},n.update=function(){this._callback()},t}(Animated_1),AnimatedProps_1=AnimatedProps,ApplyAnimatedValues={current:function(e,t){if(!e.setNativeProps)return!1;e.setNativeProps(t)},transformStyles:function(e){return e},inject:function(e,t){ApplyAnimatedValues.current=e,ApplyAnimatedValues.transformStyles=t}},ApplyAnimatedValues_1=ApplyAnimatedValues,_extends$5=require$$0.extends,_objectWithoutProperties$1$1=require$$0.objectWithoutProperties,_inheritsLoose$9=require$$0.inheritsLoose;function createAnimatedComponent(e){var t=function(t){function n(){return t.apply(this,arguments)||this}_inheritsLoose$9(n,t);var r=n.prototype;return r.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},r.setNativeProps=function(e){this.refName&&ApplyAnimatedValues_1.current(this.refName,e,this)||this.forceUpdate()},r.componentWillMount=function(){this.attachProps(this.props)},r.attachProps=function(e){var t=this,n=this._propsAnimated;this._propsAnimated=new AnimatedProps_1(e,function(){t.refName&&ApplyAnimatedValues_1.current(t.refName,t._propsAnimated.__getAnimatedValue(),t)||t.forceUpdate()}),n&&n.__detach()},r.componentWillReceiveProps=function(e){this.attachProps(e)},r.render=function(){var t=this,n=this._propsAnimated.__getValue(),r=n.style,i=_objectWithoutProperties$1$1(n,["style"]);return React.createElement(e,_extends$5({},i,{style:ApplyAnimatedValues_1.transformStyles(r),ref:function(e){return t.refName=e}}))},n}(React.Component);return"production"!==process.env.NODE_ENV&&(t.propTypes={style:function(t,n,r){e.propTypes}}),t}var createAnimatedComponent_1=createAnimatedComponent,spring=function(e,t){return{start:function(n){var r=e,i=t;r.stopTracking(),t.toValue instanceof Animated_1?r.track(new AnimatedTracking_1(r,t.toValue,SpringAnimation_1,i,n)):r.animate(new SpringAnimation_1(i),n)},stop:function(){e.stopAnimation()}}},src={Value:AnimatedValue_1,spring:spring,createAnimatedComponent:createAnimatedComponent_1,inject:{ApplyAnimatedValues:ApplyAnimatedValues_1.inject,InteractionManager:InteractionManager_1.inject,FlattenStyle:FlattenStyle_1.inject,RequestAnimationFrame:RequestAnimationFrame_1.inject,CancelAnimationFrame:CancelAnimationFrame_1.inject},__PropsOnlyForTests:AnimatedProps_1},Spring=function(e){function t(t){var n;n=e.call(this)||this,_initialiseProps.call(_assertThisInitialized(n));var r=t.children,i=t.to,o=t.from;return n.animation=new src.Value(0),n.component=src.createAnimatedComponent(r),n.animations=Object.entries(i).map(function(e){var t=e[0],r=e[1];return{name:t,interpolate:n.animation.interpolate({inputRange:[0,1],outputRange:[void 0!==o[t]?o[t]:r,r]})}}),n.to=n.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),n}_inheritsLoose(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){this.update(e)},n.componentDidMount=function(){this.props.interpolator(this.animation,{toValue:1}).start()},n.render=function(){var e=this.props,t=(e.children,e.to,_objectWithoutProperties(e,["children","to"]));return React.createElement(this.component,_extends({},this.to,t))},t}(React.PureComponent);Spring.defaultProps={to:{},from:{},interpolator:src.spring};var _initialiseProps=function(){var e=this;this.update=function(t){var n=e.animation._value;e.animation.stopAnimation(),e.animation.setValue(0);var r=t.to,i=(t.from,t.interpolator,e.animations),o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var l=s;r[l.name]!==l.to&&(l.interpolate=e.animation.interpolate({inputRange:[0,1],outputRange:[l.interpolate._interpolation(n),r[l.name]]}))}e.to=e.animations.reduce(function(e,t){var n;return _extends({},e,((n={})[t.name]=t.interpolate,n))},{}),e.props.interpolator(e.animation,{toValue:1}).start()}};"production"!==process.env.NODE_ENV&&(Spring.propTypes={to:PropTypes.object,from:PropTypes.object,interpolator:PropTypes.func}),module.exports=Spring; |
{ | ||
"name": "react-spring", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Animate React with ease", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-spring", |
@@ -5,7 +5,2 @@ import React from 'react' | ||
const createAnimatedValue = (animation, name, from, to) => ({ | ||
name, | ||
interpolate: animation.interpolate({ inputRange: [0, 1], outputRange: [from, to] }), | ||
}) | ||
export default class Spring extends React.PureComponent { | ||
@@ -20,5 +15,9 @@ static propTypes = { to: PropTypes.object, from: PropTypes.object, interpolator: PropTypes.func } | ||
this.component = Animated.createAnimatedComponent(children) | ||
this.animations = Object.entries(to).map(([key, value]) => | ||
createAnimatedValue(this.animation, key, from[key] !== undefined ? from[key] : value, value), | ||
) | ||
this.animations = Object.entries(to).map(([name, value]) => ({ | ||
name, | ||
interpolate: this.animation.interpolate({ | ||
inputRange: [0, 1], | ||
outputRange: [from[name] !== undefined ? from[name] : value, value], | ||
}), | ||
})) | ||
this.to = this.animations.reduce((acc, anim) => ({ ...acc, [anim.name]: anim.interpolate }), {}) | ||
@@ -25,0 +24,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185381
502
1