34 lines
12 KiB
JavaScript
34 lines
12 KiB
JavaScript
/** @license React v16.5.2
|
|
* 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(H,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n():"function"===typeof define&&define.amd?define(n):H.React=n()})(this,function(){function H(a,b,c,d,e,k,z,g){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[c,d,e,k,z,g],h=0;a=Error(b.replace(/%s/g,function(){return f[h++]}));a.name="Invariant Violation"}a.framesToPop=1;
|
|
throw a;}}function n(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);H(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function t(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function Z(){}function I(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function J(){if(!K){var a=
|
|
f.timesOutAt;L?M():L=!0;N(sa,a)}}function aa(a){a=f;var b=f.next;if(f===b)f=null;else{var c=f.previous;f=c.next=b;b.previous=c}a.next=a.previous=null;a=a.callback;a(ba)}function sa(a){K=!0;ba.didTimeout=a;try{if(a)for(;null!==f;){var b=q();if(f.timesOutAt<=b){do aa();while(null!==f&&f.timesOutAt<=b)}else break}else if(null!==f){do aa();while(null!==f&&0<u()-q())}}finally{K=!1,null!==f?J(f):L=!1}}function ta(a){var b=!1,c=null;m.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||(b=!0,c=
|
|
e)}});if(b)throw c;}function ua(a){var b=!1,c=null;m.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function va(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function wa(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkStarted(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function xa(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkStopped(a,b)}catch(k){c||(c=!0,d=k)}});
|
|
if(c)throw d;}function ya(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function ca(a,b,c){var d=void 0,e={},k=null,z=null;if(null!=b)for(d in void 0!==b.ref&&(z=b.ref),void 0!==b.key&&(k=""+b.key),b)da.call(b,d)&&!ea.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var f=Array(g),h=0;h<g;h++)f[h]=arguments[h+2];e.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===e[d]&&(e[d]=
|
|
g[d]);return{$$typeof:v,type:a,key:k,ref:z,props:e,_owner:A.current}}function za(a,b){return{$$typeof:v,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===v}function Aa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function fa(a,b,c,d){if(B.length){var e=B.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 ha(a){a.result=
|
|
null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>B.length&&B.push(a)}function P(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var k=!1;if(null===a)k=!0;else switch(e){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case v:case Ba:k=!0}}if(k)return c(d,a,""===b?"."+Q(a,0):b),1;k=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var g=b+Q(e,f);k+=P(e,g,c,d)}else if(null===a||"object"!==typeof a?g=null:(g=ia&&a[ia]||a["@@iterator"],
|
|
g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),f=0;!(e=a.next()).done;)e=e.value,g=b+Q(e,f++),k+=P(e,g,c,d);else"object"===e&&(c=""+a,n("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return k}function R(a,b,c){return null==a?0:P(a,"",b,c)}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Aa(a.key):b.toString(36)}function Ca(a,b,c){a.func.call(a.context,b,a.count++)}function Da(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,
|
|
b,a.count++);Array.isArray(a)?S(a,d,c,function(a){return a}):null!=a&&(O(a)&&(a=za(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ja,"$&/")+"/")+c)),d.push(a))}function S(a,b,c,d,e){var k="";null!=c&&(k=(""+c).replace(ja,"$&/")+"/");b=fa(b,k,d,e);R(a,Da,b);ha(b)}function Ea(a,b){var c=A.currentDispatcher;null===c?n("277"):void 0;return c.readContext(a,b)}var h="function"===typeof Symbol&&Symbol.for,v=h?Symbol.for("react.element"):60103,Ba=h?Symbol.for("react.portal"):60106,r=h?Symbol.for("react.fragment"):
|
|
60107,T=h?Symbol.for("react.strict_mode"):60108,Fa=h?Symbol.for("react.profiler"):60114,Ga=h?Symbol.for("react.provider"):60109,Ha=h?Symbol.for("react.context"):60110,Ia=h?Symbol.for("react.async_mode"):60111,Ja=h?Symbol.for("react.forward_ref"):60112;h&&Symbol.for("react.placeholder");var ia="function"===typeof Symbol&&Symbol.iterator,ka=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable,C=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 k=Object(arguments[e]);for(var f in k)Ka.call(k,f)&&(c[f]=k[f]);if(ka){d=ka(k);for(var g=0;g<d.length;g++)La.call(k,d[g])&&(c[d[g]]=k[d[g]])}}return c},Y={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},X={};t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?n("85"):void 0;this.updater.enqueueSetState(this,
|
|
a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Z.prototype=t.prototype;h=I.prototype=new Z;h.constructor=I;C(h,t.prototype);h.isPureReactComponent=!0;var f=null,K=!1,L=!1;h="object"===typeof performance&&"function"===typeof performance.now;var ba={timeRemaining:h?function(){var a=u()-performance.now();return 0<a?a:0}:function(){var a=u()-Date.now();return 0<a?a:0},didTimeout:!1},Ma=Date,Na="function"===typeof setTimeout?setTimeout:void 0,
|
|
Oa="function"===typeof clearTimeout?clearTimeout:void 0,la="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ma="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,na,oa,pa=function(a){na=la(function(b){Oa(oa);a(b)});oa=Na(function(){ma(na);a(q())},100)};if(h){var Pa=performance;var q=function(){return Pa.now()}}else q=function(){return Ma.now()};if("undefined"===typeof window){var qa=-1;var N=function(a,b){qa=setTimeout(a,0,!0)};var M=function(){clearTimeout(qa)};
|
|
var u=function(){return 0}}else if(window._schedMock)h=window._schedMock,N=h[0],M=h[1],u=h[2];else{"undefined"!==typeof console&&("function"!==typeof la&&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 ma&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,E=!1,w=
|
|
-1,x=!1,U=!1,F=0,G=33,y=33;u=function(){return F};var V="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){if(a.source===window&&a.data===V){E=!1;var b=q();a=!1;if(0>=F-b)if(-1!==w&&w<=b)a=!0;else{x||(x=!0,pa(ra));return}w=-1;b=D;D=null;if(null!==b){U=!0;try{b(a)}finally{U=!1}}}},!1);var ra=function(a){x=!1;var b=a-F+y;b<y&&G<y?(8>b&&(b=8),y=b<G?G:b):G=b;F=a+y;E||(E=!0,window.postMessage(V,"*"))};N=function(a,b){D=a;w=b;U?window.postMessage(V,
|
|
"*"):x||(x=!0,pa(ra))};M=function(){D=null;E=!1;w=-1}}var Qa=0,Ra=0,l=null,p=null;l={current:new Set};p={current:null};var m=null;m=new Set;var A={current:null,currentDispatcher:null};h={ReactCurrentOwner:A,assign:C};C(h,{Schedule:{unstable_cancelScheduledWork:function(a){var b=a.next;if(null!==b){if(b===a)f=null;else{a===f&&(f=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}},unstable_now:q,unstable_scheduleWork:function(a,b){var c=q();b=void 0!==b&&null!==b&&null!==b.timeout&&void 0!==
|
|
b.timeout?c+b.timeout:c+5E3;a={callback:a,timesOutAt:b,next:null,previous:null};if(null===f)f=a.next=a.previous=a,J(f);else{c=null;var d=f;do{if(d.timesOutAt>b){c=d;break}d=d.next}while(d!==f);null===c?c=f:c===f&&(f=a,J(f));b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a}},ScheduleTracing:{__interactionsRef:l,__subscriberRef:p,unstable_clear:function(a){var b=l.current;l.current=new Set;try{return a()}finally{l.current=b}},unstable_getCurrent:function(){return l.current},unstable_getThreadID:function(){return++Ra},
|
|
unstable_subscribe:function(a){m.add(a);1===m.size&&(p.current={onInteractionScheduledWorkCompleted:ua,onInteractionTraced:ta,onWorkCanceled:ya,onWorkScheduled:va,onWorkStarted:wa,onWorkStopped:xa})},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:Qa++,name:a,timestamp:b},f=l.current,h=new Set(f);h.add(e);l.current=h;var g=p.current,W=void 0;try{if(null!==g)g.onInteractionTraced(e)}finally{try{if(null!==g)g.onWorkStarted(h,d)}finally{try{W=
|
|
c()}finally{l.current=f;try{if(null!==g)g.onWorkStopped(h,d)}finally{if(e.__count--,null!==g&&0===e.__count)g.onInteractionScheduledWorkCompleted(e)}}}}return W},unstable_unsubscribe:function(a){m.delete(a);0===m.size&&(p.current=null)},unstable_wrap:function(a){function b(){var b=l.current;l.current=d;e=p.current;try{var g=void 0;try{if(null!==e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(l.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=l.current,e=p.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=p.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}}});var da=Object.prototype.hasOwnProperty,ea={key:!0,ref:!0,__self:!0,__source:!0},
|
|
ja=/\/+/g,B=[];r={Children:{map:function(a,b,c){if(null==a)return a;var d=[];S(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=fa(null,null,b,c);R(a,Ca,b);ha(b)},count:function(a){return R(a,function(){return null},null)},toArray:function(a){var b=[];S(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:n("143");return a}},createRef:function(){return{current:null}},Component:t,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ha,
|
|
_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:Ga,_context:a};a.Consumer=a;a.unstable_read=Ea.bind(null,a);return a},forwardRef:function(a){return{$$typeof:Ja,render:a}},Fragment:r,StrictMode:T,unstable_AsyncMode:Ia,unstable_Profiler:Fa,createElement:ca,cloneElement:function(a,b,c){null===a||void 0===a?n("267",a):void 0;var d=void 0,e=C({},a.props),f=a.key,h=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,g=A.current);
|
|
void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(d in b)da.call(b,d)&&!ea.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==l?l[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){l=Array(d);for(var m=0;m<d;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:v,type:a.type,key:f,ref:h,props:e,_owner:g}},createFactory:function(a){var b=ca.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h};
|
|
r=(T={default:r},r)||T;return r.default||r});
|