UNPKG

react-svg-map

Version:

A set of React.js components to display an interactive SVG map

9 lines 106 kB
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:e.map.viewBox,className:e.className,role:e.role,"aria-label":e.map.label},e.childrenBefore,e.map.locations.map((function(t,n){return r.default.createElement("path",{id:t.id,name:t.name,d:t.path,className:"function"==typeof e.locationClassName?e.locationClassName(t,n):e.locationClassName,tabIndex:"function"==typeof e.locationTabIndex?e.locationTabIndex(t,n):e.locationTabIndex,role:e.locationRole,"aria-label":"function"==typeof e.locationAriaLabel?e.locationAriaLabel(t,n):t.name,"aria-checked":e.isLocationSelected&&e.isLocationSelected(t,n),onMouseOver:e.onLocationMouseOver,onMouseOut:e.onLocationMouseOut,onMouseMove:e.onLocationMouseMove,onClick:e.onLocationClick,onKeyDown:e.onLocationKeyDown,onFocus:e.onLocationFocus,onBlur:e.onLocationBlur,key:t.id})})),e.childrenAfter)}i.propTypes={map:o.default.shape({viewBox:o.default.string.isRequired,locations:o.default.arrayOf(o.default.shape({path:o.default.string.isRequired,id:o.default.string.isRequired,name:o.default.string})).isRequired,label:o.default.string}).isRequired,className:o.default.string,role:o.default.string,locationClassName:o.default.oneOfType([o.default.string,o.default.func]),locationTabIndex:o.default.oneOfType([o.default.string,o.default.func]),locationRole:o.default.string,locationAriaLabel:o.default.func,onLocationMouseOver:o.default.func,onLocationMouseOut:o.default.func,onLocationMouseMove:o.default.func,onLocationClick:o.default.func,onLocationKeyDown:o.default.func,onLocationFocus:o.default.func,onLocationBlur:o.default.func,isLocationSelected:o.default.func,childrenBefore:o.default.node,childrenAfter:o.default.node},i.defaultProps={className:"svg-map",role:"none",locationClassName:"svg-map__location",locationTabIndex:"0",locationRole:"none"},t.default=i},function(e,t,n){e.exports=n(6)()},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(9)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadioSVGMap=t.CheckboxSVGMap=t.SVGMap=void 0;var r=i(n(1)),o=i(n(8)),a=i(n(20));function i(e){return e&&e.__esModule?e:{default:e}}n(21),t.SVGMap=r.default,t.CheckboxSVGMap=o.default,t.RadioSVGMap=a.default},function(e,t,n){"use strict";var r=n(7);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(0)),a=u(n(3)),i=u(n(2)),l=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={selectedLocations:[]},n.isLocationSelected=n.isLocationSelected.bind(n),n.handleLocationClick=n.handleLocationClick.bind(n),n.handleLocationKeyDown=n.handleLocationKeyDown.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){if(this.props.selectedLocationIds){var e=a.default.findDOMNode(this),t=this.props.selectedLocationIds.map((function(t){return e.getElementById(t)})).filter((function(e){return!!e}));this.setState({selectedLocations:t})}}},{key:"isLocationSelected",value:function(e){return this.state.selectedLocations.some((function(t){return t.id===e.id}))}},{key:"toggleLocation",value:function(e){var t=this,n=e.target;this.setState((function(e){var r=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.selectedLocations));return"true"===n.attributes["aria-checked"].value?r.splice(r.indexOf(n),1):r.push(n),t.props.onChange&&t.props.onChange(r),{selectedLocations:r}}))}},{key:"handleLocationClick",value:function(e){e.preventDefault(),this.toggleLocation(e)}},{key:"handleLocationKeyDown",value:function(e){32===e.keyCode&&(e.preventDefault(),this.toggleLocation(e))}},{key:"render",value:function(){return o.default.createElement(l.default,{map:this.props.map,role:"group",locationRole:"checkbox",locationTabIndex:"0",className:this.props.className,locationClassName:this.props.locationClassName,locationAriaLabel:this.props.locationAriaLabel,isLocationSelected:this.isLocationSelected,onLocationClick:this.handleLocationClick,onLocationKeyDown:this.handleLocationKeyDown,onLocationMouseOver:this.props.onLocationMouseOver,onLocationMouseOut:this.props.onLocationMouseOut,onLocationMouseMove:this.props.onLocationMouseMove,onLocationFocus:this.props.onLocationFocus,onLocationBlur:this.props.onLocationBlur,childrenBefore:this.props.childrenBefore,childrenAfter:this.props.childrenAfter})}}]),t}(o.default.Component);c.propTypes={selectedLocationIds:i.default.arrayOf(i.default.string),onChange:i.default.func,map:i.default.shape({viewBox:i.default.string.isRequired,locations:i.default.arrayOf(i.default.shape({path:i.default.string.isRequired,name:i.default.string,id:i.default.string})).isRequired,label:i.default.string}).isRequired,className:i.default.string,locationClassName:i.default.oneOfType([i.default.string,i.default.func]),locationAriaLabel:i.default.func,onLocationMouseOver:i.default.func,onLocationMouseOut:i.default.func,onLocationMouseMove:i.default.func,onLocationFocus:i.default.func,onLocationBlur:i.default.func,childrenBefore:i.default.node,childrenAfter:i.default.node},t.default=c},function(e,t,n){"use strict"; /** @license React v16.1.0 * react-dom.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(0),o=n(10),a=n(11),i=n(4),l=n(12),u=n(13),c=n(14),s=n(15),f=n(18),d=n(19);function p(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}r||p("227");var h={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0};function m(e,t){return(e&t)===t}var g={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=g,n=e.Properties||{},r=e.DOMAttributeNamespaces||{},o=e.DOMAttributeNames||{};for(var a in e=e.DOMMutationMethods||{},n){y.hasOwnProperty(a)&&p("48",a);var i=a.toLowerCase(),l=n[a];1>=(i={attributeName:i,attributeNamespace:null,propertyName:a,mutationMethod:null,mustUseProperty:m(l,t.MUST_USE_PROPERTY),hasBooleanValue:m(l,t.HAS_BOOLEAN_VALUE),hasNumericValue:m(l,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:m(l,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:m(l,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:m(l,t.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+i.hasNumericValue+i.hasOverloadedBooleanValue||p("50",a),o.hasOwnProperty(a)&&(i.attributeName=o[a]),r.hasOwnProperty(a)&&(i.attributeNamespace=r[a]),e.hasOwnProperty(a)&&(i.mutationMethod=e[a]),y[a]=i}}},y={};function v(e,t){if(h.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return h.hasOwnProperty(e)?e=!0:(t=b(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:e="data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e,e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function b(e){return y.hasOwnProperty(e)?y[e]:null}var C=g,k=C.MUST_USE_PROPERTY,w=C.HAS_BOOLEAN_VALUE,x=C.HAS_NUMERIC_VALUE,T=C.HAS_POSITIVE_NUMERIC_VALUE,E=C.HAS_STRING_BOOLEAN_VALUE,S={Properties:{allowFullScreen:w,autoFocus:E,async:w,autoPlay:w,capture:w,checked:k|w,cols:T,contentEditable:E,controls:w,default:w,defer:w,disabled:w,download:C.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:E,formNoValidate:w,hidden:w,loop:w,multiple:k|w,muted:k|w,noValidate:w,open:w,playsInline:w,readOnly:w,required:w,reversed:w,rows:T,rowSpan:x,scoped:w,seamless:w,selected:k|w,size:T,start:x,span:T,spellCheck:E,style:0,tabIndex:0,itemScope:w,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:E},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");("number"!==e.type||!1===e.hasAttribute("value")||e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e)&&e.setAttribute("value",""+t)}}},_=C.HAS_STRING_BOOLEAN_VALUE,O="http://www.w3.org/1999/xlink",N="http://www.w3.org/XML/1998/namespace",P={Properties:{autoReverse:_,externalResourcesRequired:_,preserveAlpha:_},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:O,xlinkArcrole:O,xlinkHref:O,xlinkRole:O,xlinkShow:O,xlinkTitle:O,xlinkType:O,xmlBase:N,xmlLang:N,xmlSpace:N}},L=/[\-\:]([a-z])/g;function M(e){return e[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 x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach((function(e){var t=e.replace(L,M);P.Properties[t]=0,P.DOMAttributeNames[t]=e})),C.injectDOMPropertyConfig(S),C.injectDOMPropertyConfig(P);var I={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&p("197"),D=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,l,u){D.apply(I,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,l,u){if(I.invokeGuardedCallback.apply(this,arguments),I.hasCaughtError()){var c=I.clearCaughtError();I._hasRethrowError||(I._hasRethrowError=!0,I._rethrowError=c)}},rethrowCaughtError:function(){return R.apply(I,arguments)},hasCaughtError:function(){return I._hasCaughtError},clearCaughtError:function(){if(I._hasCaughtError){var e=I._caughtError;return I._caughtError=null,I._hasCaughtError=!1,e}p("198")}};function D(e,t,n,r,o,a,i,l,u){I._hasCaughtError=!1,I._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){I._caughtError=e,I._hasCaughtError=!0}}function R(){if(I._hasRethrowError){var e=I._rethrowError;throw I._rethrowError=null,I._hasRethrowError=!1,e}}var A=null,F={};function U(){if(A)for(var e in F){var t=F[e],n=A.indexOf(e);if(-1<n||p("96",e),!z[n])for(var r in t.extractEvents||p("97",e),z[n]=t,n=t.eventTypes){var o=void 0,a=n[r],i=t,l=r;j.hasOwnProperty(l)&&p("99",l),j[l]=a;var u=a.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&H(u[o],i,l);o=!0}else a.registrationName?(H(a.registrationName,i,l),o=!0):o=!1;o||p("98",r,e)}}}function H(e,t,n){V[e]&&p("100",e),V[e]=t,B[e]=t.eventTypes[n].dependencies}var z=[],j={},V={},B={};function K(e){A&&p("101"),A=Array.prototype.slice.call(e),U()}function W(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];F.hasOwnProperty(t)&&F[t]===r||(F[t]&&p("102",t),F[t]=r,n=!0)}n&&U()}var q=Object.freeze({plugins:z,eventNameDispatchConfigs:j,registrationNameModules:V,registrationNameDependencies:B,possibleRegistrationNames:null,injectEventPluginOrder:K,injectEventPluginsByName:W}),Q=null,G=null,$=null;function Y(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=$(r),I.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function X(e,t){return null==t&&p("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function Z(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var J=null;function ee(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)Y(e,t,n[o],r[o]);else n&&Y(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function te(e){return ee(e,!0)}function ne(e){return ee(e,!1)}var re={injectEventPluginOrder:K,injectEventPluginsByName:W};function oe(e,t){var n=e.stateNode;if(!n)return null;var r=Q(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&p("231",t,typeof n),n)}function ae(e,t,n,r){for(var o,a=0;a<z.length;a++){var i=z[a];i&&(i=i.extractEvents(e,t,n,r))&&(o=X(o,i))}return o}function ie(e){e&&(J=X(J,e))}function le(e){var t=J;J=null,Z(t,e?te:ne),J&&p("95"),I.rethrowCaughtError()}var ue=Object.freeze({injection:re,getListener:oe,extractEvents:ae,enqueueEvents:ie,processEventQueue:le}),ce=Math.random().toString(36).slice(2),se="__reactInternalInstance$"+ce,fe="__reactEventHandlers$"+ce;function de(e){if(e[se])return e[se];for(var t=[];!e[se];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[se];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[se]);e=t.pop())n=r;return n}function pe(e){if(5===e.tag||6===e.tag)return e.stateNode;p("33")}function he(e){return e[fe]||null}var me=Object.freeze({precacheFiberNode:function(e,t){t[se]=e},getClosestInstanceFromNode:de,getInstanceFromNode:function(e){return!(e=e[se])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:pe,getFiberCurrentPropsFromNode:he,updateFiberProps:function(e,t){e[fe]=t}});function ge(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function ye(e,t,n){for(var r=[];e;)r.push(e),e=ge(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function ve(e,t,n){(t=oe(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=X(n._dispatchListeners,t),n._dispatchInstances=X(n._dispatchInstances,e))}function be(e){e&&e.dispatchConfig.phasedRegistrationNames&&ye(e._targetInst,ve,e)}function Ce(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;ye(t=t?ge(t):null,ve,e)}}function ke(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=oe(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=X(n._dispatchListeners,t),n._dispatchInstances=X(n._dispatchInstances,e))}function we(e){e&&e.dispatchConfig.registrationName&&ke(e._targetInst,null,e)}function xe(e){Z(e,be)}function Te(e,t,n,r){if(n&&r)e:{for(var o=n,a=r,i=0,l=o;l;l=ge(l))i++;l=0;for(var u=a;u;u=ge(u))l++;for(;0<i-l;)o=ge(o),i--;for(;0<l-i;)a=ge(a),l--;for(;i--;){if(o===a||o===a.alternate)break e;o=ge(o),a=ge(a)}o=null}else o=null;for(a=o,o=[];n&&n!==a&&(null===(i=n.alternate)||i!==a);)o.push(n),n=ge(n);for(n=[];r&&r!==a&&(null===(i=r.alternate)||i!==a);)n.push(r),r=ge(r);for(r=0;r<o.length;r++)ke(o[r],"bubbled",e);for(e=n.length;0<e--;)ke(n[e],"captured",t)}var Ee=Object.freeze({accumulateTwoPhaseDispatches:xe,accumulateTwoPhaseDispatchesSkipTarget:function(e){Z(e,Ce)},accumulateEnterLeaveDispatches:Te,accumulateDirectDispatches:function(e){Z(e,we)}}),Se=null;function _e(){return!Se&&o.canUseDOM&&(Se="textContent"in document.documentElement?"textContent":"innerText"),Se}var Oe={_root:null,_startText:null,_fallbackText:null};function Ne(){if(Oe._fallbackText)return Oe._fallbackText;var e,t,n=Oe._startText,r=n.length,o=Pe(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Oe._fallbackText=o.slice(e,1<t?1-t:void 0),Oe._fallbackText}function Pe(){return"value"in Oe._root?Oe._root.value:Oe._root[_e()]}var Le="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Me={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function Ie(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}function De(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Re(e){e instanceof this||p("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Ae(e){e.eventPool=[],e.getPooled=De,e.release=Re}function Fe(e,t,n,r){return Ie.call(this,e,t,n,r)}function Ue(e,t,n,r){return Ie.call(this,e,t,n,r)}a(Ie.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<Le.length;t++)this[Le[t]]=null}}),Ie.Interface=Me,Ie.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},this.Interface,t),e.augmentClass=this.augmentClass,Ae(e)},Ae(Ie),Ie.augmentClass(Fe,{data:null}),Ie.augmentClass(Ue,{data:null});var He,ze=[9,13,27,32],je=o.canUseDOM&&"CompositionEvent"in window,Ve=null;if(o.canUseDOM&&"documentMode"in document&&(Ve=document.documentMode),He=o.canUseDOM&&"TextEvent"in window&&!Ve){var Be=window.opera;He=!("object"==typeof Be&&"function"==typeof Be.version&&12>=parseInt(Be.version(),10))}var Ke=He,We=o.canUseDOM&&(!je||Ve&&8<Ve&&11>=Ve),qe=String.fromCharCode(32),Qe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Ge=!1;function $e(e,t){switch(e){case"topKeyUp":return-1!==ze.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Ye(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Xe=!1;var Ze={eventTypes:Qe,extractEvents:function(e,t,n,r){var o;if(je)e:{switch(e){case"topCompositionStart":var a=Qe.compositionStart;break e;case"topCompositionEnd":a=Qe.compositionEnd;break e;case"topCompositionUpdate":a=Qe.compositionUpdate;break e}a=void 0}else Xe?$e(e,n)&&(a=Qe.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=Qe.compositionStart);return a?(We&&(Xe||a!==Qe.compositionStart?a===Qe.compositionEnd&&Xe&&(o=Ne()):(Oe._root=r,Oe._startText=Pe(),Xe=!0)),a=Fe.getPooled(a,t,n,r),o?a.data=o:null!==(o=Ye(n))&&(a.data=o),xe(a),o=a):o=null,(e=Ke?function(e,t){switch(e){case"topCompositionEnd":return Ye(t);case"topKeyPress":return 32!==t.which?null:(Ge=!0,qe);case"topTextInput":return(e=t.data)===qe&&Ge?null:e;default:return null}}(e,n):function(e,t){if(Xe)return"topCompositionEnd"===e||!je&&$e(e,t)?(e=Ne(),Oe._root=null,Oe._startText=null,Oe._fallbackText=null,Xe=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return We?null:t.data;default:return null}}(e,n))?((t=Ue.getPooled(Qe.beforeInput,t,n,r)).data=e,xe(t)):t=null,[o,t]}},Je=null,et=null,tt=null;function nt(e){if(e=G(e)){Je&&"function"==typeof Je.restoreControlledState||p("194");var t=Q(e.stateNode);Je.restoreControlledState(e.stateNode,e.type,t)}}var rt={injectFiberControlledHostComponent:function(e){Je=e}};function ot(e){et?tt?tt.push(e):tt=[e]:et=e}function at(){if(et){var e=et,t=tt;if(tt=et=null,nt(e),t)for(e=0;e<t.length;e++)nt(t[e])}}var it=Object.freeze({injection:rt,enqueueStateRestore:ot,restoreStateIfNeeded:at});function lt(e,t){return e(t)}var ut=!1;function ct(e,t){if(ut)return lt(e,t);ut=!0;try{return lt(e,t)}finally{ut=!1,at()}}var st,ft={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ft[e.type]:"textarea"===t}function pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ht(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n=(t="on"+e)in document;return n||((n=document.createElement("div")).setAttribute(t,"return;"),n="function"==typeof n[t]),!n&&st&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function mt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){e._valueTracker||(e._valueTracker=function(e){var t=mt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}(e))}function yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}o.canUseDOM&&(st=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var vt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}};function bt(e,t,n){return(e=Ie.getPooled(vt.change,e,t,n)).type="change",ot(n),xe(e),e}var Ct=null,kt=null;function wt(e){ie(e),le(!1)}function xt(e){if(yt(pe(e)))return e}function Tt(e,t){if("topChange"===e)return t}var Et=!1;function St(){Ct&&(Ct.detachEvent("onpropertychange",_t),kt=Ct=null)}function _t(e){"value"===e.propertyName&&xt(kt)&&ct(wt,e=bt(kt,e,pt(e)))}function Ot(e,t,n){"topFocus"===e?(St(),kt=n,(Ct=t).attachEvent("onpropertychange",_t)):"topBlur"===e&&St()}function Nt(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return xt(kt)}function Pt(e,t){if("topClick"===e)return xt(t)}function Lt(e,t){if("topInput"===e||"topChange"===e)return xt(t)}o.canUseDOM&&(Et=ht("input")&&(!document.documentMode||9<document.documentMode));var Mt={eventTypes:vt,_isInputEventSupported:Et,extractEvents:function(e,t,n,r){var o=t?pe(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=Tt;else if(dt(o))if(Et)i=Lt;else{i=Nt;var l=Ot}else!(a=o.nodeName)||"input"!==a.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(i=Pt);if(i&&(i=i(e,t)))return bt(i,n,r);l&&l(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};function It(e,t,n,r){return Ie.call(this,e,t,n,r)}Ie.augmentClass(It,{view:null,detail:null});var Dt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dt[e])&&!!t[e]}function At(){return Rt}function Ft(e,t,n,r){return Ie.call(this,e,t,n,r)}It.augmentClass(Ft,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:At,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Ut={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Ht={eventTypes:Ut,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?de(t):null):e=null,e===t)return null;var a=null==e?o:pe(e);o=null==t?o:pe(t);var i=Ft.getPooled(Ut.mouseLeave,e,n,r);return i.type="mouseleave",i.target=a,i.relatedTarget=o,(n=Ft.getPooled(Ut.mouseEnter,t,n,r)).type="mouseenter",n.target=o,n.relatedTarget=a,Te(i,n,e,t),[i,n]}},zt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;function jt(e){return"string"==typeof(e=e.type)?e:"function"==typeof e?e.displayName||e.name:null}function Vt(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function Bt(e){return!!(e=e._reactInternalFiber)&&2===Vt(e)}function Kt(e){2!==Vt(e)&&p("188")}function Wt(e){var t=e.alternate;if(!t)return 3===(t=Vt(e))&&p("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var i=o.child;i;){if(i===n)return Kt(o),e;if(i===r)return Kt(o),t;i=i.sibling}p("188")}if(n.return!==r.return)n=o,r=a;else{i=!1;for(var l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}i||p("189")}}n.alternate!==r&&p("190")}return 3!==n.tag&&p("188"),n.stateNode.current===n?e:t}var qt=[];function Qt(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=de(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],$t(e.topLevelType,t,e.nativeEvent,pt(e.nativeEvent))}var Gt=!0,$t=void 0;function Yt(e){Gt=!!e}function Xt(e,t,n){return n?l.listen(n,t,Jt.bind(null,e)):null}function Zt(e,t,n){return n?l.capture(n,t,Jt.bind(null,e)):null}function Jt(e,t){if(Gt){var n=pt(t);if(null===(n=de(n))||"number"!=typeof n.tag||2===Vt(n)||(n=null),qt.length){var r=qt.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{ct(Qt,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>qt.length&&qt.push(e)}}}var en=Object.freeze({get _enabled(){return Gt},get _handleTopLevel(){return $t},setHandleTopLevel:function(e){$t=e},setEnabled:Yt,isEnabled:function(){return Gt},trapBubbledEvent:Xt,trapCapturedEvent:Zt,dispatchEvent:Jt});function tn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var nn={animationend:tn("Animation","AnimationEnd"),animationiteration:tn("Animation","AnimationIteration"),animationstart:tn("Animation","AnimationStart"),transitionend:tn("Transition","TransitionEnd")},rn={},on={};function an(e){if(rn[e])return rn[e];if(!nn[e])return e;var t,n=nn[e];for(t in n)if(n.hasOwnProperty(t)&&t in on)return rn[e]=n[t];return""}o.canUseDOM&&(on=document.createElement("div").style,"AnimationEvent"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),"TransitionEvent"in window||delete nn.transitionend.transition);var ln={topAbort:"abort",topAnimationEnd:an("animationend")||"animationend",topAnimationIteration:an("animationiteration")||"animationiteration",topAnimationStart:an("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",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",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:an("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},un={},cn=0,sn="_reactListenersID"+(""+Math.random()).slice(2);function fn(e){return Object.prototype.hasOwnProperty.call(e,sn)||(e[sn]=cn++,un[e[sn]]={}),un[e[sn]]}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}var mn=o.canUseDOM&&"documentMode"in document&&11>=document.documentMode,gn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},yn=null,vn=null,bn=null,Cn=!1;function kn(e,t){if(Cn||null==yn||yn!==u())return null;var n=yn;return"selectionStart"in n&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,bn&&c(bn,n)?null:(bn=n,(e=Ie.getPooled(gn.select,vn,e,t)).type="select",e.target=yn,xe(e),e)}var wn={eventTypes:gn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=fn(a),o=B.onSelect;for(var i=0;i<o.length;i++){var l=o[i];if(!a.hasOwnProperty(l)||!a[l]){a=!1;break e}}a=!0}o=!a}if(o)return null;switch(a=t?pe(t):window,e){case"topFocus":(dt(a)||"true"===a.contentEditable)&&(yn=a,vn=t,bn=null);break;case"topBlur":bn=vn=yn=null;break;case"topMouseDown":Cn=!0;break;case"topContextMenu":case"topMouseUp":return Cn=!1,kn(n,r);case"topSelectionChange":if(mn)break;case"topKeyDown":case"topKeyUp":return kn(n,r)}return null}};function xn(e,t,n,r){return Ie.call(this,e,t,n,r)}function Tn(e,t,n,r){return Ie.call(this,e,t,n,r)}function En(e,t,n,r){return Ie.call(this,e,t,n,r)}function Sn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}Ie.augmentClass(xn,{animationName:null,elapsedTime:null,pseudoElement:null}),Ie.augmentClass(Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),It.augmentClass(En,{relatedTarget:null});var _n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Nn(e,t,n,r){return Ie.call(this,e,t,n,r)}function Pn(e,t,n,r){return Ie.call(this,e,t,n,r)}function Ln(e,t,n,r){return Ie.call(this,e,t,n,r)}function Mn(e,t,n,r){return Ie.call(this,e,t,n,r)}function In(e,t,n,r){return Ie.call(this,e,t,n,r)}It.augmentClass(Nn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Sn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:At,charCode:function(e){return"keypress"===e.type?Sn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Sn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ft.augmentClass(Pn,{dataTransfer:null}),It.augmentClass(Ln,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:At}),Ie.augmentClass(Mn,{propertyName:null,elapsedTime:null,pseudoElement:null}),Ft.augmentClass(In,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Dn={},Rn={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach((function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t="top"+t]},Dn[e]=n,Rn[t]=n}));var An={eventTypes:Dn,extractEvents:function(e,t,n,r){var o=Rn[e];if(!o)return null;switch(e){case"topKeyPress":if(0===Sn(n))return null;case"topKeyDown":case"topKeyUp":e=Nn;break;case"topBlur":case"topFocus":e=En;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=Ft;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=Pn;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=Ln;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=xn;break;case"topTransitionEnd":e=Mn;break;case"topScroll":e=It;break;case"topWheel":e=In;break;case"topCopy":case"topCut":case"topPaste":e=Tn;break;default:e=Ie}return xe(t=e.getPooled(o,t,n,r)),t}};$t=function(e,t,n,r){ie(e=ae(e,t,n,r)),le(!1)},re.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Q=me.getFiberCurrentPropsFromNode,G=me.getInstanceFromNode,$=me.getNodeFromInstance,re.injectEventPluginsByName({SimpleEventPlugin:An,EnterLeaveEventPlugin:Ht,ChangeEventPlugin:Mt,SelectEventPlugin:wn,BeforeInputEventPlugin:Ze});var Fn=[],Un=-1;function Hn(e){0>Un||(e.current=Fn[Un],Fn[Un]=null,Un--)}function zn(e,t){Un++,Fn[Un]=e.current,e.current=t}new Set;var jn={current:d},Vn={current:!1},Bn=d;function Kn(e){return qn(e)?Bn:jn.current}function Wn(e,t){var n=e.type.contextTypes;if(!n)return d;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function qn(e){return 2===e.tag&&null!=e.type.childContextTypes}function Qn(e){qn(e)&&(Hn(Vn),Hn(jn))}function Gn(e,t,n){null!=jn.cursor&&p("168"),zn(jn,t),zn(Vn,n)}function $n(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in r||p("108",jt(e)||"Unknown",o);return a({},t,n)}function Yn(e){if(!qn(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||d,Bn=jn.current,zn(jn,t),zn(Vn,Vn.current),!0}function Xn(e,t){var n=e.stateNode;if(n||p("169"),t){var r=$n(e,Bn);n.__reactInternalMemoizedMergedChildContext=r,Hn(Vn),Hn(jn),zn(jn,r)}else Hn(Vn);zn(Vn,t)}function Zn(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Jn(e,t,n){var r=e.alternate;return null===r?((r=new Zn(e.tag,e.key,e.internalContextTag)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function er(e,t,n){var r=void 0,o=e.type,a=e.key;return"function"==typeof o?((r=o.prototype&&o.prototype.isReactComponent?new Zn(2,a,t):new Zn(0,a,t)).type=o,r.pendingProps=e.props):"string"==typeof o?((r=new Zn(5,a,t)).type=o,r.pendingProps=e.props):"object"==typeof o&&null!==o&&"number"==typeof o.tag?(r=o).pendingProps=e.props:p("130",null==o?o:typeof o,""),r.expirationTime=n,r}function tr(e,t,n,r){return(t=new Zn(10,r,t)).pendingProps=e,t.expirationTime=n,t}function nr(e,t,n){return(t=new Zn(6,null,t)).pendingProps=e,t.expirationTime=n,t}function rr(e,t,n){return(t=new Zn(7,e.key,t)).type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function or(e,t,n){return(e=new Zn(9,null,t)).expirationTime=n,e}function ar(e,t,n){return(t=new Zn(4,e.key,t)).pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ir=null,lr=null;function ur(e){return function(t){try{return e(t)}catch(e){}}}function cr(e){"function"==typeof ir&&ir(e)}function sr(e){"function"==typeof lr&&lr(e)}function fr(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function dr(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function pr(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=fr(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=fr(null)):e=null,null===(e=e!==r?e:null)?dr(r,t):null===r.last||null===e.last?(dr(r,t),dr(e,t)):(dr(r,t),e.last=t)}function hr(e,t,n,r){return"function"==typeof(e=e.partialState)?e.call(t,n,r):e}function mr(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var l=!0,u=n.first,c=!1;null!==u;){var s=u.expirationTime;if(s>i){var f=n.expirationTime;(0===f||f>s)&&(n.expirationTime=s),c||(c=!0,n.baseState=e)}else c||(n.first=u.next,null===n.first&&(n.last=null)),u.isReplace?(e=hr(u,r,e,o),l=!0):(s=hr(u,r,e,o))&&(e=l?a({},e,s):a(e,s),l=!1),u.isForced&&(n.hasForceUpdate=!0),null!==u.callback&&(null===(s=n.callbackList)&&(s=n.callbackList=[]),s.push(u));u=u.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),c||(n.baseState=e),e}function gr(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var r=n[e],o=r.callback;r.callback=null,"function"!=typeof o&&p("191",o),o.call(t)}}var yr="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.portal")||60106;function vr(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:yr,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}var br,Cr,kr,wr,xr=Array.isArray,Tr="function"==typeof Symbol&&Symbol.iterator;function Er(e){return null==e?null:"function"==typeof(e=Tr&&e[Tr]||e["@@iterator"])?e:null}function Sr(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){t=t._owner;var r=void 0;t&&(2!==t.tag&&p("110"),r=t.stateNode),r||p("147",n);var o=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===o?e.ref:((e=function(e){var t=r.refs===d?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,e)}"string"!=typeof n&&p("148"),t._owner||p("149",n)}return n}function _r(e,t){"textarea"!==e.type&&p("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Or(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(t,n,r){return e?((t=Jn(t,n,r)).index=0,t.sibling=null,t):(t.expirationTime=r,t.effectTag=0,t.index=0,t.sibling=null,t.pendingProps=n,t)}function i(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function l(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(e,t,n,r){return null===t||6!==t.tag?((t=nr(n,e.internalContextTag,r)).return=e,t):((t=a(t,n,r)).return=e,t)}function c(e,t,n,r){return null!==t&&t.type===n.type?((r=a(t,n.props,r)).ref=Sr(t,n),r.return=e,r):((r=er(n,e.internalContextTag,r)).ref=Sr(t,n),r.return=e,r)}function s(e,t,n,r){return null===t||7!==t.tag?((t=rr(n,e.internalContextTag,r)).return=e,t):((t=a(t,n,r)).return=e,t)}function f(e,t,n,r){return null===t||9!==t.tag?((t=or(n,e.internalContextTag,r)).type=n.value,t.return=e,t):((t=a(t,null,r)).type=n.value,t.return=e,t)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ar(n,e.internalContextTag,r)).return=e,t):((t=a(t,n.children||[],r)).return=e,t)}function h(e,t,n,r,o){return null===t||10!==t.tag?((t=tr(n,e.internalContextTag,r,o)).return=e,t):((t=a(t,n,r)).return=e,t)}function m(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=nr(""+t,e.internalContextTag,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case br:return t.type===wr?((t=tr(t.props.children,e.internalContextTag,n,t.key)).return=e,t):((n=er(t,e.internalContextTag,n)).ref=Sr(null,t),n.return=e,n);case Cr:return(t=rr(t,e.internalContextTag,n)).return=e,t;case kr:return(n=or(t,e.internalContextTag,n)).type=t.value,n.return=e,n;case yr:return(t=ar(t,e.internalContextTag,n)).return=e,t}if(xr(t)||Er(t))return(t=tr(t,e.internalContextTag,n,null)).return=e,t;_r(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case br:return n.key===o?n.type===wr?h(e,t,n.props.children,r,o):c(e,t,n,r):null;case Cr:return n.key===o?s(e,t,n,r):null;case kr:return null===o?f(e,t,n,r):null;case yr:return n.key===o?d(e,t,n,r):null}if(xr(n)||Er(n))return null!==o?null:h(e,t,n,r,null);_r(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case br:return e=e.get(null===r.key?n:r.key)||null,r.type===wr?h(t,e,r.props.children,o,r.key):c(t,e,r,o);case Cr:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case kr:return f(t,e=e.get(n)||null,r,o);case yr:return d(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(xr(r)||Er(r))return h(t,e=e.get(n)||null,r,o,null);_r(t,r)}return null}function v(e,a,l,u){for(var c=null,s=null,f=a,d=a=0,p=null;null!==f&&d<l.length;d++){f.index>d?(p=f,f=null):p=f.sibling;var h=g(e,f,l[d],u);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),a=i(h,a,d),null===s?c=h:s.sibling=h,s=h,f=p}if(d===l.length)return r(e,f),c;if(null===f){for(;d<l.length;d++)(f=m(e,l[d],u))&&(a=i(f,a,d),null===s?c=f:s.sibling=f,s=f);return c}for(f=o(e,f);d<l