react-dom 16.4.0-alpha.3174632 → 16.4.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.
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.3174632
1
+ /** @license React v16.4.2
2
2
  * react-dom-test-utils.production.min.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -7,28 +7,27 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- 'use strict';var f=require("object-assign"),h=require("react"),m=require("react-dom"),n=require("fbjs/lib/emptyFunction"),p=require("fbjs/lib/ExecutionEnvironment");
11
- function q(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
12
- function r(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 t(a){2!==r(a)?q("188"):void 0}
13
- function u(a){var b=a.alternate;if(!b)return b=r(a),3===b?q("188"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c["return"],l=e?e.alternate:null;if(!e||!l)break;if(e.child===l.child){for(var g=e.child;g;){if(g===c)return t(e),a;if(g===d)return t(e),b;g=g.sibling}q("188")}if(c["return"]!==d["return"])c=e,d=l;else{g=!1;for(var k=e.child;k;){if(k===c){g=!0;c=e;d=l;break}if(k===d){g=!0;d=e;c=l;break}k=k.sibling}if(!g){for(k=l.child;k;){if(k===c){g=!0;c=l;d=e;break}if(k===d){g=!0;d=l;c=e;break}k=k.sibling}g?
14
- void 0:q("189")}}c.alternate!==d?q("190"):void 0}3!==c.tag?q("188"):void 0;return c.stateNode.current===c?a:b}var v="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),w={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};
15
- function x(a,b,c,d){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=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?n.thatReturnsTrue:n.thatReturnsFalse;this.isPropagationStopped=n.thatReturnsFalse;return this}
16
- f(x.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():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=n.thatReturnsTrue)},persist:function(){this.isPersistent=n.thatReturnsTrue},isPersistent:n.thatReturnsFalse,
17
- destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<v.length;a++)this[v[a]]=null}});x.Interface=w;x.extend=function(a){function b(){}function c(){return d.apply(this,arguments)}var d=this;b.prototype=d.prototype;var e=new b;f(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=f({},d.Interface,a);c.extend=d.extend;y(c);return c};y(x);
18
- function z(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function A(a){a instanceof this?void 0:q("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}function B(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}
19
- var C={animationend:B("Animation","AnimationEnd"),animationiteration:B("Animation","AnimationIteration"),animationstart:B("Animation","AnimationStart"),transitionend:B("Transition","TransitionEnd")},D={},E={};p.canUseDOM&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.animationend.animation,delete C.animationiteration.animation,delete C.animationstart.animation),"TransitionEvent"in window||delete C.transitionend.transition);
20
- function F(a){if(D[a])return D[a];if(!C[a])return a;var b=C[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in E)return D[a]=b[c];return a}
21
- var G={topAnimationEnd:F("animationend"),topAnimationIteration:F("animationiteration"),topAnimationStart:F("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",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",
22
- 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",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",
23
- topTouchStart:"touchstart",topTransitionEnd:F("transitionend"),topWheel:"wheel"},H=m.findDOMNode,I=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,J=I.EventPluginHub,K=I.EventPluginRegistry,L=I.EventPropagators,M=I.ReactControlledComponent,N=I.ReactDOMComponentTree,O=I.ReactDOMEventListener;function P(){}
24
- function Q(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,d=[];;){if(5===c.tag||6===c.tag||2===c.tag||1===c.tag){var e=c.stateNode;b(e)&&d.push(e)}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}}}
25
- var R={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return h.isValidElement(a)},isElementOfType:function(a,b){return h.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&h.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return R.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
26
- b){return R.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){if(!a)return[];R.isCompositeComponent(a)?void 0:q("10");return Q(a._reactInternalFiber,b)},scryRenderedDOMComponentsWithClass:function(a,b){return R.findAllInRenderedTree(a,function(a){if(R.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var e=c.split(/\s+/);Array.isArray(b)||(void 0===b?q("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==
27
- e.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){a=R.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){return R.findAllInRenderedTree(a,function(a){return R.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){a=R.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
28
- a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){return R.findAllInRenderedTree(a,function(a){return R.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){a=R.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 h.createElement(b,
29
- null,this.props.children)});return this},simulateNativeEventOnNode:function(a,b,c){c.target=b;O.dispatchEvent(a,c)},simulateNativeEventOnDOMComponent:function(a,b,c){R.simulateNativeEventOnNode(a,H(b),c)},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};
30
- function S(a){return function(b,c){h.isValidElement(b)?q("228"):void 0;R.isCompositeComponent(b)?q("229"):void 0;var d=K.eventNameDispatchConfigs[a],e=new P;e.target=b;e.type=a.toLowerCase();var l=N.getInstanceFromNode(b),g=new x(d,l,e,b);g.persist();f(g,c);d.phasedRegistrationNames?L.accumulateTwoPhaseDispatches(g):L.accumulateDirectDispatches(g);m.unstable_batchedUpdates(function(){M.enqueueStateRestore(b);J.runEventsInBatch(g,!0)});M.restoreStateIfNeeded()}}
31
- function T(){R.Simulate={};var a=void 0;for(a in K.eventNameDispatchConfigs)R.Simulate[a]=S(a)}var U=J.injection.injectEventPluginOrder;J.injection.injectEventPluginOrder=function(){U.apply(this,arguments);T()};var V=J.injection.injectEventPluginsByName;J.injection.injectEventPluginsByName=function(){V.apply(this,arguments);T()};T();
32
- function W(a){return function(b,c){var d=new P(a);f(d,c);R.isDOMComponent(b)?R.simulateNativeEventOnDOMComponent(a,b,d):b.tagName&&R.simulateNativeEventOnNode(a,b,d)}}
33
- [].concat(Object.keys(G),Object.keys({topAbort:"abort",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",
34
- topVolumeChange:"volumechange",topWaiting:"waiting"})).forEach(function(a){var b=0===a.indexOf("top")?a.charAt(3).toLowerCase()+a.substr(4):a;R.SimulateNative[b]=W(a)});var X=Object.freeze({default:R}),Y=X&&R||X;module.exports=Y["default"]?Y["default"]:Y;
10
+ 'use strict';var f=require("object-assign"),h=require("fbjs/lib/invariant"),m=require("react"),n=require("react-dom"),p=require("fbjs/lib/emptyFunction"),q=require("fbjs/lib/ExecutionEnvironment");
11
+ function r(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)}
12
+ function t(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 u(a){2!==t(a)?r("188"):void 0}
13
+ function v(a){var b=a.alternate;if(!b)return b=t(a),3===b?r("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,l=d?d.alternate:null;if(!d||!l)break;if(d.child===l.child){for(var g=d.child;g;){if(g===c)return u(d),a;if(g===e)return u(d),b;g=g.sibling}r("188")}if(c.return!==e.return)c=d,e=l;else{g=!1;for(var k=d.child;k;){if(k===c){g=!0;c=d;e=l;break}if(k===e){g=!0;e=d;c=l;break}k=k.sibling}if(!g){for(k=l.child;k;){if(k===c){g=!0;c=l;e=d;break}if(k===e){g=!0;e=l;c=d;break}k=k.sibling}g?void 0:
14
+ r("189")}}c.alternate!==e?r("190"):void 0}3!==c.tag?r("188"):void 0;return c.stateNode.current===c?a:b}var w="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),x={type:null,target:null,currentTarget:p.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
15
+ function y(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=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?p.thatReturnsTrue:p.thatReturnsFalse;this.isPropagationStopped=p.thatReturnsFalse;return this}
16
+ f(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=p.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=p.thatReturnsTrue)},persist:function(){this.isPersistent=p.thatReturnsTrue},isPersistent:p.thatReturnsFalse,
17
+ destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<w.length;a++)this[w[a]]=null}});y.Interface=x;y.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;f(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=f({},e.Interface,a);c.extend=e.extend;z(c);return c};z(y);
18
+ function A(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 B(a){a instanceof this?void 0:r("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function z(a){a.eventPool=[];a.getPooled=A;a.release=B}function C(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}
19
+ var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};q.canUseDOM&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition);
20
+ function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),I=G("animationiteration"),J=G("animationstart"),K=G("transitionend"),L=n.findDOMNode,M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=M.EventPluginHub,O=M.EventPluginRegistry,P=M.EventPropagators,Q=M.ReactControlledComponent,R=M.ReactDOMComponentTree,S=M.ReactDOMEventListener;function T(){}
21
+ function U(a,b){if(!a)return[];a=v(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||2===c.tag||1===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}}}
22
+ var V={renderIntoDocument:function(a){var b=document.createElement("div");return n.render(a,b)},isElement:function(a){return m.isValidElement(a)},isElementOfType:function(a,b){return m.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&m.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return V.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
23
+ b){return V.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){if(!a)return[];V.isCompositeComponent(a)?void 0:r("10");return U(a._reactInternalFiber,b)},scryRenderedDOMComponentsWithClass:function(a,b){return V.findAllInRenderedTree(a,function(a){if(V.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||(void 0===b?r("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==
24
+ d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){a=V.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){return V.findAllInRenderedTree(a,function(a){return V.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){a=V.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
25
+ a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){return V.findAllInRenderedTree(a,function(a){return V.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){a=V.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 m.createElement(b,
26
+ null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};
27
+ function W(a){return function(b,c){m.isValidElement(b)?r("228"):void 0;V.isCompositeComponent(b)?r("229"):void 0;var e=O.eventNameDispatchConfigs[a],d=new T;d.target=b;d.type=a.toLowerCase();var l=R.getInstanceFromNode(b),g=new y(e,l,d,b);g.persist();f(g,c);e.phasedRegistrationNames?P.accumulateTwoPhaseDispatches(g):P.accumulateDirectDispatches(g);n.unstable_batchedUpdates(function(){Q.enqueueStateRestore(b);N.runEventsInBatch(g,!0)});Q.restoreStateIfNeeded()}}
28
+ function X(){V.Simulate={};var a=void 0;for(a in O.eventNameDispatchConfigs)V.Simulate[a]=W(a)}var aa=N.injection.injectEventPluginOrder;N.injection.injectEventPluginOrder=function(){aa.apply(this,arguments);X()};var ba=N.injection.injectEventPluginsByName;N.injection.injectEventPluginsByName=function(){ba.apply(this,arguments);X()};X();
29
+ function ca(a,b){return function(c,e){var d=new T(a);f(d,e);V.isDOMComponent(c)?(c=L(c),d.target=c,S.dispatchEvent(b,d)):c.tagName&&(d.target=c,S.dispatchEvent(b,d))}}
30
+ [["abort","abort"],[H,"animationEnd"],[I,"animationIteration"],[J,"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","dragExit"],
31
+ ["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","mouseMove"],
32
+ ["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"],["touchstart",
33
+ "touchStart"],[K,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];V.SimulateNative[b]=ca(b,a[0])});var Y={default:V},Z=Y&&V||Y;module.exports=Z.default?Z.default:Z;
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.3174632
1
+ /** @license React v16.4.2
2
2
  * react-dom-unstable-native-dependencies.development.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -21,12 +21,8 @@ var warning = require('fbjs/lib/warning');
21
21
  var _assign = require('object-assign');
22
22
  var emptyFunction = require('fbjs/lib/emptyFunction');
23
23
 
24
- /**
25
- * WARNING: DO NOT manually require this module.
26
- * This is a replacement for `invariant(...)` used by the error code system
27
- * and will _only_ be required by the corresponding babel pass.
28
- * It always throws.
29
- */
24
+ // Relying on the `invariant()` implementation lets us
25
+ // have preserve the format and params in the www builds.
30
26
 
