react-simple-infinite-scroll-patched
Version:
A (patched) brutally simple React infinite scroll component
20 lines (18 loc) • 28.6 kB
JavaScript
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,r){(function(t){function r(e,t,r){function n(t){var r=v,n=h;return v=h=void 0,k=t,b=e.apply(n,r)}function i(e){return k=e,g=setTimeout(f,t),S?n(e):b}function a(e){var r=e-w,n=e-k,o=t-r;return P?O(o,m-n):o}function l(e){var r=e-w,n=e-k;return void 0===w||r>=t||r<0||P&&n>=m}function f(){var e=j();if(l(e))return s(e);g=setTimeout(f,a(e))}function s(e){return g=void 0,x&&v?n(e):(v=h=void 0,b)}function p(){void 0!==g&&clearTimeout(g),k=0,v=w=h=g=void 0}function d(){return void 0===g?b:s(j())}function y(){var e=j(),r=l(e);if(v=arguments,h=this,w=e,r){if(void 0===g)return i(w);if(P)return g=setTimeout(f,t),n(w)}return void 0===g&&(g=setTimeout(f,t)),b}var v,h,m,b,g,w,k=0,S=!1,P=!1,x=!0;if("function"!=typeof e)throw new TypeError(u);return t=c(t)||0,o(r)&&(S=!!r.leading,P="maxWait"in r,m=P?_(c(r.maxWait)||0,t):m,x="trailing"in r?!!r.trailing:x),y.cancel=p,y.flush=d,y}function n(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(u);return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||i(e)&&w.call(e)==f}function c(e){if("number"==typeof e)return e;if(a(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var r=d.test(e);return r||y.test(e)?v(e.slice(2),r?2:8):p.test(e)?l:+e}var u="Expected a function",l=NaN,f="[object Symbol]",s=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,y=/^0o[0-7]+$/i,v=parseInt,h="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,b=h||m||Function("return this")(),g=Object.prototype,w=g.toString,_=Math.max,O=Math.min,j=function(){return b.Date.now()};e.exports=n}).call(t,r(8))},function(e,t,r){"use strict";e.exports=r(6)},function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r}function i(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function a(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,c)}u((n=n.apply(e,t||[])).next())})}function l(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(a=2&r[0]?i.return:r[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;switch(i=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){u.label=r[1];break}if(6===r[0]&&u.label<a[1]){u.label=a[1],a=r;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(r);break}a[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{o=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}var o,i,a,c,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c}function f(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,r){function n(e){f[e]&&(l[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||o(e,t)})})}function o(e,t){try{i(f[e](t))}catch(e){u(s[0][3],e)}}function i(e){e.value instanceof y?Promise.resolve(e.value.v).then(a,c):u(s[0][2],e)}function a(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,f=r.apply(e,t||[]),s=[];return l={},n("next"),n("throw"),n("return"),l[Symbol.asyncIterator]=function(){return this},l}function h(e){function t(t,o){r[t]=e[t]?function(r){return(n=!n)?{value:y(e[t](r)),done:"return"===t}:o?o(r):r}:o}var r,n;return r={},t("next"),t("throw",function(e){throw e}),t("return"),r[Symbol.iterator]=function(){return this},r}function m(e){function t(t){n[t]=e[t]&&function(n){return new Promise(function(o,i){n=e[t](n),r(o,i,n.done,n.value)})}}function r(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=e[Symbol.asyncIterator];return o?o.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),n={},t("next"),t("throw"),t("return"),n[Symbol.asyncIterator]=function(){return this},n)}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=n,r.d(t,"__assign",function(){return O}),t.__rest=o,t.__decorate=i,t.__param=a,t.__metadata=c,t.__awaiter=u,t.__generator=l,t.__exportStar=f,t.__values=s,t.__read=p,t.__spread=d,t.__await=y,t.__asyncGenerator=v,t.__asyncDelegator=h,t.__asyncValues=m,t.__makeTemplateObject=b,t.__importStar=g,t.__importDefault=w;/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var _=function(e,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},O.apply(this,arguments)}},function(e,t,r){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,c,u=n(e),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var f in r)i.call(r,f)&&(u[f]=r[f]);if(o){c=o(r);for(var s=0;s<c.length;s++)a.call(r,c[s])&&(u[c[s]]=r[c[s]])}}return u}},function(e,t,r){"use strict";function n(e,t,r,n,c){for(var u in e)if(e.hasOwnProperty(u)){var l;try{if("function"!=typeof e[u]){var f=Error((n||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}l=e[u](t,u,n,r,null,i)}catch(e){l=e}if(!l||l instanceof Error||o((n||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in a)){a[l.message]=!0;var s=c?c():"";o("Failed "+r+" type: "+l.message+(null!=s?s:""))}}}var o=function(){},i=r(5),a={};o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=n},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";!function(){function t(e){if(null===e||"object"!=typeof e)return null;var t=ue&&e[ue]||e[le];return"function"==typeof t?t:null}function n(e,t,r,n,o,i,a,c){if(fe(t),!e){var u=void 0;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,i,a,c],f=0;u=new Error(t.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}function o(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;he[o]||(ve(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),he[o]=!0)}function i(e,t,r){this.props=e,this.context=t,this.refs=be,this.updater=r||me}function a(){}function c(e,t,r){this.props=e,this.context=t,this.refs=be,this.updater=r||me}function u(){var e={current:null};return Object.seal(e),e}function l(e){return e._reactStatus===Se?e._reactResult:null}function f(e){if(null==e)return null;if("number"==typeof e.tag&&ve(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ie:return"AsyncMode";case ee:return"Fragment";case Z:return"Portal";case re:return"Profiler";case te:return"StrictMode";case ce:return"Placeholder"}if("object"==typeof e){switch(e.$$typeof){case oe:return"Context.Consumer";case ne:return"Context.Provider";case ae:var t=e.render,r=t.displayName||t.name||"";return e.displayName||(""!==r?"ForwardRef("+r+")":"ForwardRef")}if("function"==typeof e.then){var n=e,o=l(n);if(o)return f(o)}}return null}function s(e){xe=e}function p(e){if(Te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function d(e){if(Te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function y(e,t){var r=function(){Ae||(Ae=!0,ve(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function v(e,t){var r=function(){Ie||(Ie=!0,ve(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function h(e,t,r){var n=void 0,o={},i=null,a=null,c=null,u=null;if(null!=t){p(t)&&(a=t.ref),d(t)&&(i=""+t.key),c=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source;for(n in t)Te.call(t,n)&&!$e.hasOwnProperty(n)&&(o[n]=t[n])}var l=arguments.length-2;if(1===l)o.children=r;else if(l>1){for(var f=Array(l),s=0;s<l;s++)f[s]=arguments[s+2];Object.freeze&&Object.freeze(f),o.children=f}if(e&&e.defaultProps){var h=e.defaultProps;for(n in h)void 0===o[n]&&(o[n]=h[n])}if(i||a){var m="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&y(o,m),a&&v(o,m)}return De(e,i,a,c,u,Oe.current,o)}function m(e,t){return De(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}function b(e,t,r){(null===e||void 0===e)&&n(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var o=void 0,i=J({},e.props),a=e.key,c=e.ref,u=e._self,l=e._source,f=e._owner;if(null!=t){p(t)&&(c=t.ref,f=Oe.current),d(t)&&(a=""+t.key);var s=void 0;e.type&&e.type.defaultProps&&(s=e.type.defaultProps);for(o in t)Te.call(t,o)&&!$e.hasOwnProperty(o)&&(void 0===t[o]&&void 0!==s?i[o]=s[o]:i[o]=t[o])}var y=arguments.length-2;if(1===y)i.children=r;else if(y>1){for(var v=Array(y),h=0;h<y;h++)v[h]=arguments[h+2];i.children=v}return De(e.type,a,c,u,l,f,i)}function g(e){return"object"==typeof e&&null!==e&&e.$$typeof===Q}function w(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function _(e){return(""+e).replace(Me,"$&/")}function O(e,t,r,n){if(qe.length){var o=qe.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,qe.length<Ue&&qe.push(e)}function k(e,r,o,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Q:case Z:c=!0}}if(c)return o(i,e,""===r?Fe+P(e,0):r),1;var u=void 0,l=void 0,f=0,s=""===r?Fe:r+We;if(Array.isArray(e))for(var p=0;p<e.length;p++)u=e[p],l=s+P(u,p),f+=k(u,l,o,i);else{var d=t(e);if("function"==typeof d){d===e.entries&&(Ne||Ce(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead."),Ne=!0);for(var y=d.call(e),v=void 0,h=0;!(v=y.next()).done;)u=v.value,l=s+P(u,h++),f+=k(u,l,o,i)}else if("object"===a){var m="";m=" If you meant to render a collection of children, use an array instead."+Pe.getStackAddendum();var b=""+e;n(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,m)}}return f}function S(e,t,r){return null==e?0:k(e,"",t,r)}function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?w(e.key):t.toString(36)}function x(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function R(e,t,r){if(null==e)return e;var n=O(null,null,t,r);S(e,x,n),j(n)}function E(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,c=i.call(a,t,e.count++);Array.isArray(c)?C(c,n,r,function(e){return e}):null!=c&&(g(c)&&(c=m(c,o+(!c.key||t&&t.key===c.key?"":_(c.key)+"/")+r)),n.push(c))}function C(e,t,r,n,o){var i="";null!=r&&(i=_(r)+"/");var a=O(t,i,n,o);S(e,E,a),j(a)}function T(e,t,r){if(null==e)return e;var n=[];return C(e,n,null,t,r),n}function $(e){return S(e,function(){return null},null)}function A(e){var t=[];return C(e,t,null,function(e){return e}),t}function I(e){return g(e)||n(!1,"React.Children.only expected to receive a single React element child."),e}function D(e,t){var r=Oe.currentDispatcher;return null===r&&n(!1,"Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps."),r.readContext(e,t)}function F(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&ve(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:oe,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null};return r.Provider={$$typeof:ne,_context:r},r.Consumer=r,r.unstable_read=D.bind(null,r),r._currentRenderer=null,r._currentRenderer2=null,r}function W(e){return"function"!=typeof e?ve(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&ve(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&ve(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:ae,render:e}}function N(e){return"string"==typeof e||"function"==typeof e||e===ee||e===ie||e===re||e===te||e===ce||"object"==typeof e&&null!==e&&("function"==typeof e.then||e.$$typeof===ne||e.$$typeof===oe||e.$$typeof===ae)}function M(){if(Oe.current){var e=f(Oe.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function U(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source;return"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+"."}return""}function q(e){var t=M();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}function z(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=q(t);if(!Le[r]){Le[r]=!0;var n="";e&&e._owner&&e._owner!==Oe.current&&(n=" It was passed a child from "+f(e._owner.type)+"."),s(e),Ce(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,n),s(null)}}}function L(e,r){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];g(o)&&z(o,r)}else if(g(e))e._store&&(e._store.validated=!0);else if(e){var i=t(e);if("function"==typeof i&&i!==e.entries)for(var a=i.call(e),c=void 0;!(c=a.next()).done;)g(c.value)&&z(c.value,r)}}function H(e){var t=e.type,r=void 0,n=void 0;if("function"==typeof t)r=t.displayName||t.name,n=t.propTypes;else{if("object"!=typeof t||null===t||t.$$typeof!==ae)return;var o=t.render.displayName||t.render.name||"";r=t.displayName||(""!==o?"ForwardRef("+o+")":"ForwardRef"),n=t.propTypes}n?(s(e),X(n,e.props,"prop",r,Pe.getStackAddendum),s(null)):void 0===t.PropTypes||ze||(ze=!0,ve(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",r||"Unknown")),"function"==typeof t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved||ve(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}function V(e){s(e);for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n);break}}null!==e.ref&&Ce(!1,"Invalid attribute `ref` supplied to `React.Fragment`."),s(null)}function B(e,t,r){var n=N(e);if(!n){var o="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var i=U(t);o+=i||M();var a=void 0;null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Q?(a="<"+(f(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,Ce(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,o)}var c=h.apply(this,arguments);if(null==c)return c;if(n)for(var u=2;u<arguments.length;u++)L(arguments[u],e);return e===ee?V(c):H(c),c}function Y(e){var t=B.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return de(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function G(e,t,r){for(var n=b.apply(this,arguments),o=2;o<arguments.length;o++)L(arguments[o],n.type);return H(n),n}var J=r(3),X=r(4),K="function"==typeof Symbol&&Symbol.for,Q=K?Symbol.for("react.element"):60103,Z=K?Symbol.for("react.portal"):60106,ee=K?Symbol.for("react.fragment"):60107,te=K?Symbol.for("react.strict_mode"):60108,re=K?Symbol.for("react.profiler"):60114,ne=K?Symbol.for("react.provider"):60109,oe=K?Symbol.for("react.context"):60110,ie=K?Symbol.for("react.async_mode"):60111,ae=K?Symbol.for("react.forward_ref"):60112,ce=K?Symbol.for("react.placeholder"):60113,ue="function"==typeof Symbol&&Symbol.iterator,le="@@iterator",fe=function(){};fe=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")};var se=function(){},pe=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}};se=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];pe.apply(void 0,[t].concat(n))}};var de=se,ye=function(){};ye=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warningWithoutStack(condition, format, ...args)` requires a warning message argument");if(n.length>8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var i=n.map(function(e){return""+e}),a=i[0],c=i[1],u=i[2],l=i[3],f=i[4],s=i[5],p=i[6],d=i[7],y="Warning: "+t;switch(n.length){case 0:console.error(y);break;case 1:console.error(y,a);break;case 2:console.error(y,a,c);break;case 3:console.error(y,a,c,u);break;case 4:console.error(y,a,c,u,l);break;case 5:console.error(y,a,c,u,l,f);break;case 6:console.error(y,a,c,u,l,f,s);break;case 7:console.error(y,a,c,u,l,f,s,p);break;case 8:console.error(y,a,c,u,l,f,s,p,d);break;default:throw new Error("warningWithoutStack() currently supports at most 8 arguments.")}}try{var v=0,h="Warning: "+t.replace(/%s/g,function(){return n[v++]});throw new Error(h)}catch(e){}}};var ve=ye,he={},me={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){o(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){o(e,"replaceState")},enqueueSetState:function(e,t,r,n){o(e,"setState")}},be={};Object.freeze(be),i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&n(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var ge={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(var we in ge)ge.hasOwnProperty(we)&&function(e,t){Object.defineProperty(i.prototype,e,{get:function(){de(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(we,ge[we]);a.prototype=i.prototype;var _e=c.prototype=new a;_e.constructor=c,J(_e,i.prototype),_e.isPureReactComponent=!0;var Oe={current:null,currentDispatcher:null},je=/^(.*)[\\\/]/,ke=function(e,t,r){var n="";if(t){var o=t.fileName,i=o.replace(je,"");if(/^index\./.test(i)){var a=o.match(je);if(a){var c=a[1];if(c){i=c.replace(je,"")+"/"+i}}}n=" (at "+i+":"+t.lineNumber+")"}else r&&(n=" (created by "+r+")");return"\n in "+(e||"Unknown")+n},Se=1,Pe={},xe=null;Pe.getCurrentStack=null,Pe.getStackAddendum=function(){var e="";if(xe){var t=f(xe.type),r=xe._owner;e+=ke(t,xe._source,r&&f(r.type))}var n=Pe.getCurrentStack;return n&&(e+=n()||""),e};var Re={ReactCurrentOwner:Oe,assign:J};J(Re,{ReactDebugCurrentFrame:Pe,ReactComponentTreeHook:{}});var Ee=ve;Ee=function(e,t){if(!e){for(var r=Re.ReactDebugCurrentFrame,n=r.getStackAddendum(),o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];ve.apply(void 0,[!1,t+"%s"].concat(i,[n]))}};var Ce=Ee,Te=Object.prototype.hasOwnProperty,$e={key:!0,ref:!0,__self:!0,__source:!0},Ae=void 0,Ie=void 0,De=function(e,t,r,n,o,i,a){var c={$$typeof:Q,type:e,key:t,ref:r,props:a,_owner:i};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c},Fe=".",We=":",Ne=!1,Me=/\/+/g,Ue=10,qe=[],ze=void 0;ze=!1;var Le={},He={Children:{map:T,forEach:R,count:$,toArray:A,only:I},createRef:u,Component:i,PureComponent:c,createContext:F,forwardRef:W,Fragment:ee,StrictMode:te,unstable_AsyncMode:ie,unstable_Profiler:re,createElement:B,cloneElement:G,createFactory:Y,isValidElement:g,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Re},Ve=Object.freeze({default:He}),Be=Ve&&He||Ve,Ye=Be.default||Be;e.exports=Ye}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(1),i=r(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.checkWindowScroll=function(){t.props.isLoading||t.props.hasMore&&t.sentinel.getBoundingClientRect().top-window.innerHeight<t.props.threshold&&t.props.onLoadMore()},t}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.scrollHandler=i(this.checkWindowScroll,this.props.throttle),this.resizeHandler=i(this.checkWindowScroll,this.props.throttle),window.addEventListener("scroll",this.scrollHandler),window.addEventListener("resize",this.resizeHandler)},t.prototype.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollHandler),window.removeEventListener("resize",this.resizeHandler)},t.prototype.componentDidUpdate=function(){this.checkWindowScroll()},t.prototype.render=function(){var e=this,t=o.createElement("div",{ref:function(t){return e.sentinel=t}});if(this.props.render)return this.props.render({sentinel:t,children:this.props.children});if(this.props.component){var r=this.props.component;return o.createElement(r,{sentinel:t},this.props.children)}return o.createElement("div",null,this.props.children,t)},t.defaultProps={threshold:100,throttle:64},t}(o.Component);t.InfiniteScroll=a,t.default=o.createFactory(a)},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r}]));