simple-redux-form
Version:
This is simplest redux form
1 lines • 24.4 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.SimpleReduxForm=t(require("react")):e.SimpleReduxForm=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.simpleReduxForm=t.formActions=t.reducer=void 0;var i=r(12),u=o(i),s=r(2),a=n(s),c=r(13),f=o(c);t.reducer=u.default,t.formActions=a,t.simpleReduxForm=f.default},function(t,r){t.exports=e},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INITIALIZE="simple-redux-form/INITIALIZE",t.DESTROY="simple-redux-form/DESTROY",t.SET_FIELD="simple-redux-form/SET_FIELD",t.TOUCH_ALL="simple-redux-form/TOUCH_ALL"},function(e,t,r){function n(e){if(!u(e)||l.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==p}var o=r(19),i=r(20),u=r(22),s="[object Object]",a=Object.prototype,c=Function.prototype.toString,f=a.hasOwnProperty,p=c.call(Object),l=a.toString;e.exports=n},function(e,t,r){"use strict";t.__esModule=!0;var n=r(1);t.default=n.PropTypes.shape({subscribe:n.PropTypes.func.isRequired,dispatch:n.PropTypes.func.isRequired,getState:n.PropTypes.func.isRequired})},function(e,t){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t.default=r},function(e,t){"use strict";function r(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return function(e){return e};var n=function(){var e=t[t.length-1],r=t.slice(0,-1);return{v:function(){return r.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"==typeof n?n.v:void 0}t.__esModule=!0,t.default=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){function n(){b===v&&(b=v.slice())}function i(){return y}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return n(),b.push(e),function(){if(t){t=!1,n();var r=b.indexOf(e);b.splice(r,1)}}}function f(e){if(!(0,u.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,y=h(y,e)}finally{m=!1}for(var t=v=b,r=0;r<t.length;r++)t[r]();return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,f({type:c.INIT})}function l(){var e,t=s;return e={subscribe:function(e){function r(){e.next&&e.next(i())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");r();var n=t(r);return{unsubscribe:n}}},e[a.default]=function(){return this},e}var d;if("function"==typeof t&&"undefined"==typeof r&&(r=t,t=void 0),"undefined"!=typeof r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,y=t,v=[],b=v,m=!1;return f({type:c.INIT}),d={dispatch:f,subscribe:s,getState:i,replaceReducer:p},d[a.default]=l,d}t.__esModule=!0,t.ActionTypes=void 0,t.default=o;var i=r(3),u=n(i),s=r(31),a=n(s),c=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=r(7),i=n(o),u=r(30),s=n(u),a=r(29),c=n(a),f=r(28),p=n(f),l=r(6),d=n(l),h=r(9);n(h);t.createStore=i.default,t.combineReducers=s.default,t.bindActionCreators=c.default,t.applyMiddleware=p.default,t.compose=d.default},function(e,t){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t.default=r},function(e,t,r){"use strict";function n(e,t,r){return{type:s.INITIALIZE,initialValue:e,form:t,fields:r}}function o(e,t,r){return{type:s.SET_FIELD,field:e,value:t,form:r}}function i(e,t){return{type:s.TOUCH_ALL,form:e,fields:t}}function u(e){return{type:s.DESTROY,form:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=n,t.setField=o,t.touchAll=i,t.destroy=u;var s=r(2)},function(e,t){"use strict";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(t&&t[e])return t[e].value}function o(e,t){return t.reduce(function(t,o){return s({},t,r({},o,n(o,e)))},Object.create(null))}function i(e,t){var r={name:e,touched:!1,onChange:function(r){var n=r.target,o=n.type,i=n.checked,u=n.value,s=o&&"checkbox"===o.toLowerCase();t(e,s?i:u)}};return s({},r,{setValue:function(r){t(e,r)}})}function u(e){var t=e;null==t&&(t={});for(var r=!1,n=Object.keys(t),o=0;o<n.length;o++)if(void 0!==t[n[o]]){r=!0;break}return r}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.getFieldValue=n,t.simplifiedVlaues=o,t.hasSyncErrors=u,t.createField=i},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){var e=arguments.length<=0||void 0===arguments[0]?a:arguments[0],t=arguments[1];switch(t.type){case s.INITIALIZE:return u({},e,n({},t.form,u({},t.fields.reduce(function(e,r){return u({},e,n({},r,{value:t.initialValue[r]}))},{}),{initialized:!0})));case s.DESTROY:var r=u({},e);return delete r[t.form],u({},r);case s.SET_FIELD:var o=t.field,c=t.value,f=t.form;return u({},e,n({},f,u({},e[f],n({},o,{touched:!0,value:c}))));case s.TOUCH_ALL:var p=function(){var r=t.fields,o=t.form;return{v:u({},e,n({},o,u({},e[o],r.reduce(function(t,r){return u({},t,n({},r,{value:e[o]&&e[o][r]?e[o][r].value:"",touched:!0}))},{}))))}}();if("object"===("undefined"==typeof p?"undefined":i(p)))return p.v;default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=o;var s=r(2),a={}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){function r(e){return{currentForm:e.forms[y]}}function n(e){return{actions:(0,h.bindActionCreators)({setField:b.setField,initialize:b.initialize,touchAll:b.touchAll},e),dispatch:e}}var a=t.form,y=void 0===a?"":a,P=t.fields,g=void 0===P?[]:P,O=t.getInitialState,w=t.validate,_=void 0===w?function(){}:w,j=function(t){function r(e){i(this,r);var t=u(this,Object.getPrototypeOf(r).call(this,e));return t.state={model:null},t.onFieldChange=t.onFieldChange.bind(t),t.validate=t.validate.bind(t),t}return s(r,t),f(r,[{key:"componentWillMount",value:function(){this.createFields(this.props.fields),this.setModel()}},{key:"componentDidMount",value:function(){var e=O&&O(this.props);e||(e={});var t=this.props.currentForm,r=!(!t||!t.initialized)&&t.initialized;!r&&Object.keys(e).length>0&&(this.props.actions.initialize(e,y,this.props.fields),this.setModel())}},{key:"componentWillReceiveProps",value:function(e){if(!(0,v.default)(this.props.currentForm,e.currentForm)){var t=Object.keys(this.fields);(0,v.default)(t,e.fields)||this.createFields(e.fields),this.setModel(e.currentForm)}var r=this.props.currentForm,n=!(!r||!r.initialized)&&r.initialized;if(!n){var o=O&&O(e);o&&this.props.actions.initialize(o,y,this.props.fields)}}},{key:"componentWillUnmount",value:function(){this.fields=null}},{key:"onFieldChange",value:function(e,t){this.props.actions.setField(e,t,y)}},{key:"setModel",value:function(e){var t=this,r=Object.keys(this.fields);this.values=(0,m.simplifiedVlaues)(e,r);var n=_(this.values,this.props);r.forEach(function(r){var o=t.fields,i=t.values;o[r].value=i[r],o[r].error=n&&n[r]?n[r]:void 0,o[r].touched=!(!e||!e[r])&&e[r].touched}),this.fields=c({},this.fields),this.allValid=!(0,m.hasSyncErrors)(n)}},{key:"validate",value:function(){return this.props.actions.touchAll(y,this.props.fields),this.allValid}},{key:"createFields",value:function(e){var t=this,r=e.reduce(function(e,r){return c({},e,o({},r,(0,m.createField)(r,t.onFieldChange)))},{});this.fields=c({},r)}},{key:"render",value:function(){return l.default.createElement(e,c({},this.props,{fields:this.fields,allValid:this.allValid,values:this.values,validate:this.validate}))}}]),r}(p.Component);return j.propTypes={fields:p.PropTypes.array,actions:p.PropTypes.object,currentForm:p.PropTypes.object},j.defaultProps={fields:g},(0,d.connect)(r,n)(j)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=a;var p=r(1),l=n(p),d=r(25),h=r(8),y=r(14),v=n(y),b=r(10),m=r(11)},function(e,t,r){function n(e){return null===e||void 0===e}function o(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,r){var i,f;if(n(e)||n(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=u.call(e),t=u.call(t),c(e,t,r));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var p=s(e),l=s(t)}catch(d){return!1}if(p.length!=l.length)return!1;for(p.sort(),l.sort(),i=p.length-1;i>=0;i--)if(p[i]!=l[i])return!1;for(i=p.length-1;i>=0;i--)if(f=p[i],!c(e[f],t[f],r))return!1;return typeof e==typeof t}var u=Array.prototype.slice,s=r(16),a=r(15),c=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:i(e,t,r))}},function(e,t){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?r:n,t.supported=r,t.unsupported=n},function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}t=e.exports="function"==typeof Object.keys?Object.keys:r,t.shim=r},function(e,t){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,i){if("string"!=typeof t){var u=Object.getOwnPropertyNames(t);o&&(u=u.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<u.length;++s)if(!(r[u[s]]||n[u[s]]||i&&i[u[s]]))try{e[u[s]]=t[u[s]]}catch(a){}}return e}},function(e,t,r){"use strict";var n=function(e,t,r,n,o,i,u,s){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,u,s],f=0;a=new Error(t.replace(/%s/g,function(){return c[f++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}};e.exports=n},function(e,t,r){var n=r(21),o=Object.getPrototypeOf,i=n(o,Object);e.exports=i},function(e,t){function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}e.exports=r},function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},function(e,t){function r(e){return!!e&&"object"==typeof e}e.exports=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s=r(1),a=r(4),c=n(a),f=r(5),p=(n(f),function(e){function t(r,n){o(this,t);var u=i(this,e.call(this,r,n));return u.store=r.store,u}return u(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return s.Children.only(e)},t}(s.Component));t.default=p,p.propTypes={store:c.default.isRequired,children:s.PropTypes.element.isRequired},p.childContextTypes={store:c.default.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function a(e,t){try{return e.apply(t)}catch(r){return E.value=r,E}}function c(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],c=Boolean(e),l=e||j,h=void 0;h="function"==typeof t?t:t?(0,b.default)(t):S;var v=r||T,m=n.pure,P=void 0===m||m,g=n.withRef,w=void 0!==g&&g,x=P&&v!==T,C=M++;return function(e){function t(e,t,r){var n=v(e,t,r);return n}var r="Connect("+s(e)+")",n=function(n){function s(e,t){o(this,s);var u=i(this,n.call(this,e,t));u.version=C,u.store=e.store||t.store,(0,_.default)(u.store,'Could not find "store" in either the context or '+('props of "'+r+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+r+'".'));var a=u.store.getState();return u.state={storeState:a},u.clearCache(),u}return u(s,n),s.prototype.shouldComponentUpdate=function(){return!P||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var r=e.getState(),n=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(r,t):this.finalMapStateToProps(r);return n},s.prototype.configureFinalMapState=function(e,t){var r=l(e.getState(),t),n="function"==typeof r;return this.finalMapStateToProps=n?r:l,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,n?this.computeStateProps(e,t):r},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var r=e.dispatch,n=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(r,t):this.finalMapDispatchToProps(r);return n},s.prototype.configureFinalMapDispatch=function(e,t){var r=h(e.dispatch,t),n="function"==typeof r;return this.finalMapDispatchToProps=n?r:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,n?this.computeDispatchProps(e,t):r},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,y.default)(e,this.stateProps))&&(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,y.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&x&&(0,y.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){c&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){P&&(0,y.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!P||t!==e){if(P&&!this.doStatePropsDependOnOwnProps){var r=a(this.updateStatePropsIfNeeded,this);if(!r)return;r===E&&(this.statePropsPrecalculationError=E.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,_.default)(w,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,n=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var u=!0,s=!0;P&&i&&(u=r||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var a=!1,c=!1;n?a=!0:u&&(a=this.updateStatePropsIfNeeded()),s&&(c=this.updateDispatchPropsIfNeeded());var l=!0;return l=!!(a||c||t)&&this.updateMergedPropsIfNeeded(),!l&&i?i:(w?this.renderedElement=(0,p.createElement)(e,f({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(e,this.mergedProps),this.renderedElement)},s}(p.Component);return n.displayName=r,n.WrappedComponent=e,n.contextTypes={store:d.default},n.propTypes={store:d.default},(0,O.default)(n,e)}}var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.__esModule=!0,t.default=c;var p=r(1),l=r(4),d=n(l),h=r(26),y=n(h),v=r(27),b=n(v),m=r(5),P=(n(m),r(3)),g=(n(P),r(17)),O=n(g),w=r(18),_=n(w),j=function(e){return{}},S=function(e){return{dispatch:e}},T=function(e,t,r){return f({},r,e,t)},E={value:null},M=0},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=r(23),i=n(o),u=r(24),s=n(u);t.Provider=i.default,t.connect=s.default},function(e,t){"use strict";function r(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++)if(!o.call(t,r[i])||e[r[i]]!==t[r[i]])return!1;return!0}t.__esModule=!0,t.default=r},function(e,t,r){"use strict";function n(e){return function(t){return(0,o.bindActionCreators)(e,t)}}t.__esModule=!0,t.default=n;var o=r(8)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(r,n,o){var u=e(r,n,o),a=u.dispatch,c=[],f={getState:u.getState,dispatch:function(e){return a(e)}};return c=t.map(function(e){return e(f)}),a=s.default.apply(void 0,c)(u.dispatch),i({},u,{dispatch:a})}}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=o;var u=r(6),s=n(u)},function(e,t){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function n(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var u=n[i],s=e[u];"function"==typeof s&&(o[u]=r(s,t))}return o}t.__esModule=!0,t.default=n},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var r=t&&t.type,n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function u(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var u=t[n];"function"==typeof e[u]&&(r[u]=e[u])}var s,a=Object.keys(r);try{i(r)}catch(c){s=c}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var n=!1,i={},u=0;u<a.length;u++){var c=a[u],f=r[c],p=e[c],l=f(p,t);if("undefined"==typeof l){var d=o(c,t);throw new Error(d)}i[c]=l,n=n||l!==p}return n?i:e}}t.__esModule=!0,t.default=u;var s=r(7),a=r(3),c=(n(a),r(9));n(c)},function(e,t,r){(function(t){"use strict";e.exports=r(32)(t||window||this)}).call(t,function(){return this}())},function(e,t){"use strict";e.exports=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}}])});