rgc-counter-npm-package
Version:
It is a sample project for showing how to create a React.js app into an NPM package.
2 lines • 38.4 kB
JavaScript
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var n=t("object"===typeof exports?require("react"):e.react);for(var r in n)("object"===typeof exports?exports:e)[r]=n[r]}}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){if("object"!==("undefined"===typeof e?"undefined":h(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,n){function i(){g===v&&(g=v.slice())}function u(){if(m)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return b}function a(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(m)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return i(),g.push(e),function(){if(t){if(m)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,i();var n=g.indexOf(e);g.splice(n,1)}}}function c(e){if(!r(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,b=y(b,e)}finally{m=!1}for(var t=v=g,n=0;n<t.length;n++){(0,t[n])()}return e}function s(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");y=e,c({type:d.REPLACE})}function f(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(u())}if("object"!==("undefined"===typeof e?"undefined":h(e))||null===e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[l.a]=function(){return this},e}var p;if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var y=e,b=t,v=[],g=v,m=!1;return c({type:d.INIT}),p={dispatch:c,subscribe:a,getState:u,replaceReducer:s},p[l.a]=f,p}function i(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:d.INIT}))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. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.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, but can be null.')})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"===typeof e[o]&&(n[o]=e[o])}var a=Object.keys(n),c=void 0;try{u(n)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var r=!1,o={},u=0;u<a.length;u++){var s=a[u],f=n[s],p=e[s],l=f(p,t);if("undefined"===typeof l){var d=i(s,t);throw new Error(d)}o[s]=l,r=r||l!==p}return r?o:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function s(e,t){if("function"===typeof e)return c(e,t);if("object"!==("undefined"===typeof e?"undefined":h(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":"undefined"===typeof e?"undefined":h(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],u=e[i];"function"===typeof u&&(r[i]=c(u,t))}return r}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=e.apply(void 0,r),u=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:i.getState,dispatch:function(){return u.apply(void 0,arguments)}},c=t.map(function(e){return e(a)});return u=f.apply(void 0,c)(i.dispatch),y({},i,{dispatch:u})}}}n.d(t,"d",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return p});var l=n(28),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(17),o=(n(7),n(25));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return o.a})},function(e,t,n){e.exports=n(18)()},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u});var r=n(5),o=n.n(r),i=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),u=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(){}function c(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function s(e){var t,n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=s.getDisplayName,l=void 0===f?function(e){return"ConnectAdvanced("+e+")"}:f,w=s.methodName,O=void 0===w?"connectAdvanced":w,j=s.renderCountProp,S=void 0===j?void 0:j,P=s.shouldHandleStateChanges,x=void 0===P||P,E=s.storeKey,C=void 0===E?"store":E,T=s.withRef,N=void 0!==T&&T,k=u(s,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=C+"Subscription",A=g++,R=(t={},t[C]=b.a,t[D]=b.b,t),M=(n={},n[D]=b.b,n);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+O+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",u=l(n),s=v({},k,{getDisplayName:l,methodName:O,renderCountProp:S,shouldHandleStateChanges:x,storeKey:C,withRef:N,displayName:u,wrappedComponentName:n,WrappedComponent:t}),f=function(n){function f(e,t){r(this,f);var i=o(this,n.call(this,e,t));return i.version=A,i.state={},i.renderCount=0,i.store=e[C]||t[C],i.propsMode=Boolean(e[C]),i.setWrappedInstance=i.setWrappedInstance.bind(i),d()(i.store,'Could not find "'+C+'" in either the context or props of "'+u+'". Either wrap the root component in a <Provider>, or explicitly pass "'+C+'" as a prop to "'+u+'".'),i.initSelector(),i.initSubscription(),i}return i(f,n),f.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[D]=t||this.context[D],e},f.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},f.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},f.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},f.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=a,this.store=null,this.selector.run=a,this.selector.shouldComponentUpdate=!1},f.prototype.getWrappedInstance=function(){return d()(N,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+O+"() call."),this.wrappedInstance},f.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},f.prototype.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=c(t,this.store),this.selector.run(this.props)},f.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new y.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},f.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(m)):this.notifyNestedSubs()},f.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},f.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},f.prototype.addExtraProps=function(e){if(!N&&!S&&(!this.propsMode||!this.subscription))return e;var t=v({},e);return N&&(t.ref=this.setWrappedInstance),S&&(t[S]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},f.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},f}(h.Component);return f.WrappedComponent=t,f.displayName=u,f.childContextTypes=M,f.contextTypes=R,f.propTypes=R,p()(f,t)}}t.a=s;var f=n(22),p=n.n(f),l=n(23),d=n.n(l),h=n(0),y=(n.n(h),n(24)),b=n(6),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=0,m={}},function(e,t,n){"use strict";function r(e){return function(t,n){function r(){return o}var o=e(t,n);return r.dependsOnOwnProps=!1,r}}function o(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,n){var r=(n.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=o(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=o(i),i=r(t,n)),i},r}}t.a=r,t.b=i;n(9)},function(e,t,n){"use strict";n(31),n(2)},function(e,t,n){"use strict";var r=n(33),o=r.a.Symbol;t.a=o},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r="INC",o="DEC"},function(e,t,n){e.exports=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);n.d(t,"Counter",function(){return r.a})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(15),u=(n.n(i),n(16)),a=n(45),c=n(4),s=n(46),f=function(){return o.a.createElement(c.a,{store:s.a},o.a.createElement(u.a,null))};t.a=f,Object(a.a)()},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),u=n(1),a=n(44),c=this,s=function(e){var t=function(t){e.incrementCounter(t)},n=function(t){e.decrementCounter(t)};return o.a.createElement("div",{style:{textAlign:"center"}},o.a.createElement("button",{onClick:t.bind(c,1)},"+"),o.a.createElement("div",null,"Counter: ",e.counterProps.counterValue),o.a.createElement("button",{onClick:n.bind(c,1)},"-"))},f=function(e){return{counterProps:e.counterState}},p=function(e){return Object(u.b)(a,e)};t.a=Object(i.b)(f,p)(s)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var u=n(0),a=(n.n(u),n(5)),c=n.n(a),s=n(6);n(2);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],a=n||t+"Subscription",f=function(e){function n(i,u){r(this,n);var a=o(this,e.call(this,i,u));return a[t]=i.store,a}return i(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[a]=null,e},n.prototype.render=function(){return u.Children.only(this.props.children)},n}(u.Component);return f.propTypes={store:s.a.isRequired,children:c.a.element.isRequired},f.childContextTypes=(e={},e[t]=s.a.isRequired,e[a]=s.b,e),f}()},function(e,t,n){"use strict";var r=n(19),o=n(20),i=n(21);e.exports=function(){function e(e,t,n,r,u,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,i,u,a,c){if(o(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,u,a,c],p=0;s=new Error(t.replace(/%s/g,function(){return f[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,a=u&&u(Object);return function c(s,f,p){if("string"!==typeof f){if(a){var l=u(f);l&&l!==a&&c(s,l,p)}var d=r(f);o&&(d=d.concat(o(f)));for(var h=0;h<d.length;++h){var y=d[h];if(!e[y]&&!t[y]&&(!p||!p[y])){var b=i(f,y);try{n(s,y,b)}catch(e){}}}return s}return s}})},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,u,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,u,a],f=0;c=new Error(t.replace(/%s/g,function(){return s[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=[],t=[];return{clear:function(){t=i,e=i},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==i&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return a});var i=null,u={notify:function(){}},a=function(){function e(t,n,o){r(this,e),this.store=t,this.parentSub=n,this.onStateChange=o,this.unsubscribe=null,this.listeners=u}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=o())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}()},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function i(e,t){return e===t}var u=n(7),a=n(26),c=n(27),s=n(40),f=n(41),p=n(42),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?u.a:t,d=e.mapStateToPropsFactories,h=void 0===d?s.a:d,y=e.mapDispatchToPropsFactories,b=void 0===y?c.a:y,v=e.mergePropsFactories,g=void 0===v?f.a:v,m=e.selectorFactory,w=void 0===m?p.a:m;return function(e,t,u){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=c.pure,f=void 0===s||s,p=c.areStatesEqual,d=void 0===p?i:p,y=c.areOwnPropsEqual,v=void 0===y?a.a:y,m=c.areStatePropsEqual,O=void 0===m?a.a:m,j=c.areMergedPropsEqual,S=void 0===j?a.a:j,P=r(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=o(e,h,"mapStateToProps"),E=o(t,b,"mapDispatchToProps"),C=o(u,g,"mergeProps");return n(w,l({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:C,pure:f,areStatesEqual:d,areOwnPropsEqual:v,areStatePropsEqual:O,areMergedPropsEqual:S},P))}}()},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var u=0;u<n.length;u++)if(!i.call(t,n[u])||!r(e[n[u]],t[n[u]]))return!1;return!0}t.a=o;var i=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(a.b)(e,"mapDispatchToProps"):void 0}function o(e){return e?void 0:Object(a.a)(function(e){return{dispatch:e}})}function i(e){return e&&"object"===typeof e?Object(a.a)(function(t){return Object(u.b)(e,t)}):void 0}var u=n(1),a=n(8);t.a=[r,o,i]},function(e,t,n){"use strict";(function(e,r){var o,i=n(30);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var u=Object(i.a)(o);t.a=u}).call(t,n(3),n(29)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.a=r},function(e,t,n){"use strict";function r(e){if(!Object(u.a)(e)||Object(o.a)(e)!=a)return!1;var t=Object(i.a)(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&f.call(n)==l}var o=n(32),i=n(37),u=n(39),a="[object Object]",c=Function.prototype,s=Object.prototype,f=c.toString,p=s.hasOwnProperty,l=f.call(Object);t.a=r},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?c:a:s&&s in Object(e)?Object(i.a)(e):Object(u.a)(e)}var o=n(10),i=n(35),u=n(36),a="[object Null]",c="[object Undefined]",s=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(34),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(3))},function(e,t,n){"use strict";function r(e){var t=u.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}var o=n(10),i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.a=r},function(e,t,n){"use strict";var r=n(38),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(i.b)(e,"mapStateToProps"):void 0}function o(e){return e?void 0:Object(i.a)(function(){return{}})}var i=n(8);t.a=[r,o]},function(e,t,n){"use strict";function r(e,t,n){return a({},n,e,t)}function o(e){return function(t,n){var r=(n.displayName,n.pure),o=n.areMergedPropsEqual,i=!1,u=void 0;return function(t,n,a){var c=e(t,n,a);return i?r&&o(c,u)||(u=c):(i=!0,u=c),u}}}function i(e){return"function"===typeof e?o(e):void 0}function u(e){return e?void 0:function(){return r}}var a=(n(9),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});t.a=[i,u]},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function i(e,t,n,r,o){function i(o,i){return h=o,y=i,b=e(h,y),v=t(r,y),g=n(b,v,y),d=!0,g}function u(){return b=e(h,y),t.dependsOnOwnProps&&(v=t(r,y)),g=n(b,v,y)}function a(){return e.dependsOnOwnProps&&(b=e(h,y)),t.dependsOnOwnProps&&(v=t(r,y)),g=n(b,v,y)}function c(){var t=e(h,y),r=!l(t,b);return b=t,r&&(g=n(b,v,y)),g}function s(e,t){var n=!p(t,y),r=!f(e,h);return h=e,y=t,n&&r?u():n?a():r?c():g}var f=o.areStatesEqual,p=o.areOwnPropsEqual,l=o.areStatePropsEqual,d=!1,h=void 0,y=void 0,b=void 0,v=void 0,g=void 0;return function(e,t){return d?s(e,t):i(e,t)}}function u(e,t){var n=t.initMapStateToProps,u=t.initMapDispatchToProps,a=t.initMergeProps,c=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(e,c),f=u(e,c),p=a(e,c);return(c.pure?i:o)(s,f,p,e,c)}t.a=u;n(43)},function(e,t,n){"use strict";n(2)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"incrementCounter",function(){return o}),n.d(t,"decrementCounter",function(){return i});var r=n(11),o=function(e){return{type:r.b,value:e}},i=function(e){return{type:r.a,value:e}}},function(e,t,n){"use strict";function r(){if("serviceWorker"in navigator){if(new URL("/DimitriMikadze/create-react-library",window.location).origin!==window.location.origin)return;window.addEventListener("load",function(){var e="/DimitriMikadze/create-react-library/service-worker.js";u?(i(e),navigator.serviceWorker.ready.then(function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://goo.gl/SC7cgQ")})):o(e)})}}function o(e){navigator.serviceWorker.register(e).then(function(e){e.onupdatefound=function(){var t=e.installing;t.onstatechange=function(){"installed"===t.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))}}}).catch(function(e){console.error("Error during service worker registration:",e)})}function i(e){fetch(e).then(function(t){404===t.status||-1===t.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(function(e){e.unregister().then(function(){window.location.reload()})}):o(e)}).catch(function(){console.log("No internet connection found. App is running in offline mode.")})}t.a=r;var u=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},function(e,t,n){"use strict";var r=n(1),o=n(47),i=n(49),u=n.n(i),a=n(50),c=n.n(a),s=Object(r.a)(u.a,c.a)(r.d),f=s(o.a);t.a=f},function(e,t,n){"use strict";var r=n(1),o=n(48);t.a=Object(r.c)({counterState:o.a})},function(e,t,n){"use strict";var r=n(11),o={counterValue:0},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments[1];switch(t.type){case r.b:return console.log("Incrementing...",e,t),{counterValue:e.counterValue+t.value};case r.a:return console.log("Decrementing...",e,t),{counterValue:e.counterValue-t.value};default:return console.log("No action type matched in counterReducer.js"),{counterValue:e.counterValue}}};t.a=i},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){(function(e){!function(e,n){n(t)}(0,function(t){"use strict";function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function u(e,t){u.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function a(e,t,n){a.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function s(e){var t="undefined"==typeof e?"undefined":k(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function f(e,t,n,r,p,l,d){p=p||[],d=d||[];var h=p.slice(0);if("undefined"!=typeof l){if(r){if("function"==typeof r&&r(h,l))return;if("object"===("undefined"==typeof r?"undefined":k(r))){if(r.prefilter&&r.prefilter(h,l))return;if(r.normalize){var y=r.normalize(h,l,e,t);y&&(e=y[0],t=y[1])}}}h.push(l)}"regexp"===s(e)&&"regexp"===s(t)&&(e=e.toString(),t=t.toString());var b="undefined"==typeof e?"undefined":k(e),v="undefined"==typeof t?"undefined":k(t),g="undefined"!==b||d&&d[d.length-1].lhs&&d[d.length-1].lhs.hasOwnProperty(l),m="undefined"!==v||d&&d[d.length-1].rhs&&d[d.length-1].rhs.hasOwnProperty(l);if(!g&&m)n(new i(h,t));else if(!m&&g)n(new u(h,e));else if(s(e)!==s(t))n(new o(h,e,t));else if("date"===s(e)&&e-t!==0)n(new o(h,e,t));else if("object"===b&&null!==e&&null!==t)if(d.filter(function(t){return t.lhs===e}).length)e!==t&&n(new o(h,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w<e.length;w++)w>=t.length?n(new a(h,w,new u(void 0,e[w]))):f(e[w],t[w],n,r,h,w,d);for(;w<t.length;)n(new a(h,w,new i(void 0,t[w++])))}else{var O=Object.keys(e),j=Object.keys(t);O.forEach(function(o,i){var u=j.indexOf(o);u>=0?(f(e[o],t[o],n,r,h,o,d),j=c(j,u)):f(e[o],void 0,n,r,h,o,d)}),j.forEach(function(e){f(void 0,t[e],n,r,h,e,d)})}d.length=d.length-1}else e!==t&&("number"===b&&isNaN(e)&&isNaN(t)||n(new o(h,e,t)))}function p(e,t,n,r){return r=r||[],f(e,t,function(e){e&&r.push(e)},n),r.length?r:void 0}function l(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":l(o[n.path[r]],n.index,n.item);break;case"D":delete o[n.path[r]];break;case"E":case"N":o[n.path[r]]=n.rhs}}else switch(n.kind){case"A":l(e[t],n.index,n.item);break;case"D":e=c(e,t);break;case"E":case"N":e[t]=n.rhs}return e}function d(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,o=-1,i=n.path?n.path.length-1:0;++o<i;)"undefined"==typeof r[n.path[o]]&&(r[n.path[o]]="number"==typeof n.path[o]?[]:{}),r=r[n.path[o]];switch(n.kind){case"A":l(n.path?r[n.path[o]]:r,n.index,n.item);break;case"D":delete r[n.path[o]];break;case"E":case"N":r[n.path[o]]=n.rhs}}}function h(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":h(o[n.path[r]],n.index,n.item);break;case"D":case"E":o[n.path[r]]=n.lhs;break;case"N":delete o[n.path[r]]}}else switch(n.kind){case"A":h(e[t],n.index,n.item);break;case"D":case"E":e[t]=n.lhs;break;case"N":e=c(e,t)}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r,o,i=e;for(o=n.path.length-1,r=0;r<o;r++)"undefined"==typeof i[n.path[r]]&&(i[n.path[r]]={}),i=i[n.path[r]];switch(n.kind){case"A":h(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}}function b(e,t,n){if(e&&t){f(e,t,function(r){n&&!n(e,t,r)||d(e,t,r)})}}function v(e){return"color: "+R[e].color+"; font-weight: bold"}function g(e){var t=e.kind,n=e.path,r=e.lhs,o=e.rhs,i=e.index,u=e.item;switch(t){case"E":return[n.join("."),r,"\u2192",o];case"N":return[n.join("."),o];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+i+"]",u];default:return[]}}function m(e,t,n,r){var o=p(e,t);try{r?n.groupCollapsed("diff"):n.group("diff")}catch(e){n.log("diff")}o?o.forEach(function(e){var t=e.kind,r=g(e);n.log.apply(n,["%c "+R[t].text,v(t)].concat(D(r)))}):n.log("\u2014\u2014 no diff \u2014\u2014");try{n.groupEnd()}catch(e){n.log("\u2014\u2014 diff end \u2014\u2014 ")}}function w(e,t,n,r){switch("undefined"==typeof e?"undefined":k(e)){case"object":return"function"==typeof e[r]?e[r].apply(e,D(n)):e[r];case"function":return e(t);default:return e}}function O(e){var t=e.timestamp,n=e.duration;return function(e,r,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+r),n&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}function j(e,t){var n=t.logger,r=t.actionTransformer,o=t.titleFormatter,i=void 0===o?O(t):o,u=t.collapsed,a=t.colors,c=t.level,s=t.diff,f="undefined"==typeof t.titleFormatter;e.forEach(function(o,p){var l=o.started,d=o.startedTime,h=o.action,y=o.prevState,b=o.error,v=o.took,g=o.nextState,O=e[p+1];O&&(g=O.prevState,v=O.started-l);var j=r(h),S="function"==typeof u?u(function(){return g},h,o):u,P=T(d),x=a.title?"color: "+a.title(j)+";":"",E=["color: gray; font-weight: lighter;"];E.push(x),t.timestamp&&E.push("color: gray; font-weight: lighter;"),t.duration&&E.push("color: gray; font-weight: lighter;");var C=i(j,P,v);try{S?a.title&&f?n.groupCollapsed.apply(n,["%c "+C].concat(E)):n.groupCollapsed(C):a.title&&f?n.group.apply(n,["%c "+C].concat(E)):n.group(C)}catch(e){n.log(C)}var N=w(c,j,[y],"prevState"),k=w(c,j,[j],"action"),D=w(c,j,[b,y],"error"),A=w(c,j,[g],"nextState");if(N)if(a.prevState){var R="color: "+a.prevState(y)+"; font-weight: bold";n[N]("%c prev state",R,y)}else n[N]("prev state",y);if(k)if(a.action){var M="color: "+a.action(j)+"; font-weight: bold";n[k]("%c action ",M,j)}else n[k]("action ",j);if(b&&D)if(a.error){var _="color: "+a.error(b,y)+"; font-weight: bold;";n[D]("%c error ",_,b)}else n[D]("error ",b);if(A)if(a.nextState){var I="color: "+a.nextState(g)+"; font-weight: bold";n[A]("%c next state",I,g)}else n[A]("next state",g);s&&m(y,g,n,S);try{n.groupEnd()}catch(e){n.log("\u2014\u2014 log end \u2014\u2014")}})}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},M,e),n=t.logger,r=t.stateTransformer,o=t.errorTransformer,i=t.predicate,u=t.logErrors,a=t.diffPredicate;if("undefined"==typeof n)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(s){if("function"==typeof i&&!i(n,s))return e(s);var f={};c.push(f),f.started=N.now(),f.startedTime=new Date,f.prevState=r(n()),f.action=s;var p=void 0;if(u)try{p=e(s)}catch(e){f.error=o(e)}else p=e(s);f.took=N.now()-f.started,f.nextState=r(n());var l=t.diff&&"function"==typeof a?a(n,s):t.diff;if(j(c,Object.assign({},t,{diff:l})),c.length=0,f.error)throw f.error;return p}}}}var P,x,E=function(e,t){return new Array(t+1).join(e)},C=function(e,t){return E("0",t-e.toString().length)+e},T=function(e){return C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)},N="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},A=[];P="object"===("undefined"==typeof e?"undefined":k(e))&&e?e:"undefined"!=typeof window?window:{},x=P.DeepDiff,x&&A.push(function(){"undefined"!=typeof x&&P.DeepDiff===p&&(P.DeepDiff=x,x=void 0)}),n(o,r),n(i,r),n(u,r),n(a,r),Object.defineProperties(p,{diff:{value:p,enumerable:!0},observableDiff:{value:f,enumerable:!0},applyDiff:{value:b,enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:y,enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof x},enumerable:!0},noConflict:{value:function(){return A&&(A.forEach(function(e){e()}),A=null),p},enumerable:!0}});var R={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},M={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,n=e.getState;return"function"==typeof t||"function"==typeof n?S()({dispatch:t,getState:n}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=M,t.createLogger=S,t.logger=_,t.default=_,Object.defineProperty(t,"__esModule",{value:!0})})}).call(t,n(3))}])});
//# sourceMappingURL=index.js.map