31
27
  {
32
28
  // In DEV mode, we swap out invokeGuardedCallback for a special version
@@ -68,22 +64,11 @@ var injection = {
68
64
  getNodeFromInstance = Injected.getNodeFromInstance;
69
65
 
70
66
  {
71
- warning(getNodeFromInstance && getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
67
+ !(getNodeFromInstance && getInstanceFromNode) ? warning(false, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
72
68
  }
73
69
  }
74
70
  };
75
71
 
76
- function isEndish(topLevelType) {
77
- return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';
78
- }
79
-
80
- function isMoveish(topLevelType) {
81
- return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';
82
- }
83
- function isStartish(topLevelType) {
84
- return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';
85
- }
86
-
87
72
  var validateEventDispatches = void 0;
88
73
  {
89
74
  validateEventDispatches = function (event) {
@@ -96,7 +81,7 @@ var validateEventDispatches = void 0;
96
81
  var instancesIsArr = Array.isArray(dispatchInstances);
97
82
  var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
98
83
 
99
- warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.');
84
+ !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning(false, 'EventPluginUtils: Invalid `event`.') : void 0;
100
85
  };
101
86
  }
102
87
 
@@ -187,7 +172,7 @@ var HostComponent = 5;
187
172
 
188
173
  function getParent(inst) {
189
174
  do {
190
- inst = inst['return'];
175
+ inst = inst.return;
191
176
  // TODO: If this is a HostRoot we might want to bail out.
192
177
  // That is depending on if we want nested subtrees (layers) to bubble
193
178
  // events to their parent. We could also go through parentNode on the
@@ -502,7 +487,7 @@ function listenerAtPhase(inst, event, propagationPhase) {
502
487
  */
503
488
  function accumulateDirectionalDispatches(inst, phase, event) {
504
489
  {
505
- warning(inst, 'Dispatching inst must not be null');
490
+ !inst ? warning(false, 'Dispatching inst must not be null') : void 0;
506
491
  }
507
492
  var listener = listenerAtPhase(inst, event, phase);
508
493
  if (listener) {
@@ -780,7 +765,7 @@ SyntheticEvent.extend = function (Interface) {
780
765
  return new Proxy(constructor.apply(that, args), {
781
766
  set: function (target, prop, value) {
782
767
  if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
783
- warning(didWarnForAddedNewProperty || target.isPersistent(), "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.');
768
+ !(didWarnForAddedNewProperty || target.isPersistent()) ? warning(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;
784
769
  didWarnForAddedNewProperty = true;
785
770
  }
786
771
  target[prop] = value;
@@ -825,7 +810,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
825
810
 
826
811
  function warn(action, result) {
827
812
  var warningCondition = false;
828
- warning(warningCondition, "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);
813
+ !warningCondition ? warning(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;
829
814
  }
830
815
  }
831
816
 
@@ -867,6 +852,35 @@ var ResponderSyntheticEvent = SyntheticEvent$1.extend({
867
852
  }
868
853
  });
869
854
 
855
+ // Note: ideally these would be imported from DOMTopLevelEventTypes,
856
+ // but our build system currently doesn't let us do that from a fork.
857
+
858
+ var TOP_TOUCH_START = 'touchstart';
859
+ var TOP_TOUCH_MOVE = 'touchmove';
860
+ var TOP_TOUCH_END = 'touchend';
861
+ var TOP_TOUCH_CANCEL = 'touchcancel';
862
+ var TOP_SCROLL = 'scroll';
863
+ var TOP_SELECTION_CHANGE = 'selectionchange';
864
+ var TOP_MOUSE_DOWN = 'mousedown';
865
+ var TOP_MOUSE_MOVE = 'mousemove';
866
+ var TOP_MOUSE_UP = 'mouseup';
867
+
868
+ function isStartish(topLevelType) {
869
+ return topLevelType === TOP_TOUCH_START || topLevelType === TOP_MOUSE_DOWN;
870
+ }
871
+
872
+ function isMoveish(topLevelType) {
873
+ return topLevelType === TOP_TOUCH_MOVE || topLevelType === TOP_MOUSE_MOVE;
874
+ }
875
+
876
+ function isEndish(topLevelType) {
877
+ return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL || topLevelType === TOP_MOUSE_UP;
878
+ }
879
+
880
+ var startDependencies = [TOP_TOUCH_START, TOP_MOUSE_DOWN];
881
+ var moveDependencies = [TOP_TOUCH_MOVE, TOP_MOUSE_MOVE];
882
+ var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_MOUSE_UP];
883
+
870
884
  /**
871
885
  * Tracks the position and time of each active touch by `touch.identifier`. We
872
886
  * should typically only see IDs in the range of 1-20 because IDs get recycled
@@ -930,7 +944,7 @@ function getTouchIdentifier(_ref) {
930
944
 
931
945
  !(identifier != null) ? invariant(false, 'Touch object is missing identifier.') : void 0;
932
946
  {
933
- warning(identifier <= MAX_TOUCH_BANK, '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);
947
+ !(identifier <= MAX_TOUCH_BANK) ? warning(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;
934
948
  }
935
949
  return identifier;
936
950
  }
@@ -1018,7 +1032,7 @@ var ResponderTouchHistoryStore = {
1018
1032
  }
1019
1033
  {
1020
1034
  var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
1021
- warning(activeRecord != null && activeRecord.touchActive, 'Cannot find single active touch.');
1035
+ !(activeRecord != null && activeRecord.touchActive) ? warning(false, 'Cannot find single active touch.') : void 0;
1022
1036
  }
1023
1037
  }
1024
1038
  }
@@ -1067,11 +1081,6 @@ var responderInst = null;
1067
1081
  */
1068
1082
  var trackedTouchCount = 0;
1069
1083
 
1070
- /**
1071
- * Last reported number of active touches.
1072
- */
1073
- var previousActiveTouches = 0;
1074
-
1075
1084
  var changeResponder = function (nextResponderInst, blockHostResponder) {
1076
1085
  var oldResponderInst = responderInst;
1077
1086
  responderInst = nextResponderInst;
@@ -1089,7 +1098,8 @@ var eventTypes = {
1089
1098
  phasedRegistrationNames: {
1090
1099
  bubbled: 'onStartShouldSetResponder',
1091
1100
  captured: 'onStartShouldSetResponderCapture'
1092
- }
1101
+ },
1102
+ dependencies: startDependencies
1093
1103
  },
1094
1104
 
1095
1105
  /**
@@ -1105,7 +1115,8 @@ var eventTypes = {
1105
1115
  phasedRegistrationNames: {
1106
1116
  bubbled: 'onScrollShouldSetResponder',
1107
1117
  captured: 'onScrollShouldSetResponderCapture'
1108
- }
1118
+ },
1119
+ dependencies: [TOP_SCROLL]
1109
1120
  },
1110
1121
 
1111
1122
  /**
@@ -1119,7 +1130,8 @@ var eventTypes = {
1119
1130
  phasedRegistrationNames: {
1120
1131
  bubbled: 'onSelectionChangeShouldSetResponder',
1121
1132
  captured: 'onSelectionChangeShouldSetResponderCapture'
1122
- }
1133
+ },
1134
+ dependencies: [TOP_SELECTION_CHANGE]
1123
1135
  },
1124
1136
 
1125
1137
  /**
@@ -1130,22 +1142,45 @@ var eventTypes = {
1130
1142
  phasedRegistrationNames: {
1131
1143
  bubbled: 'onMoveShouldSetResponder',
1132
1144
  captured: 'onMoveShouldSetResponderCapture'
1133
- }
1145
+ },
1146
+ dependencies: moveDependencies
1134
1147
  },
1135
1148
 
1136
1149
  /**
1137
1150
  * Direct responder events dispatched directly to responder. Do not bubble.
1138
1151
  */
1139
- responderStart: { registrationName: 'onResponderStart' },
1140
- responderMove: { registrationName: 'onResponderMove' },
1141
- responderEnd: { registrationName: 'onResponderEnd' },
1142
- responderRelease: { registrationName: 'onResponderRelease' },
1152
+ responderStart: {
1153
+ registrationName: 'onResponderStart',
1154
+ dependencies: startDependencies
1155
+ },
1156
+ responderMove: {
1157
+ registrationName: 'onResponderMove',
1158
+ dependencies: moveDependencies
1159
+ },
1160
+ responderEnd: {
1161
+ registrationName: 'onResponderEnd',
1162
+ dependencies: endDependencies
1163
+ },
1164
+ responderRelease: {
1165
+ registrationName: 'onResponderRelease',
1166
+ dependencies: endDependencies
1167
+ },
1143
1168
  responderTerminationRequest: {
1144
- registrationName: 'onResponderTerminationRequest'
1169
+ registrationName: 'onResponderTerminationRequest',
1170
+ dependencies: []
1171
+ },
1172
+ responderGrant: {
1173
+ registrationName: 'onResponderGrant',
1174
+ dependencies: []
1145
1175
  },
1146
- responderGrant: { registrationName: 'onResponderGrant' },
1147
- responderReject: { registrationName: 'onResponderReject' },
1148
- responderTerminate: { registrationName: 'onResponderTerminate' }
1176
+ responderReject: {
1177
+ registrationName: 'onResponderReject',
1178
+ dependencies: []
1179
+ },
1180
+ responderTerminate: {
1181
+ registrationName: 'onResponderTerminate',
1182
+ dependencies: []
1183
+ }
1149
1184
  };
1150
1185
 
1151
1186
  /**
@@ -1339,7 +1374,7 @@ to return true:wantsResponderID| |
1339
1374
  */
1340
1375
 
1341
1376
  function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
1342
- var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === 'topSelectionChange' ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder;
1377
+ var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder;
1343
1378
 
1344
1379
  // TODO: stop one short of the current responder.
1345
1380
  var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst);
@@ -1411,7 +1446,7 @@ function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) {
1411
1446
  // responderIgnoreScroll: We are trying to migrate away from specifically
1412
1447
  // tracking native scroll events here and responderIgnoreScroll indicates we
1413
1448
  // will send topTouchCancel to handle canceling touch events instead
1414
- topLevelType === 'topScroll' && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === 'topSelectionChange' || isStartish(topLevelType) || isMoveish(topLevelType));
1449
+ topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType));
1415
1450
  }
1416
1451
 
1417
1452
  /**
@@ -1490,7 +1525,7 @@ var ResponderEventPlugin = {
1490
1525
  extracted = accumulate(extracted, gesture);
1491
1526
  }
1492
1527
 
1493
- var isResponderTerminate = responderInst && topLevelType === 'topTouchCancel';
1528
+ var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL;
1494
1529
  var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent);
1495
1530
  var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null;
1496
1531
  if (finalTouch) {
@@ -1501,17 +1536,10 @@ var ResponderEventPlugin = {
1501
1536
  changeResponder(null);
1502
1537
  }
1503
1538
 
1504
- var numberActiveTouches = ResponderTouchHistoryStore.touchHistory.numberActiveTouches;
1505
- if (ResponderEventPlugin.GlobalInteractionHandler && numberActiveTouches !== previousActiveTouches) {
1506
- ResponderEventPlugin.GlobalInteractionHandler.onChange(numberActiveTouches);
1507
- }
1508
- previousActiveTouches = numberActiveTouches;
1509
-
1510
1539
  return extracted;
1511
1540
  },
1512
1541
 
1513
1542
  GlobalResponderHandler: null,
1514
- GlobalInteractionHandler: null,
1515
1543
 
1516
1544
  injection: {
1517
1545
  /**
@@ -1521,14 +1549,6 @@ var ResponderEventPlugin = {
1521
1549
  */
1522
1550
  injectGlobalResponderHandler: function (GlobalResponderHandler) {
1523
1551
  ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;
1524
- },
1525
-
1526
- /**
1527
- * @param {{onChange: (numberActiveTouches) => void} GlobalInteractionHandler
1528
- * Object that handles any change in the number of active touches.
1529
- */
1530
- injectGlobalInteractionHandler: function (GlobalInteractionHandler) {
1531
- ResponderEventPlugin.GlobalInteractionHandler = GlobalInteractionHandler;
1532
1552
  }
1533
1553
  }
1534
1554
  };
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.3174632
1
+ /** @license React v16.4.2
2
2
  * react-dom-unstable-native-dependencies.production.min.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -7,30 +7,29 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- 'use strict';var k=require("react-dom"),l=require("object-assign"),m=require("fbjs/lib/emptyFunction");
11
- function n(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,f=0;f<b;f++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[f+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}var p=null,q=null,r=null;
12
- function t(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a}function u(a){return"topMouseMove"===a||"topTouchMove"===a}function v(a){return"topMouseDown"===a||"topTouchStart"===a}function w(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?n("103"):void 0;a.currentTarget=b?r(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function x(a){do a=a["return"];while(a&&5!==a.tag);return a?a:null}
13
- function y(a,b,c){for(var f=[];a;)f.push(a),a=x(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 z(a,b){null==b?n("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 A(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}
14
- function B(a,b){var c=a.stateNode;if(!c)return null;var f=p(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;default:a=!1}if(a)return null;c&&"function"!==typeof c?n("231",b,typeof c):void 0;
15
- return c}function D(a,b,c){if(b=B(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=z(c._dispatchListeners,b),c._dispatchInstances=z(c._dispatchInstances,a)}function E(a){a&&a.dispatchConfig.phasedRegistrationNames&&y(a._targetInst,D,a)}function F(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?x(b):null;y(b,D,a)}}
16
- function G(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=B(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=z(a._dispatchListeners,c),a._dispatchInstances=z(a._dispatchInstances,b))}}}
17
- var H="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),aa={type:null,target:null,currentTarget:m.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
18
- function I(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)?m.thatReturnsTrue:m.thatReturnsFalse;this.isPropagationStopped=m.thatReturnsFalse;return this}
19
- l(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=m.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=m.thatReturnsTrue)},persist:function(){this.isPersistent=m.thatReturnsTrue},isPersistent:m.thatReturnsFalse,
20
- destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<H.length;a++)this[H[a]]=null}});I.Interface=aa;I.extend=function(a){function b(){}function c(){return f.apply(this,arguments)}var f=this;b.prototype=f.prototype;var e=new b;l(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=l({},f.Interface,a);c.extend=f.extend;J(c);return c};J(I);
21
- function ba(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,b,c,f)}function ca(a){a instanceof this?void 0:n("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function J(a){a.eventPool=[];a.getPooled=ba;a.release=ca}var K=I.extend({touchHistory:function(){return null}}),L=[],M={touchBank:L,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function N(a){return a.timeStamp||a.timestamp}
22
- function O(a){a=a.identifier;null==a?n("138"):void 0;return a}
23
- function da(a){var b=O(a),c=L[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=N(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=N(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=N(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:N(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:N(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:N(a)},L[b]=c);M.mostRecentTimeStamp=N(a)}
24
- function ea(a){var b=L[O(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=N(a),M.mostRecentTimeStamp=N(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",P(a),Q())}
25
- function fa(a){var b=L[O(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=N(a),M.mostRecentTimeStamp=N(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",P(a),Q())}function P(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:N(a)})}
26
- function Q(){var a=JSON.stringify(L.slice(0,20));20<L.length&&(a+=" (original size: "+L.length+")");return a}
27
- var R={recordTouchTrack:function(a,b){if(u(a))b.changedTouches.forEach(ea);else if(v(a))b.changedTouches.forEach(da),M.numberActiveTouches=b.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=b.touches[0].identifier);else if(t(a)&&(b.changedTouches.forEach(fa),M.numberActiveTouches=b.touches.length,1===M.numberActiveTouches))for(a=0;a<L.length;a++)if(b=L[a],null!=b&&b.touchActive){M.indexOfSingleActiveTouch=a;break}},touchHistory:M};
28
- function S(a,b){null==b?n("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var T=null,U=0,V=0;function W(a,b){var c=T;T=a;if(null!==X.GlobalResponderHandler)X.GlobalResponderHandler.onChange(c,a,b)}
29
- var Y={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",
30
- captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},
31
- X={_getResponder:function(){return T},eventTypes:Y,extractEvents:function(a,b,c,f){if(v(a))U+=1;else if(t(a))if(0<=U)--U;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;R.recordTouchTrack(a,c);if(b&&("topScroll"===a&&!c.responderIgnoreScroll||0<U&&"topSelectionChange"===a||v(a)||u(a))){var e=v(a)?Y.startShouldSetResponder:u(a)?Y.moveShouldSetResponder:"topSelectionChange"===a?Y.selectionChangeShouldSetResponder:Y.scrollShouldSetResponder;if(T)b:{var d=
32
- T;for(var g=0,h=d;h;h=x(h))g++;h=0;for(var C=b;C;C=x(C))h++;for(;0<g-h;)d=x(d),g--;for(;0<h-g;)b=x(b),h--;for(;g--;){if(d===b||d===b.alternate)break b;d=x(d);b=x(b)}d=null}else d=b;b=d===T;d=K.getPooled(e,d,c,f);d.touchHistory=R.touchHistory;b?A(d,F):A(d,E);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;
33
- d.isPersistent()||d.constructor.release(d);e&&e!==T?(d=void 0,b=K.getPooled(Y.responderGrant,e,c,f),b.touchHistory=R.touchHistory,A(b,G),g=!0===w(b),T?(h=K.getPooled(Y.responderTerminationRequest,T,c,f),h.touchHistory=R.touchHistory,A(h,G),C=!h._dispatchListeners||w(h),h.isPersistent()||h.constructor.release(h),C?(h=K.getPooled(Y.responderTerminate,T,c,f),h.touchHistory=R.touchHistory,A(h,G),d=S(d,[b,h]),W(e,g)):(e=K.getPooled(Y.responderReject,e,c,f),e.touchHistory=R.touchHistory,A(e,G),d=S(d,e))):
34
- (d=S(d,b),W(e,g)),e=d):e=null}else e=null;d=T&&v(a);b=T&&u(a);g=T&&t(a);if(d=d?Y.responderStart:b?Y.responderMove:g?Y.responderEnd:null)d=K.getPooled(d,T,c,f),d.touchHistory=R.touchHistory,A(d,G),e=S(e,d);d=T&&"topTouchCancel"===a;if(a=T&&!d&&t(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g){h=q(g);b:{for(g=T;h;){if(g===h||g===h.alternate){g=!0;break b}h=x(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?Y.responderTerminate:a?Y.responderRelease:null)c=
35
- K.getPooled(a,T,c,f),c.touchHistory=R.touchHistory,A(c,G),e=S(e,c),W(null);c=R.touchHistory.numberActiveTouches;if(X.GlobalInteractionHandler&&c!==V)X.GlobalInteractionHandler.onChange(c);V=c;return e},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(a){X.GlobalResponderHandler=a},injectGlobalInteractionHandler:function(a){X.GlobalInteractionHandler=a}}};
36
- function Z(a){p=a.getFiberCurrentPropsFromNode;q=a.getInstanceFromNode;r=a.getNodeFromInstance}Z(k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);var ha=Object.freeze({injectComponentTree:Z,ResponderEventPlugin:X,ResponderTouchHistoryStore:R});module.exports=ha;
10
+ 'use strict';var k=require("react-dom"),aa=require("fbjs/lib/invariant"),l=require("object-assign"),m=require("fbjs/lib/emptyFunction");function n(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]);aa(!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)}
11
+ var p=null,q=null,r=null,t={injectComponentTree:function(a){p=a.getFiberCurrentPropsFromNode;q=a.getInstanceFromNode;r=a.getNodeFromInstance}};function u(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?n("103"):void 0;a.currentTarget=b?r(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function v(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}
12
+ function w(a,b,c){for(var f=[];a;)f.push(a),a=v(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 x(a,b){null==b?n("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 y(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}
13
+ function z(a,b){var c=a.stateNode;if(!c)return null;var f=p(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;default:a=!1}if(a)return null;c&&"function"!==typeof c?n("231",b,typeof c):void 0;
14
+ return c}function A(a,b,c){if(b=z(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=x(c._dispatchListeners,b),c._dispatchInstances=x(c._dispatchInstances,a)}function ba(a){a&&a.dispatchConfig.phasedRegistrationNames&&w(a._targetInst,A,a)}function ca(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?v(b):null;w(b,A,a)}}
15
+ function C(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=z(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=x(a._dispatchListeners,c),a._dispatchInstances=x(a._dispatchInstances,b))}}}
16
+ var D="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),da={type:null,target:null,currentTarget:m.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
17
+ function E(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)?m.thatReturnsTrue:m.thatReturnsFalse;this.isPropagationStopped=m.thatReturnsFalse;return this}
18
+ l(E.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=m.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=m.thatReturnsTrue)},persist:function(){this.isPersistent=m.thatReturnsTrue},isPersistent:m.thatReturnsFalse,
19
+ destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<D.length;a++)this[D[a]]=null}});E.Interface=da;E.extend=function(a){function b(){}function c(){return f.apply(this,arguments)}var f=this;b.prototype=f.prototype;var e=new b;l(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=l({},f.Interface,a);c.extend=f.extend;F(c);return c};F(E);
20
+ function ea(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,b,c,f)}function fa(a){a instanceof this?void 0:n("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function F(a){a.eventPool=[];a.getPooled=ea;a.release=fa}var G=E.extend({touchHistory:function(){return null}});function H(a){return"touchstart"===a||"mousedown"===a}function I(a){return"touchmove"===a||"mousemove"===a}
21
+ function J(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}var K=["touchstart","mousedown"],L=["touchmove","mousemove"],M=["touchcancel","touchend","mouseup"],N=[],O={touchBank:N,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function P(a){return a.timeStamp||a.timestamp}function Q(a){a=a.identifier;null==a?n("138"):void 0;return a}
22
+ function ha(a){var b=Q(a),c=N[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=P(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=P(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=P(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:P(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:P(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:P(a)},N[b]=c);O.mostRecentTimeStamp=P(a)}
23
+ function ia(a){var b=N[Q(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=P(a),O.mostRecentTimeStamp=P(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",R(a),S())}
24
+ function ja(a){var b=N[Q(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=P(a),O.mostRecentTimeStamp=P(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",R(a),S())}function R(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:P(a)})}
25
+ function S(){var a=JSON.stringify(N.slice(0,20));20<N.length&&(a+=" (original size: "+N.length+")");return a}
26
+ var T={recordTouchTrack:function(a,b){if(I(a))b.changedTouches.forEach(ia);else if(H(a))b.changedTouches.forEach(ha),O.numberActiveTouches=b.touches.length,1===O.numberActiveTouches&&(O.indexOfSingleActiveTouch=b.touches[0].identifier);else if(J(a)&&(b.changedTouches.forEach(ja),O.numberActiveTouches=b.touches.length,1===O.numberActiveTouches))for(a=0;a<N.length;a++)if(b=N[a],null!=b&&b.touchActive){O.indexOfSingleActiveTouch=a;break}},touchHistory:O};
27
+ function U(a,b){null==b?n("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var V=null,W=0;function X(a,b){var c=V;V=a;if(null!==Y.GlobalResponderHandler)Y.GlobalResponderHandler.onChange(c,a,b)}
28
+ var Z={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:K},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]},
29
+ moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:L},responderStart:{registrationName:"onResponderStart",dependencies:K},responderMove:{registrationName:"onResponderMove",dependencies:L},responderEnd:{registrationName:"onResponderEnd",dependencies:M},responderRelease:{registrationName:"onResponderRelease",dependencies:M},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]},
30
+ responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},Y={_getResponder:function(){return V},eventTypes:Z,extractEvents:function(a,b,c,f){if(H(a))W+=1;else if(J(a))if(0<=W)--W;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;T.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll||
31
+ 0<W&&"selectionchange"===a||H(a)||I(a))){var e=H(a)?Z.startShouldSetResponder:I(a)?Z.moveShouldSetResponder:"selectionchange"===a?Z.selectionChangeShouldSetResponder:Z.scrollShouldSetResponder;if(V)b:{var d=V;for(var g=0,h=d;h;h=v(h))g++;h=0;for(var B=b;B;B=v(B))h++;for(;0<g-h;)d=v(d),g--;for(;0<h-g;)b=v(b),h--;for(;g--;){if(d===b||d===b.alternate)break b;d=v(d);b=v(b)}d=null}else d=b;b=d===V;d=G.getPooled(e,d,c,f);d.touchHistory=T.touchHistory;b?y(d,ca):y(d,ba);b:{e=d._dispatchListeners;b=d._dispatchInstances;
32
+ 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!==V?(d=void 0,b=G.getPooled(Z.responderGrant,e,c,f),b.touchHistory=T.touchHistory,y(b,C),g=!0===u(b),V?(h=G.getPooled(Z.responderTerminationRequest,V,c,f),h.touchHistory=T.touchHistory,y(h,C),B=!h._dispatchListeners||u(h),h.isPersistent()||h.constructor.release(h),
33
+ B?(h=G.getPooled(Z.responderTerminate,V,c,f),h.touchHistory=T.touchHistory,y(h,C),d=U(d,[b,h]),X(e,g)):(e=G.getPooled(Z.responderReject,e,c,f),e.touchHistory=T.touchHistory,y(e,C),d=U(d,e))):(d=U(d,b),X(e,g)),e=d):e=null}else e=null;d=V&&H(a);b=V&&I(a);g=V&&J(a);if(d=d?Z.responderStart:b?Z.responderMove:g?Z.responderEnd:null)d=G.getPooled(d,V,c,f),d.touchHistory=T.touchHistory,y(d,C),e=U(e,d);d=V&&"touchcancel"===a;if(a=V&&!d&&J(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,
34
+ null!==g&&void 0!==g&&0!==g){h=q(g);b:{for(g=V;h;){if(g===h||g===h.alternate){g=!0;break b}h=v(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?Z.responderTerminate:a?Z.responderRelease:null)c=G.getPooled(a,V,c,f),c.touchHistory=T.touchHistory,y(c,C),e=U(e,c),X(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){Y.GlobalResponderHandler=a}}};(0,t.injectComponentTree)(k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);
35
+ module.exports={injectComponentTree:t.injectComponentTree,ResponderEventPlugin:Y,ResponderTouchHistoryStore:T};