react.profiling.min.js
14.7 KB
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
/** @license React v17.0.1
* 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.
*/
(function(){'use strict';(function(f,H){"object"===typeof exports&&"undefined"!==typeof module?H(exports):"function"===typeof define&&define.amd?define(["exports"],H):(f=f||self,H(f.React={}))})(this,function(f){function H(a){if(null===a||"object"!==typeof a)return null;a=na&&a[na]||a["@@iterator"];return"function"===typeof a?a:null}function I(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 E(a,b,c){this.props=a;this.context=b;this.refs=oa;this.updater=c||pa}function qa(){}function X(a,b,c){this.props=a;this.context=b;this.refs=oa;this.updater=c||pa}function ra(a,b,c){var e,d={},m=null,l=null;if(null!=b)for(e in void 0!==b.ref&&(l=b.ref),void 0!==b.key&&(m=""+b.key),b)sa.call(b,e)&&!ta.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===
g)d.children=c;else if(1<g){for(var h=Array(g),f=0;f<g;f++)h[f]=arguments[f+2];d.children=h}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:F,type:a,key:m,ref:l,props:d,_owner:Y.current}}function Ja(a,b){return{$$typeof:F,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function Z(a){return"object"===typeof a&&null!==a&&a.$$typeof===F}function Ka(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function aa(a,b){return"object"===
typeof a&&null!==a&&null!=a.key?Ka(""+a.key):b.toString(36)}function O(a,b,c,e,d){var m=typeof a;if("undefined"===m||"boolean"===m)a=null;var l=!1;if(null===a)l=!0;else switch(m){case "string":case "number":l=!0;break;case "object":switch(a.$$typeof){case F:case ua:l=!0}}if(l)return l=a,d=d(l),a=""===e?"."+aa(l,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(va,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(Z(d)&&(d=Ja(d,c+(!d.key||l&&l.key===d.key?"":(""+d.key).replace(va,"$&/")+"/")+
a)),b.push(d)),1;l=0;e=""===e?".":e+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){m=a[f];var h=e+aa(m,f);l+=O(m,b,c,h,d)}else if(h=H(a),"function"===typeof h)for(a=h.call(a),f=0;!(m=a.next()).done;)m=m.value,h=e+aa(m,f++),l+=O(m,b,c,h,d);else if("object"===m)throw b=""+a,Error(I(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return l}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}function La(a){if(-1===
a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function y(){var a=wa.current;if(null===a)throw Error(I(321));return a}function ba(a,b){var c=a.length;a.push(b);a:for(;;){var e=c-1>>>1,d=a[e];if(void 0!==d&&0<Q(d,b))a[e]=b,a[c]=d,c=e;else break a}}function u(a){a=a[0];return void 0===a?null:a}function R(a){var b=
a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var e=0,d=a.length;e<d;){var m=2*(e+1)-1,f=a[m],g=m+1,h=a[g];if(void 0!==f&&0>Q(f,c))void 0!==h&&0>Q(h,f)?(a[e]=h,a[g]=c,e=g):(a[e]=f,a[m]=c,e=m);else if(void 0!==h&&0>Q(h,c))a[e]=h,a[g]=c,e=g;else break a}}return b}return null}function Q(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function z(a){if(null!==t){var b=J;J+=a.length;if(J+1>C){C*=2;if(524288<C){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`.");
xa();return}var c=new Int32Array(4*C);c.set(t);K=c.buffer;t=c}t.set(a,b)}}function xa(){var a=K;C=0;t=K=null;J=0;return a}function ya(a,b){p[3]++;null!==t&&z([1,1E3*b,a.id,a.priorityLevel])}function ca(a){for(var b=u(A);null!==b;){if(null===b.callback)R(A);else if(b.startTime<=a)R(A),b.sortIndex=b.expirationTime,ba(x,b),ya(b,a),b.isQueued=!0;else break;b=u(A)}}function da(a){L=!1;ca(a);if(!D)if(null!==u(x))D=!0,M(ea);else{var b=u(A);null!==b&&S(da,b.startTime-a)}}function ea(a,b){null!==t&&z([8,1E3*
b,fa]);D=!1;L&&(L=!1,ha());T=!0;var c=q;try{try{ca(b);for(n=u(x);null!==n&&(!(n.expirationTime>b)||a&&!ia());){var e=n.callback;if("function"===typeof e){n.callback=null;q=n.priorityLevel;var d=n.expirationTime<=b,f=n,l=b;U++;p[0]=f.priorityLevel;p[1]=f.id;p[2]=U;null!==t&&z([5,1E3*l,f.id,U]);var g=e(d);b=v();"function"===typeof g?(n.callback=g,f=n,l=b,p[0]=0,p[1]=0,p[2]=0,null!==t&&z([6,1E3*l,f.id,U])):(f=n,l=b,p[0]=0,p[1]=0,p[3]--,null!==t&&z([2,1E3*l,f.id]),n.isQueued=!1,n===u(x)&&R(x));ca(b)}else R(x);
n=u(x)}if(null!==n)var h=!0;else{var k=u(A);null!==k&&S(da,k.startTime-b);h=!1}return h}catch(Ma){if(null!==n){var r=v();a=n;p[0]=0;p[1]=0;p[3]--;null!==t&&z([3,1E3*r,a.id]);n.isQueued=!1}throw Ma;}}finally{n=null,q=c,T=!1,c=v(),fa++,null!==t&&z([7,1E3*c,fa])}}function Na(a){var b=!1,c=null;w.forEach(function(e){try{e.onInteractionTraced(a)}catch(d){b||(b=!0,c=d)}});if(b)throw c;}function Oa(a){var b=!1,c=null;w.forEach(function(e){try{e.onInteractionScheduledWorkCompleted(a)}catch(d){b||(b=!0,c=
d)}});if(b)throw c;}function Pa(a,b){var c=!1,e=null;w.forEach(function(d){try{d.onWorkScheduled(a,b)}catch(m){c||(c=!0,e=m)}});if(c)throw e;}function Qa(a,b){var c=!1,e=null;w.forEach(function(d){try{d.onWorkStarted(a,b)}catch(m){c||(c=!0,e=m)}});if(c)throw e;}function Ra(a,b){var c=!1,e=null;w.forEach(function(d){try{d.onWorkStopped(a,b)}catch(m){c||(c=!0,e=m)}});if(c)throw e;}function Sa(a,b){var c=!1,e=null;w.forEach(function(d){try{d.onWorkCanceled(a,b)}catch(m){c||(c=!0,e=m)}});if(c)throw e;
}var F=60103,ua=60106;f.Fragment=60107;f.StrictMode=60108;f.Profiler=60114;var za=60109,Aa=60110,Ba=60112;f.Suspense=60113;var Ca=60115,Da=60116;if("function"===typeof Symbol&&Symbol.for){var k=Symbol.for;F=k("react.element");ua=k("react.portal");f.Fragment=k("react.fragment");f.StrictMode=k("react.strict_mode");f.Profiler=k("react.profiler");za=k("react.provider");Aa=k("react.context");Ba=k("react.forward_ref");f.Suspense=k("react.suspense");Ca=k("react.memo");Da=k("react.lazy")}var na="function"===
typeof Symbol&&Symbol.iterator,Ta=Object.prototype.hasOwnProperty,ja=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),e=1;e<arguments.length;e++){var d=arguments[e];if(null!=d){var f=void 0;d=Object(d);for(f in d)Ta.call(d,f)&&(c[f]=d[f])}}return c},pa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,e){},enqueueSetState:function(a,b,c,e){}},oa={};E.prototype.isReactComponent=
{};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(I(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};qa.prototype=E.prototype;k=X.prototype=new qa;k.constructor=X;ja(k,E.prototype);k.isPureReactComponent=!0;var Y={current:null},sa=Object.prototype.hasOwnProperty,ta={key:!0,ref:!0,__self:!0,__source:!0},va=/\/+/g,wa={current:null},ka;if("object"===
typeof performance&&"function"===typeof performance.now){var Ua=performance;var v=function(){return Ua.now()}}else{var Ea=Date,Va=Ea.now();v=function(){return Ea.now()-Va}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var N=null,Fa=null,Ga=function(){if(null!==N)try{var a=v();N(!0,a);N=null}catch(b){throw setTimeout(Ga,0),b;}};var M=function(a){null!==N?setTimeout(M,0,a):(N=a,setTimeout(Ga,0))};var S=function(a,b){Fa=setTimeout(a,b)};var ha=function(){clearTimeout(Fa)};var ia=
function(){return!1};k=ka=function(){}}else{var Wa=window.setTimeout,Xa=window.clearTimeout;"undefined"!==typeof console&&(k=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof k&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));
var V=!1,W=null,la=-1,Ha=5,Ia=0;ia=function(){return v()>=Ia};k=function(){};ka=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ha=0<a?Math.floor(1E3/a):5};var G=new MessageChannel,ma=G.port2;G.port1.onmessage=function(){if(null!==W){var a=v();Ia=a+Ha;try{W(!0,a)?ma.postMessage(null):(V=!1,W=null)}catch(b){throw ma.postMessage(null),b;}}else V=!1};M=function(a){W=a;V||(V=!0,ma.postMessage(null))};
S=function(a,b){la=Wa(function(){a(v())},b)};ha=function(){Xa(la);la=-1}}var U=0,fa=0;G="function"===typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"===typeof ArrayBuffer?new ArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):null;var p=null!==G?new Int32Array(G):[];p[0]=0;p[3]=0;var C=p[1]=0,K=null,t=null,J=0,x=[],A=[],Ya=1,n=null,q=3,T=!1,D=!1,L=!1;k={__proto__:null,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=q;q=a;try{return b()}finally{q=c}},unstable_next:function(a){switch(q){case 1:case 2:case 3:var b=3;break;default:b=q}var c=q;q=b;try{return a()}finally{q=c}},unstable_scheduleCallback:function(a,b,c){var e=v();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?e+c:e):c=e;switch(a){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=
1E4;break;default:d=5E3}d=c+d;a={id:Ya++,callback:b,priorityLevel:a,startTime:c,expirationTime:d,sortIndex:-1,isQueued:!1};c>e?(a.sortIndex=c,ba(A,a),null===u(x)&&a===u(A)&&(L?ha():L=!0,S(da,c-e))):(a.sortIndex=d,ba(x,a),ya(a,e),a.isQueued=!0,D||T||(D=!0,M(ea)));return a},unstable_cancelCallback:function(a){if(a.isQueued){var b=v();p[3]--;null!==t&&z([4,1E3*b,a.id]);a.isQueued=!1}a.callback=null},unstable_wrapCallback:function(a){var b=q;return function(){var c=q;q=b;try{return a.apply(this,arguments)}finally{q=
c}}},unstable_getCurrentPriorityLevel:function(){return q},get unstable_shouldYield(){return ia},unstable_requestPaint:k,unstable_continueExecution:function(){D||T||(D=!0,M(ea))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return u(x)},get unstable_now(){return v},get unstable_forceFrameRate(){return ka},unstable_Profiling:{startLoggingProfilingEvents:function(){C=131072;K=new ArrayBuffer(4*C);t=new Int32Array(K);J=0},stopLoggingProfilingEvents:xa,sharedProfilingBuffer:G}};
var Za=0,$a=0,r=null,B=null;r={current:new Set};B={current:null};var w=null;w=new Set;k={ReactCurrentDispatcher:wa,ReactCurrentOwner:Y,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:{transition:0},assign:ja,Scheduler:k,SchedulerTracing:{__proto__:null,get __interactionsRef(){return r},get __subscriberRef(){return B},unstable_clear:function(a){var b=r.current;r.current=new Set;try{return a()}finally{r.current=b}},unstable_getCurrent:function(){return r.current},unstable_getThreadID:function(){return++$a},
unstable_trace:function(a,b,c){var e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,d={__count:1,id:Za++,name:a,timestamp:b},f=r.current,l=new Set(f);l.add(d);r.current=l;var g=B.current;try{if(null!==g)g.onInteractionTraced(d)}finally{try{if(null!==g)g.onWorkStarted(l,e)}finally{try{var h=c()}finally{r.current=f;try{if(null!==g)g.onWorkStopped(l,e)}finally{if(d.__count--,null!==g&&0===d.__count)g.onInteractionScheduledWorkCompleted(d)}}}}return h},unstable_wrap:function(a){function b(){var b=
r.current;r.current=e;d=B.current;try{try{if(null!==d)d.onWorkStarted(e,c)}finally{try{var g=a.apply(void 0,arguments)}finally{if(r.current=b,null!==d)d.onWorkStopped(e,c)}}return g}finally{f||(f=!0,e.forEach(function(a){a.__count--;if(null!==d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=r.current,d=B.current;if(null!==d)d.onWorkScheduled(e,c);e.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){d=B.current;
try{if(null!==d)d.onWorkCanceled(e,c)}finally{e.forEach(function(a){a.__count--;if(d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){w.add(a);1===w.size&&(B.current={onInteractionScheduledWorkCompleted:Oa,onInteractionTraced:Na,onWorkCanceled:Sa,onWorkScheduled:Pa,onWorkStarted:Qa,onWorkStopped:Ra})},unstable_unsubscribe:function(a){w.delete(a);0===w.size&&(B.current=null)}}};f.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,
arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!Z(a))throw Error(I(143));return a}};f.Component=E;f.PureComponent=X;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k;f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(I(267,a));var e=ja({},a.props),d=a.key,f=a.ref,l=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,l=Y.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=
a.type.defaultProps;for(h in b)sa.call(b,h)&&!ta.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==g?g[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){g=Array(h);for(var k=0;k<h;k++)g[k]=arguments[k+2];e.children=g}return{$$typeof:F,type:a.type,key:d,ref:f,props:e,_owner:l}};f.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:Aa,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:za,_context:a};return a.Consumer=
a};f.createElement=ra;f.createFactory=function(a){var b=ra.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ba,render:a}};f.isValidElement=Z;f.lazy=function(a){return{$$typeof:Da,_payload:{_status:-1,_result:a},_init:La}};f.memo=function(a,b){return{$$typeof:Ca,type:a,compare:void 0===b?null:b}};f.useCallback=function(a,b){return y().useCallback(a,b)};f.useContext=function(a,b){return y().useContext(a,b)};f.useDebugValue=function(a,
b){};f.useEffect=function(a,b){return y().useEffect(a,b)};f.useImperativeHandle=function(a,b,c){return y().useImperativeHandle(a,b,c)};f.useLayoutEffect=function(a,b){return y().useLayoutEffect(a,b)};f.useMemo=function(a,b){return y().useMemo(a,b)};f.useReducer=function(a,b,c){return y().useReducer(a,b,c)};f.useRef=function(a){return y().useRef(a)};f.useState=function(a){return y().useState(a)};f.version="17.0.1"});
})();