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AHP,IAAUA,CAOnC,EA/GuB,CACpB,IACA,UACA,QACA,QACA,IACA,aACA,OACA,KACA,SACA,SACA,UACA,OACA,OACA,MACA,WACA,OACA,WACA,SACA,MACA,KACA,QACA,WACA,aACA,SACA,SACA,OACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,IACA,SACA,MACA,QACA,QACA,SACA,KACA,MACA,SACA,KACA,SACA,IACA,QACA,UACA,MACA,WACA,IACA,UACA,SACA,OACA,SACA,QACA,QACA,KACA,WACA,QACA,KACA,QACA,OACA,QACA,KACA,KACA,QACA,SACA,WACA,OACA,UACA,IACA,QACA,OACA,iBACA,OACA,OACA,UACA,UACA,WACA,iBACA,OACA,OACA,MACA,OACA,SAwBcoS,QAAO,SAAUC,EAAKrS,GAEpC,OADAqS,EAAIrS,GAAO2tC,GAAuB3tC,GAC3BqS,CACX,GAAG27B,IAEH,IAAIE,GAAS,SAAUtR,GAGnB,OAFUA,GAASA,EAAM58B,KACW,kBAAd48B,EAAM58B,IAAmB48B,EAAM58B,IAAImuC,WAAavR,EAAM58B,KAC5DyG,QAAQ,KAAM,GAClC,EACI2nC,GAAe,SAAUpoB,EAAS3I,GAClC,OAAO,IAAA2B,eAAcgH,EAAQzjB,KAAM,EAAS,EAAS,CAAEvC,IAAKgmB,EAAQhmB,IAAK6rC,IAAK7lB,EAAQ6lB,KAAOxuB,GAAQ2I,EAAQ3I,OACjH,EA0EIgxB,GAA4B,SAAWhxB,EAAOC,GAC9C,IAAIgxB,EA1Ee,SAAUx/B,EAAIG,GACjC,IAAIs/B,EAAoBt/B,EAAGs/B,kBAAmBC,EAAkBv/B,EAAGu/B,gBAAiBC,EAAiBx/B,EAAGw/B,eAAgBC,EAAkBz/B,EAAGy/B,gBAAiBC,EAAuB1/B,EAAG0/B,qBACpLC,EAAmB9/B,EAAGmtB,SAAU4S,EAAe//B,EAAG+/B,aAAcC,EAAYhgC,EAAGggC,UAAWC,EAAWjgC,EAAGigC,SAAUC,EA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yB,IAAcmyB,EAAOhkE,EAAKysC,GAAOo0B,CAE5C,CAEA,OAAO,OAAa3gE,GAAM,SAAUS,GAClC,OAAOT,EAAK,KAAMS,EACpB,GAAGP,EACL,CAEA,SAASokE,EAAUv/D,EAAkBw/D,GACnC,IAAK,IAAIz+D,EAAOC,UAAUhE,OAAQ4D,EAAO,IAAI1E,MAAM6E,EAAO,EAAIA,EAAO,EAAI,GAAIE,EAAO,EAAGA,EAAOF,EAAME,IAClGL,EAAKK,EAAO,GAAKD,UAAUC,GAG7B,IAYI5E,EAZAojE,EAAQ,CACV1kE,MAAM,EACND,OAAO,OAAKkF,IAWV0/D,EAAY,SAAmBC,GACjC,OAAOtjE,EAASsjE,CAClB,EAEA,OAAOV,EAAY,CACjBW,GAAI,WACF,MAAO,CACLhzB,UAAW,KACXgvB,OAAQ6D,EACRL,aAAcM,EAElB,EACAG,GAAI,WACF,MAAO,CACLjzB,UAAW,KACXgvB,QAvBqB+D,EAuBPtjE,EAtBX,CACLtB,MAAM,EACND,MAAO,IAAKd,WAAM,EAAQ,CAACwlE,GAAQzlE,OAAO6G,EAAM,CAAC++D,QAHzC,IAAeA,CAyBzB,GACC,KAAM,aAAeX,EAASh/D,GAAoB,KAAOw/D,EAAOrkE,KAAO,IAC5E,CAsSA,SAAS2kE,EAAY9/D,EAAkBw/D,GAKrC,IAAK,IAAIz+D,EAAOC,UAAUhE,OAAQ4D,EAAO,IAAI1E,MAAM6E,EAAO,EAAIA,EAAO,EAAI,GAAIE,EAAO,EAAGA,EAAOF,EAAME,IAClGL,EAAKK,EAAO,GAAKD,UAAUC,GAG7B,OAAO,IAAKjH,WAAM,EAAQ,CAACulE,EAAWv/D,EAAkBw/D,GAAQzlE,OAAO6G,GACzE","sources":["webpack://sunseasons24/./node_modules/@redux-saga/core/dist/io-c3792963.js","webpack://sunseasons24/./node_modules/@redux-saga/is/dist/redux-saga-is.esm.js","webpack://sunseasons24/./node_modules/@redux-saga/symbols/dist/redux-saga-symbols.esm.js","webpack://sunseasons24/./node_modules/invariant/browser.js","webpack://sunseasons24/./node_modules/lodash/_assignMergeValue.js","webpack://sunseasons24/./node_modules/lodash/_baseMerge.js","webpack://sunseasons24/./node_modules/lodash/_baseMergeDeep.js","webpack://sunseasons24/./node_modules/lodash/_createAssigner.js","webpack://sunseasons24/./node_modules/lodash/_safeGet.js","webpack://sunseasons24/./node_modules/lodash/isArrayLikeObject.js","webpack://sunseasons24/./node_modules/lodash/mapValues.js","webpack://sunseasons24/./node_modules/lodash/merge.js","webpack://sunseasons24/./node_modules/lodash/toPlainObject.js","webpack://sunseasons24/./node_modules/object-assign/index.js","webpack://sunseasons24/./node_modules/tslib/tslib.es6.js","webpack://sunseasons24/./node_modules/style-value-types/dist/style-value-types.es.js","webpack://sunseasons24/./node_modules/framesync/dist/framesync.es.js","webpack://sunseasons24/./node_modules/@popmotion/easing/dist/easing.es.js","webpack://sunseasons24/./node_modules/@popmotion/popcorn/dist/popcorn.es.js","webpack://sunseasons24/./node_modules/stylefire/dist/stylefire.es.js","webpack://sunseasons24/./node_modules/popmotion/dist/popmotion.es.js","webpack://sunseasons24/./node_modules/pose-core/dist/pose-core.es.js","webpack://sunseasons24/./node_modules/popmotion-pose/dist/popmotion-pose.es.js","webpack://sunseasons24/./node_modules/@emotion/is-prop-valid/node_modules/@emotion/memoize/dist/memoize.browser.esm.js","webpack://sunseasons24/./node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js","webpack://sunseasons24/./node_modules/react-pose/dist/react-pose.es.js","webpack://sunseasons24/./node_modules/react-url-query/lib/UrlQueryParamTypes.js","webpack://sunseasons24/./node_modules/react-url-query/lib/UrlUpdateTypes.js","webpack://sunseasons24/./node_modules/react-url-query/lib/configureUrlQuery.js","webpack://sunseasons24/./node_modules/react-url-query/lib/index.js","webpack://sunseasons24/./node_modules/react-url-query/lib/react/RouterToUrlQuery.js","webpack://sunseasons24/./node_modules/react-url-query/lib/react/addUrlProps.js","webpack://sunseasons24/./node_modules/react-url-query/lib/redux/updateUrlQueryFromAction.js","webpack://sunseasons24/./node_modules/react-url-query/lib/redux/urlAction.js","webpack://sunseasons24/./node_modules/react-url-query/lib/redux/urlQueryMiddleware.js","webpack://sunseasons24/./node_modules/react-url-query/lib/redux/urlQueryReducer.js","webpack://sunseasons24/./node_modules/react-url-query/lib/serialize.js","webpack://sunseasons24/./node_modules/react-url-query/lib/updateUrlQuery.js","webpack://sunseasons24/./node_modules/react-url-query/lib/urlQueryConfig.js","webpack://sunseasons24/./node_modules/react-url-query/lib/urlQueryDecoder.js","webpack://sunseasons24/./node_modules/react-url-query/lib/urlQueryEncoder.js","webpack://sunseasons24/./node_modules/react-url-query/lib/utils/subquery.js","webpack://sunseasons24/./node_modules/react-url-query/lib/utils/subqueryOmit.js","webpack://sunseasons24/./node_modules/react-url-query/node_modules/query-string/index.js","webpack://sunseasons24/./node_modules/react-url-query/node_modules/strict-uri-encode/index.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isNull.js","webpack://sunseasons24/./node_modules/redux-actions/es/createAction.js","webpack://sunseasons24/./node_modules/reduce-reducers/es/index.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isPlainObject.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isMap.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/ownKeys.js","webpack://sunseasons24/./node_modules/redux-actions/es/constants.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/get.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/flattenWhenNode.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/flattenReducerMap.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/hasGeneratorInterface.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isNil.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isUndefined.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/toString.js","webpack://sunseasons24/./node_modules/redux-actions/es/handleActions.js","webpack://sunseasons24/./node_modules/redux-actions/es/handleAction.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/identity.js","webpack://sunseasons24/./node_modules/redux-actions/es/utils/isFunction.js","webpack://sunseasons24/./node_modules/redux-devtools-extension/index.js","webpack://sunseasons24/./node_modules/redux-form/es/createFieldProps.js","webpack://sunseasons24/./node_modules/redux-form/es/events/getValue.js","webpack://sunseasons24/./node_modules/redux-form/es/isReactNative.js","webpack://sunseasons24/./node_modules/redux-form/es/events/onChangeValue.js","webpack://sunseasons24/./node_modules/redux-form/es/util/eventConsts.js","webpack://sunseasons24/./node_modules/redux-form/es/util/validateComponentProp.js","webpack://sunseasons24/./node_modules/redux-form/es/ConnectedField.js","webpack://sunseasons24/./node_modules/redux-form/es/util/shallowCompare.js","webpack://sunseasons24/./node_modules/redux-form/es/util/prefixName.js","webpack://sunseasons24/./node_modules/redux-form/es/createField.js","webpack://sunseasons24/./node_modules/redux-form/es/Field.js","webpack://sunseasons24/./node_modules/redux-form/es/ReduxFormContext.js","webpack://sunseasons24/./node_modules/redux-form/es/events/isEvent.js","webpack://sunseasons24/./node_modules/redux-form/es/actions.js","webpack://sunseasons24/./node_modules/redux-form/es/asyncValidation.js","webpack://sunseasons24/./node_modules/redux-form/es/defaultShouldAsyncValidate.js","webpack://sunseasons24/./node_modules/redux-form/es/defaultShouldValidate.js","webpack://sunseasons24/./node_modules/redux-form/es/defaultShouldError.js","webpack://sunseasons24/./node_modules/redux-form/es/defaultShouldWarn.js","webpack://sunseasons24/./node_modules/redux-form/es/events/silenceEvent.js","webpack://sunseasons24/./node_modules/redux-form/es/events/silenceEvents.js","webpack://sunseasons24/./node_modules/redux-form/es/generateValidator.js","webpack://sunseasons24/./node_modules/es6-error/es6/index.js","webpack://sunseasons24/./node_modules/redux-form/es/SubmissionError.js","webpack://sunseasons24/./node_modules/redux-form/es/handleSubmit.js","webpack://sunseasons24/./node_modules/redux-form/es/hasError.js","webpack://sunseasons24/./node_modules/redux-form/es/selectors/isValid.js","webpack://sunseasons24/./node_modules/redux-form/es/util/getDisplayName.js","webpack://sunseasons24/./node_modules/redux-form/es/createReduxForm.js","webpack://sunseasons24/./node_modules/redux-form/es/reduxForm.js","webpack://sunseasons24/./node_modules/redux-form/es/util/isHotReloading.js","webpack://sunseasons24/./node_modules/@redux-saga/deferred/dist/redux-saga-deferred.esm.js","webpack://sunseasons24/./node_modules/@redux-saga/core/dist/redux-saga-core.esm.js","webpack://sunseasons24/./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js","webpack://sunseasons24/./node_modules/@redux-saga/core/dist/redux-saga-effects.esm.js"],"sourcesContent":["import { TASK_CANCEL, TERMINATE, SAGA_LOCATION, SAGA_ACTION, IO, SELF_CANCELLATION } from '@redux-saga/symbols';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport { array, notUndef, pattern, multicast, channel, undef, effect, task, func, buffer, string, object } from '@redux-saga/is';\nimport delayP from '@redux-saga/delay-p';\n\nvar konst = function konst(v) {\n return function () {\n return v;\n };\n};\nvar kTrue =\n/*#__PURE__*/\nkonst(true);\n\nvar noop = function noop() {};\n\nif (process.env.NODE_ENV !== 'production' && typeof Proxy !== 'undefined') {\n noop =\n /*#__PURE__*/\n new Proxy(noop, {\n set: function set() {\n throw internalErr('There was an attempt to assign a property to internal `noop` function.');\n }\n });\n}\nvar identity = function identity(v) {\n return v;\n};\nvar hasSymbol = typeof Symbol === 'function';\nvar asyncIteratorSymbol = hasSymbol && Symbol.asyncIterator ? Symbol.asyncIterator : '@@asyncIterator';\nfunction check(value, predicate, error) {\n if (!predicate(value)) {\n throw new Error(error);\n }\n}\nvar assignWithSymbols = function assignWithSymbols(target, source) {\n _extends(target, source);\n\n if (Object.getOwnPropertySymbols) {\n Object.getOwnPropertySymbols(source).forEach(function (s) {\n target[s] = source[s];\n });\n }\n};\nvar flatMap = function flatMap(mapper, arr) {\n var _ref;\n\n return (_ref = []).concat.apply(_ref, arr.map(mapper));\n};\nfunction remove(array, item) {\n var index = array.indexOf(item);\n\n if (index >= 0) {\n array.splice(index, 1);\n }\n}\nfunction once(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n fn();\n };\n}\n\nvar kThrow = function kThrow(err) {\n throw err;\n};\n\nvar kReturn = function kReturn(value) {\n return {\n value: value,\n done: true\n };\n};\n\nfunction makeIterator(next, thro, name) {\n if (thro === void 0) {\n thro = kThrow;\n }\n\n if (name === void 0) {\n name = 'iterator';\n }\n\n var iterator = {\n meta: {\n name: name\n },\n next: next,\n throw: thro,\n return: kReturn,\n isSagaIterator: true\n };\n\n if (typeof Symbol !== 'undefined') {\n iterator[Symbol.iterator] = function () {\n return iterator;\n };\n }\n\n return iterator;\n}\nfunction logError(error, _ref2) {\n var sagaStack = _ref2.sagaStack;\n\n /*eslint-disable no-console*/\n console.error(error);\n console.error(sagaStack);\n}\nvar internalErr = function internalErr(err) {\n return new Error(\"\\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\\n Error: \" + err + \"\\n\");\n};\nvar createSetContextWarning = function createSetContextWarning(ctx, props) {\n return (ctx ? ctx + '.' : '') + \"setContext(props): argument \" + props + \" is not a plain object\";\n};\nvar FROZEN_ACTION_ERROR = \"You can't put (a.k.a. dispatch from saga) frozen actions.\\nWe have to define a special non-enumerable property on those actions for scheduling purposes.\\nOtherwise you wouldn't be able to communicate properly between sagas & other subscribers (action ordering would become far less predictable).\\nIf you are using redux and you care about this behaviour (frozen actions),\\nthen you might want to switch to freezing actions in a middleware rather than in action creator.\\nExample implementation:\\n\\nconst freezeActions = store => next => action => next(Object.freeze(action))\\n\"; // creates empty, but not-holey array\n\nvar createEmptyArray = function createEmptyArray(n) {\n return Array.apply(null, new Array(n));\n};\nvar wrapSagaDispatch = function wrapSagaDispatch(dispatch) {\n return function (action) {\n if (process.env.NODE_ENV !== 'production') {\n check(action, function (ac) {\n return !Object.isFrozen(ac);\n }, FROZEN_ACTION_ERROR);\n }\n\n return dispatch(Object.defineProperty(action, SAGA_ACTION, {\n value: true\n }));\n };\n};\nvar shouldTerminate = function shouldTerminate(res) {\n return res === TERMINATE;\n};\nvar shouldCancel = function shouldCancel(res) {\n return res === TASK_CANCEL;\n};\nvar shouldComplete = function shouldComplete(res) {\n return shouldTerminate(res) || shouldCancel(res);\n};\nfunction createAllStyleChildCallbacks(shape, parentCallback) {\n var keys = Object.keys(shape);\n var totalCount = keys.length;\n\n if (process.env.NODE_ENV !== 'production') {\n check(totalCount, function (c) {\n return c > 0;\n }, 'createAllStyleChildCallbacks: get an empty array or object');\n }\n\n var completedCount = 0;\n var completed;\n var results = array(shape) ? createEmptyArray(totalCount) : {};\n var childCallbacks = {};\n\n function checkEnd() {\n if (completedCount === totalCount) {\n completed = true;\n parentCallback(results);\n }\n }\n\n keys.forEach(function (key) {\n var chCbAtKey = function chCbAtKey(res, isErr) {\n if (completed) {\n return;\n }\n\n if (isErr || shouldComplete(res)) {\n parentCallback.cancel();\n parentCallback(res, isErr);\n } else {\n results[key] = res;\n completedCount++;\n checkEnd();\n }\n };\n\n chCbAtKey.cancel = noop;\n childCallbacks[key] = chCbAtKey;\n });\n\n parentCallback.cancel = function () {\n if (!completed) {\n completed = true;\n keys.forEach(function (key) {\n return childCallbacks[key].cancel();\n });\n }\n };\n\n return childCallbacks;\n}\nfunction getMetaInfo(fn) {\n return {\n name: fn.name || 'anonymous',\n location: getLocation(fn)\n };\n}\nfunction getLocation(instrumented) {\n return instrumented[SAGA_LOCATION];\n}\n\nvar BUFFER_OVERFLOW = \"Channel's Buffer overflow!\";\nvar ON_OVERFLOW_THROW = 1;\nvar ON_OVERFLOW_DROP = 2;\nvar ON_OVERFLOW_SLIDE = 3;\nvar ON_OVERFLOW_EXPAND = 4;\nvar zeroBuffer = {\n isEmpty: kTrue,\n put: noop,\n take: noop\n};\n\nfunction ringBuffer(limit, overflowAction) {\n if (limit === void 0) {\n limit = 10;\n }\n\n var arr = new Array(limit);\n var length = 0;\n var pushIndex = 0;\n var popIndex = 0;\n\n var push = function push(it) {\n arr[pushIndex] = it;\n pushIndex = (pushIndex + 1) % limit;\n length++;\n };\n\n var take = function take() {\n if (length != 0) {\n var it = arr[popIndex];\n arr[popIndex] = null;\n length--;\n popIndex = (popIndex + 1) % limit;\n return it;\n }\n };\n\n var flush = function flush() {\n var items = [];\n\n while (length) {\n items.push(take());\n }\n\n return items;\n };\n\n return {\n isEmpty: function isEmpty() {\n return length == 0;\n },\n put: function put(it) {\n if (length < limit) {\n push(it);\n } else {\n var doubledLimit;\n\n switch (overflowAction) {\n case ON_OVERFLOW_THROW:\n throw new Error(BUFFER_OVERFLOW);\n\n case ON_OVERFLOW_SLIDE:\n arr[pushIndex] = it;\n pushIndex = (pushIndex + 1) % limit;\n popIndex = pushIndex;\n break;\n\n case ON_OVERFLOW_EXPAND:\n doubledLimit = 2 * limit;\n arr = flush();\n length = arr.length;\n pushIndex = arr.length;\n popIndex = 0;\n arr.length = doubledLimit;\n limit = doubledLimit;\n push(it);\n break;\n\n default: // DROP\n\n }\n }\n },\n take: take,\n flush: flush\n };\n}\n\nvar none = function none() {\n return zeroBuffer;\n};\nvar fixed = function fixed(limit) {\n return ringBuffer(limit, ON_OVERFLOW_THROW);\n};\nvar dropping = function dropping(limit) {\n return ringBuffer(limit, ON_OVERFLOW_DROP);\n};\nvar sliding = function sliding(limit) {\n return ringBuffer(limit, ON_OVERFLOW_SLIDE);\n};\nvar expanding = function expanding(initialSize) {\n return ringBuffer(initialSize, ON_OVERFLOW_EXPAND);\n};\n\nvar buffers = /*#__PURE__*/Object.freeze({\n __proto__: null,\n none: none,\n fixed: fixed,\n dropping: dropping,\n sliding: sliding,\n expanding: expanding\n});\n\nvar TAKE = 'TAKE';\nvar PUT = 'PUT';\nvar ALL = 'ALL';\nvar RACE = 'RACE';\nvar CALL = 'CALL';\nvar CPS = 'CPS';\nvar FORK = 'FORK';\nvar JOIN = 'JOIN';\nvar CANCEL = 'CANCEL';\nvar SELECT = 'SELECT';\nvar ACTION_CHANNEL = 'ACTION_CHANNEL';\nvar CANCELLED = 'CANCELLED';\nvar FLUSH = 'FLUSH';\nvar GET_CONTEXT = 'GET_CONTEXT';\nvar SET_CONTEXT = 'SET_CONTEXT';\n\nvar effectTypes = /*#__PURE__*/Object.freeze({\n __proto__: null,\n TAKE: TAKE,\n PUT: PUT,\n ALL: ALL,\n RACE: RACE,\n CALL: CALL,\n CPS: CPS,\n FORK: FORK,\n JOIN: JOIN,\n CANCEL: CANCEL,\n SELECT: SELECT,\n ACTION_CHANNEL: ACTION_CHANNEL,\n CANCELLED: CANCELLED,\n FLUSH: FLUSH,\n GET_CONTEXT: GET_CONTEXT,\n SET_CONTEXT: SET_CONTEXT\n});\n\nvar TEST_HINT = '\\n(HINT: if you are getting these errors in tests, consider using createMockTask from @redux-saga/testing-utils)';\n\nvar makeEffect = function makeEffect(type, payload) {\n var _ref;\n\n return _ref = {}, _ref[IO] = true, _ref.combinator = false, _ref.type = type, _ref.payload = payload, _ref;\n};\n\nvar isForkEffect = function isForkEffect(eff) {\n return effect(eff) && eff.type === FORK;\n};\n\nvar detach = function detach(eff) {\n if (process.env.NODE_ENV !== 'production') {\n check(eff, isForkEffect, 'detach(eff): argument must be a fork effect');\n }\n\n return makeEffect(FORK, _extends({}, eff.payload, {\n detached: true\n }));\n};\nfunction take(patternOrChannel, multicastPattern) {\n if (patternOrChannel === void 0) {\n patternOrChannel = '*';\n }\n\n if (process.env.NODE_ENV !== 'production' && arguments.length) {\n check(arguments[0], notUndef, 'take(patternOrChannel): patternOrChannel is undefined');\n }\n\n if (pattern(patternOrChannel)) {\n if (notUndef(multicastPattern)) {\n /* eslint-disable no-console */\n console.warn(\"take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types\");\n }\n\n return makeEffect(TAKE, {\n pattern: patternOrChannel\n });\n }\n\n if (multicast(patternOrChannel) && notUndef(multicastPattern) && pattern(multicastPattern)) {\n return makeEffect(TAKE, {\n channel: patternOrChannel,\n pattern: multicastPattern\n });\n }\n\n if (channel(patternOrChannel)) {\n if (notUndef(multicastPattern)) {\n /* eslint-disable no-console */\n console.warn(\"take(channel) takes one argument but two were provided. Second argument is ignored.\");\n }\n\n return makeEffect(TAKE, {\n channel: patternOrChannel\n });\n }\n\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\"take(patternOrChannel): argument \" + patternOrChannel + \" is not valid channel or a valid pattern\");\n }\n}\nvar takeMaybe = function takeMaybe() {\n var eff = take.apply(void 0, arguments);\n eff.payload.maybe = true;\n return eff;\n};\nfunction put(channel$1, action) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n check(channel$1, notUndef, 'put(channel, action): argument channel is undefined');\n check(channel$1, channel, \"put(channel, action): argument \" + channel$1 + \" is not a valid channel\");\n check(action, notUndef, 'put(channel, action): argument action is undefined');\n } else {\n check(channel$1, notUndef, 'put(action): argument action is undefined');\n }\n }\n\n if (undef(action)) {\n action = channel$1; // `undefined` instead of `null` to make default parameter work\n\n channel$1 = undefined;\n }\n\n return makeEffect(PUT, {\n channel: channel$1,\n action: action\n });\n}\nvar putResolve = function putResolve() {\n var eff = put.apply(void 0, arguments);\n eff.payload.resolve = true;\n return eff;\n};\nfunction all(effects) {\n var eff = makeEffect(ALL, effects);\n eff.combinator = true;\n return eff;\n}\nfunction race(effects) {\n var eff = makeEffect(RACE, effects);\n eff.combinator = true;\n return eff;\n} // this match getFnCallDescriptor logic\n\nvar validateFnDescriptor = function validateFnDescriptor(effectName, fnDescriptor) {\n check(fnDescriptor, notUndef, effectName + \": argument fn is undefined or null\");\n\n if (func(fnDescriptor)) {\n return;\n }\n\n var context = null;\n var fn;\n\n if (array(fnDescriptor)) {\n context = fnDescriptor[0];\n fn = fnDescriptor[1];\n check(fn, notUndef, effectName + \": argument of type [context, fn] has undefined or null `fn`\");\n } else if (object(fnDescriptor)) {\n context = fnDescriptor.context;\n fn = fnDescriptor.fn;\n check(fn, notUndef, effectName + \": argument of type {context, fn} has undefined or null `fn`\");\n } else {\n check(fnDescriptor, func, effectName + \": argument fn is not function\");\n return;\n }\n\n if (context && string(fn)) {\n check(context[fn], func, effectName + \": context arguments has no such method - \\\"\" + fn + \"\\\"\");\n return;\n }\n\n check(fn, func, effectName + \": unpacked fn argument (from [context, fn] or {context, fn}) is not a function\");\n};\n\nfunction getFnCallDescriptor(fnDescriptor, args) {\n var context = null;\n var fn;\n\n if (func(fnDescriptor)) {\n fn = fnDescriptor;\n } else {\n if (array(fnDescriptor)) {\n context = fnDescriptor[0];\n fn = fnDescriptor[1];\n } else {\n context = fnDescriptor.context;\n fn = fnDescriptor.fn;\n }\n\n if (context && string(fn) && func(context[fn])) {\n fn = context[fn];\n }\n }\n\n return {\n context: context,\n fn: fn,\n args: args\n };\n}\n\nvar isNotDelayEffect = function isNotDelayEffect(fn) {\n return fn !== delay;\n};\n\nfunction call(fnDescriptor) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var arg0 = typeof args[0] === 'number' ? args[0] : 'ms';\n check(fnDescriptor, isNotDelayEffect, \"instead of writing `yield call(delay, \" + arg0 + \")` where delay is an effect from `redux-saga/effects` you should write `yield delay(\" + arg0 + \")`\");\n validateFnDescriptor('call', fnDescriptor);\n }\n\n return makeEffect(CALL, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction apply(context, fn, args) {\n if (args === void 0) {\n args = [];\n }\n\n var fnDescriptor = [context, fn];\n\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('apply', fnDescriptor);\n }\n\n return makeEffect(CALL, getFnCallDescriptor([context, fn], args));\n}\nfunction cps(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('cps', fnDescriptor);\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return makeEffect(CPS, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction fork(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('fork', fnDescriptor);\n check(fnDescriptor, function (arg) {\n return !effect(arg);\n }, 'fork: argument must not be an effect');\n }\n\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n\n return makeEffect(FORK, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction spawn(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('spawn', fnDescriptor);\n }\n\n for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n args[_key4 - 1] = arguments[_key4];\n }\n\n return detach(fork.apply(void 0, [fnDescriptor].concat(args)));\n}\nfunction join(taskOrTasks) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n throw new Error('join(...tasks) is not supported any more. Please use join([...tasks]) to join multiple tasks.');\n }\n\n if (array(taskOrTasks)) {\n taskOrTasks.forEach(function (t) {\n check(t, task, \"join([...tasks]): argument \" + t + \" is not a valid Task object \" + TEST_HINT);\n });\n } else {\n check(taskOrTasks, task, \"join(task): argument \" + taskOrTasks + \" is not a valid Task object \" + TEST_HINT);\n }\n }\n\n return makeEffect(JOIN, taskOrTasks);\n}\nfunction cancel(taskOrTasks) {\n if (taskOrTasks === void 0) {\n taskOrTasks = SELF_CANCELLATION;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n throw new Error('cancel(...tasks) is not supported any more. Please use cancel([...tasks]) to cancel multiple tasks.');\n }\n\n if (array(taskOrTasks)) {\n taskOrTasks.forEach(function (t) {\n check(t, task, \"cancel([...tasks]): argument \" + t + \" is not a valid Task object \" + TEST_HINT);\n });\n } else if (taskOrTasks !== SELF_CANCELLATION && notUndef(taskOrTasks)) {\n check(taskOrTasks, task, \"cancel(task): argument \" + taskOrTasks + \" is not a valid Task object \" + TEST_HINT);\n }\n }\n\n return makeEffect(CANCEL, taskOrTasks);\n}\nfunction select(selector) {\n if (selector === void 0) {\n selector = identity;\n }\n\n for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n args[_key5 - 1] = arguments[_key5];\n }\n\n if (process.env.NODE_ENV !== 'production' && arguments.length) {\n check(arguments[0], notUndef, 'select(selector, [...]): argument selector is undefined');\n check(selector, func, \"select(selector, [...]): argument \" + selector + \" is not a function\");\n }\n\n return makeEffect(SELECT, {\n selector: selector,\n args: args\n });\n}\n/**\n channel(pattern, [buffer]) => creates a proxy channel for store actions\n**/\n\nfunction actionChannel(pattern$1, buffer$1) {\n if (process.env.NODE_ENV !== 'production') {\n check(pattern$1, pattern, 'actionChannel(pattern,...): argument pattern is not valid');\n\n if (arguments.length > 1) {\n check(buffer$1, notUndef, 'actionChannel(pattern, buffer): argument buffer is undefined');\n check(buffer$1, buffer, \"actionChannel(pattern, buffer): argument \" + buffer$1 + \" is not a valid buffer\");\n }\n }\n\n return makeEffect(ACTION_CHANNEL, {\n pattern: pattern$1,\n buffer: buffer$1\n });\n}\nfunction cancelled() {\n return makeEffect(CANCELLED, {});\n}\nfunction flush(channel$1) {\n if (process.env.NODE_ENV !== 'production') {\n check(channel$1, channel, \"flush(channel): argument \" + channel$1 + \" is not valid channel\");\n }\n\n return makeEffect(FLUSH, channel$1);\n}\nfunction getContext(prop) {\n if (process.env.NODE_ENV !== 'production') {\n check(prop, string, \"getContext(prop): argument \" + prop + \" is not a string\");\n }\n\n return makeEffect(GET_CONTEXT, prop);\n}\nfunction setContext(props) {\n if (process.env.NODE_ENV !== 'production') {\n check(props, object, createSetContextWarning(null, props));\n }\n\n return makeEffect(SET_CONTEXT, props);\n}\nvar delay =\n/*#__PURE__*/\ncall.bind(null, delayP);\n\nexport { apply as $, ALL as A, logError as B, CALL as C, wrapSagaDispatch as D, identity as E, FORK as F, GET_CONTEXT as G, buffers as H, detach as I, JOIN as J, take as K, fork as L, cancel as M, call as N, delay as O, PUT as P, actionChannel as Q, RACE as R, SELECT as S, TAKE as T, sliding as U, race as V, effectTypes as W, takeMaybe as X, put as Y, putResolve as Z, all as _, CPS as a, cps as a0, spawn as a1, join as a2, select as a3, cancelled as a4, flush as a5, getContext as a6, setContext as a7, CANCEL as b, check as c, ACTION_CHANNEL as d, expanding as e, CANCELLED as f, FLUSH as g, SET_CONTEXT as h, internalErr as i, getMetaInfo as j, kTrue as k, createAllStyleChildCallbacks as l, createEmptyArray as m, none as n, once as o, assignWithSymbols as p, makeIterator as q, remove as r, shouldComplete as s, noop as t, flatMap as u, getLocation as v, createSetContextWarning as w, asyncIteratorSymbol as x, shouldCancel as y, shouldTerminate as z };\n","import { TASK, SAGA_ACTION, MULTICAST, IO } from '@redux-saga/symbols';\n\nvar undef = function undef(v) {\n return v === null || v === undefined;\n};\nvar notUndef = function notUndef(v) {\n return v !== null && v !== undefined;\n};\nvar func = function func(f) {\n return typeof f === 'function';\n};\nvar number = function number(n) {\n return typeof n === 'number';\n};\nvar string = function string(s) {\n return typeof s === 'string';\n};\nvar array = Array.isArray;\nvar object = function object(obj) {\n return obj && !array(obj) && typeof obj === 'object';\n};\nvar promise = function promise(p) {\n return p && func(p.then);\n};\nvar iterator = function iterator(it) {\n return it && func(it.next) && func(it.throw);\n};\nvar iterable = function iterable(it) {\n return it && func(Symbol) ? func(it[Symbol.iterator]) : array(it);\n};\nvar task = function task(t) {\n return t && t[TASK];\n};\nvar sagaAction = function sagaAction(a) {\n return Boolean(a && a[SAGA_ACTION]);\n};\nvar observable = function observable(ob) {\n return ob && func(ob.subscribe);\n};\nvar buffer = function buffer(buf) {\n return buf && func(buf.isEmpty) && func(buf.take) && func(buf.put);\n};\nvar pattern = function pattern(pat) {\n return pat && (string(pat) || symbol(pat) || func(pat) || array(pat) && pat.every(pattern));\n};\nvar channel = function channel(ch) {\n return ch && func(ch.take) && func(ch.close);\n};\nvar stringableFunc = function stringableFunc(f) {\n return func(f) && f.hasOwnProperty('toString');\n};\nvar symbol = function symbol(sym) {\n return Boolean(sym) && typeof Symbol === 'function' && sym.constructor === Symbol && sym !== Symbol.prototype;\n};\nvar multicast = function multicast(ch) {\n return channel(ch) && ch[MULTICAST];\n};\nvar effect = function effect(eff) {\n return eff && eff[IO];\n};\n\nexport { array, buffer, channel, effect, func, iterable, iterator, multicast, notUndef, number, object, observable, pattern, promise, sagaAction, string, stringableFunc, symbol, task, undef };\n","var createSymbol = function createSymbol(name) {\n return \"@@redux-saga/\" + name;\n};\n\nvar CANCEL =\n/*#__PURE__*/\ncreateSymbol('CANCEL_PROMISE');\nvar CHANNEL_END_TYPE =\n/*#__PURE__*/\ncreateSymbol('CHANNEL_END');\nvar IO =\n/*#__PURE__*/\ncreateSymbol('IO');\nvar MATCH =\n/*#__PURE__*/\ncreateSymbol('MATCH');\nvar MULTICAST =\n/*#__PURE__*/\ncreateSymbol('MULTICAST');\nvar SAGA_ACTION =\n/*#__PURE__*/\ncreateSymbol('SAGA_ACTION');\nvar SELF_CANCELLATION =\n/*#__PURE__*/\ncreateSymbol('SELF_CANCELLATION');\nvar TASK =\n/*#__PURE__*/\ncreateSymbol('TASK');\nvar TASK_CANCEL =\n/*#__PURE__*/\ncreateSymbol('TASK_CANCEL');\nvar TERMINATE =\n/*#__PURE__*/\ncreateSymbol('TERMINATE');\nvar SAGA_LOCATION =\n/*#__PURE__*/\ncreateSymbol('LOCATION');\n\nexport { CANCEL, CHANNEL_END_TYPE, IO, MATCH, MULTICAST, SAGA_ACTION, SAGA_LOCATION, SELF_CANCELLATION, TASK, TASK_CANCEL, TERMINATE };\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { __assign } from 'tslib';\n\nvar clamp = function (min, max) { return function (v) {\r\n return Math.max(Math.min(v, max), min);\r\n}; };\r\nvar sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };\r\nvar floatRegex = /(-)?(\\d[\\d\\.]*)/g;\r\nvar colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2,3}\\s*\\/*\\s*[\\d\\.]+%?\\))/gi;\r\nvar singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2,3}\\s*\\/*\\s*[\\d\\.]+%?\\))$/i;\n\nvar number = {\r\n test: function (v) { return typeof v === 'number'; },\r\n parse: parseFloat,\r\n transform: function (v) { return v; }\r\n};\r\nvar alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });\r\nvar scale = __assign(__assign({}, number), { default: 1 });\n\nvar createUnitType = function (unit) { return ({\r\n test: function (v) {\r\n return typeof v === 'string' && v.endsWith(unit) && v.split(' ').length === 1;\r\n },\r\n parse: parseFloat,\r\n transform: function (v) { return \"\" + v + unit; }\r\n}); };\r\nvar degrees = createUnitType('deg');\r\nvar percent = createUnitType('%');\r\nvar px = createUnitType('px');\r\nvar vh = createUnitType('vh');\r\nvar vw = createUnitType('vw');\r\nvar progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });\n\nvar getValueFromFunctionString = function (value) {\r\n return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));\r\n};\r\nvar clampRgbUnit = clamp(0, 255);\r\nvar isRgba = function (v) { return v.red !== undefined; };\r\nvar isHsla = function (v) { return v.hue !== undefined; };\r\nfunction getValuesAsArray(value) {\r\n return getValueFromFunctionString(value)\r\n .replace(/(,|\\/)/g, ' ')\r\n .split(/ \\s*/);\r\n}\r\nvar splitColorValues = function (terms) {\r\n return function (v) {\r\n if (typeof v !== 'string')\r\n return v;\r\n var values = {};\r\n var valuesArray = getValuesAsArray(v);\r\n for (var i = 0; i < 4; i++) {\r\n values[terms[i]] =\r\n valuesArray[i] !== undefined ? parseFloat(valuesArray[i]) : 1;\r\n }\r\n return values;\r\n };\r\n};\r\nvar rgbaTemplate = function (_a) {\r\n var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;\r\n return \"rgba(\" + red + \", \" + green + \", \" + blue + \", \" + alpha + \")\";\r\n};\r\nvar hslaTemplate = function (_a) {\r\n var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;\r\n return \"hsla(\" + hue + \", \" + saturation + \", \" + lightness + \", \" + alpha + \")\";\r\n};\r\nvar rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });\r\nfunction isColorString(color, colorType) {\r\n return color.startsWith(colorType) && singleColorRegex.test(color);\r\n}\r\nvar rgba = {\r\n test: function (v) { return (typeof v === 'string' ? isColorString(v, 'rgb') : isRgba(v)); },\r\n parse: splitColorValues(['red', 'green', 'blue', 'alpha']),\r\n transform: function (_a) {\r\n var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;\r\n return rgbaTemplate({\r\n red: rgbUnit.transform(red),\r\n green: rgbUnit.transform(green),\r\n blue: rgbUnit.transform(blue),\r\n alpha: sanitize(alpha.transform(alpha$1))\r\n });\r\n }\r\n};\r\nvar hsla = {\r\n test: function (v) { return (typeof v === 'string' ? isColorString(v, 'hsl') : isHsla(v)); },\r\n parse: splitColorValues(['hue', 'saturation', 'lightness', 'alpha']),\r\n transform: function (_a) {\r\n var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;\r\n return hslaTemplate({\r\n hue: Math.round(hue),\r\n saturation: percent.transform(sanitize(saturation)),\r\n lightness: percent.transform(sanitize(lightness)),\r\n alpha: sanitize(alpha.transform(alpha$1))\r\n });\r\n }\r\n};\r\nvar hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {\r\n var r = '';\r\n var g = '';\r\n var b = '';\r\n if (v.length > 4) {\r\n r = v.substr(1, 2);\r\n g = v.substr(3, 2);\r\n b = v.substr(5, 2);\r\n }\r\n else {\r\n r = v.substr(1, 1);\r\n g = v.substr(2, 1);\r\n b = v.substr(3, 1);\r\n r += r;\r\n g += g;\r\n b += b;\r\n }\r\n return {\r\n red: parseInt(r, 16),\r\n green: parseInt(g, 16),\r\n blue: parseInt(b, 16),\r\n alpha: 1\r\n };\r\n } });\r\nvar color = {\r\n test: function (v) {\r\n return (typeof v === 'string' && singleColorRegex.test(v)) ||\r\n isRgba(v) ||\r\n isHsla(v);\r\n },\r\n parse: function (v) {\r\n if (rgba.test(v)) {\r\n return rgba.parse(v);\r\n }\r\n else if (hsla.test(v)) {\r\n return hsla.parse(v);\r\n }\r\n else if (hex.test(v)) {\r\n return hex.parse(v);\r\n }\r\n return v;\r\n },\r\n transform: function (v) {\r\n if (isRgba(v)) {\r\n return rgba.transform(v);\r\n }\r\n else if (isHsla(v)) {\r\n return hsla.transform(v);\r\n }\r\n return v;\r\n }\r\n};\n\nvar COLOR_TOKEN = '${c}';\r\nvar NUMBER_TOKEN = '${n}';\r\nvar convertNumbersToZero = function (v) {\r\n return typeof v === 'number' ? 0 : v;\r\n};\r\nvar complex = {\r\n test: function (v) {\r\n if (typeof v !== 'string' || !isNaN(v))\r\n return false;\r\n var numValues = 0;\r\n var foundNumbers = v.match(floatRegex);\r\n var foundColors = v.match(colorRegex);\r\n if (foundNumbers)\r\n numValues += foundNumbers.length;\r\n if (foundColors)\r\n numValues += foundColors.length;\r\n return numValues > 0;\r\n },\r\n parse: function (v) {\r\n var input = v;\r\n var parsed = [];\r\n var foundColors = input.match(colorRegex);\r\n if (foundColors) {\r\n input = input.replace(colorRegex, COLOR_TOKEN);\r\n parsed.push.apply(parsed, foundColors.map(color.parse));\r\n }\r\n var foundNumbers = input.match(floatRegex);\r\n if (foundNumbers) {\r\n parsed.push.apply(parsed, foundNumbers.map(number.parse));\r\n }\r\n return parsed;\r\n },\r\n createTransformer: function (prop) {\r\n var template = prop;\r\n var token = 0;\r\n var foundColors = prop.match(colorRegex);\r\n var numColors = foundColors ? foundColors.length : 0;\r\n if (foundColors) {\r\n for (var i = 0; i < numColors; i++) {\r\n template = template.replace(foundColors[i], COLOR_TOKEN);\r\n token++;\r\n }\r\n }\r\n var foundNumbers = template.match(floatRegex);\r\n var numNumbers = foundNumbers ? foundNumbers.length : 0;\r\n if (foundNumbers) {\r\n for (var i = 0; i < numNumbers; i++) {\r\n template = template.replace(foundNumbers[i], NUMBER_TOKEN);\r\n token++;\r\n }\r\n }\r\n return function (v) {\r\n var output = template;\r\n for (var i = 0; i < token; i++) {\r\n output = output.replace(i < numColors ? COLOR_TOKEN : NUMBER_TOKEN, i < numColors ? color.transform(v[i]) : sanitize(v[i]));\r\n }\r\n return output;\r\n };\r\n },\r\n getAnimatableNone: function (target) {\r\n var parsedTarget = complex.parse(target);\r\n var targetTransformer = complex.createTransformer(target);\r\n return targetTransformer(parsedTarget.map(convertNumbersToZero));\r\n }\r\n};\n\nexport { alpha, color, complex, degrees, hex, hsla, number, percent, progressPercentage, px, rgbUnit, rgba, scale, vh, vw };\n","import { invariant } from 'hey-listen';\n\nvar prevTime = 0;\nvar onNextFrame = typeof window !== 'undefined' && window.requestAnimationFrame !== undefined ? function (callback) {\n return window.requestAnimationFrame(callback);\n} : function (callback) {\n var timestamp = Date.now();\n var timeToCall = Math.max(0, 16.7 - (timestamp - prevTime));\n prevTime = timestamp + timeToCall;\n setTimeout(function () {\n return callback(prevTime);\n }, timeToCall);\n};\n\nvar createStep = function (setRunNextFrame) {\n var processToRun = [];\n var processToRunNextFrame = [];\n var numThisFrame = 0;\n var isProcessing = false;\n var i = 0;\n var cancelled = new WeakSet();\n var toKeepAlive = new WeakSet();\n var renderStep = {\n cancel: function (process) {\n var indexOfCallback = processToRunNextFrame.indexOf(process);\n cancelled.add(process);\n if (indexOfCallback !== -1) {\n processToRunNextFrame.splice(indexOfCallback, 1);\n }\n },\n process: function (frame) {\n var _a;\n isProcessing = true;\n _a = [processToRunNextFrame, processToRun], processToRun = _a[0], processToRunNextFrame = _a[1];\n processToRunNextFrame.length = 0;\n numThisFrame = processToRun.length;\n if (numThisFrame) {\n var process_1;\n for (i = 0; i < numThisFrame; i++) {\n process_1 = processToRun[i];\n process_1(frame);\n if (toKeepAlive.has(process_1) === true && !cancelled.has(process_1)) {\n renderStep.schedule(process_1);\n setRunNextFrame(true);\n }\n }\n }\n isProcessing = false;\n },\n schedule: function (process, keepAlive, immediate) {\n if (keepAlive === void 0) {\n keepAlive = false;\n }\n if (immediate === void 0) {\n immediate = false;\n }\n invariant(typeof process === \"function\", \"Argument must be a function\");\n var addToCurrentBuffer = immediate && isProcessing;\n var buffer = addToCurrentBuffer ? processToRun : processToRunNextFrame;\n cancelled.delete(process);\n if (keepAlive) toKeepAlive.add(process);\n if (buffer.indexOf(process) === -1) {\n buffer.push(process);\n if (addToCurrentBuffer) numThisFrame = processToRun.length;\n }\n }\n };\n return renderStep;\n};\n\nvar maxElapsed = 40;\nvar defaultElapsed = 1 / 60 * 1000;\nvar useDefaultElapsed = true;\nvar willRunNextFrame = false;\nvar isProcessing = false;\nvar frame = {\n delta: 0,\n timestamp: 0\n};\nvar stepsOrder = [\"read\", \"update\", \"preRender\", \"render\", \"postRender\"];\nvar setWillRunNextFrame = function (willRun) {\n return willRunNextFrame = willRun;\n};\nvar steps = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {\n acc[key] = createStep(setWillRunNextFrame);\n return acc;\n}, {});\nvar sync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {\n var step = steps[key];\n acc[key] = function (process, keepAlive, immediate) {\n if (keepAlive === void 0) {\n keepAlive = false;\n }\n if (immediate === void 0) {\n immediate = false;\n }\n if (!willRunNextFrame) startLoop();\n step.schedule(process, keepAlive, immediate);\n return process;\n };\n return acc;\n}, {});\nvar cancelSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {\n acc[key] = steps[key].cancel;\n return acc;\n}, {});\nvar processStep = function (stepId) {\n return steps[stepId].process(frame);\n};\nvar processFrame = function (timestamp) {\n willRunNextFrame = false;\n frame.delta = useDefaultElapsed ? defaultElapsed : Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);\n if (!useDefaultElapsed) defaultElapsed = frame.delta;\n frame.timestamp = timestamp;\n isProcessing = true;\n stepsOrder.forEach(processStep);\n isProcessing = false;\n if (willRunNextFrame) {\n useDefaultElapsed = false;\n onNextFrame(processFrame);\n }\n};\nvar startLoop = function () {\n willRunNextFrame = true;\n useDefaultElapsed = true;\n if (!isProcessing) onNextFrame(processFrame);\n};\nvar getFrameData = function () {\n return frame;\n};\n\nexport default sync;\nexport { cancelSync, getFrameData };\n","var DEFAULT_OVERSHOOT_STRENGTH = 1.525;\nvar reversed = function (easing) {\n return function (p) {\n return 1 - easing(1 - p);\n };\n};\nvar mirrored = function (easing) {\n return function (p) {\n return p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\n };\n};\nvar createReversedEasing = reversed;\nvar createMirroredEasing = mirrored;\nvar createExpoIn = function (power) {\n return function (p) {\n return Math.pow(p, power);\n };\n};\nvar createBackIn = function (power) {\n return function (p) {\n return p * p * ((power + 1) * p - power);\n };\n};\nvar createAnticipateEasing = function (power) {\n var backEasing = createBackIn(power);\n return function (p) {\n return (p *= 2) < 1 ? 0.5 * backEasing(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n };\n};\nvar linear = function (p) {\n return p;\n};\nvar easeIn = /*#__PURE__*/createExpoIn(2);\nvar easeOut = /*#__PURE__*/reversed(easeIn);\nvar easeInOut = /*#__PURE__*/mirrored(easeIn);\nvar circIn = function (p) {\n return 1 - Math.sin(Math.acos(p));\n};\nvar circOut = /*#__PURE__*/reversed(circIn);\nvar circInOut = /*#__PURE__*/mirrored(circOut);\nvar backIn = /*#__PURE__*/createBackIn(DEFAULT_OVERSHOOT_STRENGTH);\nvar backOut = /*#__PURE__*/reversed(backIn);\nvar backInOut = /*#__PURE__*/mirrored(backIn);\nvar anticipate = /*#__PURE__*/createAnticipateEasing(DEFAULT_OVERSHOOT_STRENGTH);\nvar BOUNCE_FIRST_THRESHOLD = 4.0 / 11.0;\nvar BOUNCE_SECOND_THRESHOLD = 8.0 / 11.0;\nvar BOUNCE_THIRD_THRESHOLD = 9.0 / 10.0;\nvar ca = 4356.0 / 361.0;\nvar cb = 35442.0 / 1805.0;\nvar cc = 16061.0 / 1805.0;\nvar bounceOut = function (p) {\n var p2 = p * p;\n return p < BOUNCE_FIRST_THRESHOLD ? 7.5625 * p2 : p < BOUNCE_SECOND_THRESHOLD ? 9.075 * p2 - 9.9 * p + 3.4 : p < BOUNCE_THIRD_THRESHOLD ? ca * p2 - cb * p + cc : 10.8 * p * p - 20.52 * p + 10.72;\n};\nvar bounceIn = function (p) {\n return 1.0 - bounceOut(1.0 - p);\n};\nvar bounceInOut = function (p) {\n return p < 0.5 ? 0.5 * (1.0 - bounceOut(1.0 - p * 2.0)) : 0.5 * bounceOut(p * 2.0 - 1.0) + 0.5;\n};\nvar NEWTON_ITERATIONS = 8;\nvar NEWTON_MIN_SLOPE = 0.001;\nvar SUBDIVISION_PRECISION = 0.0000001;\nvar SUBDIVISION_MAX_ITERATIONS = 10;\nvar K_SPLINE_TABLE_SIZE = 11;\nvar K_SAMPLE_STEP_SIZE = 1.0 / (K_SPLINE_TABLE_SIZE - 1.0);\nvar FLOAT_32_SUPPORTED = typeof Float32Array !== 'undefined';\nvar a = function (a1, a2) {\n return 1.0 - 3.0 * a2 + 3.0 * a1;\n};\nvar b = function (a1, a2) {\n return 3.0 * a2 - 6.0 * a1;\n};\nvar c = function (a1) {\n return 3.0 * a1;\n};\nvar getSlope = function (t, a1, a2) {\n return 3.0 * a(a1, a2) * t * t + 2.0 * b(a1, a2) * t + c(a1);\n};\nvar calcBezier = function (t, a1, a2) {\n return ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;\n};\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n var sampleValues = FLOAT_32_SUPPORTED ? new Float32Array(K_SPLINE_TABLE_SIZE) : new Array(K_SPLINE_TABLE_SIZE);\n var binarySubdivide = function (aX, aA, aB) {\n var i = 0;\n var currentX;\n var currentT;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);\n return currentT;\n };\n var newtonRaphsonIterate = function (aX, aGuessT) {\n var i = 0;\n var currentSlope = 0;\n var currentX;\n for (; i < NEWTON_ITERATIONS; ++i) {\n currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n };\n var calcSampleValues = function () {\n for (var i = 0; i < K_SPLINE_TABLE_SIZE; ++i) {\n sampleValues[i] = calcBezier(i * K_SAMPLE_STEP_SIZE, mX1, mX2);\n }\n };\n var getTForX = function (aX) {\n var intervalStart = 0.0;\n var currentSample = 1;\n var lastSample = K_SPLINE_TABLE_SIZE - 1;\n var dist = 0.0;\n var guessForT = 0.0;\n var initialSlope = 0.0;\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += K_SAMPLE_STEP_SIZE;\n }\n --currentSample;\n dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n guessForT = intervalStart + dist * K_SAMPLE_STEP_SIZE;\n initialSlope = getSlope(guessForT, mX1, mX2);\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + K_SAMPLE_STEP_SIZE);\n }\n };\n calcSampleValues();\n var resolver = function (aX) {\n var returnValue;\n if (mX1 === mY1 && mX2 === mY2) {\n returnValue = aX;\n } else if (aX === 0) {\n returnValue = 0;\n } else if (aX === 1) {\n returnValue = 1;\n } else {\n returnValue = calcBezier(getTForX(aX), mY1, mY2);\n }\n return returnValue;\n };\n return resolver;\n}\n\nexport { reversed, mirrored, createReversedEasing, createMirroredEasing, createExpoIn, createBackIn, createAnticipateEasing, linear, easeIn, easeOut, easeInOut, circIn, circOut, circInOut, backIn, backOut, backInOut, anticipate, bounceOut, bounceIn, bounceInOut, cubicBezier };\n","import { hsla, rgba, hex, color, complex } from 'style-value-types';\nimport { invariant } from 'hey-listen';\nimport { getFrameData } from 'framesync';\nimport { createAnticipateEasing, createBackIn, createExpoIn, cubicBezier, linear, easeIn, easeOut, easeInOut, circIn, circOut, circInOut, backIn, backOut, backInOut, anticipate, reversed, mirrored } from '@popmotion/easing';\nexport { createAnticipateEasing, createBackIn, createExpoIn, cubicBezier, linear, easeIn, easeOut, easeInOut, circIn, circOut, circInOut, backIn, backOut, backInOut, anticipate, reversed, mirrored } from '@popmotion/easing';\n\nvar zeroPoint = {\r\n x: 0,\r\n y: 0,\r\n z: 0\r\n};\r\nvar isNum = function (v) { return typeof v === 'number'; };\n\nvar radiansToDegrees = (function (radians) { return (radians * 180) / Math.PI; });\n\nvar angle = (function (a, b) {\r\n if (b === void 0) { b = zeroPoint; }\r\n return radiansToDegrees(Math.atan2(b.y - a.y, b.x - a.x));\r\n});\n\nvar applyOffset = (function (from, to) {\r\n var hasReceivedFrom = true;\r\n if (to === undefined) {\r\n to = from;\r\n hasReceivedFrom = false;\r\n }\r\n return function (v) {\r\n if (hasReceivedFrom) {\r\n return v - from + to;\r\n }\r\n else {\r\n from = v;\r\n hasReceivedFrom = true;\r\n return to;\r\n }\r\n };\r\n});\n\nvar curryRange = (function (func) { return function (min, max, v) { return (v !== undefined ? func(min, max, v) : function (cv) { return func(min, max, cv); }); }; });\n\nvar clamp = function (min, max, v) {\r\n return Math.min(Math.max(v, min), max);\r\n};\r\nvar clamp$1 = curryRange(clamp);\n\nvar conditional = (function (check, apply) { return function (v) {\r\n return check(v) ? apply(v) : v;\r\n}; });\n\nvar degreesToRadians = (function (degrees) { return (degrees * Math.PI) / 180; });\n\nvar isPoint = (function (point) {\r\n return point.hasOwnProperty('x') && point.hasOwnProperty('y');\r\n});\n\nvar isPoint3D = (function (point) {\r\n return isPoint(point) && point.hasOwnProperty('z');\r\n});\n\nvar distance1D = function (a, b) { return Math.abs(a - b); };\r\nvar distance = (function (a, b) {\r\n if (b === void 0) { b = zeroPoint; }\r\n if (isNum(a) && isNum(b)) {\r\n return distance1D(a, b);\r\n }\r\n else if (isPoint(a) && isPoint(b)) {\r\n var xDelta = distance1D(a.x, b.x);\r\n var yDelta = distance1D(a.y, b.y);\r\n var zDelta = isPoint3D(a) && isPoint3D(b) ? distance1D(a.z, b.z) : 0;\r\n return Math.sqrt(Math.pow(xDelta, 2) + Math.pow(yDelta, 2) + Math.pow(zDelta, 2));\r\n }\r\n return 0;\r\n});\n\nvar progress = (function (from, to, value) {\r\n var toFromDifference = to - from;\r\n return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\r\n});\n\nvar mix = (function (from, to, progress) {\r\n return -progress * from + progress * to + from;\r\n});\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\n\nvar mixLinearColor = function (from, to, v) {\r\n var fromExpo = from * from;\r\n var toExpo = to * to;\r\n return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));\r\n};\r\nvar colorTypes = [hex, rgba, hsla];\r\nvar getColorType = function (v) {\r\n return colorTypes.find(function (type) { return type.test(v); });\r\n};\r\nvar notAnimatable = function (color$$1) {\r\n return \"'\" + color$$1 + \"' is not an animatable color. Use the equivalent color code instead.\";\r\n};\r\nvar mixColor = (function (from, to) {\r\n var fromColorType = getColorType(from);\r\n var toColorType = getColorType(to);\r\n invariant(!!fromColorType, notAnimatable(from));\r\n invariant(!!toColorType, notAnimatable(to));\r\n invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');\r\n var fromColor = fromColorType.parse(from);\r\n var toColor = toColorType.parse(to);\r\n var blended = __assign({}, fromColor);\r\n var mixFunc = fromColorType === hsla ? mix : mixLinearColor;\r\n return function (v) {\r\n for (var key in blended) {\r\n if (key !== 'alpha') {\r\n blended[key] = mixFunc(fromColor[key], toColor[key], v);\r\n }\r\n }\r\n blended.alpha = mix(fromColor.alpha, toColor.alpha, v);\r\n return fromColorType.transform(blended);\r\n };\r\n});\n\nvar combineFunctions = function (a, b) { return function (v) { return b(a(v)); }; };\r\nvar pipe = (function () {\r\n var transformers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n transformers[_i] = arguments[_i];\r\n }\r\n return transformers.reduce(combineFunctions);\r\n});\n\nfunction getMixer(origin, target) {\r\n if (isNum(origin)) {\r\n return function (v) { return mix(origin, target, v); };\r\n }\r\n else if (color.test(origin)) {\r\n return mixColor(origin, target);\r\n }\r\n else {\r\n return mixComplex(origin, target);\r\n }\r\n}\r\nvar mixArray = function (from, to) {\r\n var output = from.slice();\r\n var numValues = output.length;\r\n var blendValue = from.map(function (fromThis, i) { return getMixer(fromThis, to[i]); });\r\n return function (v) {\r\n for (var i = 0; i < numValues; i++) {\r\n output[i] = blendValue[i](v);\r\n }\r\n return output;\r\n };\r\n};\r\nvar mixObject = function (origin, target) {\r\n var output = __assign({}, origin, target);\r\n var blendValue = {};\r\n for (var key in output) {\r\n if (origin[key] !== undefined && target[key] !== undefined) {\r\n blendValue[key] = getMixer(origin[key], target[key]);\r\n }\r\n }\r\n return function (v) {\r\n for (var key in blendValue) {\r\n output[key] = blendValue[key](v);\r\n }\r\n return output;\r\n };\r\n};\r\nfunction analyse(value) {\r\n var parsed = complex.parse(value);\r\n var numValues = parsed.length;\r\n var numNumbers = 0;\r\n var numRGB = 0;\r\n var numHSL = 0;\r\n for (var i = 0; i < numValues; i++) {\r\n if (numNumbers || typeof parsed[i] === 'number') {\r\n numNumbers++;\r\n }\r\n else {\r\n if (parsed[i].hue !== undefined) {\r\n numHSL++;\r\n }\r\n else {\r\n numRGB++;\r\n }\r\n }\r\n }\r\n return { parsed: parsed, numNumbers: numNumbers, numRGB: numRGB, numHSL: numHSL };\r\n}\r\nvar mixComplex = function (origin, target) {\r\n var template = complex.createTransformer(target);\r\n var originStats = analyse(origin);\r\n var targetStats = analyse(target);\r\n invariant(originStats.numHSL === targetStats.numHSL &&\r\n originStats.numRGB === targetStats.numRGB &&\r\n originStats.numNumbers >= targetStats.numNumbers, \"Complex values '\" + origin + \"' and '\" + target + \"' too different to mix. Ensure all colors are of the same type.\");\r\n return pipe(mixArray(originStats.parsed, targetStats.parsed), template);\r\n};\n\nvar mixNumber = function (from, to) { return function (p) { return mix(from, to, p); }; };\r\nfunction detectMixerFactory(v) {\r\n if (typeof v === 'number') {\r\n return mixNumber;\r\n }\r\n else if (typeof v === 'string') {\r\n if (color.test(v)) {\r\n return mixColor;\r\n }\r\n else {\r\n return mixComplex;\r\n }\r\n }\r\n else if (Array.isArray(v)) {\r\n return mixArray;\r\n }\r\n else if (typeof v === 'object') {\r\n return mixObject;\r\n }\r\n}\r\nfunction createMixers(output, ease, customMixer) {\r\n var mixers = [];\r\n var mixerFactory = customMixer || detectMixerFactory(output[0]);\r\n var numMixers = output.length - 1;\r\n for (var i = 0; i < numMixers; i++) {\r\n var mixer = mixerFactory(output[i], output[i + 1]);\r\n if (ease) {\r\n var easingFunction = Array.isArray(ease) ? ease[i] : ease;\r\n mixer = pipe(easingFunction, mixer);\r\n }\r\n mixers.push(mixer);\r\n }\r\n return mixers;\r\n}\r\nfunction fastInterpolate(_a, _b) {\r\n var from = _a[0], to = _a[1];\r\n var mixer = _b[0];\r\n return function (v) { return mixer(progress(from, to, v)); };\r\n}\r\nfunction slowInterpolate(input, mixers) {\r\n var inputLength = input.length;\r\n var lastInputIndex = inputLength - 1;\r\n return function (v) {\r\n var mixerIndex = 0;\r\n var foundMixerIndex = false;\r\n if (v <= input[0]) {\r\n foundMixerIndex = true;\r\n }\r\n else if (v >= input[lastInputIndex]) {\r\n mixerIndex = lastInputIndex - 1;\r\n foundMixerIndex = true;\r\n }\r\n if (!foundMixerIndex) {\r\n var i = 1;\r\n for (; i < inputLength; i++) {\r\n if (input[i] > v || i === lastInputIndex) {\r\n break;\r\n }\r\n }\r\n mixerIndex = i - 1;\r\n }\r\n var progressInRange = progress(input[mixerIndex], input[mixerIndex + 1], v);\r\n return mixers[mixerIndex](progressInRange);\r\n };\r\n}\r\nfunction interpolate(input, output, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.clamp, clamp = _c === void 0 ? true : _c, ease = _b.ease, mixer = _b.mixer;\r\n var inputLength = input.length;\r\n invariant(inputLength === output.length, 'Both input and output ranges must be the same length');\r\n invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1, 'Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.');\r\n if (input[0] > input[inputLength - 1]) {\r\n input = [].concat(input);\r\n output = [].concat(output);\r\n input.reverse();\r\n output.reverse();\r\n }\r\n var mixers = createMixers(output, ease, mixer);\r\n var interpolator = inputLength === 2\r\n ? fastInterpolate(input, mixers)\r\n : slowInterpolate(input, mixers);\r\n return clamp\r\n ? pipe(clamp$1(input[0], input[inputLength - 1]), interpolator)\r\n : interpolator;\r\n}\n\nvar pointFromVector = (function (origin, angle, distance) {\r\n angle = degreesToRadians(angle);\r\n return {\r\n x: distance * Math.cos(angle) + origin.x,\r\n y: distance * Math.sin(angle) + origin.y\r\n };\r\n});\n\nvar toDecimal = (function (num, precision) {\r\n if (precision === void 0) { precision = 2; }\r\n precision = Math.pow(10, precision);\r\n return Math.round(num * precision) / precision;\r\n});\n\nvar smoothFrame = (function (prevValue, nextValue, duration, smoothing) {\r\n if (smoothing === void 0) { smoothing = 0; }\r\n return toDecimal(prevValue +\r\n (duration * (nextValue - prevValue)) / Math.max(smoothing, duration));\r\n});\n\nvar smooth = (function (strength) {\r\n if (strength === void 0) { strength = 50; }\r\n var previousValue = 0;\r\n var lastUpdated = 0;\r\n return function (v) {\r\n var currentFramestamp = getFrameData().timestamp;\r\n var timeDelta = currentFramestamp !== lastUpdated ? currentFramestamp - lastUpdated : 0;\r\n var newValue = timeDelta\r\n ? smoothFrame(previousValue, v, timeDelta, strength)\r\n : previousValue;\r\n lastUpdated = currentFramestamp;\r\n previousValue = newValue;\r\n return newValue;\r\n };\r\n});\n\nvar snap = (function (points) {\r\n if (typeof points === 'number') {\r\n return function (v) { return Math.round(v / points) * points; };\r\n }\r\n else {\r\n var i_1 = 0;\r\n var numPoints_1 = points.length;\r\n return function (v) {\r\n var lastDistance = Math.abs(points[0] - v);\r\n for (i_1 = 1; i_1 < numPoints_1; i_1++) {\r\n var point = points[i_1];\r\n var distance = Math.abs(point - v);\r\n if (distance === 0)\r\n return point;\r\n if (distance > lastDistance)\r\n return points[i_1 - 1];\r\n if (i_1 === numPoints_1 - 1)\r\n return point;\r\n lastDistance = distance;\r\n }\r\n };\r\n }\r\n});\n\nvar identity = function (v) { return v; };\r\nvar springForce = function (alterDisplacement) {\r\n if (alterDisplacement === void 0) { alterDisplacement = identity; }\r\n return curryRange(function (constant, origin, v) {\r\n var displacement = origin - v;\r\n var springModifiedDisplacement = -(0 - constant + 1) * (0 - alterDisplacement(Math.abs(displacement)));\r\n return displacement <= 0\r\n ? origin + springModifiedDisplacement\r\n : origin - springModifiedDisplacement;\r\n });\r\n};\r\nvar springForceLinear = springForce();\r\nvar springForceExpo = springForce(Math.sqrt);\n\nvar velocityPerFrame = (function (xps, frameDuration) {\r\n return isNum(xps) ? xps / (1000 / frameDuration) : 0;\r\n});\n\nvar velocityPerSecond = (function (velocity, frameDuration) {\r\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\r\n});\n\nvar wrap = function (min, max, v) {\r\n var rangeSize = max - min;\r\n return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;\r\n};\r\nvar wrap$1 = curryRange(wrap);\n\nvar clampProgress = clamp$1(0, 1);\r\nvar steps = (function (steps, direction) {\r\n if (direction === void 0) { direction = 'end'; }\r\n return function (progress) {\r\n progress =\r\n direction === 'end' ? Math.min(progress, 0.999) : Math.max(progress, 0.001);\r\n var expanded = progress * steps;\r\n var rounded = direction === 'end' ? Math.floor(expanded) : Math.ceil(expanded);\r\n return clampProgress(rounded / steps);\r\n };\r\n});\n\nexport { angle, applyOffset, clamp$1 as clamp, conditional, degreesToRadians, distance, interpolate, isPoint, isPoint3D, mix, mixArray, mixColor, mixComplex, mixObject, pipe, pointFromVector, progress, radiansToDegrees, smooth, smoothFrame, snap, springForce, springForceExpo, springForceLinear, steps, toDecimal, velocityPerFrame, velocityPerSecond, wrap$1 as wrap };\n","import { __rest, __assign } from 'tslib';\nimport sync from 'framesync';\nimport { number, color, px, degrees, scale, alpha, progressPercentage } from 'style-value-types';\nimport { invariant } from 'hey-listen';\n\nvar createStyler = function (_a) {\n var onRead = _a.onRead,\n onRender = _a.onRender,\n _b = _a.uncachedValues,\n uncachedValues = _b === void 0 ? new Set() : _b,\n _c = _a.useCache,\n useCache = _c === void 0 ? true : _c;\n return function (_a) {\n if (_a === void 0) {\n _a = {};\n }\n var props = __rest(_a, []);\n var state = {};\n var changedValues = [];\n var hasChanged = false;\n function setValue(key, value) {\n if (key.startsWith('--')) {\n props.hasCSSVariable = true;\n }\n var currentValue = state[key];\n state[key] = value;\n if (state[key] === currentValue) return;\n if (changedValues.indexOf(key) === -1) {\n changedValues.push(key);\n }\n if (!hasChanged) {\n hasChanged = true;\n sync.render(styler.render);\n }\n }\n var styler = {\n get: function (key, forceRead) {\n if (forceRead === void 0) {\n forceRead = false;\n }\n var useCached = !forceRead && useCache && !uncachedValues.has(key) && state[key] !== undefined;\n return useCached ? state[key] : onRead(key, props);\n },\n set: function (values, value) {\n if (typeof values === 'string') {\n setValue(values, value);\n } else {\n for (var key in values) {\n setValue(key, values[key]);\n }\n }\n return this;\n },\n render: function (forceRender) {\n if (forceRender === void 0) {\n forceRender = false;\n }\n if (hasChanged || forceRender === true) {\n onRender(state, props, changedValues);\n hasChanged = false;\n changedValues.length = 0;\n }\n return this;\n }\n };\n return styler;\n };\n};\n\nvar CAMEL_CASE_PATTERN = /([a-z])([A-Z])/g;\nvar REPLACE_TEMPLATE = '$1-$2';\nvar camelToDash = function (str) {\n return str.replace(CAMEL_CASE_PATTERN, REPLACE_TEMPLATE).toLowerCase();\n};\n\nvar camelCache = /*#__PURE__*/new Map();\nvar dashCache = /*#__PURE__*/new Map();\nvar prefixes = ['Webkit', 'Moz', 'O', 'ms', ''];\nvar numPrefixes = prefixes.length;\nvar isBrowser = typeof document !== 'undefined';\nvar testElement;\nvar setDashPrefix = function (key, prefixed) {\n return dashCache.set(key, camelToDash(prefixed));\n};\nvar testPrefix = function (key) {\n testElement = testElement || document.createElement('div');\n for (var i = 0; i < numPrefixes; i++) {\n var prefix = prefixes[i];\n var noPrefix = prefix === '';\n var prefixedPropertyName = noPrefix ? key : prefix + key.charAt(0).toUpperCase() + key.slice(1);\n if (prefixedPropertyName in testElement.style || noPrefix) {\n if (noPrefix && key === 'clipPath' && dashCache.has(key)) {\n return;\n }\n camelCache.set(key, prefixedPropertyName);\n setDashPrefix(key, \"\" + (noPrefix ? '' : '-') + camelToDash(prefixedPropertyName));\n }\n }\n};\nvar setServerProperty = function (key) {\n return setDashPrefix(key, key);\n};\nvar prefixer = function (key, asDashCase) {\n if (asDashCase === void 0) {\n asDashCase = false;\n }\n var cache = asDashCase ? dashCache : camelCache;\n if (!cache.has(key)) {\n isBrowser ? testPrefix(key) : setServerProperty(key);\n }\n return cache.get(key) || key;\n};\n\nvar axes = ['', 'X', 'Y', 'Z'];\nvar order = ['translate', 'scale', 'rotate', 'skew', 'transformPerspective'];\nvar transformProps = /*#__PURE__*/order.reduce(function (acc, key) {\n return axes.reduce(function (axesAcc, axesKey) {\n axesAcc.push(key + axesKey);\n return axesAcc;\n }, acc);\n}, ['x', 'y', 'z']);\nvar transformPropDictionary = /*#__PURE__*/transformProps.reduce(function (dict, key) {\n dict[key] = true;\n return dict;\n}, {});\nfunction isTransformProp(key) {\n return transformPropDictionary[key] === true;\n}\nfunction sortTransformProps(a, b) {\n return transformProps.indexOf(a) - transformProps.indexOf(b);\n}\nvar transformOriginProps = /*#__PURE__*/new Set(['originX', 'originY', 'originZ']);\nfunction isTransformOriginProp(key) {\n return transformOriginProps.has(key);\n}\n\nvar int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });\nvar valueTypes = {\n color: color,\n backgroundColor: color,\n outlineColor: color,\n fill: color,\n stroke: color,\n borderColor: color,\n borderTopColor: color,\n borderRightColor: color,\n borderBottomColor: color,\n borderLeftColor: color,\n borderWidth: px,\n borderTopWidth: px,\n borderRightWidth: px,\n borderBottomWidth: px,\n borderLeftWidth: px,\n borderRadius: px,\n radius: px,\n borderTopLeftRadius: px,\n borderTopRightRadius: px,\n borderBottomRightRadius: px,\n borderBottomLeftRadius: px,\n width: px,\n maxWidth: px,\n height: px,\n maxHeight: px,\n size: px,\n top: px,\n right: px,\n bottom: px,\n left: px,\n padding: px,\n paddingTop: px,\n paddingRight: px,\n paddingBottom: px,\n paddingLeft: px,\n margin: px,\n marginTop: px,\n marginRight: px,\n marginBottom: px,\n marginLeft: px,\n rotate: degrees,\n rotateX: degrees,\n rotateY: degrees,\n rotateZ: degrees,\n scale: scale,\n scaleX: scale,\n scaleY: scale,\n scaleZ: scale,\n skew: degrees,\n skewX: degrees,\n skewY: degrees,\n distance: px,\n translateX: px,\n translateY: px,\n translateZ: px,\n x: px,\n y: px,\n z: px,\n perspective: px,\n opacity: alpha,\n originX: progressPercentage,\n originY: progressPercentage,\n originZ: px,\n zIndex: int,\n fillOpacity: alpha,\n strokeOpacity: alpha,\n numOctaves: int\n};\nvar getValueType = function (key) {\n return valueTypes[key];\n};\nvar getValueAsType = function (value, type) {\n return type && typeof value === 'number' ? type.transform(value) : value;\n};\n\nvar SCROLL_LEFT = 'scrollLeft';\nvar SCROLL_TOP = 'scrollTop';\nvar scrollKeys = /*#__PURE__*/new Set([SCROLL_LEFT, SCROLL_TOP]);\n\nvar blacklist = /*#__PURE__*/new Set([SCROLL_LEFT, SCROLL_TOP, 'transform']);\nvar translateAlias = {\n x: 'translateX',\n y: 'translateY',\n z: 'translateZ'\n};\nfunction isCustomTemplate(v) {\n return typeof v === 'function';\n}\nfunction buildTransform(state, transform, transformKeys, transformIsDefault, enableHardwareAcceleration, allowTransformNone) {\n if (allowTransformNone === void 0) {\n allowTransformNone = true;\n }\n var transformString = '';\n var transformHasZ = false;\n transformKeys.sort(sortTransformProps);\n var numTransformKeys = transformKeys.length;\n for (var i = 0; i < numTransformKeys; i++) {\n var key = transformKeys[i];\n transformString += (translateAlias[key] || key) + \"(\" + transform[key] + \") \";\n transformHasZ = key === 'z' ? true : transformHasZ;\n }\n if (!transformHasZ && enableHardwareAcceleration) {\n transformString += 'translateZ(0)';\n } else {\n transformString = transformString.trim();\n }\n if (isCustomTemplate(state.transform)) {\n transformString = state.transform(transform, transformIsDefault ? '' : transformString);\n } else if (allowTransformNone && transformIsDefault) {\n transformString = 'none';\n }\n return transformString;\n}\nfunction buildStyleProperty(state, enableHardwareAcceleration, styles, transform, transformOrigin, transformKeys, isDashCase, allowTransformNone) {\n if (enableHardwareAcceleration === void 0) {\n enableHardwareAcceleration = true;\n }\n if (styles === void 0) {\n styles = {};\n }\n if (transform === void 0) {\n transform = {};\n }\n if (transformOrigin === void 0) {\n transformOrigin = {};\n }\n if (transformKeys === void 0) {\n transformKeys = [];\n }\n if (isDashCase === void 0) {\n isDashCase = false;\n }\n if (allowTransformNone === void 0) {\n allowTransformNone = true;\n }\n var transformIsDefault = true;\n var hasTransform = false;\n var hasTransformOrigin = false;\n for (var key in state) {\n var value = state[key];\n var valueType = getValueType(key);\n var valueAsType = getValueAsType(value, valueType);\n if (isTransformProp(key)) {\n hasTransform = true;\n transform[key] = valueAsType;\n transformKeys.push(key);\n if (transformIsDefault) {\n if (valueType.default && value !== valueType.default || !valueType.default && value !== 0) {\n transformIsDefault = false;\n }\n }\n } else if (isTransformOriginProp(key)) {\n transformOrigin[key] = valueAsType;\n hasTransformOrigin = true;\n } else if (!blacklist.has(key) || !isCustomTemplate(valueAsType)) {\n styles[prefixer(key, isDashCase)] = valueAsType;\n }\n }\n if (hasTransform || typeof state.transform === 'function') {\n styles.transform = buildTransform(state, transform, transformKeys, transformIsDefault, enableHardwareAcceleration, allowTransformNone);\n }\n if (hasTransformOrigin) {\n styles.transformOrigin = (transformOrigin.originX || '50%') + \" \" + (transformOrigin.originY || '50%') + \" \" + (transformOrigin.originZ || 0);\n }\n return styles;\n}\nfunction createStyleBuilder(_a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.enableHardwareAcceleration,\n enableHardwareAcceleration = _c === void 0 ? true : _c,\n _d = _b.isDashCase,\n isDashCase = _d === void 0 ? true : _d,\n _e = _b.allowTransformNone,\n allowTransformNone = _e === void 0 ? true : _e;\n var styles = {};\n var transform = {};\n var transformOrigin = {};\n var transformKeys = [];\n return function (state) {\n transformKeys.length = 0;\n buildStyleProperty(state, enableHardwareAcceleration, styles, transform, transformOrigin, transformKeys, isDashCase, allowTransformNone);\n return styles;\n };\n}\n\nfunction onRead(key, options) {\n var element = options.element,\n preparseOutput = options.preparseOutput;\n var defaultValueType = getValueType(key);\n if (isTransformProp(key)) {\n return defaultValueType ? defaultValueType.default || 0 : 0;\n } else if (scrollKeys.has(key)) {\n return element[key];\n } else {\n var domValue = window.getComputedStyle(element, null).getPropertyValue(prefixer(key, true)) || 0;\n return preparseOutput && defaultValueType && defaultValueType.test(domValue) && defaultValueType.parse ? defaultValueType.parse(domValue) : domValue;\n }\n}\nfunction onRender(state, _a, changedValues) {\n var element = _a.element,\n buildStyles = _a.buildStyles,\n hasCSSVariable = _a.hasCSSVariable;\n Object.assign(element.style, buildStyles(state));\n if (hasCSSVariable) {\n var numChangedValues = changedValues.length;\n for (var i = 0; i < numChangedValues; i++) {\n var key = changedValues[i];\n if (key.startsWith('--')) {\n element.style.setProperty(key, state[key]);\n }\n }\n }\n if (changedValues.indexOf(SCROLL_LEFT) !== -1) {\n element[SCROLL_LEFT] = state[SCROLL_LEFT];\n }\n if (changedValues.indexOf(SCROLL_TOP) !== -1) {\n element[SCROLL_TOP] = state[SCROLL_TOP];\n }\n}\nvar cssStyler = /*#__PURE__*/createStyler({\n onRead: onRead,\n onRender: onRender,\n uncachedValues: scrollKeys\n});\nfunction createCssStyler(element, _a) {\n if (_a === void 0) {\n _a = {};\n }\n var enableHardwareAcceleration = _a.enableHardwareAcceleration,\n allowTransformNone = _a.allowTransformNone,\n props = __rest(_a, [\"enableHardwareAcceleration\", \"allowTransformNone\"]);\n return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({\n enableHardwareAcceleration: enableHardwareAcceleration,\n allowTransformNone: allowTransformNone\n }), preparseOutput: true }, props));\n}\n\nvar camelCaseAttributes = /*#__PURE__*/new Set(['baseFrequency', 'diffuseConstant', 'kernelMatrix', 'kernelUnitLength', 'keySplines', 'keyTimes', 'limitingConeAngle', 'markerHeight', 'markerWidth', 'numOctaves', 'targetX', 'targetY', 'surfaceScale', 'specularConstant', 'specularExponent', 'stdDeviation', 'tableValues']);\n\nvar defaultOrigin = 0.5;\nvar svgAttrsTemplate = function () {\n return {\n style: {}\n };\n};\nvar progressToPixels = function (progress, length) {\n return px.transform(progress * length);\n};\nvar unmeasured = { x: 0, y: 0, width: 0, height: 0 };\nfunction calcOrigin(origin, offset, size) {\n return typeof origin === 'string' ? origin : px.transform(offset + size * origin);\n}\nfunction calculateSVGTransformOrigin(dimensions, originX, originY) {\n return calcOrigin(originX, dimensions.x, dimensions.width) + \" \" + calcOrigin(originY, dimensions.y, dimensions.height);\n}\nvar svgStyleConfig = {\n enableHardwareAcceleration: false,\n isDashCase: false\n};\nfunction buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDashCase) {\n if (dimensions === void 0) {\n dimensions = unmeasured;\n }\n if (cssBuilder === void 0) {\n cssBuilder = createStyleBuilder(svgStyleConfig);\n }\n if (attrs === void 0) {\n attrs = svgAttrsTemplate();\n }\n if (isDashCase === void 0) {\n isDashCase = true;\n }\n var attrX = _a.attrX,\n attrY = _a.attrY,\n originX = _a.originX,\n originY = _a.originY,\n pathLength = _a.pathLength,\n _b = _a.pathSpacing,\n pathSpacing = _b === void 0 ? 1 : _b,\n _c = _a.pathOffset,\n pathOffset = _c === void 0 ? 0 : _c,\n state = __rest(_a, [\"attrX\", \"attrY\", \"originX\", \"originY\", \"pathLength\", \"pathSpacing\", \"pathOffset\"]);\n var style = cssBuilder(state);\n for (var key in style) {\n if (key === 'transform') {\n attrs.style.transform = style[key];\n } else {\n var attrKey = isDashCase && !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n attrs[attrKey] = style[key];\n }\n }\n if (originX !== undefined || originY !== undefined || style.transform) {\n attrs.style.transformOrigin = calculateSVGTransformOrigin(dimensions, originX !== undefined ? originX : defaultOrigin, originY !== undefined ? originY : defaultOrigin);\n }\n if (attrX !== undefined) attrs.x = attrX;\n if (attrY !== undefined) attrs.y = attrY;\n if (totalPathLength !== undefined && pathLength !== undefined) {\n attrs[isDashCase ? 'stroke-dashoffset' : 'strokeDashoffset'] = progressToPixels(-pathOffset, totalPathLength);\n attrs[isDashCase ? 'stroke-dasharray' : 'strokeDasharray'] = progressToPixels(pathLength, totalPathLength) + \" \" + progressToPixels(pathSpacing, totalPathLength);\n }\n return attrs;\n}\nfunction createAttrBuilder(dimensions, totalPathLength, isDashCase) {\n if (isDashCase === void 0) {\n isDashCase = true;\n }\n var attrs = svgAttrsTemplate();\n var cssBuilder = createStyleBuilder(svgStyleConfig);\n return function (state) {\n return buildSVGAttrs(state, dimensions, totalPathLength, cssBuilder, attrs, isDashCase);\n };\n}\n\nvar getDimensions = function (element) {\n return typeof element.getBBox === 'function' ? element.getBBox() : element.getBoundingClientRect();\n};\nvar getSVGElementDimensions = function (element) {\n try {\n return getDimensions(element);\n } catch (e) {\n return { x: 0, y: 0, width: 0, height: 0 };\n }\n};\n\nvar isPath = function (element) {\n return element.tagName === 'path';\n};\nvar svgStyler = /*#__PURE__*/createStyler({\n onRead: function (key, _a) {\n var element = _a.element;\n key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n if (!isTransformProp(key)) {\n return element.getAttribute(key);\n } else {\n var valueType = getValueType(key);\n return valueType ? valueType.default || 0 : 0;\n }\n },\n onRender: function (state, _a) {\n var element = _a.element,\n buildAttrs = _a.buildAttrs;\n var attrs = buildAttrs(state);\n for (var key in attrs) {\n if (key === 'style') {\n Object.assign(element.style, attrs.style);\n } else {\n element.setAttribute(key, attrs[key]);\n }\n }\n }\n});\nvar svg = function (element) {\n var dimensions = getSVGElementDimensions(element);\n var pathLength = isPath(element) && element.getTotalLength ? element.getTotalLength() : undefined;\n return svgStyler({\n element: element,\n buildAttrs: createAttrBuilder(dimensions, pathLength)\n });\n};\n\nvar viewport = /*#__PURE__*/createStyler({\n useCache: false,\n onRead: function (key) {\n return key === 'scrollTop' ? window.pageYOffset : window.pageXOffset;\n },\n onRender: function (_a) {\n var _b = _a.scrollTop,\n scrollTop = _b === void 0 ? 0 : _b,\n _c = _a.scrollLeft,\n scrollLeft = _c === void 0 ? 0 : _c;\n return window.scrollTo(scrollLeft, scrollTop);\n }\n});\n\nvar cache = /*#__PURE__*/new WeakMap();\nvar isHTMLElement = function (node) {\n return node instanceof HTMLElement || typeof node.click === 'function';\n};\nvar isSVGElement = function (node) {\n return node instanceof SVGElement || 'ownerSVGElement' in node;\n};\nvar createDOMStyler = function (node, props) {\n var styler;\n if (node === window) {\n styler = viewport(node);\n } else if (isHTMLElement(node)) {\n styler = createCssStyler(node, props);\n } else if (isSVGElement(node)) {\n styler = svg(node);\n }\n invariant(styler !== undefined, 'No valid node provided. Node must be HTMLElement, SVGElement or window.');\n cache.set(node, styler);\n return styler;\n};\nvar getStyler = function (node, props) {\n return cache.has(node) ? cache.get(node) : createDOMStyler(node, props);\n};\nfunction index(nodeOrSelector, props) {\n var node = typeof nodeOrSelector === 'string' ? document.querySelector(nodeOrSelector) : nodeOrSelector;\n return getStyler(node, props);\n}\n\nexport default index;\nexport { buildSVGAttrs, buildStyleProperty, createStyler as createStylerFactory, isTransformProp, transformProps };\n","import { __assign, __spreadArrays, __extends, __rest } from 'tslib';\nimport { pipe, angle, degreesToRadians, distance, isPoint3D, isPoint, mix, pointFromVector, progress, radiansToDegrees, smoothFrame, velocityPerFrame, velocityPerSecond, mixComplex, mixColor, clamp, applyOffset, conditional, interpolate, mixArray, smooth, snap, springForce, springForceExpo, springForceLinear, wrap } from '@popmotion/popcorn';\nimport sync, { getFrameData, cancelSync } from 'framesync';\nimport { color, complex, px, percent, degrees, vh, vw, number } from 'style-value-types';\nimport * as styleValueTypes from 'style-value-types';\nexport { styleValueTypes as valueTypes };\nimport { createReversedEasing, linear, easeOut, easeInOut } from '@popmotion/easing';\nimport * as easing from '@popmotion/easing';\nexport { easing };\nimport styler from 'stylefire';\nexport { default as styler } from 'stylefire';\nimport { warning } from 'hey-listen';\n\nvar Chainable = /*#__PURE__*/function () {\n function Chainable(props) {\n if (props === void 0) {\n props = {};\n }\n this.props = props;\n }\n Chainable.prototype.applyMiddleware = function (middleware) {\n return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));\n };\n Chainable.prototype.pipe = function () {\n var funcs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n funcs[_i] = arguments[_i];\n }\n var pipedUpdate = funcs.length === 1 ? funcs[0] : pipe.apply(void 0, funcs);\n return this.applyMiddleware(function (update) {\n return function (v) {\n return update(pipedUpdate(v));\n };\n });\n };\n Chainable.prototype.while = function (predicate) {\n return this.applyMiddleware(function (update, complete) {\n return function (v) {\n return predicate(v) ? update(v) : complete();\n };\n });\n };\n Chainable.prototype.filter = function (predicate) {\n return this.applyMiddleware(function (update) {\n return function (v) {\n return predicate(v) && update(v);\n };\n });\n };\n return Chainable;\n}();\n\nvar Observer = /*#__PURE__*/function () {\n function Observer(_a, observer) {\n var _this = this;\n var middleware = _a.middleware,\n onComplete = _a.onComplete;\n this.isActive = true;\n this.update = function (v) {\n if (_this.observer.update) _this.updateObserver(v);\n };\n this.complete = function () {\n if (_this.observer.complete && _this.isActive) _this.observer.complete();\n if (_this.onComplete) _this.onComplete();\n _this.isActive = false;\n };\n this.error = function (err) {\n if (_this.observer.error && _this.isActive) _this.observer.error(err);\n _this.isActive = false;\n };\n this.observer = observer;\n this.updateObserver = function (v) {\n return observer.update(v);\n };\n this.onComplete = onComplete;\n if (observer.update && middleware && middleware.length) {\n middleware.forEach(function (m) {\n return _this.updateObserver = m(_this.updateObserver, _this.complete);\n });\n }\n }\n return Observer;\n}();\nvar createObserver = function (observerCandidate, _a, onComplete) {\n var middleware = _a.middleware;\n if (typeof observerCandidate === 'function') {\n return new Observer({ middleware: middleware, onComplete: onComplete }, { update: observerCandidate });\n } else {\n return new Observer({ middleware: middleware, onComplete: onComplete }, observerCandidate);\n }\n};\n\nvar Action = /*#__PURE__*/function (_super) {\n __extends(Action, _super);\n function Action() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Action.prototype.create = function (props) {\n return new Action(props);\n };\n Action.prototype.start = function (observerCandidate) {\n if (observerCandidate === void 0) {\n observerCandidate = {};\n }\n var isComplete = false;\n var subscription = {\n stop: function () {\n return undefined;\n }\n };\n var _a = this.props,\n init = _a.init,\n observerProps = __rest(_a, [\"init\"]);\n var observer = createObserver(observerCandidate, observerProps, function () {\n isComplete = true;\n subscription.stop();\n });\n var api = init(observer);\n subscription = api ? __assign(__assign({}, subscription), api) : subscription;\n if (observerCandidate.registerParent) {\n observerCandidate.registerParent(subscription);\n }\n if (isComplete) subscription.stop();\n return subscription;\n };\n return Action;\n}(Chainable);\nvar action = function (init) {\n return new Action({ init: init });\n};\n\nvar BaseMulticast = /*#__PURE__*/function (_super) {\n __extends(BaseMulticast, _super);\n function BaseMulticast() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.subscribers = [];\n return _this;\n }\n BaseMulticast.prototype.complete = function () {\n this.subscribers.forEach(function (subscriber) {\n return subscriber.complete();\n });\n };\n BaseMulticast.prototype.error = function (err) {\n this.subscribers.forEach(function (subscriber) {\n return subscriber.error(err);\n });\n };\n BaseMulticast.prototype.update = function (v) {\n for (var i = 0; i < this.subscribers.length; i++) {\n this.subscribers[i].update(v);\n }\n };\n BaseMulticast.prototype.subscribe = function (observerCandidate) {\n var _this = this;\n var observer = createObserver(observerCandidate, this.props);\n this.subscribers.push(observer);\n var subscription = {\n unsubscribe: function () {\n var index = _this.subscribers.indexOf(observer);\n if (index !== -1) _this.subscribers.splice(index, 1);\n }\n };\n return subscription;\n };\n BaseMulticast.prototype.stop = function () {\n if (this.parent) this.parent.stop();\n };\n BaseMulticast.prototype.registerParent = function (subscription) {\n this.stop();\n this.parent = subscription;\n };\n return BaseMulticast;\n}(Chainable);\n\nvar Multicast = /*#__PURE__*/function (_super) {\n __extends(Multicast, _super);\n function Multicast() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Multicast.prototype.create = function (props) {\n return new Multicast(props);\n };\n return Multicast;\n}(BaseMulticast);\nvar multicast = function () {\n return new Multicast();\n};\n\nvar stepProgress = function (steps, progress) {\n var segment = 1 / (steps - 1);\n var subsegment = 1 / (2 * (steps - 1));\n var percentProgressOfTarget = Math.min(progress, 1);\n var subsegmentProgressOfTarget = percentProgressOfTarget / subsegment;\n var segmentProgressOfTarget = Math.floor((subsegmentProgressOfTarget + 1) / 2);\n return segmentProgressOfTarget * segment;\n};\n\nvar calc = /*#__PURE__*/Object.freeze({\n __proto__: null,\n angle: angle,\n degreesToRadians: degreesToRadians,\n distance: distance,\n isPoint3D: isPoint3D,\n isPoint: isPoint,\n dilate: mix,\n getValueFromProgress: mix,\n pointFromAngleAndDistance: pointFromVector,\n getProgressFromValue: progress,\n radiansToDegrees: radiansToDegrees,\n smooth: smoothFrame,\n speedPerFrame: velocityPerFrame,\n speedPerSecond: velocityPerSecond,\n stepProgress: stepProgress\n});\n\nvar isValueList = function (v) {\n return Array.isArray(v);\n};\nvar isSingleValue = function (v) {\n var typeOfV = typeof v;\n return typeOfV === 'string' || typeOfV === 'number';\n};\nvar ValueReaction = /*#__PURE__*/function (_super) {\n __extends(ValueReaction, _super);\n function ValueReaction(props) {\n var _this = _super.call(this, props) || this;\n _this.scheduleVelocityCheck = function () {\n return sync.postRender(_this.velocityCheck);\n };\n _this.velocityCheck = function (_a) {\n var timestamp = _a.timestamp;\n if (timestamp !== _this.lastUpdated) {\n _this.prev = _this.current;\n }\n };\n _this.prev = _this.current = props.value || 0;\n if (isSingleValue(_this.current)) {\n _this.updateCurrent = function (v) {\n return _this.current = v;\n };\n _this.getVelocityOfCurrent = function () {\n return _this.getSingleVelocity(_this.current, _this.prev);\n };\n } else if (isValueList(_this.current)) {\n _this.updateCurrent = function (v) {\n return _this.current = __spreadArrays(v);\n };\n _this.getVelocityOfCurrent = function () {\n return _this.getListVelocity();\n };\n } else {\n _this.updateCurrent = function (v) {\n _this.current = {};\n for (var key in v) {\n if (v.hasOwnProperty(key)) {\n _this.current[key] = v[key];\n }\n }\n };\n _this.getVelocityOfCurrent = function () {\n return _this.getMapVelocity();\n };\n }\n if (props.initialSubscription) _this.subscribe(props.initialSubscription);\n return _this;\n }\n ValueReaction.prototype.create = function (props) {\n return new ValueReaction(props);\n };\n ValueReaction.prototype.get = function () {\n return this.current;\n };\n ValueReaction.prototype.getVelocity = function () {\n return this.getVelocityOfCurrent();\n };\n ValueReaction.prototype.update = function (v) {\n _super.prototype.update.call(this, v);\n this.prev = this.current;\n this.updateCurrent(v);\n var _a = getFrameData(),\n delta = _a.delta,\n timestamp = _a.timestamp;\n this.timeDelta = delta;\n this.lastUpdated = timestamp;\n sync.postRender(this.scheduleVelocityCheck);\n };\n ValueReaction.prototype.subscribe = function (observerCandidate) {\n var sub = _super.prototype.subscribe.call(this, observerCandidate);\n this.subscribers[this.subscribers.length - 1].update(this.current);\n return sub;\n };\n ValueReaction.prototype.getSingleVelocity = function (current, prev) {\n return typeof current === 'number' && typeof prev === 'number' ? velocityPerSecond(current - prev, this.timeDelta) : velocityPerSecond(parseFloat(current) - parseFloat(prev), this.timeDelta) || 0;\n };\n ValueReaction.prototype.getListVelocity = function () {\n var _this = this;\n return this.current.map(function (c, i) {\n return _this.getSingleVelocity(c, _this.prev[i]);\n });\n };\n ValueReaction.prototype.getMapVelocity = function () {\n var velocity = {};\n for (var key in this.current) {\n if (this.current.hasOwnProperty(key)) {\n velocity[key] = this.getSingleVelocity(this.current[key], this.prev[key]);\n }\n }\n return velocity;\n };\n return ValueReaction;\n}(BaseMulticast);\nvar value = function (value, initialSubscription) {\n return new ValueReaction({ value: value, initialSubscription: initialSubscription });\n};\n\nvar multi = function (_a) {\n var getCount = _a.getCount,\n getFirst = _a.getFirst,\n getOutput = _a.getOutput,\n mapApi = _a.mapApi,\n setProp = _a.setProp,\n startActions = _a.startActions;\n return function (actions) {\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete,\n error = _a.error;\n var numActions = getCount(actions);\n var output = getOutput();\n var updateOutput = function () {\n return update(output);\n };\n var numCompletedActions = 0;\n var subs = startActions(actions, function (a, name) {\n var hasCompleted = false;\n return a.start({\n complete: function () {\n if (!hasCompleted) {\n hasCompleted = true;\n numCompletedActions++;\n if (numCompletedActions === numActions) sync.update(complete);\n }\n },\n error: error,\n update: function (v) {\n setProp(output, name, v);\n sync.update(updateOutput, false, true);\n }\n });\n });\n return Object.keys(getFirst(subs)).reduce(function (api, methodName) {\n api[methodName] = mapApi(subs, methodName);\n return api;\n }, {});\n });\n };\n};\n\nvar composite = /*#__PURE__*/multi({\n getOutput: function () {\n return {};\n },\n getCount: function (subs) {\n return Object.keys(subs).length;\n },\n getFirst: function (subs) {\n return subs[Object.keys(subs)[0]];\n },\n mapApi: function (subs, methodName) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return Object.keys(subs).reduce(function (output, propKey) {\n var _a;\n if (subs[propKey][methodName]) {\n args[0] && args[0][propKey] !== undefined ? output[propKey] = subs[propKey][methodName](args[0][propKey]) : output[propKey] = (_a = subs[propKey])[methodName].apply(_a, args);\n }\n return output;\n }, {});\n };\n },\n setProp: function (output, name, v) {\n return output[name] = v;\n },\n startActions: function (actions, starter) {\n return Object.keys(actions).reduce(function (subs, key) {\n subs[key] = starter(actions[key], key);\n return subs;\n }, {});\n }\n});\n\nvar parallel = /*#__PURE__*/multi({\n getOutput: function () {\n return [];\n },\n getCount: function (subs) {\n return subs.length;\n },\n getFirst: function (subs) {\n return subs[0];\n },\n mapApi: function (subs, methodName) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return subs.map(function (sub, i) {\n if (sub[methodName]) {\n return Array.isArray(args[0]) ? sub[methodName](args[0][i]) : sub[methodName].apply(sub, args);\n }\n });\n };\n },\n setProp: function (output, name, v) {\n return output[name] = v;\n },\n startActions: function (actions, starter) {\n return actions.map(function (action, i) {\n return starter(action, i);\n });\n }\n});\nvar parallel$1 = function () {\n var actions = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n actions[_i] = arguments[_i];\n }\n return parallel(actions);\n};\n\nvar createVectorTests = function (typeTests) {\n var testNames = Object.keys(typeTests);\n var isVectorProp = function (prop, key) {\n return prop !== undefined && !typeTests[key](prop);\n };\n var getVectorKeys = function (props) {\n return testNames.reduce(function (vectorKeys, key) {\n if (isVectorProp(props[key], key)) vectorKeys.push(key);\n return vectorKeys;\n }, []);\n };\n var testVectorProps = function (props) {\n return props && testNames.some(function (key) {\n return isVectorProp(props[key], key);\n });\n };\n return { getVectorKeys: getVectorKeys, testVectorProps: testVectorProps };\n};\nvar unitTypes = [px, percent, degrees, vh, vw];\nvar findUnitType = function (prop) {\n return unitTypes.find(function (type) {\n return type.test(prop);\n });\n};\nvar isUnitProp = function (prop) {\n return Boolean(findUnitType(prop));\n};\nvar createAction = function (action, props) {\n return action(props);\n};\nvar reduceArrayValue = function (i) {\n return function (props, key) {\n props[key] = props[key][i];\n return props;\n };\n};\nvar createArrayAction = function (action, props, vectorKeys) {\n var firstVectorKey = vectorKeys[0];\n var actionList = props[firstVectorKey].map(function (v, i) {\n var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));\n return getActionCreator(v)(action, childActionProps);\n });\n return parallel$1.apply(void 0, actionList);\n};\nvar reduceObjectValue = function (key) {\n return function (props, propKey) {\n props[propKey] = props[propKey][key];\n return props;\n };\n};\nvar createObjectAction = function (action, props, vectorKeys) {\n var firstVectorKey = vectorKeys[0];\n var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {\n var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));\n map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);\n return map;\n }, {});\n return composite(actionMap);\n};\nvar createUnitAction = function (action, _a) {\n var from = _a.from,\n to = _a.to,\n props = __rest(_a, [\"from\", \"to\"]);\n var unitType = findUnitType(from) || findUnitType(to);\n var transform = unitType.transform,\n parse = unitType.parse;\n return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);\n};\nvar createMixerAction = function (mixer) {\n return function (action, _a) {\n var from = _a.from,\n to = _a.to,\n props = __rest(_a, [\"from\", \"to\"]);\n return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));\n };\n};\nvar createColorAction = /*#__PURE__*/createMixerAction(mixColor);\nvar createComplexAction = /*#__PURE__*/createMixerAction(mixComplex);\nvar createVectorAction = function (action, typeTests) {\n var _a = createVectorTests(typeTests),\n testVectorProps = _a.testVectorProps,\n getVectorKeys = _a.getVectorKeys;\n var vectorAction = function (props) {\n var isVector = testVectorProps(props);\n if (!isVector) return action(props);\n var vectorKeys = getVectorKeys(props);\n var testKey = vectorKeys[0];\n var testProp = props[testKey];\n return getActionCreator(testProp)(action, props, vectorKeys);\n };\n return vectorAction;\n};\nvar getActionCreator = function (prop) {\n if (typeof prop === 'number') {\n return createAction;\n } else if (Array.isArray(prop)) {\n return createArrayAction;\n } else if (isUnitProp(prop)) {\n return createUnitAction;\n } else if (color.test(prop)) {\n return createColorAction;\n } else if (complex.test(prop)) {\n return createComplexAction;\n } else if (typeof prop === 'object') {\n return createObjectAction;\n } else {\n return createAction;\n }\n};\n\nvar decay = function (props) {\n if (props === void 0) {\n props = {};\n }\n return action(function (_a) {\n var complete = _a.complete,\n update = _a.update;\n var _b = props.velocity,\n velocity = _b === void 0 ? 0 : _b,\n _c = props.from,\n from = _c === void 0 ? 0 : _c,\n _d = props.power,\n power = _d === void 0 ? 0.8 : _d,\n _e = props.timeConstant,\n timeConstant = _e === void 0 ? 350 : _e,\n _f = props.restDelta,\n restDelta = _f === void 0 ? 0.5 : _f,\n modifyTarget = props.modifyTarget;\n var elapsed = 0;\n var amplitude = power * velocity;\n var idealTarget = from + amplitude;\n var target = typeof modifyTarget === 'undefined' ? idealTarget : modifyTarget(idealTarget);\n if (target !== idealTarget) amplitude = target - from;\n var process = sync.update(function (_a) {\n var frameDelta = _a.delta;\n elapsed += frameDelta;\n var delta = -amplitude * Math.exp(-elapsed / timeConstant);\n var isMoving = delta > restDelta || delta < -restDelta;\n var current = isMoving ? target + delta : target;\n update(current);\n if (!isMoving) {\n cancelSync.update(process);\n complete();\n }\n }, true);\n return {\n stop: function () {\n return cancelSync.update(process);\n }\n };\n });\n};\nvar vectorDecay = /*#__PURE__*/createVectorAction(decay, {\n from: number.test,\n modifyTarget: function (func) {\n return typeof func === 'function';\n },\n velocity: number.test\n});\n\nvar spring = function (props) {\n if (props === void 0) {\n props = {};\n }\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n var _b = props.velocity,\n velocity = _b === void 0 ? 0.0 : _b;\n var _c = props.from,\n from = _c === void 0 ? 0.0 : _c,\n _d = props.to,\n to = _d === void 0 ? 0.0 : _d,\n _e = props.stiffness,\n stiffness = _e === void 0 ? 100 : _e,\n _f = props.damping,\n damping = _f === void 0 ? 10 : _f,\n _g = props.mass,\n mass = _g === void 0 ? 1.0 : _g,\n _h = props.restSpeed,\n restSpeed = _h === void 0 ? 0.01 : _h,\n _j = props.restDelta,\n restDelta = _j === void 0 ? 0.01 : _j;\n var initialVelocity = velocity ? -(velocity / 1000) : 0.0;\n var t = 0;\n var delta = to - from;\n var position = from;\n var prevPosition = position;\n var process = sync.update(function (_a) {\n var timeDelta = _a.delta;\n t += timeDelta;\n var dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n var angularFreq = Math.sqrt(stiffness / mass) / 1000;\n prevPosition = position;\n if (dampingRatio < 1) {\n var envelope = Math.exp(-dampingRatio * angularFreq * t);\n var expoDecay = angularFreq * Math.sqrt(1.0 - dampingRatio * dampingRatio);\n position = to - envelope * ((initialVelocity + dampingRatio * angularFreq * delta) / expoDecay * Math.sin(expoDecay * t) + delta * Math.cos(expoDecay * t));\n } else {\n var envelope = Math.exp(-angularFreq * t);\n position = to - envelope * (delta + (initialVelocity + angularFreq * delta) * t);\n }\n velocity = velocityPerSecond(position - prevPosition, timeDelta);\n var isBelowVelocityThreshold = Math.abs(velocity) <= restSpeed;\n var isBelowDisplacementThreshold = Math.abs(to - position) <= restDelta;\n if (isBelowVelocityThreshold && isBelowDisplacementThreshold) {\n position = to;\n update(position);\n cancelSync.update(process);\n complete();\n } else {\n update(position);\n }\n }, true);\n return {\n stop: function () {\n return cancelSync.update(process);\n }\n };\n });\n};\nvar vectorSpring = /*#__PURE__*/createVectorAction(spring, {\n from: number.test,\n to: number.test,\n stiffness: number.test,\n damping: number.test,\n mass: number.test,\n velocity: number.test\n});\n\nvar inertia = function (_a) {\n var _b = _a.from,\n from = _b === void 0 ? 0 : _b,\n _c = _a.velocity,\n velocity = _c === void 0 ? 0 : _c,\n min = _a.min,\n max = _a.max,\n _d = _a.power,\n power = _d === void 0 ? 0.8 : _d,\n _e = _a.timeConstant,\n timeConstant = _e === void 0 ? 700 : _e,\n _f = _a.bounceStiffness,\n bounceStiffness = _f === void 0 ? 500 : _f,\n _g = _a.bounceDamping,\n bounceDamping = _g === void 0 ? 10 : _g,\n _h = _a.restDelta,\n restDelta = _h === void 0 ? 1 : _h,\n modifyTarget = _a.modifyTarget;\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n var prev = from;\n var current = from;\n var activeAnimation;\n var isOutOfBounds = function (v) {\n return min !== undefined && v < min || max !== undefined && v > max;\n };\n var boundaryNearest = function (v) {\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n var startAnimation = function (animation, next) {\n activeAnimation && activeAnimation.stop();\n activeAnimation = animation.start({\n update: update,\n complete: function () {\n if (next) {\n next();\n return;\n }\n complete();\n }\n });\n };\n var startSpring = function (props) {\n startAnimation(spring(__assign(__assign({}, props), { stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));\n };\n if (isOutOfBounds(from)) {\n startSpring({ from: from, velocity: velocity, to: boundaryNearest(from) });\n } else {\n var to = power * velocity + from;\n if (typeof modifyTarget !== 'undefined') {\n to = modifyTarget(to);\n modifyTarget = void 0;\n velocity = (to - from) / power;\n }\n var animation = decay({\n from: from,\n velocity: velocity,\n timeConstant: timeConstant,\n power: power,\n restDelta: restDelta,\n modifyTarget: modifyTarget\n });\n var next = void 0;\n if (isOutOfBounds(to)) {\n var boundary_1 = boundaryNearest(to);\n var heading_1 = boundary_1 == min ? -1 : 1;\n animation = animation.while(function (v) {\n prev = current;\n velocity = velocityPerSecond(v - prev, getFrameData().delta);\n current = v;\n return boundary_1 - v * heading_1 > 0;\n });\n next = function () {\n return startSpring({ from: current, to: boundary_1, velocity: velocity });\n };\n }\n startAnimation(animation, next);\n }\n return {\n stop: function () {\n return activeAnimation && activeAnimation.stop();\n }\n };\n });\n};\nvar index = /*#__PURE__*/createVectorAction(inertia, {\n from: number.test,\n velocity: number.test,\n min: number.test,\n max: number.test,\n damping: number.test,\n stiffness: number.test,\n modifyTarget: function (func) {\n return typeof func === 'function';\n }\n});\n\nvar frame = function () {\n return action(function (_a) {\n var update = _a.update;\n var initialTime = 0;\n var process = sync.update(function (_a) {\n var timestamp = _a.timestamp;\n if (!initialTime) initialTime = timestamp;\n update(timestamp - initialTime);\n }, true, true);\n return {\n stop: function () {\n return cancelSync.update(process);\n }\n };\n });\n};\n\nvar scrubber = function (_a) {\n var _b = _a.from,\n from = _b === void 0 ? 0 : _b,\n _c = _a.to,\n to = _c === void 0 ? 1 : _c,\n _d = _a.ease,\n ease = _d === void 0 ? linear : _d,\n _e = _a.reverseEase,\n reverseEase = _e === void 0 ? false : _e;\n if (reverseEase) {\n ease = createReversedEasing(ease);\n }\n return action(function (_a) {\n var update = _a.update;\n return {\n seek: function (progress) {\n return update(progress);\n }\n };\n }).pipe(ease, function (v) {\n return mix(from, to, v);\n });\n};\nvar vectorScrubber = /*#__PURE__*/createVectorAction(scrubber, {\n ease: function (func) {\n return typeof func === 'function';\n },\n from: number.test,\n to: number.test\n});\n\nvar clampProgress = /*#__PURE__*/clamp(0, 1);\nvar tween = function (props) {\n if (props === void 0) {\n props = {};\n }\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n var _b = props.duration,\n duration = _b === void 0 ? 300 : _b,\n _c = props.ease,\n ease = _c === void 0 ? easeOut : _c,\n _d = props.flip,\n flip = _d === void 0 ? 0 : _d,\n _e = props.loop,\n loop = _e === void 0 ? 0 : _e,\n _f = props.yoyo,\n yoyo = _f === void 0 ? 0 : _f,\n _g = props.repeatDelay,\n repeatDelay = _g === void 0 ? 0 : _g;\n var _h = props.from,\n from = _h === void 0 ? 0 : _h,\n _j = props.to,\n to = _j === void 0 ? 1 : _j,\n _k = props.elapsed,\n elapsed = _k === void 0 ? 0 : _k,\n _l = props.flipCount,\n flipCount = _l === void 0 ? 0 : _l,\n _m = props.yoyoCount,\n yoyoCount = _m === void 0 ? 0 : _m,\n _o = props.loopCount,\n loopCount = _o === void 0 ? 0 : _o;\n var playhead = vectorScrubber({ from: from, to: to, ease: ease }).start(update);\n var currentProgress = 0;\n var process;\n var isActive = false;\n var reverseAnimation = function (reverseEase) {\n var _a;\n if (reverseEase === void 0) {\n reverseEase = false;\n }\n _a = [to, from], from = _a[0], to = _a[1];\n playhead = vectorScrubber({ from: from, to: to, ease: ease, reverseEase: reverseEase }).start(update);\n };\n var isTweenComplete = function () {\n var isComplete = isActive && elapsed > duration + repeatDelay;\n if (!isComplete) return false;\n if (isComplete && !loop && !flip && !yoyo) return true;\n elapsed = duration - (elapsed - repeatDelay);\n if (loop && loopCount < loop) {\n loopCount++;\n return false;\n } else if (flip && flipCount < flip) {\n flipCount++;\n reverseAnimation();\n return false;\n } else if (yoyo && yoyoCount < yoyo) {\n yoyoCount++;\n reverseAnimation(yoyoCount % 2 !== 0);\n return false;\n }\n return true;\n };\n var updateTween = function () {\n currentProgress = clampProgress(progress(0, duration, elapsed));\n playhead.seek(currentProgress);\n };\n var startTimer = function () {\n isActive = true;\n process = sync.update(function (_a) {\n var delta = _a.delta;\n elapsed += delta;\n updateTween();\n if (isTweenComplete()) {\n cancelSync.update(process);\n complete && sync.update(complete, false, true);\n }\n }, true);\n };\n var stopTimer = function () {\n isActive = false;\n if (process) cancelSync.update(process);\n };\n startTimer();\n return {\n isActive: function () {\n return isActive;\n },\n getElapsed: function () {\n return clamp(0, duration, elapsed);\n },\n getProgress: function () {\n return currentProgress;\n },\n stop: function () {\n stopTimer();\n },\n pause: function () {\n stopTimer();\n return this;\n },\n resume: function () {\n if (!isActive) startTimer();\n return this;\n },\n seek: function (newProgress) {\n elapsed = mix(0, duration, newProgress);\n sync.update(updateTween, false, true);\n return this;\n },\n reverse: function () {\n reverseAnimation();\n return this;\n }\n };\n });\n};\n\nvar clampProgress$1 = /*#__PURE__*/clamp(0, 1);\nvar defaultEasings = function (values, easing) {\n return values.map(function () {\n return easing || easeOut;\n }).splice(0, values.length - 1);\n};\nvar defaultTimings = function (values) {\n var numValues = values.length;\n return values.map(function (value, i) {\n return i !== 0 ? i / (numValues - 1) : 0;\n });\n};\nvar interpolateScrubbers = function (input, scrubbers, update) {\n var rangeLength = input.length;\n var finalInputIndex = rangeLength - 1;\n var finalScrubberIndex = finalInputIndex - 1;\n var subs = scrubbers.map(function (scrub) {\n return scrub.start(update);\n });\n return function (v) {\n if (v <= input[0]) {\n subs[0].seek(0);\n }\n if (v >= input[finalInputIndex]) {\n subs[finalScrubberIndex].seek(1);\n }\n var i = 1;\n for (; i < rangeLength; i++) {\n if (input[i] > v || i === finalInputIndex) break;\n }\n var progressInRange = progress(input[i - 1], input[i], v);\n subs[i - 1].seek(clampProgress$1(progressInRange));\n };\n};\nvar keyframes = function (_a) {\n var easings = _a.easings,\n _b = _a.ease,\n ease = _b === void 0 ? linear : _b,\n times = _a.times,\n values = _a.values,\n tweenProps = __rest(_a, [\"easings\", \"ease\", \"times\", \"values\"]);\n easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);\n times = times || defaultTimings(values);\n var scrubbers = easings.map(function (easing, i) {\n return vectorScrubber({\n from: values[i],\n to: values[i + 1],\n ease: easing\n });\n });\n return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {\n return interpolateScrubbers(times, scrubbers, update);\n });\n};\n\nvar physics = function (props) {\n if (props === void 0) {\n props = {};\n }\n return action(function (_a) {\n var complete = _a.complete,\n update = _a.update;\n var _b = props.acceleration,\n acceleration = _b === void 0 ? 0 : _b,\n _c = props.friction,\n friction = _c === void 0 ? 0 : _c,\n _d = props.velocity,\n velocity = _d === void 0 ? 0 : _d,\n springStrength = props.springStrength,\n to = props.to;\n var _e = props.restSpeed,\n restSpeed = _e === void 0 ? 0.001 : _e,\n _f = props.from,\n from = _f === void 0 ? 0 : _f;\n var current = from;\n var process = sync.update(function (_a) {\n var delta = _a.delta;\n var elapsed = Math.max(delta, 16);\n if (acceleration) velocity += velocityPerFrame(acceleration, elapsed);\n if (friction) velocity *= Math.pow(1 - friction, elapsed / 100);\n if (springStrength !== undefined && to !== undefined) {\n var distanceToTarget = to - current;\n velocity += distanceToTarget * velocityPerFrame(springStrength, elapsed);\n }\n current += velocityPerFrame(velocity, elapsed);\n update(current);\n var isComplete = restSpeed !== false && (!velocity || Math.abs(velocity) <= restSpeed);\n if (isComplete) {\n cancelSync.update(process);\n complete();\n }\n }, true);\n return {\n set: function (v) {\n current = v;\n return this;\n },\n setAcceleration: function (v) {\n acceleration = v;\n return this;\n },\n setFriction: function (v) {\n friction = v;\n return this;\n },\n setSpringStrength: function (v) {\n springStrength = v;\n return this;\n },\n setSpringTarget: function (v) {\n to = v;\n return this;\n },\n setVelocity: function (v) {\n velocity = v;\n return this;\n },\n stop: function () {\n return cancelSync.update(process);\n }\n };\n });\n};\nvar vectorPhysics = /*#__PURE__*/createVectorAction(physics, {\n acceleration: number.test,\n friction: number.test,\n velocity: number.test,\n from: number.test,\n to: number.test,\n springStrength: number.test\n});\n\nvar DEFAULT_DURATION = 300;\nvar flattenTimings = function (instructions) {\n var flatInstructions = [];\n var lastArg = instructions[instructions.length - 1];\n var isStaggered = typeof lastArg === 'number';\n var staggerDelay = isStaggered ? lastArg : 0;\n var segments = isStaggered ? instructions.slice(0, -1) : instructions;\n var numSegments = segments.length;\n var offset = 0;\n segments.forEach(function (item, i) {\n flatInstructions.push(item);\n if (i !== numSegments - 1) {\n var duration = item.duration || DEFAULT_DURATION;\n offset = staggerDelay;\n flatInstructions.push(\"\" + (offset - duration));\n }\n });\n return flatInstructions;\n};\nvar flattenArrayInstructions = function (instructions, instruction) {\n Array.isArray(instruction) ? instructions.push.apply(instructions, flattenTimings(instruction)) : instructions.push(instruction);\n return instructions;\n};\nvar convertDefToProps = function (props, def, i) {\n var duration = props.duration,\n easings = props.easings,\n times = props.times,\n values = props.values;\n var numValues = values.length;\n var prevTimeTo = times[numValues - 1];\n var timeFrom = def.at === 0 ? 0 : def.at / duration;\n var timeTo = (def.at + def.duration) / duration;\n if (i === 0) {\n values.push(def.from);\n times.push(timeFrom);\n } else {\n if (prevTimeTo !== timeFrom) {\n if (def.from !== undefined) {\n values.push(values[numValues - 1]);\n times.push(timeFrom);\n easings.push(linear);\n }\n var from = def.from !== undefined ? def.from : values[numValues - 1];\n values.push(from);\n times.push(timeFrom);\n easings.push(linear);\n } else if (def.from !== undefined) {\n values.push(def.from);\n times.push(timeFrom);\n easings.push(linear);\n }\n }\n values.push(def.to);\n times.push(timeTo);\n easings.push(def.ease || easeInOut);\n return props;\n};\nvar timeline = function (instructions, _a) {\n var _b = _a === void 0 ? {} : _a,\n duration = _b.duration,\n elapsed = _b.elapsed,\n ease = _b.ease,\n loop = _b.loop,\n flip = _b.flip,\n yoyo = _b.yoyo;\n var playhead = 0;\n var calculatedDuration = 0;\n var flatInstructions = instructions.reduce(flattenArrayInstructions, []);\n var animationDefs = [];\n flatInstructions.forEach(function (instruction) {\n if (typeof instruction === 'string') {\n playhead += parseFloat(instruction);\n } else if (typeof instruction === 'number') {\n playhead = instruction;\n } else {\n var def = __assign(__assign({}, instruction), { at: playhead });\n def.duration = def.duration === undefined ? DEFAULT_DURATION : def.duration;\n animationDefs.push(def);\n playhead += def.duration;\n calculatedDuration = Math.max(calculatedDuration, def.at + def.duration);\n }\n });\n var tracks = {};\n var numDefs = animationDefs.length;\n for (var i = 0; i < numDefs; i++) {\n var def = animationDefs[i];\n var track = def.track;\n if (track === undefined) {\n throw new Error('No track defined');\n }\n if (!tracks.hasOwnProperty(track)) tracks[track] = [];\n tracks[track].push(def);\n }\n var trackKeyframes = {};\n for (var key in tracks) {\n if (tracks.hasOwnProperty(key)) {\n var keyframeProps = tracks[key].reduce(convertDefToProps, {\n duration: calculatedDuration,\n easings: [],\n times: [],\n values: []\n });\n trackKeyframes[key] = keyframes(__assign(__assign({}, keyframeProps), { duration: duration || calculatedDuration, ease: ease,\n elapsed: elapsed,\n loop: loop,\n yoyo: yoyo,\n flip: flip }));\n }\n }\n return composite(trackKeyframes);\n};\n\nvar listen = function (element, events, options) {\n return action(function (_a) {\n var update = _a.update;\n var eventNames = events.split(' ').map(function (eventName) {\n element.addEventListener(eventName, update, options);\n return eventName;\n });\n return {\n stop: function () {\n return eventNames.forEach(function (eventName) {\n return element.removeEventListener(eventName, update, options);\n });\n }\n };\n });\n};\n\nvar defaultPointerPos = function () {\n return {\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n x: 0,\n y: 0\n };\n};\nvar eventToPoint = function (e, point) {\n if (point === void 0) {\n point = defaultPointerPos();\n }\n point.clientX = point.x = e.clientX;\n point.clientY = point.y = e.clientY;\n point.pageX = e.pageX;\n point.pageY = e.pageY;\n return point;\n};\n\nvar points = [/*#__PURE__*/defaultPointerPos()];\nvar isTouchDevice = false;\nif (typeof document !== 'undefined') {\n var updatePointsLocation = function (_a) {\n var touches = _a.touches;\n isTouchDevice = true;\n var numTouches = touches.length;\n points.length = 0;\n for (var i = 0; i < numTouches; i++) {\n var thisTouch = touches[i];\n points.push(eventToPoint(thisTouch));\n }\n };\n listen(document, 'touchstart touchmove', {\n passive: true,\n capture: true\n }).start(updatePointsLocation);\n}\nvar multitouch = function (_a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.preventDefault,\n preventDefault = _c === void 0 ? true : _c,\n _d = _b.scale,\n scale = _d === void 0 ? 1.0 : _d,\n _e = _b.rotate,\n rotate = _e === void 0 ? 0.0 : _e;\n return action(function (_a) {\n var update = _a.update;\n var output = {\n touches: points,\n scale: scale,\n rotate: rotate\n };\n var initialDistance = 0.0;\n var initialRotation = 0.0;\n var isGesture = points.length > 1;\n if (isGesture) {\n var firstTouch = points[0],\n secondTouch = points[1];\n initialDistance = distance(firstTouch, secondTouch);\n initialRotation = angle(firstTouch, secondTouch);\n }\n var updatePoint = function () {\n if (isGesture) {\n var firstTouch = points[0],\n secondTouch = points[1];\n var newDistance = distance(firstTouch, secondTouch);\n var newRotation = angle(firstTouch, secondTouch);\n output.scale = scale * (newDistance / initialDistance);\n output.rotate = rotate + (newRotation - initialRotation);\n }\n update(output);\n };\n var onMove = function (e) {\n if (preventDefault || e.touches.length > 1) e.preventDefault();\n sync.update(updatePoint);\n };\n var updateOnMove = listen(document, 'touchmove', {\n passive: !preventDefault\n }).start(onMove);\n if (isTouchDevice) sync.update(updatePoint);\n return {\n stop: function () {\n cancelSync.update(updatePoint);\n updateOnMove.stop();\n }\n };\n });\n};\nvar getIsTouchDevice = function () {\n return isTouchDevice;\n};\n\nvar point = /*#__PURE__*/defaultPointerPos();\nvar isMouseDevice = false;\nif (typeof document !== 'undefined') {\n var updatePointLocation = function (e) {\n isMouseDevice = true;\n eventToPoint(e, point);\n };\n listen(document, 'mousedown mousemove', true).start(updatePointLocation);\n}\nvar mouse = function (_a) {\n var _b = (_a === void 0 ? {} : _a).preventDefault,\n preventDefault = _b === void 0 ? true : _b;\n return action(function (_a) {\n var update = _a.update;\n var updatePoint = function () {\n return update(point);\n };\n var onMove = function (e) {\n if (preventDefault) e.preventDefault();\n sync.update(updatePoint);\n };\n var updateOnMove = listen(document, 'mousemove').start(onMove);\n if (isMouseDevice) sync.update(updatePoint);\n return {\n stop: function () {\n cancelSync.update(updatePoint);\n updateOnMove.stop();\n }\n };\n });\n};\n\nvar getFirstTouch = function (_a) {\n var firstTouch = _a[0];\n return firstTouch;\n};\nvar pointer = function (props) {\n if (props === void 0) {\n props = {};\n }\n return getIsTouchDevice() ? multitouch(props).pipe(function (_a) {\n var touches = _a.touches;\n return touches;\n }, getFirstTouch) : mouse(props);\n};\nvar index$1 = function (_a) {\n if (_a === void 0) {\n _a = {};\n }\n var x = _a.x,\n y = _a.y,\n props = __rest(_a, [\"x\", \"y\"]);\n if (x !== undefined || y !== undefined) {\n var applyXOffset_1 = applyOffset(x || 0);\n var applyYOffset_1 = applyOffset(y || 0);\n var delta_1 = { x: 0, y: 0 };\n return pointer(props).pipe(function (point) {\n delta_1.x = applyXOffset_1(point.x);\n delta_1.y = applyYOffset_1(point.y);\n return delta_1;\n });\n } else {\n return pointer(props);\n }\n};\n\nvar chain = function () {\n var actions = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n actions[_i] = arguments[_i];\n }\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n var i = 0;\n var current;\n var playCurrent = function () {\n current = actions[i].start({\n complete: function () {\n i++;\n i >= actions.length ? complete() : playCurrent();\n },\n update: update\n });\n };\n playCurrent();\n return {\n stop: function () {\n return current && current.stop();\n }\n };\n });\n};\n\nvar crossfade = function (a, b) {\n return action(function (observer) {\n var balance = 0;\n var fadable = parallel$1(a, b).start(__assign(__assign({}, observer), { update: function (_a) {\n var va = _a[0],\n vb = _a[1];\n observer.update(mix(va, vb, balance));\n } }));\n return {\n setBalance: function (v) {\n return balance = v;\n },\n stop: function () {\n return fadable.stop();\n }\n };\n });\n};\n\nvar delay = function (timeToDelay) {\n return action(function (_a) {\n var complete = _a.complete;\n var timeout = setTimeout(complete, timeToDelay);\n return {\n stop: function () {\n return clearTimeout(timeout);\n }\n };\n });\n};\n\nvar merge = function () {\n var actions = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n actions[_i] = arguments[_i];\n }\n return action(function (observer) {\n var subs = actions.map(function (thisAction) {\n return thisAction.start(observer);\n });\n return {\n stop: function () {\n return subs.forEach(function (sub) {\n return sub.stop();\n });\n }\n };\n });\n};\n\nvar schedule = function (scheduler, schedulee) {\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n var latest;\n var schedulerSub = scheduler.start({\n update: function () {\n return latest !== undefined && update(latest);\n },\n complete: complete\n });\n var scheduleeSub = schedulee.start({\n update: function (v) {\n return latest = v;\n },\n complete: complete\n });\n return {\n stop: function () {\n schedulerSub.stop();\n scheduleeSub.stop();\n }\n };\n });\n};\n\nvar stagger = function (actions, interval) {\n var intervalIsNumber = typeof interval === 'number';\n var actionsWithDelay = actions.map(function (a, i) {\n var timeToDelay = intervalIsNumber ? interval * i : interval(i);\n return chain(delay(timeToDelay), a);\n });\n return parallel$1.apply(void 0, actionsWithDelay);\n};\n\nvar appendUnit = function (unit) {\n return function (v) {\n return \"\" + v + unit;\n };\n};\nvar steps = function (st, min, max) {\n if (min === void 0) {\n min = 0;\n }\n if (max === void 0) {\n max = 1;\n }\n return function (v) {\n var current = progress(min, max, v);\n return mix(min, max, stepProgress(st, current));\n };\n};\nvar transformMap = function (childTransformers) {\n return function (v) {\n var output = __assign({}, v);\n for (var key in childTransformers) {\n if (childTransformers.hasOwnProperty(key)) {\n var childTransformer = childTransformers[key];\n output[key] = childTransformer(v[key]);\n }\n }\n return output;\n };\n};\n\nvar transformers = /*#__PURE__*/Object.freeze({\n __proto__: null,\n applyOffset: applyOffset,\n clamp: clamp,\n conditional: conditional,\n interpolate: interpolate,\n blendArray: mixArray,\n blendColor: mixColor,\n pipe: pipe,\n smooth: smooth,\n snap: snap,\n generateStaticSpring: springForce,\n nonlinearSpring: springForceExpo,\n linearSpring: springForceLinear,\n wrap: wrap,\n appendUnit: appendUnit,\n steps: steps,\n transformMap: transformMap\n});\n\nvar css = function (element, props) {\n warning(false, 'css() is deprecated, use styler instead');\n return styler(element, props);\n};\nvar svg = function (element, props) {\n warning(false, 'svg() is deprecated, use styler instead');\n return styler(element, props);\n};\n\nexport { Action, ValueReaction, action, calc, chain, composite, crossfade, css, vectorDecay as decay, delay, frame as everyFrame, index as inertia, keyframes, listen, merge, mouse, multicast, multitouch, parallel$1 as parallel, vectorPhysics as physics, index$1 as pointer, schedule, vectorSpring as spring, stagger, svg, timeline, transformers as transform, tween, value };\n","import { __rest, __assign, __spreadArrays } from 'tslib';\nimport { invariant } from 'hey-listen';\n\nvar getPoseValues = function (_a) {\n var transition = _a.transition,\n flip = _a.flip,\n delay = _a.delay,\n delayChildren = _a.delayChildren,\n staggerChildren = _a.staggerChildren,\n staggerDirection = _a.staggerDirection,\n afterChildren = _a.afterChildren,\n beforeChildren = _a.beforeChildren,\n preTransition = _a.preTransition,\n applyAtStart = _a.applyAtStart,\n applyAtEnd = _a.applyAtEnd,\n props = __rest(_a, [\"transition\", \"flip\", \"delay\", \"delayChildren\", \"staggerChildren\", \"staggerDirection\", \"afterChildren\", \"beforeChildren\", \"preTransition\", \"applyAtStart\", \"applyAtEnd\"]);\n return props;\n};\nvar selectPoses = function (_a) {\n var label = _a.label,\n props = _a.props,\n values = _a.values,\n parentValues = _a.parentValues,\n ancestorValues = _a.ancestorValues,\n onChange = _a.onChange,\n passive = _a.passive,\n initialPose = _a.initialPose,\n poses = __rest(_a, [\"label\", \"props\", \"values\", \"parentValues\", \"ancestorValues\", \"onChange\", \"passive\", \"initialPose\"]);\n return poses;\n};\nvar selectAllValues = function (values, selectValue) {\n var allValues = {};\n values.forEach(function (value, key) {\n return allValues[key] = selectValue(value);\n });\n return allValues;\n};\n\nvar resolveProp = function (target, props) {\n return typeof target === 'function' ? target(props) : target;\n};\nvar poseDefault = function (pose, prop, defaultValue, resolveProps) {\n return pose && pose[prop] !== undefined ? resolveProp(pose[prop], resolveProps) : defaultValue;\n};\nvar startChildAnimations = function (children, next, pose, props) {\n var animations = [];\n var delay = poseDefault(pose, 'delayChildren', 0, props);\n var stagger = poseDefault(pose, 'staggerChildren', 0, props);\n var staggerDirection = poseDefault(pose, 'staggerDirection', 1, props);\n var maxStaggerDuration = (children.size - 1) * stagger;\n var generateStaggerDuration = staggerDirection === 1 ? function (i) {\n return i * stagger;\n } : function (i) {\n return maxStaggerDuration - i * stagger;\n };\n Array.from(children).forEach(function (child, i) {\n animations.push(child.set(next, {\n delay: delay + generateStaggerDuration(i)\n }));\n });\n return animations;\n};\nvar resolveTransition = function (transition, key, value, props, convertTransitionDefinition, getInstantTransition) {\n var resolvedTransition;\n if (typeof transition === 'function') {\n var resolvedTransitionMap = transition(props);\n resolvedTransition = resolveTransition(resolvedTransitionMap, key, value, props, convertTransitionDefinition, getInstantTransition);\n } else if (transition[key] || transition.default) {\n var keyTransition = transition[key] || transition.default;\n if (typeof keyTransition === 'function') {\n resolvedTransition = keyTransition(props);\n } else {\n resolvedTransition = keyTransition;\n }\n } else {\n resolvedTransition = transition;\n }\n return resolvedTransition === false ? getInstantTransition(value, props) : convertTransitionDefinition(value, resolvedTransition, props);\n};\nvar findInsertionIndex = function (poseList, priorityList, priorityIndex) {\n var insertionIndex = 0;\n for (var i = priorityIndex - 1; i >= 0; i--) {\n var nextHighestPriorityIndex = poseList.indexOf(priorityList[i]);\n if (nextHighestPriorityIndex !== -1) {\n insertionIndex = nextHighestPriorityIndex + 1;\n break;\n }\n }\n return insertionIndex;\n};\nvar applyValues = function (toApply, values, props, setValue, setValueNative) {\n invariant(typeof toApply === 'object', 'applyAtStart and applyAtEnd must be of type object');\n return Object.keys(toApply).forEach(function (key) {\n var valueToSet = resolveProp(toApply[key], props);\n values.has(key) ? setValue(values.get(key), valueToSet) : setValueNative(key, valueToSet, props);\n });\n};\nvar createPoseSetter = function (setterProps) {\n var state = setterProps.state,\n poses = setterProps.poses,\n startAction = setterProps.startAction,\n stopAction = setterProps.stopAction,\n getInstantTransition = setterProps.getInstantTransition,\n addActionDelay = setterProps.addActionDelay,\n getTransitionProps = setterProps.getTransitionProps,\n resolveTarget = setterProps.resolveTarget,\n transformPose = setterProps.transformPose,\n posePriority = setterProps.posePriority,\n convertTransitionDefinition = setterProps.convertTransitionDefinition,\n setValue = setterProps.setValue,\n setValueNative = setterProps.setValueNative,\n forceRender = setterProps.forceRender;\n return function (next, nextProps, propagate) {\n if (nextProps === void 0) {\n nextProps = {};\n }\n if (propagate === void 0) {\n propagate = true;\n }\n var children = state.children,\n values = state.values,\n props = state.props,\n activeActions = state.activeActions,\n activePoses = state.activePoses;\n var _a = nextProps.delay,\n delay = _a === void 0 ? 0 : _a;\n var hasChildren = children.size;\n var baseTransitionProps = __assign(__assign({}, props), nextProps);\n var nextPose = poses[next];\n var getChildAnimations = function () {\n return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];\n };\n var getParentAnimations = function () {\n if (!nextPose) return [];\n var applyAtStart = nextPose.applyAtStart;\n if (applyAtStart) {\n applyValues(applyAtStart, values, baseTransitionProps, setValue, setValueNative);\n if (forceRender) forceRender(baseTransitionProps);\n }\n if (transformPose) nextPose = transformPose(nextPose, next, state);\n var preTransition = nextPose.preTransition,\n getTransition = nextPose.transition,\n applyAtEnd = nextPose.applyAtEnd;\n if (preTransition) preTransition(baseTransitionProps);\n var animations = Object.keys(getPoseValues(nextPose)).map(function (key) {\n var valuePoses = activePoses.has(key) ? activePoses.get(key) : (activePoses.set(key, []), activePoses.get(key));\n var existingIndex = valuePoses.indexOf(next);\n if (existingIndex !== -1) valuePoses.splice(existingIndex, 1);\n var priority = posePriority ? posePriority.indexOf(next) : 0;\n var insertionIndex = priority <= 0 ? 0 : findInsertionIndex(valuePoses, posePriority, priority);\n valuePoses.splice(insertionIndex, 0, next);\n return insertionIndex === 0 ? new Promise(function (complete) {\n var value = values.get(key);\n var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,\n value: value });\n var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));\n if (activeActions.has(key)) stopAction(activeActions.get(key));\n var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));\n var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);\n var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);\n if (poseDelay) {\n transition = addActionDelay(poseDelay, transition);\n }\n activeActions.set(key, startAction(value, transition, complete));\n }) : Promise.resolve();\n });\n return applyAtEnd ? [Promise.all(animations).then(function () {\n applyValues(applyAtEnd, values, baseTransitionProps, setValue, setValueNative);\n })] : animations;\n };\n if (nextPose && hasChildren) {\n if (resolveProp(nextPose.beforeChildren, baseTransitionProps)) {\n return Promise.all(getParentAnimations()).then(function () {\n return Promise.all(getChildAnimations());\n });\n } else if (resolveProp(nextPose.afterChildren, baseTransitionProps)) {\n return Promise.all(getChildAnimations()).then(function () {\n return Promise.all(getParentAnimations());\n });\n }\n }\n return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));\n };\n};\n\nvar DEFAULT_INITIAL_POSE = 'init';\nvar isScale = function (key) {\n return key.includes('scale');\n};\nvar defaultReadValueFromSource = function (key) {\n return isScale(key) ? 1 : 0;\n};\nvar readValueFromPose = function (pose, key, props) {\n var valueToResolve = pose.applyAtEnd && pose.applyAtEnd[key] !== undefined ? pose.applyAtEnd[key] : pose[key] !== undefined ? pose[key] : pose.applyAtStart && pose.applyAtStart[key] !== undefined ? pose.applyAtStart[key] : 0;\n return resolveProp(valueToResolve, props);\n};\nvar getPosesToSearch = function (pose) {\n var posesToSearch = Array.isArray(pose) ? pose : [pose];\n posesToSearch.push(DEFAULT_INITIAL_POSE);\n return posesToSearch;\n};\nvar getInitialValue = function (poses, key, initialPose, props, readValueFromSource, activePoses) {\n if (readValueFromSource === void 0) {\n readValueFromSource = defaultReadValueFromSource;\n }\n var posesToSearch = getPosesToSearch(initialPose);\n var pose = posesToSearch.filter(Boolean).find(function (name) {\n var thisPose = poses[name];\n return thisPose && (thisPose[key] !== undefined || thisPose.applyAtStart && thisPose.applyAtStart[key] !== undefined || thisPose.applyAtEnd && thisPose.applyAtEnd[key] !== undefined);\n });\n activePoses.set(key, [pose || DEFAULT_INITIAL_POSE]);\n return pose ? readValueFromPose(poses[pose], key, props) : readValueFromSource(key, props);\n};\nvar createValues = function (values, _a) {\n var userSetValues = _a.userSetValues,\n createValue = _a.createValue,\n convertValue = _a.convertValue,\n readValueFromSource = _a.readValueFromSource,\n initialPose = _a.initialPose,\n poses = _a.poses,\n activePoses = _a.activePoses,\n props = _a.props;\n return function (key) {\n if (values.has(key)) return;\n var value;\n if (userSetValues && userSetValues[key] !== undefined) {\n value = convertValue(userSetValues[key], key, props);\n } else {\n var initValue = getInitialValue(poses, key, initialPose, props, readValueFromSource, activePoses);\n value = createValue(initValue, key, props);\n }\n values.set(key, value);\n };\n};\nvar scrapeValuesFromPose = function (values, props) {\n return function (key) {\n var pose = props.poses[key];\n Object.keys(getPoseValues(pose)).forEach(createValues(values, props));\n };\n};\nvar getAncestorValue = function (key, fromParent, ancestors) {\n if (fromParent === true) {\n return ancestors[0] && ancestors[0].values.get(key);\n } else {\n var foundAncestor = ancestors.find(function (_a) {\n var label = _a.label;\n return label === fromParent;\n });\n return foundAncestor && foundAncestor.values.get(key);\n }\n};\nvar bindPassiveValues = function (values, _a) {\n var passive = _a.passive,\n ancestorValues = _a.ancestorValues,\n createValue = _a.createValue,\n readValue = _a.readValue,\n props = _a.props;\n return function (key) {\n var _a = passive[key],\n valueKey = _a[0],\n passiveProps = _a[1],\n fromParent = _a[2];\n var valueToBind = fromParent && ancestorValues.length ? getAncestorValue(valueKey, fromParent, ancestorValues) : values.has(valueKey) ? values.get(valueKey) : false;\n if (!valueToBind) return;\n var newValue = createValue(readValue(valueToBind), key, props, {\n passiveParentKey: valueKey,\n passiveParent: valueToBind,\n passiveProps: passiveProps\n });\n values.set(key, newValue);\n };\n};\nvar setNativeValues = function (_a) {\n var setValueNative = _a.setValueNative,\n initialPose = _a.initialPose,\n props = _a.props,\n poses = _a.poses;\n var valuesHaveSet = new Set();\n var setValues = function (pose, propKey) {\n if (pose[propKey]) {\n for (var key in pose[propKey]) {\n if (!valuesHaveSet.has(key)) {\n valuesHaveSet.add(key);\n setValueNative(key, resolveProp(pose[propKey][key], props), props);\n }\n }\n }\n };\n getPosesToSearch(initialPose).forEach(function (poseKey) {\n var pose = poses[poseKey];\n if (pose) {\n setValues(pose, 'applyAtEnd');\n setValues(pose, 'applyAtStart');\n }\n });\n};\nvar createValueMap = function (props) {\n var poses = props.poses,\n passive = props.passive;\n var values = new Map();\n Object.keys(poses).forEach(scrapeValuesFromPose(values, props));\n setNativeValues(props);\n if (passive) Object.keys(passive).forEach(bindPassiveValues(values, props));\n return values;\n};\n\nvar applyDefaultTransition = function (pose, key, defaultTransitions) {\n return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });\n};\nvar generateTransitions = function (poses, defaultTransitions) {\n Object.keys(poses).forEach(function (key) {\n var pose = poses[key];\n invariant(typeof pose === 'object', \"Pose '\" + key + \"' is of invalid type. All poses should be objects.\");\n poses[key] = pose.transition !== undefined ? pose : applyDefaultTransition(pose, key, defaultTransitions);\n });\n return poses;\n};\n\nvar sortByReversePriority = function (priorityOrder) {\n return function (a, b) {\n var aP = priorityOrder.indexOf(a);\n var bP = priorityOrder.indexOf(b);\n if (aP === -1 && bP !== -1) return -1;\n if (aP !== -1 && bP === -1) return 1;\n return aP - bP;\n };\n};\n\nvar poseFactory = function (_a) {\n var getDefaultProps = _a.getDefaultProps,\n defaultTransitions = _a.defaultTransitions,\n bindOnChange = _a.bindOnChange,\n startAction = _a.startAction,\n stopAction = _a.stopAction,\n readValue = _a.readValue,\n readValueFromSource = _a.readValueFromSource,\n resolveTarget = _a.resolveTarget,\n setValue = _a.setValue,\n setValueNative = _a.setValueNative,\n createValue = _a.createValue,\n convertValue = _a.convertValue,\n getInstantTransition = _a.getInstantTransition,\n getTransitionProps = _a.getTransitionProps,\n addActionDelay = _a.addActionDelay,\n selectValueToRead = _a.selectValueToRead,\n convertTransitionDefinition = _a.convertTransitionDefinition,\n transformPose = _a.transformPose,\n posePriority = _a.posePriority,\n forceRender = _a.forceRender,\n extendAPI = _a.extendAPI;\n return function (config) {\n var parentValues = config.parentValues,\n _a = config.ancestorValues,\n ancestorValues = _a === void 0 ? [] : _a;\n if (parentValues) ancestorValues.unshift({ values: parentValues });\n var activeActions = new Map();\n var activePoses = new Map();\n var children = new Set();\n var poses = generateTransitions(selectPoses(config), defaultTransitions);\n var _b = config.props,\n props = _b === void 0 ? {} : _b;\n if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);\n var passive = config.passive,\n userSetValues = config.values,\n _c = config.initialPose,\n initialPose = _c === void 0 ? DEFAULT_INITIAL_POSE : _c;\n var values = createValueMap({\n poses: poses,\n passive: passive,\n ancestorValues: ancestorValues,\n readValue: readValue,\n setValueNative: setValueNative,\n createValue: createValue,\n convertValue: convertValue,\n readValueFromSource: readValueFromSource,\n userSetValues: userSetValues,\n initialPose: initialPose,\n activePoses: activePoses,\n props: props\n });\n var state = {\n activeActions: activeActions,\n activePoses: activePoses,\n children: children,\n props: props,\n values: values\n };\n var onChange = config.onChange;\n if (onChange) Object.keys(onChange).forEach(bindOnChange(values, onChange));\n var set = createPoseSetter({\n state: state,\n poses: poses,\n getInstantTransition: getInstantTransition,\n getTransitionProps: getTransitionProps,\n convertTransitionDefinition: convertTransitionDefinition,\n setValue: setValue,\n setValueNative: setValueNative,\n startAction: startAction,\n stopAction: stopAction,\n resolveTarget: resolveTarget,\n addActionDelay: addActionDelay,\n transformPose: transformPose,\n posePriority: posePriority,\n forceRender: forceRender\n });\n var has = function (poseName) {\n return !!poses[poseName];\n };\n var api = {\n set: set,\n unset: function (poseName, poseProps) {\n var posesToSet = [];\n activePoses.forEach(function (valuePoses) {\n var poseIndex = valuePoses.indexOf(poseName);\n if (poseIndex === -1) return;\n var currentPose = valuePoses[0];\n valuePoses.splice(poseIndex, 1);\n var nextPose = valuePoses[0];\n if (nextPose === currentPose) return;\n if (posesToSet.indexOf(nextPose) === -1) {\n posesToSet.push(nextPose);\n }\n });\n var animationsToResolve = posesToSet.sort(sortByReversePriority(posePriority)).map(function (poseToSet) {\n return set(poseToSet, poseProps, false);\n });\n children.forEach(function (child) {\n return animationsToResolve.push(child.unset(poseName));\n });\n return Promise.all(animationsToResolve);\n },\n get: function (valueName) {\n return valueName ? selectValueToRead(values.get(valueName)) : selectAllValues(values, selectValueToRead);\n },\n has: has,\n setProps: function (newProps) {\n return state.props = __assign(__assign({}, state.props), newProps);\n },\n _addChild: function (childConfig, factory) {\n var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));\n children.add(child);\n return child;\n },\n removeChild: function (child) {\n return children.delete(child);\n },\n clearChildren: function () {\n children.forEach(function (child) {\n return child.destroy();\n });\n children.clear();\n },\n destroy: function () {\n activeActions.forEach(stopAction);\n children.forEach(function (child) {\n return child.destroy();\n });\n }\n };\n return extendAPI(api, state, config);\n };\n};\n\nexport default poseFactory;\n","import { spring, tween, action, pointer, transform, decay, keyframes, physics, value, chain, delay, listen, styler } from 'popmotion';\nimport { linear, easeIn, easeOut, easeInOut, circIn, circOut, circInOut, backIn, backOut, backInOut, anticipate, cubicBezier } from '@popmotion/easing';\nimport { percent, number, degrees, px, vw, vh } from 'style-value-types';\nimport poseFactory from 'pose-core';\nimport { invariant } from 'hey-listen';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nvar BoundingBoxDimension;\n(function (BoundingBoxDimension) {\n BoundingBoxDimension[\"width\"] = \"width\";\n BoundingBoxDimension[\"height\"] = \"height\";\n BoundingBoxDimension[\"left\"] = \"left\";\n BoundingBoxDimension[\"right\"] = \"right\";\n BoundingBoxDimension[\"top\"] = \"top\";\n BoundingBoxDimension[\"bottom\"] = \"bottom\";\n})(BoundingBoxDimension || (BoundingBoxDimension = {}));\n\nvar measureWithoutTransform = function (element) {\n var transform$$1 = element.style.transform;\n element.style.transform = '';\n var bbox = element.getBoundingClientRect();\n element.style.transform = transform$$1;\n return bbox;\n};\nvar resolveProp = function (target, props) {\n return typeof target === 'function' ? target(props) : target;\n};\n\nvar interpolate = transform.interpolate;\nvar singleAxisPointer = function (axis) {\n return function (from) {\n var _a;\n return pointer((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {\n return v[axis];\n });\n };\n};\nvar pointerX = /*#__PURE__*/singleAxisPointer('x');\nvar pointerY = /*#__PURE__*/singleAxisPointer('y');\nvar createPointer = function (axisPointerCreator, min, max, measurement) {\n return function (transitionProps) {\n var from = transitionProps.from,\n type = transitionProps.type,\n dimensions = transitionProps.dimensions,\n dragBounds = transitionProps.dragBounds;\n var axisPointer = axisPointerCreator(dimensions.measurementAsPixels(measurement, from, type));\n var transformQueue = [];\n if (dragBounds) {\n var resolvedDragBounds_1 = resolveProp(dragBounds, transitionProps);\n if (resolvedDragBounds_1[min] !== undefined) {\n transformQueue.push(function (v) {\n return Math.max(v, dimensions.measurementAsPixels(measurement, resolvedDragBounds_1[min], type));\n });\n }\n if (resolvedDragBounds_1[max] !== undefined) {\n transformQueue.push(function (v) {\n return Math.min(v, dimensions.measurementAsPixels(measurement, resolvedDragBounds_1[max], type));\n });\n }\n }\n if (type === percent) {\n transformQueue.push(interpolate([0, dimensions.get(measurement)], [0, 100], { clamp: false }), function (v) {\n return v + '%';\n });\n }\n return transformQueue.length ? axisPointer.pipe.apply(axisPointer, transformQueue) : axisPointer;\n };\n};\nvar just = function (from) {\n return action(function (_a) {\n var update = _a.update,\n complete = _a.complete;\n update(from);\n complete();\n });\n};\nvar underDampedSpring = function (_a) {\n var from = _a.from,\n velocity = _a.velocity,\n to = _a.to;\n return spring({\n from: from,\n to: to,\n velocity: velocity,\n stiffness: 500,\n damping: 25,\n restDelta: 0.5,\n restSpeed: 10\n });\n};\nvar overDampedSpring = function (_a) {\n var from = _a.from,\n velocity = _a.velocity,\n to = _a.to;\n return spring({ from: from, to: to, velocity: velocity, stiffness: 700, damping: to === 0 ? 100 : 35 });\n};\nvar linearTween = function (_a) {\n var from = _a.from,\n to = _a.to;\n return tween({ from: from, to: to, ease: linear });\n};\nvar intelligentTransition = {\n x: underDampedSpring,\n y: underDampedSpring,\n z: underDampedSpring,\n rotate: underDampedSpring,\n rotateX: underDampedSpring,\n rotateY: underDampedSpring,\n rotateZ: underDampedSpring,\n scaleX: overDampedSpring,\n scaleY: overDampedSpring,\n scale: overDampedSpring,\n opacity: linearTween,\n default: tween\n};\nvar dragAction = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });\nvar justAxis = function (_a) {\n var from = _a.from;\n return just(from);\n};\nvar intelligentDragEnd = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, intelligentTransition), { x: justAxis, y: justAxis });\nvar defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);\n\nvar animationLookup = {\n tween: tween,\n spring: spring,\n decay: decay,\n keyframes: keyframes,\n physics: physics\n};\nvar easingLookup = {\n linear: linear,\n easeIn: easeIn,\n easeOut: easeOut,\n easeInOut: easeInOut,\n circIn: circIn,\n circOut: circOut,\n circInOut: circInOut,\n backIn: backIn,\n backOut: backOut,\n backInOut: backInOut,\n anticipate: anticipate\n};\n\nvar auto = {\n test: function (v) {\n return v === 'auto';\n },\n parse: function (v) {\n return v;\n }\n};\nvar valueTypeTests = [number, degrees, percent, px, vw, vh, auto];\nvar testValueType = function (v) {\n return function (type) {\n return type.test(v);\n };\n};\nvar getValueType = function (v) {\n return valueTypeTests.find(testValueType(v));\n};\n\nvar createPassiveValue = function (init, parent, transform$$1) {\n var raw = value(transform$$1(init));\n parent.raw.subscribe(function (v) {\n return raw.update(transform$$1(v));\n });\n return { raw: raw };\n};\nvar createValue = function (init) {\n var type = getValueType(init);\n var raw = value(init);\n return { raw: raw, type: type };\n};\nvar addActionDelay = function (delay$$1, transition) {\n if (delay$$1 === void 0) {\n delay$$1 = 0;\n }\n return chain(delay(delay$$1), transition);\n};\nvar isCubicBezierArgs = function (args) {\n return typeof args[0] === 'number';\n};\nvar getAction = function (v, _a, _b) {\n var from = _b.from,\n to = _b.to,\n velocity = _b.velocity;\n var _c = _a.type,\n type = _c === void 0 ? 'tween' : _c,\n definedEase = _a.ease,\n def = __rest(_a, [\"type\", \"ease\"]);\n invariant(animationLookup[type] !== undefined, \"Invalid transition type '\" + type + \"'. Valid transition types are: tween, spring, decay, physics and keyframes.\");\n var ease;\n if (type === 'tween') {\n if (typeof definedEase !== 'function') {\n if (typeof definedEase === 'string') {\n invariant(easingLookup[definedEase] !== undefined, \"Invalid easing type '\" + definedEase + \"'. popmotion.io/pose/api/config\");\n ease = easingLookup[definedEase];\n } else if (Array.isArray(definedEase) && isCubicBezierArgs(definedEase)) {\n invariant(definedEase.length === 4, \"Cubic bezier arrays must contain four numerical values.\");\n var x1 = definedEase[0],\n y1 = definedEase[1],\n x2 = definedEase[2],\n y2 = definedEase[3];\n ease = cubicBezier(x1, y1, x2, y2);\n }\n }\n }\n ease = ease || definedEase;\n var baseProps = type !== 'keyframes' ? {\n from: from,\n to: to,\n velocity: velocity,\n ease: ease\n } : { ease: ease };\n return animationLookup[type](__assign(__assign({}, baseProps), def));\n};\nvar isAction = function (action$$1) {\n return typeof action$$1.start !== 'undefined';\n};\nvar pose = function (_a) {\n var transformPose = _a.transformPose,\n addListenerToValue = _a.addListenerToValue,\n extendAPI = _a.extendAPI,\n readValueFromSource = _a.readValueFromSource,\n posePriority = _a.posePriority,\n setValueNative = _a.setValueNative;\n return poseFactory({\n bindOnChange: function (values, onChange) {\n return function (key) {\n if (!values.has(key)) return;\n var raw = values.get(key).raw;\n raw.subscribe(onChange[key]);\n };\n },\n readValue: function (_a) {\n var raw = _a.raw;\n return raw.get();\n },\n setValue: function (_a, to) {\n var raw = _a.raw;\n return raw.update(to);\n },\n createValue: function (init, key, _a, _b) {\n var elementStyler = _a.elementStyler;\n var _c = _b === void 0 ? {} : _b,\n passiveParent = _c.passiveParent,\n passiveProps = _c.passiveProps;\n var val = passiveParent ? createPassiveValue(init, passiveParent, passiveProps) : createValue(init);\n val.raw.subscribe(addListenerToValue(key, elementStyler));\n return val;\n },\n convertValue: function (raw, key, _a) {\n var elementStyler = _a.elementStyler;\n raw.subscribe(addListenerToValue(key, elementStyler));\n return {\n raw: raw,\n type: getValueType(raw.get())\n };\n },\n getTransitionProps: function (_a, to) {\n var raw = _a.raw,\n type = _a.type;\n return {\n from: raw.get(),\n velocity: raw.getVelocity(),\n to: to,\n type: type\n };\n },\n resolveTarget: function (_, to) {\n return to;\n },\n selectValueToRead: function (_a) {\n var raw = _a.raw;\n return raw;\n },\n startAction: function (_a, action$$1, complete) {\n var raw = _a.raw;\n var reaction = {\n update: function (v) {\n return raw.update(v);\n },\n complete: complete\n };\n return action$$1.start(reaction);\n },\n stopAction: function (action$$1) {\n return action$$1.stop();\n },\n getInstantTransition: function (_, _a) {\n var to = _a.to;\n return just(to);\n },\n convertTransitionDefinition: function (val, def, props) {\n if (isAction(def)) return def;\n var delay$$1 = def.delay,\n min = def.min,\n max = def.max,\n round = def.round,\n remainingDef = __rest(def, [\"delay\", \"min\", \"max\", \"round\"]);\n var action$$1 = getAction(val, remainingDef, props);\n var outputPipe = [];\n if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);\n if (min !== undefined) outputPipe.push(function (v) {\n return Math.max(v, min);\n });\n if (max !== undefined) outputPipe.push(function (v) {\n return Math.min(v, max);\n });\n if (round) outputPipe.push(Math.round);\n return outputPipe.length ? action$$1.pipe.apply(action$$1, outputPipe) : action$$1;\n },\n setValueNative: setValueNative,\n addActionDelay: addActionDelay,\n defaultTransitions: defaultTransitions,\n transformPose: transformPose,\n readValueFromSource: readValueFromSource,\n posePriority: posePriority,\n extendAPI: extendAPI\n });\n};\n\nvar createDimensions = function (element) {\n var hasMeasured = false;\n var current = {\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n };\n return {\n get: function (measurement) {\n return measurement ? current[measurement] : current;\n },\n measure: function () {\n current = element.getBoundingClientRect();\n hasMeasured = true;\n return current;\n },\n measurementAsPixels: function (measurement, value$$1, type) {\n return type === percent ? (typeof value$$1 === 'string' ? parseFloat(value$$1) : value$$1) / 100 * current[measurement] : value$$1;\n },\n has: function () {\n return hasMeasured;\n }\n };\n};\n\nvar makeUIEventApplicator = function (_a) {\n var startEvents = _a.startEvents,\n endEvents = _a.endEvents,\n startPose = _a.startPose,\n endPose = _a.endPose,\n startCallback = _a.startCallback,\n endCallback = _a.endCallback,\n useDocumentToEnd = _a.useDocumentToEnd,\n preventScroll = _a.preventScroll;\n return function (element, activeActions, poser, config) {\n var startListener = startPose + 'Start';\n var endListener = startPose + 'End';\n var moveListener = startPose + 'Move';\n if (preventScroll) {\n var touchMoveListener = listen(element, 'touchmove', {\n passive: false\n }).start(function (e) {\n e.preventDefault();\n });\n activeActions.set(moveListener, touchMoveListener);\n }\n var eventStartListener = listen(element, startEvents).start(function (startEvent) {\n poser.unset(endPose);\n poser.set(startPose);\n if (startCallback && config[startCallback]) config[startCallback](startEvent);\n var eventEndListener = listen(useDocumentToEnd ? document.documentElement : element, endEvents + (useDocumentToEnd ? ' mouseenter' : '')).start(function (endEvent) {\n if (useDocumentToEnd && endEvent.type === 'mouseenter' && endEvent.buttons === 1) {\n return;\n }\n activeActions.get(endListener).stop();\n poser.unset(startPose);\n poser.set(endPose);\n if (endCallback && config[endCallback]) config[endCallback](endEvent);\n });\n activeActions.set(endListener, eventEndListener);\n });\n activeActions.set(startListener, eventStartListener);\n };\n};\nvar events = {\n draggable: /*#__PURE__*/makeUIEventApplicator({\n startEvents: 'mousedown touchstart',\n endEvents: 'mouseup touchend',\n startPose: 'drag',\n endPose: 'dragEnd',\n startCallback: 'onDragStart',\n endCallback: 'onDragEnd',\n useDocumentToEnd: true,\n preventScroll: true\n }),\n hoverable: /*#__PURE__*/makeUIEventApplicator({\n startEvents: 'mouseenter',\n endEvents: 'mouseleave',\n startPose: 'hover',\n endPose: 'hoverEnd'\n }),\n focusable: /*#__PURE__*/makeUIEventApplicator({\n startEvents: 'focus',\n endEvents: 'blur',\n startPose: 'focus',\n endPose: 'blur'\n }),\n pressable: /*#__PURE__*/makeUIEventApplicator({\n startEvents: 'mousedown touchstart',\n endEvents: 'mouseup touchend',\n startPose: 'press',\n endPose: 'pressEnd',\n startCallback: 'onPressStart',\n endCallback: 'onPressEnd',\n useDocumentToEnd: true\n })\n};\nvar eventKeys = /*#__PURE__*/Object.keys(events);\nvar appendEventListeners = function (element, activeActions, poser, _a) {\n var props = _a.props;\n return eventKeys.forEach(function (key) {\n if (props[key]) events[key](element, activeActions, poser, props);\n });\n};\n\nvar ORIGIN_START = 0;\nvar ORIGIN_CENTER = '50%';\nvar ORIGIN_END = '100%';\nvar findCenter = function (_a) {\n var top = _a.top,\n right = _a.right,\n bottom = _a.bottom,\n left = _a.left;\n return {\n x: (left + right) / 2,\n y: (top + bottom) / 2\n };\n};\nvar positionalProps = ['width', 'height', 'top', 'left', 'bottom', 'right'];\nvar positionalPropsDict = /*#__PURE__*/new Set(positionalProps);\nvar checkPositionalProp = function (key) {\n return positionalPropsDict.has(key);\n};\nvar hasPositionalProps = function (pose) {\n return Object.keys(pose).some(checkPositionalProp);\n};\nvar isFlipPose = function (flip, key, state) {\n return state.props.element instanceof HTMLElement && (flip === true || key === 'flip');\n};\nvar setValue = function (_a, key, to) {\n var values = _a.values,\n props = _a.props;\n if (values.has(key)) {\n var raw = values.get(key).raw;\n raw.update(to);\n raw.update(to);\n } else {\n values.set(key, {\n raw: value(to, function (v) {\n return props.elementStyler.set(key, v);\n })\n });\n }\n};\nvar explicitlyFlipPose = function (state, nextPose) {\n var _a = state.props,\n dimensions = _a.dimensions,\n elementStyler = _a.elementStyler;\n dimensions.measure();\n var width = nextPose.width,\n height = nextPose.height,\n top = nextPose.top,\n left = nextPose.left,\n bottom = nextPose.bottom,\n right = nextPose.right,\n position = nextPose.position,\n remainingPose = __rest(nextPose, [\"width\", \"height\", \"top\", \"left\", \"bottom\", \"right\", \"position\"]);\n var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {\n if (nextPose[key] !== undefined) {\n acc[key] = resolveProp(nextPose[key], state.props);\n }\n return acc;\n }, {});\n elementStyler.set(propsToSet).render();\n return implicitlyFlipPose(state, remainingPose);\n};\nvar implicitlyFlipPose = function (state, nextPose) {\n var _a = state.props,\n dimensions = _a.dimensions,\n element = _a.element,\n elementStyler = _a.elementStyler;\n if (!dimensions.has()) return {};\n var prev = dimensions.get();\n var next = measureWithoutTransform(element);\n var originX = prev.left === next.left ? ORIGIN_START : prev.right === next.right ? ORIGIN_END : ORIGIN_CENTER;\n var originY = prev.top === next.top ? ORIGIN_START : prev.bottom === next.bottom ? ORIGIN_END : ORIGIN_CENTER;\n elementStyler.set({ originX: originX, originY: originY });\n if (prev.width !== next.width) {\n setValue(state, 'scaleX', prev.width / next.width);\n nextPose.scaleX = 1;\n }\n if (prev.height !== next.height) {\n setValue(state, 'scaleY', prev.height / next.height);\n nextPose.scaleY = 1;\n }\n var prevCenter = findCenter(prev);\n var nextCenter = findCenter(next);\n if (originX === ORIGIN_CENTER) {\n setValue(state, 'x', prevCenter.x - nextCenter.x);\n nextPose.x = 0;\n }\n if (originY === ORIGIN_CENTER) {\n setValue(state, 'y', prevCenter.y - nextCenter.y);\n nextPose.y = 0;\n }\n elementStyler.render();\n return nextPose;\n};\nvar flipPose = function (props, nextPose) {\n return hasPositionalProps(nextPose) ? explicitlyFlipPose(props, nextPose) : implicitlyFlipPose(props, nextPose);\n};\n\nvar getPosFromMatrix = function (matrix, pos) {\n return parseFloat(matrix.split(', ')[pos]);\n};\nvar getTranslateFromMatrix = function (pos2, pos3) {\n return function (element, bbox, _a) {\n var transform$$1 = _a.transform;\n if (!transform$$1 || transform$$1 === 'none') return 0;\n var matrix3d = transform$$1.match(/^matrix3d\\((.+)\\)$/);\n if (matrix3d) return getPosFromMatrix(matrix3d[1], pos3);\n return getPosFromMatrix(transform$$1.match(/^matrix\\((.+)\\)$/)[1], pos2);\n };\n};\nvar positionalValues = {\n width: function (element, _a) {\n var width = _a.width;\n return width;\n },\n height: function (element, _a) {\n var height = _a.height;\n return height;\n },\n top: function (element, bbox, _a) {\n var top = _a.top;\n return parseFloat(top);\n },\n left: function (element, bbox, _a) {\n var left = _a.left;\n return parseFloat(left);\n },\n bottom: function (element, _a, _b) {\n var height = _a.height;\n var top = _b.top;\n return parseFloat(top) + height;\n },\n right: function (element, _a, _b) {\n var width = _a.width;\n var left = _b.left;\n return parseFloat(left) + width;\n },\n x: /*#__PURE__*/getTranslateFromMatrix(4, 13),\n y: /*#__PURE__*/getTranslateFromMatrix(5, 14)\n};\nvar isPositionalKey = function (v) {\n return positionalValues[v] !== undefined;\n};\nvar isPositional = function (pose) {\n return Object.keys(pose).some(isPositionalKey);\n};\nvar convertPositionalUnits = function (state, nextPose) {\n var values = state.values,\n props = state.props;\n var element = props.element,\n elementStyler = props.elementStyler;\n var positionalPoseKeys = Object.keys(nextPose).filter(isPositionalKey);\n var changedPositionalKeys = [];\n var elementComputedStyle = getComputedStyle(element);\n var applyAtEndHasBeenCopied = false;\n positionalPoseKeys.forEach(function (key) {\n var value$$1 = values.get(key);\n var fromValueType = getValueType(value$$1.raw.get());\n var to = resolveProp(nextPose[key], props);\n var toValueType = getValueType(to);\n if (fromValueType !== toValueType) {\n changedPositionalKeys.push(key);\n if (!applyAtEndHasBeenCopied) {\n applyAtEndHasBeenCopied = true;\n nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign({}, nextPose.applyAtEnd) : {};\n }\n nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];\n setValue(state, key, to);\n }\n });\n if (!changedPositionalKeys.length) return nextPose;\n var originBbox = element.getBoundingClientRect();\n var top = elementComputedStyle.top,\n left = elementComputedStyle.left,\n bottom = elementComputedStyle.bottom,\n right = elementComputedStyle.right,\n transform$$1 = elementComputedStyle.transform;\n var originComputedStyle = { top: top, left: left, bottom: bottom, right: right, transform: transform$$1 };\n elementStyler.render();\n var targetBbox = element.getBoundingClientRect();\n changedPositionalKeys.forEach(function (key) {\n setValue(state, key, positionalValues[key](element, originBbox, originComputedStyle));\n nextPose[key] = positionalValues[key](element, targetBbox, elementComputedStyle);\n });\n elementStyler.render();\n return nextPose;\n};\n\nvar getCurrent = function (prop) {\n return function (_a) {\n var elementStyler = _a.elementStyler;\n return elementStyler.get(prop);\n };\n};\nvar dragPoses = function (draggable) {\n var drag = {\n preTransition: function (_a) {\n var dimensions = _a.dimensions;\n return dimensions.measure();\n }\n };\n var dragEnd = {};\n if (draggable === true || draggable === 'x') {\n drag.x = dragEnd.x = getCurrent('x');\n }\n if (draggable === true || draggable === 'y') {\n drag.y = dragEnd.y = getCurrent('y');\n }\n return { drag: drag, dragEnd: dragEnd };\n};\nvar createPoseConfig = function (element, _a) {\n var onDragStart = _a.onDragStart,\n onDragEnd = _a.onDragEnd,\n onPressStart = _a.onPressStart,\n onPressEnd = _a.onPressEnd,\n draggable = _a.draggable,\n hoverable = _a.hoverable,\n focusable = _a.focusable,\n pressable = _a.pressable,\n dragBounds = _a.dragBounds,\n config = __rest(_a, [\"onDragStart\", \"onDragEnd\", \"onPressStart\", \"onPressEnd\", \"draggable\", \"hoverable\", \"focusable\", \"pressable\", \"dragBounds\"]);\n var poseConfig = __assign(__assign({ flip: {} }, config), { props: __assign(__assign({}, config.props), { onDragStart: onDragStart,\n onDragEnd: onDragEnd,\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n dragBounds: dragBounds,\n draggable: draggable,\n hoverable: hoverable,\n focusable: focusable,\n pressable: pressable,\n element: element, elementStyler: styler(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });\n if (draggable) {\n var _b = dragPoses(draggable),\n drag = _b.drag,\n dragEnd = _b.dragEnd;\n poseConfig.drag = __assign(__assign({}, drag), poseConfig.drag);\n poseConfig.dragEnd = __assign(__assign({}, dragEnd), poseConfig.dragEnd);\n }\n return poseConfig;\n};\nvar domPose = /*#__PURE__*/pose({\n posePriority: ['drag', 'press', 'focus', 'hover'],\n transformPose: function (_a, name, state) {\n var flip = _a.flip,\n pose$$1 = __rest(_a, [\"flip\"]);\n if (isFlipPose(flip, name, state)) {\n return flipPose(state, pose$$1);\n } else if (isPositional(pose$$1)) {\n return convertPositionalUnits(state, pose$$1);\n }\n return pose$$1;\n },\n forceRender: function (_a) {\n var elementStyler = _a.elementStyler;\n elementStyler.render();\n },\n addListenerToValue: function (key, elementStyler) {\n return function (v) {\n return elementStyler.set(key, v);\n };\n },\n readValueFromSource: function (key, _a) {\n var elementStyler = _a.elementStyler,\n dragBounds = _a.dragBounds;\n var value$$1 = elementStyler.get(key);\n if (dragBounds && (key === 'x' || key === 'y')) {\n var bound = key === 'x' ? dragBounds.left || dragBounds.right : dragBounds.top || dragBounds.bottom;\n if (bound) {\n var boundType = getValueType(bound);\n value$$1 = boundType.transform(value$$1);\n }\n }\n return isNaN(value$$1) ? value$$1 : parseFloat(value$$1);\n },\n setValueNative: function (key, to, _a) {\n var elementStyler = _a.elementStyler;\n return elementStyler.set(key, to);\n },\n extendAPI: function (api, _a, config) {\n var props = _a.props,\n activeActions = _a.activeActions;\n var measure = props.dimensions.measure;\n var poserApi = __assign(__assign({}, api), { addChild: function (element, childConfig) {\n return api._addChild(createPoseConfig(element, childConfig), domPose);\n }, measure: measure, flip: function (op) {\n if (op) {\n measure();\n op();\n }\n return api.set('flip');\n } });\n props.elementStyler.render();\n appendEventListeners(props.element, activeActions, poserApi, config);\n return poserApi;\n }\n});\nvar domPose$1 = function (element, config) {\n return domPose(createPoseConfig(element, config));\n};\n\nexport default domPose$1;\n","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n","import { __assign, __extends, __rest } from 'tslib';\nimport React__default, { PureComponent, createContext, createElement, forwardRef, Component, cloneElement, Children } from 'react';\nimport poseFactory from 'popmotion-pose';\nimport isValidProp from '@emotion/is-prop-valid';\nimport { invariant, warning } from 'hey-listen';\n\nvar hasChanged = function (prev, next) {\r\n if (prev === next)\r\n return false;\r\n var prevIsArray = Array.isArray(prev);\r\n var nextIsArray = Array.isArray(next);\r\n if (prevIsArray !== nextIsArray || (!prevIsArray && !nextIsArray)) {\r\n return true;\r\n }\r\n else if (prevIsArray && nextIsArray) {\r\n var numPrev = prev.length;\r\n var numNext = next.length;\r\n if (numPrev !== numNext)\r\n return true;\r\n for (var i = 0; i < numPrev; i++) {\r\n if (prev[i] !== next[i])\r\n return true;\r\n }\r\n }\r\n return false;\r\n};\n\nvar pickAssign = function (shouldPick, sources) {\r\n return sources.reduce(function (picked, source) {\r\n for (var key in source) {\r\n if (shouldPick(key)) {\r\n picked[key] = source[key];\r\n }\r\n }\r\n return picked;\r\n }, {});\r\n};\n\nvar _a = createContext({}), PoseParentConsumer = _a.Consumer, PoseParentProvider = _a.Provider;\r\nvar calcPopFromFlowStyle = function (el) {\r\n var offsetTop = el.offsetTop, offsetLeft = el.offsetLeft, offsetWidth = el.offsetWidth, offsetHeight = el.offsetHeight;\r\n return {\r\n position: 'absolute',\r\n top: offsetTop,\r\n left: offsetLeft,\r\n width: offsetWidth,\r\n height: offsetHeight\r\n };\r\n};\r\nvar hasPose = function (pose, key) {\r\n return Array.isArray(pose) ? pose.indexOf(key) !== -1 : pose === key;\r\n};\r\nvar objectToMap = function (obj) {\r\n return Object.keys(obj).reduce(function (map, key) {\r\n map.set(key, { raw: obj[key] });\r\n return map;\r\n }, new Map());\r\n};\r\nvar testAlwaysTrue = function () { return true; };\r\nvar filterProps = function (_a) {\r\n var elementType = _a.elementType, poseConfig = _a.poseConfig, onValueChange = _a.onValueChange, innerRef = _a.innerRef, _pose = _a._pose, pose = _a.pose, initialPose = _a.initialPose, poseKey = _a.poseKey, onPoseComplete = _a.onPoseComplete, getParentPoseConfig = _a.getParentPoseConfig, registerChild = _a.registerChild, onUnmount = _a.onUnmount, getInitialPoseFromParent = _a.getInitialPoseFromParent, popFromFlow = _a.popFromFlow, values = _a.values, parentValues = _a.parentValues, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, onPressStart = _a.onPressStart, onPressEnd = _a.onPressEnd, props = __rest(_a, [\"elementType\", \"poseConfig\", \"onValueChange\", \"innerRef\", \"_pose\", \"pose\", \"initialPose\", \"poseKey\", \"onPoseComplete\", \"getParentPoseConfig\", \"registerChild\", \"onUnmount\", \"getInitialPoseFromParent\", \"popFromFlow\", \"values\", \"parentValues\", \"onDragStart\", \"onDragEnd\", \"onPressStart\", \"onPressEnd\"]);\r\n return props;\r\n};\r\nvar PoseElement = (function (_super) {\r\n __extends(PoseElement, _super);\r\n function PoseElement(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.children = new Set();\r\n _this.childrenHandlers = {\r\n registerChild: function (props) {\r\n _this.children.add(props);\r\n if (_this.poser)\r\n _this.flushChildren();\r\n },\r\n onUnmount: function (child) { return _this.poser.removeChild(child); },\r\n getParentPoseConfig: function () { return _this.poseConfig; },\r\n getInitialPoseFromParent: function () { return _this.getInitialPose(); }\r\n };\r\n _this.setRef = function (ref) {\r\n warning(ref === null || (ref instanceof Element && _this.ref === undefined), 'ref must be provided to the same DOM component for the entire lifecycle of a posed component.');\r\n _this.ref = ref;\r\n var innerRef = _this.props.innerRef;\r\n if (!innerRef)\r\n return;\r\n if (typeof innerRef === 'function') {\r\n innerRef(ref);\r\n }\r\n else {\r\n innerRef.current = ref;\r\n }\r\n };\r\n _this.shouldForwardProp =\r\n typeof _this.props.elementType === 'string' ? isValidProp : testAlwaysTrue;\r\n var poseConfig = _this.props.poseConfig;\r\n _this.poseConfig =\r\n typeof poseConfig === 'function'\r\n ? poseConfig(filterProps(props))\r\n : poseConfig;\r\n return _this;\r\n }\r\n PoseElement.prototype.getInitialPose = function () {\r\n var _a = this.props, getInitialPoseFromParent = _a.getInitialPoseFromParent, pose = _a.pose, _pose = _a._pose, initialPose = _a.initialPose;\r\n if (initialPose) {\r\n return initialPose;\r\n }\r\n else {\r\n var parentPose = getInitialPoseFromParent && getInitialPoseFromParent();\r\n var initialPoses = (Array.isArray(parentPose)\r\n ? parentPose\r\n : [parentPose])\r\n .concat(pose, _pose)\r\n .filter(Boolean);\r\n return initialPoses.length > 0 ? initialPoses : undefined;\r\n }\r\n };\r\n PoseElement.prototype.getFirstPose = function () {\r\n var _a = this.props, initialPose = _a.initialPose, pose = _a.pose, _pose = _a._pose;\r\n if (!initialPose)\r\n return;\r\n var firstPose = (Array.isArray(pose) ? pose : [pose])\r\n .concat(_pose)\r\n .filter(Boolean);\r\n return firstPose.length === 1 ? firstPose[0] : firstPose;\r\n };\r\n PoseElement.prototype.getSetProps = function () {\r\n var props = filterProps(this.props);\r\n if (this.props.popFromFlow && this.ref && this.ref instanceof HTMLElement) {\r\n if (!this.popStyle) {\r\n props.style = __assign(__assign({}, props.style), calcPopFromFlowStyle(this.ref));\r\n this.popStyle = props.style;\r\n }\r\n else {\r\n props.style = this.popStyle;\r\n }\r\n }\r\n else {\r\n this.popStyle = null;\r\n }\r\n return props;\r\n };\r\n PoseElement.prototype.componentDidMount = function () {\r\n var _this = this;\r\n invariant(this.ref instanceof Element, \"No valid DOM ref found. If you're converting an existing component via posed(Component), you must ensure you're passing the ref to the host DOM node via the React.forwardRef function.\");\r\n var _a = this.props, onValueChange = _a.onValueChange, registerChild = _a.registerChild, values = _a.values, parentValues = _a.parentValues, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, onPressStart = _a.onPressStart, onPressEnd = _a.onPressEnd;\r\n var config = __assign(__assign({}, this.poseConfig), { initialPose: this.getInitialPose(), values: values || this.poseConfig.values, parentValues: parentValues ? objectToMap(parentValues) : undefined, props: this.getSetProps(), onDragStart: onDragStart,\r\n onDragEnd: onDragEnd,\r\n onPressStart: onPressStart,\r\n onPressEnd: onPressEnd, onChange: onValueChange });\r\n if (!registerChild) {\r\n this.initPoser(poseFactory(this.ref, config));\r\n }\r\n else {\r\n registerChild({\r\n element: this.ref,\r\n poseConfig: config,\r\n onRegistered: function (poser) { return _this.initPoser(poser); }\r\n });\r\n }\r\n };\r\n PoseElement.prototype.getSnapshotBeforeUpdate = function () {\r\n var _a = this.props, pose = _a.pose, _pose = _a._pose;\r\n if (hasPose(pose, 'flip') || hasPose(_pose, 'flip'))\r\n this.poser.measure();\r\n return null;\r\n };\r\n PoseElement.prototype.componentDidUpdate = function (prevProps) {\r\n var _a = this.props, pose = _a.pose, _pose = _a._pose, poseKey = _a.poseKey;\r\n this.poser.setProps(this.getSetProps());\r\n if (poseKey !== prevProps.poseKey ||\r\n hasChanged(prevProps.pose, pose) ||\r\n pose === 'flip') {\r\n this.setPose(pose);\r\n }\r\n if (_pose !== prevProps._pose || _pose === 'flip')\r\n this.setPose(_pose);\r\n };\r\n PoseElement.prototype.componentWillUnmount = function () {\r\n if (!this.poser)\r\n return;\r\n var onUnmount = this.props.onUnmount;\r\n if (onUnmount)\r\n onUnmount(this.poser);\r\n this.poser.destroy();\r\n };\r\n PoseElement.prototype.initPoser = function (poser) {\r\n this.poser = poser;\r\n this.flushChildren();\r\n var firstPose = this.getFirstPose();\r\n if (firstPose)\r\n this.setPose(firstPose);\r\n };\r\n PoseElement.prototype.setPose = function (pose) {\r\n var _this = this;\r\n var onPoseComplete = this.props.onPoseComplete;\r\n var poseList = Array.isArray(pose) ? pose : [pose];\r\n Promise.all(poseList.map(function (key) { return key && _this.poser.set(key); })).then(function () { return onPoseComplete && onPoseComplete(pose); });\r\n };\r\n PoseElement.prototype.flushChildren = function () {\r\n var _this = this;\r\n this.children.forEach(function (_a) {\r\n var element = _a.element, poseConfig = _a.poseConfig, onRegistered = _a.onRegistered;\r\n return onRegistered(_this.poser.addChild(element, poseConfig));\r\n });\r\n this.children.clear();\r\n };\r\n PoseElement.prototype.render = function () {\r\n var elementType = this.props.elementType;\r\n return (React__default.createElement(PoseParentProvider, { value: this.childrenHandlers }, createElement(elementType, pickAssign(this.shouldForwardProp, [\r\n this.getSetProps(),\r\n { ref: this.setRef }\r\n ]))));\r\n };\r\n return PoseElement;\r\n}(PureComponent));\n\nvar supportedElements = [\r\n 'a',\r\n 'article',\r\n 'aside',\r\n 'audio',\r\n 'b',\r\n 'blockquote',\r\n 'body',\r\n 'br',\r\n 'button',\r\n 'canvas',\r\n 'caption',\r\n 'cite',\r\n 'code',\r\n 'col',\r\n 'colgroup',\r\n 'data',\r\n 'datalist',\r\n 'dialog',\r\n 'div',\r\n 'em',\r\n 'embed',\r\n 'fieldset',\r\n 'figcaption',\r\n 'figure',\r\n 'footer',\r\n 'form',\r\n 'h1',\r\n 'h2',\r\n 'h3',\r\n 'h4',\r\n 'h5',\r\n 'h6',\r\n 'head',\r\n 'header',\r\n 'hgroup',\r\n 'hr',\r\n 'i',\r\n 'iframe',\r\n 'img',\r\n 'input',\r\n 'label',\r\n 'legend',\r\n 'li',\r\n 'nav',\r\n 'object',\r\n 'ol',\r\n 'option',\r\n 'p',\r\n 'param',\r\n 'picture',\r\n 'pre',\r\n 'progress',\r\n 'q',\r\n 'section',\r\n 'select',\r\n 'span',\r\n 'strong',\r\n 'table',\r\n 'tbody',\r\n 'td',\r\n 'textarea',\r\n 'tfoot',\r\n 'th',\r\n 'thead',\r\n 'time',\r\n 'title',\r\n 'tr',\r\n 'ul',\r\n 'video',\r\n 'circle',\r\n 'clipPath',\r\n 'defs',\r\n 'ellipse',\r\n 'g',\r\n 'image',\r\n 'line',\r\n 'linearGradient',\r\n 'mask',\r\n 'path',\r\n 'pattern',\r\n 'polygon',\r\n 'polyline',\r\n 'radialGradient',\r\n 'rect',\r\n 'stop',\r\n 'svg',\r\n 'text',\r\n 'tspan'\r\n];\n\nvar componentCache = new Map();\r\nvar createComponentFactory = function (key) {\r\n var componentFactory = function (poseConfig) {\r\n if (poseConfig === void 0) { poseConfig = {}; }\r\n return forwardRef(function (_a, ref) {\r\n var _b = _a.withParent, withParent = _b === void 0 ? true : _b, props = __rest(_a, [\"withParent\"]);\r\n warning(props.innerRef === undefined, 'innerRef is deprecated. Please use ref instead.');\r\n return !withParent || props.parentValues ? (React__default.createElement(PoseElement, __assign({ poseConfig: poseConfig, innerRef: ref, elementType: key }, props))) : (React__default.createElement(PoseParentConsumer, null, function (parentCtx) { return (React__default.createElement(PoseElement, __assign({ poseConfig: poseConfig, elementType: key, innerRef: ref }, props, parentCtx))); }));\r\n });\r\n };\r\n componentCache.set(key, componentFactory);\r\n return componentFactory;\r\n};\r\nvar getComponentFactory = function (key) {\r\n return componentCache.has(key)\r\n ? componentCache.get(key)\r\n : createComponentFactory(key);\r\n};\r\nvar posed = (function (component) {\r\n return getComponentFactory(component);\r\n});\r\nsupportedElements.reduce(function (acc, key) {\r\n acc[key] = createComponentFactory(key);\r\n return acc;\r\n}, posed);\n\nvar getKey = function (child) {\r\n invariant(child && child.key !== null, 'Every child of Transition must be given a unique key');\r\n var childKey = typeof child.key === 'number' ? child.key.toString() : child.key;\r\n return childKey.replace('.$', '');\r\n};\r\nvar prependProps = function (element, props) {\r\n return createElement(element.type, __assign(__assign({ key: element.key, ref: element.ref }, props), element.props));\r\n};\r\nvar handleTransition = function (_a, _b) {\r\n var displayedChildren = _b.displayedChildren, finishedLeaving = _b.finishedLeaving, hasInitialized = _b.hasInitialized, indexedChildren = _b.indexedChildren, scheduleChildRemoval = _b.scheduleChildRemoval;\r\n var incomingChildren = _a.children, preEnterPose = _a.preEnterPose, enterPose = _a.enterPose, exitPose = _a.exitPose, animateOnMount = _a.animateOnMount, enterAfterExit = _a.enterAfterExit, flipMove = _a.flipMove, onRest = _a.onRest, propsForChildren = __rest(_a, [\"children\", \"preEnterPose\", \"enterPose\", \"exitPose\", \"animateOnMount\", \"enterAfterExit\", \"flipMove\", \"onRest\"]);\r\n var targetChildren = makeChildList(incomingChildren);\r\n var nextState = {\r\n displayedChildren: []\r\n };\r\n if (process.env.NODE_ENV !== 'production') {\r\n warning(!propsForChildren.onPoseComplete, \" (or ) doesn't accept onPoseComplete prop.\");\r\n }\r\n var prevKeys = displayedChildren.map(getKey);\r\n var nextKeys = targetChildren.map(getKey);\r\n var hasPropsForChildren = Object.keys(propsForChildren).length !== 0;\r\n var entering = new Set(nextKeys.filter(function (key) { return finishedLeaving.hasOwnProperty(key) || prevKeys.indexOf(key) === -1; }));\r\n entering.forEach(function (key) { return delete finishedLeaving[key]; });\r\n var leaving = [];\r\n var newlyLeaving = {};\r\n prevKeys.forEach(function (key) {\r\n if (entering.has(key)) {\r\n return;\r\n }\r\n var isLeaving = finishedLeaving.hasOwnProperty(key);\r\n if (!isLeaving && nextKeys.indexOf(key) !== -1) {\r\n return;\r\n }\r\n leaving.push(key);\r\n if (!isLeaving) {\r\n finishedLeaving[key] = false;\r\n newlyLeaving[key] = true;\r\n }\r\n });\r\n var moving = new Set(prevKeys.filter(function (key, i) {\r\n return !entering.has(key) || leaving.indexOf(key) === -1;\r\n }));\r\n targetChildren.forEach(function (child) {\r\n var newChildProps = {};\r\n if (entering.has(child.key)) {\r\n if (hasInitialized || animateOnMount) {\r\n newChildProps.initialPose = preEnterPose;\r\n }\r\n newChildProps._pose = enterPose;\r\n }\r\n else if (moving.has(child.key) && flipMove) {\r\n newChildProps._pose = [enterPose, 'flip'];\r\n }\r\n else {\r\n newChildProps._pose = enterPose;\r\n }\r\n var newChild = cloneElement(child, newChildProps);\r\n indexedChildren[child.key] = newChild;\r\n nextState.displayedChildren.push(hasPropsForChildren ? prependProps(newChild, propsForChildren) : newChild);\r\n });\r\n leaving.forEach(function (key) {\r\n var child = indexedChildren[key];\r\n var newChild = newlyLeaving[key]\r\n ? cloneElement(child, {\r\n _pose: exitPose,\r\n onPoseComplete: function (pose) {\r\n if (pose === exitPose)\r\n scheduleChildRemoval(key);\r\n var onPoseComplete = child.props.onPoseComplete;\r\n if (onPoseComplete)\r\n onPoseComplete(pose);\r\n },\r\n popFromFlow: flipMove\r\n })\r\n : child;\r\n var insertionIndex = prevKeys.indexOf(key);\r\n indexedChildren[child.key] = newChild;\r\n nextState.displayedChildren.splice(insertionIndex, 0, hasPropsForChildren ? prependProps(newChild, propsForChildren) : newChild);\r\n });\r\n return nextState;\r\n};\r\nvar handleChildrenTransitions = (function (props, state) {\r\n var newState = handleTransition(props, state);\r\n newState.hasInitialized = true;\r\n return newState;\r\n});\r\nvar makeChildList = function (children) {\r\n var list = [];\r\n Children.forEach(children, function (child) { return child && list.push(child); });\r\n return list;\r\n};\n\nvar Transition = (function (_super) {\r\n __extends(Transition, _super);\r\n function Transition() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.state = {\r\n displayedChildren: [],\r\n finishedLeaving: {},\r\n hasInitialized: false,\r\n indexedChildren: {},\r\n scheduleChildRemoval: function (key) { return _this.removeChild(key); }\r\n };\r\n return _this;\r\n }\r\n Transition.prototype.removeChild = function (key) {\r\n var _a = this.state, displayedChildren = _a.displayedChildren, finishedLeaving = _a.finishedLeaving;\r\n var _b = this.props, enterAfterExit = _b.enterAfterExit, onRest = _b.onRest;\r\n if (!finishedLeaving.hasOwnProperty(key))\r\n return;\r\n finishedLeaving[key] = true;\r\n if (!Object.keys(finishedLeaving).every(function (leavingKey) { return finishedLeaving[leavingKey]; })) {\r\n return;\r\n }\r\n var targetChildren = displayedChildren.filter(function (child) { return !finishedLeaving.hasOwnProperty(child.key); });\r\n var newState = enterAfterExit\r\n ? __assign({ finishedLeaving: {} }, handleChildrenTransitions(__assign(__assign({}, this.props), { enterAfterExit: false }), __assign(__assign({}, this.state), { displayedChildren: targetChildren }))) : {\r\n finishedLeaving: {},\r\n displayedChildren: targetChildren\r\n };\r\n this.setState(newState, onRest);\r\n };\r\n Transition.prototype.shouldComponentUpdate = function (nextProps, nextState) {\r\n return this.state !== nextState;\r\n };\r\n Transition.prototype.render = function () {\r\n return this.state.displayedChildren;\r\n };\r\n Transition.defaultProps = {\r\n flipMove: false,\r\n enterAfterExit: false,\r\n preEnterPose: 'exit',\r\n enterPose: 'enter',\r\n exitPose: 'exit'\r\n };\r\n Transition.getDerivedStateFromProps = handleChildrenTransitions;\r\n return Transition;\r\n}(Component));\n\nvar PoseGroup = (function (_super) {\r\n __extends(PoseGroup, _super);\r\n function PoseGroup() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n PoseGroup.prototype.render = function () {\r\n return createElement(Transition, __assign({}, this.props));\r\n };\r\n PoseGroup.defaultProps = {\r\n flipMove: true\r\n };\r\n return PoseGroup;\r\n}(Component));\n\nexport default posed;\nexport { Transition, PoseGroup };\n","'use strict';\n\nexports.__esModule = true;\nvar UrlQueryParamTypes = {\n number: 'number',\n string: 'string',\n object: 'object',\n array: 'array',\n json: 'json',\n date: 'date',\n boolean: 'boolean',\n numericObject: 'numericObject',\n numericArray: 'numericArray'\n};\n\nexports.default = UrlQueryParamTypes;","'use strict';\n\nexports.__esModule = true;\nvar UrlUpdateTypes = {\n replace: 'replace',\n replaceIn: 'replaceIn',\n multiReplaceIn: 'multiReplaceIn',\n push: 'push',\n pushIn: 'pushIn',\n multiPushIn: 'multiPushIn'\n};\n\nexports.default = UrlUpdateTypes;","'use strict';\n\nexports.__esModule = true;\nexports.default = configureUrlQuery;\n\nvar _urlQueryConfig = require('./urlQueryConfig');\n\nvar _urlQueryConfig2 = _interopRequireDefault(_urlQueryConfig);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction configureUrlQuery(options) {\n // update the url options singleton\n Object.assign(_urlQueryConfig2.default, options);\n}","'use strict';\n\nexports.__esModule = true;\nexports.subqueryOmit = exports.subquery = exports.urlQueryReducer = exports.urlQueryMiddleware = exports.urlMultiPushInAction = exports.urlMultiReplaceInAction = exports.urlPushInAction = exports.urlReplaceInAction = exports.urlPushAction = exports.urlReplaceAction = exports.urlAction = exports.multiPushInUrlQueryFromAction = exports.pushUrlQueryFromAction = exports.pushInUrlQueryFromAction = exports.multiReplaceInUrlQueryFromAction = exports.replaceUrlQueryFromAction = exports.replaceInUrlQueryFromAction = exports.RouterToUrlQuery = exports.addUrlProps = exports.UrlUpdateTypes = exports.UrlQueryParamTypes = exports.urlQueryEncoder = exports.urlQueryDecoder = exports.multiPushInUrlQuery = exports.multiReplaceInUrlQuery = exports.pushUrlQuery = exports.pushInUrlQuery = exports.replaceUrlQuery = exports.replaceInUrlQuery = exports.decode = exports.encode = exports.Serialize = exports.configureUrlQuery = undefined;\n\nvar _serialize = require('./serialize');\n\nObject.defineProperty(exports, 'encode', {\n enumerable: true,\n get: function get() {\n return _serialize.encode;\n }\n});\nObject.defineProperty(exports, 'decode', {\n enumerable: true,\n get: function get() {\n return _serialize.decode;\n }\n});\n\nvar _updateUrlQuery = require('./updateUrlQuery');\n\nObject.defineProperty(exports, 'replaceInUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.replaceInUrlQuery;\n }\n});\nObject.defineProperty(exports, 'replaceUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.replaceUrlQuery;\n }\n});\nObject.defineProperty(exports, 'pushInUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.pushInUrlQuery;\n }\n});\nObject.defineProperty(exports, 'pushUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.pushUrlQuery;\n }\n});\nObject.defineProperty(exports, 'multiReplaceInUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.multiReplaceInUrlQuery;\n }\n});\nObject.defineProperty(exports, 'multiPushInUrlQuery', {\n enumerable: true,\n get: function get() {\n return _updateUrlQuery.multiPushInUrlQuery;\n }\n});\n\nvar _updateUrlQueryFromAction = require('./redux/updateUrlQueryFromAction');\n\nObject.defineProperty(exports, 'replaceInUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.replaceInUrlQueryFromAction;\n }\n});\nObject.defineProperty(exports, 'replaceUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.replaceUrlQueryFromAction;\n }\n});\nObject.defineProperty(exports, 'multiReplaceInUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.multiReplaceInUrlQueryFromAction;\n }\n});\nObject.defineProperty(exports, 'pushInUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.pushInUrlQueryFromAction;\n }\n});\nObject.defineProperty(exports, 'pushUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.pushUrlQueryFromAction;\n }\n});\nObject.defineProperty(exports, 'multiPushInUrlQueryFromAction', {\n enumerable: true,\n get: function get() {\n return _updateUrlQueryFromAction.multiPushInUrlQueryFromAction;\n }\n});\n\nvar _urlAction2 = require('./redux/urlAction');\n\nObject.defineProperty(exports, 'urlReplaceAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlReplaceAction;\n }\n});\nObject.defineProperty(exports, 'urlPushAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlPushAction;\n }\n});\nObject.defineProperty(exports, 'urlReplaceInAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlReplaceInAction;\n }\n});\nObject.defineProperty(exports, 'urlPushInAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlPushInAction;\n }\n});\nObject.defineProperty(exports, 'urlMultiReplaceInAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlMultiReplaceInAction;\n }\n});\nObject.defineProperty(exports, 'urlMultiPushInAction', {\n enumerable: true,\n get: function get() {\n return _urlAction2.urlMultiPushInAction;\n }\n});\n\nvar _configureUrlQuery2 = require('./configureUrlQuery');\n\nvar _configureUrlQuery3 = _interopRequireDefault(_configureUrlQuery2);\n\nvar _Serialize = _interopRequireWildcard(_serialize);\n\nvar _urlQueryDecoder2 = require('./urlQueryDecoder');\n\nvar _urlQueryDecoder3 = _interopRequireDefault(_urlQueryDecoder2);\n\nvar _urlQueryEncoder2 = require('./urlQueryEncoder');\n\nvar _urlQueryEncoder3 = _interopRequireDefault(_urlQueryEncoder2);\n\nvar _UrlQueryParamTypes2 = require('./UrlQueryParamTypes');\n\nvar _UrlQueryParamTypes3 = _interopRequireDefault(_UrlQueryParamTypes2);\n\nvar _UrlUpdateTypes2 = require('./UrlUpdateTypes');\n\nvar _UrlUpdateTypes3 = _interopRequireDefault(_UrlUpdateTypes2);\n\nvar _addUrlProps2 = require('./react/addUrlProps');\n\nvar _addUrlProps3 = _interopRequireDefault(_addUrlProps2);\n\nvar _RouterToUrlQuery2 = require('./react/RouterToUrlQuery');\n\nvar _RouterToUrlQuery3 = _interopRequireDefault(_RouterToUrlQuery2);\n\nvar _urlAction3 = _interopRequireDefault(_urlAction2);\n\nvar _urlQueryMiddleware2 = require('./redux/urlQueryMiddleware');\n\nvar _urlQueryMiddleware3 = _interopRequireDefault(_urlQueryMiddleware2);\n\nvar _urlQueryReducer2 = require('./redux/urlQueryReducer');\n\nvar _urlQueryReducer3 = _interopRequireDefault(_urlQueryReducer2);\n\nvar _subquery2 = require('./utils/subquery');\n\nvar _subquery3 = _interopRequireDefault(_subquery2);\n\nvar _subqueryOmit2 = require('./utils/subqueryOmit');\n\nvar _subqueryOmit3 = _interopRequireDefault(_subqueryOmit2);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.configureUrlQuery = _configureUrlQuery3.default;\nexports.Serialize = _Serialize;\nexports.urlQueryDecoder = _urlQueryDecoder3.default;\nexports.urlQueryEncoder = _urlQueryEncoder3.default;\nexports.UrlQueryParamTypes = _UrlQueryParamTypes3.default;\nexports.UrlUpdateTypes = _UrlUpdateTypes3.default;\n\n/** React */\n\nexports.addUrlProps = _addUrlProps3.default;\nexports.RouterToUrlQuery = _RouterToUrlQuery3.default;\n\n/** Redux */\n\nexports.urlAction = _urlAction3.default;\nexports.urlQueryMiddleware = _urlQueryMiddleware3.default;\nexports.urlQueryReducer = _urlQueryReducer3.default;\n\n/** Utils */\n\nexports.subquery = _subquery3.default;\nexports.subqueryOmit = _subqueryOmit3.default;","'use strict';\n\nexports.__esModule = true;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _configureUrlQuery = require('../configureUrlQuery');\n\nvar _configureUrlQuery2 = _interopRequireDefault(_configureUrlQuery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * This class exists to read in the router from context (useful in react-router v4)\n * to get an equivalent history object so we can push and replace the URL.\n */\nvar RouterToUrlQuery = function (_Component) {\n _inherits(RouterToUrlQuery, _Component);\n\n function RouterToUrlQuery() {\n _classCallCheck(this, RouterToUrlQuery);\n\n return _possibleConstructorReturn(this, (RouterToUrlQuery.__proto__ || Object.getPrototypeOf(RouterToUrlQuery)).apply(this, arguments));\n }\n\n _createClass(RouterToUrlQuery, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var routerOldContext = this.context.router;\n var RouterContext = this.props.routerContext;\n\n\n if (typeof RouterContext === \"undefined\") {\n return _react2.default.createElement(\n RouterToUrlQueryLogic,\n {\n router: routerOldContext\n },\n _react2.default.Children.only(this.props.children)\n );\n }\n\n return _react2.default.createElement(\n RouterContext.Consumer,\n null,\n function (routerNewContext) {\n return _react2.default.createElement(\n RouterToUrlQueryLogic,\n {\n router: routerNewContext\n },\n _react2.default.Children.only(_this2.props.children)\n );\n }\n );\n }\n }]);\n\n return RouterToUrlQuery;\n}(_react.Component);\n\nRouterToUrlQuery.propTyps = {\n routerContext: _propTypes2.default.object\n};\nRouterToUrlQuery.contextTypes = {\n router: _propTypes2.default.object\n};\nexports.default = RouterToUrlQuery;\n\nvar RouterToUrlQueryLogic = function (_Component2) {\n _inherits(RouterToUrlQueryLogic, _Component2);\n\n function RouterToUrlQueryLogic() {\n _classCallCheck(this, RouterToUrlQueryLogic);\n\n return _possibleConstructorReturn(this, (RouterToUrlQueryLogic.__proto__ || Object.getPrototypeOf(RouterToUrlQueryLogic)).apply(this, arguments));\n }\n\n _createClass(RouterToUrlQueryLogic, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n var router = this.props.router;\n\n\n if (process.env.NODE_ENV === 'development' && !router) {\n // eslint-disable-next-line\n console.warn('RouterToUrlQuery: `router` object not found in context. Not configuring history for react-url-query.');\n return;\n }\n\n var history = void 0;\n if (router.history && router.history.push && router.history.replace) {\n history = router.history;\n } else if (router.push && router.replace) {\n history = router;\n } else if (router.transitionTo && router.replaceWith) {\n history = {\n push: router.transitionTo,\n replace: router.replaceWith\n };\n }\n\n (0, _configureUrlQuery2.default)({\n history: history\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var children = this.props.children;\n\n\n return _react2.default.Children.only(children);\n }\n }]);\n\n return RouterToUrlQueryLogic;\n}(_react.Component);\n\nRouterToUrlQueryLogic.propTypes = {\n children: _propTypes2.default.node,\n router: _propTypes2.default.object\n};","'use strict';\n\nexports.__esModule = true;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nexports.default = addUrlProps;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _queryString = require('query-string');\n\nvar _urlQueryDecoder = require('../urlQueryDecoder');\n\nvar _urlQueryDecoder2 = _interopRequireDefault(_urlQueryDecoder);\n\nvar _urlQueryConfig = require('../urlQueryConfig');\n\nvar _urlQueryConfig2 = _interopRequireDefault(_urlQueryConfig);\n\nvar _updateUrlQuery = require('../updateUrlQuery');\n\nvar _serialize = require('../serialize');\n\nvar _UrlUpdateTypes = require('../UrlUpdateTypes');\n\nvar _UrlUpdateTypes2 = _interopRequireDefault(_UrlUpdateTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Higher order component (HOC) that injects URL query parameters as props.\n *\n * @param {Function} mapUrlToProps `function(url, props) -> {Object}` returns props to inject\n * @return {React.Component}\n */\nfunction addUrlProps() {\n var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n var _options$mapUrlToProp = options.mapUrlToProps;\n var mapUrlToProps = _options$mapUrlToProp === undefined ? function (d) {\n return d;\n } : _options$mapUrlToProp;\n var mapUrlChangeHandlersToProps = options.mapUrlChangeHandlersToProps;\n var urlPropsQueryConfig = options.urlPropsQueryConfig;\n var addRouterParams = options.addRouterParams;\n var addUrlChangeHandlers = options.addUrlChangeHandlers;\n var changeHandlerName = options.changeHandlerName;\n\n\n return function addPropsWrapper(WrappedComponent) {\n // caching to prevent unnecessary generation of new onChange functions\n var cachedHandlers = void 0;\n\n var decodeQuery = void 0;\n\n // initialize decode query (with cache) if a config is provided\n if (urlPropsQueryConfig) {\n decodeQuery = (0, _urlQueryDecoder2.default)(urlPropsQueryConfig);\n }\n\n /**\n * Parse the URL query into an object. If a urlPropsQueryConfig is provided\n * the values are decoded based on type.\n */\n function getUrlObject(props) {\n var location = void 0;\n\n // check in history\n if (_urlQueryConfig2.default.history.location) {\n location = _urlQueryConfig2.default.history.location;\n\n // react-router provides it as a prop\n } else if (props.location && (props.location.query || props.location.search != null)) {\n location = props.location;\n\n // not found. just use location from window\n } else {\n location = window.location;\n }\n\n var currentQuery = location.query || (0, _queryString.parse)(location.search) || {};\n\n var result = void 0;\n // if a url query decoder is provided, decode the query then return that.\n if (decodeQuery) {\n result = decodeQuery(currentQuery);\n } else {\n result = currentQuery;\n }\n\n // add in react-router params if requested\n if (addRouterParams || addRouterParams !== false && _urlQueryConfig2.default.addRouterParams) {\n Object.assign(result, props.params, props.match && props.match.params);\n }\n\n return result;\n }\n\n var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n\n var AddUrlProps = function (_Component) {\n _inherits(AddUrlProps, _Component);\n\n function AddUrlProps() {\n _classCallCheck(this, AddUrlProps);\n\n return _possibleConstructorReturn(this, (AddUrlProps.__proto__ || Object.getPrototypeOf(AddUrlProps)).apply(this, arguments));\n }\n\n _createClass(AddUrlProps, [{\n key: 'getUrlChangeHandlerProps',\n\n\n /**\n * Create URL change handlers based on props, the urlPropsQueryConfig (if provided),\n * and mapUrlChangeHandlersToProps (if provided).\n * As a member function so we can read `this.props` in generated handlers dynamically.\n */\n value: function getUrlChangeHandlerProps(propsWithUrl) {\n var _this2 = this;\n\n var handlers = void 0;\n\n if (urlPropsQueryConfig) {\n // if we have a props->query config, generate the change handler props unless\n // addUrlChangeHandlers is false\n if (addUrlChangeHandlers || addUrlChangeHandlers == null && _urlQueryConfig2.default.addUrlChangeHandlers) {\n // use cache if available. Have to do this since urlQueryConfig can change between\n // renders (although that is unusual).\n if (cachedHandlers) {\n handlers = cachedHandlers;\n } else {\n // read in function from options for how to generate a name from a prop\n if (!changeHandlerName) {\n changeHandlerName = _urlQueryConfig2.default.changeHandlerName;\n }\n\n // for each URL config prop, create a handler\n handlers = Object.keys(urlPropsQueryConfig).reduce(function (handlersAccum, propName) {\n var _urlPropsQueryConfig$ = urlPropsQueryConfig[propName];\n var updateType = _urlPropsQueryConfig$.updateType;\n var _urlPropsQueryConfig$2 = _urlPropsQueryConfig$.queryParam;\n var queryParam = _urlPropsQueryConfig$2 === undefined ? propName : _urlPropsQueryConfig$2;\n var type = _urlPropsQueryConfig$.type;\n\n // name handler for `foo` => `onChangeFoo`\n\n var handlerName = changeHandlerName(propName);\n\n // handler encodes the value and updates the URL with the encoded value\n // based on the `updateType` in the config. Default is `replaceIn`\n handlersAccum[handlerName] = function generatedUrlChangeHandler(value) {\n var location = _urlQueryConfig2.default.history.location;\n\n // for backwards compatibility\n\n if (!location) {\n location = this.props.location;\n }\n\n var encodedValue = (0, _serialize.encode)(type, value);\n\n // add a simple check when we have props.location.query to see if\n // we even need to update.\n if (location && location.query && location.query[queryParam] === encodedValue) {\n return undefined; // skip updating\n }\n\n return (0, _updateUrlQuery.updateUrlQuerySingle)(updateType, queryParam, encodedValue, location);\n }.bind(_this2); // bind this so we can access props dynamically\n\n return handlersAccum;\n }, {});\n\n // add in a batch change handler\n var batchHandlerName = changeHandlerName('urlQueryParams');\n handlers[batchHandlerName] = function generatedBatchUrlChangeHandler(queryValues) {\n var updateType = arguments.length <= 1 || arguments[1] === undefined ? _UrlUpdateTypes2.default.replaceIn : arguments[1];\n var location = _urlQueryConfig2.default.history.location;\n\n // for backwards compatibility\n\n if (!location) {\n location = this.props.location;\n }\n\n var allEncodedValuesUnchanged = true;\n\n // encode each value\n var queryReplacements = Object.keys(queryValues).reduce(function (accum, propName) {\n var _urlPropsQueryConfig$3 = urlPropsQueryConfig[propName];\n var _urlPropsQueryConfig$4 = _urlPropsQueryConfig$3.queryParam;\n var queryParam = _urlPropsQueryConfig$4 === undefined ? propName : _urlPropsQueryConfig$4;\n var type = _urlPropsQueryConfig$3.type;\n\n var value = queryValues[propName];\n\n var encodedValue = (0, _serialize.encode)(type, value);\n accum[queryParam] = encodedValue;\n\n // add a simple check when we have props.location.query to see if\n // we even need to update.\n if (location && location.query && location.query[queryParam] !== encodedValue) {\n allEncodedValuesUnchanged = false;\n }\n\n return accum;\n }, {});\n\n if (location && location.query && allEncodedValuesUnchanged) {\n return undefined; // skip updating if no encoded values changed\n }\n\n return (0, _updateUrlQuery.updateUrlQueryMulti)(updateType, queryReplacements, location);\n }.bind(this);\n\n // cache these so we don't regenerate new functions every render\n cachedHandlers = handlers;\n }\n }\n }\n\n // if a manual mapping function is provided, use it, passing in the auto-generated\n // handlers as an optional secondary argument.\n if (mapUrlChangeHandlersToProps) {\n handlers = mapUrlChangeHandlersToProps.call(this, propsWithUrl, handlers);\n }\n\n return handlers;\n }\n }, {\n key: 'render',\n value: function render() {\n // get the url query parameters as an object mapping name to value.\n // if a config is provided, these are decoded based on their `type` and their\n // name will match the prop name.\n // if no config is provided, they are not decoded and their names are whatever\n // they were in the URL.\n var url = getUrlObject(this.props);\n\n // pass to mapUrlToProps for further decoding if provided\n this.propsWithUrl = Object.assign({}, this.props, mapUrlToProps(url, this.props));\n\n // add in the URL change handlers - either auto-generated based on config\n // or from mapUrlChangeHandlersToProps.\n Object.assign(this.propsWithUrl, this.getUrlChangeHandlerProps(this.propsWithUrl));\n\n // render the wrapped component with the URL props added in.\n return _react2.default.createElement(WrappedComponent, this.propsWithUrl);\n }\n }]);\n\n return AddUrlProps;\n }(_react.Component);\n\n AddUrlProps.displayName = 'AddUrlProps(' + displayName + ')';\n AddUrlProps.WrappedComponent = WrappedComponent;\n AddUrlProps.propTypes = {\n location: _propTypes2.default.any };\n\n\n return AddUrlProps;\n };\n}","'use strict';\n\nexports.__esModule = true;\nexports.replaceUrlQueryFromAction = replaceUrlQueryFromAction;\nexports.pushUrlQueryFromAction = pushUrlQueryFromAction;\nexports.replaceInUrlQueryFromAction = replaceInUrlQueryFromAction;\nexports.pushInUrlQueryFromAction = pushInUrlQueryFromAction;\nexports.multiReplaceInUrlQueryFromAction = multiReplaceInUrlQueryFromAction;\nexports.multiPushInUrlQueryFromAction = multiPushInUrlQueryFromAction;\n\nvar _updateUrlQuery = require('../updateUrlQuery');\n\nfunction replaceUrlQueryFromAction(action, location) {\n var encodedQuery = action.payload.encodedQuery;\n\n (0, _updateUrlQuery.replaceUrlQuery)(encodedQuery, location);\n}\n\nfunction pushUrlQueryFromAction(action, location) {\n var encodedQuery = action.payload.encodedQuery;\n\n (0, _updateUrlQuery.pushUrlQuery)(encodedQuery, location);\n}\n\nfunction replaceInUrlQueryFromAction(action, location) {\n var _action$payload = action.payload;\n var queryParam = _action$payload.queryParam;\n var encodedValue = _action$payload.encodedValue;\n\n (0, _updateUrlQuery.replaceInUrlQuery)(queryParam, encodedValue, location);\n}\n\nfunction pushInUrlQueryFromAction(action, location) {\n var _action$payload2 = action.payload;\n var queryParam = _action$payload2.queryParam;\n var encodedValue = _action$payload2.encodedValue;\n\n (0, _updateUrlQuery.pushInUrlQuery)(queryParam, encodedValue, location);\n}\n\nfunction multiReplaceInUrlQueryFromAction(action, location) {\n var encodedQuery = action.payload.encodedQuery;\n\n (0, _updateUrlQuery.multiReplaceInUrlQuery)(encodedQuery, location);\n}\n\nfunction multiPushInUrlQueryFromAction(action, location) {\n var encodedQuery = action.payload.encodedQuery;\n\n (0, _updateUrlQuery.multiPushInUrlQuery)(encodedQuery, location);\n}","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\nexports.default = urlAction;\nexports.urlUpdateAction = urlUpdateAction;\nexports.urlReplaceAction = urlReplaceAction;\nexports.urlPushAction = urlPushAction;\nexports.urlMultiReplaceInAction = urlMultiReplaceInAction;\nexports.urlMultiPushInAction = urlMultiPushInAction;\nexports.urlUpdateInAction = urlUpdateInAction;\nexports.urlReplaceInAction = urlReplaceInAction;\nexports.urlPushInAction = urlPushInAction;\n\nvar _serialize = require('../serialize');\n\nvar _UrlUpdateTypes = require('../UrlUpdateTypes');\n\nvar _UrlUpdateTypes2 = _interopRequireDefault(_UrlUpdateTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction urlAction(actionType) {\n var payload = arguments.length <= 1 || arguments[1] === undefined ? function (d) {\n return d;\n } : arguments[1];\n var meta = arguments.length <= 2 || arguments[2] === undefined ? function () {} : arguments[2];\n\n return function urlActionCreator() {\n var metaFromAction = meta.apply(undefined, arguments);\n if (metaFromAction == null) {\n metaFromAction = {};\n\n // we need meta to be an object so it merges in with the urlQuery meta property.\n } else if ((typeof metaFromAction === 'undefined' ? 'undefined' : _typeof(metaFromAction)) !== 'object') {\n metaFromAction = { value: metaFromAction };\n }\n\n return {\n type: actionType,\n meta: _extends({}, metaFromAction, {\n // we need urlQuery set so the middleware knows to read this action\n urlQuery: true\n }),\n payload: payload.apply(undefined, arguments)\n };\n };\n}\n\n/**\n * Helper function for creating URL action creators\n *\n * For example in your actions.js file:\n *\n * export const changeFoo = urlUpdateAction(\n * 'CHANGE_MANY',\n * (newQuery) => ({\n * fooInUrl: encode(UrlQueryParamTypes.number, newQuery.foo),\n * bar: 'par',\n * arr: encode(UrlQueryParamTypes.array, ['T', 'Y']),\n * }),\n * 'replace');\n *\n * The second parameter should be an encoder function that takes a decodedQuery\n * and returns an encodedQuery,\n * encoding each value in the decodedQuery object.\n * You need this because when using Redux Actions,\n * urlPropsQueryConfig is only used for decoding;\n * you have to implement the encoding here.\n * Also see changeMany [in the examples](https://github.com/pbeshai/react-url-query/tree/master/examples/redux-with-actions/src/state/actions.js).\n */\nfunction urlUpdateAction(actionType) {\n var encodeQuery = arguments.length <= 1 || arguments[1] === undefined ? function (d) {\n return d;\n } : arguments[1];\n var updateType = arguments.length <= 2 || arguments[2] === undefined ? _UrlUpdateTypes2.default.replace : arguments[2];\n\n return urlAction(actionType, function (decodedQuery) {\n return {\n encodedQuery: encodeQuery(decodedQuery),\n decodedQuery: decodedQuery\n };\n }, function () {\n return { updateType: updateType };\n });\n}\n\nfunction urlReplaceAction(actionType, encodeQuery) {\n return urlUpdateAction(actionType, encodeQuery, _UrlUpdateTypes2.default.replace);\n}\n\nfunction urlPushAction(actionType, encodeQuery) {\n return urlUpdateAction(actionType, encodeQuery, _UrlUpdateTypes2.default.push);\n}\n\nfunction urlMultiReplaceInAction(actionType, encodeQuery) {\n return urlUpdateAction(actionType, encodeQuery, _UrlUpdateTypes2.default.multiReplaceIn);\n}\n\nfunction urlMultiPushInAction(actionType, encodeQuery) {\n return urlUpdateAction(actionType, encodeQuery, _UrlUpdateTypes2.default.multiPushIn);\n}\n\n/**\n * Helper function for creating URL action creators\n *\n * For example in your actions.js file:\n * export const changeFoo = urlUpdateInAction('CHANGE_FOO', 'foo', 'number', 'replaceIn');\n *\n */\nfunction urlUpdateInAction(actionType, queryParam, valueType, updateType) {\n return urlAction(actionType, function (decodedValue) {\n return {\n queryParam: queryParam,\n encodedValue: (0, _serialize.encode)(valueType, decodedValue),\n decodedValue: decodedValue,\n type: valueType\n };\n }, function () {\n return { updateType: updateType };\n });\n}\n\nfunction urlReplaceInAction(actionType, queryParam, valueType) {\n return urlUpdateInAction(actionType, queryParam, valueType, _UrlUpdateTypes2.default.replaceIn);\n}\n\nfunction urlPushInAction(actionType, queryParam, valueType) {\n return urlUpdateInAction(actionType, queryParam, valueType, _UrlUpdateTypes2.default.pushIn);\n}","'use strict';\n\nexports.__esModule = true;\n\nvar _urlQueryReducer = require('./urlQueryReducer');\n\nvar _urlQueryReducer2 = _interopRequireDefault(_urlQueryReducer);\n\nvar _urlQueryConfig = require('../urlQueryConfig');\n\nvar _urlQueryConfig2 = _interopRequireDefault(_urlQueryConfig);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Middleware to handle updating the URL query params\n */\nvar urlQueryMiddleware = function urlQueryMiddleware() {\n var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n return function (_ref) {\n var getState = _ref.getState;\n return function (next) {\n return function (action) {\n // if not a URL action, do nothing.\n if (!action.meta || !action.meta.urlQuery) {\n return next(action);\n }\n\n // otherwise, handle with URL handler -- doesn't go to Redux dispatcher\n // update the URL\n\n // use the default reducer if none provided\n var reducer = options.reducer || _urlQueryConfig2.default.reducer || _urlQueryReducer2.default;\n\n // if configured to read from the redux store (react-router-redux), do so and pass it to\n // the reducer\n var readLocationFromStore = options.readLocationFromStore == null ? _urlQueryConfig2.default.readLocationFromStore : options.readLocationFromStore;\n\n if (readLocationFromStore) {\n var location = readLocationFromStore(getState());\n reducer(action, location);\n } else {\n reducer(action);\n }\n\n // shortcircuit by default (don't pass to redux store), unless explicitly set\n // to false.\n if (options.shortcircuit === false) {\n return next(action);\n }\n\n return undefined;\n };\n };\n };\n};\n\nexports.default = urlQueryMiddleware;","'use strict';\n\nexports.__esModule = true;\nexports.default = urlQueryReducer;\n\nvar _updateUrlQueryFromAction = require('./updateUrlQueryFromAction');\n\nvar _UrlUpdateTypes = require('../UrlUpdateTypes');\n\nvar _UrlUpdateTypes2 = _interopRequireDefault(_UrlUpdateTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Reducer that handles actions that modify the URL query parameters.\n * In this case, the actions replace a single query parameter at a time.\n *\n * NOTE: This is *NOT* a Redux reducer. It does not map from (state, action) -> state.\n * Instead it \"reduces\" actions into URL query parameter state. NOT redux state.\n */\nfunction urlQueryReducer(action, location) {\n var updateType = action && action.meta && action.meta.updateType;\n\n switch (updateType) {\n case _UrlUpdateTypes2.default.replaceIn:\n return (0, _updateUrlQueryFromAction.replaceInUrlQueryFromAction)(action, location);\n case _UrlUpdateTypes2.default.replace:\n return (0, _updateUrlQueryFromAction.replaceUrlQueryFromAction)(action, location);\n case _UrlUpdateTypes2.default.multiReplaceIn:\n return (0, _updateUrlQueryFromAction.multiReplaceInUrlQueryFromAction)(action, location);\n case _UrlUpdateTypes2.default.pushIn:\n return (0, _updateUrlQueryFromAction.pushInUrlQueryFromAction)(action, location);\n case _UrlUpdateTypes2.default.push:\n return (0, _updateUrlQueryFromAction.pushUrlQueryFromAction)(action, location);\n case _UrlUpdateTypes2.default.multiPushIn:\n return (0, _updateUrlQueryFromAction.multiPushInUrlQueryFromAction)(action, location);\n default:\n break;\n }\n\n if (process.env.NODE_ENV === 'development') {\n console.warn('urlQueryReducer encountered unhandled action.meta.updateType ' + updateType + '.', // eslint-disable-line no-console\n 'action =', action);\n }\n\n return undefined;\n}","'use strict';\n\nexports.__esModule = true;\nexports.Encoders = exports.Decoders = exports.encodeNumericObject = exports.encodeNumericArray = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nexports.encodeDate = encodeDate;\nexports.decodeDate = decodeDate;\nexports.encodeBoolean = encodeBoolean;\nexports.decodeBoolean = decodeBoolean;\nexports.encodeNumber = encodeNumber;\nexports.decodeNumber = decodeNumber;\nexports.encodeString = encodeString;\nexports.decodeString = decodeString;\nexports.encodeJson = encodeJson;\nexports.decodeJson = decodeJson;\nexports.encodeArray = encodeArray;\nexports.decodeArray = decodeArray;\nexports.decodeNumericArray = decodeNumericArray;\nexports.encodeObject = encodeObject;\nexports.decodeObject = decodeObject;\nexports.decodeNumericObject = decodeNumericObject;\nexports.decode = decode;\nexports.encode = encode;\n\nvar _urlQueryConfig = require('./urlQueryConfig');\n\nvar _urlQueryConfig2 = _interopRequireDefault(_urlQueryConfig);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\n * Functions for encoding and decoding values as strings.\n */\n\n\n/**\n * Encodes a date as a string in YYYY-MM-DD format.\n *\n * @param {Date} date\n * @return {String} the encoded date\n */\nfunction encodeDate(date) {\n if (date == null) {\n return date;\n }\n\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var day = date.getDate();\n\n return year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day);\n}\n\n/**\n * Converts a date in the format 'YYYY-mm-dd...' into a proper date, because\n * new Date() does not do that correctly. The date can be as complete or incomplete\n * as necessary (aka, '2015', '2015-10', '2015-10-01').\n * It will not work for dates that have times included in them.\n *\n * @param {String} dateString String date form like '2015-10-01'\n * @return {Date} parsed date\n */\nfunction decodeDate(dateString) {\n if (dateString == null || !dateString.length) {\n return undefined;\n }\n\n var parts = dateString.split('-');\n // may only be a year so won't even have a month\n if (parts[1] != null) {\n parts[1] -= 1; // Note: months are 0-based\n } else {\n // just a year, set the month and day to the first\n parts[1] = 0;\n parts[2] = 1;\n }\n\n var decoded = new (Function.prototype.bind.apply(Date, [null].concat(_toConsumableArray(parts))))();\n\n if (isNaN(decoded.getTime())) {\n return undefined;\n }\n\n return decoded;\n}\n\n/**\n * Encodes a boolean as a string. true -> \"1\", false -> \"0\".\n *\n * @param {Boolean} bool\n * @return {String} the encoded boolean\n */\nfunction encodeBoolean(bool) {\n if (bool === undefined) {\n return undefined;\n }\n\n return bool ? '1' : '0';\n}\n\n/**\n * Decodes a boolean from a string. \"1\" -> true, \"0\" -> false.\n * Everything else maps to undefined.\n *\n * @param {String} boolStr the encoded boolean string\n * @return {Boolean} the boolean value\n */\nfunction decodeBoolean(boolStr) {\n if (boolStr === '1') {\n return true;\n } else if (boolStr === '0') {\n return false;\n }\n\n return undefined;\n}\n\n/**\n * Encodes a number as a string.\n *\n * @param {Number} num\n * @return {String} the encoded number\n */\nfunction encodeNumber(num) {\n if (num == null) {\n return undefined;\n }\n\n return String(num);\n}\n\n/**\n * Decodes a number from a string via parseFloat. If the number is invalid,\n * it returns undefined.\n *\n * @param {String} numStr the encoded number string\n * @return {Number} the number value\n */\nfunction decodeNumber(numStr) {\n if (numStr == null) {\n return undefined;\n }\n\n var result = parseFloat(numStr);\n\n if (isNaN(result)) {\n return undefined;\n }\n\n return result;\n}\n\n/**\n * Encodes a string while safely handling null and undefined values.\n *\n * @param {String} string\n * @return {String} the encoded string\n */\nfunction encodeString(str) {\n if (str == null) {\n return undefined;\n }\n\n return String(str);\n}\n\n/**\n * Decodes a string while safely handling null and undefined values.\n *\n * @param {String} str the encoded string\n * @return {String} the string value\n */\nfunction decodeString(str) {\n if (str == null) {\n return undefined;\n }\n\n return String(str);\n}\n\n/**\n * Encodes anything as a JSON string.\n *\n * @param {Any} any The thing to be encoded\n * @return {String} The JSON string representation of any\n */\nfunction encodeJson(any) {\n if (any == null) {\n return undefined;\n }\n\n return JSON.stringify(any);\n}\n\n/**\n * Decodes a JSON string into javascript\n *\n * @param {String} jsonStr The JSON string representation\n * @return {Any} The javascript representation\n */\nfunction decodeJson(jsonStr) {\n if (!jsonStr) {\n return undefined;\n }\n\n var result = void 0;\n try {\n result = JSON.parse(jsonStr);\n } catch (e) {\n /* ignore errors, returning undefined */\n }\n\n return result;\n}\n\n/**\n * Encodes an array as a JSON string.\n *\n * @param {Array} array The array to be encoded\n * @return {String} The JSON string representation of array\n */\nfunction encodeArray(array) {\n var entrySeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[1];\n\n if (!array) {\n return undefined;\n }\n\n return array.join(entrySeparator);\n}\n\n/**\n * Decodes a JSON string into javascript array\n *\n * @param {String} jsonStr The JSON string representation\n * @return {Array} The javascript representation\n */\nfunction decodeArray(arrayStr) {\n var entrySeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[1];\n\n if (!arrayStr) {\n return undefined;\n }\n\n return arrayStr.split(entrySeparator).map(function (item) {\n return item === '' ? undefined : item;\n });\n}\n\n/**\n * Encodes a numeric array as a JSON string. (alias of encodeArray)\n *\n * @param {Array} array The array to be encoded\n * @return {String} The JSON string representation of array\n */\nvar encodeNumericArray = exports.encodeNumericArray = encodeArray;\n\n/**\n * Decodes a JSON string into javascript array where all entries are numbers\n *\n * @param {String} jsonStr The JSON string representation\n * @return {Array} The javascript representation\n */\nfunction decodeNumericArray(arrayStr) {\n var entrySeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[1];\n\n var decoded = decodeArray(arrayStr, entrySeparator);\n\n if (!decoded) {\n return undefined;\n }\n\n return decoded.map(function (d) {\n return d == null ? d : +d;\n });\n}\n\n/**\n * Encode simple objects as readable strings. Currently works only for simple,\n * flat objects where values are numbers, booleans or strings.\n *\n * For example { foo: bar, boo: baz } -> \"foo-bar_boo-baz\"\n *\n * @param {Object} object The object to encode\n * @param {String} keyValSeparator=\"-\" The separator between keys and values\n * @param {String} entrySeparator=\"_\" The separator between entries\n * @return {String} The encoded object\n */\nfunction encodeObject(obj) {\n var keyValSeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.keyValSeparator : arguments[1];\n var entrySeparator = arguments.length <= 2 || arguments[2] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[2];\n\n if (!obj || !Object.keys(obj).length) {\n return undefined;\n }\n\n return Object.keys(obj).map(function (key) {\n return '' + key + keyValSeparator + obj[key];\n }).join(entrySeparator);\n}\n\n/**\n * Decodes a simple object to javascript. Currently works only for simple,\n * flat objects where values are numbers, booleans or strings.\n *\n * For example \"foo-bar_boo-baz\" -> { foo: bar, boo: baz }\n *\n * @param {String} objStr The object string to decode\n * @param {String} keyValSeparator=\"-\" The separator between keys and values\n * @param {String} entrySeparator=\"_\" The separator between entries\n * @return {Object} The javascript object\n */\nfunction decodeObject(objStr) {\n var keyValSeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.keyValSeparator : arguments[1];\n var entrySeparator = arguments.length <= 2 || arguments[2] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[2];\n\n if (!objStr || !objStr.length) {\n return undefined;\n }\n var obj = {};\n\n objStr.split(entrySeparator).forEach(function (entryStr) {\n var _entryStr$split = entryStr.split(keyValSeparator);\n\n var _entryStr$split2 = _slicedToArray(_entryStr$split, 2);\n\n var key = _entryStr$split2[0];\n var value = _entryStr$split2[1];\n\n obj[key] = value;\n });\n\n return obj;\n}\n\n/**\n * Encode simple objects as readable strings. Alias of encodeObject.\n *\n * For example { foo: 123, boo: 521 } -> \"foo-123_boo-521\"\n *\n * @param {Object} object The object to encode\n * @param {String} keyValSeparator=\"-\" The separator between keys and values\n * @param {String} entrySeparator=\"_\" The separator between entries\n * @return {String} The encoded object\n */\nvar encodeNumericObject = exports.encodeNumericObject = encodeObject;\n\n/**\n * Decodes a simple object to javascript where all values are numbers.\n * Currently works only for simple, flat objects.\n *\n * For example \"foo-123_boo-521\" -> { foo: 123, boo: 521 }\n *\n * @param {String} objStr The object string to decode\n * @param {String} keyValSeparator=\"-\" The separator between keys and values\n * @param {String} entrySeparator=\"_\" The separator between entries\n * @return {Object} The javascript object\n */\nfunction decodeNumericObject(objStr) {\n var keyValSeparator = arguments.length <= 1 || arguments[1] === undefined ? _urlQueryConfig2.default.keyValSeparator : arguments[1];\n var entrySeparator = arguments.length <= 2 || arguments[2] === undefined ? _urlQueryConfig2.default.entrySeparator : arguments[2];\n\n var decoded = decodeObject(objStr, keyValSeparator, entrySeparator);\n\n if (!decoded) {\n return undefined;\n }\n\n // convert to numbers\n Object.keys(decoded).forEach(function (key) {\n decoded[key] = decoded[key] == null ? decoded[key] : +decoded[key];\n });\n\n return decoded;\n}\n\n/**\n * Collection of Decoders by type\n */\nvar Decoders = exports.Decoders = {\n number: decodeNumber,\n string: decodeString,\n object: decodeObject,\n array: decodeArray,\n json: decodeJson,\n date: decodeDate,\n boolean: decodeBoolean,\n numericObject: decodeNumericObject,\n numericArray: decodeNumericArray\n};\n\n/**\n * Generic decode function that takes a type as an argument.\n *\n * @param {String|Function} type If a function, it is used to decode, otherwise the string is\n * the key for the decoder in the Decoders collection.\n * @param {String} encodedValue the value to decode\n * @param {Any} defaultValue The default value to use if encodedValue is undefined.\n * @return {Any} The decoded value\n */\nfunction decode(type, encodedValue, defaultValue) {\n var decodedValue = void 0;\n\n if (typeof type === 'function') {\n decodedValue = type(encodedValue, defaultValue);\n } else if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type.decode) {\n decodedValue = type.decode(encodedValue, defaultValue);\n } else if (encodedValue === undefined) {\n decodedValue = defaultValue;\n } else if (Decoders[type]) {\n decodedValue = Decoders[type](encodedValue);\n } else {\n decodedValue = encodedValue;\n }\n\n return decodedValue;\n}\n\n/**\n * Collection of Encoders by type\n */\nvar Encoders = exports.Encoders = {\n number: encodeNumber,\n string: encodeString,\n object: encodeObject,\n array: encodeArray,\n json: encodeJson,\n date: encodeDate,\n boolean: encodeBoolean,\n numericObject: encodeNumericObject,\n numericArray: encodeNumericArray\n};\n\n/**\n * Generic encode function that takes a type as an argument.\n *\n * @param {String|Function} type If a function, it is used to encode, otherwise the string is\n * the key for the encoder in the Encoders collection.\n * @param {String} decodedValue the value to encode\n * @return {Any} The encoded value\n */\nfunction encode(type, decodedValue) {\n var encodedValue = void 0;\n if (typeof type === 'function') {\n encodedValue = type(decodedValue);\n } else if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type.encode) {\n encodedValue = type.encode(decodedValue);\n } else if (Encoders[type]) {\n encodedValue = Encoders[type](decodedValue);\n } else {\n encodedValue = decodedValue;\n }\n\n return encodedValue;\n}","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.replaceUrlQuery = replaceUrlQuery;\nexports.pushUrlQuery = pushUrlQuery;\nexports.replaceInUrlQuery = replaceInUrlQuery;\nexports.pushInUrlQuery = pushInUrlQuery;\nexports.multiReplaceInUrlQuery = multiReplaceInUrlQuery;\nexports.multiPushInUrlQuery = multiPushInUrlQuery;\nexports.updateUrlQuerySingle = updateUrlQuerySingle;\nexports.updateUrlQueryMulti = updateUrlQueryMulti;\n\nvar _queryString = require('query-string');\n\nvar _urlQueryConfig = require('./urlQueryConfig');\n\nvar _urlQueryConfig2 = _interopRequireDefault(_urlQueryConfig);\n\nvar _UrlUpdateTypes = require('./UrlUpdateTypes');\n\nvar _UrlUpdateTypes2 = _interopRequireDefault(_UrlUpdateTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction getLocation(location) {\n if (location) {\n return location;\n }\n\n // if no location provided, check history\n var history = _urlQueryConfig2.default.history;\n\n // if not in history, use window\n\n return history.location ? history.location : window.location;\n}\n\nfunction mergeLocationQueryOrSearch(location, newQuery) {\n // if location.query exists, update the query in location. otherwise update the search string\n // replace location.query\n if (location.query) {\n return _extends({}, location, {\n query: newQuery,\n search: undefined });\n }\n\n // replace location.search\n var queryStr = (0, _queryString.stringify)(newQuery);\n return _extends({}, location, {\n search: queryStr.length ? '?' + queryStr : undefined\n });\n}\n\nfunction updateLocation(newQuery, location) {\n location = getLocation(location);\n\n // remove query params that are nully or an empty strings.\n // note: these values are assumed to be already encoded as strings.\n var filteredQuery = Object.keys(newQuery).reduce(function (queryAccumulator, queryParam) {\n var encodedValue = newQuery[queryParam];\n if (encodedValue != null && encodedValue !== '') {\n queryAccumulator[queryParam] = encodedValue;\n }\n\n return queryAccumulator;\n }, {});\n\n var newLocation = mergeLocationQueryOrSearch(location, filteredQuery);\n\n // remove the key from the location\n delete newLocation.key;\n\n return newLocation;\n}\n\nfunction updateInLocation(queryParam, encodedValue, location) {\n location = getLocation(location);\n\n // if a query is there, use it, otherwise parse the search string\n var currQuery = location.query || (0, _queryString.parse)(location.search);\n\n var newQuery = _extends({}, currQuery, _defineProperty({}, queryParam, encodedValue));\n\n // remove if it is nully or an empty string when encoded\n if (encodedValue == null || encodedValue === '') {\n delete newQuery[queryParam];\n }\n\n var newLocation = mergeLocationQueryOrSearch(location, newQuery);\n\n // remove the key from the location\n delete newLocation.key;\n\n return newLocation;\n}\n\n/**\n * Update multiple parts of the location at once\n */\nfunction multiUpdateInLocation(queryReplacements, location) {\n location = getLocation(location);\n\n // if a query is there, use it, otherwise parse the search string\n var currQuery = location.query || (0, _queryString.parse)(location.search);\n\n var newQuery = _extends({}, currQuery, queryReplacements);\n\n // remove if it is nully or an empty string when encoded\n Object.keys(queryReplacements).forEach(function (queryParam) {\n var encodedValue = queryReplacements[queryParam];\n if (encodedValue == null || encodedValue === '') {\n delete newQuery[queryParam];\n }\n });\n\n var newLocation = mergeLocationQueryOrSearch(location, newQuery);\n\n // remove the key from the location\n delete newLocation.key;\n\n return newLocation;\n}\n\nfunction replaceUrlQuery(newQuery, location) {\n var newLocation = updateLocation(newQuery, location);\n return _urlQueryConfig2.default.history.replace(newLocation);\n}\n\nfunction pushUrlQuery(newQuery, location) {\n var newLocation = updateLocation(newQuery, location);\n return _urlQueryConfig2.default.history.push(newLocation);\n}\n\nfunction replaceInUrlQuery(queryParam, encodedValue, location) {\n var newLocation = updateInLocation(queryParam, encodedValue, location);\n return _urlQueryConfig2.default.history.replace(newLocation);\n}\n\nfunction pushInUrlQuery(queryParam, encodedValue, location) {\n var newLocation = updateInLocation(queryParam, encodedValue, location);\n return _urlQueryConfig2.default.history.push(newLocation);\n}\n\n/**\n * Replace multiple query parameters in a URL at once with only one\n * call to `history.replace`\n *\n * @param {Object} queryReplacements Object representing the params and\n * their encoded values. { queryParam: encodedValue, ... }\n */\nfunction multiReplaceInUrlQuery(queryReplacements, location) {\n var newLocation = multiUpdateInLocation(queryReplacements, location);\n return _urlQueryConfig2.default.history.replace(newLocation);\n}\n\nfunction multiPushInUrlQuery(queryReplacements, location) {\n var newLocation = multiUpdateInLocation(queryReplacements, location);\n return _urlQueryConfig2.default.history.push(newLocation);\n}\n\n/**\n * Updates a single value in a query based on the type\n */\nfunction updateUrlQuerySingle() {\n var updateType = arguments.length <= 0 || arguments[0] === undefined ? _UrlUpdateTypes2.default.replaceIn : arguments[0];\n var queryParam = arguments[1];\n var encodedValue = arguments[2];\n var location = arguments[3];\n\n if (updateType === _UrlUpdateTypes2.default.replaceIn) {\n return replaceInUrlQuery(queryParam, encodedValue, location);\n }\n if (updateType === _UrlUpdateTypes2.default.pushIn) {\n return pushInUrlQuery(queryParam, encodedValue, location);\n }\n\n // for these, wrap it in a whole new query object\n var newQuery = _defineProperty({}, queryParam, encodedValue);\n if (updateType === _UrlUpdateTypes2.default.replace) {\n return replaceUrlQuery(newQuery, location);\n }\n if (updateType === _UrlUpdateTypes2.default.push) {\n return pushUrlQuery(newQuery, location);\n }\n\n return undefined;\n}\n\n/**\n * Updates a multiple values in a query based on the type\n */\nfunction updateUrlQueryMulti() {\n var updateType = arguments.length <= 0 || arguments[0] === undefined ? _UrlUpdateTypes2.default.replaceIn : arguments[0];\n var queryReplacements = arguments[1];\n var location = arguments[2];\n\n if (updateType === _UrlUpdateTypes2.default.replaceIn) {\n return multiReplaceInUrlQuery(queryReplacements, location);\n }\n if (updateType === _UrlUpdateTypes2.default.pushIn) {\n return multiPushInUrlQuery(queryReplacements, location);\n }\n\n if (updateType === _UrlUpdateTypes2.default.replace) {\n return replaceUrlQuery(queryReplacements, location);\n }\n if (updateType === _UrlUpdateTypes2.default.push) {\n return pushUrlQuery(queryReplacements, location);\n }\n\n return undefined;\n}","'use strict';\n\nexports.__esModule = true;\n// function to create the singleton options object that can be shared\n// throughout an application\nfunction createUrlQueryConfig() {\n // default options\n return {\n // add in generated URL change handlers based on a urlPropsQueryConfig if provided\n addUrlChangeHandlers: true,\n\n // add in `props.params` from react-router to the url object\n addRouterParams: true,\n\n // function to specify change handler name (onChange)\n changeHandlerName: function changeHandlerName(propName) {\n return 'onChange' + propName[0].toUpperCase() + propName.substring(1);\n },\n\n // use this history if no history is specified\n history: {\n push: function push() {\n // eslint-disable-next-line\n console.error('No history provided to react-url-query. Please provide one via configureUrlQuery.');\n },\n replace: function replace() {\n // eslint-disable-next-line\n console.error('No history provided to react-url-query. Please provide one via configureUrlQuery.');\n }\n },\n\n // reads in location from react-router-redux if available and passes it\n // to the reducer in the urlQueryMiddleware\n readLocationFromStore: function readLocationFromStore(state) {\n if (state && state.routing) {\n return state.routing.locationBeforeTransitions;\n }\n\n return undefined;\n },\n\n /**\n * The separator between entries\n * @default {String} \"_\"\n */\n entrySeparator: '_',\n /**\n * The separator between keys and values\n * @default {String} \"-\"\n */\n keyValSeparator: '-'\n };\n}\n\nexports.default = createUrlQueryConfig();","'use strict';\n\nexports.__esModule = true;\nexports.default = urlQueryDecoder;\n\nvar _serialize = require('./serialize');\n\n/**\n * Decodes a query based on the config. It compares against cached values to see\n * if decoding is necessary or if it can reuse old values.\n *\n * @param {Object} query The query object (typically from props.location.query)\n *\n * @return {Object} the decoded values `{ key: decodedValue, ... }`\n */\nfunction urlQueryDecoder(config) {\n var cachedQuery = void 0;\n var cachedDecodedQuery = void 0;\n\n return function decodeQueryWithCache(query) {\n // decode the query\n var decodedQuery = Object.keys(config).reduce(function (decoded, key) {\n var keyConfig = config[key];\n // read from the URL key if provided, otherwise use the key\n var _keyConfig$queryParam = keyConfig.queryParam;\n var queryParam = _keyConfig$queryParam === undefined ? key : _keyConfig$queryParam;\n\n var encodedValue = query[queryParam];\n\n var decodedValue = void 0;\n // reused cached value\n if (cachedQuery && cachedQuery[queryParam] !== undefined && cachedQuery[queryParam] === encodedValue) {\n decodedValue = cachedDecodedQuery[key];\n\n // not cached, decode now\n // only decode if no validate provided or validate is provided and the encoded value is valid\n } else {\n decodedValue = (0, _serialize.decode)(keyConfig.type, encodedValue, keyConfig.defaultValue);\n }\n\n // validate the decoded value if configured. set to undefined if not valid\n if (decodedValue !== undefined && keyConfig.validate && !keyConfig.validate(decodedValue)) {\n decodedValue = undefined;\n }\n\n decoded[key] = decodedValue;\n return decoded;\n }, {});\n\n // update the cache\n cachedQuery = query;\n cachedDecodedQuery = decodedQuery;\n\n return decodedQuery;\n };\n}","'use strict';\n\nexports.__esModule = true;\nexports.default = urlQueryEncoder;\n\nvar _serialize = require('./serialize');\n\n/**\n * Encodes a query based on the config. Similarly to `encode`, it does not respect the `defaultValue`\n * field, so any missing values must be specified explicitly.\n *\n * @param {Object} query The query object (typically from props.location.query)\n *\n * @return {Object} the encoded values `{ key: encodedValue, ... }`\n */\nfunction urlQueryEncoder(config) {\n return function encodeQuery(query) {\n // encode the query\n var encodedQuery = Object.keys(config).reduce(function (encoded, key) {\n var keyConfig = config[key];\n // read from the URL key if provided, otherwise use the key\n var _keyConfig$queryParam = keyConfig.queryParam;\n var queryParam = _keyConfig$queryParam === undefined ? key : _keyConfig$queryParam;\n\n var decodedValue = query[key];\n\n var encodedValue = (0, _serialize.encode)(keyConfig.type, decodedValue);\n\n encoded[queryParam] = encodedValue;\n return encoded;\n }, {});\n\n return encodedQuery;\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = subquery;\n/**\n * Helper function to get only parts of a query. Specify\n * which parameters to include.\n */\nfunction subquery(query) {\n if (!query) {\n return query;\n }\n\n for (var _len = arguments.length, params = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n return params.reduce(function (newQuery, param) {\n newQuery[param] = query[param];\n return newQuery;\n }, {});\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = subqueryOmit;\n/**\n * Helper function to get only parts of a query. Specify\n * which parameters to omit.\n */\nfunction subqueryOmit(query) {\n for (var _len = arguments.length, omitParams = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n omitParams[_key - 1] = arguments[_key];\n }\n\n if (!query) {\n return query;\n }\n\n return Object.keys(query).filter(function (param) {\n return !omitParams.includes(param);\n }).reduce(function (newQuery, param) {\n newQuery[param] = query[param];\n return newQuery;\n }, {});\n}","'use strict';\nvar strictUriEncode = require('strict-uri-encode');\nvar objectAssign = require('object-assign');\n\nfunction encoderForArrayFormat(opts) {\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, index) {\n\t\t\t\treturn value === null ? [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tindex,\n\t\t\t\t\t']'\n\t\t\t\t].join('') : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tencode(index, opts),\n\t\t\t\t\t']=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[]=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(opts) {\n\tvar result;\n\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t} else if (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction encode(value, opts) {\n\tif (opts.encode) {\n\t\treturn opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t} else if (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input)).sort(function (a, b) {\n\t\t\treturn Number(a) - Number(b);\n\t\t}).map(function (key) {\n\t\t\treturn input[key];\n\t\t});\n\t}\n\n\treturn input;\n}\n\nexports.extract = function (str) {\n\treturn str.split('?')[1] || '';\n};\n\nexports.parse = function (str, opts) {\n\topts = objectAssign({arrayFormat: 'none'}, opts);\n\n\tvar formatter = parserForArrayFormat(opts);\n\n\t// Create an object with no prototype\n\t// https://github.com/sindresorhus/query-string/issues/47\n\tvar ret = Object.create(null);\n\n\tif (typeof str !== 'string') {\n\t\treturn ret;\n\t}\n\n\tstr = str.trim().replace(/^(\\?|#|&)/, '');\n\n\tif (!str) {\n\t\treturn ret;\n\t}\n\n\tstr.split('&').forEach(function (param) {\n\t\tvar parts = param.replace(/\\+/g, ' ').split('=');\n\t\t// Firefox (pre 40) decodes `%3D` to `=`\n\t\t// https://github.com/sindresorhus/query-string/pull/37\n\t\tvar key = parts.shift();\n\t\tvar val = parts.length > 0 ? parts.join('=') : undefined;\n\n\t\t// missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tval = val === undefined ? null : decodeURIComponent(val);\n\n\t\tformatter(decodeURIComponent(key), val, ret);\n\t});\n\n\treturn Object.keys(ret).sort().reduce(function (result, key) {\n\t\tvar val = ret[key];\n\t\tif (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(val);\n\t\t} else {\n\t\t\tresult[key] = val;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n};\n\nexports.stringify = function (obj, opts) {\n\tvar defaults = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none'\n\t};\n\n\topts = objectAssign(defaults, opts);\n\n\tvar formatter = encoderForArrayFormat(opts);\n\n\treturn obj ? Object.keys(obj).sort().map(function (key) {\n\t\tvar val = obj[key];\n\n\t\tif (val === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (val === null) {\n\t\t\treturn encode(key, opts);\n\t\t}\n\n\t\tif (Array.isArray(val)) {\n\t\t\tvar result = [];\n\n\t\t\tval.slice().forEach(function (val2) {\n\t\t\t\tif (val2 === undefined) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresult.push(formatter(key, val2, result.length));\n\t\t\t});\n\n\t\t\treturn result.join('&');\n\t\t}\n\n\t\treturn encode(key, opts) + '=' + encode(val, opts);\n\t}).filter(function (x) {\n\t\treturn x.length > 0;\n\t}).join('&') : '';\n};\n","'use strict';\nmodule.exports = function (str) {\n\treturn encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n\t\treturn '%' + c.charCodeAt(0).toString(16).toUpperCase();\n\t});\n};\n","export default (function (value) {\n return value === null;\n});","import invariant from 'invariant';\nimport isFunction from './utils/isFunction';\nimport identity from './utils/identity';\nimport isNull from './utils/isNull';\nexport default function createAction(type, payloadCreator, metaCreator) {\n if (payloadCreator === void 0) {\n payloadCreator = identity;\n }\n\n invariant(isFunction(payloadCreator) || isNull(payloadCreator), 'Expected payloadCreator to be a function, undefined or null');\n var finalPayloadCreator = isNull(payloadCreator) || payloadCreator === identity ? identity : function (head) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return head instanceof Error ? head : payloadCreator.apply(void 0, [head].concat(args));\n };\n var hasMeta = isFunction(metaCreator);\n var typeString = type.toString();\n\n var actionCreator = function actionCreator() {\n var payload = finalPayloadCreator.apply(void 0, arguments);\n var action = {\n type: type\n };\n\n if (payload instanceof Error) {\n action.error = true;\n }\n\n if (payload !== undefined) {\n action.payload = payload;\n }\n\n if (hasMeta) {\n action.meta = metaCreator.apply(void 0, arguments);\n }\n\n return action;\n };\n\n actionCreator.toString = function () {\n return typeString;\n };\n\n return actionCreator;\n}","export default (function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var initialState = typeof args[args.length - 1] !== 'function' && args.pop();\n var reducers = args;\n\n if (typeof initialState === 'undefined') {\n throw new TypeError('The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.');\n }\n\n return function (prevState, value) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n var prevStateIsUndefined = typeof prevState === 'undefined';\n var valueIsUndefined = typeof value === 'undefined';\n\n if (prevStateIsUndefined && valueIsUndefined && initialState) {\n return initialState;\n }\n\n return reducers.reduce(function (newState, reducer) {\n return reducer.apply(undefined, [newState, value].concat(args));\n }, prevStateIsUndefined && !valueIsUndefined && initialState ? initialState : prevState);\n };\n});","export default (function (value) {\n if (typeof value !== 'object' || value === null) return false;\n var proto = value;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(value) === proto;\n});","export default (function (value) {\n return typeof Map !== 'undefined' && value instanceof Map;\n});","import isMap from './isMap';\nexport default function ownKeys(object) {\n if (isMap(object)) {\n // We are using loose transforms in babel. Here we are trying to convert an\n // interable to an array. Loose mode expects everything to already be an\n // array. The problem is that our eslint rules encourage us to prefer\n // spread over Array.from.\n //\n // Instead of disabling loose mode we simply disable the warning.\n // eslint-disable-next-line unicorn/prefer-spread\n return Array.from(object.keys());\n }\n\n if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {\n return Reflect.ownKeys(object);\n }\n\n var keys = Object.getOwnPropertyNames(object);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n keys = keys.concat(Object.getOwnPropertySymbols(object));\n }\n\n return keys;\n}","export var DEFAULT_NAMESPACE = '/';\nexport var ACTION_TYPE_DELIMITER = '||';","import isMap from './isMap';\nexport default function get(key, x) {\n return isMap(x) ? x.get(key) : x[key];\n}","import { DEFAULT_NAMESPACE, ACTION_TYPE_DELIMITER } from '../constants';\nimport ownKeys from './ownKeys';\nimport get from './get';\nexport default (function (predicate) {\n return function flatten(map, _temp, partialFlatMap, partialFlatActionType) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$namespace = _ref.namespace,\n namespace = _ref$namespace === void 0 ? DEFAULT_NAMESPACE : _ref$namespace,\n prefix = _ref.prefix;\n\n if (partialFlatMap === void 0) {\n partialFlatMap = {};\n }\n\n if (partialFlatActionType === void 0) {\n partialFlatActionType = '';\n }\n\n function connectNamespace(type) {\n var _ref2;\n\n if (!partialFlatActionType) return type;\n var types = type.toString().split(ACTION_TYPE_DELIMITER);\n var partials = partialFlatActionType.split(ACTION_TYPE_DELIMITER);\n return (_ref2 = []).concat.apply(_ref2, partials.map(function (p) {\n return types.map(function (t) {\n return \"\" + p + namespace + t;\n });\n })).join(ACTION_TYPE_DELIMITER);\n }\n\n function connectPrefix(type) {\n if (partialFlatActionType || !prefix || prefix && new RegExp(\"^\" + prefix + namespace).test(type)) {\n return type;\n }\n\n return \"\" + prefix + namespace + type;\n }\n\n ownKeys(map).forEach(function (type) {\n var nextNamespace = connectPrefix(connectNamespace(type));\n var mapValue = get(type, map);\n\n if (predicate(mapValue)) {\n flatten(mapValue, {\n namespace: namespace,\n prefix: prefix\n }, partialFlatMap, nextNamespace);\n } else {\n partialFlatMap[nextNamespace] = mapValue;\n }\n });\n return partialFlatMap;\n };\n});","import isPlainObject from './isPlainObject';\nimport isMap from './isMap';\nimport hasGeneratorInterface from './hasGeneratorInterface';\nimport flattenWhenNode from './flattenWhenNode';\nexport default flattenWhenNode(function (node) {\n return (isPlainObject(node) || isMap(node)) && !hasGeneratorInterface(node);\n});","import ownKeys from './ownKeys';\nexport default function hasGeneratorInterface(handler) {\n var keys = ownKeys(handler);\n var hasOnlyInterfaceNames = keys.every(function (ownKey) {\n return ownKey === 'next' || ownKey === 'throw';\n });\n return keys.length && keys.length <= 2 && hasOnlyInterfaceNames;\n}","export default (function (value) {\n return value === null || value === undefined;\n});","export default (function (value) {\n return value === undefined;\n});","export default (function (value) {\n return value.toString();\n});","import reduceReducers from 'reduce-reducers';\nimport invariant from 'invariant';\nimport isPlainObject from './utils/isPlainObject';\nimport isMap from './utils/isMap';\nimport ownKeys from './utils/ownKeys';\nimport flattenReducerMap from './utils/flattenReducerMap';\nimport handleAction from './handleAction';\nimport get from './utils/get';\nexport default function handleActions(handlers, defaultState, options) {\n if (options === void 0) {\n options = {};\n }\n\n invariant(isPlainObject(handlers) || isMap(handlers), 'Expected handlers to be a plain object.');\n var flattenedReducerMap = flattenReducerMap(handlers, options);\n var reducers = ownKeys(flattenedReducerMap).map(function (type) {\n return handleAction(type, get(type, flattenedReducerMap), defaultState);\n });\n var reducer = reduceReducers.apply(void 0, reducers.concat([defaultState]));\n return function (state, action) {\n if (state === void 0) {\n state = defaultState;\n }\n\n return reducer(state, action);\n };\n}","import invariant from 'invariant';\nimport isFunction from './utils/isFunction';\nimport isPlainObject from './utils/isPlainObject';\nimport identity from './utils/identity';\nimport isNil from './utils/isNil';\nimport isUndefined from './utils/isUndefined';\nimport toString from './utils/toString';\nimport { ACTION_TYPE_DELIMITER } from './constants';\nexport default function handleAction(type, reducer, defaultState) {\n if (reducer === void 0) {\n reducer = identity;\n }\n\n var types = toString(type).split(ACTION_TYPE_DELIMITER);\n invariant(!isUndefined(defaultState), \"defaultState for reducer handling \" + types.join(', ') + \" should be defined\");\n invariant(isFunction(reducer) || isPlainObject(reducer), 'Expected reducer to be a function or object with next and throw reducers');\n\n var _ref = isFunction(reducer) ? [reducer, reducer] : [reducer.next, reducer.throw].map(function (aReducer) {\n return isNil(aReducer) ? identity : aReducer;\n }),\n nextReducer = _ref[0],\n throwReducer = _ref[1];\n\n return function (state, action) {\n if (state === void 0) {\n state = defaultState;\n }\n\n var actionType = action.type;\n\n if (!actionType || types.indexOf(toString(actionType)) === -1) {\n return state;\n }\n\n return (action.error === true ? throwReducer : nextReducer)(state, action);\n };\n}","export default (function (value) {\n return value;\n});","export default (function (value) {\n return typeof value === 'function';\n});","'use strict';\n\nvar compose = require('redux').compose;\n\nexports.__esModule = true;\nexports.composeWithDevTools =\n typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n : function () {\n if (arguments.length === 0) return undefined;\n if (typeof arguments[0] === 'object') return compose;\n return compose.apply(null, arguments);\n };\n\nexports.devToolsEnhancer =\n typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__\n ? window.__REDUX_DEVTOOLS_EXTENSION__\n : function () {\n return function (noop) {\n return noop;\n };\n };\n","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\n\nvar processProps = function processProps(type, props, _value, deepEqual) {\n var value = props.value;\n\n if (type === 'checkbox') {\n return _extends({}, props, {\n checked: !!value\n });\n }\n\n if (type === 'radio') {\n return _extends({}, props, {\n checked: deepEqual(value, _value),\n value: _value\n });\n }\n\n if (type === 'select-multiple') {\n return _extends({}, props, {\n value: value || []\n });\n }\n\n if (type === 'file') {\n return _extends({}, props, {\n value: value || undefined\n });\n }\n\n return props;\n};\n\nexport default function createFieldProps(_ref, name, _ref2) {\n var getIn = _ref.getIn,\n toJS = _ref.toJS,\n deepEqual = _ref.deepEqual;\n\n var asyncError = _ref2.asyncError,\n asyncValidating = _ref2.asyncValidating,\n onBlur = _ref2.onBlur,\n onChange = _ref2.onChange,\n onDrop = _ref2.onDrop,\n onDragStart = _ref2.onDragStart,\n dirty = _ref2.dirty,\n dispatch = _ref2.dispatch,\n onFocus = _ref2.onFocus,\n form = _ref2.form,\n format = _ref2.format,\n initial = _ref2.initial,\n parse = _ref2.parse,\n pristine = _ref2.pristine,\n props = _ref2.props,\n state = _ref2.state,\n submitError = _ref2.submitError,\n submitFailed = _ref2.submitFailed,\n submitting = _ref2.submitting,\n syncError = _ref2.syncError,\n syncWarning = _ref2.syncWarning,\n validate = _ref2.validate,\n value = _ref2.value,\n _value = _ref2._value,\n warn = _ref2.warn,\n custom = _objectWithoutPropertiesLoose(_ref2, [\"asyncError\", \"asyncValidating\", \"onBlur\", \"onChange\", \"onDrop\", \"onDragStart\", \"dirty\", \"dispatch\", \"onFocus\", \"form\", \"format\", \"initial\", \"parse\", \"pristine\", \"props\", \"state\", \"submitError\", \"submitFailed\", \"submitting\", \"syncError\", \"syncWarning\", \"validate\", \"value\", \"_value\", \"warn\"]);\n\n var error = syncError || asyncError || submitError;\n var warning = syncWarning;\n\n var formatFieldValue = function formatFieldValue(value, format) {\n if (format === null) {\n return value;\n }\n\n var defaultFormattedValue = value == null ? '' : value;\n return format ? format(value, name) : defaultFormattedValue;\n };\n\n var formattedFieldValue = formatFieldValue(value, format);\n return {\n input: processProps(custom.type, {\n name: name,\n onBlur: onBlur,\n onChange: onChange,\n onDragStart: onDragStart,\n onDrop: onDrop,\n onFocus: onFocus,\n value: formattedFieldValue\n }, _value, deepEqual),\n meta: _extends({}, toJS(state), {\n active: !!(state && getIn(state, 'active')),\n asyncValidating: asyncValidating,\n autofilled: !!(state && getIn(state, 'autofilled')),\n dirty: dirty,\n dispatch: dispatch,\n error: error,\n form: form,\n initial: initial,\n warning: warning,\n invalid: !!error,\n pristine: pristine,\n submitting: !!submitting,\n submitFailed: !!submitFailed,\n touched: !!(state && getIn(state, 'touched')),\n valid: !error,\n visited: !!(state && getIn(state, 'visited'))\n }),\n custom: _extends({}, custom, {}, props)\n };\n}","import isEvent from './isEvent';\n\nvar getSelectedValues = function getSelectedValues(options) {\n var result = [];\n\n if (options) {\n for (var index = 0; index < options.length; index++) {\n var option = options[index];\n\n if (option.selected) {\n result.push(option.value);\n }\n }\n }\n\n return result;\n};\n\nvar getValue = function getValue(event, isReactNative) {\n if (isEvent(event)) {\n if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) {\n return event.nativeEvent.text;\n }\n\n if (isReactNative && event.nativeEvent !== undefined) {\n return event.nativeEvent.text;\n }\n\n var detypedEvent = event;\n var _detypedEvent$target = detypedEvent.target,\n type = _detypedEvent$target.type,\n value = _detypedEvent$target.value,\n checked = _detypedEvent$target.checked,\n files = _detypedEvent$target.files,\n dataTransfer = detypedEvent.dataTransfer;\n\n if (type === 'checkbox') {\n return !!checked;\n }\n\n if (type === 'file') {\n return files || dataTransfer && dataTransfer.files;\n }\n\n if (type === 'select-multiple') {\n return getSelectedValues(event.target.options);\n }\n\n return value;\n }\n\n return event;\n};\n\nexport default getValue;","var isReactNative = typeof window !== 'undefined' && window.navigator && window.navigator.product && window.navigator.product === 'ReactNative';\nexport default isReactNative;","import getValue from './getValue';\nimport isReactNative from '../isReactNative';\n\nvar onChangeValue = function onChangeValue(event, _ref) {\n var name = _ref.name,\n parse = _ref.parse,\n normalize = _ref.normalize;\n // read value from input\n var value = getValue(event, isReactNative); // parse value if we have a parser\n\n if (parse) {\n value = parse(value, name);\n } // normalize value\n\n\n if (normalize) {\n value = normalize(name, value);\n }\n\n return value;\n};\n\nexport default onChangeValue;","export var dataKey = 'text';","import { isValidElementType } from 'react-is';\n\nvar validateComponentProp = function validateComponentProp(props, propName, componentName) {\n if (!isValidElementType(props[propName])) {\n return new Error('Invalid prop `' + propName + '` supplied to' + ' `' + componentName + '`.');\n }\n\n return null;\n};\n\nexport default validateComponentProp;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport React, { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport createFieldProps from './createFieldProps';\nimport onChangeValue from './events/onChangeValue';\nimport { dataKey } from './util/eventConsts';\nimport plain from './structure/plain';\nimport isReactNative from './isReactNative';\nimport validateComponentProp from './util/validateComponentProp';\nimport isEvent from './events/isEvent';\nvar propsToNotUpdateFor = ['_reduxForm'];\n\nvar isObject = function isObject(entity) {\n return entity && typeof entity === 'object';\n};\n\nvar isFunction = function isFunction(entity) {\n return entity && typeof entity === 'function';\n};\n\nvar eventPreventDefault = function eventPreventDefault(event) {\n if (isObject(event) && isFunction(event.preventDefault)) {\n event.preventDefault();\n }\n};\n\nvar eventDataTransferGetData = function eventDataTransferGetData(event, key) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.getData)) {\n return event.dataTransfer.getData(key);\n }\n};\n\nvar eventDataTransferSetData = function eventDataTransferSetData(event, key, value) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.setData)) {\n event.dataTransfer.setData(key, value);\n }\n};\n\nfunction createConnectedField(structure) {\n var deepEqual = structure.deepEqual,\n getIn = structure.getIn;\n\n var getSyncError = function getSyncError(syncErrors, name) {\n var error = plain.getIn(syncErrors, name); // Because the error for this field might not be at a level in the error structure where\n // it can be set directly, it might need to be unwrapped from the _error property\n\n return error && error._error ? error._error : error;\n };\n\n var getSyncWarning = function getSyncWarning(syncWarnings, name) {\n var warning = getIn(syncWarnings, name); // Because the warning for this field might not be at a level in the warning structure where\n // it can be set directly, it might need to be unwrapped from the _warning property\n\n return warning && warning._warning ? warning._warning : warning;\n };\n\n var ConnectedField = /*#__PURE__*/function (_Component) {\n _inheritsLoose(ConnectedField, _Component);\n\n function ConnectedField() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.ref = React.createRef();\n\n _this.isPristine = function () {\n return _this.props.pristine;\n };\n\n _this.getValue = function () {\n return _this.props.value;\n };\n\n _this.handleChange = function (event) {\n var _this$props = _this.props,\n name = _this$props.name,\n dispatch = _this$props.dispatch,\n parse = _this$props.parse,\n normalize = _this$props.normalize,\n onChange = _this$props.onChange,\n _reduxForm = _this$props._reduxForm,\n previousValue = _this$props.value;\n var newValue = onChangeValue(event, {\n name: name,\n parse: parse,\n normalize: normalize\n });\n var defaultPrevented = false;\n\n if (onChange) {\n // Can't seem to find a way to extend Event in React Native,\n // thus I simply avoid adding preventDefault() in a RN environment\n // to prevent the following error:\n // `One of the sources for assign has an enumerable key on the prototype chain`\n // Reference: https://github.com/facebook/react-native/issues/5507\n if (!isReactNative && isEvent(event)) {\n onChange(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n var onChangeResult = onChange(event, newValue, previousValue, name); // Return value of change handler affecting preventDefault is RN\n // specific behavior.\n\n if (isReactNative) {\n defaultPrevented = onChangeResult;\n }\n }\n }\n\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue)); // call post-change callback\n\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'change');\n }\n }\n };\n\n _this.handleFocus = function (event) {\n var _this$props2 = _this.props,\n name = _this$props2.name,\n dispatch = _this$props2.dispatch,\n onFocus = _this$props2.onFocus,\n _reduxForm = _this$props2._reduxForm;\n var defaultPrevented = false;\n\n if (onFocus) {\n if (!isReactNative) {\n onFocus(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), name);\n } else {\n defaultPrevented = onFocus(event, name);\n }\n }\n\n if (!defaultPrevented) {\n dispatch(_reduxForm.focus(name));\n }\n };\n\n _this.handleBlur = function (event) {\n var _this$props3 = _this.props,\n name = _this$props3.name,\n dispatch = _this$props3.dispatch,\n parse = _this$props3.parse,\n normalize = _this$props3.normalize,\n onBlur = _this$props3.onBlur,\n _reduxForm = _this$props3._reduxForm,\n _value = _this$props3._value,\n previousValue = _this$props3.value;\n var newValue = onChangeValue(event, {\n name: name,\n parse: parse,\n normalize: normalize\n }); // for checkbox and radio, if the value property of checkbox or radio equals\n // the value passed by blur event, then fire blur action with previousValue.\n\n if (newValue === _value && _value !== undefined) {\n newValue = previousValue;\n }\n\n var defaultPrevented = false;\n\n if (onBlur) {\n if (!isReactNative) {\n onBlur(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n defaultPrevented = onBlur(event, newValue, previousValue, name);\n }\n }\n\n if (!defaultPrevented) {\n // dispatch blur action\n dispatch(_reduxForm.blur(name, newValue)); // call post-blur callback\n\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'blur');\n }\n }\n };\n\n _this.handleDragStart = function (event) {\n var _this$props4 = _this.props,\n name = _this$props4.name,\n onDragStart = _this$props4.onDragStart,\n value = _this$props4.value;\n eventDataTransferSetData(event, dataKey, value == null ? '' : value);\n\n if (onDragStart) {\n onDragStart(event, name);\n }\n };\n\n _this.handleDrop = function (event) {\n var _this$props5 = _this.props,\n name = _this$props5.name,\n dispatch = _this$props5.dispatch,\n onDrop = _this$props5.onDrop,\n _reduxForm = _this$props5._reduxForm,\n previousValue = _this$props5.value;\n var newValue = eventDataTransferGetData(event, dataKey);\n var defaultPrevented = false;\n\n if (onDrop) {\n onDrop(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n }\n\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue));\n eventPreventDefault(event);\n }\n };\n\n return _this;\n }\n\n var _proto = ConnectedField.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n var nextPropsKeys = Object.keys(nextProps);\n var thisPropsKeys = Object.keys(this.props); // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n\n return !!(this.props.children || nextProps.children || nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) {\n if (~(nextProps.immutableProps || []).indexOf(prop)) {\n return _this2.props[prop] !== nextProps[prop];\n }\n\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]);\n }));\n };\n\n _proto.getRenderedComponent = function getRenderedComponent() {\n return this.ref.current;\n };\n\n _proto.render = function render() {\n var _this$props6 = this.props,\n component = _this$props6.component,\n forwardRef = _this$props6.forwardRef,\n name = _this$props6.name,\n _reduxForm = _this$props6._reduxForm,\n normalize = _this$props6.normalize,\n onBlur = _this$props6.onBlur,\n onChange = _this$props6.onChange,\n onFocus = _this$props6.onFocus,\n onDragStart = _this$props6.onDragStart,\n onDrop = _this$props6.onDrop,\n immutableProps = _this$props6.immutableProps,\n rest = _objectWithoutPropertiesLoose(_this$props6, [\"component\", \"forwardRef\", \"name\", \"_reduxForm\", \"normalize\", \"onBlur\", \"onChange\", \"onFocus\", \"onDragStart\", \"onDrop\", \"immutableProps\"]);\n\n var _createFieldProps = createFieldProps(structure, name, _extends({}, rest, {\n form: _reduxForm.form,\n onBlur: this.handleBlur,\n onChange: this.handleChange,\n onDrop: this.handleDrop,\n onDragStart: this.handleDragStart,\n onFocus: this.handleFocus\n })),\n custom = _createFieldProps.custom,\n props = _objectWithoutPropertiesLoose(_createFieldProps, [\"custom\"]);\n\n if (forwardRef) {\n custom.ref = this.ref;\n }\n\n if (typeof component === 'string') {\n var input = props.input,\n meta = props.meta; // eslint-disable-line no-unused-vars\n // flatten input into other props\n\n return createElement(component, _extends({}, input, {}, custom));\n } else {\n return createElement(component, _extends({}, props, {}, custom));\n }\n };\n\n return ConnectedField;\n }(Component);\n\n ConnectedField.propTypes = {\n component: validateComponentProp,\n props: PropTypes.object\n };\n var connector = connect(function (state, ownProps) {\n var name = ownProps.name,\n _ownProps$_reduxForm = ownProps._reduxForm,\n initialValues = _ownProps$_reduxForm.initialValues,\n getFormState = _ownProps$_reduxForm.getFormState;\n var formState = getFormState(state);\n var initialState = getIn(formState, \"initial.\" + name);\n var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name);\n var value = getIn(formState, \"values.\" + name);\n var submitting = getIn(formState, 'submitting');\n var syncError = getSyncError(getIn(formState, 'syncErrors'), name);\n var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name);\n var pristine = deepEqual(value, initial);\n return {\n asyncError: getIn(formState, \"asyncErrors.\" + name),\n asyncValidating: getIn(formState, 'asyncValidating') === name,\n dirty: !pristine,\n pristine: pristine,\n state: getIn(formState, \"fields.\" + name),\n submitError: getIn(formState, \"submitErrors.\" + name),\n submitFailed: getIn(formState, 'submitFailed'),\n submitting: submitting,\n syncError: syncError,\n syncWarning: syncWarning,\n initial: initial,\n value: value,\n _value: ownProps.value // save value passed in (for radios)\n\n };\n }, undefined, undefined, {\n forwardRef: true\n });\n return connector(ConnectedField);\n}\n\nexport default createConnectedField;","import _isEqualWith from \"lodash/isEqualWith\";\n\nvar customizer = function customizer(objectValue, otherValue, indexOrkey, object, other, stack) {\n // https://lodash.com/docs/4.17.4#isEqualWith\n if (stack) {\n // Shallow compares\n // For 1st level, stack === undefined.\n // -> Do nothing (and implicitly return undefined so that it goes to compare 2nd level)\n // For 2nd level and up, stack !== undefined.\n // -> Compare by === operator\n return objectValue === otherValue;\n }\n};\n\nvar shallowCompare = function shallowCompare(instance, nextProps, nextState) {\n var propsEqual = _isEqualWith(instance.props, nextProps, customizer);\n\n var stateEqual = _isEqualWith(instance.state, nextState, customizer);\n\n return !propsEqual || !stateEqual;\n};\n\nexport default shallowCompare;","var formatName = function formatName(_ref, name) {\n var sectionPrefix = _ref._reduxForm.sectionPrefix;\n return sectionPrefix ? sectionPrefix + \".\" + name : name;\n};\n\nexport default formatName;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport React, { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport createConnectedField from './ConnectedField';\nimport shallowCompare from './util/shallowCompare';\nimport prefixName from './util/prefixName';\nimport plain from './structure/plain';\nimport { withReduxForm } from './ReduxFormContext';\nimport validateComponentProp from './util/validateComponentProp';\n\nfunction createField(structure) {\n var ConnectedField = createConnectedField(structure);\n var setIn = structure.setIn;\n\n var Field = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Field, _Component);\n\n function Field(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.ref = React.createRef();\n\n _this.normalize = function (name, value) {\n var normalize = _this.props.normalize;\n\n if (!normalize) {\n return value;\n }\n\n var previousValues = _this.props._reduxForm.getValues();\n\n var previousValue = _this.value;\n var nextValues = setIn(previousValues, name, value);\n return normalize(value, previousValue, nextValues, previousValues, name);\n };\n\n if (!props._reduxForm) {\n throw new Error('Field must be inside a component decorated with reduxForm()');\n }\n\n return _this;\n }\n\n var _proto = Field.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n this.props._reduxForm.register(this.name, 'Field', function () {\n return _this2.props.validate;\n }, function () {\n return _this2.props.warn;\n });\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this3 = this;\n\n var oldName = prefixName(prevProps, prevProps.name);\n var newName = prefixName(this.props, this.props.name);\n\n if (oldName !== newName || // use deepEqual here because they could be a function or an array of functions\n !plain.deepEqual(prevProps.validate, this.props.validate) || !plain.deepEqual(prevProps.warn, this.props.warn)) {\n // unregister old name\n this.props._reduxForm.unregister(oldName); // register new name\n\n\n this.props._reduxForm.register(newName, 'Field', function () {\n return _this3.props.validate;\n }, function () {\n return _this3.props.warn;\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.props._reduxForm.unregister(this.name);\n };\n\n _proto.getRenderedComponent = function getRenderedComponent() {\n invariant(this.props.forwardRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a forwardRef prop to Field');\n return this.ref.current ? this.ref.current.getRenderedComponent() : undefined;\n };\n\n _proto.render = function render() {\n return createElement(ConnectedField, _extends({}, this.props, {\n name: this.name,\n normalize: this.normalize,\n ref: this.ref\n }));\n };\n\n _createClass(Field, [{\n key: \"name\",\n get: function get() {\n return prefixName(this.props, this.props.name);\n }\n }, {\n key: \"dirty\",\n get: function get() {\n return !this.pristine;\n }\n }, {\n key: \"pristine\",\n get: function get() {\n return !!(this.ref.current && this.ref.current.isPristine());\n }\n }, {\n key: \"value\",\n get: function get() {\n return this.ref.current && this.ref.current.getValue();\n }\n }]);\n\n return Field;\n }(Component);\n\n Field.propTypes = {\n name: PropTypes.string.isRequired,\n component: validateComponentProp,\n format: PropTypes.func,\n normalize: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n onDragStart: PropTypes.func,\n onDrop: PropTypes.func,\n parse: PropTypes.func,\n props: PropTypes.object,\n validate: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n warn: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n forwardRef: PropTypes.bool,\n immutableProps: PropTypes.arrayOf(PropTypes.string),\n _reduxForm: PropTypes.object\n };\n return withReduxForm(Field);\n}\n\nexport default createField;","import createField from './createField';\nimport plain from './structure/plain';\nexport default createField(plain);","import _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport * as React from 'react';\nexport var ReduxFormContext = React.createContext(null);\nexport var renderChildren = function renderChildren(Component, _ref) {\n var forwardedRef = _ref.forwardedRef,\n rest = _objectWithoutPropertiesLoose(_ref, [\"forwardedRef\"]);\n\n return function (_reduxForm) {\n return React.createElement(Component, _extends({}, rest, {\n _reduxForm: _reduxForm,\n ref: forwardedRef\n }));\n };\n};\nexport var withReduxForm = function withReduxForm(Component) {\n var Hoc = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Hoc, _React$Component);\n\n function Hoc() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Hoc.prototype;\n\n _proto.render = function render() {\n return React.createElement(ReduxFormContext.Consumer, {\n children: renderChildren(Component, this.props)\n });\n };\n\n return Hoc;\n }(React.Component);\n\n var ref = React.forwardRef(function (props, ref) {\n return React.createElement(Hoc, _extends({}, props, {\n forwardedRef: ref\n }));\n });\n ref.displayName = Component.displayName || Component.name || 'Component';\n return ref;\n};","var isEvent = function isEvent(candidate) {\n return !!(candidate && candidate.stopPropagation && candidate.preventDefault);\n};\n\nexport default isEvent;","import _extends from \"@babel/runtime/helpers/extends\";\nimport { ARRAY_INSERT, ARRAY_MOVE, ARRAY_POP, ARRAY_PUSH, ARRAY_REMOVE, ARRAY_REMOVE_ALL, ARRAY_SHIFT, ARRAY_SPLICE, ARRAY_SWAP, ARRAY_UNSHIFT, AUTOFILL, BLUR, CHANGE, CLEAR_SUBMIT, CLEAR_SUBMIT_ERRORS, CLEAR_ASYNC_ERROR, DESTROY, FOCUS, INITIALIZE, REGISTER_FIELD, RESET, RESET_SECTION, CLEAR_FIELDS, SET_SUBMIT_FAILED, SET_SUBMIT_SUCCEEDED, START_ASYNC_VALIDATION, START_SUBMIT, STOP_ASYNC_VALIDATION, STOP_SUBMIT, SUBMIT, TOUCH, UNREGISTER_FIELD, UNTOUCH, UPDATE_SYNC_ERRORS, UPDATE_SYNC_WARNINGS } from './actionTypes';\n\nvar arrayInsert = function arrayInsert(form, field, index, value) {\n return {\n type: ARRAY_INSERT,\n meta: {\n form: form,\n field: field,\n index: index\n },\n payload: value\n };\n};\n\nvar arrayMove = function arrayMove(form, field, from, to) {\n return {\n type: ARRAY_MOVE,\n meta: {\n form: form,\n field: field,\n from: from,\n to: to\n }\n };\n};\n\nvar arrayPop = function arrayPop(form, field) {\n return {\n type: ARRAY_POP,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar arrayPush = function arrayPush(form, field, value) {\n return {\n type: ARRAY_PUSH,\n meta: {\n form: form,\n field: field\n },\n payload: value\n };\n};\n\nvar arrayRemove = function arrayRemove(form, field, index) {\n return {\n type: ARRAY_REMOVE,\n meta: {\n form: form,\n field: field,\n index: index\n }\n };\n};\n\nvar arrayRemoveAll = function arrayRemoveAll(form, field) {\n return {\n type: ARRAY_REMOVE_ALL,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar arrayShift = function arrayShift(form, field) {\n return {\n type: ARRAY_SHIFT,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar arraySplice = function arraySplice(form, field, index, removeNum, value) {\n var action = {\n type: ARRAY_SPLICE,\n meta: {\n form: form,\n field: field,\n index: index,\n removeNum: removeNum\n }\n };\n\n if (value !== undefined) {\n action.payload = value;\n }\n\n return action;\n};\n\nvar arraySwap = function arraySwap(form, field, indexA, indexB) {\n if (indexA === indexB) {\n throw new Error('Swap indices cannot be equal');\n }\n\n if (indexA < 0 || indexB < 0) {\n throw new Error('Swap indices cannot be negative');\n }\n\n return {\n type: ARRAY_SWAP,\n meta: {\n form: form,\n field: field,\n indexA: indexA,\n indexB: indexB\n }\n };\n};\n\nvar arrayUnshift = function arrayUnshift(form, field, value) {\n return {\n type: ARRAY_UNSHIFT,\n meta: {\n form: form,\n field: field\n },\n payload: value\n };\n};\n\nvar autofill = function autofill(form, field, value) {\n return {\n type: AUTOFILL,\n meta: {\n form: form,\n field: field\n },\n payload: value\n };\n};\n\nvar blur = function blur(form, field, value, touch) {\n return {\n type: BLUR,\n meta: {\n form: form,\n field: field,\n touch: touch\n },\n payload: value\n };\n};\n\nvar change = function change(form, field, value, touch, persistentSubmitErrors) {\n return {\n type: CHANGE,\n meta: {\n form: form,\n field: field,\n touch: touch,\n persistentSubmitErrors: persistentSubmitErrors\n },\n payload: value\n };\n};\n\nvar clearSubmit = function clearSubmit(form) {\n return {\n type: CLEAR_SUBMIT,\n meta: {\n form: form\n }\n };\n};\n\nvar clearSubmitErrors = function clearSubmitErrors(form) {\n return {\n type: CLEAR_SUBMIT_ERRORS,\n meta: {\n form: form\n }\n };\n};\n\nvar clearAsyncError = function clearAsyncError(form, field) {\n return {\n type: CLEAR_ASYNC_ERROR,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar clearFields = function clearFields(form, keepTouched, persistentSubmitErrors) {\n for (var _len = arguments.length, fields = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n fields[_key - 3] = arguments[_key];\n }\n\n return {\n type: CLEAR_FIELDS,\n meta: {\n form: form,\n keepTouched: keepTouched,\n persistentSubmitErrors: persistentSubmitErrors,\n fields: fields\n }\n };\n};\n\nvar destroy = function destroy() {\n for (var _len2 = arguments.length, form = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n form[_key2] = arguments[_key2];\n }\n\n return {\n type: DESTROY,\n meta: {\n form: form\n }\n };\n};\n\nvar focus = function focus(form, field) {\n return {\n type: FOCUS,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar initialize = function initialize(form, values, keepDirty, otherMeta) {\n if (otherMeta === void 0) {\n otherMeta = {};\n }\n\n if (keepDirty instanceof Object) {\n otherMeta = keepDirty;\n keepDirty = false;\n }\n\n return {\n type: INITIALIZE,\n meta: _extends({\n form: form,\n keepDirty: keepDirty\n }, otherMeta),\n payload: values\n };\n};\n\nvar registerField = function registerField(form, name, type) {\n return {\n type: REGISTER_FIELD,\n meta: {\n form: form\n },\n payload: {\n name: name,\n type: type\n }\n };\n};\n\nvar reset = function reset(form) {\n return {\n type: RESET,\n meta: {\n form: form\n }\n };\n};\n\nvar resetSection = function resetSection(form) {\n for (var _len3 = arguments.length, sections = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n sections[_key3 - 1] = arguments[_key3];\n }\n\n return {\n type: RESET_SECTION,\n meta: {\n form: form,\n sections: sections\n }\n };\n};\n\nvar startAsyncValidation = function startAsyncValidation(form, field) {\n return {\n type: START_ASYNC_VALIDATION,\n meta: {\n form: form,\n field: field\n }\n };\n};\n\nvar startSubmit = function startSubmit(form) {\n return {\n type: START_SUBMIT,\n meta: {\n form: form\n }\n };\n};\n\nvar stopAsyncValidation = function stopAsyncValidation(form, errors) {\n return {\n type: STOP_ASYNC_VALIDATION,\n meta: {\n form: form\n },\n payload: errors,\n error: !!(errors && Object.keys(errors).length)\n };\n};\n\nvar stopSubmit = function stopSubmit(form, errors) {\n return {\n type: STOP_SUBMIT,\n meta: {\n form: form\n },\n payload: errors,\n error: !!(errors && Object.keys(errors).length)\n };\n};\n\nvar submit = function submit(form) {\n return {\n type: SUBMIT,\n meta: {\n form: form\n }\n };\n};\n\nvar setSubmitFailed = function setSubmitFailed(form) {\n for (var _len4 = arguments.length, fields = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n fields[_key4 - 1] = arguments[_key4];\n }\n\n return {\n type: SET_SUBMIT_FAILED,\n meta: {\n form: form,\n fields: fields\n },\n error: true\n };\n};\n\nvar setSubmitSucceeded = function setSubmitSucceeded(form) {\n for (var _len5 = arguments.length, fields = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n fields[_key5 - 1] = arguments[_key5];\n }\n\n return {\n type: SET_SUBMIT_SUCCEEDED,\n meta: {\n form: form,\n fields: fields\n },\n error: false\n };\n};\n\nvar touch = function touch(form) {\n for (var _len6 = arguments.length, fields = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n fields[_key6 - 1] = arguments[_key6];\n }\n\n return {\n type: TOUCH,\n meta: {\n form: form,\n fields: fields\n }\n };\n};\n\nvar unregisterField = function unregisterField(form, name, destroyOnUnmount) {\n if (destroyOnUnmount === void 0) {\n destroyOnUnmount = true;\n }\n\n return {\n type: UNREGISTER_FIELD,\n meta: {\n form: form\n },\n payload: {\n name: name,\n destroyOnUnmount: destroyOnUnmount\n }\n };\n};\n\nvar untouch = function untouch(form) {\n for (var _len7 = arguments.length, fields = new Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {\n fields[_key7 - 1] = arguments[_key7];\n }\n\n return {\n type: UNTOUCH,\n meta: {\n form: form,\n fields: fields\n }\n };\n};\n\nvar updateSyncErrors = function updateSyncErrors(form, syncErrors, error) {\n if (syncErrors === void 0) {\n syncErrors = {};\n }\n\n return {\n type: UPDATE_SYNC_ERRORS,\n meta: {\n form: form\n },\n payload: {\n syncErrors: syncErrors,\n error: error\n }\n };\n};\n\nvar updateSyncWarnings = function updateSyncWarnings(form, syncWarnings, warning) {\n if (syncWarnings === void 0) {\n syncWarnings = {};\n }\n\n return {\n type: UPDATE_SYNC_WARNINGS,\n meta: {\n form: form\n },\n payload: {\n syncWarnings: syncWarnings,\n warning: warning\n }\n };\n};\n\nvar actions = {\n arrayInsert: arrayInsert,\n arrayMove: arrayMove,\n arrayPop: arrayPop,\n arrayPush: arrayPush,\n arrayRemove: arrayRemove,\n arrayRemoveAll: arrayRemoveAll,\n arrayShift: arrayShift,\n arraySplice: arraySplice,\n arraySwap: arraySwap,\n arrayUnshift: arrayUnshift,\n autofill: autofill,\n blur: blur,\n change: change,\n clearFields: clearFields,\n clearSubmit: clearSubmit,\n clearSubmitErrors: clearSubmitErrors,\n clearAsyncError: clearAsyncError,\n destroy: destroy,\n focus: focus,\n initialize: initialize,\n registerField: registerField,\n reset: reset,\n resetSection: resetSection,\n startAsyncValidation: startAsyncValidation,\n startSubmit: startSubmit,\n stopAsyncValidation: stopAsyncValidation,\n stopSubmit: stopSubmit,\n submit: submit,\n setSubmitFailed: setSubmitFailed,\n setSubmitSucceeded: setSubmitSucceeded,\n touch: touch,\n unregisterField: unregisterField,\n untouch: untouch,\n updateSyncErrors: updateSyncErrors,\n updateSyncWarnings: updateSyncWarnings\n};\nexport default actions;","import isPromise from 'is-promise';\n\nvar asyncValidation = function asyncValidation(fn, start, stop, field) {\n start(field);\n var promise = fn();\n\n if (!isPromise(promise)) {\n throw new Error('asyncValidate function passed to reduxForm must return a promise');\n }\n\n var handleErrors = function handleErrors(rejected) {\n return function (errors) {\n if (rejected) {\n if (errors && Object.keys(errors).length) {\n stop(errors);\n return errors;\n } else {\n stop();\n throw new Error('Asynchronous validation promise was rejected without errors.');\n }\n }\n\n stop();\n return Promise.resolve();\n };\n };\n\n return promise.then(handleErrors(false), handleErrors(true));\n};\n\nexport default asyncValidation;","var defaultShouldAsyncValidate = function defaultShouldAsyncValidate(_ref) {\n var initialized = _ref.initialized,\n trigger = _ref.trigger,\n pristine = _ref.pristine,\n syncValidationPasses = _ref.syncValidationPasses;\n\n if (!syncValidationPasses) {\n return false;\n }\n\n switch (trigger) {\n case 'blur':\n case 'change':\n // blurring\n return true;\n\n case 'submit':\n // submitting, so only async validate if form is dirty or was never initialized\n // conversely, DON'T async validate if the form is pristine just as it was initialized\n return !pristine || !initialized;\n\n default:\n return false;\n }\n};\n\nexport default defaultShouldAsyncValidate;","var defaultShouldValidate = function defaultShouldValidate(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\nexport default defaultShouldValidate;","var defaultShouldError = function defaultShouldError(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\nexport default defaultShouldError;","var defaultShouldWarn = function defaultShouldWarn(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\nexport default defaultShouldWarn;","import isEvent from './isEvent';\n\nvar silenceEvent = function silenceEvent(event) {\n var is = isEvent(event);\n\n if (is) {\n event.preventDefault();\n }\n\n return is;\n};\n\nexport default silenceEvent;","import silenceEvent from './silenceEvent';\n\nvar silenceEvents = function silenceEvents(fn) {\n return function (event) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return silenceEvent(event) ? fn.apply(void 0, args) : fn.apply(void 0, [event].concat(args));\n };\n};\n\nexport default silenceEvents;","import plain from './structure/plain';\n\nvar toArray = function toArray(value) {\n return Array.isArray(value) ? value : [value];\n};\n\nvar getError = function getError(value, values, props, validators, name) {\n var array = toArray(validators);\n\n for (var i = 0; i < array.length; i++) {\n var error = array[i](value, values, props, name);\n\n if (error) {\n return error;\n }\n }\n};\n\nexport default function generateValidator(validators, _ref) {\n var getIn = _ref.getIn;\n return function (values, props) {\n var errors = {};\n Object.keys(validators).forEach(function (name) {\n var value = getIn(values, name);\n var error = getError(value, values, props, validators[name], name);\n\n if (error) {\n errors = plain.setIn(errors, name, error);\n }\n });\n return errors;\n };\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _extendableBuiltin(cls) {\n function ExtendableBuiltin() {\n cls.apply(this, arguments);\n }\n\n ExtendableBuiltin.prototype = Object.create(cls.prototype, {\n constructor: {\n value: cls,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(ExtendableBuiltin, cls);\n } else {\n ExtendableBuiltin.__proto__ = cls;\n }\n\n return ExtendableBuiltin;\n}\n\nvar ExtendableError = function (_extendableBuiltin2) {\n _inherits(ExtendableError, _extendableBuiltin2);\n\n function ExtendableError() {\n var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n _classCallCheck(this, ExtendableError);\n\n // extending Error is weird and does not propagate `message`\n var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));\n\n Object.defineProperty(_this, 'message', {\n configurable: true,\n enumerable: false,\n value: message,\n writable: true\n });\n\n Object.defineProperty(_this, 'name', {\n configurable: true,\n enumerable: false,\n value: _this.constructor.name,\n writable: true\n });\n\n if (Error.hasOwnProperty('captureStackTrace')) {\n Error.captureStackTrace(_this, _this.constructor);\n return _possibleConstructorReturn(_this);\n }\n\n Object.defineProperty(_this, 'stack', {\n configurable: true,\n enumerable: false,\n value: new Error(message).stack,\n writable: true\n });\n return _this;\n }\n\n return ExtendableError;\n}(_extendableBuiltin(Error));\n\nexport default ExtendableError;\n","import _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport ExtendableError from 'es6-error';\nvar __FLAG__ = '@@redux-form/submission-error-flag';\nexport var SubmissionError = /*#__PURE__*/function (_ExtendableError) {\n _inheritsLoose(SubmissionError, _ExtendableError);\n\n /** @private */\n function SubmissionError(errors) {\n var _this;\n\n _this = _ExtendableError.call(this, 'Submit Validation Failed') || this;\n _this.errors = errors;\n return _this;\n }\n\n return SubmissionError;\n}(ExtendableError);\nSubmissionError.__FLAG__ = __FLAG__;\nexport function isSubmissionError(error) {\n return (error && error.constructor && error.constructor.__FLAG__ === __FLAG__) === true;\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport isPromise from 'is-promise';\nimport { isSubmissionError } from './SubmissionError';\n\nvar mergeErrors = function mergeErrors(_ref) {\n var asyncErrors = _ref.asyncErrors,\n syncErrors = _ref.syncErrors;\n return asyncErrors && typeof asyncErrors.merge === 'function' ? asyncErrors.merge(syncErrors).toJS() : _extends({}, asyncErrors, {}, syncErrors);\n};\n\nvar executeSubmit = function executeSubmit(submit, fields, props) {\n var dispatch = props.dispatch,\n submitAsSideEffect = props.submitAsSideEffect,\n onSubmitFail = props.onSubmitFail,\n onSubmitSuccess = props.onSubmitSuccess,\n startSubmit = props.startSubmit,\n stopSubmit = props.stopSubmit,\n setSubmitFailed = props.setSubmitFailed,\n setSubmitSucceeded = props.setSubmitSucceeded,\n values = props.values;\n var result;\n\n try {\n result = submit(values, dispatch, props);\n } catch (submitError) {\n var error = isSubmissionError(submitError) ? submitError.errors : undefined;\n stopSubmit(error);\n setSubmitFailed.apply(void 0, fields);\n\n if (onSubmitFail) {\n onSubmitFail(error, dispatch, submitError, props);\n }\n\n if (error || onSubmitFail) {\n // if you've provided an onSubmitFail callback, don't re-throw the error\n return error;\n } else {\n throw submitError;\n }\n }\n\n if (submitAsSideEffect) {\n if (result) {\n dispatch(result);\n }\n } else {\n if (isPromise(result)) {\n startSubmit();\n return result.then(function (submitResult) {\n stopSubmit();\n setSubmitSucceeded();\n\n if (onSubmitSuccess) {\n onSubmitSuccess(submitResult, dispatch, props);\n }\n\n return submitResult;\n }, function (submitError) {\n var error = isSubmissionError(submitError) ? submitError.errors : undefined;\n stopSubmit(error);\n setSubmitFailed.apply(void 0, fields);\n\n if (onSubmitFail) {\n onSubmitFail(error, dispatch, submitError, props);\n }\n\n if (error || onSubmitFail) {\n // if you've provided an onSubmitFail callback, don't re-throw the error\n return error;\n } else {\n throw submitError;\n }\n });\n } else {\n setSubmitSucceeded();\n\n if (onSubmitSuccess) {\n onSubmitSuccess(result, dispatch, props);\n }\n }\n }\n\n return result;\n};\n\nvar handleSubmit = function handleSubmit(submit, props, valid, asyncValidate, fields) {\n var dispatch = props.dispatch,\n onSubmitFail = props.onSubmitFail,\n setSubmitFailed = props.setSubmitFailed,\n syncErrors = props.syncErrors,\n asyncErrors = props.asyncErrors,\n touch = props.touch,\n persistentSubmitErrors = props.persistentSubmitErrors;\n touch.apply(void 0, fields);\n\n if (valid || persistentSubmitErrors) {\n var asyncValidateResult = asyncValidate && asyncValidate();\n\n if (asyncValidateResult) {\n return asyncValidateResult.then(function (asyncErrors) {\n if (asyncErrors) {\n throw asyncErrors;\n }\n\n return executeSubmit(submit, fields, props);\n })[\"catch\"](function (asyncErrors) {\n setSubmitFailed.apply(void 0, fields);\n\n if (onSubmitFail) {\n onSubmitFail(asyncErrors, dispatch, null, props);\n }\n\n return Promise.reject(asyncErrors);\n });\n } else {\n return executeSubmit(submit, fields, props);\n }\n } else {\n setSubmitFailed.apply(void 0, fields);\n var errors = mergeErrors({\n asyncErrors: asyncErrors,\n syncErrors: syncErrors\n });\n\n if (onSubmitFail) {\n onSubmitFail(errors, dispatch, null, props);\n }\n\n return errors;\n }\n};\n\nexport default handleSubmit;","var getErrorKeys = function getErrorKeys(name, type) {\n switch (type) {\n case 'Field':\n return [name, name + \"._error\"];\n\n case 'FieldArray':\n return [name + \"._error\"];\n\n default:\n throw new Error('Unknown field type');\n }\n};\n\nexport default function createHasError(_ref) {\n var getIn = _ref.getIn;\n return function (field, syncErrors, asyncErrors, submitErrors) {\n if (!syncErrors && !asyncErrors && !submitErrors) {\n return false;\n }\n\n var name = getIn(field, 'name');\n var type = getIn(field, 'type');\n return getErrorKeys(name, type).some(function (key) {\n return getIn(syncErrors, key) || getIn(asyncErrors, key) || getIn(submitErrors, key);\n });\n };\n}","import createHasError from '../hasError';\nexport default function createIsValid(structure) {\n var getIn = structure.getIn,\n keys = structure.keys;\n var hasError = createHasError(structure);\n return function (form, getFormState, ignoreSubmitErrors) {\n if (ignoreSubmitErrors === void 0) {\n ignoreSubmitErrors = false;\n }\n\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n\n var formState = nonNullGetFormState(state);\n var syncError = getIn(formState, form + \".syncError\");\n\n if (syncError) {\n return false;\n }\n\n if (!ignoreSubmitErrors) {\n var error = getIn(formState, form + \".error\");\n\n if (error) {\n return false;\n }\n }\n\n var syncErrors = getIn(formState, form + \".syncErrors\");\n var asyncErrors = getIn(formState, form + \".asyncErrors\");\n var submitErrors = ignoreSubmitErrors ? undefined : getIn(formState, form + \".submitErrors\");\n\n if (!syncErrors && !asyncErrors && !submitErrors) {\n return true;\n }\n\n var registeredFields = getIn(formState, form + \".registeredFields\");\n\n if (!registeredFields) {\n return true;\n }\n\n return !keys(registeredFields).filter(function (name) {\n return getIn(registeredFields, \"['\" + name + \"'].count\") > 0;\n }).some(function (name) {\n return hasError(getIn(registeredFields, \"['\" + name + \"']\"), syncErrors, asyncErrors, submitErrors);\n });\n };\n };\n}","var getDisplayName = function getDisplayName(Comp) {\n return Comp.displayName || Comp.name || 'Component';\n};\n\nexport default getDisplayName;","import _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _merge from \"lodash/merge\";\nimport _mapValues from \"lodash/mapValues\";\nimport hoistStatics from 'hoist-non-react-statics';\nimport invariant from 'invariant';\nimport isPromise from 'is-promise';\nimport PropTypes from 'prop-types';\nimport React, { createElement } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport importedActions from './actions';\nimport asyncValidation from './asyncValidation';\nimport defaultShouldAsyncValidate from './defaultShouldAsyncValidate';\nimport defaultShouldValidate from './defaultShouldValidate';\nimport defaultShouldError from './defaultShouldError';\nimport defaultShouldWarn from './defaultShouldWarn';\nimport silenceEvent from './events/silenceEvent';\nimport silenceEvents from './events/silenceEvents';\nimport generateValidator from './generateValidator';\nimport handleSubmit from './handleSubmit';\nimport createIsValid from './selectors/isValid';\nimport plain from './structure/plain';\nimport getDisplayName from './util/getDisplayName';\nimport isHotReloading from './util/isHotReloading';\nimport { withReduxForm, ReduxFormContext } from './ReduxFormContext';\n\nvar isClassComponent = function isClassComponent(Component) {\n return Boolean(Component && Component.prototype && typeof Component.prototype.isReactComponent === 'object');\n}; // extract field-specific actions\n\n\nvar arrayInsert = importedActions.arrayInsert,\n arrayMove = importedActions.arrayMove,\n arrayPop = importedActions.arrayPop,\n arrayPush = importedActions.arrayPush,\n arrayRemove = importedActions.arrayRemove,\n arrayRemoveAll = importedActions.arrayRemoveAll,\n arrayShift = importedActions.arrayShift,\n arraySplice = importedActions.arraySplice,\n arraySwap = importedActions.arraySwap,\n arrayUnshift = importedActions.arrayUnshift,\n blur = importedActions.blur,\n change = importedActions.change,\n focus = importedActions.focus,\n formActions = _objectWithoutPropertiesLoose(importedActions, [\"arrayInsert\", \"arrayMove\", \"arrayPop\", \"arrayPush\", \"arrayRemove\", \"arrayRemoveAll\", \"arrayShift\", \"arraySplice\", \"arraySwap\", \"arrayUnshift\", \"blur\", \"change\", \"focus\"]);\n\nvar arrayActions = {\n arrayInsert: arrayInsert,\n arrayMove: arrayMove,\n arrayPop: arrayPop,\n arrayPush: arrayPush,\n arrayRemove: arrayRemove,\n arrayRemoveAll: arrayRemoveAll,\n arrayShift: arrayShift,\n arraySplice: arraySplice,\n arraySwap: arraySwap,\n arrayUnshift: arrayUnshift\n};\nvar propsToNotUpdateFor = [].concat(Object.keys(importedActions), ['array', 'asyncErrors', 'initialValues', 'syncErrors', 'syncWarnings', 'values', 'registeredFields']);\n\nvar checkSubmit = function checkSubmit(submit) {\n if (!submit || typeof submit !== 'function') {\n throw new Error('You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop');\n }\n\n return submit;\n};\n\n/**\n * The decorator that is the main API to redux-form\n */\nexport default function createReduxForm(structure) {\n var deepEqual = structure.deepEqual,\n empty = structure.empty,\n getIn = structure.getIn,\n setIn = structure.setIn,\n keys = structure.keys,\n fromJS = structure.fromJS,\n toJS = structure.toJS;\n var isValid = createIsValid(structure);\n return function (initialConfig) {\n var config = _extends({\n touchOnBlur: true,\n touchOnChange: false,\n persistentSubmitErrors: false,\n destroyOnUnmount: true,\n shouldAsyncValidate: defaultShouldAsyncValidate,\n shouldValidate: defaultShouldValidate,\n shouldError: defaultShouldError,\n shouldWarn: defaultShouldWarn,\n enableReinitialize: false,\n keepDirtyOnReinitialize: false,\n updateUnregisteredFields: false,\n getFormState: function getFormState(state) {\n return getIn(state, 'form');\n },\n pure: true,\n forceUnregisterOnUnmount: false,\n submitAsSideEffect: false\n }, initialConfig);\n\n return function (WrappedComponent) {\n var Form = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Form, _React$Component);\n\n function Form() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.wrapped = React.createRef();\n _this.destroyed = false;\n _this.fieldCounts = {};\n _this.fieldValidators = {};\n _this.lastFieldValidatorKeys = [];\n _this.fieldWarners = {};\n _this.lastFieldWarnerKeys = [];\n _this.innerOnSubmit = undefined;\n _this.submitPromise = undefined;\n _this.initializedOnLoad = false;\n\n _this.initIfNeeded = function (nextProps) {\n var enableReinitialize = _this.props.enableReinitialize;\n\n if (nextProps) {\n if ((enableReinitialize || !nextProps.initialized) && !deepEqual(_this.props.initialValues, nextProps.initialValues)) {\n var _keepDirty = nextProps.initialized && _this.props.keepDirtyOnReinitialize;\n\n _this.props.initialize(nextProps.initialValues, _keepDirty, {\n keepValues: nextProps.keepValues,\n lastInitialValues: _this.props.initialValues,\n updateUnregisteredFields: nextProps.updateUnregisteredFields\n });\n\n return true;\n }\n } else if (_this.props.initialValues && (!_this.props.initialized || enableReinitialize)) {\n _this.props.initialize(_this.props.initialValues, _this.props.keepDirtyOnReinitialize, {\n keepValues: _this.props.keepValues,\n updateUnregisteredFields: _this.props.updateUnregisteredFields\n });\n\n return true;\n }\n\n return false;\n };\n\n _this.updateSyncErrorsIfNeeded = function (nextSyncErrors, nextError, lastSyncErrors) {\n var _this$props = _this.props,\n error = _this$props.error,\n updateSyncErrors = _this$props.updateSyncErrors;\n var noErrors = (!lastSyncErrors || !Object.keys(lastSyncErrors).length) && !error;\n var nextNoErrors = (!nextSyncErrors || !Object.keys(nextSyncErrors).length) && !nextError;\n\n if (!(noErrors && nextNoErrors) && (!plain.deepEqual(lastSyncErrors, nextSyncErrors) || !plain.deepEqual(error, nextError))) {\n updateSyncErrors(nextSyncErrors, nextError);\n }\n };\n\n _this.clearSubmitPromiseIfNeeded = function (nextProps) {\n var submitting = _this.props.submitting;\n\n if (_this.submitPromise && submitting && !nextProps.submitting) {\n delete _this.submitPromise;\n }\n };\n\n _this.submitIfNeeded = function (nextProps) {\n var _this$props2 = _this.props,\n clearSubmit = _this$props2.clearSubmit,\n triggerSubmit = _this$props2.triggerSubmit;\n\n if (!triggerSubmit && nextProps.triggerSubmit) {\n clearSubmit();\n\n _this.submit();\n }\n };\n\n _this.shouldErrorFunction = function () {\n var _this$props3 = _this.props,\n shouldValidate = _this$props3.shouldValidate,\n shouldError = _this$props3.shouldError;\n var shouldValidateOverridden = shouldValidate !== defaultShouldValidate;\n var shouldErrorOverridden = shouldError !== defaultShouldError;\n return shouldValidateOverridden && !shouldErrorOverridden ? shouldValidate : shouldError;\n };\n\n _this.validateIfNeeded = function (nextProps) {\n var _this$props4 = _this.props,\n validate = _this$props4.validate,\n values = _this$props4.values;\n\n var shouldError = _this.shouldErrorFunction();\n\n var fieldLevelValidate = _this.generateValidator();\n\n if (validate || fieldLevelValidate) {\n var initialRender = nextProps === undefined;\n var fieldValidatorKeys = Object.keys(_this.getValidators());\n var validateParams = {\n values: values,\n nextProps: nextProps,\n props: _this.props,\n initialRender: initialRender,\n lastFieldValidatorKeys: _this.lastFieldValidatorKeys,\n fieldValidatorKeys: fieldValidatorKeys,\n structure: structure\n };\n\n if (shouldError(validateParams)) {\n var propsToValidate = initialRender || !nextProps ? _this.props : nextProps;\n\n var _merge2 = _merge(validate ? validate(propsToValidate.values, propsToValidate) || {} : {}, fieldLevelValidate ? fieldLevelValidate(propsToValidate.values, propsToValidate) || {} : {}),\n _error = _merge2._error,\n nextSyncErrors = _objectWithoutPropertiesLoose(_merge2, [\"_error\"]);\n\n _this.lastFieldValidatorKeys = fieldValidatorKeys;\n\n _this.updateSyncErrorsIfNeeded(nextSyncErrors, _error, propsToValidate.syncErrors);\n }\n } else {\n _this.lastFieldValidatorKeys = [];\n }\n };\n\n _this.updateSyncWarningsIfNeeded = function (nextSyncWarnings, nextWarning, lastSyncWarnings) {\n var _this$props5 = _this.props,\n warning = _this$props5.warning,\n updateSyncWarnings = _this$props5.updateSyncWarnings;\n var noWarnings = (!lastSyncWarnings || !Object.keys(lastSyncWarnings).length) && !warning;\n var nextNoWarnings = (!nextSyncWarnings || !Object.keys(nextSyncWarnings).length) && !nextWarning;\n\n if (!(noWarnings && nextNoWarnings) && (!plain.deepEqual(lastSyncWarnings, nextSyncWarnings) || !plain.deepEqual(warning, nextWarning))) {\n updateSyncWarnings(nextSyncWarnings, nextWarning);\n }\n };\n\n _this.shouldWarnFunction = function () {\n var _this$props6 = _this.props,\n shouldValidate = _this$props6.shouldValidate,\n shouldWarn = _this$props6.shouldWarn;\n var shouldValidateOverridden = shouldValidate !== defaultShouldValidate;\n var shouldWarnOverridden = shouldWarn !== defaultShouldWarn;\n return shouldValidateOverridden && !shouldWarnOverridden ? shouldValidate : shouldWarn;\n };\n\n _this.warnIfNeeded = function (nextProps) {\n var _this$props7 = _this.props,\n warn = _this$props7.warn,\n values = _this$props7.values;\n\n var shouldWarn = _this.shouldWarnFunction();\n\n var fieldLevelWarn = _this.generateWarner();\n\n if (warn || fieldLevelWarn) {\n var initialRender = nextProps === undefined;\n var fieldWarnerKeys = Object.keys(_this.getWarners());\n var validateParams = {\n values: values,\n nextProps: nextProps,\n props: _this.props,\n initialRender: initialRender,\n lastFieldValidatorKeys: _this.lastFieldWarnerKeys,\n fieldValidatorKeys: fieldWarnerKeys,\n structure: structure\n };\n\n if (shouldWarn(validateParams)) {\n var propsToWarn = initialRender || !nextProps ? _this.props : nextProps;\n\n var _merge3 = _merge(warn ? warn(propsToWarn.values, propsToWarn) : {}, fieldLevelWarn ? fieldLevelWarn(propsToWarn.values, propsToWarn) : {}),\n _warning = _merge3._warning,\n nextSyncWarnings = _objectWithoutPropertiesLoose(_merge3, [\"_warning\"]);\n\n _this.lastFieldWarnerKeys = fieldWarnerKeys;\n\n _this.updateSyncWarningsIfNeeded(nextSyncWarnings, _warning, propsToWarn.syncWarnings);\n }\n }\n };\n\n _this.getValues = function () {\n return _this.props.values;\n };\n\n _this.isValid = function () {\n return _this.props.valid;\n };\n\n _this.isPristine = function () {\n return _this.props.pristine;\n };\n\n _this.register = function (name, type, getValidator, getWarner) {\n var lastCount = _this.fieldCounts[name];\n var nextCount = (lastCount || 0) + 1;\n _this.fieldCounts[name] = nextCount;\n\n _this.props.registerField(name, type);\n\n if (getValidator) {\n _this.fieldValidators[name] = getValidator;\n }\n\n if (getWarner) {\n _this.fieldWarners[name] = getWarner;\n }\n };\n\n _this.unregister = function (name) {\n var lastCount = _this.fieldCounts[name];\n if (lastCount === 1) delete _this.fieldCounts[name];else if (lastCount != null) _this.fieldCounts[name] = lastCount - 1;\n\n if (!_this.destroyed) {\n var _this$props8 = _this.props,\n _destroyOnUnmount = _this$props8.destroyOnUnmount,\n forceUnregisterOnUnmount = _this$props8.forceUnregisterOnUnmount,\n unregisterField = _this$props8.unregisterField;\n\n if (_destroyOnUnmount || forceUnregisterOnUnmount) {\n unregisterField(name, _destroyOnUnmount);\n\n if (!_this.fieldCounts[name]) {\n delete _this.fieldValidators[name];\n delete _this.fieldWarners[name];\n _this.lastFieldValidatorKeys = _this.lastFieldValidatorKeys.filter(function (key) {\n return key !== name;\n });\n }\n } else {\n unregisterField(name, false);\n }\n }\n };\n\n _this.getFieldList = function (options) {\n var registeredFields = _this.props.registeredFields;\n\n if (!registeredFields) {\n return [];\n }\n\n var keySeq = keys(registeredFields);\n\n if (options) {\n if (options.excludeFieldArray) {\n keySeq = keySeq.filter(function (name) {\n return getIn(registeredFields, \"['\" + name + \"'].type\") !== 'FieldArray';\n });\n }\n\n if (options.excludeUnregistered) {\n keySeq = keySeq.filter(function (name) {\n return getIn(registeredFields, \"['\" + name + \"'].count\") !== 0;\n });\n }\n }\n\n return toJS(keySeq);\n };\n\n _this.getValidators = function () {\n var validators = {};\n Object.keys(_this.fieldValidators).forEach(function (name) {\n var validator = _this.fieldValidators[name]();\n\n if (validator) {\n validators[name] = validator;\n }\n });\n return validators;\n };\n\n _this.generateValidator = function () {\n var validators = _this.getValidators();\n\n return Object.keys(validators).length ? generateValidator(validators, structure) : undefined;\n };\n\n _this.getWarners = function () {\n var warners = {};\n Object.keys(_this.fieldWarners).forEach(function (name) {\n var warner = _this.fieldWarners[name]();\n\n if (warner) {\n warners[name] = warner;\n }\n });\n return warners;\n };\n\n _this.generateWarner = function () {\n var warners = _this.getWarners();\n\n return Object.keys(warners).length ? generateValidator(warners, structure) : undefined;\n };\n\n _this.asyncValidate = function (name, value, trigger) {\n var _this$props9 = _this.props,\n asyncBlurFields = _this$props9.asyncBlurFields,\n asyncChangeFields = _this$props9.asyncChangeFields,\n asyncErrors = _this$props9.asyncErrors,\n asyncValidate = _this$props9.asyncValidate,\n dispatch = _this$props9.dispatch,\n initialized = _this$props9.initialized,\n pristine = _this$props9.pristine,\n shouldAsyncValidate = _this$props9.shouldAsyncValidate,\n startAsyncValidation = _this$props9.startAsyncValidation,\n stopAsyncValidation = _this$props9.stopAsyncValidation,\n syncErrors = _this$props9.syncErrors,\n values = _this$props9.values;\n var submitting = !name;\n\n var fieldNeedsValidation = function fieldNeedsValidation() {\n var fieldNeedsValidationForBlur = asyncBlurFields && name && ~asyncBlurFields.indexOf(name.replace(/\\[[0-9]+]/g, '[]'));\n var fieldNeedsValidationForChange = asyncChangeFields && name && ~asyncChangeFields.indexOf(name.replace(/\\[[0-9]+]/g, '[]'));\n var asyncValidateByDefault = !(asyncBlurFields || asyncChangeFields);\n return submitting || asyncValidateByDefault || (trigger === 'blur' ? fieldNeedsValidationForBlur : fieldNeedsValidationForChange);\n };\n\n if (asyncValidate) {\n var valuesToValidate = submitting ? values : setIn(values, name, value);\n var syncValidationPasses = submitting || !getIn(syncErrors, name);\n\n if (fieldNeedsValidation() && shouldAsyncValidate({\n asyncErrors: asyncErrors,\n initialized: initialized,\n trigger: submitting ? 'submit' : trigger,\n blurredField: name,\n pristine: pristine,\n syncValidationPasses: syncValidationPasses\n })) {\n return asyncValidation(function () {\n return asyncValidate(valuesToValidate, dispatch, _this.props, name);\n }, startAsyncValidation, stopAsyncValidation, name);\n }\n }\n };\n\n _this.submitCompleted = function (result) {\n delete _this.submitPromise;\n return result;\n };\n\n _this.submitFailed = function (error) {\n delete _this.submitPromise;\n throw error;\n };\n\n _this.listenToSubmit = function (promise) {\n if (!isPromise(promise)) {\n return promise;\n }\n\n _this.submitPromise = promise;\n return promise.then(_this.submitCompleted, _this.submitFailed);\n };\n\n _this.submit = function (submitOrEvent) {\n var _this$props10 = _this.props,\n onSubmit = _this$props10.onSubmit,\n blur = _this$props10.blur,\n change = _this$props10.change,\n dispatch = _this$props10.dispatch;\n\n if (!submitOrEvent || silenceEvent(submitOrEvent)) {\n // submitOrEvent is an event: fire submit if not already submitting\n if (!_this.submitPromise) {\n // avoid recursive stack trace if use Form with onSubmit as handleSubmit\n if (_this.innerOnSubmit && _this.innerOnSubmit !== _this.submit) {\n // will call \"submitOrEvent is the submit function\" block below\n return _this.innerOnSubmit();\n } else {\n return _this.listenToSubmit(handleSubmit(checkSubmit(onSubmit), _extends({}, _this.props, {}, bindActionCreators({\n blur: blur,\n change: change\n }, dispatch)), // TODO: fix type, should be `Props`\n _this.props.validExceptSubmit, _this.asyncValidate, _this.getFieldList({\n excludeFieldArray: true,\n excludeUnregistered: true\n })));\n }\n }\n } else {\n // submitOrEvent is the submit function: return deferred submit thunk\n return silenceEvents(function () {\n return !_this.submitPromise && _this.listenToSubmit(handleSubmit(checkSubmit(submitOrEvent), _extends({}, _this.props, {}, bindActionCreators({\n blur: blur,\n change: change\n }, dispatch)), // TODO: fix type, should be `Props`\n _this.props.validExceptSubmit, _this.asyncValidate, _this.getFieldList({\n excludeFieldArray: true,\n excludeUnregistered: true\n })));\n });\n }\n };\n\n _this.reset = function () {\n return _this.props.reset();\n };\n\n if (!isHotReloading()) {\n _this.initializedOnLoad = _this.initIfNeeded();\n }\n\n invariant(_this.props.shouldValidate, 'shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.');\n return _this;\n }\n\n var _proto = Form.prototype;\n\n _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {\n var isValueReset = this.initIfNeeded(nextProps); // initialize will dispatch a redux action and call componentWillReceiveProps again; hence we can skip reinitialize if needed.\n\n if (isValueReset) return;\n this.validateIfNeeded(nextProps);\n this.warnIfNeeded(nextProps);\n this.clearSubmitPromiseIfNeeded(nextProps);\n this.submitIfNeeded(nextProps);\n var onChange = nextProps.onChange,\n values = nextProps.values,\n dispatch = nextProps.dispatch;\n\n if (onChange && !deepEqual(values, this.props.values)) {\n onChange(values, dispatch, nextProps, this.props.values);\n }\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n if (!this.props.pure) return true;\n var _config$immutableProp = config.immutableProps,\n immutableProps = _config$immutableProp === void 0 ? [] : _config$immutableProp; // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n\n return !!(this.props.children || nextProps.children || Object.keys(nextProps).some(function (prop) {\n // useful to debug rerenders\n // if (!plain.deepEqual(this.props[ prop ], nextProps[ prop ])) {\n // console.info(prop, 'changed', this.props[ prop ], '==>', nextProps[ prop ])\n // }\n if (~immutableProps.indexOf(prop)) {\n return _this2.props[prop] !== nextProps[prop];\n }\n\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]);\n }));\n };\n\n _proto.componentDidMount = function componentDidMount() {\n if (!isHotReloading()) {\n // initialize in constructor function will dispatch a redux action and call componentWillReceiveProps which checks for validate;\n // hence we can skip validate and warning if initialize has been triggered in constructor\n if (this.initializedOnLoad) return;\n this.validateIfNeeded();\n this.warnIfNeeded();\n }\n\n invariant(this.props.shouldValidate, 'shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.');\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var _this$props11 = this.props,\n destroyOnUnmount = _this$props11.destroyOnUnmount,\n destroy = _this$props11.destroy;\n\n if (destroyOnUnmount && !isHotReloading()) {\n this.destroyed = true;\n destroy();\n }\n };\n\n _proto.render = function render() {\n var _ref,\n _this3 = this;\n\n // remove some redux-form config-only props\n\n /* eslint-disable no-unused-vars */\n var _this$props12 = this.props,\n anyTouched = _this$props12.anyTouched,\n array = _this$props12.array,\n arrayInsert = _this$props12.arrayInsert,\n arrayMove = _this$props12.arrayMove,\n arrayPop = _this$props12.arrayPop,\n arrayPush = _this$props12.arrayPush,\n arrayRemove = _this$props12.arrayRemove,\n arrayRemoveAll = _this$props12.arrayRemoveAll,\n arrayShift = _this$props12.arrayShift,\n arraySplice = _this$props12.arraySplice,\n arraySwap = _this$props12.arraySwap,\n arrayUnshift = _this$props12.arrayUnshift,\n asyncErrors = _this$props12.asyncErrors,\n asyncValidate = _this$props12.asyncValidate,\n asyncValidating = _this$props12.asyncValidating,\n blur = _this$props12.blur,\n change = _this$props12.change,\n clearSubmit = _this$props12.clearSubmit,\n destroy = _this$props12.destroy,\n destroyOnUnmount = _this$props12.destroyOnUnmount,\n forceUnregisterOnUnmount = _this$props12.forceUnregisterOnUnmount,\n dirty = _this$props12.dirty,\n dispatch = _this$props12.dispatch,\n enableReinitialize = _this$props12.enableReinitialize,\n error = _this$props12.error,\n focus = _this$props12.focus,\n form = _this$props12.form,\n getFormState = _this$props12.getFormState,\n immutableProps = _this$props12.immutableProps,\n initialize = _this$props12.initialize,\n initialized = _this$props12.initialized,\n initialValues = _this$props12.initialValues,\n invalid = _this$props12.invalid,\n keepDirtyOnReinitialize = _this$props12.keepDirtyOnReinitialize,\n keepValues = _this$props12.keepValues,\n updateUnregisteredFields = _this$props12.updateUnregisteredFields,\n pristine = _this$props12.pristine,\n propNamespace = _this$props12.propNamespace,\n registeredFields = _this$props12.registeredFields,\n registerField = _this$props12.registerField,\n reset = _this$props12.reset,\n resetSection = _this$props12.resetSection,\n setSubmitFailed = _this$props12.setSubmitFailed,\n setSubmitSucceeded = _this$props12.setSubmitSucceeded,\n shouldAsyncValidate = _this$props12.shouldAsyncValidate,\n shouldValidate = _this$props12.shouldValidate,\n shouldError = _this$props12.shouldError,\n shouldWarn = _this$props12.shouldWarn,\n startAsyncValidation = _this$props12.startAsyncValidation,\n startSubmit = _this$props12.startSubmit,\n stopAsyncValidation = _this$props12.stopAsyncValidation,\n stopSubmit = _this$props12.stopSubmit,\n submitAsSideEffect = _this$props12.submitAsSideEffect,\n submitting = _this$props12.submitting,\n submitFailed = _this$props12.submitFailed,\n submitSucceeded = _this$props12.submitSucceeded,\n touch = _this$props12.touch,\n touchOnBlur = _this$props12.touchOnBlur,\n touchOnChange = _this$props12.touchOnChange,\n persistentSubmitErrors = _this$props12.persistentSubmitErrors,\n syncErrors = _this$props12.syncErrors,\n syncWarnings = _this$props12.syncWarnings,\n unregisterField = _this$props12.unregisterField,\n untouch = _this$props12.untouch,\n updateSyncErrors = _this$props12.updateSyncErrors,\n updateSyncWarnings = _this$props12.updateSyncWarnings,\n valid = _this$props12.valid,\n validExceptSubmit = _this$props12.validExceptSubmit,\n values = _this$props12.values,\n warning = _this$props12.warning,\n rest = _objectWithoutPropertiesLoose(_this$props12, [\"anyTouched\", \"array\", \"arrayInsert\", \"arrayMove\", \"arrayPop\", \"arrayPush\", \"arrayRemove\", \"arrayRemoveAll\", \"arrayShift\", \"arraySplice\", \"arraySwap\", \"arrayUnshift\", \"asyncErrors\", \"asyncValidate\", \"asyncValidating\", \"blur\", \"change\", \"clearSubmit\", \"destroy\", \"destroyOnUnmount\", \"forceUnregisterOnUnmount\", \"dirty\", \"dispatch\", \"enableReinitialize\", \"error\", \"focus\", \"form\", \"getFormState\", \"immutableProps\", \"initialize\", \"initialized\", \"initialValues\", \"invalid\", \"keepDirtyOnReinitialize\", \"keepValues\", \"updateUnregisteredFields\", \"pristine\", \"propNamespace\", \"registeredFields\", \"registerField\", \"reset\", \"resetSection\", \"setSubmitFailed\", \"setSubmitSucceeded\", \"shouldAsyncValidate\", \"shouldValidate\", \"shouldError\", \"shouldWarn\", \"startAsyncValidation\", \"startSubmit\", \"stopAsyncValidation\", \"stopSubmit\", \"submitAsSideEffect\", \"submitting\", \"submitFailed\", \"submitSucceeded\", \"touch\", \"touchOnBlur\", \"touchOnChange\", \"persistentSubmitErrors\", \"syncErrors\", \"syncWarnings\", \"unregisterField\", \"untouch\", \"updateSyncErrors\", \"updateSyncWarnings\", \"valid\", \"validExceptSubmit\", \"values\", \"warning\"]);\n /* eslint-enable no-unused-vars */\n\n\n var reduxFormProps = _extends({\n array: array,\n anyTouched: anyTouched,\n asyncValidate: this.asyncValidate,\n asyncValidating: asyncValidating\n }, bindActionCreators({\n blur: blur,\n change: change\n }, dispatch), {\n clearSubmit: clearSubmit,\n destroy: destroy,\n dirty: dirty,\n dispatch: dispatch,\n error: error,\n form: form,\n handleSubmit: this.submit,\n initialize: initialize,\n initialized: initialized,\n initialValues: initialValues,\n invalid: invalid,\n pristine: pristine,\n reset: reset,\n resetSection: resetSection,\n submitting: submitting,\n submitAsSideEffect: submitAsSideEffect,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n touch: touch,\n untouch: untouch,\n valid: valid,\n warning: warning\n });\n\n var propsToPass = _extends({}, propNamespace ? (_ref = {}, _ref[propNamespace] = reduxFormProps, _ref) : reduxFormProps, {}, rest);\n\n if (isClassComponent(WrappedComponent)) {\n ;\n propsToPass.ref = this.wrapped;\n }\n\n var _reduxForm = _extends({}, this.props, {\n getFormState: function getFormState(state) {\n return getIn(_this3.props.getFormState(state), _this3.props.form);\n },\n asyncValidate: this.asyncValidate,\n getValues: this.getValues,\n sectionPrefix: undefined,\n register: this.register,\n unregister: this.unregister,\n registerInnerOnSubmit: function registerInnerOnSubmit(innerOnSubmit) {\n return _this3.innerOnSubmit = innerOnSubmit;\n }\n });\n\n return createElement(ReduxFormContext.Provider, {\n value: _reduxForm,\n children: createElement(WrappedComponent, propsToPass)\n });\n };\n\n return Form;\n }(React.Component);\n\n Form.displayName = \"Form(\" + getDisplayName(WrappedComponent) + \")\";\n Form.WrappedComponent = WrappedComponent;\n Form.propTypes = {\n destroyOnUnmount: PropTypes.bool,\n forceUnregisterOnUnmount: PropTypes.bool,\n form: PropTypes.string.isRequired,\n immutableProps: PropTypes.arrayOf(PropTypes.string),\n initialValues: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),\n getFormState: PropTypes.func,\n onSubmitFail: PropTypes.func,\n onSubmitSuccess: PropTypes.func,\n propNamespace: PropTypes.string,\n validate: PropTypes.func,\n warn: PropTypes.func,\n touchOnBlur: PropTypes.bool,\n touchOnChange: PropTypes.bool,\n triggerSubmit: PropTypes.bool,\n persistentSubmitErrors: PropTypes.bool,\n registeredFields: PropTypes.any\n };\n var connector = connect(function (state, props) {\n var form = props.form,\n getFormState = props.getFormState,\n initialValues = props.initialValues,\n enableReinitialize = props.enableReinitialize,\n keepDirtyOnReinitialize = props.keepDirtyOnReinitialize;\n var formState = getIn(getFormState(state) || empty, form) || empty;\n var stateInitial = getIn(formState, 'initial');\n var initialized = !!stateInitial;\n var shouldUpdateInitialValues = enableReinitialize && initialized && !deepEqual(initialValues, stateInitial);\n var shouldResetValues = shouldUpdateInitialValues && !keepDirtyOnReinitialize;\n var initial = initialValues || stateInitial || empty;\n\n if (!shouldUpdateInitialValues) {\n initial = stateInitial || empty;\n }\n\n var values = getIn(formState, 'values') || initial;\n\n if (shouldResetValues) {\n values = initial;\n }\n\n var pristine = shouldResetValues || deepEqual(initial, values);\n var asyncErrors = getIn(formState, 'asyncErrors');\n var syncErrors = getIn(formState, 'syncErrors') || plain.empty;\n var syncWarnings = getIn(formState, 'syncWarnings') || plain.empty;\n var registeredFields = getIn(formState, 'registeredFields');\n var valid = isValid(form, getFormState, false)(state);\n var validExceptSubmit = isValid(form, getFormState, true)(state);\n var anyTouched = !!getIn(formState, 'anyTouched');\n var submitting = !!getIn(formState, 'submitting');\n var submitFailed = !!getIn(formState, 'submitFailed');\n var submitSucceeded = !!getIn(formState, 'submitSucceeded');\n var error = getIn(formState, 'error');\n var warning = getIn(formState, 'warning');\n var triggerSubmit = getIn(formState, 'triggerSubmit');\n return {\n anyTouched: anyTouched,\n asyncErrors: asyncErrors,\n asyncValidating: getIn(formState, 'asyncValidating') || false,\n dirty: !pristine,\n error: error,\n initialized: initialized,\n invalid: !valid,\n pristine: pristine,\n registeredFields: registeredFields,\n submitting: submitting,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n syncErrors: syncErrors,\n syncWarnings: syncWarnings,\n triggerSubmit: triggerSubmit,\n values: values,\n valid: valid,\n validExceptSubmit: validExceptSubmit,\n warning: warning\n };\n }, function (dispatch, initialProps) {\n var bindForm = function bindForm(actionCreator) {\n return actionCreator.bind(null, initialProps.form);\n }; // Bind the first parameter on `props.form`\n\n\n var boundFormACs = _mapValues(formActions, bindForm);\n\n var boundArrayACs = _mapValues(arrayActions, bindForm);\n\n var boundBlur = function boundBlur(field, value) {\n return blur(initialProps.form, field, value, !!initialProps.touchOnBlur);\n };\n\n var boundChange = function boundChange(field, value) {\n return change(initialProps.form, field, value, !!initialProps.touchOnChange, !!initialProps.persistentSubmitErrors);\n };\n\n var boundFocus = bindForm(focus); // Wrap action creators with `dispatch`\n\n var connectedFormACs = bindActionCreators(boundFormACs, dispatch);\n var connectedArrayACs = {\n insert: bindActionCreators(boundArrayACs.arrayInsert, dispatch),\n move: bindActionCreators(boundArrayACs.arrayMove, dispatch),\n pop: bindActionCreators(boundArrayACs.arrayPop, dispatch),\n push: bindActionCreators(boundArrayACs.arrayPush, dispatch),\n remove: bindActionCreators(boundArrayACs.arrayRemove, dispatch),\n removeAll: bindActionCreators(boundArrayACs.arrayRemoveAll, dispatch),\n shift: bindActionCreators(boundArrayACs.arrayShift, dispatch),\n splice: bindActionCreators(boundArrayACs.arraySplice, dispatch),\n swap: bindActionCreators(boundArrayACs.arraySwap, dispatch),\n unshift: bindActionCreators(boundArrayACs.arrayUnshift, dispatch)\n };\n return _extends({}, connectedFormACs, {}, boundArrayACs, {\n blur: boundBlur,\n change: boundChange,\n array: connectedArrayACs,\n focus: boundFocus,\n dispatch: dispatch\n });\n }, undefined, {\n forwardRef: true\n });\n var ConnectedForm = hoistStatics(connector(Form), WrappedComponent);\n ConnectedForm.defaultProps = config; // build outer component to expose instance api\n\n var ReduxForm = /*#__PURE__*/function (_React$Component2) {\n _inheritsLoose(ReduxForm, _React$Component2);\n\n function ReduxForm() {\n var _this4;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this4 = _React$Component2.call.apply(_React$Component2, [this].concat(args)) || this;\n _this4.ref = React.createRef();\n return _this4;\n }\n\n var _proto2 = ReduxForm.prototype;\n\n _proto2.submit = function submit() {\n return this.ref.current && this.ref.current.submit();\n };\n\n _proto2.reset = function reset() {\n if (this.ref) {\n this.ref.current.reset();\n }\n };\n\n _proto2.render = function render() {\n var _this$props13 = this.props,\n initialValues = _this$props13.initialValues,\n rest = _objectWithoutPropertiesLoose(_this$props13, [\"initialValues\"]);\n\n return createElement(ConnectedForm, _extends({}, rest, {\n ref: this.ref,\n // convert initialValues if need to\n initialValues: fromJS(initialValues)\n }));\n };\n\n _createClass(ReduxForm, [{\n key: \"valid\",\n get: function get() {\n return !!(this.ref.current && this.ref.current.isValid());\n }\n }, {\n key: \"invalid\",\n get: function get() {\n return !this.valid;\n }\n }, {\n key: \"pristine\",\n get: function get() {\n return !!(this.ref.current && this.ref.current.isPristine());\n }\n }, {\n key: \"dirty\",\n get: function get() {\n return !this.pristine;\n }\n }, {\n key: \"values\",\n get: function get() {\n return this.ref.current ? this.ref.current.getValues() : empty;\n }\n }, {\n key: \"fieldList\",\n get: function get() {\n // mainly provided for testing\n return this.ref.current ? this.ref.current.getFieldList() : [];\n }\n }, {\n key: \"wrappedInstance\",\n get: function get() {\n // for testing\n return this.ref.current && this.ref.current.wrapped.current;\n }\n }]);\n\n return ReduxForm;\n }(React.Component);\n\n var WithContext = hoistStatics(withReduxForm(ReduxForm), WrappedComponent);\n WithContext.defaultProps = config;\n return WithContext;\n };\n };\n}","import createReduxForm from './createReduxForm';\nimport plain from './structure/plain';\nexport default createReduxForm(plain);","var isHotReloading = function isHotReloading() {\n var castModule = typeof module !== 'undefined' && module;\n return !!(castModule && castModule.hot && typeof castModule.hot.status === 'function' && castModule.hot.status() === 'apply');\n};\n\nexport default isHotReloading;","function deferred() {\n var def = {};\n def.promise = new Promise(function (resolve, reject) {\n def.resolve = resolve;\n def.reject = reject;\n });\n return def;\n}\nfunction arrayOfDeferred(length) {\n var arr = [];\n\n for (var i = 0; i < length; i++) {\n arr.push(deferred());\n }\n\n return arr;\n}\n\nexport default deferred;\nexport { arrayOfDeferred };\n","import { CHANNEL_END_TYPE, MULTICAST, MATCH, SAGA_ACTION, CANCEL, SELF_CANCELLATION, TERMINATE, TASK, TASK_CANCEL, IO } from '@redux-saga/symbols';\nexport { CANCEL, SAGA_LOCATION } from '@redux-saga/symbols';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport { string as string$1, array as array$1, stringableFunc, func, symbol as symbol$1, buffer, notUndef, promise, iterator, undef, object, channel as channel$1 } from '@redux-saga/is';\nimport { k as kTrue, e as expanding, c as check, o as once, r as remove, n as none, i as internalErr, T as TAKE, P as PUT, A as ALL, R as RACE, C as CALL, a as CPS, F as FORK, J as JOIN, b as CANCEL$1, S as SELECT, d as ACTION_CHANNEL, f as CANCELLED$1, g as FLUSH, G as GET_CONTEXT, h as SET_CONTEXT, j as getMetaInfo, l as createAllStyleChildCallbacks, m as createEmptyArray, p as assignWithSymbols, q as makeIterator, s as shouldComplete, t as noop, u as flatMap, v as getLocation, w as createSetContextWarning, x as asyncIteratorSymbol, y as shouldCancel, z as shouldTerminate, B as logError, D as wrapSagaDispatch, E as identity } from './io-c3792963.js';\nexport { H as buffers, I as detach } from './io-c3792963.js';\nimport { compose } from 'redux';\nimport deferred from '@redux-saga/deferred';\nimport '@redux-saga/delay-p';\n\nvar queue = [];\n/**\n Variable to hold a counting semaphore\n - Incrementing adds a lock and puts the scheduler in a `suspended` state (if it's not\n already suspended)\n - Decrementing releases a lock. Zero locks puts the scheduler in a `released` state. This\n triggers flushing the queued tasks.\n**/\n\nvar semaphore = 0;\n/**\n Executes a task 'atomically'. Tasks scheduled during this execution will be queued\n and flushed after this task has finished (assuming the scheduler endup in a released\n state).\n**/\n\nfunction exec(task) {\n try {\n suspend();\n task();\n } finally {\n release();\n }\n}\n/**\n Executes or queues a task depending on the state of the scheduler (`suspended` or `released`)\n**/\n\n\nfunction asap(task) {\n queue.push(task);\n\n if (!semaphore) {\n suspend();\n flush();\n }\n}\n/**\n * Puts the scheduler in a `suspended` state and executes a task immediately.\n */\n\nfunction immediately(task) {\n try {\n suspend();\n return task();\n } finally {\n flush();\n }\n}\n/**\n Puts the scheduler in a `suspended` state. Scheduled tasks will be queued until the\n scheduler is released.\n**/\n\nfunction suspend() {\n semaphore++;\n}\n/**\n Puts the scheduler in a `released` state.\n**/\n\n\nfunction release() {\n semaphore--;\n}\n/**\n Releases the current lock. Executes all queued tasks if the scheduler is in the released state.\n**/\n\n\nfunction flush() {\n release();\n var task;\n\n while (!semaphore && (task = queue.shift()) !== undefined) {\n exec(task);\n }\n}\n\nvar array = function array(patterns) {\n return function (input) {\n return patterns.some(function (p) {\n return matcher(p)(input);\n });\n };\n};\nvar predicate = function predicate(_predicate) {\n return function (input) {\n return _predicate(input);\n };\n};\nvar string = function string(pattern) {\n return function (input) {\n return input.type === String(pattern);\n };\n};\nvar symbol = function symbol(pattern) {\n return function (input) {\n return input.type === pattern;\n };\n};\nvar wildcard = function wildcard() {\n return kTrue;\n};\nfunction matcher(pattern) {\n // prettier-ignore\n var matcherCreator = pattern === '*' ? wildcard : string$1(pattern) ? string : array$1(pattern) ? array : stringableFunc(pattern) ? string : func(pattern) ? predicate : symbol$1(pattern) ? symbol : null;\n\n if (matcherCreator === null) {\n throw new Error(\"invalid pattern: \" + pattern);\n }\n\n return matcherCreator(pattern);\n}\n\nvar END = {\n type: CHANNEL_END_TYPE\n};\nvar isEnd = function isEnd(a) {\n return a && a.type === CHANNEL_END_TYPE;\n};\nvar CLOSED_CHANNEL_WITH_TAKERS = 'Cannot have a closed channel with pending takers';\nvar INVALID_BUFFER = 'invalid buffer passed to channel factory function';\nvar UNDEFINED_INPUT_ERROR = \"Saga or channel was provided with an undefined action\\nHints:\\n - check that your Action Creator returns a non-undefined value\\n - if the Saga was started using runSaga, check that your subscribe source provides the action to its listeners\";\nfunction channel(buffer$1) {\n if (buffer$1 === void 0) {\n buffer$1 = expanding();\n }\n\n var closed = false;\n var takers = [];\n\n if (process.env.NODE_ENV !== 'production') {\n check(buffer$1, buffer, INVALID_BUFFER);\n }\n\n function checkForbiddenStates() {\n if (closed && takers.length) {\n throw internalErr(CLOSED_CHANNEL_WITH_TAKERS);\n }\n\n if (takers.length && !buffer$1.isEmpty()) {\n throw internalErr('Cannot have pending takers with non empty buffer');\n }\n }\n\n function put(input) {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n check(input, notUndef, UNDEFINED_INPUT_ERROR);\n }\n\n if (closed) {\n return;\n }\n\n if (takers.length === 0) {\n return buffer$1.put(input);\n }\n\n var cb = takers.shift();\n cb(input);\n }\n\n function take(cb) {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n check(cb, func, \"channel.take's callback must be a function\");\n }\n\n if (closed && buffer$1.isEmpty()) {\n cb(END);\n } else if (!buffer$1.isEmpty()) {\n cb(buffer$1.take());\n } else {\n takers.push(cb);\n\n cb.cancel = function () {\n remove(takers, cb);\n };\n }\n }\n\n function flush(cb) {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n check(cb, func, \"channel.flush' callback must be a function\");\n }\n\n if (closed && buffer$1.isEmpty()) {\n cb(END);\n return;\n }\n\n cb(buffer$1.flush());\n }\n\n function close() {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n }\n\n if (closed) {\n return;\n }\n\n closed = true;\n var arr = takers;\n takers = [];\n\n for (var i = 0, len = arr.length; i < len; i++) {\n var taker = arr[i];\n taker(END);\n }\n }\n\n return {\n take: take,\n put: put,\n flush: flush,\n close: close\n };\n}\nfunction eventChannel(subscribe, buffer) {\n if (buffer === void 0) {\n buffer = none();\n }\n\n var closed = false;\n var unsubscribe;\n var chan = channel(buffer);\n\n var close = function close() {\n if (closed) {\n return;\n }\n\n closed = true;\n\n if (func(unsubscribe)) {\n unsubscribe();\n }\n\n chan.close();\n };\n\n unsubscribe = subscribe(function (input) {\n if (isEnd(input)) {\n close();\n return;\n }\n\n chan.put(input);\n });\n\n if (process.env.NODE_ENV !== 'production') {\n check(unsubscribe, func, 'in eventChannel: subscribe should return a function to unsubscribe');\n }\n\n unsubscribe = once(unsubscribe);\n\n if (closed) {\n unsubscribe();\n }\n\n return {\n take: chan.take,\n flush: chan.flush,\n close: close\n };\n}\nfunction multicastChannel() {\n var _ref;\n\n var closed = false;\n var currentTakers = [];\n var nextTakers = currentTakers;\n\n function checkForbiddenStates() {\n if (closed && nextTakers.length) {\n throw internalErr(CLOSED_CHANNEL_WITH_TAKERS);\n }\n }\n\n var ensureCanMutateNextTakers = function ensureCanMutateNextTakers() {\n if (nextTakers !== currentTakers) {\n return;\n }\n\n nextTakers = currentTakers.slice();\n };\n\n var close = function close() {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n }\n\n closed = true;\n var takers = currentTakers = nextTakers;\n nextTakers = [];\n takers.forEach(function (taker) {\n taker(END);\n });\n };\n\n return _ref = {}, _ref[MULTICAST] = true, _ref.put = function put(input) {\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n check(input, notUndef, UNDEFINED_INPUT_ERROR);\n }\n\n if (closed) {\n return;\n }\n\n if (isEnd(input)) {\n close();\n return;\n }\n\n var takers = currentTakers = nextTakers;\n\n for (var i = 0, len = takers.length; i < len; i++) {\n var taker = takers[i];\n\n if (taker[MATCH](input)) {\n taker.cancel();\n taker(input);\n }\n }\n }, _ref.take = function take(cb, matcher) {\n if (matcher === void 0) {\n matcher = wildcard;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n checkForbiddenStates();\n }\n\n if (closed) {\n cb(END);\n return;\n }\n\n cb[MATCH] = matcher;\n ensureCanMutateNextTakers();\n nextTakers.push(cb);\n cb.cancel = once(function () {\n ensureCanMutateNextTakers();\n remove(nextTakers, cb);\n });\n }, _ref.close = close, _ref;\n}\nfunction stdChannel() {\n var chan = multicastChannel();\n var put = chan.put;\n\n chan.put = function (input) {\n if (input[SAGA_ACTION]) {\n put(input);\n return;\n }\n\n asap(function () {\n put(input);\n });\n };\n\n return chan;\n}\n\nvar RUNNING = 0;\nvar CANCELLED = 1;\nvar ABORTED = 2;\nvar DONE = 3;\n\nfunction resolvePromise(promise, cb) {\n var cancelPromise = promise[CANCEL];\n\n if (func(cancelPromise)) {\n cb.cancel = cancelPromise;\n }\n\n promise.then(cb, function (error) {\n cb(error, true);\n });\n}\n\nvar current = 0;\nvar nextSagaId = (function () {\n return ++current;\n});\n\nvar _effectRunnerMap;\n\nfunction getIteratorMetaInfo(iterator, fn) {\n if (iterator.isSagaIterator) {\n return {\n name: iterator.meta.name\n };\n }\n\n return getMetaInfo(fn);\n}\n\nfunction createTaskIterator(_ref) {\n var context = _ref.context,\n fn = _ref.fn,\n args = _ref.args;\n\n // catch synchronous failures; see #152 and #441\n try {\n var result = fn.apply(context, args); // i.e. a generator function returns an iterator\n\n if (iterator(result)) {\n return result;\n }\n\n var resolved = false;\n\n var next = function next(arg) {\n if (!resolved) {\n resolved = true; // Only promises returned from fork will be interpreted. See #1573\n\n return {\n value: result,\n done: !promise(result)\n };\n } else {\n return {\n value: arg,\n done: true\n };\n }\n };\n\n return makeIterator(next);\n } catch (err) {\n // do not bubble up synchronous failures for detached forks\n // instead create a failed task. See #152 and #441\n return makeIterator(function () {\n throw err;\n });\n }\n}\n\nfunction runPutEffect(env, _ref2, cb) {\n var channel = _ref2.channel,\n action = _ref2.action,\n resolve = _ref2.resolve;\n\n /**\n Schedule the put in case another saga is holding a lock.\n The put will be executed atomically. ie nested puts will execute after\n this put has terminated.\n **/\n asap(function () {\n var result;\n\n try {\n result = (channel ? channel.put : env.dispatch)(action);\n } catch (error) {\n cb(error, true);\n return;\n }\n\n if (resolve && promise(result)) {\n resolvePromise(result, cb);\n } else {\n cb(result);\n }\n }); // Put effects are non cancellables\n}\n\nfunction runTakeEffect(env, _ref3, cb) {\n var _ref3$channel = _ref3.channel,\n channel = _ref3$channel === void 0 ? env.channel : _ref3$channel,\n pattern = _ref3.pattern,\n maybe = _ref3.maybe;\n\n var takeCb = function takeCb(input) {\n if (input instanceof Error) {\n cb(input, true);\n return;\n }\n\n if (isEnd(input) && !maybe) {\n cb(TERMINATE);\n return;\n }\n\n cb(input);\n };\n\n try {\n channel.take(takeCb, notUndef(pattern) ? matcher(pattern) : null);\n } catch (err) {\n cb(err, true);\n return;\n }\n\n cb.cancel = takeCb.cancel;\n}\n\nfunction runCallEffect(env, _ref4, cb, _ref5) {\n var context = _ref4.context,\n fn = _ref4.fn,\n args = _ref4.args;\n var task = _ref5.task;\n\n // catch synchronous failures; see #152\n try {\n var result = fn.apply(context, args);\n\n if (promise(result)) {\n resolvePromise(result, cb);\n return;\n }\n\n if (iterator(result)) {\n // resolve iterator\n proc(env, result, task.context, current, getMetaInfo(fn),\n /* isRoot */\n false, cb);\n return;\n }\n\n cb(result);\n } catch (error) {\n cb(error, true);\n }\n}\n\nfunction runCPSEffect(env, _ref6, cb) {\n var context = _ref6.context,\n fn = _ref6.fn,\n args = _ref6.args;\n\n // CPS (ie node style functions) can define their own cancellation logic\n // by setting cancel field on the cb\n // catch synchronous failures; see #152\n try {\n var cpsCb = function cpsCb(err, res) {\n if (undef(err)) {\n cb(res);\n } else {\n cb(err, true);\n }\n };\n\n fn.apply(context, args.concat(cpsCb));\n\n if (cpsCb.cancel) {\n cb.cancel = cpsCb.cancel;\n }\n } catch (error) {\n cb(error, true);\n }\n}\n\nfunction runForkEffect(env, _ref7, cb, _ref8) {\n var context = _ref7.context,\n fn = _ref7.fn,\n args = _ref7.args,\n detached = _ref7.detached;\n var parent = _ref8.task;\n var taskIterator = createTaskIterator({\n context: context,\n fn: fn,\n args: args\n });\n var meta = getIteratorMetaInfo(taskIterator, fn);\n immediately(function () {\n var child = proc(env, taskIterator, parent.context, current, meta, detached, undefined);\n\n if (detached) {\n cb(child);\n } else {\n if (child.isRunning()) {\n parent.queue.addTask(child);\n cb(child);\n } else if (child.isAborted()) {\n parent.queue.abort(child.error());\n } else {\n cb(child);\n }\n }\n }); // Fork effects are non cancellables\n}\n\nfunction runJoinEffect(env, taskOrTasks, cb, _ref9) {\n var task = _ref9.task;\n\n var joinSingleTask = function joinSingleTask(taskToJoin, cb) {\n if (taskToJoin.isRunning()) {\n var joiner = {\n task: task,\n cb: cb\n };\n\n cb.cancel = function () {\n if (taskToJoin.isRunning()) remove(taskToJoin.joiners, joiner);\n };\n\n taskToJoin.joiners.push(joiner);\n } else {\n if (taskToJoin.isAborted()) {\n cb(taskToJoin.error(), true);\n } else {\n cb(taskToJoin.result());\n }\n }\n };\n\n if (array$1(taskOrTasks)) {\n if (taskOrTasks.length === 0) {\n cb([]);\n return;\n }\n\n var childCallbacks = createAllStyleChildCallbacks(taskOrTasks, cb);\n taskOrTasks.forEach(function (t, i) {\n joinSingleTask(t, childCallbacks[i]);\n });\n } else {\n joinSingleTask(taskOrTasks, cb);\n }\n}\n\nfunction cancelSingleTask(taskToCancel) {\n if (taskToCancel.isRunning()) {\n taskToCancel.cancel();\n }\n}\n\nfunction runCancelEffect(env, taskOrTasks, cb, _ref10) {\n var task = _ref10.task;\n\n if (taskOrTasks === SELF_CANCELLATION) {\n cancelSingleTask(task);\n } else if (array$1(taskOrTasks)) {\n taskOrTasks.forEach(cancelSingleTask);\n } else {\n cancelSingleTask(taskOrTasks);\n }\n\n cb(); // cancel effects are non cancellables\n}\n\nfunction runAllEffect(env, effects, cb, _ref11) {\n var digestEffect = _ref11.digestEffect;\n var effectId = current;\n var keys = Object.keys(effects);\n\n if (keys.length === 0) {\n cb(array$1(effects) ? [] : {});\n return;\n }\n\n var childCallbacks = createAllStyleChildCallbacks(effects, cb);\n keys.forEach(function (key) {\n digestEffect(effects[key], effectId, childCallbacks[key], key);\n });\n}\n\nfunction runRaceEffect(env, effects, cb, _ref12) {\n var digestEffect = _ref12.digestEffect;\n var effectId = current;\n var keys = Object.keys(effects);\n var response = array$1(effects) ? createEmptyArray(keys.length) : {};\n var childCbs = {};\n var completed = false;\n keys.forEach(function (key) {\n var chCbAtKey = function chCbAtKey(res, isErr) {\n if (completed) {\n return;\n }\n\n if (isErr || shouldComplete(res)) {\n // Race Auto cancellation\n cb.cancel();\n cb(res, isErr);\n } else {\n cb.cancel();\n completed = true;\n response[key] = res;\n cb(response);\n }\n };\n\n chCbAtKey.cancel = noop;\n childCbs[key] = chCbAtKey;\n });\n\n cb.cancel = function () {\n // prevents unnecessary cancellation\n if (!completed) {\n completed = true;\n keys.forEach(function (key) {\n return childCbs[key].cancel();\n });\n }\n };\n\n keys.forEach(function (key) {\n if (completed) {\n return;\n }\n\n digestEffect(effects[key], effectId, childCbs[key], key);\n });\n}\n\nfunction runSelectEffect(env, _ref13, cb) {\n var selector = _ref13.selector,\n args = _ref13.args;\n\n try {\n var state = selector.apply(void 0, [env.getState()].concat(args));\n cb(state);\n } catch (error) {\n cb(error, true);\n }\n}\n\nfunction runChannelEffect(env, _ref14, cb) {\n var pattern = _ref14.pattern,\n buffer = _ref14.buffer;\n var chan = channel(buffer);\n var match = matcher(pattern);\n\n var taker = function taker(action) {\n if (!isEnd(action)) {\n env.channel.take(taker, match);\n }\n\n chan.put(action);\n };\n\n var close = chan.close;\n\n chan.close = function () {\n taker.cancel();\n close();\n };\n\n env.channel.take(taker, match);\n cb(chan);\n}\n\nfunction runCancelledEffect(env, data, cb, _ref15) {\n var task = _ref15.task;\n cb(task.isCancelled());\n}\n\nfunction runFlushEffect(env, channel, cb) {\n channel.flush(cb);\n}\n\nfunction runGetContextEffect(env, prop, cb, _ref16) {\n var task = _ref16.task;\n cb(task.context[prop]);\n}\n\nfunction runSetContextEffect(env, props, cb, _ref17) {\n var task = _ref17.task;\n assignWithSymbols(task.context, props);\n cb();\n}\n\nvar effectRunnerMap = (_effectRunnerMap = {}, _effectRunnerMap[TAKE] = runTakeEffect, _effectRunnerMap[PUT] = runPutEffect, _effectRunnerMap[ALL] = runAllEffect, _effectRunnerMap[RACE] = runRaceEffect, _effectRunnerMap[CALL] = runCallEffect, _effectRunnerMap[CPS] = runCPSEffect, _effectRunnerMap[FORK] = runForkEffect, _effectRunnerMap[JOIN] = runJoinEffect, _effectRunnerMap[CANCEL$1] = runCancelEffect, _effectRunnerMap[SELECT] = runSelectEffect, _effectRunnerMap[ACTION_CHANNEL] = runChannelEffect, _effectRunnerMap[CANCELLED$1] = runCancelledEffect, _effectRunnerMap[FLUSH] = runFlushEffect, _effectRunnerMap[GET_CONTEXT] = runGetContextEffect, _effectRunnerMap[SET_CONTEXT] = runSetContextEffect, _effectRunnerMap);\n\n/**\n Used to track a parent task and its forks\n In the fork model, forked tasks are attached by default to their parent\n We model this using the concept of Parent task && main Task\n main task is the main flow of the current Generator, the parent tasks is the\n aggregation of the main tasks + all its forked tasks.\n Thus the whole model represents an execution tree with multiple branches (vs the\n linear execution tree in sequential (non parallel) programming)\n\n A parent tasks has the following semantics\n - It completes if all its forks either complete or all cancelled\n - If it's cancelled, all forks are cancelled as well\n - It aborts if any uncaught error bubbles up from forks\n - If it completes, the return value is the one returned by the main task\n **/\n\nfunction forkQueue(mainTask, onAbort, cont) {\n var tasks = [];\n var result;\n var completed = false;\n addTask(mainTask);\n\n var getTasks = function getTasks() {\n return tasks;\n };\n\n function abort(err) {\n onAbort();\n cancelAll();\n cont(err, true);\n }\n\n function addTask(task) {\n tasks.push(task);\n\n task.cont = function (res, isErr) {\n if (completed) {\n return;\n }\n\n remove(tasks, task);\n task.cont = noop;\n\n if (isErr) {\n abort(res);\n } else {\n if (task === mainTask) {\n result = res;\n }\n\n if (!tasks.length) {\n completed = true;\n cont(result);\n }\n }\n };\n }\n\n function cancelAll() {\n if (completed) {\n return;\n }\n\n completed = true;\n tasks.forEach(function (t) {\n t.cont = noop;\n t.cancel();\n });\n tasks = [];\n }\n\n return {\n addTask: addTask,\n cancelAll: cancelAll,\n abort: abort,\n getTasks: getTasks\n };\n}\n\n// there can be only a single saga error created at any given moment\n\nfunction formatLocation(fileName, lineNumber) {\n return fileName + \"?\" + lineNumber;\n}\n\nfunction effectLocationAsString(effect) {\n var location = getLocation(effect);\n\n if (location) {\n var code = location.code,\n fileName = location.fileName,\n lineNumber = location.lineNumber;\n var source = code + \" \" + formatLocation(fileName, lineNumber);\n return source;\n }\n\n return '';\n}\n\nfunction sagaLocationAsString(sagaMeta) {\n var name = sagaMeta.name,\n location = sagaMeta.location;\n\n if (location) {\n return name + \" \" + formatLocation(location.fileName, location.lineNumber);\n }\n\n return name;\n}\n\nfunction cancelledTasksAsString(sagaStack) {\n var cancelledTasks = flatMap(function (i) {\n return i.cancelledTasks;\n }, sagaStack);\n\n if (!cancelledTasks.length) {\n return '';\n }\n\n return ['Tasks cancelled due to error:'].concat(cancelledTasks).join('\\n');\n}\n\nvar crashedEffect = null;\nvar sagaStack = [];\nvar addSagaFrame = function addSagaFrame(frame) {\n frame.crashedEffect = crashedEffect;\n sagaStack.push(frame);\n};\nvar clear = function clear() {\n crashedEffect = null;\n sagaStack.length = 0;\n}; // this sets crashed effect for the soon-to-be-reported saga frame\n// this slightly streatches the singleton nature of this module into wrong direction\n// as it's even less obvious what's the data flow here, but it is what it is for now\n\nvar setCrashedEffect = function setCrashedEffect(effect) {\n crashedEffect = effect;\n};\n/**\n @returns {string}\n\n @example\n The above error occurred in task errorInPutSaga {pathToFile}\n when executing effect put({type: 'REDUCER_ACTION_ERROR_IN_PUT'}) {pathToFile}\n created by fetchSaga {pathToFile}\n created by rootSaga {pathToFile}\n*/\n\nvar toString = function toString() {\n var firstSaga = sagaStack[0],\n otherSagas = sagaStack.slice(1);\n var crashedEffectLocation = firstSaga.crashedEffect ? effectLocationAsString(firstSaga.crashedEffect) : null;\n var errorMessage = \"The above error occurred in task \" + sagaLocationAsString(firstSaga.meta) + (crashedEffectLocation ? \" \\n when executing effect \" + crashedEffectLocation : '');\n return [errorMessage].concat(otherSagas.map(function (s) {\n return \" created by \" + sagaLocationAsString(s.meta);\n }), [cancelledTasksAsString(sagaStack)]).join('\\n');\n};\n\nfunction newTask(env, mainTask, parentContext, parentEffectId, meta, isRoot, cont) {\n var _task;\n\n if (cont === void 0) {\n cont = noop;\n }\n\n var status = RUNNING;\n var taskResult;\n var taskError;\n var deferredEnd = null;\n var cancelledDueToErrorTasks = [];\n var context = Object.create(parentContext);\n var queue = forkQueue(mainTask, function onAbort() {\n cancelledDueToErrorTasks.push.apply(cancelledDueToErrorTasks, queue.getTasks().map(function (t) {\n return t.meta.name;\n }));\n }, end);\n /**\n This may be called by a parent generator to trigger/propagate cancellation\n cancel all pending tasks (including the main task), then end the current task.\n Cancellation propagates down to the whole execution tree held by this Parent task\n It's also propagated to all joiners of this task and their execution tree/joiners\n Cancellation is noop for terminated/Cancelled tasks tasks\n **/\n\n function cancel() {\n if (status === RUNNING) {\n // Setting status to CANCELLED does not necessarily mean that the task/iterators are stopped\n // effects in the iterator's finally block will still be executed\n status = CANCELLED;\n queue.cancelAll(); // Ending with a TASK_CANCEL will propagate the Cancellation to all joiners\n\n end(TASK_CANCEL, false);\n }\n }\n\n function end(result, isErr) {\n if (!isErr) {\n // The status here may be RUNNING or CANCELLED\n // If the status is CANCELLED, then we do not need to change it here\n if (result === TASK_CANCEL) {\n status = CANCELLED;\n } else if (status !== CANCELLED) {\n status = DONE;\n }\n\n taskResult = result;\n deferredEnd && deferredEnd.resolve(result);\n } else {\n status = ABORTED;\n addSagaFrame({\n meta: meta,\n cancelledTasks: cancelledDueToErrorTasks\n });\n\n if (task.isRoot) {\n var sagaStack = toString(); // we've dumped the saga stack to string and are passing it to user's code\n // we know that it won't be needed anymore and we need to clear it\n\n clear();\n env.onError(result, {\n sagaStack: sagaStack\n });\n }\n\n taskError = result;\n deferredEnd && deferredEnd.reject(result);\n }\n\n task.cont(result, isErr);\n task.joiners.forEach(function (joiner) {\n joiner.cb(result, isErr);\n });\n task.joiners = null;\n }\n\n function setContext(props) {\n if (process.env.NODE_ENV !== 'production') {\n check(props, object, createSetContextWarning('task', props));\n }\n\n assignWithSymbols(context, props);\n }\n\n function toPromise() {\n if (deferredEnd) {\n return deferredEnd.promise;\n }\n\n deferredEnd = deferred();\n\n if (status === ABORTED) {\n deferredEnd.reject(taskError);\n } else if (status !== RUNNING) {\n deferredEnd.resolve(taskResult);\n }\n\n return deferredEnd.promise;\n }\n\n var task = (_task = {}, _task[TASK] = true, _task.id = parentEffectId, _task.meta = meta, _task.isRoot = isRoot, _task.context = context, _task.joiners = [], _task.queue = queue, _task.cancel = cancel, _task.cont = cont, _task.end = end, _task.setContext = setContext, _task.toPromise = toPromise, _task.isRunning = function isRunning() {\n return status === RUNNING;\n }, _task.isCancelled = function isCancelled() {\n return status === CANCELLED || status === RUNNING && mainTask.status === CANCELLED;\n }, _task.isAborted = function isAborted() {\n return status === ABORTED;\n }, _task.result = function result() {\n return taskResult;\n }, _task.error = function error() {\n return taskError;\n }, _task);\n return task;\n}\n\nfunction proc(env, iterator$1, parentContext, parentEffectId, meta, isRoot, cont) {\n if (process.env.NODE_ENV !== 'production' && iterator$1[asyncIteratorSymbol]) {\n throw new Error(\"redux-saga doesn't support async generators, please use only regular ones\");\n }\n\n var finalRunEffect = env.finalizeRunEffect(runEffect);\n /**\n Tracks the current effect cancellation\n Each time the generator progresses. calling runEffect will set a new value\n on it. It allows propagating cancellation to child effects\n **/\n\n next.cancel = noop;\n /** Creates a main task to track the main flow */\n\n var mainTask = {\n meta: meta,\n cancel: cancelMain,\n status: RUNNING\n };\n /**\n Creates a new task descriptor for this generator.\n A task is the aggregation of it's mainTask and all it's forked tasks.\n **/\n\n var task = newTask(env, mainTask, parentContext, parentEffectId, meta, isRoot, cont);\n var executingContext = {\n task: task,\n digestEffect: digestEffect\n };\n /**\n cancellation of the main task. We'll simply resume the Generator with a TASK_CANCEL\n **/\n\n function cancelMain() {\n if (mainTask.status === RUNNING) {\n mainTask.status = CANCELLED;\n next(TASK_CANCEL);\n }\n }\n /**\n attaches cancellation logic to this task's continuation\n this will permit cancellation to propagate down the call chain\n **/\n\n\n if (cont) {\n cont.cancel = task.cancel;\n } // kicks up the generator\n\n\n next(); // then return the task descriptor to the caller\n\n return task;\n /**\n * This is the generator driver\n * It's a recursive async/continuation function which calls itself\n * until the generator terminates or throws\n * @param {internal commands(TASK_CANCEL | TERMINATE) | any} arg - value, generator will be resumed with.\n * @param {boolean} isErr - the flag shows if effect finished with an error\n *\n * receives either (command | effect result, false) or (any thrown thing, true)\n */\n\n function next(arg, isErr) {\n try {\n var result;\n\n if (isErr) {\n result = iterator$1.throw(arg); // user handled the error, we can clear bookkept values\n\n clear();\n } else if (shouldCancel(arg)) {\n /**\n getting TASK_CANCEL automatically cancels the main task\n We can get this value here\n - By cancelling the parent task manually\n - By joining a Cancelled task\n **/\n mainTask.status = CANCELLED;\n /**\n Cancels the current effect; this will propagate the cancellation down to any called tasks\n **/\n\n next.cancel();\n /**\n If this Generator has a `return` method then invokes it\n This will jump to the finally block\n **/\n\n result = func(iterator$1.return) ? iterator$1.return(TASK_CANCEL) : {\n done: true,\n value: TASK_CANCEL\n };\n } else if (shouldTerminate(arg)) {\n // We get TERMINATE flag, i.e. by taking from a channel that ended using `take` (and not `takem` used to trap End of channels)\n result = func(iterator$1.return) ? iterator$1.return() : {\n done: true\n };\n } else {\n result = iterator$1.next(arg);\n }\n\n if (!result.done) {\n digestEffect(result.value, parentEffectId, next);\n } else {\n /**\n This Generator has ended, terminate the main task and notify the fork queue\n **/\n if (mainTask.status !== CANCELLED) {\n mainTask.status = DONE;\n }\n\n mainTask.cont(result.value);\n }\n } catch (error) {\n if (mainTask.status === CANCELLED) {\n throw error;\n }\n\n mainTask.status = ABORTED;\n mainTask.cont(error, true);\n }\n }\n\n function runEffect(effect, effectId, currCb) {\n /**\n each effect runner must attach its own logic of cancellation to the provided callback\n it allows this generator to propagate cancellation downward.\n ATTENTION! effect runners must setup the cancel logic by setting cb.cancel = [cancelMethod]\n And the setup must occur before calling the callback\n This is a sort of inversion of control: called async functions are responsible\n of completing the flow by calling the provided continuation; while caller functions\n are responsible for aborting the current flow by calling the attached cancel function\n Library users can attach their own cancellation logic to promises by defining a\n promise[CANCEL] method in their returned promises\n ATTENTION! calling cancel must have no effect on an already completed or cancelled effect\n **/\n if (promise(effect)) {\n resolvePromise(effect, currCb);\n } else if (iterator(effect)) {\n // resolve iterator\n proc(env, effect, task.context, effectId, meta,\n /* isRoot */\n false, currCb);\n } else if (effect && effect[IO]) {\n var effectRunner = effectRunnerMap[effect.type];\n effectRunner(env, effect.payload, currCb, executingContext);\n } else {\n // anything else returned as is\n currCb(effect);\n }\n }\n\n function digestEffect(effect, parentEffectId, cb, label) {\n if (label === void 0) {\n label = '';\n }\n\n var effectId = nextSagaId();\n env.sagaMonitor && env.sagaMonitor.effectTriggered({\n effectId: effectId,\n parentEffectId: parentEffectId,\n label: label,\n effect: effect\n });\n /**\n completion callback and cancel callback are mutually exclusive\n We can't cancel an already completed effect\n And We can't complete an already cancelled effectId\n **/\n\n var effectSettled; // Completion callback passed to the appropriate effect runner\n\n function currCb(res, isErr) {\n if (effectSettled) {\n return;\n }\n\n effectSettled = true;\n cb.cancel = noop; // defensive measure\n\n if (env.sagaMonitor) {\n if (isErr) {\n env.sagaMonitor.effectRejected(effectId, res);\n } else {\n env.sagaMonitor.effectResolved(effectId, res);\n }\n }\n\n if (isErr) {\n setCrashedEffect(effect);\n }\n\n cb(res, isErr);\n } // tracks down the current cancel\n\n\n currCb.cancel = noop; // setup cancellation logic on the parent cb\n\n cb.cancel = function () {\n // prevents cancelling an already completed effect\n if (effectSettled) {\n return;\n }\n\n effectSettled = true;\n currCb.cancel(); // propagates cancel downward\n\n currCb.cancel = noop; // defensive measure\n\n env.sagaMonitor && env.sagaMonitor.effectCancelled(effectId);\n };\n\n finalRunEffect(effect, effectId, currCb);\n }\n}\n\nvar RUN_SAGA_SIGNATURE = 'runSaga(options, saga, ...args)';\nvar NON_GENERATOR_ERR = RUN_SAGA_SIGNATURE + \": saga argument must be a Generator function!\";\nfunction runSaga(_ref, saga) {\n var _ref$channel = _ref.channel,\n channel = _ref$channel === void 0 ? stdChannel() : _ref$channel,\n dispatch = _ref.dispatch,\n getState = _ref.getState,\n _ref$context = _ref.context,\n context = _ref$context === void 0 ? {} : _ref$context,\n sagaMonitor = _ref.sagaMonitor,\n effectMiddlewares = _ref.effectMiddlewares,\n _ref$onError = _ref.onError,\n onError = _ref$onError === void 0 ? logError : _ref$onError;\n\n if (process.env.NODE_ENV !== 'production') {\n check(saga, func, NON_GENERATOR_ERR);\n }\n\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n var iterator$1 = saga.apply(void 0, args);\n\n if (process.env.NODE_ENV !== 'production') {\n check(iterator$1, iterator, NON_GENERATOR_ERR);\n }\n\n var effectId = nextSagaId();\n\n if (sagaMonitor) {\n // monitors are expected to have a certain interface, let's fill-in any missing ones\n sagaMonitor.rootSagaStarted = sagaMonitor.rootSagaStarted || noop;\n sagaMonitor.effectTriggered = sagaMonitor.effectTriggered || noop;\n sagaMonitor.effectResolved = sagaMonitor.effectResolved || noop;\n sagaMonitor.effectRejected = sagaMonitor.effectRejected || noop;\n sagaMonitor.effectCancelled = sagaMonitor.effectCancelled || noop;\n sagaMonitor.actionDispatched = sagaMonitor.actionDispatched || noop;\n sagaMonitor.rootSagaStarted({\n effectId: effectId,\n saga: saga,\n args: args\n });\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (notUndef(dispatch)) {\n check(dispatch, func, 'dispatch must be a function');\n }\n\n if (notUndef(getState)) {\n check(getState, func, 'getState must be a function');\n }\n\n if (notUndef(effectMiddlewares)) {\n var MIDDLEWARE_TYPE_ERROR = 'effectMiddlewares must be an array of functions';\n check(effectMiddlewares, array$1, MIDDLEWARE_TYPE_ERROR);\n effectMiddlewares.forEach(function (effectMiddleware) {\n return check(effectMiddleware, func, MIDDLEWARE_TYPE_ERROR);\n });\n }\n\n check(onError, func, 'onError passed to the redux-saga is not a function!');\n }\n\n var finalizeRunEffect;\n\n if (effectMiddlewares) {\n var middleware = compose.apply(void 0, effectMiddlewares);\n\n finalizeRunEffect = function finalizeRunEffect(runEffect) {\n return function (effect, effectId, currCb) {\n var plainRunEffect = function plainRunEffect(eff) {\n return runEffect(eff, effectId, currCb);\n };\n\n return middleware(plainRunEffect)(effect);\n };\n };\n } else {\n finalizeRunEffect = identity;\n }\n\n var env = {\n channel: channel,\n dispatch: wrapSagaDispatch(dispatch),\n getState: getState,\n sagaMonitor: sagaMonitor,\n onError: onError,\n finalizeRunEffect: finalizeRunEffect\n };\n return immediately(function () {\n var task = proc(env, iterator$1, context, effectId, getMetaInfo(saga),\n /* isRoot */\n true, undefined);\n\n if (sagaMonitor) {\n sagaMonitor.effectResolved(effectId, task);\n }\n\n return task;\n });\n}\n\nfunction sagaMiddlewareFactory(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$context = _ref.context,\n context = _ref$context === void 0 ? {} : _ref$context,\n _ref$channel = _ref.channel,\n channel = _ref$channel === void 0 ? stdChannel() : _ref$channel,\n sagaMonitor = _ref.sagaMonitor,\n options = _objectWithoutPropertiesLoose(_ref, [\"context\", \"channel\", \"sagaMonitor\"]);\n\n var boundRunSaga;\n\n if (process.env.NODE_ENV !== 'production') {\n check(channel, channel$1, 'options.channel passed to the Saga middleware is not a channel');\n }\n\n function sagaMiddleware(_ref2) {\n var getState = _ref2.getState,\n dispatch = _ref2.dispatch;\n boundRunSaga = runSaga.bind(null, _extends({}, options, {\n context: context,\n channel: channel,\n dispatch: dispatch,\n getState: getState,\n sagaMonitor: sagaMonitor\n }));\n return function (next) {\n return function (action) {\n if (sagaMonitor && sagaMonitor.actionDispatched) {\n sagaMonitor.actionDispatched(action);\n }\n\n var result = next(action); // hit reducers\n\n channel.put(action);\n return result;\n };\n };\n }\n\n sagaMiddleware.run = function () {\n if (process.env.NODE_ENV !== 'production' && !boundRunSaga) {\n throw new Error('Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware');\n }\n\n return boundRunSaga.apply(void 0, arguments);\n };\n\n sagaMiddleware.setContext = function (props) {\n if (process.env.NODE_ENV !== 'production') {\n check(props, object, createSetContextWarning('sagaMiddleware', props));\n }\n\n assignWithSymbols(context, props);\n };\n\n return sagaMiddleware;\n}\n\nexport default sagaMiddlewareFactory;\nexport { END, channel, eventChannel, isEnd, multicastChannel, runSaga, stdChannel };\n","import createSagaMiddleware__default from '@redux-saga/core';\nexport * from '@redux-saga/core';\n\n\n\nexport default createSagaMiddleware__default;\n","import '@redux-saga/symbols';\nimport '@babel/runtime/helpers/esm/extends';\nimport { channel, stringableFunc, func, notUndef } from '@redux-saga/is';\nimport { q as makeIterator, K as take, L as fork, M as cancel, N as call, O as delay, Q as actionChannel, U as sliding, V as race, c as check } from './io-c3792963.js';\nexport { Q as actionChannel, _ as all, $ as apply, N as call, M as cancel, a4 as cancelled, a0 as cps, O as delay, W as effectTypes, a5 as flush, L as fork, a6 as getContext, a2 as join, Y as put, Z as putResolve, V as race, a3 as select, a7 as setContext, a1 as spawn, K as take, X as takeMaybe } from './io-c3792963.js';\nimport '@redux-saga/delay-p';\n\nvar done = function done(value) {\n return {\n done: true,\n value: value\n };\n};\n\nvar qEnd = {};\nfunction safeName(patternOrChannel) {\n if (channel(patternOrChannel)) {\n return 'channel';\n }\n\n if (stringableFunc(patternOrChannel)) {\n return String(patternOrChannel);\n }\n\n if (func(patternOrChannel)) {\n return patternOrChannel.name;\n }\n\n return String(patternOrChannel);\n}\nfunction fsmIterator(fsm, startState, name) {\n var stateUpdater,\n errorState,\n effect,\n nextState = startState;\n\n function next(arg, error) {\n if (nextState === qEnd) {\n return done(arg);\n }\n\n if (error && !errorState) {\n nextState = qEnd;\n throw error;\n } else {\n stateUpdater && stateUpdater(arg);\n var currentState = error ? fsm[errorState](error) : fsm[nextState]();\n nextState = currentState.nextState;\n effect = currentState.effect;\n stateUpdater = currentState.stateUpdater;\n errorState = currentState.errorState;\n return nextState === qEnd ? done(arg) : effect;\n }\n }\n\n return makeIterator(next, function (error) {\n return next(null, error);\n }, name);\n}\n\nfunction takeEvery(patternOrChannel, worker) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n var yTake = {\n done: false,\n value: take(patternOrChannel)\n };\n\n var yFork = function yFork(ac) {\n return {\n done: false,\n value: fork.apply(void 0, [worker].concat(args, [ac]))\n };\n };\n\n var action,\n setAction = function setAction(ac) {\n return action = ac;\n };\n\n return fsmIterator({\n q1: function q1() {\n return {\n nextState: 'q2',\n effect: yTake,\n stateUpdater: setAction\n };\n },\n q2: function q2() {\n return {\n nextState: 'q1',\n effect: yFork(action)\n };\n }\n }, 'q1', \"takeEvery(\" + safeName(patternOrChannel) + \", \" + worker.name + \")\");\n}\n\nfunction takeLatest(patternOrChannel, worker) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n var yTake = {\n done: false,\n value: take(patternOrChannel)\n };\n\n var yFork = function yFork(ac) {\n return {\n done: false,\n value: fork.apply(void 0, [worker].concat(args, [ac]))\n };\n };\n\n var yCancel = function yCancel(task) {\n return {\n done: false,\n value: cancel(task)\n };\n };\n\n var task, action;\n\n var setTask = function setTask(t) {\n return task = t;\n };\n\n var setAction = function setAction(ac) {\n return action = ac;\n };\n\n return fsmIterator({\n q1: function q1() {\n return {\n nextState: 'q2',\n effect: yTake,\n stateUpdater: setAction\n };\n },\n q2: function q2() {\n return task ? {\n nextState: 'q3',\n effect: yCancel(task)\n } : {\n nextState: 'q1',\n effect: yFork(action),\n stateUpdater: setTask\n };\n },\n q3: function q3() {\n return {\n nextState: 'q1',\n effect: yFork(action),\n stateUpdater: setTask\n };\n }\n }, 'q1', \"takeLatest(\" + safeName(patternOrChannel) + \", \" + worker.name + \")\");\n}\n\nfunction takeLeading(patternOrChannel, worker) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n var yTake = {\n done: false,\n value: take(patternOrChannel)\n };\n\n var yCall = function yCall(ac) {\n return {\n done: false,\n value: call.apply(void 0, [worker].concat(args, [ac]))\n };\n };\n\n var action;\n\n var setAction = function setAction(ac) {\n return action = ac;\n };\n\n return fsmIterator({\n q1: function q1() {\n return {\n nextState: 'q2',\n effect: yTake,\n stateUpdater: setAction\n };\n },\n q2: function q2() {\n return {\n nextState: 'q1',\n effect: yCall(action)\n };\n }\n }, 'q1', \"takeLeading(\" + safeName(patternOrChannel) + \", \" + worker.name + \")\");\n}\n\nfunction throttle(delayLength, patternOrChannel, worker) {\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n\n var action, channel$1;\n\n var yTake = function yTake() {\n return {\n done: false,\n value: take(channel$1)\n };\n };\n\n var yFork = function yFork(ac) {\n return {\n done: false,\n value: fork.apply(void 0, [worker].concat(args, [ac]))\n };\n };\n\n var yDelay = {\n done: false,\n value: delay(delayLength)\n };\n\n var setAction = function setAction(ac) {\n return action = ac;\n };\n\n var setChannel = function setChannel(ch) {\n return channel$1 = ch;\n };\n\n var needsChannel = !channel(patternOrChannel);\n\n if (!needsChannel) {\n setChannel(patternOrChannel);\n }\n\n return fsmIterator({\n q1: function q1() {\n var yActionChannel = {\n done: false,\n value: actionChannel(patternOrChannel, sliding(1))\n };\n return {\n nextState: 'q2',\n effect: yActionChannel,\n stateUpdater: setChannel\n };\n },\n q2: function q2() {\n return {\n nextState: 'q3',\n effect: yTake(),\n stateUpdater: setAction\n };\n },\n q3: function q3() {\n return {\n nextState: 'q4',\n effect: yFork(action)\n };\n },\n q4: function q4() {\n return {\n nextState: 'q2',\n effect: yDelay\n };\n }\n }, needsChannel ? 'q1' : 'q2', \"throttle(\" + safeName(patternOrChannel) + \", \" + worker.name + \")\");\n}\n\nfunction retry(maxTries, delayLength, fn) {\n var counter = maxTries;\n\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n\n var yCall = {\n done: false,\n value: call.apply(void 0, [fn].concat(args))\n };\n var yDelay = {\n done: false,\n value: delay(delayLength)\n };\n return fsmIterator({\n q1: function q1() {\n return {\n nextState: 'q2',\n effect: yCall,\n errorState: 'q10'\n };\n },\n q2: function q2() {\n return {\n nextState: qEnd\n };\n },\n q10: function q10(error) {\n counter -= 1;\n\n if (counter <= 0) {\n throw error;\n }\n\n return {\n nextState: 'q1',\n effect: yDelay\n };\n }\n }, 'q1', \"retry(\" + fn.name + \")\");\n}\n\nfunction debounceHelper(delayLength, patternOrChannel, worker) {\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n\n var action, raceOutput;\n var yTake = {\n done: false,\n value: take(patternOrChannel)\n };\n var yRace = {\n done: false,\n value: race({\n action: take(patternOrChannel),\n debounce: delay(delayLength)\n })\n };\n\n var yFork = function yFork(ac) {\n return {\n done: false,\n value: fork.apply(void 0, [worker].concat(args, [ac]))\n };\n };\n\n var yNoop = function yNoop(value) {\n return {\n done: false,\n value: value\n };\n };\n\n var setAction = function setAction(ac) {\n return action = ac;\n };\n\n var setRaceOutput = function setRaceOutput(ro) {\n return raceOutput = ro;\n };\n\n return fsmIterator({\n q1: function q1() {\n return {\n nextState: 'q2',\n effect: yTake,\n stateUpdater: setAction\n };\n },\n q2: function q2() {\n return {\n nextState: 'q3',\n effect: yRace,\n stateUpdater: setRaceOutput\n };\n },\n q3: function q3() {\n return raceOutput.debounce ? {\n nextState: 'q1',\n effect: yFork(action)\n } : {\n nextState: 'q2',\n effect: yNoop(raceOutput.action),\n stateUpdater: setAction\n };\n }\n }, 'q1', \"debounce(\" + safeName(patternOrChannel) + \", \" + worker.name + \")\");\n}\n\nvar validateTakeEffect = function validateTakeEffect(fn, patternOrChannel, worker) {\n check(patternOrChannel, notUndef, fn.name + \" requires a pattern or channel\");\n check(worker, notUndef, fn.name + \" requires a saga parameter\");\n};\n\nfunction takeEvery$1(patternOrChannel, worker) {\n if (process.env.NODE_ENV !== 'production') {\n validateTakeEffect(takeEvery$1, patternOrChannel, worker);\n }\n\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n return fork.apply(void 0, [takeEvery, patternOrChannel, worker].concat(args));\n}\nfunction takeLatest$1(patternOrChannel, worker) {\n if (process.env.NODE_ENV !== 'production') {\n validateTakeEffect(takeLatest$1, patternOrChannel, worker);\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n return fork.apply(void 0, [takeLatest, patternOrChannel, worker].concat(args));\n}\nfunction takeLeading$1(patternOrChannel, worker) {\n if (process.env.NODE_ENV !== 'production') {\n validateTakeEffect(takeLeading$1, patternOrChannel, worker);\n }\n\n for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {\n args[_key3 - 2] = arguments[_key3];\n }\n\n return fork.apply(void 0, [takeLeading, patternOrChannel, worker].concat(args));\n}\nfunction throttle$1(ms, patternOrChannel, worker) {\n if (process.env.NODE_ENV !== 'production') {\n check(patternOrChannel, notUndef, \"throttle requires a pattern or channel\");\n check(worker, notUndef, 'throttle requires a saga parameter');\n }\n\n for (var _len4 = arguments.length, args = new Array(_len4 > 3 ? _len4 - 3 : 0), _key4 = 3; _key4 < _len4; _key4++) {\n args[_key4 - 3] = arguments[_key4];\n }\n\n return fork.apply(void 0, [throttle, ms, patternOrChannel, worker].concat(args));\n}\nfunction retry$1(maxTries, delayLength, worker) {\n for (var _len5 = arguments.length, args = new Array(_len5 > 3 ? _len5 - 3 : 0), _key5 = 3; _key5 < _len5; _key5++) {\n args[_key5 - 3] = arguments[_key5];\n }\n\n return call.apply(void 0, [retry, maxTries, delayLength, worker].concat(args));\n}\nfunction debounce(delayLength, pattern, worker) {\n for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key6 = 3; _key6 < _len6; _key6++) {\n args[_key6 - 3] = arguments[_key6];\n }\n\n return fork.apply(void 0, [debounceHelper, delayLength, pattern, worker].concat(args));\n}\n\nexport { debounce, retry$1 as retry, takeEvery$1 as takeEvery, takeLatest$1 as takeLatest, takeLeading$1 as takeLeading, throttle$1 as throttle };\n"],"names":["kTrue","v","konst","noop","identity","Symbol","asyncIterator","assignWithSymbols","target","source","Object","getOwnPropertySymbols","forEach","s","flatMap","mapper","arr","_ref","concat","apply","map","remove","array","item","index","indexOf","splice","once","fn","called","kThrow","err","kReturn","value","done","makeIterator","next","thro","name","iterator","meta","throw","return","isSagaIterator","logError","error","_ref2","sagaStack","console","internalErr","Error","createEmptyArray","n","Array","wrapSagaDispatch","dispatch","action","defineProperty","shouldTerminate","res","shouldCancel","shouldComplete","createAllStyleChildCallbacks","shape","parentCallback","keys","totalCount","length","completed","completedCount","results","childCallbacks","key","chCbAtKey","isErr","cancel","getMetaInfo","location","getLocation","instrumented","ringBuffer","limit","overflowAction","pushIndex","popIndex","push","it","take","flush","items","isEmpty","put","doubledLimit","expanding","initialSize","TAKE","PUT","ALL","RACE","CALL","CPS","FORK","JOIN","CANCEL","SELECT","ACTION_CHANNEL","CANCELLED","FLUSH","GET_CONTEXT","SET_CONTEXT","makeEffect","type","payload","IO","combinator","patternOrChannel","multicastPattern","warn","pattern","channel","channel$1","undefined","all","effects","eff","getFnCallDescriptor","fnDescriptor","args","context","call","_len","arguments","_key","fork","_len3","_key3","undef","notUndef","func","f","string","isArray","promise","p","then","pat","symbol","every","ch","close","stringableFunc","hasOwnProperty","sym","Boolean","constructor","prototype","multicast","createSymbol","CHANNEL_END_TYPE","MATCH","MULTICAST","SAGA_ACTION","SELF_CANCELLATION","TASK","TASK_CANCEL","TERMINATE","SAGA_LOCATION","module","exports","condition","format","a","b","c","d","e","argIndex","replace","framesToPop","baseAssignValue","eq","object","Stack","assignMergeValue","baseFor","baseMergeDeep","isObject","keysIn","safeGet","baseMerge","srcIndex","customizer","stack","srcValue","newValue","cloneBuffer","cloneTypedArray","copyArray","initCloneObject","isArguments","isArrayLikeObject","isBuffer","isFunction","isPlainObject","isTypedArray","toPlainObject","mergeFunc","objValue","stacked","get","isCommon","isArr","isBuff","isTyped","set","baseRest","isIterateeCall","assigner","sources","guard","isArrayLike","isObjectLike","baseForOwn","baseIteratee","iteratee","result","merge","createAssigner","copyObject","propIsEnumerable","propertyIsEnumerable","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","join","test3","split","letter","shouldUseNative","from","symbols","to","val","TypeError","toObject","extendStatics","setPrototypeOf","__proto__","__","this","create","t","__rest","__spreadArrays","il","r","k","j","jl","clamp","min","max","Math","sanitize","Number","toFixed","floatRegex","colorRegex","singleColorRegex","number","test","parse","parseFloat","transform","alpha","scale","default","createUnitType","unit","endsWith","degrees","percent","px","vh","vw","progressPercentage","clampRgbUnit","isRgba","red","isHsla","hue","splitColorValues","terms","values","valuesArray","substring","lastIndexOf","getValueFromFunctionString","getValuesAsArray","rgbUnit","round","isColorString","color","colorType","startsWith","rgba","_a","green","blue","_b","alpha$1","rgbaTemplate","hsla","saturation","lightness","hslaTemplate","hex","g","substr","parseInt","COLOR_TOKEN","NUMBER_TOKEN","convertNumbersToZero","complex","isNaN","numValues","foundNumbers","match","foundColors","input","parsed","createTransformer","prop","template","token","numColors","numNumbers","output","getAnimatableNone","parsedTarget","targetTransformer","prevTime","onNextFrame","window","requestAnimationFrame","callback","timestamp","Date","now","timeToCall","setTimeout","defaultElapsed","useDefaultElapsed","willRunNextFrame","isProcessing","delta","stepsOrder","setWillRunNextFrame","willRun","steps","reduce","acc","setRunNextFrame","processToRun","processToRunNextFrame","numThisFrame","cancelled","WeakSet","toKeepAlive","renderStep","process","indexOfCallback","add","frame","process_1","has","schedule","keepAlive","immediate","addToCurrentBuffer","buffer","delete","createStep","step","startLoop","processStep","stepId","processFrame","getFrameData","reversed","easing","mirrored","createReversedEasing","createBackIn","power","createAnticipateEasing","backEasing","pow","easeIn","createExpoIn","easeOut","circIn","sin","acos","circOut","circInOut","backIn","backOut","backInOut","anticipate","K_SAMPLE_STEP_SIZE","FLOAT_32_SUPPORTED","Float32Array","a1","a2","getSlope","calcBezier","cubicBezier","mX1","mY1","mX2","mY2","sampleValues","getTForX","aX","dist","guessForT","initialSlope","intervalStart","currentSample","K_SPLINE_TABLE_SIZE","aGuessT","currentSlope","newtonRaphsonIterate","aA","aB","currentX","currentT","abs","binarySubdivide","calcSampleValues","zeroPoint","x","y","z","isNum","radiansToDegrees","radians","PI","angle","atan2","applyOffset","hasReceivedFrom","curryRange","cv","clamp$1","isPoint","point","isPoint3D","distance1D","distance","xDelta","yDelta","zDelta","sqrt","progress","toFromDifference","mixLinearColor","fromExpo","toExpo","colorTypes","getColorType","find","notAnimatable","color$$1","mixColor","fromColorType","toColorType","fromColor","toColor","blended","mixFunc","combineFunctions","pipe","transformers","_i","getMixer","origin","mixComplex","mixArray","slice","blendValue","fromThis","mixObject","analyse","numRGB","numHSL","originStats","targetStats","mixNumber","createMixers","ease","customMixer","mixers","mixerFactory","numMixers","mixer","easingFunction","testElement","smoothFrame","prevValue","nextValue","duration","smoothing","num","precision","springForce","alterDisplacement","constant","displacement","springModifiedDisplacement","springForceLinear","springForceExpo","velocityPerFrame","xps","frameDuration","velocityPerSecond","velocity","wrap$1","rangeSize","createStyler","onRead","onRender","uncachedValues","Set","_c","useCache","props","state","changedValues","hasChanged","setValue","hasCSSVariable","currentValue","render","styler","forceRead","forceRender","CAMEL_CASE_PATTERN","camelToDash","str","toLowerCase","camelCache","Map","dashCache","prefixes","numPrefixes","isBrowser","document","setDashPrefix","prefixed","prefixer","asDashCase","cache","createElement","prefix","noPrefix","prefixedPropertyName","charAt","toUpperCase","style","testPrefix","setServerProperty","axes","transformProps","axesAcc","axesKey","transformPropDictionary","dict","isTransformProp","sortTransformProps","transformOriginProps","isTransformOriginProp","valueTypes","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","radius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","size","top","right","bottom","left","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skew","skewX","skewY","translateX","translateY","translateZ","perspective","opacity","originX","originY","originZ","zIndex","fillOpacity","strokeOpacity","numOctaves","getValueType","getValueAsType","SCROLL_LEFT","SCROLL_TOP","scrollKeys","blacklist","translateAlias","isCustomTemplate","buildStyleProperty","enableHardwareAcceleration","styles","transformOrigin","transformKeys","isDashCase","allowTransformNone","transformIsDefault","hasTransform","hasTransformOrigin","valueType","valueAsType","transformString","transformHasZ","sort","numTransformKeys","trim","buildTransform","createStyleBuilder","_d","_e","cssStyler","options","element","preparseOutput","defaultValueType","domValue","getComputedStyle","getPropertyValue","buildStyles","numChangedValues","setProperty","camelCaseAttributes","defaultOrigin","svgAttrsTemplate","progressToPixels","unmeasured","calcOrigin","offset","svgStyleConfig","buildSVGAttrs","dimensions","totalPathLength","cssBuilder","attrs","attrX","attrY","pathLength","pathSpacing","pathOffset","calculateSVGTransformOrigin","createAttrBuilder","svgStyler","getAttribute","buildAttrs","setAttribute","viewport","pageYOffset","pageXOffset","scrollTop","scrollLeft","scrollTo","WeakMap","createDOMStyler","node","HTMLElement","click","isHTMLElement","SVGElement","isSVGElement","getBBox","getBoundingClientRect","getDimensions","getSVGElementDimensions","tagName","isPath","getTotalLength","createCssStyler","nodeOrSelector","getStyler","querySelector","Chainable","applyMiddleware","middleware","funcs","pipedUpdate","update","while","predicate","complete","filter","Observer","observer","_this","onComplete","isActive","updateObserver","m","createObserver","observerCandidate","Action","_super","start","isComplete","subscription","stop","init","observerProps","api","registerParent","BaseMulticast","subscribers","subscriber","subscribe","unsubscribe","parent","stepProgress","segment","subsegment","subsegmentProgressOfTarget","floor","ValueReaction","typeOfV","scheduleVelocityCheck","postRender","velocityCheck","lastUpdated","prev","current","updateCurrent","getVelocityOfCurrent","getSingleVelocity","isValueList","getMapVelocity","getListVelocity","initialSubscription","getVelocity","timeDelta","sub","multi","getCount","getFirst","getOutput","mapApi","setProp","startActions","actions","numActions","updateOutput","numCompletedActions","subs","hasCompleted","methodName","composite","propKey","starter","parallel","parallel$1","unitTypes","findUnitType","createAction","createArrayAction","vectorKeys","firstVectorKey","actionList","childActionProps","reduceArrayValue","getActionCreator","createObjectAction","actionMap","reduceObjectValue","createUnitAction","unitType","createMixerAction","createColorAction","createComplexAction","createVectorAction","typeTests","testNames","isVectorProp","getVectorKeys","testVectorProps","some","createVectorTests","testProp","isUnitProp","decay","timeConstant","_f","restDelta","modifyTarget","elapsed","amplitude","idealTarget","frameDelta","exp","isMoving","vectorDecay","spring","stiffness","damping","_g","mass","_h","restSpeed","_j","initialVelocity","position","prevPosition","dampingRatio","angularFreq","envelope","expoDecay","cos","isBelowVelocityThreshold","isBelowDisplacementThreshold","vectorSpring","scrubber","reverseEase","seek","vectorScrubber","tween","flip","loop","yoyo","repeatDelay","_k","_l","flipCount","_m","yoyoCount","_o","loopCount","playhead","currentProgress","reverseAnimation","updateTween","startTimer","stopTimer","getElapsed","getProgress","pause","resume","newProgress","reverse","clampProgress$1","keyframes","easings","times","tweenProps","defaultEasings","defaultTimings","scrubbers","rangeLength","finalInputIndex","finalScrubberIndex","scrub","progressInRange","interpolateScrubbers","physics","acceleration","friction","springStrength","setAcceleration","setFriction","setSpringStrength","setSpringTarget","setVelocity","vectorPhysics","listen","events","eventNames","eventName","addEventListener","removeEventListener","defaultPointerPos","clientX","clientY","pageX","pageY","eventToPoint","points","isTouchDevice","passive","capture","touches","numTouches","thisTouch","isMouseDevice","getFirstTouch","pointer","preventDefault","initialDistance","initialRotation","isGesture","firstTouch","secondTouch","updatePoint","newDistance","newRotation","updateOnMove","multitouch","mouse","chain","playCurrent","delay","timeToDelay","timeout","clearTimeout","freeze","conditional","check","interpolate","inputLength","interpolator","fastInterpolate","lastInputIndex","mixerIndex","foundMixerIndex","slowInterpolate","blendArray","blendColor","smooth","strength","previousValue","currentFramestamp","snap","i_1","numPoints_1","lastDistance","generateStaticSpring","nonlinearSpring","linearSpring","wrap","appendUnit","st","transformMap","childTransformers","childTransformer","getPoseValues","transition","delayChildren","staggerChildren","staggerDirection","afterChildren","beforeChildren","preTransition","applyAtStart","applyAtEnd","resolveProp","poseDefault","pose","defaultValue","resolveProps","resolveTransition","convertTransitionDefinition","getInstantTransition","resolvedTransition","resolvedTransitionMap","keyTransition","applyValues","toApply","setValueNative","valueToSet","createPoseSetter","setterProps","poses","startAction","stopAction","addActionDelay","getTransitionProps","resolveTarget","transformPose","posePriority","nextProps","propagate","children","activeActions","activePoses","hasChildren","baseTransitionProps","nextPose","getChildAnimations","animations","stagger","maxStaggerDuration","generateStaggerDuration","child","startChildAnimations","getParentAnimations","getTransition","valuePoses","existingIndex","priority","insertionIndex","poseList","priorityList","priorityIndex","nextHighestPriorityIndex","findInsertionIndex","Promise","transitionProps","resolveTransitionProps","poseDelay","resolve","DEFAULT_INITIAL_POSE","defaultReadValueFromSource","includes","isScale","getPosesToSearch","posesToSearch","getInitialValue","initialPose","readValueFromSource","thisPose","valueToResolve","readValueFromPose","scrapeValuesFromPose","userSetValues","createValue","convertValue","initValue","createValues","createValueMap","valuesHaveSet","setValues","poseKey","setNativeValues","ancestorValues","readValue","valueKey","passiveProps","fromParent","valueToBind","ancestors","foundAncestor","label","getAncestorValue","passiveParentKey","passiveParent","bindPassiveValues","generateTransitions","defaultTransitions","applyDefaultTransition","getDefaultProps","bindOnChange","selectValueToRead","extendAPI","config","parentValues","unshift","onChange","selectPoses","unset","poseName","poseProps","posesToSet","poseIndex","currentPose","priorityOrder","animationsToResolve","aP","bP","poseToSet","valueName","selectValue","allValues","selectAllValues","setProps","newProps","_addChild","childConfig","factory","removeChild","clearChildren","destroy","clear","BoundingBoxDimension","singleAxisPointer","axis","applyXOffset_1","applyYOffset_1","delta_1","pointerX","pointerY","createPointer","axisPointerCreator","measurement","dragBounds","axisPointer","measurementAsPixels","transformQueue","resolvedDragBounds_1","just","underDampedSpring","overDampedSpring","intelligentTransition","dragAction","justAxis","animationLookup","easingLookup","linear","easeInOut","valueTypeTests","testValueType","delay$$1","addListenerToValue","raw","elementStyler","transform$$1","createPassiveValue","_","action$$1","reaction","def","isAction","definedEase","baseProps","getAction","outputPipe","createDimensions","hasMeasured","measure","value$$1","makeUIEventApplicator","startEvents","endEvents","startPose","endPose","startCallback","endCallback","useDocumentToEnd","preventScroll","poser","startListener","endListener","moveListener","touchMoveListener","eventStartListener","startEvent","eventEndListener","documentElement","endEvent","buttons","draggable","hoverable","focusable","pressable","eventKeys","ORIGIN_CENTER","ORIGIN_END","findCenter","positionalProps","positionalPropsDict","checkPositionalProp","implicitlyFlipPose","bbox","measureWithoutTransform","prevCenter","nextCenter","flipPose","hasPositionalProps","remainingPose","propsToSet","explicitlyFlipPose","getPosFromMatrix","matrix","pos","getTranslateFromMatrix","pos2","pos3","matrix3d","positionalValues","isPositionalKey","getCurrent","createPoseConfig","onDragStart","onDragEnd","onPressStart","onPressEnd","poseConfig","drag","dragEnd","dragPoses","domPose","pose$$1","isFlipPose","isPositional","positionalPoseKeys","changedPositionalKeys","elementComputedStyle","applyAtEndHasBeenCopied","fromValueType","originBbox","originComputedStyle","targetBbox","convertPositionalUnits","bound","poserApi","addChild","op","appendEventListeners","arg","reactPropsRegex","charCodeAt","createContext","PoseParentConsumer","Consumer","PoseParentProvider","Provider","hasPose","testAlwaysTrue","filterProps","elementType","onValueChange","innerRef","_pose","onPoseComplete","getParentPoseConfig","registerChild","onUnmount","getInitialPoseFromParent","popFromFlow","PoseElement","childrenHandlers","flushChildren","getInitialPose","setRef","ref","Element","shouldForwardProp","parentPose","initialPoses","getFirstPose","firstPose","getSetProps","el","popStyle","offsetTop","offsetLeft","offsetWidth","offsetHeight","componentDidMount","obj","onRegistered","initPoser","getSnapshotBeforeUpdate","componentDidUpdate","prevProps","prevIsArray","nextIsArray","numPrev","setPose","componentWillUnmount","shouldPick","picked","PureComponent","componentCache","createComponentFactory","componentFactory","forwardRef","withParent","parentCtx","posed","component","getKey","toString","prependProps","handleChildrenTransitions","newState","displayedChildren","finishedLeaving","hasInitialized","indexedChildren","scheduleChildRemoval","incomingChildren","preEnterPose","enterPose","exitPose","animateOnMount","flipMove","enterAfterExit","propsForChildren","onRest","targetChildren","makeChildList","nextState","prevKeys","nextKeys","hasPropsForChildren","entering","leaving","newlyLeaving","isLeaving","moving","newChildProps","newChild","cloneElement","handleTransition","list","Children","Transition","leavingKey","setState","shouldComponentUpdate","defaultProps","getDerivedStateFromProps","Component","PoseGroup","__esModule","json","date","boolean","numericObject","numericArray","replaceIn","multiReplaceIn","pushIn","multiPushIn","_urlQueryConfig2","_urlQueryConfig","_serialize","_updateUrlQuery","enumerable","multiReplaceInUrlQuery","_updateUrlQueryFromAction","_urlAction2","_configureUrlQuery3","_interopRequireDefault","_Serialize","newObj","_interopRequireWildcard","_urlQueryDecoder3","_urlQueryEncoder3","_UrlQueryParamTypes3","_UrlUpdateTypes3","_addUrlProps3","_RouterToUrlQuery3","_urlAction3","_urlQueryMiddleware3","_urlQueryReducer3","_subquery3","_subqueryOmit3","_createClass","defineProperties","descriptor","configurable","writable","Constructor","protoProps","staticProps","_react","_react2","_propTypes2","_configureUrlQuery2","_classCallCheck","instance","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","RouterToUrlQuery","_Component","getPrototypeOf","_this2","routerOldContext","router","RouterContext","routerContext","RouterToUrlQueryLogic","only","routerNewContext","propTyps","contextTypes","_Component2","history","transitionTo","replaceWith","propTypes","_options$mapUrlToProp","mapUrlToProps","mapUrlChangeHandlersToProps","urlPropsQueryConfig","addRouterParams","addUrlChangeHandlers","changeHandlerName","WrappedComponent","cachedHandlers","decodeQuery","_urlQueryDecoder2","displayName","AddUrlProps","propsWithUrl","handlers","handlersAccum","propName","_urlPropsQueryConfig$","updateType","_urlPropsQueryConfig$2","queryParam","encodedValue","encode","query","updateUrlQuerySingle","bind","queryValues","_UrlUpdateTypes2","allEncodedValuesUnchanged","queryReplacements","accum","_urlPropsQueryConfig$3","_urlPropsQueryConfig$4","updateUrlQueryMulti","currentQuery","url","search","_queryString","params","getUrlChangeHandlerProps","any","replaceUrlQueryFromAction","encodedQuery","replaceUrlQuery","pushUrlQueryFromAction","pushUrlQuery","replaceInUrlQueryFromAction","_action$payload","replaceInUrlQuery","pushInUrlQueryFromAction","_action$payload2","pushInUrlQuery","multiReplaceInUrlQueryFromAction","multiPushInUrlQueryFromAction","multiPushInUrlQuery","_extends","_typeof","urlAction","urlUpdateAction","urlReplaceAction","actionType","encodeQuery","urlPushAction","urlMultiReplaceInAction","urlMultiPushInAction","urlUpdateInAction","urlReplaceInAction","urlPushInAction","_UrlUpdateTypes","metaFromAction","urlQuery","decodedQuery","decodedValue","_urlQueryReducer2","getState","reducer","readLocationFromStore","shortcircuit","Encoders","Decoders","encodeNumericObject","encodeNumericArray","_slicedToArray","_arr","_n","_s","sliceIterator","encodeDate","decodeDate","encodeBoolean","decodeBoolean","encodeNumber","decodeNumber","encodeString","decodeString","encodeJson","decodeJson","encodeArray","decodeArray","decodeNumericArray","encodeObject","decodeObject","decodeNumericObject","decode","year","getFullYear","month","getMonth","day","getDate","dateString","parts","decoded","Function","arr2","_toConsumableArray","getTime","bool","boolStr","numStr","JSON","stringify","jsonStr","entrySeparator","arrayStr","keyValSeparator","objStr","entryStr","_entryStr$split","_entryStr$split2","newQuery","_defineProperty","mergeLocationQueryOrSearch","queryStr","updateLocation","newLocation","queryAccumulator","updateInLocation","currQuery","multiUpdateInLocation","routing","locationBeforeTransitions","cachedQuery","cachedDecodedQuery","keyConfig","_keyConfig$queryParam","validate","encoded","param","omitParams","strictUriEncode","objectAssign","opts","strict","encodeURIComponent","keysSorter","extract","formatter","arrayFormat","accumulator","exec","parserForArrayFormat","ret","shift","decodeURIComponent","encoderForArrayFormat","val2","payloadCreator","metaCreator","isNull","finalPayloadCreator","head","hasMeta","typeString","actionCreator","initialState","pop","reducers","prevState","_len2","_key2","prevStateIsUndefined","valueIsUndefined","proto","ownKeys","isMap","Reflect","ACTION_TYPE_DELIMITER","hasOnlyInterfaceNames","ownKey","flatten","_temp","partialFlatMap","partialFlatActionType","_ref$namespace","namespace","nextNamespace","RegExp","connectPrefix","types","partials","connectNamespace","mapValue","handleActions","defaultState","flattenedReducerMap","flattenReducerMap","isUndefined","aReducer","isNil","nextReducer","throwReducer","handleAction","compose","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","__REDUX_DEVTOOLS_EXTENSION__","processProps","_value","deepEqual","checked","event","isReactNative","isEvent","nativeEvent","text","detypedEvent","_detypedEvent$target","files","dataTransfer","option","selected","getSelectedValues","navigator","product","normalize","dataKey","componentName","isValidElementType","propsToNotUpdateFor","entity","eventPreventDefault","structure","getIn","ConnectedField","isPristine","pristine","getValue","handleChange","_this$props","_reduxForm","defaultPrevented","onChangeResult","change","asyncValidate","handleFocus","_this$props2","onFocus","focus","handleBlur","_this$props3","onBlur","blur","handleDragStart","_this$props4","setData","eventDataTransferSetData","handleDrop","_this$props5","onDrop","getData","eventDataTransferGetData","_proto","nextPropsKeys","thisPropsKeys","immutableProps","getRenderedComponent","_this$props6","rest","_createFieldProps","toJS","asyncError","asyncValidating","dirty","form","initial","submitError","submitFailed","submitting","syncError","syncWarning","custom","warning","formattedFieldValue","defaultFormattedValue","formatFieldValue","active","autofilled","invalid","touched","valid","visited","createFieldProps","ownProps","_ownProps$_reduxForm","initialValues","formState","getFormState","syncErrors","plain","_error","getSyncError","syncWarnings","_warning","getSyncWarning","connector","objectValue","otherValue","indexOrkey","other","propsEqual","stateEqual","sectionPrefix","setIn","Field","previousValues","getValues","register","_this3","oldName","prefixName","newName","unregister","isRequired","ReduxFormContext","renderChildren","forwardedRef","withReduxForm","Hoc","_React$Component","candidate","stopPropagation","arrayInsert","field","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","removeNum","arraySwap","indexA","indexB","arrayUnshift","autofill","touch","persistentSubmitErrors","clearFields","keepTouched","fields","clearSubmit","clearSubmitErrors","clearAsyncError","initialize","keepDirty","otherMeta","registerField","reset","resetSection","sections","startAsyncValidation","startSubmit","stopAsyncValidation","errors","stopSubmit","submit","setSubmitFailed","_len4","_key4","setSubmitSucceeded","_len5","_key5","_len6","_key6","unregisterField","destroyOnUnmount","untouch","_len7","_key7","updateSyncErrors","updateSyncWarnings","handleErrors","rejected","initialized","trigger","syncValidationPasses","initialRender","lastFieldValidatorKeys","fieldValidatorKeys","is","getError","validators","toArray","generateValidator","ExtendableError","_extendableBuiltin2","message","captureStackTrace","cls","ExtendableBuiltin","_extendableBuiltin","__FLAG__","isSubmissionError","_ExtendableError","SubmissionError","executeSubmit","submitAsSideEffect","onSubmitFail","onSubmitSuccess","submitResult","asyncErrors","asyncValidateResult","reject","mergeErrors","getErrorKeys","createIsValid","hasError","submitErrors","createHasError","ignoreSubmitErrors","nonNullGetFormState","registeredFields","Comp","formActions","arrayActions","checkSubmit","empty","fromJS","isValid","initialConfig","touchOnBlur","touchOnChange","shouldAsyncValidate","shouldValidate","shouldError","shouldWarn","enableReinitialize","keepDirtyOnReinitialize","updateUnregisteredFields","pure","forceUnregisterOnUnmount","Form","wrapped","destroyed","fieldCounts","fieldValidators","fieldWarners","lastFieldWarnerKeys","innerOnSubmit","submitPromise","initializedOnLoad","initIfNeeded","_keepDirty","keepValues","lastInitialValues","updateSyncErrorsIfNeeded","nextSyncErrors","nextError","lastSyncErrors","noErrors","nextNoErrors","clearSubmitPromiseIfNeeded","submitIfNeeded","triggerSubmit","shouldErrorFunction","validateIfNeeded","fieldLevelValidate","getValidators","propsToValidate","_merge2","updateSyncWarningsIfNeeded","nextSyncWarnings","nextWarning","lastSyncWarnings","noWarnings","nextNoWarnings","shouldWarnFunction","warnIfNeeded","_this$props7","fieldLevelWarn","generateWarner","fieldWarnerKeys","getWarners","propsToWarn","_merge3","getValidator","getWarner","nextCount","lastCount","_this$props8","_destroyOnUnmount","getFieldList","keySeq","excludeFieldArray","excludeUnregistered","validator","warners","warner","fieldNeedsValidationForBlur","fieldNeedsValidationForChange","_this$props9","asyncBlurFields","asyncChangeFields","valuesToValidate","blurredField","submitCompleted","listenToSubmit","submitOrEvent","_this$props10","onSubmit","validExceptSubmit","isHotReloading","UNSAFE_componentWillReceiveProps","_config$immutableProp","_this$props11","_this$props12","anyTouched","propNamespace","submitSucceeded","reduxFormProps","handleSubmit","propsToPass","isReactComponent","registerInnerOnSubmit","stateInitial","shouldUpdateInitialValues","shouldResetValues","initialProps","bindForm","boundFormACs","boundArrayACs","boundFocus","connectedFormACs","connectedArrayACs","insert","move","removeAll","swap","ConnectedForm","ReduxForm","_React$Component2","_this4","_proto2","_this$props13","WithContext","castModule","hot","status","deferred","queue","semaphore","task","suspend","release","asap","immediately","patterns","matcher","_predicate","wildcard","matcherCreator","END","isEnd","buffer$1","closed","takers","cb","len","taker","stdChannel","currentTakers","nextTakers","ensureCanMutateNextTakers","chan","o","RUNNING","ABORTED","DONE","resolvePromise","cancelPromise","_effectRunnerMap","nextSagaId","cancelSingleTask","taskToCancel","isRunning","effectRunnerMap","T","env","_ref3","_ref3$channel","maybe","takeCb","P","A","_ref11","digestEffect","effectId","R","_ref12","response","childCbs","C","_ref4","_ref5","proc","_ref6","cpsCb","F","_ref7","_ref8","detached","taskIterator","resolved","createTaskIterator","getIteratorMetaInfo","addTask","isAborted","abort","J","taskOrTasks","_ref9","joinSingleTask","taskToJoin","joiner","joiners","_ref10","S","_ref13","selector","_ref14","data","_ref15","isCancelled","G","_ref16","_ref17","formatLocation","fileName","lineNumber","sagaLocationAsString","sagaMeta","cancelledTasksAsString","cancelledTasks","crashedEffect","addSagaFrame","setCrashedEffect","effect","firstSaga","otherSagas","crashedEffectLocation","code","effectLocationAsString","newTask","mainTask","parentContext","parentEffectId","isRoot","cont","_task","taskResult","taskError","deferredEnd","cancelledDueToErrorTasks","onAbort","tasks","cancelAll","getTasks","forkQueue","end","onError","id","setContext","toPromise","iterator$1","finalRunEffect","finalizeRunEffect","currCb","effectRunner","executingContext","effectSettled","sagaMonitor","effectRejected","effectResolved","effectTriggered","effectCancelled","runSaga","saga","_ref$channel","_ref$context","effectMiddlewares","_ref$onError","rootSagaStarted","actionDispatched","runEffect","boundRunSaga","sagaMiddleware","run","qEnd","safeName","fsmIterator","fsm","startState","stateUpdater","errorState","currentState","takeEvery","worker","yTake","setAction","ac","q1","q2","takeEvery$1"],"sourceRoot":""}