UNPKG

@haiku/player

Version:

Haiku Player is a JavaScript library for building user interfaces

1 lines 269 kB
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).HaikuReactAdapter=e()}}(function(){return function e(t,n,r){function o(i,l){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!l&&u)return u(i,!0);if(a)return a(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[i]={exports:{}};t[i][0].call(c.exports,function(e){var n=t[i][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,o){return e.addEventListener?(e.addEventListener(t,o,!0),{remove:function(){e.removeEventListener(t,o,!0)}}):("production"!==n.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};t.exports=o}).call(this,e("_process"))},{"./emptyFunction":6,_process:18}],2:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],3:[function(e,t,n){"use strict";var r=/-(.)/g;t.exports=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})}},{}],4:[function(e,t,n){"use strict";var r=e("./camelize"),o=/^-ms-/;t.exports=function(e){return r(e.replace(o,"ms-"))}},{"./camelize":3}],5:[function(e,t,n){"use strict";var r=e("./isTextNode");t.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},{"./isTextNode":14}],6:[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},t.exports=o},{}],7:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(this,e("_process"))},{_process:18}],8:[function(e,t,n){"use strict";t.exports=function(e){try{e.focus()}catch(e){}}},{}],9:[function(e,t,n){"use strict";t.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},{}],10:[function(e,t,n){"use strict";var r=/([A-Z])/g;t.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},{}],11:[function(e,t,n){"use strict";var r=e("./hyphenate"),o=/^ms-/;t.exports=function(e){return r(e).replace(o,"-ms-")}},{"./hyphenate":10}],12:[function(e,t,n){(function(e){"use strict";var n=function(e){};"production"!==e.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});t.exports=function(e,t,r,o,a,i,l,u){if(n(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,o,a,i,l,u],d=0;(s=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(this,e("_process"))},{_process:18}],13:[function(e,t,n){"use strict";t.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},{}],14:[function(e,t,n){"use strict";var r=e("./isNode");t.exports=function(e){return r(e)&&3==e.nodeType}},{"./isNode":13}],15:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}t.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!o(e[n[i]],t[n[i]]))return!1;return!0}},{}],16:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction");if("production"!==n.env.NODE_ENV){r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}).apply(void 0,[t].concat(r))}}}t.exports=r}).call(this,e("_process"))},{"./emptyFunction":6,_process:18}],17:[function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var s in n)o.call(n,s)&&(l[s]=n[s]);if(r){i=r(n);for(var c=0;c<i.length;c++)a.call(n,i[c])&&(l[i[c]]=n[i[c]])}}return l}},{}],18:[function(e,t,n){var r,o,a=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}var s,c=[],d=!1,p=-1;function f(){d&&s&&(d=!1,s.length?c=s.concat(c):p=-1,c.length&&h())}function h(){if(!d){var e=u(f);d=!0;for(var t=c.length;t;){for(s=c,c=[];++p<t;)s&&s[p].run();p=-1,t=c.length}s=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||d||u(h)};function m(e,t){this.fun=e,this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function g(){}a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],19:[function(e,t,n){(function(n){"use strict";if("production"!==n.env.NODE_ENV)var r=e("fbjs/lib/invariant"),o=e("fbjs/lib/warning"),a=e("./lib/ReactPropTypesSecret"),i={};t.exports=function(e,t,l,u,s){if("production"!==n.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",l,c,typeof e[c]),d=e[c](t,c,u,l,null,a)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",l,c,typeof d),d instanceof Error&&!(d.message in i)){i[d.message]=!0;var p=s?s():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=p?p:"")}}}}).call(this,e("_process"))},{"./lib/ReactPropTypesSecret":20,_process:18,"fbjs/lib/invariant":12,"fbjs/lib/warning":16}],20:[function(e,t,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});for(var r={},o=["onAbort","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onCanPlay","onCanPlayThrough","onChange","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadedData","onLoadedMetadata","onLoadStart","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onPause","onPlay","onPlaying","onProgress","onRateChange","onScroll","onSeeked","onSeeking","onSelect","onStalled","onSubmit","onSuspend","onTimeUpdate","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onTransitionEnd","onVolumeChange","onWaiting","onWheel"],a=0;a<o.length;a++){var i=o[a];r[i]="func",r[i+"Capture"]="func"}n.default=r},{}],22:[function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(n,"__esModule",{value:!0});var a=e("react"),i=e("react-dom"),l=e("./EventsDict"),u="div",s={haikuOptions:"options",haikuStates:"states",haikuInitialStates:"states",haikuEventHandlers:"eventHandlers",haikuTimelines:"timelines",haikuVanities:"vanities"},c={tagName:"string",id:"string",className:"string",style:"object",width:"string",height:"string",onComponentWillMount:"func",onComponentWillUnmount:"func",onComponentDidMount:"func",onHaikuComponentWillInitialize:"func",onHaikuComponentDidMount:"func",onHaikuComponentDidInitialize:"func",onHaikuComponentWillUnmount:"func",haikuAdapter:"func",haikuCode:"object"},d={onComponentWillMount:!0,onComponentWillUnmount:!0,onComponentDidMount:!0,onHaikuComponentWillInitialize:!0,onHaikuComponentDidMount:!0,onHaikuComponentDidInitialize:!0,onHaikuComponentWillUnmount:!0,haikuAdapter:!0,haikuCode:!0};for(var p in l.default)c[p]=l.default[p];for(var f in s)c[f]="object";n.default=function(e,t){return function(n){r(p,n);function p(e){var t=n.call(this,e)||this;return t.state={randomId:"haiku-reactroot-"+function(e){for(var t="";t.length<e;)t+=h[Math.floor(Math.random()*h.length)];return t}(24)},t}return p.prototype.componentWillReceiveProps=function(e){if(this.haiku){var t=this.buildHaikuCompatibleConfigFromRawProps(e);this.haiku.assignConfig(t)}},p.prototype.componentWillMount=function(){this.props.onComponentWillMount&&this.props.onComponentWillMount(this)},p.prototype.componentWillUnmount=function(){this.props.onComponentWillUnmount&&this.props.onComponentWillUnmount(this),this.haiku&&this.haiku.callUnmount()},p.prototype.componentDidMount=function(){this.attemptMount()},p.prototype.attemptMount=function(){this.mount&&(this.createContext(this.props),this.props.onComponentDidMount&&this.props.onComponentDidMount(this,this.mount))},p.prototype.buildHaikuCompatibleConfigFromRawProps=function(e){var t={ref:this.mount,vanities:{"controlFlow.placeholder":function(e,t,n,r,o){!function e(t,n){if(t&&(n(t),t.children))for(var r=0;r<t.children.length;r++)e(t.children[r],n)}(this.mount,function(n){if(function(e,t){if(e.attributes){if(e.attributes["haiku-id"]&&t.getAttribute("haiku-id")===e.attributes["haiku-id"])return e.attributes["haiku-id"];if(e.attributes.id&&t.getAttribute("id")===e.attributes.id)return e.attributes.id}return null}(e,n)&&!o._didElementRenderSurrogate(e,t)){if("string"==typeof t.type||"function"==typeof t.type&&t.type.isHaikuAdapter){var r=document.createElement("div");n.parentNode.replaceChild(r,n),n=r,e.elementName="div"}n.style.visibility="hidden",i.render(t,n),window.requestAnimationFrame(function(){o._markElementSurrogateAsRendered(e,t),n.style.visibility="visible"}),o._markHorizonElement(e),o._markForFullFlush()}})}.bind(this)}};if(e)for(var n in e){var r=s[n];r?t[r]=e[n]:t[n]=e[n]}return t},p.prototype.createContext=function(n){var r,o=this.buildHaikuCompatibleConfigFromRawProps(n);if(n.haikuAdapter)if(n.haikuCode)r=n.haikuAdapter(n.haikuCode);else{if(!t)throw new Error("A Haiku code object is required if you supply a Haiku adapter");r=n.haikuAdapter(t)}else r=e;if(!r)throw new Error("A Haiku adapter is required");this.haiku?this.haiku.callRemount(o):this.haiku=r(this.mount,o)},p.prototype.createEventPropWrapper=function(e){return function(t,n){return e.call(this,t,n,this.haiku)}.bind(this)},p.prototype.buildHostElementPropsFromRawProps=function(e){var t={};for(var n in e)c[n]&&(l.default[n]?t[n]=this.createEventPropWrapper(e[n]):s[n]||d[n]||(t[n]=e[n]));var r=t.style||{};return delete t.style,o({id:this.state.randomId,style:o({position:"relative",margin:0,padding:0,border:0,width:"100%",height:"100%",transform:"matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"},r)},t)},p.prototype.assignMountFromRef=function(e){this.mount=e},p.prototype.render=function(){var e=this,t=this.buildHostElementPropsFromRawProps(this.props);return t.ref=function(t){e.assignMountFromRef(t)},a.createElement(t.tagName||u,t)},p.React=a,p.ReactDOM=i,p.isHaikuAdapter=!0,p}(a.Component)};var h="abcdefghijklmnopqrstuvwxyz"},{"./EventsDict":21,react:"react","react-dom":26}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./HaikuReactDOMAdapter");n.default=r.default},{"./HaikuReactDOMAdapter":22}],24:[function(e,t,n){(function(n){"use strict";"production"!==n.env.NODE_ENV&&function(){var n=require("react"),r=e("fbjs/lib/invariant"),o=e("fbjs/lib/warning"),a=e("fbjs/lib/ExecutionEnvironment"),i=e("object-assign"),l=e("fbjs/lib/emptyFunction"),u=e("fbjs/lib/EventListener"),s=e("fbjs/lib/getActiveElement"),c=e("fbjs/lib/shallowEqual"),d=e("fbjs/lib/containsNode"),p=e("fbjs/lib/focusNode"),f=e("fbjs/lib/emptyObject"),h=e("prop-types/checkPropTypes"),m=e("fbjs/lib/hyphenateStyleName"),g=e("fbjs/lib/camelizeStyleName");n||r(!1,"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var v={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0};function y(e,t){return(e&t)===t}var b={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=b,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{},i=e.DOMMutationMethods||{};for(var l in n){x.hasOwnProperty(l)&&r(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",l);var u=l.toLowerCase(),s=n[l],c={attributeName:u,attributeNamespace:null,propertyName:l,mutationMethod:null,mustUseProperty:y(s,t.MUST_USE_PROPERTY),hasBooleanValue:y(s,t.HAS_BOOLEAN_VALUE),hasNumericValue:y(s,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:y(s,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:y(s,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:y(s,t.HAS_STRING_BOOLEAN_VALUE)};if(c.hasBooleanValue+c.hasNumericValue+c.hasOverloadedBooleanValue<=1||r(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",l),a.hasOwnProperty(l)){var d=a[l];c.attributeName=d}o.hasOwnProperty(l)&&(c.attributeNamespace=o[l]),i.hasOwnProperty(l)&&(c.mutationMethod=i[l]),x[l]=c}}},C=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",k=C+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w="data-reactroot",x={};function T(e,t){if(P(e))return!1;if(e.length>2&&("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 S(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function E(e){return x.hasOwnProperty(e)?x[e]:null}function S(e){if(P(e))return!0;var t=E(e);if(t)return t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue;var n=e.toLowerCase().slice(0,5);return"data-"===n||"aria-"===n}function P(e){return v.hasOwnProperty(e)}var N=b,I=N.MUST_USE_PROPERTY,O=N.HAS_BOOLEAN_VALUE,_=N.HAS_NUMERIC_VALUE,R=N.HAS_POSITIVE_NUMERIC_VALUE,M=N.HAS_OVERLOADED_BOOLEAN_VALUE,D=N.HAS_STRING_BOOLEAN_VALUE,A={Properties:{allowFullScreen:O,async:O,autoFocus:O,autoPlay:O,capture:M,checked:I|O,cols:R,contentEditable:D,controls:O,default:O,defer:O,disabled:O,download:M,draggable:D,formNoValidate:O,hidden:O,loop:O,multiple:I|O,muted:I|O,noValidate:O,open:O,playsInline:O,readOnly:O,required:O,reversed:O,rows:R,rowSpan:_,scoped:O,seamless:O,selected:I|O,size:R,start:_,span:R,spellCheck:D,style:0,tabIndex:0,itemScope:O,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:D},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.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},F=N.HAS_STRING_BOOLEAN_VALUE,U="http://www.w3.org/1999/xlink",L="http://www.w3.org/XML/1998/namespace",H={Properties:{autoReverse:F,externalResourcesRequired:F,preserveAlpha:F},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:U,xlinkArcrole:U,xlinkHref:U,xlinkRole:U,xlinkShow:U,xlinkTitle:U,xlinkType:U,xmlBase:L,xmlLang:L,xmlSpace:L}},j=/[\-\:]([a-z])/g,z=function(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"].forEach(function(e){var t=e.replace(j,z);H.Properties[t]=0,H.DOMAttributeNames[t]=e}),N.injectDOMPropertyConfig(A),N.injectDOMPropertyConfig(H);var V={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&r(!1,"Injected invokeGuardedCallback() must be a function."),B=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,l,u){B.apply(V,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,l,u){if(V.invokeGuardedCallback.apply(this,arguments),V.hasCaughtError()){var s=V.clearCaughtError();V._hasRethrowError||(V._hasRethrowError=!0,V._rethrowError=s)}},rethrowCaughtError:function(){return K.apply(V,arguments)},hasCaughtError:function(){return V._hasCaughtError},clearCaughtError:function(){if(V._hasCaughtError){var e=V._caughtError;return V._caughtError=null,V._hasCaughtError=!1,e}r(!1,"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}},B=function(e,t,n,r,o,a,i,l,u){V._hasCaughtError=!1,V._caughtError=null;var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){V._caughtError=e,V._hasCaughtError=!0}};if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var W=document.createElement("react");B=function(e,t,n,r,o,a,i,l,u){var s=!0,c=Array.prototype.slice.call(arguments,3);var d=void 0,p=!1,f=!1;function h(e){d=e.error,p=!0,null===d&&0===e.colno&&0===e.lineno&&(f=!0)}var m="react-"+(e||"invokeguardedcallback");window.addEventListener("error",h),W.addEventListener(m,function e(){W.removeEventListener(m,e,!1),t.apply(n,c),s=!1},!1);var g=document.createEvent("Event");g.initEvent(m,!1,!1),W.dispatchEvent(g),s?(p?f&&(d=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error for more information.")):d=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),V._hasCaughtError=!0,V._caughtError=d):(V._hasCaughtError=!1,V._caughtError=null),window.removeEventListener("error",h)}}var K=function(){if(V._hasRethrowError){var e=V._rethrowError;throw V._rethrowError=null,V._hasRethrowError=!1,e}},q=null,Q={};function Y(){if(q)for(var e in Q){var t=Q[e],n=q.indexOf(e);if(n>-1||r(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!X[n]){t.extractEvents||r(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),X[n]=t;var o=t.eventTypes;for(var a in o)$(o[a],t,a)||r(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",a,e)}}}function $(e,t,n){Z.hasOwnProperty(n)&&r(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",n),Z[n]=e;var o=e.phasedRegistrationNames;if(o){for(var a in o)if(o.hasOwnProperty(a)){G(o[a],t,n)}return!0}return!!e.registrationName&&(G(e.registrationName,t,n),!0)}function G(e,t,n){J[e]&&r(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),J[e]=t,ee[e]=t.eventTypes[n].dependencies;var o=e.toLowerCase();te[o]=e,"onDoubleClick"===e&&(te.ondblclick=e)}var X=[],Z={},J={},ee={},te={};function ne(e){q&&r(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),q=Array.prototype.slice.call(e),Y()}function re(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];Q.hasOwnProperty(n)&&Q[n]===o||(Q[n]&&r(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",n),Q[n]=o,t=!0)}t&&Y()}var oe,ae=Object.freeze({plugins:X,eventNameDispatchConfigs:Z,registrationNameModules:J,registrationNameDependencies:ee,possibleRegistrationNames:te,injectEventPluginOrder:ne,injectEventPluginsByName:re}),ie=null,le=null,ue=null,se=function(e){ie=e.getFiberCurrentPropsFromNode,le=e.getInstanceFromNode,ue=e.getNodeFromInstance,o(ue&&le,"EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode.")};oe=function(e){var t=e._dispatchListeners,n=e._dispatchInstances,r=Array.isArray(t),a=r?t.length:t?1:0,i=Array.isArray(n),l=i?n.length:n?1:0;o(i===r&&l===a,"EventPluginUtils: Invalid `event`.")};function ce(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=ue(r),V.invokeGuardedCallbackAndCatchFirstError(o,n,void 0,e),e.currentTarget=null}function de(e,t){return null==t&&r(!1,"accumulateInto(...): Accumulated items must not be null or undefined."),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 pe(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var fe=null,he=function(e,t){e&&(!function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(oe(e),Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)ce(e,0,n[o],r[o]);else n&&ce(e,0,n,r);e._dispatchListeners=null,e._dispatchInstances=null}(e),e.isPersistent()||e.constructor.release(e))},me=function(e){return he(e)},ge=function(e){return he(e)};var ve={injectEventPluginOrder:ne,injectEventPluginsByName:re};function ye(e,t){var n,o=e.stateNode;if(!o)return null;var a=ie(o);return a?(n=a[t],function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,a)?null:(n&&"function"!=typeof n&&r(!1,"Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof n),n)):null}function be(e,t,n,r){for(var o,a=0;a<X.length;a++){var i=X[a];if(i){var l=i.extractEvents(e,t,n,r);l&&(o=de(o,l))}}return o}function Ce(e){e&&(fe=de(fe,e))}function ke(e){var t=fe;fe=null,t&&(pe(t,e?me:ge),fe&&r(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."),V.rethrowCaughtError())}var we=Object.freeze({injection:ve,getListener:ye,extractEvents:be,enqueueEvents:Ce,processEventQueue:ke}),xe=0,Te=1,Ee=2,Se=3,Pe=4,Ne=5,Ie=6,Oe=7,_e=8,Re=9,Me=10,De=Math.random().toString(36).slice(2),Ae="__reactInternalInstance$"+De,Fe="__reactEventHandlers$"+De;function Ue(e,t){t[Ae]=e}function Le(e){if(e[Ae])return e[Ae];for(var t=[];!e[Ae];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[Ae];if(r.tag===Ne||r.tag===Ie)return r;for(;e&&(r=e[Ae]);e=t.pop())n=r;return n}function He(e){var t=e[Ae];return t&&(t.tag===Ne||t.tag===Ie)?t:null}function je(e){if(e.tag===Ne||e.tag===Ie)return e.stateNode;r(!1,"getNodeFromInstance: Invalid argument.")}function ze(e){return e[Fe]||null}function Ve(e,t){e[Fe]=t}var Be=Object.freeze({precacheFiberNode:Ue,getClosestInstanceFromNode:Le,getInstanceFromNode:He,getNodeFromInstance:je,getFiberCurrentPropsFromNode:ze,updateFiberProps:Ve});function We(e){do{e=e.return}while(e&&e.tag!==Ne);return e||null}function Ke(e,t,n){for(var r=[];e;)r.push(e),e=We(e);var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function qe(e,t,n,r,o){for(var a=e&&t?function(e,t){for(var n=0,r=e;r;r=We(r))n++;for(var o=0,a=t;a;a=We(a))o++;for(;n-o>0;)e=We(e),n--;for(;o-n>0;)t=We(t),o--;for(var i=n;i--;){if(e===t||e===t.alternate)return e;e=We(e),t=We(t)}return null}(e,t):null,i=[];e&&e!==a;){var l=e.alternate;if(null!==l&&l===a)break;i.push(e),e=We(e)}for(var u=[];t&&t!==a;){var s=t.alternate;if(null!==s&&s===a)break;u.push(t),t=We(t)}for(var c=0;c<i.length;c++)n(i[c],"bubbled",r);for(var d=u.length;d-- >0;)n(u[d],"captured",o)}function Qe(e,t,n){o(e,"Dispatching inst must not be null");var r,a,i,l=(r=e,a=n,i=t,ye(r,a.dispatchConfig.phasedRegistrationNames[i]));l&&(n._dispatchListeners=de(n._dispatchListeners,l),n._dispatchInstances=de(n._dispatchInstances,e))}function Ye(e){e&&e.dispatchConfig.phasedRegistrationNames&&Ke(e._targetInst,Qe,e)}function $e(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;Ke(t?We(t):null,Qe,e)}}function Ge(e,t,n){if(e&&n&&n.dispatchConfig.registrationName){var r=ye(e,n.dispatchConfig.registrationName);r&&(n._dispatchListeners=de(n._dispatchListeners,r),n._dispatchInstances=de(n._dispatchInstances,e))}}function Xe(e){e&&e.dispatchConfig.registrationName&&Ge(e._targetInst,0,e)}function Ze(e){pe(e,Ye)}function Je(e,t,n,r){qe(n,r,Ge,e,t)}var et=Object.freeze({accumulateTwoPhaseDispatches:Ze,accumulateTwoPhaseDispatchesSkipTarget:function(e){pe(e,$e)},accumulateEnterLeaveDispatches:Je,accumulateDirectDispatches:function(e){pe(e,Xe)}}),tt=null;function nt(){return!tt&&a.canUseDOM&&(tt="textContent"in document.documentElement?"textContent":"innerText"),tt}var rt={_root:null,_startText:null,_fallbackText:null};function ot(){if(rt._fallbackText)return rt._fallbackText;var e,t,n=rt._startText,r=n.length,o=at(),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++);var l=t>1?1-t:void 0;return rt._fallbackText=o.slice(e,l),rt._fallbackText}function at(){return"value"in rt._root?rt._root.value:rt._root[nt()]}var it=!1,lt="function"==typeof Proxy,ut=10,st=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],ct={type:null,target:null,currentTarget:l.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function dt(e,t,n,r){delete this.nativeEvent,delete this.preventDefault,delete this.stopPropagation,this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){delete this[a];var i=o[a];i?this[a]=i(n):"target"===a?this.target=r:this[a]=n[a]}var u=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=u?l.thatReturnsTrue:l.thatReturnsFalse,this.isPropagationStopped=l.thatReturnsFalse,this}i(dt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=l.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=l.thatReturnsTrue)},persist:function(){this.isPersistent=l.thatReturnsTrue},isPersistent:l.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)Object.defineProperty(this,t,pt(t,e[t]));for(var n=0;n<st.length;n++)this[st[n]]=null;Object.defineProperty(this,"nativeEvent",pt("nativeEvent",null)),Object.defineProperty(this,"preventDefault",pt("preventDefault",l)),Object.defineProperty(this,"stopPropagation",pt("stopPropagation",l))}}),dt.Interface=ct,dt.augmentClass=function(e,t){var n=function(){};n.prototype=this.prototype;var r=new n;i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},this.Interface,t),e.augmentClass=this.augmentClass,mt(e)},lt&&(dt=new Proxy(dt,{construct:function(e,t){return this.apply(e,Object.create(e.prototype),t)},apply:function(e,t,n){return new Proxy(e.apply(t,n),{set:function(e,t,n){return"isPersistent"===t||e.constructor.Interface.hasOwnProperty(t)||-1!==st.indexOf(t)||(o(it||e.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."),it=!0),e[t]=n,!0}})}})),mt(dt);function pt(e,t){var n="function"==typeof t;return{configurable:!0,set:function(e){return r(n?"setting the method":"setting the property","This is effectively a no-op"),e},get:function(){return r(n?"accessing the method":"accessing the property",n?"This is a no-op function":"This is set to null"),t}};function r(t,n){o(!1,"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.",t,e,n)}}function ft(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 ht(e){e instanceof this||r(!1,"Trying to release an event instance into a pool of a different type."),e.destructor(),this.eventPool.length<ut&&this.eventPool.push(e)}function mt(e){e.eventPool=[],e.getPooled=ft,e.release=ht}var gt=dt;function vt(e,t,n,r){return gt.call(this,e,t,n,r)}gt.augmentClass(vt,{data:null});function yt(e,t,n,r){return gt.call(this,e,t,n,r)}gt.augmentClass(yt,{data:null});var bt=[9,13,27,32],Ct=229,kt=a.canUseDOM&&"CompositionEvent"in window,wt=null;a.canUseDOM&&"documentMode"in document&&(wt=document.documentMode);var xt=a.canUseDOM&&"TextEvent"in window&&!wt&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),Tt=a.canUseDOM&&(!kt||wt&&wt>8&&wt<=11);var Et=32,St=String.fromCharCode(Et),Pt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},Nt=!1;function It(e,t){switch(e){case"topKeyUp":return-1!==bt.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==Ct;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Ot(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}var _t=!1;function Rt(e,t,n,r){var o,a;kt?o=function(e){switch(e){case"topCompositionStart":return Pt.compositionStart;case"topCompositionEnd":return Pt.compositionEnd;case"topCompositionUpdate":return Pt.compositionUpdate}}(e):_t?It(e,n)&&(o=Pt.compositionEnd):"topKeyDown"===e&&n.keyCode===Ct&&(o=Pt.compositionStart);if(!o)return null;Tt&&(_t||o!==Pt.compositionStart?o===Pt.compositionEnd&&_t&&(a=ot()):(i=r,rt._root=i,rt._startText=at(),_t=!0));var i,l=vt.getPooled(o,t,n,r);if(a)l.data=a;else{var u=Ot(n);null!==u&&(l.data=u)}return Ze(l),l}function Mt(e,t){if(_t){if("topCompositionEnd"===e||!kt&&It(e,t)){var n=ot();return rt._root=null,rt._startText=null,rt._fallbackText=null,_t=!1,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":if(!((r=t).ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return Tt?null:t.data;default:return null}var r}function Dt(e,t,n,r){var o;if(!(o=xt?function(e,t){switch(e){case"topCompositionEnd":return Ot(t);case"topKeyPress":return t.which!==Et?null:(Nt=!0,St);case"topTextInput":var n=t.data;return n===St&&Nt?null:n;default:return null}}(e,n):Mt(e,n)))return null;var a=yt.getPooled(Pt.beforeInput,t,n,r);return a.data=o,Ze(a),a}var At={eventTypes:Pt,extractEvents:function(e,t,n,r){return[Rt(e,t,n,r),Dt(e,t,n,r)]}},Ft=null,Ut=null,Lt=null;function Ht(e){var t=le(e);if(t){Ft&&"function"==typeof Ft.restoreControlledState||r(!1,"Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=ie(t.stateNode);Ft.restoreControlledState(t.stateNode,t.type,n)}}var jt={injectFiberControlledHostComponent:function(e){Ft=e}};function zt(e){Ut?Lt?Lt.push(e):Lt=[e]:Ut=e}function Vt(){if(Ut){var e=Ut,t=Lt;if(Ut=null,Lt=null,Ht(e),t)for(var n=0;n<t.length;n++)Ht(t[n])}}var Bt=Object.freeze({injection:jt,enqueueStateRestore:zt,restoreStateIfNeeded:Vt}),Wt=function(e,t){return e(t)},Kt=!1;function qt(e,t){if(Kt)return Wt(e,t);Kt=!0;try{return Wt(e,t)}finally{Kt=!1,Vt()}}var Qt={injectFiberBatchedUpdates:function(e){Wt=e}},Yt={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 $t(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yt[e.type]:"textarea"===t}var Gt=1,Xt=3,Zt=8,Jt=9,en=11;function tn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Xt?t.parentNode:t}var nn;a.canUseDOM&&(nn=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function rn(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&nn&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}function on(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function an(e){return e._valueTracker}function ln(e){an(e)||(e._valueTracker=function(e){var t=on(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 un(e){if(!e)return!1;var t=an(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=on(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}var sn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}};function cn(e,t,n){var r=gt.getPooled(sn.change,e,t,n);return r.type="change",zt(n),Ze(r),r}var dn=null,pn=null;function fn(e){Ce(e),ke(!1)}function hn(e){if(un(je(e)))return e}function mn(e,t){if("topChange"===e)return t}var gn=!1;a.canUseDOM&&(gn=rn("input")&&(!document.documentMode||document.documentMode>9));function vn(){dn&&(dn.detachEvent("onpropertychange",yn),dn=null,pn=null)}function yn(e){if("value"===e.propertyName){hn(pn)&&qt(fn,cn(pn,t=e,tn(t)));var t}}function bn(e,t,n){"topFocus"===e?(vn(),pn=n,(dn=t).attachEvent("onpropertychange",yn)):"topBlur"===e&&vn()}function Cn(e,t){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return hn(pn)}function kn(e,t){if("topClick"===e)return hn(t)}function wn(e,t){if("topInput"===e||"topChange"===e)return hn(t)}var xn={eventTypes:sn,_isInputEventSupported:gn,extractEvents:function(e,t,n,r){var o,a,i=t?je(t):window;if(!function(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}(i)?$t(i)?gn?o=wn:(o=Cn,a=bn):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(i)&&(o=kn):o=mn,o){var l=o(e,t);if(l){return cn(l,n,r)}}a&&a(e,i,t),"topBlur"===e&&function(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}(t,i)}};function Tn(e,t,n,r){return gt.call(this,e,t,n,r)}gt.augmentClass(Tn,{view:null,detail:null});var En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=En[e];return!!n&&!!t[n]}function Pn(e){return Sn}var Nn={screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}};function In(e,t,n,r){return Tn.call(this,e,t,n,r)}Tn.augmentClass(In,Nn);var On={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},_n={eventTypes:On,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var o;if(r.window===r)o=r;else{var a=r.ownerDocument;o=a?a.defaultView||a.parentWindow:window}var i,l;if("topMouseOut"===e){i=t;var u=n.relatedTarget||n.toElement;l=u?Le(u):null}else i=null,l=t;if(i===l)return null;var s=null==i?o:je(i),c=null==l?o:je(l),d=In.getPooled(On.mouseLeave,i,n,r);d.type="mouseleave",d.target=s,d.relatedTarget=c;var p=In.getPooled(On.mouseEnter,l,n,r);return p.type="mouseenter",p.target=c,p.relatedTarget=s,Je(d,p,i,l),[d,p]}};function Rn(e){return e._reactInternalFiber}var Mn=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dn=Mn.ReactCurrentOwner,An=Mn.ReactDebugCurrentFrame;function Fn(e){var t=e.type;return"string"==typeof t?t:"function"==typeof t?t.displayName||t.name:null}var Un=0,Ln=1,Hn=2,jn=4,zn=6,Vn=8,Bn=16,Wn=32,Kn=64,qn=128,Qn=1,Yn=2,$n=3;function Gn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&Hn)!==Un)return Qn;for(;t.return;)if(((t=t.return).effectTag&Hn)!==Un)return Qn}return t.tag===Se?Yn:$n}function Xn(e){return Gn(e)===Yn}function Zn(e){var t=Dn.current;if(null!==t&&t.tag===Ee){var n=t,r=n.stateNode;o(r._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Fn(n)||"A component"),r._warnedAboutRefsInRender=!0}var a=Rn(e);return!!a&&Gn(a)===Yn}function Jn(e){Gn(e)!==Yn&&r(!1,"Unable to find node on an unmounted component.")}function er(e){var t=e.alternate;if(!t){var n=Gn(e);return n===$n&&r(!1,"Unable to find node on an unmounted component."),n===Qn?null:e}for(var o=e,a=t;;){var i=o.return,l=i?i.alternate:null;if(!i||!l)break;if(i.child===l.child){for(var u=i.child;u;){if(u===o)return Jn(i),e;if(u===a)return Jn(i),t;u=u.sibling}r(!1,"Unable to find node on an unmounted component.")}if(o.return!==a.return)o=i,a=l;else{for(var s=!1,c=i.child;c;){if(c===o){s=!0,o=i,a=l;break}if(c===a){s=!0,a=i,o=l;break}c=c.sibling}if(!s){for(c=l.child;c;){if(c===o){s=!0,o=l,a=i;break}if(c===a){s=!0,a=l,o=i;break}c=c.sibling}s||r(!1,"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}o.alternate!==a&&r(!1,"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}return o.tag!==Se&&r(!1,"Unable to find node on an unmounted component."),o.stateNode.current===o?e:t}var tr=10,nr=[];function rr(e){for(;e.return;)e=e.return;return e.tag!==Se?null:e.stateNode.containerInfo}function or(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=rr(n);if(!r)break;e.ancestors.push(n),n=Le(r)}while(n);for(var o=0;o<e.ancestors.length;o++)t=e.ancestors[o],ir(e.topLevelType,t,e.nativeEvent,tn(e.nativeEvent))}var ar=!0,ir=void 0;function lr(e){ir=e}function ur(e){ar=!!e}function sr(){return ar}function cr(e,t,n){return n?u.listen(n,t,pr.bind(null,e)):null}function dr(e,t,n){return n?u.capture(n,t,pr.bind(null,e)):null}function pr(e,t){if(ar){var n=Le(tn(t));null===n||"number"!=typeof n.tag||Xn(n)||(n=null);var r=function(e,t,n){if(nr.length){var r=nr.pop();return r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]}}(e,t,n);try{qt(or,r)}finally{(o=r).topLevelType=null,o.nativeEvent=null,o.targetInst=null,o.ancestors.length=0,nr.length<tr&&nr.push(o)}var o}}var fr=Object.freeze({get _enabled(){return ar},get _handleTopLevel(){return ir},setHandleTopLevel:lr,setEnabled:ur,isEnabled:sr,trapBubbledEvent:cr,trapCapturedEvent:dr,dispatchEvent:pr});function hr(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 mr={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionend:hr("Transition","TransitionEnd")},gr={},vr={};a.canUseDOM&&(vr=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);function yr(e){if(gr[e])return gr[e];if(!mr[e])return e;var t=mr[e];for(var n in t)if(t.hasOwnProperty(n)&&n in vr)return gr[e]=t[n];return""}var br={topLevelTypes:{topAbort:"abort",topAnimationEnd:yr("animationend")||"animationend",topAnimationIteration:yr("animationiteration")||"animationiteration",topAnimationStart:yr("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:yr("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"}}.topLevelTypes,Cr={},kr=0,wr="_reactListenersID"+(""+Math.random()).slice(2);function xr(e){return Object.prototype.hasOwnProperty.call(e,wr)||(e[wr]=kr++,Cr[e[wr]]={}),Cr[e[wr]]}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Sr(e,t){for(var n=Tr(e),r=0,o=0;n;){if(n.nodeType===Xt){if(o=r+n.textContent.length,r<=t&&o>=t)return{node:n,offset:t-r};r=o}n=Tr(Er(n))}}function Pr(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,a=t.focusOffset;try{n.nodeType,o.nodeType}catch(e){return null}return function(e,t,n,r,o){var a=0,i=-1,l=-1,u=0,s=0,c=e,d=null;e:for(;;){for(var p=null;c!==t||0!==n&&c.nodeType!==Xt||(i=a+n),c!==r||0!==o&&c.nodeType!==Xt||(l=a+o),c.nodeType===Xt&&(a+=c.nodeValue.length),null!==(p=c.firstChild);)d=c,c=p;for(;;){if(c===e)break e;if(d===t&&++u===n&&(i=a),d===r&&++s===o&&(l=a),null!==(p=c.nextSibling))break;d=(c=d).parentNode}c=p}if(-1===i||-1===l)return null;return{start:i,end:l}}(e,n,r,o,a)}function Nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Ir(){var e=s();return{focusedElem:e,selectionRange:Nr(e)?function(e){var t=void 0;t="selectionStart"in e?{start:e.selectionStart,end:e.se