react-dom 16.3.1 → 16.3.2
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 +7 -11
- package/cjs/react-dom-server.browser.production.min.js +25 -25
- package/cjs/react-dom-server.node.development.js +8 -12
- package/cjs/react-dom-server.node.production.min.js +27 -27
- package/cjs/react-dom-test-utils.development.js +6 -10
- package/cjs/react-dom-test-utils.production.min.js +25 -25
- package/cjs/react-dom-unstable-native-dependencies.development.js +10 -14
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +27 -27
- package/cjs/react-dom.development.js +97 -67
- package/cjs/react-dom.production.min.js +201 -200
- package/package.json +1 -1
- package/umd/react-dom-server.browser.development.js +11 -15
- package/umd/react-dom-server.browser.production.min.js +24 -23
- package/umd/react-dom-test-utils.development.js +6 -10
- package/umd/react-dom-test-utils.production.min.js +22 -22
- package/umd/react-dom-unstable-native-dependencies.development.js +11 -15
- package/umd/react-dom-unstable-native-dependencies.production.min.js +23 -23
- package/umd/react-dom.development.js +97 -67
- package/umd/react-dom.production.min.js +195 -195
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-server.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -15,17 +15,6 @@
|
|
|
15
15
|
(global.ReactDOMServer = factory(global.React));
|
|
16
16
|
}(this, (function (React) { 'use strict';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* WARNING: DO NOT manually require this module.
|
|
20
|
-
* This is a replacement for `invariant(...)` used by the error code system
|
|
21
|
-
* and will _only_ be required by the corresponding babel pass.
|
|
22
|
-
* It always throws.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
// TODO: this is special because it gets imported during build.
|
|
26
|
-
|
|
27
|
-
var ReactVersion = '16.3.1';
|
|
28
|
-
|
|
29
18
|
/**
|
|
30
19
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
31
20
|
*
|
|
@@ -80,6 +69,13 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
80
69
|
|
|
81
70
|
var invariant_1 = invariant;
|
|
82
71
|
|
|
72
|
+
// Relying on the `invariant()` implementation lets us
|
|
73
|
+
// have preserve the format and params in the www builds.
|
|
74
|
+
|
|
75
|
+
// TODO: this is special because it gets imported during build.
|
|
76
|
+
|
|
77
|
+
var ReactVersion = '16.3.2';
|
|
78
|
+
|
|
83
79
|
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
84
80
|
|
|
85
81
|
var _assign = ReactInternals.assign;
|
|
@@ -1011,7 +1007,7 @@ function assertValidProps(tag, props, getStack) {
|
|
|
1011
1007
|
!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? invariant_1(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
|
|
1012
1008
|
}
|
|
1013
1009
|
{
|
|
1014
|
-
|
|
1010
|
+
!(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning_1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.%s', getStack()) : void 0;
|
|
1015
1011
|
}
|
|
1016
1012
|
!(props.style == null || typeof props.style === 'object') ? invariant_1(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getStack()) : void 0;
|
|
1017
1013
|
}
|
|
@@ -2658,7 +2654,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
2658
2654
|
|
|
2659
2655
|
ReactDOMServerRenderer.prototype.popProvider = function popProvider(provider) {
|
|
2660
2656
|
{
|
|
2661
|
-
|
|
2657
|
+
!(this.providerIndex > -1 && provider === this.providerStack[this.providerIndex]) ? warning_1(false, 'Unexpected pop.') : void 0;
|
|
2662
2658
|
}
|
|
2663
2659
|
this.providerStack[this.providerIndex] = null;
|
|
2664
2660
|
this.providerIndex -= 1;
|
|
@@ -2889,7 +2885,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
2889
2885
|
if (namespace === Namespaces.html) {
|
|
2890
2886
|
// Should this check be gated by parent namespace? Not sure we want to
|
|
2891
2887
|
// allow <SVG> or <mATH>.
|
|
2892
|
-
|
|
2888
|
+
!(tag === element.type) ? warning_1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', element.type) : void 0;
|
|
2893
2889
|
}
|
|
2894
2890
|
}
|
|
2895
2891
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,31 +6,32 @@
|
|
|
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(u,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("react")):"function"===typeof define&&define.amd?define(["react"],t):u.ReactDOMServer=t(u.React)})(this,function(u){function t(a){for(var b=arguments.length-1,d="
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"function"
|
|
16
|
-
|
|
17
|
-
var I={},
|
|
9
|
+
'use strict';(function(u,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("react")):"function"===typeof define&&define.amd?define(["react"],t):u.ReactDOMServer=t(u.React)})(this,function(u){function t(a){for(var b=arguments.length-1,d="http://reactjs.org/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)d+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);Q(!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. ",
|
|
10
|
+
d)}function B(a){return function(){return a}}function R(a){if(E.hasOwnProperty(a))return!0;if(F.hasOwnProperty(a))return!1;if(S.test(a))return E[a]=!0;F[a]=!0;return!1}function T(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function U(a,b,d,c){if(null===b||"undefined"===typeof b||T(a,b,d,c))return!0;if(null!==
|
|
11
|
+
d)switch(d.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 r(a,b,d,c,n){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=n;this.mustUseProperty=d;this.propertyName=a;this.type=b}function z(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=V.exec(a);if(b){var d="",c,n=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b="\x26quot;";break;case 38:b="\x26amp;";break;
|
|
12
|
+
case 39:b="\x26#x27;";break;case 60:b="\x26lt;";break;case 62:b="\x26gt;";break;default:continue}n!==c&&(d+=a.substring(n,c));n=c+1;d+=b}a=n!==c?d+a.substring(n,c):d}return a}function G(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"}}function H(a){return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}function W(a){var b="";u.Children.forEach(a,function(a){null==a||
|
|
13
|
+
"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}function X(a,b){if(a=a.contextTypes){var d={},c;for(c in a)d[c]=b[c];b=d}else b=I;return b}function J(a,b){void 0===a&&t("152",H(b)||"Component")}function Y(a,b){function d(c,d){var n=X(d,b),f=[],h=!1,g={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},e=void 0;if(d.prototype&&d.prototype.isReactComponent){if(e=
|
|
14
|
+
new d(c.props,n,g),"function"===typeof d.getDerivedStateFromProps){var k=d.getDerivedStateFromProps.call(null,c.props,e.state);null!=k&&(e.state=x({},e.state,k))}}else if(e=d(c.props,n,g),null==e||null==e.render){a=e;J(a,d);return}e.props=c.props;e.context=n;e.updater=g;g=e.state;void 0===g&&(e.state=g=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.componentWillMount(),
|
|
15
|
+
"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),f.length){g=f;var p=h;f=null;h=!1;if(p&&1===g.length)e.state=g[0];else{k=p?g[0]:e.state;var m=!0;for(p=p?1:0;p<g.length;p++){var q=g[p];q="function"===typeof q?q.call(e,k,c.props,n):q;null!=q&&(m?(m=!1,k=x({},k,q)):x(k,q))}e.state=k}}else f=null;a=e.render();J(a,d);c=void 0;if("function"===typeof e.getChildContext&&(n=d.childContextTypes,"object"===typeof n)){c=e.getChildContext();
|
|
16
|
+
for(var v in c)v in n?void 0:t("108",H(d)||"Unknown",v)}c&&(b=x({},b,c))}for(;u.isValidElement(a);){var c=a,n=c.type;if("function"!==typeof n)break;d(c,n)}return{child:a,context:b}}var Q=function(a,b,d,c,n,f,h,l){if(!a){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=[d,c,n,f,h,l],p=0;a=Error(b.replace(/%s/g,function(){return k[p++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;
|
|
17
|
+
}},x=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,k=function(){};k.thatReturns=B;k.thatReturnsFalse=B(!1);k.thatReturnsTrue=B(!0);k.thatReturnsNull=B(null);k.thatReturnsThis=function(){return this};k.thatReturnsArgument=function(a){return a};var I={},Z=/([A-Z])/g,aa=/^ms-/,w="function"===typeof Symbol&&Symbol["for"],ba=w?Symbol["for"]("react.call"):60104,ca=w?Symbol["for"]("react.return"):60105,da=w?Symbol["for"]("react.portal"):60106,K=w?Symbol["for"]("react.fragment"):60107,ea=w?
|
|
18
|
+
Symbol["for"]("react.strict_mode"):60108,L=w?Symbol["for"]("react.provider"):60109,fa=w?Symbol["for"]("react.context"):60110,ha=w?Symbol["for"]("react.async_mode"):60111,ia=w?Symbol["for"]("react.forward_ref"):60112,S=/^[: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]*$/,
|
|
18
19
|
F={},E={},p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){p[a]=new r(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];p[b]=new r(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){p[a]=new r(a,2,!1,a.toLowerCase(),null)});["autoReverse",
|
|
19
20
|
"externalResourcesRequired","preserveAlpha"].forEach(function(a){p[a]=new r(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){p[a]=new r(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){p[a]=new r(a,3,!0,a.toLowerCase(),null)});["capture","download"].forEach(function(a){p[a]=
|
|
20
|
-
new r(a,4,!1,a.toLowerCase(),null)});["cols","rows","size","span"].forEach(function(a){p[a]=new r(a,6,!1,a.toLowerCase(),null)});["rowSpan","start"].forEach(function(a){p[a]=new r(a,5,!1,a.toLowerCase(),null)});var C=/[
|
|
21
|
-
a.replace(C,D);p[b]=new r(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(C,D);p[b]=new r(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(C,D);p[b]=new r(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});p.tabIndex=new r("tabIndex",1,!1,"tabindex",null);var
|
|
22
|
-
keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},
|
|
23
|
-
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},
|
|
24
|
-
{};return function(d){b.hasOwnProperty(d)||(b[d]=a.call(this,d));return b[d]}}(function(a){return a.replace(
|
|
21
|
+
new r(a,4,!1,a.toLowerCase(),null)});["cols","rows","size","span"].forEach(function(a){p[a]=new r(a,6,!1,a.toLowerCase(),null)});["rowSpan","start"].forEach(function(a){p[a]=new r(a,5,!1,a.toLowerCase(),null)});var C=/[\-:]([a-z])/g,D=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=
|
|
22
|
+
a.replace(C,D);p[b]=new r(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(C,D);p[b]=new r(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(C,D);p[b]=new r(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});p.tabIndex=new r("tabIndex",1,!1,"tabindex",null);var V=/["'&<>]/,M={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,
|
|
23
|
+
keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ja=x({menuitem:!0},M),A={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,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,
|
|
24
|
+
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},ka=["Webkit","ms","Moz","O"];Object.keys(A).forEach(function(a){ka.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);A[b]=A[a]})});var y=u.Children.toArray,N=k.thatReturns("");k.thatReturns("");var la={listing:!0,pre:!0,textarea:!0},ma=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,O={},na=function(a){var b=
|
|
25
|
+
{};return function(d){b.hasOwnProperty(d)||(b[d]=a.call(this,d));return b[d]}}(function(a){return a.replace(Z,"-$1").toLowerCase().replace(aa,"-ms-")}),oa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},P=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");u.isValidElement(b)?b.type!==K?b=[b]:(b=b.props.children,b=u.isValidElement(b)?[b]:y(b)):b=y(b);this.stack=[{type:null,domNamespace:"http://www.w3.org/1999/xhtml",
|
|
25
26
|
children:b,childIndex:0,context:I,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.providerStack=[];this.providerIndex=-1}a.prototype.pushProvider=function(a){this.providerIndex+=1;this.providerStack[this.providerIndex]=a;a.type._context._currentValue=a.props.value};a.prototype.popProvider=function(a){this.providerStack[this.providerIndex]=null;--this.providerIndex;a=a.type._context;a._currentValue=0>this.providerIndex?a._defaultValue:
|
|
26
27
|
this.providerStack[this.providerIndex].props.value};a.prototype.read=function(a){if(this.exhausted)return null;for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=!0;break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var n=c.footer;b+=n;""!==n&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.type?this.currentSelectValue=null:null!=c.type&&null!=c.type.type&&c.type.type.$$typeof===L&&this.popProvider(c.type)}else n=c.children[c.childIndex++],
|
|
27
|
-
b+=this.render(n,c.context,c.domNamespace)}return b};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return z(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+z(c);this.previousWasTextNode=!0;return z(c)}d=
|
|
28
|
-
domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case
|
|
29
|
-
y(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case
|
|
28
|
+
b+=this.render(n,c.context,c.domNamespace)}return b};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return z(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+z(c);this.previousWasTextNode=!0;return z(c)}d=Y(a,d);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!u.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;b===da?t("257"):void 0;t("258",b.toString())}a=y(a);this.stack.push({type:null,
|
|
29
|
+
domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case ea:case ha:case K:return a=y(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case ba:case ca:t("259")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case ia:return a=y(b.render(a.props,a.ref)),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case L:return b=
|
|
30
|
+
y(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case fa:return b=y(a.props.children(a.type._currentValue)),this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""}),""}t("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===c&&G(b);O.hasOwnProperty(b)||(ma.test(b)?void 0:t("65",b),O[b]=!0);var f=a.props;if("input"===
|
|
30
31
|
b)f=x({type:void 0},f,{defaultChecked:void 0,defaultValue:void 0,value:null!=f.value?f.value:f.defaultValue,checked:null!=f.checked?f.checked:f.defaultChecked});else if("textarea"===b){var h=f.value;if(null==h){h=f.defaultValue;var l=f.children;null!=l&&(null!=h?t("92"):void 0,Array.isArray(l)&&(1>=l.length?void 0:t("93"),l=l[0]),h=""+l);null==h&&(h="")}f=x({},f,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=f.value?f.value:f.defaultValue,f=x({},f,{value:void 0});
|
|
31
|
-
else if("option"===b){l=this.currentSelectValue;var k=
|
|
32
|
-
void 0:t("61")),null!=h.style&&"object"!==typeof h.style?t("62",N()):void 0;h=f;l=this.makeStaticMarkup;k=1===this.stack.length;r="\x3c"+a.type;for(v in h)if(h.hasOwnProperty(v)){var e=h[v];if(null!=e){if("style"===v){g=void 0;var w="",u="";for(g in e)if(e.hasOwnProperty(g)){var m=0===g.indexOf("--"),q=e[g];null!=q&&(w+=u+
|
|
33
|
-
-1===m.indexOf("-"))m="string"===typeof q.is;else switch(m){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":m=!1;break b;default:m=!0}if(m)
|
|
34
|
-
null!==e?(m=e.attributeName,e=e.type,g=3===e||4===e&&!0===g?m+'\x3d""':m+"\x3d"+('"'+z(g)+'"')):g=m+"\x3d"+('"'+z(g)+'"')}g&&(r+=" "+g)}}l||k&&(r+=' data-reactroot\x3d""');var v=r;h="";M.hasOwnProperty(b)?v+="/\x3e":(v+="\x3e",h="\x3c/"+a.type+"\x3e");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=z(l);break a}l=null}null!=l?(f=[],
|
|
35
|
-
c=null==c||"http://www.w3.org/1999/xhtml"===c?G(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:f,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return v};return a}();k={renderToString:function(a){return(new P(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new P(a,!0)).read(Infinity)},renderToNodeStream:function(){t("207")},renderToStaticNodeStream:function(){t("208")},version:"16.3.
|
|
32
|
+
else if("option"===b){l=this.currentSelectValue;var k=W(f.children);if(null!=l){var r=null!=f.value?f.value+"":k;h=!1;if(Array.isArray(l))for(var g=0;g<l.length;g++){if(""+l[g]===r){h=!0;break}}else h=""+l===r;f=x({selected:void 0,children:void 0},f,{selected:h,children:k})}}if(h=f)ja[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?t("137",b,N()):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?t("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?
|
|
33
|
+
void 0:t("61")),null!=h.style&&"object"!==typeof h.style?t("62",N()):void 0;h=f;l=this.makeStaticMarkup;k=1===this.stack.length;r="\x3c"+a.type;for(v in h)if(h.hasOwnProperty(v)){var e=h[v];if(null!=e){if("style"===v){g=void 0;var w="",u="";for(g in e)if(e.hasOwnProperty(g)){var m=0===g.indexOf("--"),q=e[g];null!=q&&(w+=u+na(g)+":",u=g,m=null==q||"boolean"===typeof q||""===q?"":m||"number"!==typeof q||0===q||A.hasOwnProperty(u)&&A[u]?(""+q).trim():q+"px",w+=m,u=";")}e=w||null}g=null;b:if(m=b,q=h,
|
|
34
|
+
-1===m.indexOf("-"))m="string"===typeof q.is;else switch(m){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":m=!1;break b;default:m=!0}if(m)oa.hasOwnProperty(v)||(g=v,g=R(g)&&null!=e?g+"\x3d"+('"'+z(e)+'"'):"");else{m=v;g=e;e=p.hasOwnProperty(m)?p[m]:null;if(q="style"!==m)q=null!==e?0===e.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==m[1]&&"N"!==m[1]?!1:!0;q||U(m,g,e,!1)?g="":
|
|
35
|
+
null!==e?(m=e.attributeName,e=e.type,g=3===e||4===e&&!0===g?m+'\x3d""':m+"\x3d"+('"'+z(g)+'"')):g=m+"\x3d"+('"'+z(g)+'"')}g&&(r+=" "+g)}}l||k&&(r+=' data-reactroot\x3d""');var v=r;h="";M.hasOwnProperty(b)?v+="/\x3e":(v+="\x3e",h="\x3c/"+a.type+"\x3e");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=z(l);break a}l=null}null!=l?(f=[],la[b]&&"\n"===l.charAt(0)&&(v+="\n"),v+=l):f=y(f.children);a=a.type;
|
|
36
|
+
c=null==c||"http://www.w3.org/1999/xhtml"===c?G(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:f,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return v};return a}();k={renderToString:function(a){return(new P(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new P(a,!0)).read(Infinity)},renderToNodeStream:function(){t("207")},renderToStaticNodeStream:function(){t("208")},version:"16.3.2"};
|
|
36
37
|
k=(w=Object.freeze({default:k}))&&k||w;return k["default"]?k["default"]:k});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -19,13 +19,6 @@ var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
|
19
19
|
|
|
20
20
|
var _assign = ReactInternals.assign;
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* WARNING: DO NOT manually require this module.
|
|
24
|
-
* This is a replacement for `invariant(...)` used by the error code system
|
|
25
|
-
* and will _only_ be required by the corresponding babel pass.
|
|
26
|
-
* It always throws.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
22
|
/**
|
|
30
23
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
31
24
|
*
|
|
@@ -80,6 +73,9 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
80
73
|
|
|
81
74
|
var invariant_1 = invariant;
|
|
82
75
|
|
|
76
|
+
// Relying on the `invariant()` implementation lets us
|
|
77
|
+
// have preserve the format and params in the www builds.
|
|
78
|
+
|
|
83
79
|
/**
|
|
84
80
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
85
81
|
*
|
|
@@ -590,7 +586,7 @@ SyntheticEvent.extend = function (Interface) {
|
|
|
590
586
|
return new Proxy(constructor.apply(that, args), {
|
|
591
587
|
set: function (target, prop, value) {
|
|
592
588
|
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
593
|
-
|
|
589
|
+
!(didWarnForAddedNewProperty || target.isPersistent()) ? warning_1(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
594
590
|
didWarnForAddedNewProperty = true;
|
|
595
591
|
}
|
|
596
592
|
target[prop] = value;
|
|
@@ -635,7 +631,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
|
|
|
635
631
|
|
|
636
632
|
function warn(action, result) {
|
|
637
633
|
var warningCondition = false;
|
|
638
|
-
warning_1(
|
|
634
|
+
!warningCondition ? warning_1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
|
|
639
635
|
}
|
|
640
636
|
}
|
|
641
637
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,24 +6,24 @@
|
|
|
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(m
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
b,d
|
|
17
|
-
eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};t(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=n.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
|
|
18
|
-
|
|
19
|
-
C(b);return b};C(r);
|
|
20
|
-
window||delete
|
|
21
|
-
topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoad:"load",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",
|
|
22
|
-
topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:x("transitionend"),topWheel:"wheel"};var
|
|
23
|
-
b){return
|
|
24
|
-
void 0:k("10");return
|
|
25
|
-
a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){return
|
|
26
|
-
b)})},findRenderedComponentWithType:function(a,b){a=
|
|
27
|
-
|
|
28
|
-
topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",
|
|
29
|
-
|
|
9
|
+
'use strict';(function(l,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],m):l.ReactTestUtils=m(l.React,l.ReactDOM)})(this,function(l,m){function k(a){for(var b=arguments.length-1,c="http://reactjs.org/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);J(!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. ",
|
|
10
|
+
c)}function v(a){return function(){return a}}function A(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;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 K(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,d=b;;){var g=c["return"],f=g?g.alternate:null;if(!g||!f)break;if(g.child===f.child){for(var h=g.child;h;){if(h===c)return B(g),
|
|
11
|
+
a;if(h===d)return B(g),b;h=h.sibling}k("188")}if(c["return"]!==d["return"])c=g,d=f;else{h=!1;for(var e=g.child;e;){if(e===c){h=!0;c=g;d=f;break}if(e===d){h=!0;d=g;c=f;break}e=e.sibling}if(!h){for(e=f.child;e;){if(e===c){h=!0;c=f;d=g;break}if(e===d){h=!0;d=f;c=g;break}e=e.sibling}h?void 0:k("189")}}c.alternate!==d?k("190"):void 0}3!==c.tag?k("188"):void 0;return c.stateNode.current===c?a:b}function r(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;
|
|
12
|
+
for(var g in a)a.hasOwnProperty(g)&&((b=a[g])?this[g]=b(c):"target"===g?this.target=d:this[g]=c[g]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?n.thatReturnsTrue:n.thatReturnsFalse;this.isPropagationStopped=n.thatReturnsFalse;return this}function L(a,b,c,d){if(this.eventPool.length){var g=this.eventPool.pop();this.call(g,a,b,c,d);return g}return new this(a,b,c,d)}function M(a){a instanceof this?void 0:k("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}
|
|
13
|
+
function C(a){a.eventPool=[];a.getPooled=L;a.release=M}function w(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;c["ms"+a]="MS"+b;c["O"+a]="o"+b.toLowerCase();return c}function x(a){if(y[a])return y[a];if(!p[a])return a;var b=p[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in D)return y[a]=b[c];return a}function E(a){}function N(a,b){if(!a)return[];a=K(a);if(!a)return[];for(var c=a,d=[];;){if(5===c.tag||6===c.tag||2===c.tag||1===c.tag){var g=c.stateNode;b(g)&&
|
|
14
|
+
d.push(g)}if(c.child)c.child["return"]=c,c=c.child;else{if(c===a)return d;for(;!c.sibling;){if(!c["return"]||c["return"]===a)return d;c=c["return"]}c.sibling["return"]=c["return"];c=c.sibling}}}function O(a){return function(b,c){l.isValidElement(b)?k("228"):void 0;f.isCompositeComponent(b)?k("229"):void 0;var d=F.eventNameDispatchConfigs[a],g=new E;g.target=b;g.type=a.toLowerCase();var e=P.getInstanceFromNode(b),h=new r(d,e,g,b);h.persist();t(h,c);d.phasedRegistrationNames?G.accumulateTwoPhaseDispatches(h):
|
|
15
|
+
G.accumulateDirectDispatches(h);m.unstable_batchedUpdates(function(){H.enqueueStateRestore(b);u.runEventsInBatch(h,!0)});H.restoreStateIfNeeded()}}function z(){f.Simulate={};var a=void 0;for(a in F.eventNameDispatchConfigs)f.Simulate[a]=O(a)}function Q(a){return function(b,c){var d=new E(a);t(d,c);f.isDOMComponent(b)?f.simulateNativeEventOnDOMComponent(a,b,d):b.tagName&&f.simulateNativeEventOnNode(a,b,d)}}var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,J=function(a,b,c,d,g,e,f,k){if(!a){if(void 0===
|
|
16
|
+
b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[c,d,g,e,f,k],l=0;a=Error(b.replace(/%s/g,function(){return h[l++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}},e=function(){};e.thatReturns=v;e.thatReturnsFalse=v(!1);e.thatReturnsTrue=v(!0);e.thatReturnsNull=v(null);e.thatReturnsThis=function(){return this};e.thatReturnsArgument=function(a){return a};var n=e,I="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");
|
|
17
|
+
e={type:null,target:null,currentTarget:n.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};t(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=n.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
|
|
18
|
+
"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=n.thatReturnsTrue)},persist:function(){this.isPersistent=n.thatReturnsTrue},isPersistent:n.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<I.length;a++)this[I[a]]=null}});r.Interface=e;r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,d=function(){};d.prototype=c.prototype;d=new d;t(d,b.prototype);b.prototype=d;b.prototype.constructor=
|
|
19
|
+
b;b.Interface=t({},c.Interface,a);b.extend=c.extend;C(b);return b};C(r);e=!("undefined"===typeof window||!window.document||!window.document.createElement);var p={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation","AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},y={},D={};e&&(D=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation,delete p.animationiteration.animation,
|
|
20
|
+
delete p.animationstart.animation),"TransitionEvent"in window||delete p.transitionend.transition);e={topAnimationEnd:x("animationend"),topAnimationIteration:x("animationiteration"),topAnimationStart:x("animationstart"),topBlur:"blur",topCancel:"cancel",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",
|
|
21
|
+
topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoad:"load",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",
|
|
22
|
+
topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:x("transitionend"),topWheel:"wheel"};var R=m.findDOMNode,q=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=q.EventPluginHub,F=q.EventPluginRegistry,G=q.EventPropagators,H=q.ReactControlledComponent,P=q.ReactDOMComponentTree,S=q.ReactDOMEventListener,f={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},
|
|
23
|
+
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"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){if(!a)return[];
|
|
24
|
+
f.isCompositeComponent(a)?void 0:k("10");return N(a._reactInternalFiber,b)},scryRenderedDOMComponentsWithClass:function(a,b){return f.findAllInRenderedTree(a,function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var e=c.split(/\s+/);Array.isArray(b)||(void 0===b?k("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==e.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){a=f.scryRenderedDOMComponentsWithClass(a,
|
|
25
|
+
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){return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){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,
|
|
26
|
+
b){return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){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},simulateNativeEventOnNode:function(a,
|
|
27
|
+
b,c){c.target=b;S.dispatchEvent(a,c)},simulateNativeEventOnDOMComponent:function(a,b,c){f.simulateNativeEventOnNode(a,R(b),c)},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}},T=u.injection.injectEventPluginOrder;u.injection.injectEventPluginOrder=function(){T.apply(this,arguments);z()};var U=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){U.apply(this,arguments);z()};z();[].concat(Object.keys(e),Object.keys({topAbort:"abort",
|
|
28
|
+
topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",
|
|
29
|
+
topWaiting:"waiting"})).forEach(function(a){var b=0===a.indexOf("top")?a.charAt(3).toLowerCase()+a.substr(4):a;f.SimulateNative[b]=Q(a)});e=(e=Object.freeze({default:f}))&&f||e;return e["default"]?e["default"]:e});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-unstable-native-dependencies.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -15,13 +15,6 @@
|
|
|
15
15
|
(global.ReactDOMUnstableNativeDependencies = factory(global.ReactDOM,global.React));
|
|
16
16
|
}(this, (function (ReactDOM,React) { 'use strict';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* WARNING: DO NOT manually require this module.
|
|
20
|
-
* This is a replacement for `invariant(...)` used by the error code system
|
|
21
|
-
* and will _only_ be required by the corresponding babel pass.
|
|
22
|
-
* It always throws.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
18
|
/**
|
|
26
19
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
27
20
|
*
|
|
@@ -76,6 +69,9 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
76
69
|
|
|
77
70
|
var invariant_1 = invariant;
|
|
78
71
|
|
|
72
|
+
// Relying on the `invariant()` implementation lets us
|
|
73
|
+
// have preserve the format and params in the www builds.
|
|
74
|
+
|
|
79
75
|
{
|
|
80
76
|
// In DEV mode, we swap out invokeGuardedCallback for a special version
|
|
81
77
|
// that plays more nicely with the browser's DevTools. The idea is to preserve
|
|
@@ -214,7 +210,7 @@ var injection = {
|
|
|
214
210
|
getNodeFromInstance = Injected.getNodeFromInstance;
|
|
215
211
|
|
|
216
212
|
{
|
|
217
|
-
|
|
213
|
+
!(getNodeFromInstance && getInstanceFromNode) ? warning_1(false, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
|
|
218
214
|
}
|
|
219
215
|
}
|
|
220
216
|
};
|
|
@@ -242,7 +238,7 @@ var validateEventDispatches = void 0;
|
|
|
242
238
|
var instancesIsArr = Array.isArray(dispatchInstances);
|
|
243
239
|
var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
|
|
244
240
|
|
|
245
|
-
|
|
241
|
+
!(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning_1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
|
|
246
242
|
};
|
|
247
243
|
}
|
|
248
244
|
|
|
@@ -648,7 +644,7 @@ function listenerAtPhase(inst, event, propagationPhase) {
|
|
|
648
644
|
*/
|
|
649
645
|
function accumulateDirectionalDispatches(inst, phase, event) {
|
|
650
646
|
{
|
|
651
|
-
warning_1(
|
|
647
|
+
!inst ? warning_1(false, 'Dispatching inst must not be null') : void 0;
|
|
652
648
|
}
|
|
653
649
|
var listener = listenerAtPhase(inst, event, phase);
|
|
654
650
|
if (listener) {
|
|
@@ -930,7 +926,7 @@ SyntheticEvent.extend = function (Interface) {
|
|
|
930
926
|
return new Proxy(constructor.apply(that, args), {
|
|
931
927
|
set: function (target, prop, value) {
|
|
932
928
|
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
933
|
-
|
|
929
|
+
!(didWarnForAddedNewProperty || target.isPersistent()) ? warning_1(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
934
930
|
didWarnForAddedNewProperty = true;
|
|
935
931
|
}
|
|
936
932
|
target[prop] = value;
|
|
@@ -975,7 +971,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
|
|
|
975
971
|
|
|
976
972
|
function warn(action, result) {
|
|
977
973
|
var warningCondition = false;
|
|
978
|
-
warning_1(
|
|
974
|
+
!warningCondition ? warning_1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
|
|
979
975
|
}
|
|
980
976
|
}
|
|
981
977
|
|
|
@@ -1080,7 +1076,7 @@ function getTouchIdentifier(_ref) {
|
|
|
1080
1076
|
|
|
1081
1077
|
!(identifier != null) ? invariant_1(false, 'Touch object is missing identifier.') : void 0;
|
|
1082
1078
|
{
|
|
1083
|
-
|
|
1079
|
+
!(identifier <= MAX_TOUCH_BANK) ? warning_1(false, 'Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK) : void 0;
|
|
1084
1080
|
}
|
|
1085
1081
|
return identifier;
|
|
1086
1082
|
}
|
|
@@ -1168,7 +1164,7 @@ var ResponderTouchHistoryStore = {
|
|
|
1168
1164
|
}
|
|
1169
1165
|
{
|
|
1170
1166
|
var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
|
|
1171
|
-
|
|
1167
|
+
!(activeRecord != null && activeRecord.touchActive) ? warning_1(false, 'Cannot find single active touch.') : void 0;
|
|
1172
1168
|
}
|
|
1173
1169
|
}
|
|
1174
1170
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.3.
|
|
1
|
+
/** @license React v16.3.2
|
|
2
2
|
* react-dom-unstable-native-dependencies.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,25 +6,25 @@
|
|
|
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(B,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],n):B.ReactDOMUnstableNativeDependencies=n(B.ReactDOM,B.React)})(this,function(B,n){function z(a){for(var b=arguments.length-1,c="
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};L(D.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.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
|
|
21
|
-
|
|
22
|
-
T(b);return b};T(D);var x=D.extend({touchHistory:function(a){return null}}),p=[],q={touchBank:p,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},r={recordTouchTrack:function(a,b){if(H(a))b.changedTouches.forEach(
|
|
23
|
-
0;a<p.length;a++)if(b=p[a],null!=b&&b.touchActive){q.indexOfSingleActiveTouch=a;break}},touchHistory:q},
|
|
24
|
-
captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},
|
|
25
|
-
responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},y={_getResponder:function(){return
|
|
26
|
-
"topSelectionChange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(
|
|
27
|
-
break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==
|
|
28
|
-
h]),M(e,g)):(e=x.getPooled(m.responderReject,e,c,f),e.touchHistory=r.touchHistory,u(e,A),d=E(d,e))):(d=E(d,b),M(e,g)),e=d):e=null}else e=null;d=
|
|
29
|
-
|
|
30
|
-
a}}};n=function(a){R=a.getFiberCurrentPropsFromNode;W=a.getInstanceFromNode;O=a.getNodeFromInstance};n(B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);return Object.freeze({injectComponentTree:n,ResponderEventPlugin:y,ResponderTouchHistoryStore:r})});
|
|
9
|
+
'use strict';(function(B,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],n):B.ReactDOMUnstableNativeDependencies=n(B.ReactDOM,B.React)})(this,function(B,n){function z(a){for(var b=arguments.length-1,c="http://reactjs.org/docs/error-decoder.html?invariant\x3d"+a,f=0;f<b;f++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[f+1]);Z(!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. ",
|
|
10
|
+
c)}function F(a){return function(){return a}}function G(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a}function H(a){return"topMouseMove"===a||"topTouchMove"===a}function C(a){return"topMouseDown"===a||"topTouchStart"===a}function N(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?z("103"):void 0;a.currentTarget=b?O(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
|
+
5!==a.tag);return a?a:null}function P(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 I(a,b){null==b?z("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)?[a].concat(b):[a,b]}function u(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function Q(a,b){var c=a.stateNode;if(!c)return null;var f=R(c);if(!f)return null;c=
|
|
12
|
+
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;default:a=!1}if(a)return null;c&&"function"!==typeof c?z("231",b,typeof c):void 0;return c}function S(a,b,c){if(b=Q(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=
|
|
13
|
+
I(c._dispatchListeners,b),c._dispatchInstances=I(c._dispatchInstances,a)}function aa(a){a&&a.dispatchConfig.phasedRegistrationNames&&P(a._targetInst,S,a)}function ba(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;P(b,S,a)}}function A(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=Q(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=I(a._dispatchListeners,c),a._dispatchInstances=I(a._dispatchInstances,
|
|
14
|
+
b))}}}function D(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?c.defaultPrevented:!1===c.returnValue)?v.thatReturnsTrue:v.thatReturnsFalse;this.isPropagationStopped=v.thatReturnsFalse;return this}function ca(a,b,c,f){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,f);return e}return new this(a,
|
|
15
|
+
b,c,f)}function da(a){a instanceof this?void 0:z("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function T(a){a.eventPool=[];a.getPooled=ca;a.release=da}function l(a){return a.timeStamp||a.timestamp}function K(a){a=a.identifier;null==a?z("138"):void 0;return a}function ea(a){var b=K(a),c=p[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=l(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=l(a),c.previousPageX=a.pageX,c.previousPageY=
|
|
16
|
+
a.pageY,c.previousTimeStamp=l(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:l(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:l(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:l(a)},p[b]=c);q.mostRecentTimeStamp=l(a)}function fa(a){var b=p[K(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=
|
|
17
|
+
l(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",U(a),V())}function ha(a){var b=p[K(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=l(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",U(a),V())}function U(a){return JSON.stringify({identifier:a.identifier,
|
|
18
|
+
pageX:a.pageX,pageY:a.pageY,timestamp:l(a)})}function V(){var a=JSON.stringify(p.slice(0,20));20<p.length&&(a+=" (original size: "+p.length+")");return a}function E(a,b){null==b?z("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var Z=function(a,b,c,f,e,d,g,h){if(!a){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,e,d,g,h],m=0;a=Error(b.replace(/%s/g,
|
|
19
|
+
function(){return k[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}},w=function(){};w.thatReturns=F;w.thatReturnsFalse=F(!1);w.thatReturnsTrue=F(!0);w.thatReturnsNull=F(null);w.thatReturnsThis=function(){return this};w.thatReturnsArgument=function(a){return a};var v=w,R=null,W=null,O=null,L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,X="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");n=
|
|
20
|
+
{type:null,target:null,currentTarget:v.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};L(D.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.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():
|
|
21
|
+
"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v.thatReturnsTrue)},persist:function(){this.isPersistent=v.thatReturnsTrue},isPersistent:v.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<X.length;a++)this[X[a]]=null}});D.Interface=n;D.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;L(f,b.prototype);b.prototype=f;b.prototype.constructor=
|
|
22
|
+
b;b.Interface=L({},c.Interface,a);b.extend=c.extend;T(b);return b};T(D);var x=D.extend({touchHistory:function(a){return null}}),p=[],q={touchBank:p,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},r={recordTouchTrack:function(a,b){if(H(a))b.changedTouches.forEach(fa);else if(C(a))b.changedTouches.forEach(ea),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches&&(q.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(ha),q.numberActiveTouches=
|
|
23
|
+
b.touches.length,1===q.numberActiveTouches))for(a=0;a<p.length;a++)if(b=p[a],null!=b&&b.touchActive){q.indexOfSingleActiveTouch=a;break}},touchHistory:q},k=null,J=0,Y=0,M=function(a,b){var c=k;k=a;if(null!==y.GlobalResponderHandler)y.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}},
|
|
24
|
+
selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},
|
|
25
|
+
responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},y={_getResponder:function(){return k},eventTypes:m,extractEvents:function(a,b,c,f){if(C(a))J+=1;else if(G(a))if(0<=J)--J;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;r.recordTouchTrack(a,c);if(b&&("topScroll"===
|
|
26
|
+
a&&!c.responderIgnoreScroll||0<J&&"topSelectionChange"===a||C(a)||H(a))){var e=C(a)?m.startShouldSetResponder:H(a)?m.moveShouldSetResponder:"topSelectionChange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(k)b:{var d=k;for(var g=0,h=d;h;h=t(h))g++;h=0;for(var l=b;l;l=t(l))h++;for(;0<g-h;)d=t(d),g--;for(;0<h-g;)b=t(b),h--;for(;g--;){if(d===b||d===b.alternate)break b;d=t(d);b=t(b)}d=null}else d=b;b=d===k;d=x.getPooled(e,d,c,f);d.touchHistory=r.touchHistory;b?u(d,ba):u(d,aa);
|
|
27
|
+
b:{e=d._dispatchListeners;b=d._dispatchInstances;if(Array.isArray(e))for(g=0;g<e.length&&!d.isPropagationStopped();g++){if(e[g](d,b[g])){e=b[g];break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==k?(d=void 0,b=x.getPooled(m.responderGrant,e,c,f),b.touchHistory=r.touchHistory,u(b,A),g=!0===N(b),k?(h=x.getPooled(m.responderTerminationRequest,k,c,f),h.touchHistory=r.touchHistory,u(h,A),l=!h._dispatchListeners||
|
|
28
|
+
N(h),h.isPersistent()||h.constructor.release(h),l?(h=x.getPooled(m.responderTerminate,k,c,f),h.touchHistory=r.touchHistory,u(h,A),d=E(d,[b,h]),M(e,g)):(e=x.getPooled(m.responderReject,e,c,f),e.touchHistory=r.touchHistory,u(e,A),d=E(d,e))):(d=E(d,b),M(e,g)),e=d):e=null}else e=null;d=k&&C(a);b=k&&H(a);g=k&&G(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd:null)d=x.getPooled(d,k,c,f),d.touchHistory=r.touchHistory,u(d,A),e=E(e,d);d=k&&"topTouchCancel"===a;if(a=k&&!d&&G(a))a:{if((a=c.touches)&&
|
|
29
|
+
0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g){h=W(g);b:{for(g=k;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?m.responderTerminate:a?m.responderRelease:null)c=x.getPooled(a,k,c,f),c.touchHistory=r.touchHistory,u(c,A),e=E(e,c),M(null);c=r.touchHistory.numberActiveTouches;if(y.GlobalInteractionHandler&&c!==Y)y.GlobalInteractionHandler.onChange(c);Y=c;return e},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(a){y.GlobalResponderHandler=
|
|
30
|
+
a},injectGlobalInteractionHandler:function(a){y.GlobalInteractionHandler=a}}};n=function(a){R=a.getFiberCurrentPropsFromNode;W=a.getInstanceFromNode;O=a.getNodeFromInstance};n(B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);return Object.freeze({injectComponentTree:n,ResponderEventPlugin:y,ResponderTouchHistoryStore:r})});
|