react-dom 16.6.0-alpha.8af6728 → 16.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-server.browser.development.js +637 -166
- package/cjs/react-dom-server.browser.production.min.js +37 -35
- package/cjs/react-dom-server.node.development.js +644 -169
- package/cjs/react-dom-server.node.production.min.js +39 -37
- package/cjs/react-dom-test-utils.development.js +18 -58
- package/cjs/react-dom-test-utils.production.min.js +5 -5
- package/cjs/react-dom-unstable-native-dependencies.development.js +11 -50
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/cjs/react-dom.development.js +2401 -1042
- package/cjs/react-dom.production.min.js +208 -202
- package/cjs/react-dom.profiling.min.js +229 -220
- package/package.json +21 -4
- package/umd/react-dom-server.browser.development.js +685 -214
- package/umd/react-dom-server.browser.production.min.js +33 -29
- package/umd/react-dom-test-utils.development.js +18 -58
- package/umd/react-dom-test-utils.production.min.js +18 -18
- package/umd/react-dom-unstable-native-dependencies.development.js +11 -50
- package/umd/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/umd/react-dom.development.js +2402 -1042
- package/umd/react-dom.production.min.js +193 -189
- package/umd/react-dom.profiling.min.js +198 -194
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,31 +6,35 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(
|
|
10
|
-
"Invariant Violation"}a.framesToPop=1;throw a;}}function
|
|
11
|
-
switch(a){case
|
|
12
|
-
a))return!0;if(
|
|
13
|
-
case 6:return isNaN(b)||1>b}return!1}function
|
|
14
|
-
c&&(
|
|
15
|
-
function
|
|
16
|
-
d,g),null==
|
|
17
|
-
|
|
18
|
-
context:b}}var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
d
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
9
|
+
'use strict';(function(u,C){"object"===typeof exports&&"undefined"!==typeof module?module.exports=C(require("react")):"function"===typeof define&&define.amd?define(["react"],C):u.ReactDOMServer=C(u.React)})(this,function(u){function C(a,b,f,c,g,d,h,e){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 k=[f,c,g,d,h,e],ja=0;a=Error(b.replace(/%s/g,function(){return k[ja++]}));
|
|
10
|
+
a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function v(a){for(var b=arguments.length-1,f="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)f+="&args[]="+encodeURIComponent(arguments[c+1]);C(!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. ",f)}function E(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;
|
|
11
|
+
switch(a){case O:return"ConcurrentMode";case H:return"Fragment";case P:return"Portal";case Q:return"Profiler";case R:return"StrictMode";case I:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case S:return"Context.Consumer";case J:return"Context.Provider";case T:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case U:return E(a.type);case V:if(a=1===a._status?a._result:null)return E(a)}return null}function F(a,b){for(var f=a._threadCount;f<=
|
|
12
|
+
b;f++)a[f]=a._currentValue2,a._threadCount=f+1}function ka(a,b,f){var c=a.contextType;if("object"===typeof c&&null!==c)return F(c,f),c[f];if(a=a.contextTypes){f={};for(var g in a)f[g]=b[g];b=f}else b=W;return b}function X(a){if(Y.call(Z,a))return!0;if(Y.call(aa,a))return!1;if(la.test(a))return Z[a]=!0;aa[a]=!0;return!1}function ma(a,b,f,c){if(null!==f&&0===f.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==f)return!f.acceptsBooleans;a=a.toLowerCase().slice(0,
|
|
13
|
+
5);return"data-"!==a&&"aria-"!==a;default:return!1}}function na(a,b,f,c){if(null===b||"undefined"===typeof b||ma(a,b,f,c))return!0;if(c)return!1;if(null!==f)switch(f.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function t(a,b,f,c,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=g;this.mustUseProperty=f;this.propertyName=a;this.type=b}function B(a){if("boolean"===typeof a||"number"===typeof a)return""+
|
|
14
|
+
a;a=""+a;var b=oa.exec(a);if(b){var f="",c,g=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}g!==c&&(f+=a.substring(g,c));g=c+1;f+=b}a=g!==c?f+a.substring(g,c):f}return a}function ba(a,b,f,c){for(;ca;)ca=!1,f=a(b,c);return f}function da(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
|
|
15
|
+
function pa(a){if(void 0===a||null===a)return a;var b="";u.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function ea(a,b){void 0===a&&v("152",E(b)||"Component")}function qa(a,b,f){function c(g,c){var d=ka(c,b,f),e=[],h=!1,m={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===e)return null},enqueueReplaceState:function(a,b){h=!0;e=[b]},enqueueSetState:function(a,b){if(null===e)return null;e.push(b)}},l=void 0;if(c.prototype&&c.prototype.isReactComponent){if(l=new c(g.props,
|
|
16
|
+
d,m),"function"===typeof c.getDerivedStateFromProps){var k=c.getDerivedStateFromProps.call(null,g.props,l.state);null!=k&&(l.state=y({},l.state,k))}}else if(l=c(g.props,d,m),l=ba(c,g.props,l,d),null==l||null==l.render){a=l;ea(a,c);return}l.props=g.props;l.context=d;l.updater=m;m=l.state;void 0===m&&(l.state=m=null);if("function"===typeof l.UNSAFE_componentWillMount||"function"===typeof l.componentWillMount)if("function"===typeof l.componentWillMount&&"function"!==typeof c.getDerivedStateFromProps&&
|
|
17
|
+
l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&"function"!==typeof c.getDerivedStateFromProps&&l.UNSAFE_componentWillMount(),e.length){m=e;var n=h;e=null;h=!1;if(n&&1===m.length)l.state=m[0];else{k=n?m[0]:l.state;var q=!0;for(n=n?1:0;n<m.length;n++){var r=m[n];r="function"===typeof r?r.call(l,k,g.props,d):r;null!=r&&(q?(q=!1,k=y({},k,r)):y(k,r))}l.state=k}}else e=null;a=l.render();ea(a,c);g=void 0;if("function"===typeof l.getChildContext&&(d=c.childContextTypes,"object"===
|
|
18
|
+
typeof d)){g=l.getChildContext();for(var t in g)t in d?void 0:v("108",E(c)||"Unknown",t)}g&&(b=y({},b,g))}for(;u.isValidElement(a);){var g=a,d=g.type;if("function"!==typeof d)break;c(g,d)}return{child:a,context:b}}var y=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,k="function"===typeof Symbol&&Symbol.for,P=k?Symbol.for("react.portal"):60106,H=k?Symbol.for("react.fragment"):60107,R=k?Symbol.for("react.strict_mode"):60108,Q=k?Symbol.for("react.profiler"):60114,J=k?Symbol.for("react.provider"):
|
|
19
|
+
60109,S=k?Symbol.for("react.context"):60110,O=k?Symbol.for("react.concurrent_mode"):60111,T=k?Symbol.for("react.forward_ref"):60112,I=k?Symbol.for("react.suspense"):60113,U=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.lazy"):60116;k=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;for(var W={},q=new Uint16Array(16),z=0;15>z;z++)q[z]=z+1;q[15]=0;var la=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
|
|
20
|
+
Y=Object.prototype.hasOwnProperty,aa={},Z={},r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){r[a]=new t(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];r[b]=new t(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){r[a]=new t(a,2,!1,
|
|
21
|
+
a.toLowerCase(),null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){r[a]=new t(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){r[a]=new t(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){r[a]=new t(a,3,!0,a,null)});["capture",
|
|
22
|
+
"download"].forEach(function(a){r[a]=new t(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){r[a]=new t(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){r[a]=new t(a,5,!1,a.toLowerCase(),null)});var K=/[\-:]([a-z])/g,L=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=
|
|
23
|
+
a.replace(K,L);r[b]=new t(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(K,L);r[b]=new t(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);r[b]=new t(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});r.tabIndex=new t("tabIndex",1,!1,"tabindex",null);var oa=/["'&<>]/,ca=!1,G=0,sa={readContext:function(a,b){b=G;F(a,b);return a[b]}},
|
|
24
|
+
fa={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ta=y({menuitem:!0},fa),D={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
25
|
+
gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ua=["Webkit","ms","Moz","O"];Object.keys(D).forEach(function(a){ua.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);D[b]=D[a]})});var va=/([A-Z])/g,wa=/^ms-/,A=u.Children.toArray,M=k.ReactCurrentOwner,xa={listing:!0,pre:!0,
|
|
26
|
+
textarea:!0},ya=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ha={},N={},za=Object.prototype.hasOwnProperty,Aa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},ia=function(){function a(b,f){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");u.isValidElement(b)?b.type!==H?b=[b]:(b=b.props.children,b=u.isValidElement(b)?[b]:A(b)):b=A(b);b={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:b,childIndex:0,context:W,
|
|
27
|
+
footer:""};var c=q[0];if(0===c){var g=q;c=g.length;var d=2*c;65536>=d?void 0:v("304");var h=new Uint16Array(d);h.set(g);q=h;q[0]=c+1;for(g=c;g<d-1;g++)q[g]=g+1;q[d-1]=0}else q[0]=q[c];this.threadID=c;this.stack=[b];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=f;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;var a=this.threadID;q[a]=q[0];
|
|
28
|
+
q[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,g=this.threadID;F(c,g);var d=c[g];this.contextStack[b]=c;this.contextValueStack[b]=d;c[g]=a.props.value};a.prototype.popProvider=function(a){a=this.contextIndex;var b=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=G;G=this.threadID;var c=M.currentDispatcher;
|
|
29
|
+
M.currentDispatcher=sa;try{for(var g=[""],d=!1;g[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;q[h]=q[0];q[0]=h;break}var e=this.stack[this.stack.length-1];if(d||e.childIndex>=e.children.length){var k=e.footer;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===J)this.popProvider(e.type);else if(e.type===I){this.suspenseDepth--;var r=g.pop();if(d){d=
|
|
30
|
+
!1;var p=e.fallbackFrame;p?void 0:v("303");this.stack.push(p);continue}else g[this.suspenseDepth]+=r}g[this.suspenseDepth]+=k}else{var m=e.children[e.childIndex++],l="";try{l+=this.render(m,e.context,e.domNamespace)}catch(ra){throw ra;}finally{}g.length<=this.suspenseDepth&&g.push("");g[this.suspenseDepth]+=l}}return g[0]}finally{M.currentDispatcher=c,G=b}};a.prototype.render=function(a,f,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return B(c);
|
|
31
|
+
if(this.previousWasTextNode)return"\x3c!-- --\x3e"+B(c);this.previousWasTextNode=!0;return B(c)}f=qa(a,f,this.threadID);a=f.child;f=f.context;if(null===a||!1===a)return"";if(!u.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;b===P?v("257"):void 0;v("258",b.toString())}a=A(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,f,c);switch(b){case R:case O:case Q:case H:return a=A(a.props.children),
|
|
32
|
+
this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""}),"";case I:v("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case T:var d=b.render(a.props,a.ref);d=ba(b.render,a.props,d,a.ref);d=A(d);this.stack.push({type:null,domNamespace:c,children:d,childIndex:0,context:f,footer:""});return"";case U:return a=[u.createElement(b.type,y({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""}),"";case J:return b=
|
|
33
|
+
A(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:f,footer:""},this.pushProvider(a),this.stack.push(c),"";case S:b=a.type;d=a.props;var h=this.threadID;F(b,h);b=A(d.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:f,footer:""});return"";case V:v("295")}v("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,f,c){var b=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===c&&da(b);ha.hasOwnProperty(b)||(ya.test(b)?void 0:v("65",
|
|
34
|
+
b),ha[b]=!0);var d=a.props;if("input"===b)d=y({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===b){var h=d.value;if(null==h){h=d.defaultValue;var e=d.children;null!=e&&(null!=h?v("92"):void 0,Array.isArray(e)&&(1>=e.length?void 0:v("93"),e=e[0]),h=""+e);null==h&&(h="")}d=y({},d,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=d.value?d.value:
|
|
35
|
+
d.defaultValue,d=y({},d,{value:void 0});else if("option"===b){e=this.currentSelectValue;var k=pa(d.children);if(null!=e){var q=null!=d.value?d.value+"":k;h=!1;if(Array.isArray(e))for(var p=0;p<e.length;p++){if(""+e[p]===q){h=!0;break}}else h=""+e===q;d=y({selected:void 0,children:void 0},d,{selected:h,children:k})}}if(h=d)ta[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?v("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?v("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&
|
|
36
|
+
"__html"in h.dangerouslySetInnerHTML?void 0:v("61")),null!=h.style&&"object"!==typeof h.style?v("62",""):void 0;h=d;e=this.makeStaticMarkup;k=1===this.stack.length;q="<"+a.type;for(x in h)if(za.call(h,x)){var m=h[x];if(null!=m){if("style"===x){p=void 0;var l="",t="";for(p in m)if(m.hasOwnProperty(p)){var n=0===p.indexOf("--"),w=m[p];if(null!=w){var u=p;if(N.hasOwnProperty(u))u=N[u];else{var z=u.replace(va,"-$1").toLowerCase().replace(wa,"-ms-");u=N[u]=z}l+=t+u+":";t=p;n=null==w||"boolean"===typeof w||
|
|
37
|
+
""===w?"":n||"number"!==typeof w||0===w||D.hasOwnProperty(t)&&D[t]?(""+w).trim():w+"px";l+=n;t=";"}}m=l||null}p=null;b:if(n=b,w=h,-1===n.indexOf("-"))n="string"===typeof w.is;else switch(n){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":n=!1;break b;default:n=!0}if(n)Aa.hasOwnProperty(x)||(p=x,p=X(p)&&null!=m?p+"="+('"'+B(m)+'"'):"");else{n=x;p=m;m=r.hasOwnProperty(n)?r[n]:null;
|
|
38
|
+
if(w="style"!==n)w=null!==m?0===m.type:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?!1:!0;w||na(n,p,m,!1)?p="":null!==m?(n=m.attributeName,m=m.type,p=3===m||4===m&&!0===p?n+'=""':n+"="+('"'+B(p)+'"')):p=X(n)?n+"="+('"'+B(p)+'"'):""}p&&(q+=" "+p)}}e||k&&(q+=' data-reactroot=""');var x=q;h="";fa.hasOwnProperty(b)?x+="/>":(x+=">",h="</"+a.type+">");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=
|
|
39
|
+
B(e);break a}e=null}null!=e?(d=[],xa[b]&&"\n"===e.charAt(0)&&(x+="\n"),x+=e):d=A(d.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?da(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:d,childIndex:0,context:f,footer:h});this.previousWasTextNode=!1;return x};return a}();k={renderToString:function(a){a=new ia(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=
|
|
40
|
+
new ia(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){v("207")},renderToStaticNodeStream:function(){v("208")},version:"16.6.3"};k=(z={default:k},k)||z;return k.default||k});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -90,63 +90,24 @@ var warningWithoutStack = function () {};
|
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
if (typeof console !== 'undefined') {
|
|
93
|
-
var
|
|
93
|
+
var argsWithFormat = args.map(function (item) {
|
|
94
94
|
return '' + item;
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
f = _args$map[5],
|
|
102
|
-
g = _args$map[6],
|
|
103
|
-
h = _args$map[7];
|
|
104
|
-
|
|
105
|
-
var message = 'Warning: ' + format;
|
|
106
|
-
|
|
107
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
108
|
-
// https://github.com/facebook/react/issues/13610
|
|
109
|
-
switch (args.length) {
|
|
110
|
-
case 0:
|
|
111
|
-
console.error(message);
|
|
112
|
-
break;
|
|
113
|
-
case 1:
|
|
114
|
-
console.error(message, a);
|
|
115
|
-
break;
|
|
116
|
-
case 2:
|
|
117
|
-
console.error(message, a, b);
|
|
118
|
-
break;
|
|
119
|
-
case 3:
|
|
120
|
-
console.error(message, a, b, c);
|
|
121
|
-
break;
|
|
122
|
-
case 4:
|
|
123
|
-
console.error(message, a, b, c, d);
|
|
124
|
-
break;
|
|
125
|
-
case 5:
|
|
126
|
-
console.error(message, a, b, c, d, e);
|
|
127
|
-
break;
|
|
128
|
-
case 6:
|
|
129
|
-
console.error(message, a, b, c, d, e, f);
|
|
130
|
-
break;
|
|
131
|
-
case 7:
|
|
132
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
133
|
-
break;
|
|
134
|
-
case 8:
|
|
135
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
136
|
-
break;
|
|
137
|
-
default:
|
|
138
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
139
|
-
}
|
|
95
|
+
});
|
|
96
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
97
|
+
|
|
98
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
99
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
100
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
140
101
|
}
|
|
141
102
|
try {
|
|
142
103
|
// --- Welcome to debugging React ---
|
|
143
104
|
// This error was thrown as a convenience so that you can use this stack
|
|
144
105
|
// to find the callsite that caused this warning to fire.
|
|
145
106
|
var argIndex = 0;
|
|
146
|
-
var
|
|
107
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
147
108
|
return args[argIndex++];
|
|
148
109
|
});
|
|
149
|
-
throw new Error(
|
|
110
|
+
throw new Error(message);
|
|
150
111
|
} catch (x) {}
|
|
151
112
|
};
|
|
152
113
|
}
|
|
@@ -180,14 +141,12 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
|
|
|
180
141
|
// nor polyfill, then a plain number is used for performance.
|
|
181
142
|
|
|
182
143
|
var FunctionComponent = 0;
|
|
183
|
-
var
|
|
184
|
-
var ClassComponent = 2;
|
|
185
|
-
var ClassComponentLazy = 3;
|
|
144
|
+
var ClassComponent = 1;
|
|
186
145
|
// Before we know whether it is function or class
|
|
187
|
-
var HostRoot =
|
|
146
|
+
var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
|
|
188
147
|
// A subtree. Could be an entry point to a different renderer.
|
|
189
|
-
var HostComponent =
|
|
190
|
-
var HostText =
|
|
148
|
+
var HostComponent = 5;
|
|
149
|
+
var HostText = 6;
|
|
191
150
|
|
|
192
151
|
// Don't change these two values. They're used by React Dev Tools.
|
|
193
152
|
var NoEffect = /* */0;
|
|
@@ -204,7 +163,8 @@ var Placement = /* */2;
|
|
|
204
163
|
|
|
205
164
|
|
|
206
165
|
|
|
207
|
-
|
|
166
|
+
|
|
167
|
+
// Passive & Update & Callback & Ref & Snapshot
|
|
208
168
|
|
|
209
169
|
|
|
210
170
|
// Union of all host effects
|
|
@@ -931,7 +891,7 @@ function findAllInRenderedFiberTreeInternal(fiber, test) {
|
|
|
931
891
|
var node = currentParent;
|
|
932
892
|
var ret = [];
|
|
933
893
|
while (true) {
|
|
934
|
-
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag ===
|
|
894
|
+
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) {
|
|
935
895
|
var publicInst = node.stateNode;
|
|
936
896
|
if (test(publicInst)) {
|
|
937
897
|
ret.push(publicInst);
|
|
@@ -1215,7 +1175,7 @@ function makeSimulator(eventType) {
|
|
|
1215
1175
|
// Normally extractEvent enqueues a state restore, but we'll just always
|
|
1216
1176
|
// do that since we we're by-passing it here.
|
|
1217
1177
|
enqueueStateRestore(domNode);
|
|
1218
|
-
runEventsInBatch(event
|
|
1178
|
+
runEventsInBatch(event);
|
|
1219
1179
|
});
|
|
1220
1180
|
restoreStateIfNeeded();
|
|
1221
1181
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
*/
|
|
9
9
|
'use strict';(function(l,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],n):l.ReactTestUtils=n(l.React,l.ReactDOM)})(this,function(l,n){function H(a,b,c,e,d,f,g,h){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 I=[c,e,d,f,g,h],k=0;a=Error(b.replace(/%s/g,
|
|
10
10
|
function(){return I[k++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function k(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=0;e<b;e++)c+="&args[]="+encodeURIComponent(arguments[e+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 A(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;
|
|
11
|
-
for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return
|
|
12
|
-
break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;e=d;break}if(h===e){g=!0;e=f;c=d;break}h=h.sibling}g?void 0:k("189")}}c.alternate!==e?k("190"):void 0}
|
|
11
|
+
for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function B(a){2!==A(a)?k("188"):void 0}function J(a){var b=a.alternate;if(!b)return b=A(a),3===b?k("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,f=d?d.alternate:null;if(!d||!f)break;if(d.child===f.child){for(var g=d.child;g;){if(g===c)return B(d),a;if(g===e)return B(d),b;g=g.sibling}k("188")}if(c.return!==e.return)c=d,e=f;else{g=!1;for(var h=d.child;h;){if(h===c){g=!0;c=d;e=f;break}if(h===e){g=!0;e=d;c=f;
|
|
12
|
+
break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;e=d;break}if(h===e){g=!0;e=f;c=d;break}h=h.sibling}g?void 0:k("189")}}c.alternate!==e?k("190"):void 0}3!==c.tag?k("188"):void 0;return c.stateNode.current===c?a:b}function v(){return!0}function w(){return!1}function t(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=
|
|
13
13
|
(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?v:w;this.isPropagationStopped=w;return this}function K(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}function L(a){a instanceof this?void 0:k("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function C(a){a.eventPool=[];a.getPooled=K;a.release=L}function x(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+
|
|
14
|
-
b;return c}function y(a){if(z[a])return z[a];if(!r[a])return a;var b=r[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in D)return z[a]=b[c];return a}function E(a){}function M(a,b){if(!a)return[];a=J(a);if(!a)return[];for(var c=a,e=[];;){if(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
typeof a.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
["
|
|
14
|
+
b;return c}function y(a){if(z[a])return z[a];if(!r[a])return a;var b=r[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in D)return z[a]=b[c];return a}function E(a){}function M(a,b){if(!a)return[];a=J(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function q(a,b){if(a&&
|
|
15
|
+
!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;k("286",b,a)}}function N(a){return function(b,c){l.isValidElement(b)?k("228"):void 0;f.isCompositeComponent(b)?k("229"):void 0;var e=F[a],d=new E;d.target=b;d.type=a.toLowerCase();var m=O(b),g=new t(e,m,d,b);g.persist();u(g,c);e.phasedRegistrationNames?P(g):Q(g);n.unstable_batchedUpdates(function(){R(b);S(g)});T()}}function U(a,
|
|
16
|
+
b){return function(c,e){var d=new E(a);u(d,e);f.isDOMComponent(c)?(c=V(c),d.target=c,G(b,d)):c.tagName&&(d.target=c,G(b,d))}}var u=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==
|
|
17
|
+
typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});t.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||
|
|
18
|
+
Date.now()},defaultPrevented:null,isTrusted:null};t.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;u(e,b.prototype);b.prototype=e;b.prototype.constructor=b;b.Interface=u({},c.Interface,a);b.extend=c.extend;C(b);return b};C(t);var m=!("undefined"===typeof window||!window.document||!window.document.createElement),r={animationend:x("Animation","AnimationEnd"),animationiteration:x("Animation","AnimationIteration"),animationstart:x("Animation",
|
|
19
|
+
"AnimationStart"),transitionend:x("Transition","TransitionEnd")},z={},D={};m&&(D=document.createElement("div").style,"AnimationEvent"in window||(delete r.animationend.animation,delete r.animationiteration.animation,delete r.animationstart.animation),"TransitionEvent"in window||delete r.transitionend.transition);m=y("animationend");var W=y("animationiteration"),X=y("animationstart"),Y=y("transitionend"),V=n.findDOMNode,p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=p[0],F=p[4],P=p[5],
|
|
20
|
+
Q=p[6],R=p[7],T=p[8],G=p[9],S=p[10],f={renderIntoDocument:function(a){var b=document.createElement("div");return n.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===
|
|
21
|
+
typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){q(a,"findAllInRenderedTree");return a?M(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){q(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a,function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||
|
|
22
|
+
(void 0===b?k("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){q(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){q(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&&
|
|
23
|
+
a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){q(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){q(a,"scryRenderedComponentsWithType");return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){q(a,
|
|
24
|
+
"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};(function(){f.Simulate={};var a=void 0;for(a in F)f.Simulate[a]=
|
|
25
|
+
N(a)})();[["abort","abort"],[m,"animationEnd"],[W,"animationIteration"],[X,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit",
|
|
26
|
+
"dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove",
|
|
27
|
+
"mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],
|
|
28
|
+
["touchstart","touchStart"],[Y,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];f.SimulateNative[b]=U(b,a[0])});m=(m={default:f},f)||m;return m.default||m});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-unstable-native-dependencies.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -147,63 +147,24 @@ var warningWithoutStack = function () {};
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
if (typeof console !== 'undefined') {
|
|
150
|
-
var
|
|
150
|
+
var argsWithFormat = args.map(function (item) {
|
|
151
151
|
return '' + item;
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
f = _args$map[5],
|
|
159
|
-
g = _args$map[6],
|
|
160
|
-
h = _args$map[7];
|
|
161
|
-
|
|
162
|
-
var message = 'Warning: ' + format;
|
|
163
|
-
|
|
164
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
165
|
-
// https://github.com/facebook/react/issues/13610
|
|
166
|
-
switch (args.length) {
|
|
167
|
-
case 0:
|
|
168
|
-
console.error(message);
|
|
169
|
-
break;
|
|
170
|
-
case 1:
|
|
171
|
-
console.error(message, a);
|
|
172
|
-
break;
|
|
173
|
-
case 2:
|
|
174
|
-
console.error(message, a, b);
|
|
175
|
-
break;
|
|
176
|
-
case 3:
|
|
177
|
-
console.error(message, a, b, c);
|
|
178
|
-
break;
|
|
179
|
-
case 4:
|
|
180
|
-
console.error(message, a, b, c, d);
|
|
181
|
-
break;
|
|
182
|
-
case 5:
|
|
183
|
-
console.error(message, a, b, c, d, e);
|
|
184
|
-
break;
|
|
185
|
-
case 6:
|
|
186
|
-
console.error(message, a, b, c, d, e, f);
|
|
187
|
-
break;
|
|
188
|
-
case 7:
|
|
189
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
190
|
-
break;
|
|
191
|
-
case 8:
|
|
192
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
193
|
-
break;
|
|
194
|
-
default:
|
|
195
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
196
|
-
}
|
|
152
|
+
});
|
|
153
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
154
|
+
|
|
155
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
156
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
157
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
197
158
|
}
|
|
198
159
|
try {
|
|
199
160
|
// --- Welcome to debugging React ---
|
|
200
161
|
// This error was thrown as a convenience so that you can use this stack
|
|
201
162
|
// to find the callsite that caused this warning to fire.
|
|
202
163
|
var argIndex = 0;
|
|
203
|
-
var
|
|
164
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
204
165
|
return args[argIndex++];
|
|
205
166
|
});
|
|
206
|
-
throw new Error(
|
|
167
|
+
throw new Error(message);
|
|
207
168
|
} catch (x) {}
|
|
208
169
|
};
|
|
209
170
|
}
|
|
@@ -320,7 +281,7 @@ function hasDispatches(event) {
|
|
|
320
281
|
// Before we know whether it is function or class
|
|
321
282
|
// Root of a host tree. Could be nested inside another node.
|
|
322
283
|
// A subtree. Could be an entry point to a different renderer.
|
|
323
|
-
var HostComponent =
|
|
284
|
+
var HostComponent = 5;
|
|
324
285
|
|
|
325
286
|
function getParent(inst) {
|
|
326
287
|
do {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-unstable-native-dependencies.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
'use strict';(function(n,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],p):n.ReactDOMUnstableNativeDependencies=p(n.ReactDOM,n.React)})(this,function(n,p){function Y(a,b,c,f,e,d,g,h){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 k=[c,f,
|
|
10
10
|
e,d,g,h],m=0;a=Error(b.replace(/%s/g,function(){return k[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function x(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)c+="&args[]="+encodeURIComponent(arguments[f+1]);Y(!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 M(a){var b=a._dispatchListeners,c=a._dispatchInstances;
|
|
11
|
-
Array.isArray(b)?x("103"):void 0;a.currentTarget=b?N(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&
|
|
11
|
+
Array.isArray(b)?x("103"):void 0;a.currentTarget=b?N(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function O(a,b,c){for(var f=[];a;)f.push(a),a=t(a);for(a=f.length;0<a--;)b(f[a],"captured",c);for(a=0;a<f.length;a++)b(f[a],"bubbled",c)}function C(a,b){null==b?x("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?
|
|
12
12
|
[a].concat(b):[a,b]}function v(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function P(a,b){var c=a.stateNode;if(!c)return null;var f=Q(c);if(!f)return null;c=f[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(f=!f.disabled)||(a=a.type,f=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!f;break a;
|
|
13
13
|
default:a=!1}if(a)return null;c&&"function"!==typeof c?x("231",b,typeof c):void 0;return c}function R(a,b,c){if(b=P(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=C(c._dispatchListeners,b),c._dispatchInstances=C(c._dispatchInstances,a)}function Z(a){a&&a.dispatchConfig.phasedRegistrationNames&&O(a._targetInst,R,a)}function aa(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;O(b,R,a)}}function y(a){if(a&&a.dispatchConfig.registrationName){var b=
|
|
14
14
|
a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=P(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=C(a._dispatchListeners,c),a._dispatchInstances=C(a._dispatchInstances,b))}}}function D(){return!0}function E(){return!1}function z(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=f:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?
|