react.profiling.min.js 15.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
/** @license React v16.11.0
 * react.profiling.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
'use strict';(function(C,x){"object"===typeof exports&&"undefined"!==typeof module?module.exports=x():"function"===typeof define&&define.amd?define(x):C.React=x()})(this,function(){function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(a,
b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function ra(){}function V(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function sa(a,b,c){var d,e={},f=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(f=""+b.key),b)ta.call(b,d)&&!ua.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var q=Array(g),h=0;h<g;h++)q[h]=arguments[h+2];e.children=q}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===
e[d]&&(e[d]=g[d]);return{$$typeof:F,type:a,key:f,ref:k,props:e,_owner:W.current}}function Pa(a,b){return{$$typeof:F,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function X(a){return"object"===typeof a&&null!==a&&a.$$typeof===F}function Qa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function va(a,b,c,d){if(L.length){var e=L.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}
function wa(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function Y(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var f=!1;if(null===a)f=!0;else switch(e){case "string":case "number":f=!0;break;case "object":switch(a.$$typeof){case F:case Ra:f=!0}}if(f)return c(d,a,""===b?"."+Z(a,0):b),1;f=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){e=a[k];var g=b+Z(e,k);f+=Y(e,g,c,d)}else if(null===a||"object"!==typeof a?
g=null:(g=xa&&a[xa]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),k=0;!(e=a.next()).done;)e=e.value,g=b+Z(e,k++),f+=Y(e,g,c,d);else if("object"===e)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return f}function aa(a,b,c){return null==a?0:Y(a,"",b,c)}function Z(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Qa(a.key):b.toString(36)}function Sa(a,b,c){a.func.call(a.context,b,a.count++)}function Ta(a,
b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?ba(a,d,c,function(a){return a}):null!=a&&(X(a)&&(a=Pa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ya,"$&/")+"/")+c)),d.push(a))}function ba(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(ya,"$&/")+"/");b=va(b,f,d,e);aa(a,Ta,b);wa(b)}function y(){var a=za.current;if(null===a)throw Error(C(321));return a}function ca(a,b){var c=a.length;a.push(b);a:for(;;){var d=Math.floor((c-1)/2),e=a[d];if(void 0!==e&&0<
M(e,b))a[d]=b,a[c]=e,c=d;else break a}}function u(a){a=a[0];return void 0===a?null:a}function N(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var f=2*(d+1)-1,k=a[f],g=f+1,q=a[g];if(void 0!==k&&0>M(k,c))void 0!==q&&0>M(q,k)?(a[d]=q,a[g]=c,d=g):(a[d]=k,a[f]=c,d=f);else if(void 0!==q&&0>M(q,c))a[d]=q,a[g]=c,d=g;else break a}}return b}return null}function M(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function z(a){if(null!==r){var b=G;G+=a.length;
if(G+1>D){D*=2;if(524288<D){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`.");Aa();return}var c=new Int32Array(4*D);c.set(r);H=c.buffer;r=c}r.set(a,b)}}function Aa(){var a=H;D=0;r=H=null;G=0;return a}function Ba(a,b){m[3]++;null!==r&&z([1,1E3*b,a.id,a.priorityLevel])}function O(a){for(var b=u(A);null!==b;){if(null===b.callback)N(A);else if(b.startTime<=a)N(A),b.sortIndex=b.expirationTime,ca(v,b),Ba(b,a),b.isQueued=!0;else break;
b=u(A)}}function da(a){I=!1;O(a);if(!E)if(null!==u(v))E=!0,J(ea);else{var b=u(A);null!==b&&P(da,b.startTime-a)}}function ea(a,b){null!==r&&z([8,1E3*b,fa]);E=!1;I&&(I=!1,ha());Q=!0;var c=n;try{try{O(b);for(h=u(v);null!==h&&(!(h.expirationTime>b)||a&&!ia());){var d=h.callback;if(null!==d){h.callback=null;n=h.priorityLevel;var e=h.expirationTime<=b,f=h,k=b;R++;m[0]=f.priorityLevel;m[1]=f.id;m[2]=R;null!==r&&z([5,1E3*k,f.id,R]);var g=d(e);b=t();"function"===typeof g?(h.callback=g,f=h,k=b,m[0]=0,m[1]=
0,m[2]=0,null!==r&&z([6,1E3*k,f.id,R])):(f=h,k=b,m[0]=0,m[1]=0,m[3]--,null!==r&&z([2,1E3*k,f.id]),h.isQueued=!1,h===u(v)&&N(v));O(b)}else N(v);h=u(v)}if(null!==h)var q=!0;else{var l=u(A);null!==l&&P(da,l.startTime-b);q=!1}return q}catch(Ua){if(null!==h){var p=t();a=h;m[0]=0;m[1]=0;m[3]--;null!==r&&z([3,1E3*p,a.id]);h.isQueued=!1}throw Ua;}}finally{h=null,n=c,Q=!1,c=t(),fa++,null!==r&&z([7,1E3*c,fa])}}function Ca(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;
default:return 5E3}}function Va(a){var b=!1,c=null;w.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Wa(a){var b=!1,c=null;w.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Xa(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}function Ya(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkStarted(a,b)}catch(f){c||(c=!0,d=
f)}});if(c)throw d;}function Za(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkStopped(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}function $a(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}var l="function"===typeof Symbol&&Symbol.for,F=l?Symbol.for("react.element"):60103,Ra=l?Symbol.for("react.portal"):60106,ab=l?Symbol.for("react.fragment"):60107,bb=l?Symbol.for("react.strict_mode"):60108,cb=l?Symbol.for("react.profiler"):60114,
db=l?Symbol.for("react.provider"):60109,eb=l?Symbol.for("react.context"):60110,fb=l?Symbol.for("react.forward_ref"):60112,gb=l?Symbol.for("react.suspense"):60113;l&&Symbol.for("react.suspense_list");var hb=l?Symbol.for("react.memo"):60115,ib=l?Symbol.for("react.lazy"):60116;l&&Symbol.for("react.fundamental");l&&Symbol.for("react.responder");l&&Symbol.for("react.scope");var xa="function"===typeof Symbol&&Symbol.iterator,Da=Object.getOwnPropertySymbols,jb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,
S=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===
a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var k in f)jb.call(f,k)&&(c[k]=f[k]);if(Da){d=Da(f);for(var g=0;g<d.length;g++)kb.call(f,d[g])&&(c[d[g]]=f[d[g]])}}return c},qa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},pa={};x.prototype.isReactComponent={};x.prototype.setState=function(a,
b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ra.prototype=x.prototype;var ja=V.prototype=new ra;ja.constructor=V;S(ja,x.prototype);ja.isPureReactComponent=!0;var za={current:null},W={current:null},ta=Object.prototype.hasOwnProperty,ua={key:!0,ref:!0,__self:!0,__source:!0},ya=/\/+/g,L=[],ka;if("undefined"===typeof window||"function"!==
typeof MessageChannel){var K=null,Ea=null,Fa=function(){if(null!==K)try{var a=t();K(!0,a);K=null}catch(b){throw setTimeout(Fa,0),b;}},lb=Date.now();var t=function(){return Date.now()-lb};var J=function(a){null!==K?setTimeout(J,0,a):(K=a,setTimeout(Fa,0))};var P=function(a,b){Ea=setTimeout(a,b)};var ha=function(){clearTimeout(Ea)};var ia=function(){return!1};var Ga=ka=function(){}}else{var la=window.performance,Ha=window.Date,mb=window.setTimeout,nb=window.clearTimeout,ob=window.requestAnimationFrame,
pb=window.cancelAnimationFrame;"undefined"!==typeof console&&("function"!==typeof ob&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof pb&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));if("object"===typeof la&&"function"===typeof la.now)t=function(){return la.now()};else{var qb=
Ha.now();t=function(){return Ha.now()-qb}}var T=!1,U=null,ma=-1,Ia=5,Ja=0;ia=function(){return t()>=Ja};Ga=function(){};ka=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):Ia=0<a?Math.floor(1E3/a):33.33};var Ka=new MessageChannel,na=Ka.port2;Ka.port1.onmessage=function(){if(null!==U){var a=t();Ja=a+Ia;try{U(!0,a)?na.postMessage(null):(T=!1,U=null)}catch(b){throw na.postMessage(null),b;}}else T=
!1};J=function(a){U=a;T||(T=!0,na.postMessage(null))};P=function(a,b){ma=mb(function(){a(t())},b)};ha=function(){nb(ma);ma=-1}}var R=0,fa=0,oa="function"===typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"===typeof ArrayBuffer?new ArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):null,m=null!==oa?new Int32Array(oa):[];m[0]=0;m[3]=0;var D=m[1]=0,H=null,r=null,G=0,v=[],A=[],rb=1,h=null,n=3,Q=!1,E=!1,I=!1,sb={unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,
unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=n;n=a;try{return b()}finally{n=c}},unstable_next:function(a){switch(n){case 1:case 2:case 3:var b=3;break;default:b=n}var c=n;n=b;try{return a()}finally{n=c}},unstable_scheduleCallback:function(a,b,c){var d=t();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+e:d;c="number"===typeof c.timeout?
c.timeout:Ca(a)}else c=Ca(a),e=d;c=e+c;a={id:rb++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1,isQueued:!1};e>d?(a.sortIndex=e,ca(A,a),null===u(v)&&a===u(A)&&(I?ha():I=!0,P(da,e-d))):(a.sortIndex=c,ca(v,a),Ba(a,d),a.isQueued=!0,E||Q||(E=!0,J(ea)));return a},unstable_cancelCallback:function(a){if(a.isQueued){var b=t();m[3]--;null!==r&&z([4,1E3*b,a.id]);a.isQueued=!1}a.callback=null},unstable_wrapCallback:function(a){var b=n;return function(){var c=n;n=b;try{return a.apply(this,
arguments)}finally{n=c}}},unstable_getCurrentPriorityLevel:function(){return n},unstable_shouldYield:function(){var a=t();O(a);var b=u(v);return b!==h&&null!==h&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<h.expirationTime||ia()},unstable_requestPaint:Ga,unstable_continueExecution:function(){E||Q||(E=!0,J(ea))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return u(v)},get unstable_now(){return t},get unstable_forceFrameRate(){return ka},unstable_Profiling:{startLoggingProfilingEvents:function(){D=
131072;H=new ArrayBuffer(4*D);r=new Int32Array(H);G=0},stopLoggingProfilingEvents:Aa,sharedProfilingBuffer:oa}},tb=0,ub=0,p=null,B=null;p={current:new Set};B={current:null};var w=null;w=new Set;var La={ReactCurrentDispatcher:za,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:S};S(La,{Scheduler:sb,SchedulerTracing:{get __interactionsRef(){return p},get __subscriberRef(){return B},unstable_clear:function(a){var b=p.current;p.current=new Set;try{return a()}finally{p.current=b}},unstable_getCurrent:function(){return p.current},
unstable_getThreadID:function(){return++ub},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:tb++,name:a,timestamp:b},f=p.current,k=new Set(f);k.add(e);p.current=k;var g=B.current;try{if(null!==g)g.onInteractionTraced(e)}finally{try{if(null!==g)g.onWorkStarted(k,d)}finally{try{var q=c()}finally{p.current=f;try{if(null!==g)g.onWorkStopped(k,d)}finally{if(e.__count--,null!==g&&0===e.__count)g.onInteractionScheduledWorkCompleted(e)}}}}return q},
unstable_wrap:function(a){function b(){var b=p.current;p.current=d;e=B.current;try{try{if(null!==e)e.onWorkStarted(d,c)}finally{try{var g=a.apply(void 0,arguments)}finally{if(p.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||(f=!0,d.forEach(function(a){a.__count--;if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=p.current,e=B.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});
var f=!1;b.cancel=function(){e=B.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){w.add(a);1===w.size&&(B.current={onInteractionScheduledWorkCompleted:Wa,onInteractionTraced:Va,onWorkCanceled:$a,onWorkScheduled:Xa,onWorkStarted:Ya,onWorkStopped:Za})},unstable_unsubscribe:function(a){w.delete(a);0===w.size&&(B.current=null)}}});var Ma={Children:{map:function(a,
b,c){if(null==a)return a;var d=[];ba(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=va(null,null,b,c);aa(a,Sa,b);wa(b)},count:function(a){return aa(a,function(){return null},null)},toArray:function(a){var b=[];ba(a,b,null,function(a){return a});return b},only:function(a){if(!X(a))throw Error(C(143));return a}},createRef:function(){return{current:null}},Component:x,PureComponent:V,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:eb,_calculateChangedBits:b,_currentValue:a,
_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:db,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:fb,render:a}},lazy:function(a){return{$$typeof:ib,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:hb,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return y().useCallback(a,b)},useContext:function(a,b){return y().useContext(a,b)},useEffect:function(a,b){return y().useEffect(a,b)},useImperativeHandle:function(a,
b,c){return y().useImperativeHandle(a,b,c)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return y().useLayoutEffect(a,b)},useMemo:function(a,b){return y().useMemo(a,b)},useReducer:function(a,b,c){return y().useReducer(a,b,c)},useRef:function(a){return y().useRef(a)},useState:function(a){return y().useState(a)},Fragment:ab,Profiler:cb,StrictMode:bb,Suspense:gb,createElement:sa,cloneElement:function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var d=S({},a.props),e=a.key,f=a.ref,
k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=W.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(h in b)ta.call(b,h)&&!ua.hasOwnProperty(h)&&(d[h]=void 0===b[h]&&void 0!==g?g[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c;else if(1<h){g=Array(h);for(var l=0;l<h;l++)g[l]=arguments[l+2];d.children=g}return{$$typeof:F,type:a.type,key:e,ref:f,props:d,_owner:k}},createFactory:function(a){var b=sa.bind(null,a);b.type=a;return b},isValidElement:X,
version:"16.11.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:La},Na={default:Ma},Oa=Na&&Ma||Na;return Oa.default||Oa});