UNPKG

88.5 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ReduxFirestore",[],e):"object"==typeof exports?exports.ReduxFirestore=e():t.ReduxFirestore=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=299)}([function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(131),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.actionsPrefix="@@reduxFirestore",o=e.actionTypes={START:n+"/START",ERROR:n+"/ERROR",CLEAR_DATA:n+"/CLEAR_DATA",CLEAR_ERROR:n+"/CLEAR_ERROR",CLEAR_ERRORS:n+"/CLEAR_ERRORS",SET_LISTENER:n+"/SET_LISTENER",UNSET_LISTENER:n+"/UNSET_LISTENER",GET_REQUEST:n+"/GET_REQUEST",GET_SUCCESS:n+"/GET_SUCCESS",GET_FAILURE:n+"/GET_FAILURE",SET_REQUEST:n+"/SET_REQUEST",SET_SUCCESS:n+"/SET_SUCCESS",SET_FAILURE:n+"/SET_FAILURE",ADD_REQUEST:n+"/ADD_REQUEST",ADD_SUCCESS:n+"/ADD_SUCCESS",ADD_FAILURE:n+"/ADD_FAILURE",UPDATE_REQUEST:n+"/UPDATE_REQUEST",UPDATE_SUCCESS:n+"/UPDATE_SUCCESS",UPDATE_FAILURE:n+"/UPDATE_FAILURE",DELETE_REQUEST:n+"/DELETE_REQUEST",DELETE_SUCCESS:n+"/DELETE_SUCCESS",DELETE_FAILURE:n+"/DELETE_FAILURE",ATTACH_LISTENER:n+"/ATTACH_LISTENER",LISTENER_RESPONSE:n+"/LISTENER_RESPONSE",LISTENER_ERROR:n+"/LISTENER_ERROR",ON_SNAPSHOT_REQUEST:n+"/ON_SNAPSHOT_REQUEST",ON_SNAPSHOT_SUCCESS:n+"/ON_SNAPSHOT_SUCCESS",ON_SNAPSHOT_FAILURE:n+"/ON_SNAPSHOT_FAILURE",DOCUMENT_ADDED:n+"/DOCUMENT_ADDED",DOCUMENT_MODIFIED:n+"/DOCUMENT_MODIFIED",DOCUMENT_REMOVED:n+"/DOCUMENT_REMOVED",TRANSACTION_START:n+"/TRANSACTION_START",TRANSACTION_SUCCESS:n+"/TRANSACTION_SUCCESS",TRANSACTION_FAILURE:n+"/TRANSACTION_FAILURE"},i=e.defaultConfig={logListenerError:!0,enhancerNamespace:"firestore",helpersNamespace:null,allowMultipleListeners:!1,preserveOnDelete:null,preserveOnListenerError:null,onAttemptCollectionDelete:null,mergeOrdered:!0,mergeOrderedDocUpdates:!0,mergeOrderedCollectionUpdates:!0};e.methodsToAddFromFirestore=["collection","configureClient","doc","batch","disableNetwork","enableNetwork","enablePersistence","ensureClientConfigured","setLogLevel","settings"];e.default={actionsPrefix:n,actionTypes:o,defaultConfig:i}},function(t,e,r){var n=r(17),o=r(291),i=r(290),a="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(21),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,r){var n=r(217),o=r(207),i=r(24),a=r(0),u=r(203);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},function(t,e,r){var n=r(9),o=r(62);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(5),o=r(2),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==a||e==u||e==i||e==c}},function(t,e,r){var n=r(0),o=r(47),i=r(96),a=r(18);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,r){var n=r(36),o=r(20);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var f=e[u],s=i?i(r[f],t[f],f,r,t):void 0;void 0===s&&(s=t[f]),a?o(r,f,s):n(r,f,s)}return r}},function(t,e,r){var n=r(293),o=r(287);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s(r(169)),o=s(r(168)),i=s(r(167)),a=s(r(0)),u=s(r(164)),c=s(r(9)),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return t?t.split(/\//).filter(function(t){return!!t}):[]}e.pathToArr=l,e.getSlashStrPath=function(t){return(0,n.default)((0,o.default)(t,/[.]/g,"/"),"/")},e.getDotStrPath=function(t){return l(t).join(".")},e.combineReducers=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];return Object.keys(t).reduce(function(n,o){return n[o]=t[o](e[o],r),n},{})}},e.pathFromMeta=function t(e){if(!e)throw new Error("Action meta is required to build path for reducers.");var r=e.collection,n=e.doc,o=e.subcollections,i=e.storeAs;if(i)return n?i+"."+n:i;if(e.path)return e.path.split("/");if(!r)throw new Error("Collection is required to construct reducer path.");var a=r;n&&(a+="."+n);if(!o)return a;var u=o.map(t);return a.concat("."+u.join("."))},e.updateItemInArray=function(t,e,r){var n=!1,o=t.map(function(t){if(!t||t.id!==e)return t;n=!0;var o=r(t);return o});n||o.push(r({id:e}));return o},e.createReducer=function(t,e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments[1];return e.hasOwnProperty(n.type)?e[n.type](r,n):r}},e.preserveValuesFromState=function(t,e,r){if((0,u.default)(e))return r?f({},t,r):t;if((0,c.default)(e))return e(t,r);if((0,a.default)(e))return(0,i.default)(t,e);throw new Error("Invalid preserve parameter. It must be an Object or an Array.")}},function(t,e,r){var n=r(84),o=r(190)(n);t.exports=o},function(t,e,r){var n=r(232),o=r(57),i=r(231),a=r(105),u=r(132),c=r(5),f=r(130),s=f(n),l=f(o),p=f(i),d=f(a),v=f(u),h=c;(n&&"[object DataView]"!=h(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=h(new o)||i&&"[object Promise]"!=h(i.resolve())||a&&"[object Set]"!=h(new a)||u&&"[object WeakMap]"!=h(new u))&&(h=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?f(r):"";if(n)switch(n){case s:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case v:return"[object WeakMap]"}return e}),t.exports=h},function(t,e,r){var n=r(114),o=r(59),i=r(8);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(3).Symbol;t.exports=n},function(t,e,r){var n=r(46);t.exports=function(t){return null==t?"":n(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(119);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(5),o=r(1),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==i}},function(t,e){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?r:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(10),o=r(6);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(114),o=r(236),i=r(8);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){var n=r(241);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(12)(Object,"create");t.exports=n},function(t,e,r){var n=r(19);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(259),o=r(258),i=r(257),a=r(256),u=r(255);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,r){var n=r(31),o=r(254),i=r(253),a=r(252),u=r(251),c=r(250);function f(t){var e=this.__data__=new n(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=c,t.exports=f},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){(function(t){var n=r(3),o=r(263),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c}).call(this,r(64)(t))},function(t,e,r){var n=r(264),o=r(1),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e,r){var n=r(20),o=r(19),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(2),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,e,r){var n=r(39),o=r(2);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=n(t.prototype),i=t.apply(r,e);return o(i)?i:r}}},function(t,e){t.exports={}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=d(r(9)),o=d(r(181)),i=d(r(179)),a=d(r(177)),u=d(r(75)),c=d(r(0)),f=d(r(74)),s=d(r(2)),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.firestoreRef=function(t,e,r){if(!t.firestore)throw new Error("Firestore must be required and initalized.");var o=r.collection,a=r.doc,u=r.subcollections,c=r.where,f=r.orderBy,s=r.limit,l=r.startAt,p=r.startAfter,d=r.endAt,v=r.endBefore,g=t.firestore().collection(o);a&&(g=g.doc(a));g=function t(e,r){return r&&(0,i.default)(r,function(r){if(r.collection){if(!(0,n.default)(e.collection))throw new Error('Collection can only be run on a document. Check that query config for subcollection: "'+r.collection+'" contains a doc parameter.');e=e.collection(r.collection)}r.doc&&(e=e.doc(r.doc)),r.where&&(e=h(e,r.where)),r.orderBy&&(e=y(e,r.orderBy)),r.limit&&(e=e.limit(r.limit)),r.startAt&&(e=e.startAt(r.startAt)),r.startAfter&&(e=e.startAfter(r.startAfter)),r.endAt&&(e=e.endAt(r.endAt)),r.endBefore&&(e=e.endBefore(r.endBefore)),e=t(e,r.subcollections)}),e}(g,u),c&&(g=h(g,c));f&&(g=y(g,f));s&&(g=g.limit(s));l&&(g=g.startAt(l));p&&(g=g.startAfter(p));d&&(g=g.endAt(d));v&&(g=g.endBefore(v));return g},e.getQueryName=_,e.listenerExists=function(t,e){b(t,e);var r=_(e);return!!t._.listeners[r]},e.attachListener=function(t,e,r,n){b(t,r);var o=_(r);t._.listeners[o]||(t._.listeners[o]=n);return e({type:p.actionTypes.SET_LISTENER,meta:r,payload:{name:o}}),t._.listeners},e.detachListener=function(t,e,r){var n=_(r);t._.listeners[n]&&(t._.listeners[n](),delete t._.listeners[n]);e({type:p.actionTypes.UNSET_LISTENER,meta:r,payload:{name:n}})},e.queryStrToObj=x,e.getQueryConfig=m,e.getQueryConfigs=function(t){if((0,c.default)(t))return t.map(m);if((0,f.default)(t))return x(t);if((0,s.default)(t))return[m(t)];throw new Error("Querie(s) must be an Array or a string.")},e.orderedFromSnap=function(t){var e=[];if(t.data&&t.exists){var r=(0,s.default)(t.data())?l({id:t.id},t.data()||t.data):{id:t.id,data:t.data()};e.push(r)}else t.forEach&&t.forEach(function(t){var r=(0,s.default)(t.data())?l({id:t.id},t.data()||t.data):{id:t.id,data:t.data()};e.push(r)});return e},e.dataByIdSnapshot=function(t){var e={};t.data&&t.exists?e[t.id]=t.data():t.forEach&&t.forEach(function(t){e[t.id]=t.data()||t});return(0,u.default)(e)?e:null};var p=r(4);function d(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function h(t,e){if(!(0,c.default)(e))throw new Error("where parameter must be an array.");return(0,f.default)(e[0])?e.length>1?t.where.apply(t,v(e)):t.where(e[0]):e.reduce(function(t,e){return h(t,e)},t)}function y(t,e){if(!(0,c.default)(e)&&!(0,f.default)(e))throw new Error("orderBy parameter must be an array or string.");return(0,f.default)(e)?t.orderBy(e):(0,f.default)(e[0])?t.orderBy.apply(t,v(e)):e.reduce(function(t,e){return y(t,e)},t)}function g(t){return(0,f.default)(t[0])?"where="+t.join(":"):t.map(g)}function _(t){if((0,f.default)(t))return t;var e=t.collection,r=t.doc,n=t.subcollections,o=t.where,i=t.limit;if(!e)throw new Error("Collection is required to build query name");var a=e;(r&&(a=a.concat("/"+r)),n)&&(a=a+"/"+n.map(function(t){return _(t)}).join("/"));if(o){if(!(0,c.default)(o))throw new Error("where parameter must be an array.");a=a.concat("?"+g(o))}if(void 0!==i){var u="limit="+i;a=a.concat((o?"&":"?")+u)}return a}function b(t,e){if(!e)throw new Error("Meta data is required to attach listener.");if(!(0,o.default)(t,"_.listeners"))throw new Error("Internal Firebase object required to attach listener. Confirm that reduxFirestore enhancer was added when you were creating your store")}function x(t,e){var r,n=e||(0,a.default)(t,["/"]).split("/"),o=(r=n,Array.isArray(r)?r:Array.from(r)),i=o[0],u=o[1],c=o.slice(2),f={};return i&&(f.collection=i),u&&(f.doc=u),c.length&&(f.subcollections=[x("",c)]),f}function m(t){if((0,f.default)(t))return x(t);if((0,s.default)(t)){if(!t.collection&&!t.doc)throw new Error("Collection and/or Doc are required parameters within query definition object.");return t}throw new Error("Invalid Path Definition: Only Strings and Objects are accepted.")}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,r){var n=r(24),o=r(91),i=r(67);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e,r){var n=r(200),o=r(91),i=r(67);t.exports=function(t){return i(o(t,void 0,n),t+"")}},function(t,e,r){var n=r(17),o=r(25),i=r(0),a=r(21),u=1/0,c=n?n.prototype:void 0,f=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return f?f.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},function(t,e,r){var n=r(0),o=r(21),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(26);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var n=r(215),o=r(1);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},function(t,e,r){var n=r(5),o=r(53),i=r(1),a="[object Object]",u=Function.prototype,c=Object.prototype,f=u.toString,s=c.hasOwnProperty,l=f.call(Object);t.exports=function(t){if(!i(t)||n(t)!=a)return!1;var e=o(t);if(null===e)return!0;var r=s.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==l}},function(t,e,r){var n=r(104);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e,r){var n=r(113)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(111),o=r(110),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),function(e){return i.call(t,e)}))}:o;t.exports=u},function(t,e,r){var n=r(249),o=r(242),i=r(240),a=r(239),u=r(238);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,r){var n=r(12)(r(3),"Map");t.exports=n},function(t,e,r){var n=r(32),o=r(37),i=r(36),a=r(115),u=r(237),c=r(112),f=r(23),s=r(234),l=r(233),p=r(108),d=r(106),v=r(15),h=r(230),y=r(229),g=r(102),_=r(0),b=r(34),x=r(225),m=r(2),E=r(223),A=r(16),O=1,j=2,S=4,R="[object Arguments]",T="[object Function]",w="[object GeneratorFunction]",I="[object Object]",C={};C[R]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[I]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[T]=C["[object WeakMap]"]=!1,t.exports=function t(e,r,D,L,F,P){var M,U=r&O,N=r&j,W=r&S;if(D&&(M=F?D(e,L,F,P):D(e)),void 0!==M)return M;if(!m(e))return e;var k=_(e);if(k){if(M=h(e),!U)return f(e,M)}else{var B=v(e),z=B==T||B==w;if(b(e))return c(e,U);if(B==I||B==R||z&&!F){if(M=N||z?{}:g(e),!U)return N?l(e,u(M,e)):s(e,a(M,e))}else{if(!C[B])return F?e:{};M=y(e,B,U)}}P||(P=new n);var Q=P.get(e);if(Q)return Q;if(P.set(e,M),E(e))return e.forEach(function(n){M.add(t(n,r,D,n,e,P))}),M;if(x(e))return e.forEach(function(n,o){M.set(o,t(n,r,D,o,e,P))}),M;var q=W?N?d:p:N?keysIn:A,V=k?void 0:q(e);return o(V||e,function(n,o){V&&(n=e[o=n]),i(M,o,t(n,r,D,o,e,P))}),M}},function(t,e,r){var n=r(33),o=r(261),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){(function(t){var n=r(131),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,r(64)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e,r){var n=r(262),o=r(61),i=r(60),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],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}}),t.webpackPolyfill=1),t}},function(t,e){var r="__lodash_placeholder__";t.exports=function(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n];u!==e&&u!==r||(t[n]=r,a[i++]=n)}return a}},function(t,e,r){var n=r(273),o=r(272),i=r(271);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e,r){var n=r(276),o=r(121)(n);t.exports=o},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(39),o=r(68),i=4294967295;function a(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}a.prototype=n(o.prototype),a.prototype.constructor=a,t.exports=a},function(t,e,r){var n=r(134),o=r(286),i=r(285),a=r(129),u=r(269),c=r(125),f=r(268),s=r(122),l=r(120),p=r(116),d="Expected a function",v=1,h=2,y=8,g=16,_=32,b=64,x=Math.max;t.exports=function(t,e,r,m,E,A,O,j){var S=e&h;if(!S&&"function"!=typeof t)throw new TypeError(d);var R=m?m.length:0;if(R||(e&=~(_|b),m=E=void 0),O=void 0===O?O:x(p(O),0),j=void 0===j?j:p(j),R-=E?E.length:0,e&b){var T=m,w=E;m=E=void 0}var I=S?void 0:c(t),C=[t,e,r,m,E,T,w,A,O,j];if(I&&f(C,I),t=C[0],e=C[1],r=C[2],m=C[3],E=C[4],!(j=C[9]=void 0===C[9]?S?0:t.length:x(C[9]-R,0))&&e&(y|g)&&(e&=~(y|g)),e&&e!=v)D=e==y||e==g?i(t,e,j):e!=_&&e!=(v|_)||E.length?a.apply(void 0,C):u(t,e,r,m);else var D=o(t,e,r);return l((I?n:s)(D,C),t,e)}},function(t,e,r){var n=r(297),o=r(295);t.exports=function(t,e,r){return n(o,t,e,r)}},function(t,e,r){var n=r(25),o=r(58),i=r(155),a=r(10),u=r(11),c=r(154),f=r(45),s=r(106),l=f(function(t,e){var r={};if(null==t)return r;var f=!1;e=n(e,function(e){return e=a(e,t),f||(f=e.length>1),e}),u(t,s(t),r),f&&(r=o(r,7,c));for(var l=e.length;l--;)i(r,e[l]);return r});t.exports=l},function(t,e,r){var n=r(36),o=r(10),i=r(22),a=r(2),u=r(6);t.exports=function(t,e,r,c){if(!a(t))return t;for(var f=-1,s=(e=o(e,t)).length,l=s-1,p=t;null!=p&&++f<s;){var d=u(e[f]),v=r;if(f!=l){var h=p[d];void 0===(v=c?c(h,d,p):void 0)&&(v=a(h)?h:i(e[f+1])?[]:{})}n(p,d,v),p=p[d]}return t}},function(t,e,r){var n=r(5),o=r(0),i=r(1),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&n(t)==a}},function(t,e,r){var n=r(59),o=r(15),i=r(8),a=r(74),u=r(173),c="[object Map]",f="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?u(t):t.length;var e=o(t);return e==c||e==f?t.size:n(t).length}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(175),o=r(76),i=r(174);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e,r){var n=r(66);t.exports=function(t,e){for(var r=-1,o=t.length;++r<o&&n(e,t[r],0)>-1;);return r}},function(t,e,r){var n=r(81);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=c(r(182)),o=c(r(9)),i=c(r(2)),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function c(t){return t&&t.__esModule?t:{default:t}}e.wrapInDispatch=function(t,e){var r=e.ref,n=e.meta,a=void 0===n?{}:n,c=e.method,f=e.args,s=void 0===f?[]:f,l=e.types,p=u(l,3),d=p[0],v=p[1],h=p[2];return t({type:(0,i.default)(d)?d.type:d,meta:a,payload:(0,i.default)(d)?d.payload:{args:s}}),r[c].apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(s)).then(function(e){var r,n,u,c=(0,i.default)(v),f={type:c?v.type:v,meta:a,payload:c&&v.payload?(r=v,n=e,u=r.payload,(0,o.default)(u)?u(n):u):{args:s}};return c&&v.preserve&&(f.preserve=v.preserve),c&&v.merge&&(f.merge=v.merge),t(f),e}).catch(function(e){return t({type:h,meta:a,payload:e}),Promise.reject(e)})},e.mapWithFirebaseAndDispatch=function(t,e,r,o){var i=function(t,e){return function(r){return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.apply(t,[t,e].concat(o))}}}(t,e);return a({},(0,n.default)(r,i),o.reduce(function(t,e){var r=e.action,n=e.name;return a({},t,function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}({},n,i(r)))},{}))}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},function(t,e,r){var n=r(26),o=r(81);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.firestoreActions=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(r(188));e.firestoreActions=n,e.default={firestoreActions:n}},function(t,e,r){var n=r(89),o=r(16);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){var n=r(19),o=r(8),i=r(22),a=r(2);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},function(t,e,r){var n=r(44),o=r(85);t.exports=function(t){return n(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e})}},function(t,e){t.exports=function(t,e){return"__proto__"==e?void 0:t[e]}},function(t,e,r){var n=r(8),o=r(1);t.exports=function(t){return o(t)&&n(t)}},function(t,e,r){var n=r(195)();t.exports=n},function(t,e,r){var n=r(20),o=r(19);t.exports=function(t,e,r){(void 0===r||o(t[e],r))&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(38),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var f=Array(e+1);++a<e;)f[a]=i[a];return f[e]=r(c),n(t,this,f)}}},function(t,e,r){var n=r(54),o=r(199);t.exports=function t(e,r,i,a,u){var c=-1,f=e.length;for(i||(i=o),u||(u=[]);++c<f;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(10),o=r(35),i=r(0),a=r(22),u=r(62),c=r(6);t.exports=function(t,e,r){for(var f=-1,s=(e=n(e,t)).length,l=!1;++f<s;){var p=c(e[f]);if(!(l=null!=t&&r(t,p)))break;t=t[p]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},function(t,e,r){var n=r(204),o=r(94);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(206)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});t.exports=i},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},function(t,e,r){var n=r(2);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(56),o=r(214),i=r(213);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,r){var n=r(100),o=r(212),i=r(99),a=1,u=2;t.exports=function(t,e,r,c,f,s){var l=r&a,p=t.length,d=e.length;if(p!=d&&!(l&&d>p))return!1;var v=s.get(t);if(v&&s.get(e))return v==e;var h=-1,y=!0,g=r&u?new n:void 0;for(s.set(t,e),s.set(e,t);++h<p;){var _=t[h],b=e[h];if(c)var x=l?c(b,_,h,e,t,s):c(_,b,h,t,e,s);if(void 0!==x){if(x)continue;y=!1;break}if(g){if(!o(e,function(t,e){if(!i(g,e)&&(_===t||f(_,t,r,c,s)))return g.push(e)})){y=!1;break}}else if(_!==b&&!f(_,b,r,c,s)){y=!1;break}}return s.delete(t),s.delete(e),y}},function(t,e,r){var n=r(39),o=r(53),i=r(33);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(52);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(3).Uint8Array;t.exports=n},function(t,e,r){var n=r(12)(r(3),"Set");t.exports=n},function(t,e,r){var n=r(107),o=r(109),i=r(27);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(54),o=r(0);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e,r){var n=r(107),o=r(55),i=r(16);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(54),o=r(53),i=r(55),a=r(110),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=u},function(t,e){t.exports=function(){return[]}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e,r){(function(t){var n=r(3),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(64)(t))},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(265),o=r(35),i=r(0),a=r(34),u=r(22),c=r(63),f=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),l=!r&&!s&&a(t),p=!r&&!s&&!l&&c(t),d=r||s||l||p,v=d?n(t.length,String):[],h=v.length;for(var y in t)!e&&!f.call(t,y)||d&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,h))||v.push(y);return v}},function(t,e,r){var n=r(11),o=r(16);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(267);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e){t.exports=function(t){return t.placeholder}},function(t,e,r){var n=r(66);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(12),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(278),o=r(277),i=r(67),a=r(274);t.exports=function(t,e,r){var u=e+"";return i(t,o(u,a(n(u),r)))}},function(t,e){var r=800,n=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),u=n-(a-i);if(i=a,u>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(134),o=r(121)(n);t.exports=o},function(t,e,r){var n=r(39),o=r(68);function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,t.exports=i},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(133),o=r(124),i=n?function(t){return n.get(t)}:o;t.exports=i},function(t,e,r){var n=r(283),o=r(122),i=r(120),a=1,u=2,c=4,f=8,s=32,l=64;t.exports=function(t,e,r,p,d,v,h,y,g,_){var b=e&f;e|=b?s:l,(e&=~(b?l:s))&c||(e&=~(a|u));var x=[t,e,d,b?v:void 0,b?h:void 0,b?void 0:v,b?void 0:h,y,g,_],m=r.apply(void 0,x);return n(t)&&o(m,x),m.placeholder=p,i(m,t,e)}},function(t,e){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,u=-1,c=n.length,f=-1,s=e.length,l=r(a-c,0),p=Array(l+s),d=!o;++i<l;)p[i]=t[i];for(var v=i;++f<s;)p[v+f]=e[f];for(;++u<c;)(d||i<a)&&(p[v+n[u]]=t[i++]);return p}},function(t,e){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,u=n.length,c=-1,f=e.length,s=r(a-u,0),l=Array(f+s),p=!o;++c<f;)l[c]=e[c];for(;++i<u;)(p||i<a)&&(l[n[i]]=t[i]);for(;s--;)l[c++]=t[i++];return l}},function(t,e,r){var n=r(128),o=r(127),i=r(284),a=r(40),u=r(126),c=r(117),f=r(270),s=r(65),l=r(3),p=1,d=2,v=8,h=16,y=128,g=512;t.exports=function t(e,r,_,b,x,m,E,A,O,j){var S=r&y,R=r&p,T=r&d,w=r&(v|h),I=r&g,C=T?void 0:a(e);return function p(){for(var d=arguments.length,v=Array(d),h=d;h--;)v[h]=arguments[h];if(w)var y=c(p),g=i(v,y);if(b&&(v=n(v,b,x,w)),m&&(v=o(v,m,E,w)),d-=g,w&&d<j){var D=s(v,y);return u(e,r,t,p.placeholder,_,v,D,A,O,j-d)}var L=R?_:this,F=T?L[e]:e;return d=v.length,A?v=f(v,A):I&&d>1&&v.reverse(),S&&O<d&&(v.length=O),this&&this!==l&&this instanceof p&&(F=C||a(F)),F.apply(L,v)}}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(292))},function(t,e,r){var n=r(12)(r(3),"WeakMap");t.exports=n},function(t,e,r){var n=r(132),o=n&&new n;t.exports=o},function(t,e,r){var n=r(24),o=r(133),i=o?function(t,e){return o.set(t,e),t}:n;t.exports=i},function(t,e,r){var n=r(71)("merge",r(197));n.placeholder=r(41),t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=f(r(135)),o=f(r(192)),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=function(t,e,r){var f={listeners:{},config:i({defaultConfig:c.defaultConfig},e)};t._=(0,n.default)(f,t._);var l=[{action:a.firestoreActions.deleteRef,name:"delete"},{action:a.firestoreActions.setListener,name:"onSnapshot"}],p=(0,u.mapWithFirebaseAndDispatch)(t,r,a.firestoreActions,l),d=(0,o.default)(c.methodsToAddFromFirestore,function(e,r){return t.firestore&&"function"==typeof t.firestore()[r]?i({},e,s({},r,t.firestore()[r].bind(t.firestore()))):e},{});return i(d,t.firestore,{_:t._},e.helpersNamespace?s({},e.helpersNamespace,p):p)};var a=r(83),u=r(80),c=r(4);function f(t){return t&&t.__esModule?t:{default:t}}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CALL_FIRESTORE=void 0;var n,o=r(0),i=(n=o)&&n.__esModule?n:{default:n},a=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=function(t){return function(e){return function(r){return function(n){var o=n.type===f?n:void 0;if(void 0===o)return r(n);var c=o.method;if("function"==typeof c&&(c=c(e.getState())),"string"!=typeof c)throw new Error("Specify a method.");var l=o.args,p=s[c];if(!Array.isArray(p)||3!==p.length)throw new Error("Expected an array of three action types.");if(!p.every(function(t){return"string"==typeof t}))throw new Error("Expected action types to be strings.");var d=a(p,3),v=d[0],h=d[1],y=d[2];r({type:v});var g={method:c};return function(t,e){var r=e.method,n=e.modelArgs,o=e.methodArgs;(0,i.default)(n)||(n=[n]);(0,i.default)(o)||(o=[o]);if(!t||!t.firestore)throw new Error("firestore is not a Firebase namespace");return o?t.firestore()[r].apply(t,o):t.firestore()[r]}(t,g).then(function(t){return r({response:t,method:c,args:l,type:h})}).catch(function(t){return r((e={type:y,error:t.message||t||"Something bad happened"},delete(o=u({},n,e))[f],o));var e,o})}}}};var c=r(4);var f=e.CALL_FIRESTORE="CALL_FIRESTORE",s={get:[c.actionTypes.GET_REQUEST,c.actionTypes.GET_SUCCESS,c.actionTypes.GET_FAILURE]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.requestingReducer=l,e.requestedReducer=p,e.timestampsReducer=d;var o=r(4),i=r(13),a=r(42);function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=o.actionTypes.SET_LISTENER,f=o.actionTypes.LISTENER_ERROR,s=o.actionTypes.LISTENER_RESPONSE;function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=e.type,o=e.meta;switch(r){case c:return n({},t,u({},(0,i.getSlashStrPath)((0,a.getQueryName)(o)),!0));case f:case s:return n({},t,u({},(0,i.getSlashStrPath)((0,a.getQueryName)(o)),!1));default:return t}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=e.type,o=e.meta;switch(r){case c:return n({},t,u({},(0,a.getQueryName)(o),!1));case f:case s:return n({},t,u({},(0,a.getQueryName)(o),!0));default:return t}}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=e.type,o=e.meta;switch(r){case c:return n({},t,u({},(0,a.getQueryName)(o),Date.now()));default:return t}}e.default=(0,i.combineReducers)({requesting:l,requested:p,timestamps:d})},function(t,e,r){var n=r(105),o=r(124),i=r(49),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e,r){var n=r(100),o=r(118),i=r(140),a=r(99),u=r(139),c=r(49),f=200;t.exports=function(t,e,r){var s=-1,l=o,p=t.length,d=!0,v=[],h=v;if(r)d=!1,l=i;else if(p>=f){var y=e?null:u(t);if(y)return c(y);d=!1,l=a,h=new n}else h=e?[]:v;t:for(;++s<p;){var g=t[s],_=e?e(g):g;if(g=r||0!==g?g:0,d&&_==_){for(var b=h.length;b--;)if(h[b]===_)continue t;e&&h.push(_),v.push(g)}else l(h,_,r)||(h!==v&&h.push(_),v.push(g))}return v}},function(t,e,r){var n=r(92),o=r(7),i=r(44),a=r(141),u=r(88),c=r(43),f=i(function(t){var e=c(t);return u(e)&&(e=void 0),a(n(t,1,u,!0),o(e,2))});t.exports=f},function(t,e){var r="Expected a function";t.exports=function(t){if("function"!=typeof t)throw new TypeError(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},function(t,e,r){var n=r(14);t.exports=function(t,e){var r=[];return n(t,function(t,n,o){e(t,n,o)&&r.push(t)}),r}},function(t,e,r){var n=r(111),o=r(144),i=r(7),a=r(0),u=r(143);t.exports=function(t,e){return(a(t)?n:o)(t,u(i(e,3)))}},function(t,e,r){var n=r(14),o=r(8);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},function(t,e,r){var n=r(25),o=r(7),i=r(146),a=r(0);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},function(t,e,r){var n=r(14);t.exports=function(t,e,r,o){return n(t,function(t,n,i){e(o,t,r(t),i)}),o}},function(t,e){t.exports=function(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}},function(t,e,r){var n=r(149),o=r(148),i=r(7),a=r(0);t.exports=function(t,e){return function(r,u){var c=a(r)?n:o,f=e?e():{};return c(r,t,i(u,2),f)}}},function(t,e,r){var n=r(20),o=r(150)(function(t,e,r){n(t,r,e)});t.exports=o},function(t,e,r){var n=r(50);t.exports=function(t,e){return n(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=g(r(135)),i=g(r(152)),a=g(r(151)),u=g(r(147)),c=g(r(72)),f=g(r(145)),s=g(r(142)),l=g(r(48)),p=g(r(75)),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},v=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(!e.type||!e.meta||!e.meta.storeAs&&!e.meta.collection)return t;if(e.type===A)return e.preserve&&e.preserve.ordered?(0,y.preserveValuesFromState)(t,e.preserve.ordered,{}):{};if(!Object.prototype.hasOwnProperty.call(I,e.type))return t;var r=e.meta.storeAs||e.meta.collection,n=(0,l.default)(t,r);return d({},t,b({},r,C(n,e)))};var h=r(4),y=r(13);function g(t){return t&&t.__esModule?t:{default:t}}function _(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var x=h.actionTypes.DOCUMENT_ADDED,m=h.actionTypes.GET_SUCCESS,E=h.actionTypes.LISTENER_RESPONSE,A=h.actionTypes.CLEAR_DATA,O=h.actionTypes.DELETE_SUCCESS,j=h.actionTypes.DOCUMENT_REMOVED,S=h.actionTypes.DOCUMENT_MODIFIED;function R(t,e){if(!e.meta.subcollections||e.meta.storeAs)return(0,y.updateItemInArray)(t,e.meta.doc,function(t){return(0,o.default)(t,e.payload.data)});var r=(0,y.pathToArr)(e.meta.path),n=v(r,4),i=n[1],a=n[2],u=n[3];return(0,y.updateItemInArray)(t,i,function(t){return d({},t,b({},a,(0,y.updateItemInArray)((0,l.default)(t,a,[]),u,function(t){return(0,o.default)(t,e.payload.data)})))})}function T(t,e){if(!e.meta.subcollections||e.meta.storeAs)return(0,f.default)(t,{id:e.meta.doc});var r=e.meta.subcollections[0];return r.doc?(0,y.updateItemInArray)(t,e.meta.doc,function(e){return(0,l.default)(e,r.collection,[]).length?d({},e,b({},r.collection,(0,f.default)(t,{id:r.doc}))):e}):(0,y.updateItemInArray)(t,e.meta.doc,function(t){return(0,c.default)(t,[r.collection])})}function w(t,e){var r=e.meta,n=e.merge,f=void 0===n?{doc:!0,collections:!0}:n;if(r.storeAs)return e.payload.ordered;var v=(0,p.default)(t),h=!!(0,p.default)(e.payload.ordered);if(r.doc&&f.doc&&v)return R(t,e);if(v&&f.collections){if(!h)return[];var g=t&&(0,a.default)(t,"id");return(0,u.default)(e.payload.ordered,function(t){var e=(0,l.default)(g,t.id);return e&&!(0,i.default)(e,t)?d({},e,t):t})}if(r.doc&&r.subcollections){var _=r.subcollections[0];return v?(0,y.updateItemInArray)(t,r.doc,function(t){return h?d({},t,b({},_.collection,(0,s.default)((0,l.default)(t,_.collection,[]),e.payload.ordered,"id"))):(0,c.default)(t,[_.collection])}):[b({id:r.doc},_.collection,e.payload.ordered)]}return r.doc&&v?(0,y.updateItemInArray)(t,r.doc,function(t){return(0,o.default)(t,e.payload.ordered[0])}):e.payload.ordered}var I=(b(n={},x,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],r=e.meta,n=e.payload;return!r.subcollections||r.storeAs?[].concat(_(t.slice(0,n.ordered.newIndex)),[d({id:r.doc},n.data)],_(t.slice(n.ordered.newIndex))):R(t,e)}),b(n,S,R),b(n,j,T),b(n,O,T),b(n,E,w),b(n,m,w),n),C=(0,y.createReducer)(void 0,I)},function(t,e,r){var n=r(51);t.exports=function(t){return n(t)?void 0:t}},function(t,e,r){var n=r(10),o=r(43),i=r(82),a=r(6);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(72),i=(n=o)&&n.__esModule?n:{default:n},a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(4);var c=(0,r(13).combineReducers)({byId:function(){var t,e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],c=o.type,f=o.path,s=o.payload;switch(c){case u.actionTypes.SET_LISTENER:return a({},n,(t={},e=s.name,r={name:s.name,path:f},e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t));case u.actionTypes.UNSET_LISTENER:return(0,i.default)(n,[s.name]);default:return n}},allIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],r=e.type,n=e.payload;switch(r){case u.actionTypes.SET_LISTENER:return[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t),[n.name]);case u.actionTypes.UNSET_LISTENER:return t.filter(function(t){return t!==n.name});default:return t}}});e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(4),i=r(42),a=r(13);function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=o.actionTypes.CLEAR_ERRORS,f=o.actionTypes.CLEAR_ERROR,s=o.actionTypes.LISTENER_ERROR,l=o.actionTypes.ERROR;var p=(0,a.combineReducers)({byQuery:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=e.meta,o=e.payload;switch(e.type){case l:case s:return n({},t,u({},(0,i.getQueryName)(r),o));case f:return n({},t,u({},(0,i.getQueryName)(r),null));default:return t}},allIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],r=e.meta;switch(e.type){case s:case l:return-1!==t.indexOf((0,i.getQueryName)(r))?t:[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t),[(0,i.getQueryName)(r)]);case c:return[];case f:return t.filter(function(t){return t!==(0,i.getQueryName)(r)});default:return t}}});e.default=p},function(t,e,r){var n=r(73);t.exports=function(t,e,r,o){return o="function"==typeof o?o:void 0,null==t?t:n(t,e,r,o)}},function(t,e,r){var n=r(71)("setWith",r(158));n.placeholder=r(41),t.exports=n},function(t,e,r){var n=r(36),o=r(11),i=r(86),a=r(8),u=r(33),c=r(16),f=Object.prototype.hasOwnProperty,s=i(function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)f.call(e,r)&&n(t,r,e[r])});t.exports=s},function(t,e,r){var n=r(71)("assign",r(160));n.placeholder=r(41),t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=c(r(161)),o=c(r(159)),i=c(r(48));e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];switch(e.type){case s:case l:var r=e.meta,a=e.payload;if(!a||void 0===a.data)return t;var c=function t(e){return e.subcollections?t(e.subcollections.slice(-1)[0]):e.doc}(r),g=c?(0,i.default)(a.data,c):a.data,_=(0,i.default)(t,r.storeAs||(0,u.pathFromMeta)(r));if(!_||r.subcollections)return(0,o.default)(Object,r.storeAs||(0,u.pathFromMeta)(r),g,t);var b=(0,n.default)(_,g);return(0,o.default)(Object,r.storeAs||(0,u.pathFromMeta)(r),b,t);case h:case v:return(0,o.default)(Object,(0,u.pathFromMeta)(e.meta),e.payload.data,t);case y:case d:var x=(0,u.pathFromMeta)(e.meta),m=(0,o.default)(Object,x,null,t);return e.preserve&&e.preserve.data?(0,u.preserveValuesFromState)(t,e.preserve.data,m):m;case f:return e.preserve&&e.preserve.data?(0,u.preserveValuesFromState)(t,e.preserve.data,{}):{};case p:var E=(0,o.default)(Object,(0,u.pathFromMeta)(e.meta),null,t);if(e.preserve&&e.preserve.data)return(0,u.preserveValuesFromState)(t,e.preserve.data,E);var A=(0,i.default)(t,(0,u.pathFromMeta)(e.meta));return A?t:E;default:return t}};var a=r(4),u=r(13);function c(t){return t&&t.__esModule?t:{default:t}}var f=a.actionTypes.CLEAR_DATA,s=a.actionTypes.GET_SUCCESS,l=a.actionTypes.LISTENER_RESPONSE,p=a.actionTypes.LISTENER_ERROR,d=a.actionTypes.DELETE_SUCCESS,v=a.actionTypes.DOCUMENT_ADDED,h=a.actionTypes.DOCUMENT_MODIFIED,y=a.actionTypes.DOCUMENT_REMOVED},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statusReducer=e.orderedReducer=e.listenersReducer=e.errorsReducer=e.dataReducer=void 0;var n=c(r(162)),o=c(r(157)),i=c(r(156)),a=c(r(153)),u=c(r(138));function c(t){return t&&t.__esModule?t:{default:t}}e.dataReducer=n.default,e.errorsReducer=o.default,e.listenersReducer=i.default,e.orderedReducer=a.default,e.statusReducer=u.default,e.default={dataReducer:n.default,errorsReducer:o.default,listenersReducer:i.default,orderedReducer:a.default,statusReducer:u.default}},function(t,e,r){var n=r(5),o=r(1),i="[object Boolean]";t.exports=function(t){return!0===t||!1===t||o(t)&&n(t)==i}},function(t,e,r){var n=r(26),o=r(73),i=r(10);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var f=e[a],s=n(t,f);r(s,f)&&o(c,i(f,t),s)}return c}},function(t,e,r){var n=r(165),o=r(95);t.exports=function(t,e){return n(t,e,function(e,r){return o(t,r)})}},function(t,e,r){var n=r(166),o=r(45)(function(t,e){return null==t?{}:n(t,e)});t.exports=o},function(t,e,r){var n=r(18);t.exports=function(){var t=arguments,e=n(t[0]);return t.length<3?e:e.replace(t[1],t[2])}},function(t,e,r){var n=r(46),o=r(79),i=r(78),a=r(77),u=r(18),c=/^\s+/;t.exports=function(t,e,r){if((t=u(t))&&(r||void 0===e))return t.replace(c,"");if(!t||!(e=n(e)))return t;var f=a(t),s=i(f,a(e));return o(f,s).join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13),o=r(163);e.default=(0,n.combineReducers)({status:o.statusReducer,data:o.dataReducer,ordered:o.orderedReducer,listeners:o.listenersReducer,errors:o.errorsReducer})},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",f="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),s="(?:"+[i+n+"?",n,a,u,r].join("|")+")",l=RegExp(o+"(?="+o+")|"+s+f,"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},function(t,e,r){var n=r(93)("length");t.exports=n},function(t,e,r){var n=r(172),o=r(76),i=r(171);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",f="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),s="(?:"+[i+n+"?",n,a,u,r].join("|")+")",l=RegExp(o+"(?="+o+")|"+s+f,"g");t.exports=function(t){return t.match(l)||[]}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e,r){var n=r(66);t.exports=function(t,e){for(var r=t.length;r--&&n(e,t[r],0)>-1;);return r}},function(t,e,r){var n=r(46),o=r(79),i=r(176),a=r(78),u=r(77),c=r(18),f=/^\s+|\s+$/g;t.exports=function(t,e,r){if((t=c(t))&&(r||void 0===e))return t.replace(f,"");if(!t||!(e=n(e)))return t;var s=u(t),l=u(e),p=a(s,l),d=i(s,l)+1;return o(s,p,d).join("")}},function(t,e,r){var n=r(24);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){var n=r(37),o=r(14),i=r(178),a=r(0);t.exports=function(t,e){return(a(t)?n:o)(t,i(e))}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},function(t,e,r){var n=r(180),o=r(94);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e,r){var n=r(20),o=r(84),i=r(7);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},function(t,e,r){var n=r(38),o=r(10),i=r(43),a=r(82),u=r(6);t.exports=function(t,e,r){e=o(e,t);var c=null==(t=a(t,e))?t:t[u(i(e))];return null==c?void 0:n(c,t,r)}},function(t,e,r){var n=r(183),o=r(44)(n);t.exports=o},function(t,e,r){var n=r(14);t.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},function(t,e,r){var n=r(186),o=r(185),i=r(7),a=r(0),u=r(85);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=l(r(187)),o=l(r(9)),i=l(r(184)),a=l(r(0)),u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.add=d,e.set=function(t,e,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];var a=(0,s.getQueryConfig)(r);return(0,c.wrapInDispatch)(e,{ref:(0,s.firestoreRef)(t,e,a),method:"set",meta:a,args:o,types:[f.actionTypes.SET_REQUEST,f.actionTypes.SET_SUCCESS,f.actionTypes.SET_FAILURE]})},e.get=v,e.update=h,e.deleteRef=function(t,e,r){var i=(0,s.getQueryConfig)(r),a=t._.config;if(!i.doc||i.subcollections&&!(0,n.default)(i.subcollections,"doc"))return(0,o.default)(a.onAttemptCollectionDelete)?a.onAttemptCollectionDelete(r,e,t):Promise.reject(new Error("Only documents can be deleted."));return(0,c.wrapInDispatch)(e,{ref:(0,s.firestoreRef)(t,e,i),method:"delete",meta:i,types:[f.actionTypes.DELETE_REQUEST,{type:f.actionTypes.DELETE_SUCCESS,preserve:t._.config.preserveOnDelete},f.actionTypes.DELETE_FAILURE]})},e.setListener=_,e.setListeners=b,e.unsetListener=x,e.unsetListeners=m,e.runTransaction=E;var c=r(80),f=r(4),s=r(42);function l(t){return t&&t.__esModule?t:{default:t}}var p={};function d(t,e,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];var a=(0,s.getQueryConfig)(r);return(0,c.wrapInDispatch)(e,{ref:(0,s.firestoreRef)(t,e,a),method:"add",meta:a,args:o,types:[f.actionTypes.ADD_REQUEST,{type:f.actionTypes.ADD_SUCCESS,payload:function(t){return{id:t.id,data:o[0]}}},f.actionTypes.ADD_FAILURE]})}function v(t,e,r){var n=(0,s.getQueryConfig)(r),o=t._.config||{},i=o.mergeOrdered,a=o.mergeOrderedDocUpdates,u=o.mergeOrderedCollectionUpdates;return(0,c.wrapInDispatch)(e,{ref:(0,s.firestoreRef)(t,e,n),method:"get",meta:n,types:[f.actionTypes.GET_REQUEST,{type:f.actionTypes.GET_SUCCESS,payload:function(t){return{data:(0,s.dataByIdSnapshot)(t),ordered:(0,s.orderedFromSnap)(t)}},merge:{docs:i&&a,collections:i&&u}},f.actionTypes.GET_FAILURE]})}function h(t,e,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];var a=(0,s.getQueryConfig)(r);return(0,c.wrapInDispatch)(e,{ref:(0,s.firestoreRef)(t,e,a),method:"update",meta:a,args:o,types:[f.actionTypes.UPDATE_REQUEST,f.actionTypes.UPDATE_SUCCESS,f.actionTypes.UPDATE_FAILURE]})}var y={added:f.actionTypes.DOCUMENT_ADDED,removed:f.actionTypes.DOCUMENT_REMOVED,modified:f.actionTypes.DOCUMENT_MODIFIED};function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u({},e,{path:t.doc.ref.path});return e.subcollections&&!e.storeAs?r.subcollections[0]=u({},r.subcollections[0],{doc:t.doc.id}):r.doc=t.doc.id,{type:y[t.type]||f.actionTypes.DOCUMENT_MODIFIED,meta:r,payload:{data:t.doc.data(),ordered:{oldIndex:t.oldIndex,newIndex:t.newIndex}}}}function _(t,e,r,n,o){var a=(0,s.getQueryConfig)(r),u=t._.config||{},c=u.mergeOrdered,l=u.mergeOrderedDocUpdates,p=u.mergeOrderedCollectionUpdates,d=(0,s.firestoreRef)(t,e,a).onSnapshot(function(t){var r="function"==typeof t.docChanges?t.docChanges():t.docChanges;r&&r.length<t.size?1===r.length?e(g(r[0],a)):r.forEach(function(t){e(g(t,a))}):e({type:f.actionTypes.LISTENER_RESPONSE,meta:a,payload:{data:(0,s.dataByIdSnapshot)(t),ordered:(0,s.orderedFromSnap)(t)},merge:{docs:c&&l,collections:c&&p}}),n&&n(t)},function(r){var n=t._.config||{},u=n.logListenerError,s=n.preserveOnListenerError;u&&(0,i.default)(console,"error",r),e({type:f.actionTypes.LISTENER_ERROR,meta:a,payload:r,merge:{docs:c&&l,collections:c&&p},preserve:s}),o&&o(r)});(0,s.attachListener)(t,e,a,d)}function b(t,e,r){if(!(0,a.default)(r))throw new Error("Listeners must be an Array of listener configs (Strings/Objects).");var n=t._.config;return n.oneListenerPerPath?r.forEach(function(r){var n=(0,s.getQueryName)(r),o=p[n]||0;p[n]=o+1,o>0||_(t,e,r)}):r.forEach(function(r){var i=(0,o.default)(n.allowMultipleListeners)?n.allowMultipleListeners(r,t._.listeners):n.allowMultipleListeners;(0,s.listenerExists)(t,r)&&!i||_(t,e,r)})}function x(t,e,r){return(0,s.detachListener)(t,e,(0,s.getQueryConfig)(r))}function m(t,e,r){if(!(0,a.default)(r))throw new Error("Listeners must be an Array of listener configs (Strings/Objects).");t._.config.oneListenerPerPath?r.forEach(function(r){var n=(0,s.getQueryName)(r);p[n]-=1,0===p[n]&&x(t,e,r)}):r.forEach(function(r){x(t,e,r)})}function E(t,e,r){return(0,c.wrapInDispatch)(e,{ref:t.firestore(),method:"runTransaction",args:[r],types:[f.actionTypes.TRANSACTION_START,f.actionTypes.TRANSACTION_SUCCESS,f.actionTypes.TRANSACTION_FAILURE]})}e.default={get:v,firestoreRef:s.firestoreRef,add:d,update:h,setListener:_,setListeners:b,unsetListener:x,unsetListeners:m,runTransaction:E}},function(t,e){t.exports=function(t,e,r,n,o){return o(t,function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)}),r}},function(t,e,r){var n=r(8);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(191),o=r(14),i=r(7),a=r(189),u=r(0);t.exports=function(t,e,r){var c=u(t)?n:a,f=arguments.length<3;return c(t,i(e,4),r,f,o)}},function(t,e,r){var n=r(11),o=r(27);t.exports=function(t){return n(t,o(t))}},function(t,e,r){var n=r(90),o=r(112),i=r(103),a=r(23),u=r(102),c=r(35),f=r(0),s=r(88),l=r(34),p=r(9),d=r(2),v=r(51),h=r(63),y=r(87),g=r(193);t.exports=function(t,e,r,_,b,x,m){var E=y(t,r),A=y(e,r),O=m.get(A);if(O)n(t,r,O);else{var j=x?x(E,A,r+"",t,e,m):void 0,S=void 0===j;if(S){var R=f(A),T=!R&&l(A),w=!R&&!T&&h(A);j=A,R||T||w?f(E)?j=E:s(E)?j=a(E):T?(S=!1,j=o(A,!0)):w?(S=!1,j=i(A,!0)):j=[]:v(A)||c(A)?(j=E,c(E)?j=g(E):(!d(E)||_&&p(E))&&(j=u(A))):S=!1}S&&(m.set(A,j),b(j,A,_,x,m),m.delete(A)),n(t,r,j)}}},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},function(t,e,r){var n=r(32),o=r(90),i=r(89),a=r(194),u=r(2),c=r(27),f=r(87);t.exports=function t(e,r,s,l,p){e!==r&&i(r,function(i,c){if(u(i))p||(p=new n),a(e,r,c,s,t,l,p);else{var d=l?l(f(e,c),i,c+"",e,r,p):void 0;void 0===d&&(d=i),o(e,c,d)}},c)}},function(t,e,r){var n=r(196),o=r(86)(function(t,e,r){n(t,e,r)});t.exports=o},function(t,e,r){var n=r(25),o=r(23),i=r(0),a=r(21),u=r(96),c=r(6),f=r(18);t.exports=function(t){return i(t)?n(t,c):a(t)?[t]:o(u(f(t)))}},function(t,e,r){var n=r(17),o=r(35),i=r(0),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,r){var n=r(92);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},function(t,e,r){var n=r(70),o=r(45)(function(t,e){return n(t,256,void 0,void 0,void 0,e)});t.exports=o},function(t,e,r){var n=r(26);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){var n=r(93),o=r(202),i=r(47),a=r(6);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(56),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(205),o=500;t.exports=function(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e}},function(t,e,r){var n=r(50),o=r(48),i=r(95),a=r(47),u=r(98),c=r(97),f=r(6),s=1,l=2;t.exports=function(t,e){return a(t)&&u(e)?c(f(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,s|l)}}},function(t,e,r){var n=r(98),o=r(16);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(108),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,a,u,c){var f=r&o,s=n(t),l=s.length;if(l!=n(e).length&&!f)return!1;for(var p=l;p--;){var d=s[p];if(!(f?d in e:i.call(e,d)))return!1}var v=c.get(t);if(v&&c.get(e))return v==e;var h=!0;c.set(t,e),c.set(e,t);for(var y=f;++p<l;){var g=t[d=s[p]],_=e[d];if(a)var b=f?a(_,g,d,e,t,c):a(g,_,d,t,e,c);if(!(void 0===b?g===_||u(g,_,r,a,c):b)){h=!1;break}y||(y="constructor"==d)}if(h&&!y){var x=t.constructor,m=e.constructor;x!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(h=!1)}return c.delete(t),c.delete(e),h}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},function(t,e,r){var n=r(17),o=r(104),i=r(19),a=r(101),u=r(210),c=r(49),f=1,s=2,l="[object Boolean]",p="[object Date]",d="[object Error]",v="[object Map]",h="[object Number]",y="[object RegExp]",g="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",E=n?n.prototype:void 0,A=E?E.valueOf:void 0;t.exports=function(t,e,r,n,E,O,j){switch(r){case m:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!O(new o(t),new o(e)));case l:case p:case h:return i(+t,+e);case d:return t.name==e.name&&t.message==e.message;case y:case _:return t==e+"";case v:var S=u;case g:var R=n&f;if(S||(S=c),t.size!=e.size&&!R)return!1;var T=j.get(t);if(T)return T==e;n|=s,j.set(t,e);var w=a(S(t),S(e),n,E,O,j);return j.delete(t),w;case b:if(A)return A.call(t)==A.call(e)}return!1}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){var r="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,r),this}},function(t,e,r){var n=r(32),o=r(101),i=r(211),a=r(209),u=r(15),c=r(0),f=r(34),s=r(63),l=1,p="[object Arguments]",d="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,g,_){var b=c(t),x=c(e),m=b?d:u(t),E=x?d:u(e),A=(m=m==p?v:m)==v,O=(E=E==p?v:E)==v,j=m==E;if(j&&f(t)){if(!f(e))return!1;b=!0,A=!1}if(j&&!A)return _||(_=new n),b||s(t)?o(t,e,r,y,g,_):i(t,e,m,r,y,g,_);if(!(r&l)){var S=A&&h.call(t,"__wrapped__"),R=O&&h.call(e,"__wrapped__");if(S||R){var T=S?t.value():t,w=R?e.value():e;return _||(_=new n),g(T,w,r,y,_)}}return!!j&&(_||(_=new n),a(t,e,r,y,g,_))}},function(t,e,r){var n=r(32),o=r(50),i=1,a=2;t.exports=function(t,e,r,u){var c=r.length,f=c,s=!u;if(null==t)return!f;for(t=Object(t);c--;){var l=r[c];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++c<f;){var p=(l=r[c])[0],d=t[p],v=l[1];if(s&&l[2]){if(void 0===d&&!(p in t))return!1}else{var h=new n;if(u)var y=u(d,v,p,t,e,h);if(!(void 0===y?o(v,d,i|a,u,h):y))return!1}}return!0}},function(t,e,r){var n=r(216),o=r(208),i=r(97);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(58),o=r(7),i=1;t.exports=function(t){return o("function"==typeof t?t:n(t,i))}},function(t,e,r){var n=r(15),o=r(1),i="[object WeakMap]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(5),o=r(1),i=r(51),a="[object DOMException]",u="[object Error]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==u||e==a||"string"==typeof t.message&&"string"==typeof t.name&&!i(t)}},function(t,e,r){var n=r(70),o=8;function i(t,e,r){var a=n(t,o,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return a.placeholder=i.placeholder,a}i.placeholder={},t.exports=i},function(t,e,r){var n=r(15),o=r(1),i="[object Set]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(222),o=r(61),i=r(60),a=i&&i.isSet,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(15),o=r(1),i="[object Map]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(224),o=r(61),i=r(60),a=i&&i.isMap,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(17),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(52);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e,r){var n=r(52),o=r(228),i=r(227),a=r(226),u=r(103),c="[object Boolean]",f="[object Date]",s="[object Map]",l="[object Number]",p="[object RegExp]",d="[object Set]",v="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",m="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",j="[object Uint16Array]",S="[object Uint32Array]";t.exports=function(t,e,r){var R=t.constructor;switch(e){case y:return n(t);case c:case f:return new R(+t);case g:return o(t,r);case _:case b:case x:case m:case E:case A:case O:case j:case S:return u(t,r);case s:return new R;case l:case v:return new R(t);case p:return i(t);case d:return new R;case h:return a(t)}}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(12)(r(3),"Promise");t.exports=n},function(t,e,r){var n=r(12)(r(3),"DataView");t.exports=n},function(t,e,r){var n=r(11),o=r(109);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(11),o=r(55);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(2),o=r(33),i=r(235),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&r.push(u);return r}},function(t,e,r){var n=r(11),o=r(27);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(28);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(28);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(28);t.exports=function(t){return n(this,t).get(t)}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(28);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,r){var n=r(29),o="__lodash_hash_undefined__";t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?o:e,this}},function(t,e,r){var n=r(29),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(29),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(29);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(247),o=r(246),i=r(245),a=r(244),u=r(243);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,r){var n=r(248),o=r(31),i=r(57);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(31),o=r(57),i=r(56),a=200;t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<a-1)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,e),this.size=r.size,this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e,r){var n=r(31);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e,r){var n=r(30);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(30);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(30);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(30),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(58),o=4;t.exports=function(t){return n(t,o)}},function(t,e,r){var n=r(113)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(5),o=r(62),i=r(1),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(5),o=r(1),i="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(2),o=r(21),i=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var r=c.test(t);return r||f.test(t)?s(t.slice(2),r?2:8):u.test(t)?i:+t}},function(t,e,r){var n=r(266),o=1/0,i=1.7976931348623157e308;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(128),o=r(127),i=r(65),a="__lodash_placeholder__",u=1,c=2,f=4,s=8,l=128,p=256,d=Math.min;t.exports=function(t,e){var r=t[1],v=e[1],h=r|v,y=h<(u|c|l),g=v==l&&r==s||v==l&&r==p&&t[7].length<=e[8]||v==(l|p)&&e[7].length<=e[8]&&r==s;if(!y&&!g)return t;v&u&&(t[2]=e[2],h|=r&u?0:f);var _=e[3];if(_){var b=t[3];t[3]=b?n(b,_,e[4]):_,t[4]=b?i(t[3],a):e[4]}return(_=e[5])&&(b=t[5],t[5]=b?o(b,_,e[6]):_,t[6]=b?i(t[5],a):e[6]),(_=e[7])&&(t[7]=_),v&l&&(t[8]=null==t[8]?e[8]:d(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=h,t}},function(t,e,r){var n=r(38),o=r(40),i=r(3),a=1;t.exports=function(t,e,r,u){var c=e&a,f=o(t);return function e(){for(var o=-1,a=arguments.length,s=-1,l=u.length,p=Array(l+a),d=this&&this!==i&&this instanceof e?f:t;++s<l;)p[s]=u[s];for(;a--;)p[s++]=arguments[++o];return n(d,c?r:this,p)}}},function(t,e,r){var n=r(23),o=r(22),i=Math.min;t.exports=function(t,e){for(var r=t.length,a=i(e.length,r),u=n(t);a--;){var c=e[a];t[a]=o(c,r)?u[c]:void 0}return t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,r){var n=r(37),o=r(118),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return n(i,function(r){var n="_."+r[0];e&r[1]&&!o(t,n)&&t.push(n)}),t.sort()}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(275),o=r(119),i=r(24),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var n=e.length;if(!n)return t;var o=n-1;return e[o]=(n>1?"& ":"")+e[o],e=e.join(n>2?", ":" "),t.replace(r,"{\n/* [wrapped with "+e+"] */\n")}},function(t,e){var r=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;t.exports=function(t){var e=t.match(r);return e?e[1].split(n):[]}},function(t,e,r){var n=r(69),o=r(123),i=r(23);t.exports=function(t){if(t instanceof n)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=i(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},function(t,e,r){var n=r(69),o=r(123),i=r(68),a=r(0),u=r(1),c=r(279),f=Object.prototype.hasOwnProperty;function s(t){if(u(t)&&!a(t)&&!(t instanceof n)){if(t instanceof o)return t;if(f.call(t,"__wrapped__"))return c(t)}return new o(t)}s.prototype=i.prototype,s.prototype.constructor=s,t.exports=s},function(t,e){t.exports={}},function(t,e,r){var n=r(281),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],i=o.call(n,e)?r.length:0;i--;){var a=r[i],u=a.func;if(null==u||u==t)return a.name}return e}},function(t,e,r){var n=r(69),o=r(125),i=r(282),a=r(280);t.exports=function(t){var e=i(t),r=a[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var u=o(r);return!!u&&t===u[0]}},function(t,e){t.exports=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}},function(t,e,r){var n=r(38),o=r(40),i=r(129),a=r(126),u=r(117),c=r(65),f=r(3);t.exports=function(t,e,r){var s=o(t);return function o(){for(var l=arguments.length,p=Array(l),d=l,v=u(o);d--;)p[d]=arguments[d];var h=l<3&&p[0]!==v&&p[l-1]!==v?[]:c(p,v);return(l-=h.length)<r?a(t,e,i,o.placeholder,void 0,p,h,void 0,void 0,r-l):n(this&&this!==f&&this instanceof o?s:t,this,p)}}},function(t,e,r){var n=r(40),o=r(3),i=1;t.exports=function(t,e,r){var a=e&i,u=n(t);return function e(){return(this&&this!==o&&this instanceof e?u:t).apply(a?r:this,arguments)}}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(3)["__core-js_shared__"];t.exports=n},function(t,e,r){var n,o=r(288),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n=r(17),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(9),o=r(289),i=r(2),a=r(130),u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,s=c.toString,l=f.hasOwnProperty,p=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:u).test(a(t))}},function(t,e,r){var n=r(70),o=128;t.exports=function(t,e,r){return e=r?void 0:e,e=t&&null==e?t.length:e,n(t,o,void 0,void 0,void 0,void 0,e)}},function(t,e,r){t.exports={ary:r(294),assign:r(115),clone:r(260),curry:r(221),forEach:r(37),isArray:r(0),isError:r(220),isFunction:r(9),isWeakMap:r(219),iteratee:r(218),keys:r(59),rearg:r(201),toInteger:r(116),toPath:r(198)}},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.placeholder={bind:!0,bindKey:!0,curry:!0,curryRight:!0,partial:!0,partialRight:!0},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var o in r){var i=r[o];t.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(t,e,r){var n=r(296),o=r(41),i=Array.prototype.push;function a(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function u(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function c(t,e){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=e.apply(void 0,n);return t.apply(void 0,n),o}}}t.exports=function t(e,r,f,s){var l,p="function"==typeof r,d=r===Object(r);if(d&&(s=f,f=r,r=void 0),null==f)throw new TypeError;s||(s={});var v={cap:!("cap"in s)||s.cap,curry:!("curry"in s)||s.curry,fixed:!("fixed"in s)||s.fixed,immutable:!("immutable"in s)||s.immutable,rearg:!("rearg"in s)||s.rearg},h="curry"in s&&s.curry,y="fixed"in s&&s.fixed,g="rearg"in s&&s.rearg,_=p?f:o,b=p?f.runInContext():void 0,x=p?f:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},m=x.ary,E=x.assign,A=x.clone,O=x.curry,j=x.forEach,S=x.isArray,R=x.isError,T=x.isFunction,w=x.isWeakMap,I=x.keys,C=x.rearg,D=x.toInteger,L=x.toPath,F=I(n.aryMethod),P={castArray:function(t){return function(){var e=arguments[0];return S(e)?t(u(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[0],r=arguments[1],n=t(e,r),o=n.length;return v.cap&&"number"==typeof r?(r=r>2?r-2:1,o&&o<=r?n:a(n,r)):n}},mixin:function(t){return function(e){var r=this;if(!T(r))return t(r,Object(e));var n=[];return j(I(e),function(t){T(e[t])&&n.push([t,r.prototype[t]])}),t(r,Object(e)),j(n,function(t){var e=t[1];T(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]]}),r}},nthArg:function(t){return function(e){var r=e<0?1:D(e)+1;return O(t(e),r)}},rearg:function(t){return function(e,r){var n=r?r.length:0;return O(t(e,r),n)}},runInContext:function(r){return function(n){return t(e,r(n),s)}}};function M(t,e){if(v.cap){var r=n.iterateeRearg[t];if(r)return function(t,e){return B(t,function(t){var r=e.length;return function(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(C(a(t,r),e),r)})}(e,r);var o=!p&&n.iterateeAry[t];if(o)return function(t,e){return B(t,function(t){return"function"==typeof t?a(t,e):t})}(e,o)}return e}function U(t,e,r){if(v.fixed&&(y||!n.skipFixed[t])){var o=n.methodSpread[t],a=o&&o.start;return void 0===a?m(e,r):function(t,e){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[e],u=o.slice(0,e);return a&&i.apply(u,a),e!=n&&i.apply(u,o.slice(e+1)),t.apply(this,u)}}(e,a)}return e}function N(t,e,r){return v.rearg&&r>1&&(g||!n.skipRearg[t])?C(e,n.methodRearg[t]||n.aryRearg[r]):e}function W(t,e){for(var r=-1,n=(e=L(e)).length,o=n-1,i=A(Object(t)),a=i;null!=a&&++r<n;){var u=e[r],c=a[u];null==c||T(c)||R(c)||w(c)||(a[u]=A(r==o?c:Object(c))),a=a[u]}return i}function k(e,r){var o=n.aliasToReal[e]||e,i=n.remap[o]||o,a=s;return function(e){var n=p?b:x,u=p?b[i]:r,c=E(E({},a),e);return t(n,o,u,c)}}function B(t,e){return function(){var r=arguments.length;if(!r)return t();for(var n=Array(r);r--;)n[r]=arguments[r];var o=v.rearg?0:r-1;return n[o]=e(n[o]),t.apply(void 0,n)}}function z(t,e){var r,o=n.aliasToReal[t]||t,i=e,a=P[o];return a?i=a(e):v.immutable&&(n.mutate.array[o]?i=c(e,u):n.mutate.object[o]?i=c(e,function(t){return function(e){return t({},e)}}(e)):n.mutate.set[o]&&(i=c(e,W))),j(F,function(t){return j(n.aryMethod[t],function(e){if(o==e){var a=n.methodSpread[o],u=a&&a.afterRearg;return r=u?U(o,N(o,i,t),t):N(o,U(o,i,t),t),r=M(o,r),c=r,f=t,r=h||v.curry&&f>1?O(c,f):c,!1}var c,f}),!r}),r||(r=i),r==e&&(r=h?O(r,1):function(){return e.apply(this,arguments)}),r.convert=k(o,e),n.placeholder[o]&&(l=!0,r.placeholder=e.placeholder=_),r}if(!d)return z(r,f);var Q=f,q=[];return j(F,function(t){j(n.aryMethod[t],function(t){var e=Q[n.remap[t]||t];e&&q.push([t,z(t,e)])})}),j(I(Q),function(t){var e=Q[t];if("function"==typeof e){for(var r=q.length;r--;)if(q[r][0]==t)return;e.convert=k(t,e),q.push([t,e])}}),j(q,function(t){Q[t[0]]=t[1]}),Q.convert=function(t){return Q.runInContext.convert(t)(void 0)},l&&(Q.placeholder=_),j(I(Q),function(t){j(n.realToAlias[t]||[],function(e){Q[e]=Q[t]})}),Q}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirestore=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=function(t,e){return function(r){return function(o,a,f){var s=r(o,a,f),l=n({},i.defaultConfig,e);return c=(0,u.default)(t.firebase_||t,l,s.dispatch),s.firestore=c,s}}};var o,i=r(4),a=r(136),u=(o=a)&&o.__esModule?o:{default:o};var c=void 0;e.getFirestore=function(){if(!c)throw new Error("Firebase instance does not yet exist. Check your compose function.");return c}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CALL_FIRESTORE=e.middleware=e.actionTypes=e.constants=e.getFirestore=e.actions=e.createFirestoreInstance=e.reduxFirestore=e.enhancer=e.firestoreReducer=e.reducer=e.version=void 0;var n=r(298),o=p(n),i=p(r(170)),a=r(83),u=p(r(136)),c=r(4),f=p(c),s=r(137),l=p(s);function p(t){return t&&t.__esModule?t:{default:t}}var d=e.version="0.5.7";e.reducer=i.default,e.firestoreReducer=i.default,e.enhancer=o.default,e.reduxFirestore=o.default,e.createFirestoreInstance=u.default,e.actions=a.firestoreActions,e.getFirestore=n.getFirestore,e.constants=f.default,e.actionTypes=c.actionTypes,e.middleware=l.default,e.CALL_FIRESTORE=s.CALL_FIRESTORE,e.default={version:d,reducer:i.default,firestoreReducer:i.default,enhancer:o.default,reduxFirestore:o.default,createFirestoreInstance:u.default,actions:a.firestoreActions,getFirestore:n.getFirestore,constants:f.default,actionTypes:c.actionTypes,middleware:l.default,CALL_FIRESTORE:s.CALL_FIRESTORE}}])});
\No newline at end of file