UNPKG

823 BJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.hoistNonReactStatics=t()}(this,function(){"use strict";var f={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},y=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=g&&g(Object);return function e(t,r,o){if("string"!=typeof r){if(m){var n=g(r);n&&n!==m&&e(t,n,o)}var i=u(r);d&&(i=i.concat(d(r)));for(var p=0;p<i.length;++p){var c=i[p];if(!(f[c]||s[c]||o&&o[c])){var a=l(r,c);try{y(t,c,a)}catch(e){}}}return t}return t}});