react-hoax
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -1,1 +0,1 @@ | ||
!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["react-hoax"]=t(require("react")):e["react-hoax"]=t(e.React)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=95)}([function(t,r){t.exports=e},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(18),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();e.exports=c},function(e,t,r){var n=r(40),o=r(46);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){var n=r(27);e.exports=function(e,t){return n(e,t)}},function(e,t,r){!function(e,t){t=t&&t.hasOwnProperty("default")?t.default:t;var r=Symbol(),n=function(e,n){var o=e[r];if(!o)throw new Error;var c=t.useReducer((function(e){return e+1}),0)[1],u=t.useContext(e),i=n(u),a=t.useRef(null);return t.useLayoutEffect((function(){a.current={f:n,v:u,s:i}})),t.useLayoutEffect((function(){var e=function(e){try{if(a.current.v===e||Object.is(a.current.s,a.current.f(e)))return}catch(e){}c()};return o.add(e),function(){o.delete(e)}}),[o]),i};e.createContext=function(e){var n,o,c=t.createContext(e,(function(){return 0}));return c[r]=new Set,c.Provider=(n=c.Provider,o=c[r],t.memo((function(e){var r=e.value,c=e.children;return o.forEach((function(e){e(r)})),t.createElement(n,{value:r},c)}))),delete c.Consumer,c},e.useContext=function(e){return n(e,(function(e){return e}))},e.useContextSelector=n}(t,r(0))},function(e,t,r){var n=r(30),o=r(31),c=r(32),u=r(33),i=r(34);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(16);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(14),o=r(42),c=r(43),u=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?o(e):c(e)}},function(e,t,r){var n=r(3)(Object,"create");e.exports=n},function(e,t,r){var n=r(55);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){return null==e}},function(e,t,r){var n=r(3)(r(2),"Map");e.exports=n},function(e,t,r){var n=r(2).Symbol;e.exports=n},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(8),o=r(19);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(41))},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(47),o=r(54),c=r(56),u=r(57),i=r(58);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(59),o=r(62),c=r(63);e.exports=function(e,t,r,u,i,a){var s=1&r,f=e.length,p=t.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var y=-1,b=!0,d=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++y<f;){var v=e[y],O=t[y];if(u)var h=s?u(O,v,y,t,e,a):u(v,O,y,e,t,a);if(void 0!==h){if(h)continue;b=!1;break}if(d){if(!o(t,(function(e,t){if(!c(d,t)&&(v===e||i(v,e,r,u,a)))return d.push(t)}))){b=!1;break}}else if(v!==O&&!i(v,O,r,u,a)){b=!1;break}}return a.delete(e),a.delete(t),b}},function(e,t,r){(function(e){var n=r(2),o=r(80),c=t&&!t.nodeType&&t,u=c&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===c?n.Buffer:void 0,a=(i?i.isBuffer:void 0)||o;e.exports=a}).call(this,r(24)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(82),o=r(83),c=r(84),u=c&&c.isTypedArray,i=u?o(u):n;e.exports=i},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var n=r(28),o=r(11);e.exports=function e(t,r,c,u,i){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,c,u,e,i))}},function(e,t,r){var n=r(29),o=r(22),c=r(64),u=r(68),i=r(90),a=r(15),s=r(23),f=r(25),p="[object Object]",l=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,y,b,d){var v=a(e),O=a(t),h=v?"[object Array]":i(e),j=O?"[object Array]":i(t),g=(h="[object Arguments]"==h?p:h)==p,P=(j="[object Arguments]"==j?p:j)==p,w=h==j;if(w&&s(e)){if(!s(t))return!1;v=!0,g=!1}if(w&&!g)return d||(d=new n),v||f(e)?o(e,t,r,y,b,d):c(e,t,h,r,y,b,d);if(!(1&r)){var m=g&&l.call(e,"__wrapped__"),x=P&&l.call(t,"__wrapped__");if(m||x){var _=m?e.value():e,S=x?t.value():t;return d||(d=new n),b(_,S,r,y,d)}}return!!w&&(d||(d=new n),u(e,t,r,y,b,d))}},function(e,t,r){var n=r(6),o=r(35),c=r(36),u=r(37),i=r(38),a=r(39);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=u,s.prototype.has=i,s.prototype.set=a,e.exports=s},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(7),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(7);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(7);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(7);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},function(e,t,r){var n=r(6);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(6),o=r(13),c=r(21);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<199)return u.push([e,t]),this.size=++r.size,this;r=this.__data__=new c(u)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(17),o=r(44),c=r(19),u=r(20),i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,f=a.toString,p=s.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!c(e)||o(e))&&(n(e)?l:i).test(u(e))}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(14),o=Object.prototype,c=o.hasOwnProperty,u=o.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=c.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(e){}var o=u.call(e);return n&&(t?e[i]=r:delete e[i]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,o=r(45),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!c&&c in e}},function(e,t,r){var n=r(2)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(48),o=r(6),c=r(13);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},function(e,t,r){var n=r(49),o=r(50),c=r(51),u=r(52),i=r(53);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(9);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(9),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(9),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},function(e,t,r){var n=r(9);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(10);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(10);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(10);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(10);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},function(e,t,r){var n=r(21),o=r(60),c=r(61);function u(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}u.prototype.add=u.prototype.push=o,u.prototype.has=c,e.exports=u},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,r){var n=r(14),o=r(65),c=r(16),u=r(22),i=r(66),a=r(67),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,p,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var y=i;case"[object Set]":var b=1&n;if(y||(y=a),e.size!=t.size&&!b)return!1;var d=l.get(e);if(d)return d==t;n|=2,l.set(e,t);var v=u(y(e),y(t),n,s,p,l);return l.delete(e),v;case"[object Symbol]":if(f)return f.call(e)==f.call(t)}return!1}},function(e,t,r){var n=r(2).Uint8Array;e.exports=n},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},function(e,t,r){var n=r(69),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,c,u,i){var a=1&r,s=n(e),f=s.length;if(f!=n(t).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in t:o.call(t,l)))return!1}var y=i.get(e);if(y&&i.get(t))return y==t;var b=!0;i.set(e,t),i.set(t,e);for(var d=a;++p<f;){var v=e[l=s[p]],O=t[l];if(c)var h=a?c(O,v,l,t,e,i):c(v,O,l,e,t,i);if(!(void 0===h?v===O||u(v,O,r,c,i):h)){b=!1;break}d||(d="constructor"==l)}if(b&&!d){var j=e.constructor,g=t.constructor;j!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof j&&j instanceof j&&"function"==typeof g&&g instanceof g)&&(b=!1)}return i.delete(e),i.delete(t),b}},function(e,t,r){var n=r(70),o=r(72),c=r(75);e.exports=function(e){return n(e,c,o)}},function(e,t,r){var n=r(71),o=r(15);e.exports=function(e,t,r){var c=t(e);return o(e)?c:n(c,r(e))}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(73),o=r(74),c=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(e){return null==e?[]:(e=Object(e),n(u(e),(function(t){return c.call(e,t)})))}:o;e.exports=i},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,c=[];++r<n;){var u=e[r];t(u,r,e)&&(c[o++]=u)}return c}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(76),o=r(85),c=r(89);e.exports=function(e){return c(e)?n(e):o(e)}},function(e,t,r){var n=r(77),o=r(78),c=r(15),u=r(23),i=r(81),a=r(25),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=c(e),f=!r&&o(e),p=!r&&!f&&u(e),l=!r&&!f&&!p&&a(e),y=r||f||p||l,b=y?n(e.length,String):[],d=b.length;for(var v in e)!t&&!s.call(e,v)||y&&("length"==v||p&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,d))||b.push(v);return b}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(79),o=r(11),c=Object.prototype,u=c.hasOwnProperty,i=c.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return o(e)&&u.call(e,"callee")&&!i.call(e,"callee")};e.exports=a},function(e,t,r){var n=r(8),o=r(11);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(8),o=r(26),c=r(11),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=function(e){return c(e)&&o(e.length)&&!!u[n(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var n=r(18),o=t&&!t.nodeType&&t,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,u=c&&c.exports===o&&n.process,i=function(){try{var e=c&&c.require&&c.require("util").types;return e||u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=i}).call(this,r(24)(e))},function(e,t,r){var n=r(86),o=r(87),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))c.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(88)(Object.keys,Object);e.exports=n},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var n=r(17),o=r(26);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},function(e,t,r){var n=r(91),o=r(13),c=r(92),u=r(93),i=r(94),a=r(8),s=r(20),f=s(n),p=s(o),l=s(c),y=s(u),b=s(i),d=a;(n&&"[object DataView]"!=d(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||c&&"[object Promise]"!=d(c.resolve())||u&&"[object Set]"!=d(new u)||i&&"[object WeakMap]"!=d(new i))&&(d=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case f:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case y:return"[object Set]";case b:return"[object WeakMap]"}return t}),e.exports=d},function(e,t,r){var n=r(3)(r(2),"DataView");e.exports=n},function(e,t,r){var n=r(3)(r(2),"Promise");e.exports=n},function(e,t,r){var n=r(3)(r(2),"Set");e.exports=n},function(e,t,r){var n=r(3)(r(2),"WeakMap");e.exports=n},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"initialize",(function(){return O})),r.d(n,"update",(function(){return h})),r.d(n,"updateBatch",(function(){return j})),r.d(n,"updateOnChange",(function(){return g})),r.d(n,"reset",(function(){return P})),r.d(n,"resetPristine",(function(){return w})),r.d(n,"resetPristineKey",(function(){return m})),r.d(n,"startFetch",(function(){return x})),r.d(n,"doneFetch",(function(){return _})),r.d(n,"failFetch",(function(){return S})),r.d(n,"startProcess",(function(){return R})),r.d(n,"doneProcess",(function(){return D}));var o={};function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.r(o),r.d(o,"initializeResource",(function(){return pe})),r.d(o,"updateResource",(function(){return le})),r.d(o,"updateBatchResource",(function(){return ye})),r.d(o,"updateOnChangeResource",(function(){return be})),r.d(o,"removeResource",(function(){return de})),r.d(o,"resetResource",(function(){return ve})),r.d(o,"resetPristineResource",(function(){return Oe})),r.d(o,"resetPristineKeyResource",(function(){return he})),r.d(o,"startFetchResource",(function(){return je})),r.d(o,"doneFetchResource",(function(){return ge})),r.d(o,"failFetchResource",(function(){return Pe})),r.d(o,"startProcessResource",(function(){return we})),r.d(o,"doneProcessResource",(function(){return me}));var i=r(0),a=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var f=r(1),p=r.n(f);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=function(e,t,r,n,o){if("function"!=typeof e)return t(e);var c=e.apply(void 0,s(n));return"function"==typeof c?c(t,r,o):t(c)},b=function(e,t){var r=t.initialState,n=t.init,o=void 0===n?p.a:n,a=t.actions,s=void 0===a?{}:a,f=t.extraArgument,b=u(Object(i.useReducer)(e,r,o),2),d=b[0],v=b[1],O=Object(i.useRef)();O.current=d;var h=Object(i.useRef)();if(h.current)return[d,h.current];var j=function(){return O.current};return h.current=Object.keys(s).reduce((function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,c({},t,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(s[t],v,j,r,f)})))}),{dispatch:v}),[d,h.current]};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.merge;return function(t,n){return t(r?{type:"initialize",values:v({},n(),{},e)}:{type:"initialize",values:e})}},h=function(e,t){return{type:"update",attr:e,value:t}},j=function(e){return{type:"updateBatch",values:e}},g=function(e){var t=e.target;return h(t.name,t.value)},P={type:"reset"},w={type:"resetPristine"},m=function(e){return{type:"resetPristineKey",attr:e}},x={type:"startFetch"},_=function(e){return{type:"doneFetch",values:e}},S={type:"failFetch"},R={type:"startProcess"},D={type:"doneProcess"},A=r(5),E=function(){return[Object(A.createContext)({}),Object(A.createContext)({})]};function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e){var t=e.getInitialState,r=e.defaultInitialState;return t&&"function"==typeof t?function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{},t())}:function(){return r}};function k(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var F=r(12),z=r.n(F),M=r(4),B=r.n(M);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pristine",t=function(){return c({},e,{})},r=function(t,r){return!!t[e]&&t[e].hasOwnProperty(r)},n=function(t,r){return K({},t,c({},e,K({},t[e],c({},r,t[r]))))},o=function(n,o){return o?r(n,o)?(delete n[e][o],K({},n,c({},e,K({},n[e])))):n:K({},n,{},t())};return{updatePristine:function(t,c,u){var i=r(t,c);return i||B()(u,t[c])?i&&B()(u,t[e][c])?o(t,c):t:n(t,c)},removePristine:o,getInitialPristineState:t}};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q=function(e,t,r){return Array.isArray(r)?function(e,t,r){return r.reduce((function(t,r){var n=r.attr,o=r.value;return $({},t,{},e(t,n,o))}),t)}(e,t,r):function(e,t,r){return Object.keys(r).reduce((function(t,n){return $({},t,{},e(t,n,r[n]))}),t)}(e,t,r)};function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var W=function(e,t){var r=U("pristine"),n=r.getInitialPristineState,o=r.updatePristine,u=r.removePristine,i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V({},e(),{},t,{},n())},a=function(t,r,n){return n=function(t,r){return z()(r)?e()[t]:r}(r,n),V({},t=o(t,r,n),c({},r,n))};return{reducer:function(e,r){var n=r.type,o=k(r,["type"]);switch("function"==typeof t&&(e=t(e,V({type:n},o))),n){case"initialize":return i(o.values);case"update":return a(e,o.attr,o.value);case"updateBatch":return q(a,e,o.values);case"reset":return i();case"resetPristine":return u(e);case"resetPristineKey":return u(e,o.attr);case"startProcess":return V({},e,{processing:!0});case"doneProcess":return V({},e,{processing:!1});case"startFetch":return V({},e,{loading:!0});case"doneFetch":return i(V({},o.values,{loading:!1,loaded:!0}));case"failFetch":return V({},e,{loading:!1});default:return e}},init:i}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a,r=Object(i.useRef)();return Object(A.useContextSelector)(e,(function(e){var n=t(e);return B()(r.current,n)||(r.current=n),r.current}))},G=function(e){return function(t){return t.byId[e]}},J=function(e,t){return{useSelector:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a;return H(e,t)},useResourceSelector:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a,n=Object(i.useCallback)((function(e){return r(G(t)(e))}),[t]);return H(e,n)},useAction:function(e){var r=Object(i.useMemo)((function(){return e?function(t){return t[e]}:p.a}),[e]);return H(t,r)}}};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var X=function(e){return function(t){return e?t.updateResource:t.update}},Y=function(e,t){return function(r){var n=r.fieldKey,o=r.resourceId,a=r.getUpdate,s=void 0===a?X:a,f=r.select,l=void 0===f?o?G:p.a:f,y=Object(i.useCallback)((function(e){var t=o?l(o)(e):l(e);return[t[n],t.errors]}),[o,n]),b=u(H(e,y),2),d=b[0],v=b[1],O=Object(i.useCallback)((function(e){var t=s(o)(e);if("function"!=typeof t)throw new Error("useMember expects an 'update' dispatch function");return o?function(e,r){return t(o,e,r)}:t}),[o]),h=H(t,O);return[d,Object(i.useCallback)((function(e){return h(n,e)}),[h,n]),v[n],Object(i.useCallback)((function(e){return h("errors",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},v,c({},n,e)))}),[h,v])]}},Z=function(e,t){var r=Y(e,t);return function(e){var t=e.fieldKey,n=e.resourceId,o=e.uniq,c=e.getUpdate,a=e.select,f=u(r({fieldKey:t,resourceId:n,getUpdate:c,select:a}),4),l=f[0],y=f[1],b=f[2],d=f[3],v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?function(e){return s(new Set(e))}:p.a}(o),O=Object(i.useCallback)((function(e){e<0||e>=l.length||y(v([].concat(s(l.slice(0,e)),s(l.slice(e+1)))))}),[l]),h=Object(i.useCallback)((function(e,t){e<0||e>=l.length||y(v([].concat(s(l.slice(0,e)),[t],s(l.slice(e+1)))))}),[l]),j=Object(i.useCallback)((function(e,t){e<0||y(v([].concat(s(l.slice(0,e)),[t],s(l.slice(e)))))}),[l]),g=Object(i.useCallback)((function(e){return j(l.length,e)}),[l]),P=Object(i.useCallback)((function(e,t){if(!(e<0||e>=l.length||t<0||t>=l.length)){var r=s(l),n=u(r.splice(e,1),1)[0];r.splice(t,0,n),y(v(r))}}),[l]);return{collection:l,set:y,add:j,push:g,edit:h,remove:O,reorder:P,error:b,setError:d}}};function ee(){return(ee=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}).apply(this,arguments)}var te=function(e){return e.target.value},re=function(e){return e.target.checked},ne=function(e){var t=function(t){var r=t.Component,n=void 0===r?"input":r,o=t.fieldKey,s=t.select,f=t.resourceId,l=(t.getUpdate,t.onChange),y=void 0===l?p.a:l,b=k(t,["Component","fieldKey","select","resourceId","getUpdate","onChange"]),d=u(e({fieldKey:o,select:s,resourceId:f}),3),v=d[0],O=d[1],h=d[2],j=function(){return O(y.apply(void 0,arguments))};return Object(i.useMemo)((function(){return a.a.createElement(n,ee(c({name:o,"data-testid":o,onChange:j,value:v,error:h},"name",o),b))}),[v,h,b.options])};return{Select:function(e){var r=e.Component,n=void 0===r?"select":r,o=e.onChange,c=void 0===o?te:o,u=e.options,i=void 0===u?[]:u,s=k(e,["Component","onChange","options"]);return a.a.createElement(t,ee({Component:n,onChange:c,options:i},s))},Checkbox:function(e){var r=e.type,n=void 0===r?"checkbox":r,o=e.onChange,c=void 0===o?re:o,u=k(e,["type","onChange"]);return a.a.createElement(t,ee({type:n,onChange:c},u))},Input:function(e){var r=e.onChange,n=void 0===r?te:r,o=k(e,["onChange"]);return a.a.createElement(t,ee({type:"text",onChange:n},o))}}},oe=function(e,t){return{useSelector:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a;return H(e,t)},useAction:function(e){var r=Object(i.useMemo)((function(){return e?function(t){return t[e]}:p.a}),[e]);return H(t,r)}}},ce={loading:!0,loaded:!1,processing:!1,errors:{}};function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getInitialState,o=t.reducer,c=t.actions,i=C({getInitialState:r,defaultInitialState:ce}),s=W(i,o),f=s.reducer,p=s.init,l=E(),y=u(l,2),d=y[0],v=y[1],O=Y(d,v),h=Z(d,v),j=ne(O),g=oe(d,v),P=g.useSelector,w=g.useAction,m=function(e){var t=e.children,r=e.initialState,o=e.extraArgument,i=u(b(f,{initialState:r,init:p,actions:ie({},n,{},c),extraArgument:o}),2),s=i[0],l=i[1];return a.a.createElement(v.Provider,{value:l},a.a.createElement(d.Provider,{value:s},t))};return m.displayName=e,{Provider:m,useMember:O,useCollection:h,useSelector:P,useAction:w,Field:j}},se={loading:!0,loaded:!1,processing:!1,byId:{},ids:[]},fe={loading:!0,loaded:!1,processing:!1,errors:{}},pe=function(e,t){return{type:"initializeResource",id:e,values:t}},le=function(e,t,r){return{type:"updateResource",id:e,attr:t,value:r}},ye=function(e,t){return{type:"updateBatchResource",id:e,values:t}},be=function(e,t){var r=t.target;return le(e,r.name,r.value)},de=function(e){return{type:"removeResource",id:e}},ve=function(e){return{type:"resetResource",id:e}},Oe=function(e){return{type:"resetPristineResource",id:e}},he=function(e,t){return{type:"resetPristineKeyResource",id:e,attr:t}},je=function(e){return{type:"startFetchResource",id:e}},ge=function(e,t){return{type:"doneFetchResource",id:e,values:t}},Pe=function(e){return{type:"failFetchResource",id:e}},we=function(e){return{type:"startProcessResource",id:e}},me=function(e){return{type:"doneProcessResource",id:e}};function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Se=function(e){var t=e.getInitialState,r=e.customReducer,n=e.resourceReducer,o=e.initResource,u=e.customResourceActionTypes,i=void 0===u?{}:u,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _e({},t(),{},e)},f=function(e,t,r){var c=e.byId[t]||o();return n(c,_e({id:t},r))},p=function(e,t,r){var n=t.toString(),o=e.byId.hasOwnProperty(n)?e.ids:[].concat(s(e.ids),[n]);return _e({},e,{byId:_e({},e.byId,c({},n,f(e,n,{type:"updateBatchResource",values:r}))),ids:o})};return{reducer:function(e,t){var n=t.type,o=k(t,["type"]);switch("function"==typeof r&&(e=r(e,_e({type:n},o))),n){case"initialize":return a(o.values);case"update":return p(e,o.attr,o.value);case"updateBatch":return q(p,e,o.values);case"reset":return a();case"startProcess":return _e({},e,{processing:!0});case"doneProcess":return _e({},e,{processing:!1});case"startFetch":return _e({},e,{loading:!0});case"doneFetch":return function(e,t){var r=[],n=t.reduce((function(t,n){return r.push(n.id),_e({},t,c({},n.id,f(e,n.id,{type:"initializeResource",values:n})))}),{});return _e({},e,{byId:_e({},e.byId,{},n),ids:s(new Set([].concat(s(e.ids),r))),loading:!1,loaded:!0})}(e,o.values);case"failFetch":return _e({},e,{loading:!1});case"removeResource":return function(e,t){delete e.byId[t];var r=e.ids.filter((function(e){return e!==t}));return _e({},e,{byId:_e({},e.byId),ids:r})}(e,o.id);case"initializeResource":case"updateResource":case"updateBatchResource":case"resetResource":case"resetPristineResource":case"resetPristineKeyResource":case"startProcessResource":case"doneProcessResource":case"startFetchResource":case"doneFetchResource":case"failFetchResource":case i[n]:return function(e,t){var r=t.id,n=k(t,["id"]),o=f(e,r,n),u=e.byId.hasOwnProperty(r)?e.ids:[].concat(s(e.ids),[r]);return _e({},e,{byId:_e({},e.byId,c({},r,o)),ids:u})}(e,_e({type:n},o));default:return e}},init:a}};function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ae=function(e,t){var r=U("pristine"),n=r.getInitialPristineState,o=r.updatePristine,u=r.removePristine,i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return De({id:t},e(),{},r,{},n())},a=function(t,r,n){return n=function(t,r){return z()(r)?e()[t]:r}(r,n),De({},t=o(t,r,n),c({},r,n))};return{reducer:function(e,r){var n=r.type,o=r.id,c=k(r,["type","id"]);switch("function"===t&&(e=t(e,De({type:n},c))),n){case"initializeResource":return i(o,c.values);case"updateResource":return a(e,c.attr,c.value);case"updateBatchResource":return q(a,e,c.values);case"resetResource":return i(o);case"resetPristineResource":return u(e);case"resetPristineKeyResource":return u(e,c.attr);case"startProcessResource":return De({},e,{processing:!0});case"doneProcessResource":return De({},e,{processing:!1});case"startFetchResource":return De({},e,{loading:!0});case"doneFetchResource":return i(o,De({},c.values,{loading:!1,loaded:!0}));case"failFetchResource":return De({},e,{loading:!1});default:return e}},init:i}};function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getInitialState,c=t.reducer,i=t.actions,s=t.resourceOptions,f=void 0===s?{}:s,p=C({getInitialState:r,defaultInitialState:se}),l=C({getInitialState:f.getInitialState,defaultInitialState:fe}),y=Ae(l,f.reducer),d=y.reducer,v=y.init,O=Se({getInitialState:p,customReducer:c,resourceReducer:d,customResourceActionTypes:f.actionTypes,initResource:v}),h=O.reducer,j=O.init,g=E(),P=u(g,2),w=P[0],m=P[1],x=Z(w,m),_=Y(w,m),S=ne(_),R=J(w,m),D=R.useSelector,A=R.useAction,I=R.useResourceSelector,k=function(e){var t=e.children,r=e.initialState,c=e.extraArgument,s=u(b(h,{initialState:r,init:j,actions:Ie({},n,{},o,{},i),extraArgument:c}),2),f=s[0],p=s[1];return a.a.createElement(m.Provider,{value:p},a.a.createElement(w.Provider,{value:f},t))};return k.displayName=e,{Provider:k,useCollection:x,useMember:_,useSelector:D,useAction:A,useResourceSelector:I,Field:S}};function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.d(t,"hoaxActions",(function(){return Fe})),r.d(t,"makeMemberHoax",(function(){return ae})),r.d(t,"makeCollectionHoax",(function(){return Ce}));var Fe=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{},o)}])})); | ||
!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["react-hoax"]=t(require("react")):e["react-hoax"]=t(e.React)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=95)}([function(t,r){t.exports=e},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(18),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();e.exports=c},function(e,t,r){var n=r(40),o=r(46);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){var n=r(27);e.exports=function(e,t){return n(e,t)}},function(e,t,r){!function(e,t){t=t&&t.hasOwnProperty("default")?t.default:t;var r=Symbol(),n=function(e,n){var o=e[r];if(!o)throw new Error;var c=t.useReducer((function(e){return e+1}),0)[1],u=t.useContext(e),i=n(u),a=t.useRef(null);return t.useLayoutEffect((function(){a.current={f:n,v:u,s:i}})),t.useLayoutEffect((function(){var e=function(e){try{if(a.current.v===e||Object.is(a.current.s,a.current.f(e)))return}catch(e){}c()};return o.add(e),function(){o.delete(e)}}),[o]),i};e.createContext=function(e){var n,o,c=t.createContext(e,(function(){return 0}));return c[r]=new Set,c.Provider=(n=c.Provider,o=c[r],t.memo((function(e){var r=e.value,c=e.children;return o.forEach((function(e){e(r)})),t.createElement(n,{value:r},c)}))),delete c.Consumer,c},e.useContext=function(e){return n(e,(function(e){return e}))},e.useContextSelector=n}(t,r(0))},function(e,t,r){var n=r(30),o=r(31),c=r(32),u=r(33),i=r(34);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(16);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(14),o=r(42),c=r(43),u=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?o(e):c(e)}},function(e,t,r){var n=r(3)(Object,"create");e.exports=n},function(e,t,r){var n=r(55);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){return null==e}},function(e,t,r){var n=r(3)(r(2),"Map");e.exports=n},function(e,t,r){var n=r(2).Symbol;e.exports=n},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(8),o=r(19);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(41))},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(47),o=r(54),c=r(56),u=r(57),i=r(58);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(59),o=r(62),c=r(63);e.exports=function(e,t,r,u,i,a){var s=1&r,f=e.length,p=t.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var y=-1,b=!0,d=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++y<f;){var v=e[y],O=t[y];if(u)var h=s?u(O,v,y,t,e,a):u(v,O,y,e,t,a);if(void 0!==h){if(h)continue;b=!1;break}if(d){if(!o(t,(function(e,t){if(!c(d,t)&&(v===e||i(v,e,r,u,a)))return d.push(t)}))){b=!1;break}}else if(v!==O&&!i(v,O,r,u,a)){b=!1;break}}return a.delete(e),a.delete(t),b}},function(e,t,r){(function(e){var n=r(2),o=r(80),c=t&&!t.nodeType&&t,u=c&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===c?n.Buffer:void 0,a=(i?i.isBuffer:void 0)||o;e.exports=a}).call(this,r(24)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(82),o=r(83),c=r(84),u=c&&c.isTypedArray,i=u?o(u):n;e.exports=i},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var n=r(28),o=r(11);e.exports=function e(t,r,c,u,i){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,c,u,e,i))}},function(e,t,r){var n=r(29),o=r(22),c=r(64),u=r(68),i=r(90),a=r(15),s=r(23),f=r(25),p="[object Object]",l=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,y,b,d){var v=a(e),O=a(t),h=v?"[object Array]":i(e),j=O?"[object Array]":i(t),g=(h="[object Arguments]"==h?p:h)==p,P=(j="[object Arguments]"==j?p:j)==p,w=h==j;if(w&&s(e)){if(!s(t))return!1;v=!0,g=!1}if(w&&!g)return d||(d=new n),v||f(e)?o(e,t,r,y,b,d):c(e,t,h,r,y,b,d);if(!(1&r)){var m=g&&l.call(e,"__wrapped__"),x=P&&l.call(t,"__wrapped__");if(m||x){var _=m?e.value():e,S=x?t.value():t;return d||(d=new n),b(_,S,r,y,d)}}return!!w&&(d||(d=new n),u(e,t,r,y,b,d))}},function(e,t,r){var n=r(6),o=r(35),c=r(36),u=r(37),i=r(38),a=r(39);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=u,s.prototype.has=i,s.prototype.set=a,e.exports=s},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(7),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(7);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(7);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(7);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},function(e,t,r){var n=r(6);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(6),o=r(13),c=r(21);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<199)return u.push([e,t]),this.size=++r.size,this;r=this.__data__=new c(u)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(17),o=r(44),c=r(19),u=r(20),i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,f=a.toString,p=s.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!c(e)||o(e))&&(n(e)?l:i).test(u(e))}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(14),o=Object.prototype,c=o.hasOwnProperty,u=o.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=c.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(e){}var o=u.call(e);return n&&(t?e[i]=r:delete e[i]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,o=r(45),c=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!c&&c in e}},function(e,t,r){var n=r(2)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(48),o=r(6),c=r(13);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(c||o),string:new n}}},function(e,t,r){var n=r(49),o=r(50),c=r(51),u=r(52),i=r(53);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=c,a.prototype.has=u,a.prototype.set=i,e.exports=a},function(e,t,r){var n=r(9);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(9),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(9),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},function(e,t,r){var n=r(9);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(10);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(10);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(10);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(10);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},function(e,t,r){var n=r(21),o=r(60),c=r(61);function u(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}u.prototype.add=u.prototype.push=o,u.prototype.has=c,e.exports=u},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,r){var n=r(14),o=r(65),c=r(16),u=r(22),i=r(66),a=r(67),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,p,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var y=i;case"[object Set]":var b=1&n;if(y||(y=a),e.size!=t.size&&!b)return!1;var d=l.get(e);if(d)return d==t;n|=2,l.set(e,t);var v=u(y(e),y(t),n,s,p,l);return l.delete(e),v;case"[object Symbol]":if(f)return f.call(e)==f.call(t)}return!1}},function(e,t,r){var n=r(2).Uint8Array;e.exports=n},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},function(e,t,r){var n=r(69),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,c,u,i){var a=1&r,s=n(e),f=s.length;if(f!=n(t).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in t:o.call(t,l)))return!1}var y=i.get(e);if(y&&i.get(t))return y==t;var b=!0;i.set(e,t),i.set(t,e);for(var d=a;++p<f;){var v=e[l=s[p]],O=t[l];if(c)var h=a?c(O,v,l,t,e,i):c(v,O,l,e,t,i);if(!(void 0===h?v===O||u(v,O,r,c,i):h)){b=!1;break}d||(d="constructor"==l)}if(b&&!d){var j=e.constructor,g=t.constructor;j!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof j&&j instanceof j&&"function"==typeof g&&g instanceof g)&&(b=!1)}return i.delete(e),i.delete(t),b}},function(e,t,r){var n=r(70),o=r(72),c=r(75);e.exports=function(e){return n(e,c,o)}},function(e,t,r){var n=r(71),o=r(15);e.exports=function(e,t,r){var c=t(e);return o(e)?c:n(c,r(e))}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(73),o=r(74),c=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(e){return null==e?[]:(e=Object(e),n(u(e),(function(t){return c.call(e,t)})))}:o;e.exports=i},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,c=[];++r<n;){var u=e[r];t(u,r,e)&&(c[o++]=u)}return c}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(76),o=r(85),c=r(89);e.exports=function(e){return c(e)?n(e):o(e)}},function(e,t,r){var n=r(77),o=r(78),c=r(15),u=r(23),i=r(81),a=r(25),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=c(e),f=!r&&o(e),p=!r&&!f&&u(e),l=!r&&!f&&!p&&a(e),y=r||f||p||l,b=y?n(e.length,String):[],d=b.length;for(var v in e)!t&&!s.call(e,v)||y&&("length"==v||p&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,d))||b.push(v);return b}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(79),o=r(11),c=Object.prototype,u=c.hasOwnProperty,i=c.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return o(e)&&u.call(e,"callee")&&!i.call(e,"callee")};e.exports=a},function(e,t,r){var n=r(8),o=r(11);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(8),o=r(26),c=r(11),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=function(e){return c(e)&&o(e.length)&&!!u[n(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var n=r(18),o=t&&!t.nodeType&&t,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,u=c&&c.exports===o&&n.process,i=function(){try{var e=c&&c.require&&c.require("util").types;return e||u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=i}).call(this,r(24)(e))},function(e,t,r){var n=r(86),o=r(87),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))c.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(88)(Object.keys,Object);e.exports=n},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var n=r(17),o=r(26);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},function(e,t,r){var n=r(91),o=r(13),c=r(92),u=r(93),i=r(94),a=r(8),s=r(20),f=s(n),p=s(o),l=s(c),y=s(u),b=s(i),d=a;(n&&"[object DataView]"!=d(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||c&&"[object Promise]"!=d(c.resolve())||u&&"[object Set]"!=d(new u)||i&&"[object WeakMap]"!=d(new i))&&(d=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case f:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case y:return"[object Set]";case b:return"[object WeakMap]"}return t}),e.exports=d},function(e,t,r){var n=r(3)(r(2),"DataView");e.exports=n},function(e,t,r){var n=r(3)(r(2),"Promise");e.exports=n},function(e,t,r){var n=r(3)(r(2),"Set");e.exports=n},function(e,t,r){var n=r(3)(r(2),"WeakMap");e.exports=n},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"initialize",(function(){return O})),r.d(n,"update",(function(){return h})),r.d(n,"updateBatch",(function(){return j})),r.d(n,"updateOnChange",(function(){return g})),r.d(n,"reset",(function(){return P})),r.d(n,"resetPristine",(function(){return w})),r.d(n,"resetPristineKey",(function(){return m})),r.d(n,"startFetch",(function(){return x})),r.d(n,"doneFetch",(function(){return _})),r.d(n,"failFetch",(function(){return S})),r.d(n,"startProcess",(function(){return R})),r.d(n,"doneProcess",(function(){return D}));var o={};function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.r(o),r.d(o,"initializeResource",(function(){return pe})),r.d(o,"updateResource",(function(){return le})),r.d(o,"updateBatchResource",(function(){return ye})),r.d(o,"updateOnChangeResource",(function(){return be})),r.d(o,"removeResource",(function(){return de})),r.d(o,"resetResource",(function(){return ve})),r.d(o,"resetPristineResource",(function(){return Oe})),r.d(o,"resetPristineKeyResource",(function(){return he})),r.d(o,"startFetchResource",(function(){return je})),r.d(o,"doneFetchResource",(function(){return ge})),r.d(o,"failFetchResource",(function(){return Pe})),r.d(o,"startProcessResource",(function(){return we})),r.d(o,"doneProcessResource",(function(){return me}));var i=r(0),a=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var f=r(1),p=r.n(f);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=function(e,t,r,n,o){if("function"!=typeof e)return t(e);var c=e.apply(void 0,s(n));return"function"==typeof c?c(t,r,o):t(c)},b=function(e,t){var r=t.initialState,n=t.init,o=void 0===n?p.a:n,a=t.actions,s=void 0===a?{}:a,f=t.extraArgument,b=u(Object(i.useReducer)(e,r,o),2),d=b[0],v=b[1],O=Object(i.useRef)();O.current=d;var h=Object(i.useRef)();if(h.current)return[d,h.current];var j=function(){return O.current};return h.current=Object.keys(s).reduce((function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,c({},t,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(s[t],v,j,r,f)})))}),{dispatch:v}),[d,h.current]};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.merge;return function(t,n){return t(r?{type:"initialize",values:v({},n(),{},e)}:{type:"initialize",values:e})}},h=function(e,t){return{type:"update",attr:e,value:t}},j=function(e){return{type:"updateBatch",values:e}},g=function(e){var t=e.target;return h(t.name,t.value)},P={type:"reset"},w={type:"resetPristine"},m=function(e){return{type:"resetPristineKey",attr:e}},x={type:"startFetch"},_=function(e){return{type:"doneFetch",values:e}},S={type:"failFetch"},R={type:"startProcess"},D={type:"doneProcess"},A=r(5),E=function(){return[Object(A.createContext)({}),Object(A.createContext)({})]};function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e){var t=e.getInitialState,r=e.defaultInitialState;return t&&"function"==typeof t?function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{},t())}:function(){return r}};function k(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var F=r(12),z=r.n(F),M=r(4),B=r.n(M);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pristine",t=function(){return c({},e,{})},r=function(t,r){return!!t[e]&&t[e].hasOwnProperty(r)},n=function(t,r){return K({},t,c({},e,K({},t[e],c({},r,t[r]))))},o=function(n,o){return o?r(n,o)?(delete n[e][o],K({},n,c({},e,K({},n[e])))):n:K({},n,{},t())};return{updatePristine:function(t,c,u){var i=r(t,c);return i||B()(u,t[c])?i&&B()(u,t[e][c])?o(t,c):t:n(t,c)},removePristine:o,getInitialPristineState:t}};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q=function(e,t,r){return Array.isArray(r)?function(e,t,r){return r.reduce((function(t,r){var n=r.attr,o=r.value;return $({},t,{},e(t,n,o))}),t)}(e,t,r):function(e,t,r){return Object.keys(r).reduce((function(t,n){return $({},t,{},e(t,n,r[n]))}),t)}(e,t,r)};function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var W=function(e,t){var r=U("pristine"),n=r.getInitialPristineState,o=r.updatePristine,u=r.removePristine,i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V({},e(),{},t,{},n())},a=function(t,r,n){return n=function(t,r){return z()(r)?e()[t]:r}(r,n),V({},t=o(t,r,n),c({},r,n))};return{reducer:function(e,r){var n=r.type,o=k(r,["type"]);switch("function"==typeof t&&(e=t(e,V({type:n},o))),n){case"initialize":return i(o.values);case"update":return a(e,o.attr,o.value);case"updateBatch":return q(a,e,o.values);case"reset":return i();case"resetPristine":return u(e);case"resetPristineKey":return u(e,o.attr);case"startProcess":return V({},e,{processing:!0});case"doneProcess":return V({},e,{processing:!1});case"startFetch":return V({},e,{loading:!0});case"doneFetch":return i(V({},o.values,{loading:!1,loaded:!0}));case"failFetch":return V({},e,{loading:!1});default:return e}},init:i}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a,r=Object(i.useRef)();return Object(A.useContextSelector)(e,(function(e){var n=t(e);return B()(r.current,n)||(r.current=n),r.current}))},G=function(e){return function(t){return t.byId[e]}},J=function(e,t){return{useSelector:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a;return H(e,t)},useResourceSelector:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a,n=Object(i.useCallback)((function(e){return r(G(t)(e))}),[t]);return H(e,n)},useAction:function(e){var r=Object(i.useMemo)((function(){return e?function(t){return t[e]}:p.a}),[e]);return H(t,r)}}};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var X=function(e){return function(t){return e?t.updateResource:t.update}},Y=function(e,t){return function(r){var n=r.fieldKey,o=r.resourceId,a=r.getUpdate,s=void 0===a?X:a,f=r.select,l=void 0===f?o?G:p.a:f,y=Object(i.useCallback)((function(e){var t=o?l(o)(e):l(e);return[t[n],t.errors]}),[o,n]),b=u(H(e,y),2),d=b[0],v=b[1],O=Object(i.useCallback)((function(e){var t=s(o)(e);if("function"!=typeof t)throw new Error("useMember expects an 'update' dispatch function");return o?function(e,r){return t(o,e,r)}:t}),[o]),h=H(t,O);return[d,Object(i.useCallback)((function(e){return h(n,e)}),[h,n]),v[n],Object(i.useCallback)((function(e){return h("errors",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},v,c({},n,e)))}),[h,v])]}},Z=function(e,t){var r=Y(e,t);return function(e){var t=e.fieldKey,n=e.resourceId,o=e.uniq,c=e.getUpdate,a=e.select,f=u(r({fieldKey:t,resourceId:n,getUpdate:c,select:a}),4),l=f[0],y=f[1],b=f[2],d=f[3],v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?function(e){return s(new Set(e))}:p.a}(o),O=Object(i.useCallback)((function(e){e<0||e>=l.length||y(v([].concat(s(l.slice(0,e)),s(l.slice(e+1)))))}),[l]),h=Object(i.useCallback)((function(e,t){e<0||e>=l.length||y(v([].concat(s(l.slice(0,e)),[t],s(l.slice(e+1)))))}),[l]),j=Object(i.useCallback)((function(e,t){e<0||y(v([].concat(s(l.slice(0,e)),[t],s(l.slice(e)))))}),[l]),g=Object(i.useCallback)((function(e){return j(l.length,e)}),[l]),P=Object(i.useCallback)((function(e,t){if(!(e<0||e>=l.length||t<0||t>=l.length)){var r=s(l),n=u(r.splice(e,1),1)[0];r.splice(t,0,n),y(v(r))}}),[l]);return{collection:l,set:y,add:j,push:g,edit:h,remove:O,reorder:P,error:b,setError:d}}};function ee(){return(ee=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}).apply(this,arguments)}var te=function(e){return e.target.value},re=function(e){return e.target.checked},ne=function(e){var t=function(t){var r=t.Component,n=void 0===r?"input":r,o=t.fieldKey,s=t.select,f=t.resourceId,l=(t.getUpdate,t.onChange),y=void 0===l?p.a:l,b=k(t,["Component","fieldKey","select","resourceId","getUpdate","onChange"]),d=u(e({fieldKey:o,select:s,resourceId:f}),3),v=d[0],O=d[1],h=d[2],j=function(){return O(y.apply(void 0,arguments))};return Object(i.useMemo)((function(){return a.a.createElement(n,ee(c({name:o,"data-testid":o,onChange:j,value:v,error:h},"name",o),b))}),[v,h,b.options])};return{Select:function(e){var r=e.Component,n=void 0===r?"select":r,o=e.onChange,c=void 0===o?te:o,u=e.options,i=void 0===u?[]:u,s=k(e,["Component","onChange","options"]);return a.a.createElement(t,ee({Component:n,onChange:c,options:i},s))},Checkbox:function(e){var r=e.type,n=void 0===r?"checkbox":r,o=e.onChange,c=void 0===o?re:o,u=k(e,["type","onChange"]);return a.a.createElement(t,ee({type:n,onChange:c},u))},Input:function(e){var r=e.onChange,n=void 0===r?te:r,o=k(e,["onChange"]);return a.a.createElement(t,ee({type:"text",onChange:n},o))}}},oe=function(e,t){return{useSelector:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a;return H(e,t)},useAction:function(e){var r=Object(i.useMemo)((function(){return e?function(t){return t[e]}:p.a}),[e]);return H(t,r)}}},ce={loading:!0,loaded:!1,processing:!1,errors:{}};function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getInitialState,o=t.reducer,c=t.actions,i=C({getInitialState:r,defaultInitialState:ce}),s=W(i,o),f=s.reducer,p=s.init,l=E(),y=u(l,2),d=y[0],v=y[1],O=Y(d,v),h=Z(d,v),j=ne(O),g=oe(d,v),P=g.useSelector,w=g.useAction,m=function(e){var t=e.children,r=e.initialState,o=e.extraArgument,i=u(b(f,{initialState:r,init:p,actions:ie({},n,{},c),extraArgument:o}),2),s=i[0],l=i[1];return a.a.createElement(v.Provider,{value:l},a.a.createElement(d.Provider,{value:s},t))};return m.displayName=e,{Provider:m,useMember:O,useCollection:h,useSelector:P,useAction:w,Field:j}},se={loading:!0,loaded:!1,processing:!1,byId:{},ids:[]},fe={loading:!0,loaded:!1,processing:!1,errors:{}},pe=function(e,t){return{type:"initializeResource",id:e,values:t}},le=function(e,t,r){return{type:"updateResource",id:e,attr:t,value:r}},ye=function(e,t){return{type:"updateBatchResource",id:e,values:t}},be=function(e,t){var r=t.target;return le(e,r.name,r.value)},de=function(e){return{type:"removeResource",id:e}},ve=function(e){return{type:"resetResource",id:e}},Oe=function(e){return{type:"resetPristineResource",id:e}},he=function(e,t){return{type:"resetPristineKeyResource",id:e,attr:t}},je=function(e){return{type:"startFetchResource",id:e}},ge=function(e,t){return{type:"doneFetchResource",id:e,values:t}},Pe=function(e){return{type:"failFetchResource",id:e}},we=function(e){return{type:"startProcessResource",id:e}},me=function(e){return{type:"doneProcessResource",id:e}};function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Se=function(e){var t=e.getInitialState,r=e.customReducer,n=e.resourceReducer,o=e.initResource,u=e.customResourceActionTypes,i=void 0===u?{}:u,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _e({},t(),{},e)},f=function(e,t,r){var c=e.byId[t]||o();return n(c,_e({id:t},r))},p=function(e,t,r){var n=t.toString(),o=e.byId.hasOwnProperty(n)?e.ids:[].concat(s(e.ids),[n]);return _e({},e,{byId:_e({},e.byId,c({},n,f(e,n,{type:"updateBatchResource",values:r}))),ids:o})};return{reducer:function(e,t){var n=t.type,o=k(t,["type"]);switch("function"==typeof r&&(e=r(e,_e({type:n},o))),n){case"initialize":return a(o.values);case"update":return p(e,o.attr,o.value);case"updateBatch":return q(p,e,o.values);case"reset":return a();case"startProcess":return _e({},e,{processing:!0});case"doneProcess":return _e({},e,{processing:!1});case"startFetch":return _e({},e,{loading:!0});case"doneFetch":return function(e,t){var r=[],n=t.reduce((function(t,n){return r.push(n.id),_e({},t,c({},n.id,f(e,n.id,{type:"initializeResource",values:n})))}),{});return _e({},e,{byId:_e({},e.byId,{},n),ids:s(new Set([].concat(s(e.ids),r))),loading:!1,loaded:!0})}(e,o.values);case"failFetch":return _e({},e,{loading:!1});case"removeResource":return function(e,t){var r=_e({},e.byId);delete r[t];var n=e.ids.filter((function(e){return e!==t}));return _e({},e,{byId:r,ids:n})}(e,o.id);case"initializeResource":case"updateResource":case"updateBatchResource":case"resetResource":case"resetPristineResource":case"resetPristineKeyResource":case"startProcessResource":case"doneProcessResource":case"startFetchResource":case"doneFetchResource":case"failFetchResource":case i[n]:return function(e,t){var r=t.id,n=k(t,["id"]),o=f(e,r,n),u=e.byId.hasOwnProperty(r)?e.ids:[].concat(s(e.ids),[r]);return _e({},e,{byId:_e({},e.byId,c({},r,o)),ids:u})}(e,_e({type:n},o));default:return e}},init:a}};function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ae=function(e,t){var r=U("pristine"),n=r.getInitialPristineState,o=r.updatePristine,u=r.removePristine,i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return De({id:t},e(),{},r,{},n())},a=function(t,r,n){return n=function(t,r){return z()(r)?e()[t]:r}(r,n),De({},t=o(t,r,n),c({},r,n))};return{reducer:function(e,r){var n=r.type,o=r.id,c=k(r,["type","id"]);switch("function"===t&&(e=t(e,De({type:n},c))),n){case"initializeResource":return i(o,c.values);case"updateResource":return a(e,c.attr,c.value);case"updateBatchResource":return q(a,e,c.values);case"resetResource":return i(o);case"resetPristineResource":return u(e);case"resetPristineKeyResource":return u(e,c.attr);case"startProcessResource":return De({},e,{processing:!0});case"doneProcessResource":return De({},e,{processing:!1});case"startFetchResource":return De({},e,{loading:!0});case"doneFetchResource":return i(o,De({},c.values,{loading:!1,loaded:!0}));case"failFetchResource":return De({},e,{loading:!1});default:return e}},init:i}};function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getInitialState,c=t.reducer,i=t.actions,s=t.resourceOptions,f=void 0===s?{}:s,p=C({getInitialState:r,defaultInitialState:se}),l=C({getInitialState:f.getInitialState,defaultInitialState:fe}),y=Ae(l,f.reducer),d=y.reducer,v=y.init,O=Se({getInitialState:p,customReducer:c,resourceReducer:d,customResourceActionTypes:f.actionTypes,initResource:v}),h=O.reducer,j=O.init,g=E(),P=u(g,2),w=P[0],m=P[1],x=Z(w,m),_=Y(w,m),S=ne(_),R=J(w,m),D=R.useSelector,A=R.useAction,I=R.useResourceSelector,k=function(e){var t=e.children,r=e.initialState,c=e.extraArgument,s=u(b(h,{initialState:r,init:j,actions:Ie({},n,{},o,{},i),extraArgument:c}),2),f=s[0],p=s[1];return a.a.createElement(m.Provider,{value:p},a.a.createElement(w.Provider,{value:f},t))};return k.displayName=e,{Provider:k,useCollection:x,useMember:_,useSelector:D,useAction:A,useResourceSelector:I,Field:S}};function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.d(t,"hoaxActions",(function(){return Fe})),r.d(t,"makeMemberHoax",(function(){return ae})),r.d(t,"makeCollectionHoax",(function(){return Ce}));var Fe=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{},o)}])})); |
@@ -76,3 +76,5 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
var removeResource = function removeResource(state, resourceId) { | ||
delete state.byId[resourceId]; | ||
var byId = _objectSpread({}, state.byId); | ||
delete byId[resourceId]; | ||
var ids = state.ids.filter(function (id) { | ||
@@ -82,3 +84,3 @@ return id !== resourceId; | ||
return _objectSpread({}, state, { | ||
byId: _objectSpread({}, state.byId), | ||
byId: byId, | ||
ids: ids | ||
@@ -85,0 +87,0 @@ }); |
@@ -91,3 +91,5 @@ "use strict"; | ||
var removeResource = function removeResource(state, resourceId) { | ||
delete state.byId[resourceId]; | ||
var byId = _objectSpread({}, state.byId); | ||
delete byId[resourceId]; | ||
var ids = state.ids.filter(function (id) { | ||
@@ -97,3 +99,3 @@ return id !== resourceId; | ||
return _objectSpread({}, state, { | ||
byId: _objectSpread({}, state.byId), | ||
byId: byId, | ||
ids: ids | ||
@@ -100,0 +102,0 @@ }); |
{ | ||
"name": "react-hoax", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "Idiomatic resourceful context", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -79,3 +79,4 @@ import * as actionTypes from "../actionTypes"; | ||
const removeResource = (state, resourceId) => { | ||
delete state.byId[resourceId]; | ||
const byId = {...state.byId}; | ||
delete byId[resourceId]; | ||
const ids = state.ids.filter(id => id !== resourceId); | ||
@@ -85,5 +86,3 @@ | ||
...state, | ||
byId: { | ||
...state.byId | ||
}, | ||
byId, | ||
ids | ||
@@ -90,0 +89,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326181
7344