UNPKG

react-autocomplete-places

Version:
30 lines 59.9 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getLatLng=t.geocodeByPlaceId=t.geocodeByAddress=void 0;var o=n(6),a=r(o),i=n(8);t.geocodeByAddress=i.geocodeByAddress,t.geocodeByPlaceId=i.geocodeByPlaceId,t.getLatLng=i.getLatLng,t.default=a.default},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){v&&d&&(v=!1,d.length?y=d.concat(y):g=-1,y.length&&u())}function u(){if(!v){var e=o(i);v=!0;for(var t=y.length;t;){for(d=y,y=[];++g<t;)d&&d[g].run();g=-1,t=y.length}d=null,v=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var l,f,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,y=[],v=!1,g=-1;p.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];y.push(new c(e,t)),1!==y.length||v||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t){/* object-assign (c) Sindre Sorhus @license MIT */ "use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,c=n(e),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var l in r)a.call(r,l)&&(c[l]=r[l]);if(o){u=o(r);for(var f=0;f<u.length;f++)i.call(r,u[f])&&(c[u[f]]=r[u[f]])}}return c}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r,c,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(u(e,l)){var f;try{if("function"!=typeof e[l]){var p=Error((c||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.");throw p.name="Invariant Violation",p}f=e[l](n,l,c,r,null,a)}catch(e){f=e}if(!f||f instanceof Error||o((c||"React class")+": type specification of "+r+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in i)){i[f.message]=!0;var d=s?s():"";o("Failed "+r+" type: "+f.message+(null!=d?d:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var a=n(3),i={},u=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(i={})},e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";"production"===t.env.NODE_ENV?e.exports=n(14):e.exports=n(13)}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=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}}(),s=n(17),l=r(s),f=n(12),p=r(f),d=n(9),y=r(d),v=n(7),g=function(e){return{mainText:e.main_text,secondaryText:e.secondary_text}},m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.init=function(){if(!window.google)throw new Error("[react-autocomplete-places]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-autocomplete-places#load-google-library");if(!window.google.maps.places)throw new Error("[react-autocomplete-places]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-autocomplete-places#load-google-library");n.autocompleteService=new window.google.maps.places.AutocompleteService,n.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,n.setState(function(e){return e.ready?null:{ready:!0}})},n.autocompleteCallback=function(e,t){if(n.setState({loading:!1}),t!==n.autocompleteOK)return void n.props.onError(t,n.clearSuggestions);var r=n.props.highlightFirstSuggestion;n.setState({suggestions:e.map(function(e,t){return{id:e.id,description:e.description,placeId:e.place_id,active:!(!r||0!==t),index:t,formattedSuggestion:g(e.structured_formatting),matchedSubstrings:e.matched_substrings,terms:e.terms,types:e.types}})})},n.fetchPredictions=function(){var e=n.props,t=e.value,r=e.getSuggestionUrl,o=n;if(t.length){n.setState({loading:!0});var a=r;if(!a)return void o.autocompleteService.getPlacePredictions(u({},o.props.searchOptions,{input:t}),o.autocompleteCallback);fetch(a).then(function(e){return e.json()}).then(function(e){"OK"===e.status||e.predictions.length>0?o.autocompleteCallback(e.predictions,window.google.maps.places.PlacesServiceStatus.OK):o.autocompleteService.getPlacePredictions(u({},o.props.searchOptions,{input:t}),o.autocompleteCallback)}).catch(function(){o.autocompleteService.getPlacePredictions(u({},o.props.searchOptions,{input:t}),o.autocompleteCallback)})}},n.clearSuggestions=function(){n.setState({suggestions:[]})},n.clearActive=function(){n.setState({suggestions:n.state.suggestions.map(function(e){return u({},e,{active:!1})})})},n.handleSelect=function(e,t){n.clearSuggestions(),n.props.onSelect?n.props.onSelect(e,t):n.props.onChange(e)},n.getActiveSuggestion=function(){return n.state.suggestions.find(function(e){return e.active})},n.selectActiveAtIndex=function(e){var t=n.state.suggestions.find(function(t){return t.index===e}).description;n.setActiveAtIndex(e),n.props.onChange(t)},n.selectUserInputValue=function(){n.clearActive(),n.props.onChange(n.state.userInputValue)},n.handleEnterKey=function(){var e=n.getActiveSuggestion();void 0===e?n.handleSelect(n.props.value,null):n.handleSelect(e.description,e.placeId)},n.handleDownKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(0):e.index===n.state.suggestions.length-1?n.selectUserInputValue():n.selectActiveAtIndex(e.index+1)}},n.handleUpKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(n.state.suggestions.length-1):0===e.index?n.selectUserInputValue():n.selectActiveAtIndex(e.index-1)}},n.handleInputKeyDown=function(e){switch(e.key){case"Enter":e.preventDefault(),n.handleEnterKey();break;case"ArrowDown":e.preventDefault(),n.handleDownKey();break;case"ArrowUp":e.preventDefault(),n.handleUpKey();break;case"Escape":n.clearSuggestions()}},n.setActiveAtIndex=function(e){n.setState({suggestions:n.state.suggestions.map(function(t,n){return n===e?u({},t,{active:!0}):u({},t,{active:!1})})})},n.handleInputChange=function(e){var t=e.target.value;return n.props.onChange(t),n.setState({userInputValue:t}),t?void(n.props.shouldFetchSuggestions&&n.debouncedFetchPredictions()):void n.clearSuggestions()},n.handleInputOnBlur=function(){n.mousedownOnSuggestion||n.clearSuggestions()},n.getActiveSuggestionId=function(){var e=n.getActiveSuggestion();return e?"PlacesAutocomplete__suggestion-"+e.placeId:void 0},n.getIsExpanded=function(){return n.state.suggestions.length>0},n.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.hasOwnProperty("value"))throw new Error("[react-autocomplete-places]: getInputProps does not accept `value`. Use `value` prop instead");if(e.hasOwnProperty("onChange"))throw new Error("[react-autocomplete-places]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var t={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":n.getIsExpanded(),"aria-activedescendant":n.getActiveSuggestionId(),disabled:!n.state.ready};return u({},t,e,{onKeyDown:(0,v.compose)(n.handleInputKeyDown,e.onKeyDown),onBlur:(0,v.compose)(n.handleInputOnBlur,e.onBlur),value:n.props.value,onChange:function(e){n.handleInputChange(e)}})},n.getSuggestionItemProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handleSuggestionMouseEnter.bind(n,e.index),o=n.handleSuggestionClick.bind(n,e);return u({},t,{key:e.id,id:n.getActiveSuggestionId(),role:"option",onMouseEnter:(0,v.compose)(r,t.onMouseEnter),onMouseLeave:(0,v.compose)(n.handleSuggestionMouseLeave,t.onMouseLeave),onMouseDown:(0,v.compose)(n.handleSuggestionMouseDown,t.onMouseDown),onMouseUp:(0,v.compose)(n.handleSuggestionMouseUp,t.onMouseUp),onTouchStart:(0,v.compose)(n.handleSuggestionTouchStart,t.onTouchStart),onTouchEnd:(0,v.compose)(n.handleSuggestionMouseUp,t.onTouchEnd),onClick:(0,v.compose)(o,t.onClick)})},n.handleSuggestionMouseEnter=function(e){n.setActiveAtIndex(e)},n.handleSuggestionMouseLeave=function(){n.mousedownOnSuggestion=!1,n.clearActive()},n.handleSuggestionMouseDown=function(e){e.preventDefault(),n.mousedownOnSuggestion=!0},n.handleSuggestionTouchStart=function(){n.mousedownOnSuggestion=!0},n.handleSuggestionMouseUp=function(){n.mousedownOnSuggestion=!1},n.handleSuggestionClick=function(e,t){t&&t.preventDefault&&t.preventDefault();var r=e.description,o=e.placeId;n.handleSelect(r,o),setTimeout(function(){n.mousedownOnSuggestion=!1})},n.state={loading:!1,suggestions:[],userInputValue:e.value,ready:!e.googleCallbackName},n.debouncedFetchPredictions=(0,y.default)(n.fetchPredictions,n.props.debounce),n}return i(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props.googleCallbackName;e?window.google?this.init():window[e]=this.init:this.init()}},{key:"componentWillUnmount",value:function(){var e=this.props.googleCallbackName;e&&window[e]&&delete window[e]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),t}(l.default.Component);m.propTypes={onChange:p.default.func.isRequired,value:p.default.string.isRequired,children:p.default.func.isRequired,onError:p.default.func,onSelect:p.default.func,getSuggestionUrl:p.default.string,searchOptions:p.default.shape({bounds:p.default.object,componentRestrictions:p.default.object,location:p.default.object,offset:p.default.oneOfType([p.default.number,p.default.string]),radius:p.default.oneOfType([p.default.number,p.default.string]),types:p.default.array}),debounce:p.default.number,highlightFirstSuggestion:p.default.bool,shouldFetchSuggestions:p.default.bool,googleCallbackName:p.default.string},m.defaultProps={onError:function(e,t){return console.error("[react-autocomplete-places]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ",e)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},t.default=m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e&&e.apply(void 0,n)})}},t.pick=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.geocodeByAddress=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise(function(r,o){t.geocode({address:e},function(e,t){t!==n&&o(t),r(e)})})},t.getLatLng=function(e){return new Promise(function(t,n){try{var r={lat:"function"==typeof e.geometry.location.lat?e.geometry.location.lat():e.geometry.location.lat,lng:"function"==typeof e.geometry.location.lng?e.geometry.location.lng():e.geometry.location.lng};t(r)}catch(e){n(e)}})},t.geocodeByPlaceId=function(e,t){var n=new window.google.maps.Geocoder,r=window.google.maps.GeocoderStatus.OK;return new Promise(function(o,a){var i=t;return i?void fetch(i).then(function(e){return e.json()}).then(function(t){if("OK"==t.status){var i=[];i.push(t.result),o(i)}else n.geocode({placeId:e},function(e,t){t!==r&&a(t),o(e)})}).catch(function(){n.geocode({placeId:e},function(e,t){t!==r&&a(t),o(e)})}):void n.geocode({placeId:e},function(e,t){t!==r&&a(t),o(e)})})}},function(e,t){(function(t){function n(e,t,n){function o(t){var n=v,r=g;return v=g=void 0,x=t,h=e.apply(r,n)}function a(e){return x=e,b=setTimeout(l,t),P?o(e):h}function c(e){var n=e-_,r=e-x,o=t-n;return j?S(o,m-r):o}function s(e){var n=e-_,r=e-x;return void 0===_||n>=t||n<0||j&&r>=m}function l(){var e=O();return s(e)?f(e):void(b=setTimeout(l,c(e)))}function f(e){return b=void 0,k&&v?o(e):(v=g=void 0,h)}function p(){void 0!==b&&clearTimeout(b),x=0,v=_=g=b=void 0}function d(){return void 0===b?h:f(O())}function y(){var e=O(),n=s(e);if(v=arguments,g=this,_=e,n){if(void 0===b)return a(_);if(j)return b=setTimeout(l,t),o(_)}return void 0===b&&(b=setTimeout(l,t)),h}var v,g,m,h,b,_,x=0,P=!1,j=!1,k=!0;if("function"!=typeof e)throw new TypeError(u);return t=i(t)||0,r(n)&&(P=!!n.leading,j="maxWait"in n,m=j?w(i(n.maxWait)||0,t):m,k="trailing"in n?!!n.trailing:k),y.cancel=p,y.flush=d,y}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&b.call(e)==s}function i(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=p.test(e);return n||d.test(e)?y(e.slice(2),n?2:8):f.test(e)?c:+e}var u="Expected a function",c=NaN,s="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,d=/^0o[0-7]+$/i,y=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),h=Object.prototype,b=h.toString,w=Math.max,S=Math.min,O=function(){return m.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(){}function o(){}var a=n(3);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var u=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 u.name="Invariant Violation",u}}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:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){(function(t){"use strict";function r(){return null}var o=n(5),a=n(2),i=n(3),u=n(4),c=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function l(e){var t=e&&(I&&e[I]||e[A]);if("function"==typeof t)return t}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function d(e){function r(r,u,c,l,f,d,y){if(l=l||T,d=d||c,y!==i){if(n){var v=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 v.name="Invariant Violation",v}if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+c;!o[g]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[g]=!0,a++)}}return null==u[c]?r?new p(null===u[c]?"The "+f+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`."):"The "+f+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(u,c,l,f,d)}if("production"!==t.env.NODE_ENV)var o={},a=0;var u=r.bind(null,!1);return u.isRequired=r.bind(null,!0),u}function y(e){function t(t,n,r,o,a,i){var u=t[n],c=E(u);if(c!==e){var s=C(u);return new p("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return d(t)}function v(){return d(r)}function g(e){function t(t,n,r,o,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var c=E(u);return new p("Invalid "+o+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var l=e(u,s,r,o,a+"["+s+"]",i);if(l instanceof Error)return l}return null}return d(t)}function m(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){var u=E(i);return new p("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return d(t)}function h(){function e(e,t,n,r,a){var i=e[t];if(!o.isValidElementType(i)){var u=E(i);return new p("Invalid "+r+" `"+a+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement type."))}return null}return d(e)}function b(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||T,u=R(t[n]);return new p("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+i+"`."))}return null}return d(t)}function w(e){function n(t,n,r,o,a){for(var i=t[n],u=0;u<e.length;u++)if(f(i,e[u]))return null;var c=JSON.stringify(e,function(e,t){var n=C(t);return"symbol"===n?String(t):t});return new p("Invalid "+o+" `"+a+"` of value `"+String(i)+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(e)?d(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function S(e){function t(t,n,r,o,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=E(u);if("object"!==s)return new p("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."));for(var l in u)if(c(u,l)){var f=e(u,l,r,o,a+"."+l,i);if(f instanceof Error)return f}return null}return d(t)}function O(e){function n(t,n,r,o,a){for(var u=0;u<e.length;u++){var c=e[u];if(null==c(t,n,r,o,a,i))return null}return new p("Invalid "+o+" `"+a+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?s("Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r;for(var o=0;o<e.length;o++){var a=e[o];if("function"!=typeof a)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(a)+" at index "+o+"."),r}return d(n)}function _(){function e(e,t,n,r,o){return j(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return d(e)}function x(e){function t(t,n,r,o,a){var u=t[n],c=E(u);if("object"!==c)return new p("Invalid "+o+" `"+a+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in e){var l=e[s];if(l){var f=l(u,s,r,o,a+"."+s,i);if(f)return f}}return null}return d(t)}function P(e){function t(t,n,r,o,u){var c=t[n],s=E(c);if("object"!==s)return new p("Invalid "+o+" `"+u+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."));var l=a({},t[n],e);for(var f in l){var d=e[f];if(!d)return new p("Invalid "+o+" `"+u+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(c,f,r,o,u+"."+f,i);if(y)return y}return null}return d(t)}function j(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(j);if(null===t||e(t))return!0;var n=l(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!j(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!j(a[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function E(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function C(e){if("undefined"==typeof e||null===e)return""+e;var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function R(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var I="function"==typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",D={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:g,element:m(),elementType:h(),instanceOf:b,node:_(),objectOf:S,oneOf:w,oneOfType:O,shape:x,exact:P};return p.prototype=Error.prototype,D.checkPropTypes=u,D.resetWarningCache=u.resetWarningCache,D.PropTypes=D,D}}).call(t,n(1))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r=n(5),o=!0;e.exports=n(11)(r.isElement,o)}else e.exports=n(10)()}).call(t,n(1))},function(e,t,n){(function(e){/** @license React v16.12.0 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";"production"!==e.env.NODE_ENV&&!function(){function e(e){return"string"==typeof e||"function"==typeof e||e===b||e===P||e===S||e===w||e===k||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===$||e.$$typeof===C||e.$$typeof===O||e.$$typeof===_||e.$$typeof===j||e.$$typeof===R||e.$$typeof===I||e.$$typeof===A)}function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case m:var n=e.type;switch(n){case x:case P:case b:case S:case w:case k:return n;default:var r=n&&n.$$typeof;switch(r){case _:case j:case $:case C:case O:return r;default:return t}}case h:return t}}}function r(e){return G||(G=!0,M(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===x}function o(e){return n(e)===P}function a(e){return n(e)===_}function i(e){return n(e)===O}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}function c(e){return n(e)===j}function s(e){return n(e)===b}function l(e){return n(e)===$}function f(e){return n(e)===C}function p(e){return n(e)===h}function d(e){return n(e)===S}function y(e){return n(e)===w}function v(e){return n(e)===k}Object.defineProperty(t,"__esModule",{value:!0});var g="function"==typeof Symbol&&Symbol.for,m=g?Symbol.for("react.element"):60103,h=g?Symbol.for("react.portal"):60106,b=g?Symbol.for("react.fragment"):60107,w=g?Symbol.for("react.strict_mode"):60108,S=g?Symbol.for("react.profiler"):60114,O=g?Symbol.for("react.provider"):60109,_=g?Symbol.for("react.context"):60110,x=g?Symbol.for("react.async_mode"):60111,P=g?Symbol.for("react.concurrent_mode"):60111,j=g?Symbol.for("react.forward_ref"):60112,k=g?Symbol.for("react.suspense"):60113,E=g?Symbol.for("react.suspense_list"):60120,C=g?Symbol.for("react.memo"):60115,$=g?Symbol.for("react.lazy"):60116,R=g?Symbol.for("react.fundamental"):60117,I=g?Symbol.for("react.responder"):60118,A=g?Symbol.for("react.scope"):60119,T=function(){},D=function(e){for(var t=arguments.length,n=new 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.warn(a);try{throw new Error(a)}catch(e){}};T=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];D.apply(void 0,[t].concat(r))}};var M=T,N=x,U=P,V=_,F=O,L=m,z=j,q=b,W=$,B=C,K=h,Y=S,H=w,J=k,G=!1;t.typeOf=n,t.AsyncMode=N,t.ConcurrentMode=U,t.ContextConsumer=V,t.ContextProvider=F,t.Element=L,t.ForwardRef=z,t.Fragment=q,t.Lazy=W,t.Memo=B,t.Portal=K,t.Profiler=Y,t.StrictMode=H,t.Suspense=J,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=a,t.isContextProvider=i,t.isElement=u,t.isForwardRef=c,t.isFragment=s,t.isLazy=l,t.isMemo=f,t.isPortal=p,t.isProfiler=d,t.isStrictMode=y,t.isSuspense=v}()}).call(t,n(1))},function(e,t){/** @license React v16.12.0 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case d:case u:case s:case c:case v:return e;default:switch(e=e&&e.$$typeof){case f:case y:case h:case m:case l:return e;default:return t}}case i:return t}}}function r(e){return n(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,y=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;t.typeOf=n,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=l,t.Element=a,t.ForwardRef=y,t.Fragment=u,t.Lazy=h,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=v,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===u||e===d||e===s||e===c||e===v||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===S)},t.isAsyncMode=function(e){return r(e)||n(e)===p},t.isConcurrentMode=r,t.isContextConsumer=function(e){return n(e)===f},t.isContextProvider=function(e){return n(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return n(e)===y},t.isFragment=function(e){return n(e)===u},t.isLazy=function(e){return n(e)===h},t.isMemo=function(e){return n(e)===m},t.isPortal=function(e){return n(e)===i},t.isProfiler=function(e){return n(e)===s},t.isStrictMode=function(e){return n(e)===c},t.isSuspense=function(e){return n(e)===v}},function(e,t,n){(function(t){/** @license React v16.12.0 * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";"production"!==t.env.NODE_ENV&&!function(){function t(e){if(null===e||"object"!=typeof e)return null;var t=Ve&&e[Ve]||e[Fe];return"function"==typeof t?t:null}function r(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;Ke[o]||(Be(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),Ke[o]=!0)}function o(e,t,n){this.props=e,this.context=t,this.refs=He,this.updater=n||Ye}function a(){}function i(e,t,n){this.props=e,this.context=t,this.refs=He,this.updater=n||Ye}function u(){var e={current:null};return Object.seal(e),e}function c(e){return e._status===ot?e._result:null}function s(e,t,n){var r=t.displayName||t.name||"";return e.displayName||(""!==r?n+"("+r+")":n)}function l(e){if(null==e)return null;if("number"==typeof e.tag&&Be(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Pe:return"Fragment";case xe:return"Portal";case ke:return"Profiler";case je:return"StrictMode";case Ie:return"Suspense";case Ae:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ce:return"Context.Consumer";case Ee:return"Context.Provider";case Re:return s(e,e.render,"ForwardRef");case Te:return l(e.type);case De:var t=e,n=c(t);if(n)return l(n)}return null}function f(e){it=e}function p(e){if(yt.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function d(e){if(yt.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function y(e,t){var n=function(){lt||(lt=!0,Be(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function v(e,t){var n=function(){ft||(ft=!0,Be(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function g(e,t,n,r,o){var a,i={},u=null,c=null;void 0!==n&&(u=""+n),d(t)&&(u=""+t.key),p(t)&&(c=t.ref);for(a in t)yt.call(t,a)&&!vt.hasOwnProperty(a)&&(i[a]=t[a]);if(e&&e.defaultProps){var s=e.defaultProps;for(a in s)void 0===i[a]&&(i[a]=s[a])}if(u||c){var l="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&y(i,l),c&&v(i,l)}return gt(e,u,c,o,r,tt.current,i)}function m(e,t,n){var r,o={},a=null,i=null,u=null,c=null;if(null!=t){p(t)&&(i=t.ref),d(t)&&(a=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source;for(r in t)yt.call(t,r)&&!vt.hasOwnProperty(r)&&(o[r]=t[r])}var s=arguments.length-2;if(1===s)o.children=n;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var g=e.defaultProps;for(r in g)void 0===o[r]&&(o[r]=g[r])}if(a||i){var m="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&y(o,m),i&&v(o,m)}return gt(e,a,i,u,c,tt.current,o)}function h(e,t){var n=gt(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function b(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o=be({},e.props),a=e.key,i=e.ref,u=e._self,c=e._source,s=e._owner;if(null!=t){p(t)&&(i=t.ref,s=tt.current),d(t)&&(a=""+t.key);var l;e.type&&e.type.defaultProps&&(l=e.type.defaultProps);for(r in t)yt.call(t,r)&&!vt.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==l?o[r]=l[r]:o[r]=t[r])}var f=arguments.length-2;if(1===f)o.children=n;else if(f>1){for(var y=Array(f),v=0;v<f;v++)y[v]=arguments[v+2];o.children=y}return gt(e.type,a,i,u,c,s,o)}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===_e}function S(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function O(e){return(""+e).replace(wt,"$&/")}function _(e,t,n,r){if(Ot.length){var o=Ot.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function x(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Ot.length<St&&Ot.push(e)}function P(e,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case _e:case xe:i=!0}}if(i)return r(o,e,""===n?mt+k(e,0):n),1;var u,c,s=0,l=""===n?mt:n+ht;if(Array.isArray(e))for(var f=0;f<e.length;f++)u=e[f],c=l+k(u,f),s+=P(u,c,r,o);else{var p=t(e);if("function"==typeof p){p===e.entries&&(bt?void 0:dt(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead."),bt=!0);for(var d,y=p.call(e),v=0;!(d=y.next()).done;)u=d.value,c=l+k(u,v++),s+=P(u,c,r,o)}else if("object"===a){var g="";g=" If you meant to render a collection of children, use an array instead."+at.getStackAddendum();var m=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===m?"object with keys {"+Object.keys(e).join(", ")+"}":m)+")."+g)}}return s}function j(e,t,n){return null==e?0:P(e,"",t,n)}function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?S(e.key):t.toString(36)}function E(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function C(e,t,n){if(null==e)return e;var r=_(null,null,t,n);j(e,E,r),x(r)}function $(e,t,n){var r=e.result,o=e.keyPrefix,a=e.func,i=e.context,u=a.call(i,t,e.count++);Array.isArray(u)?R(u,r,n,function(e){return e}):null!=u&&(w(u)&&(u=h(u,o+(!u.key||t&&t.key===u.key?"":O(u.key)+"/")+n)),r.push(u))}function R(e,t,n,r,o){var a="";null!=n&&(a=O(n)+"/");var i=_(t,a,r,o);j(e,$,i),x(i)}function I(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r}function A(e){return j(e,function(){return null},null)}function T(e){var t=[];return R(e,t,null,function(e){return e}),t}function D(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}function M(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t?Be(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",t):void 0;var n={$$typeof:Ce,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:Ee,_context:n};var r=!1,o=!1,a={$$typeof:Ce,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(a,{Provider:{get:function(){return o||(o=!0,dt(!1,"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,dt(!1,"Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=a,n._currentRenderer=null,n._currentRenderer2=null,n}function N(e){var t,n,r={$$typeof:De,_ctor:e,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){dt(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){dt(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r}function U(e){return null!=e&&e.$$typeof===Te?Be(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?Be(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length?Be(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."):void 0,null!=e&&(null!=e.defaultProps||null!=e.propTypes?Be(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"):void 0),{$$typeof:Re,render:e}}function V(e){return"string"==typeof e||"function"==typeof e||e===Pe||e===$e||e===ke||e===je||e===Ie||e===Ae||"object"==typeof e&&null!==e&&(e.$$typeof===De||e.$$typeof===Te||e.$$typeof===Ee||e.$$typeof===Ce||e.$$typeof===Re||e.$$typeof===Me||e.$$typeof===Ne||e.$$typeof===Ue)}function F(e,t){return V(e)||Be(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:Te,type:e,compare:void 0===t?null:t}}function L(){var e=Ze.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function z(e,t){var n=L();if(void 0!==t?dt(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""):void 0,void 0!==e._context){var r=e._context;r.Consumer===e?dt(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&dt(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)}function q(e){var t=L();return t.useState(e)}function W(e,t,n){var r=L();return r.useReducer(e,t,n)}function B(e){var t=L();return t.useRef(e)}function K(e,t){var n=L();return n.useEffect(e,t)}function Y(e,t){var n=L();return n.useLayoutEffect(e,t)}function H(e,t){var n=L();return n.useCallback(e,t)}function J(e,t){var n=L();return n.useMemo(e,t)}function G(e,t,n){var r=L();return r.useImperativeHandle(e,t,n)}function X(e,t){var n=L();return n.useDebugValue(e,t)}function Q(e,t){var n=L();return null==e||e.$$typeof!==Ne?void dt(!1,"useResponder: invalid first argument. Expected an event responder, but instead got %s",e):n.useResponder(e,t||_t)}function Z(e){var t=L();return t.useTransition(e)}function ee(e,t){var n=L();return n.useDeferredValue(e,t)}function te(e,t){var n=et.suspense;et.suspense=void 0===t?null:t;try{e()}finally{et.suspense=n}}function ne(){if(tt.current){var e=l(tt.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function re(e){if(void 0!==e){var t=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return"\n\nCheck your code at "+t+":"+n+"."}return""}function oe(e){return null!==e&&void 0!==e?re(e.__source):""}function ae(e){var t=ne();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=ae(t);if(!jt[n]){jt[n]=!0;var r="";e&&e._owner&&e._owner!==tt.current&&(r=" It was passed a child from "+l(e._owner.type)+"."),f(e),dt(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),f(null)}}}function ue(e,n){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=e[r];w(o)&&ie(o,n)}else if(w(e))e._store&&(e._store.validated=!0);else if(e){var a=t(e);if("function"==typeof a&&a!==e.entries)for(var i,u=a.call(e);!(i=u.next()).done;)w(i.value)&&ie(i.value,n)}}function ce(e){var t=e.type;if(null!==t&&void 0!==t&&"string"!=typeof t){var n,r=l(t);if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Re&&t.$$typeof!==Te)return;n=t.propTypes}n?(f(e),we(n,e.props,"prop",r,at.getStackAddendum),f(null)):void 0===t.PropTypes||pt||(pt=!0,Be(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",r||"Unknown")),"function"==typeof t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved?void 0:Be(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function se(e){f(e);for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){dt(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==e.ref&&dt(!1,"Invalid attribute `ref` supplied to `React.Fragment`."),f(null)}function le(e,t,n,r,o,a){var i=V(e);if(!i){var u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=re(o);u+=c?c:ne();var s;null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===_e?(s="<"+(l(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,dt(!1,"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,u)}var f=g(e,t,n,o,a);if(null==f)return f;if(i){var p=t.children;if(void 0!==p)if(r)if(Array.isArray(p)){for(var d=0;d<p.length;d++)ue(p[d],e);Object.freeze&&Object.freeze(p)}else dt(!1,"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(p,e)}return Pt.call(t,"key")&&dt(!1,"React.jsx: Spreading a key to JSX is a deprecated pattern. Explicitly pass a key after spreading props in your JSX call. E.g. <ComponentName {...props} key={key} />"),e===Pe?se(f):ce(f),f}function fe(e,t,n){return le(e,t,n,!0)}function pe(e,t,n){return le(e,t,n,!1)}function de(e,t,n){var r=V(e);if(!r){var o="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var a=oe(t);o+=a?a:ne();var i;null===e?i="null":Array.isArray(e)?i="array":void 0!==e&&e.$$typeof===_e?(i="<"+(l(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,dt(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,o)}var u=m.apply(this,arguments);if(null==u)return u;if(r)for(var c=2;c<arguments.length;c++)ue(arguments[c],e);return e===Pe?se(u):ce(u),u}function ye(e){var t=de.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return qe(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function ve(e,t,n){for(var r=b.apply(this,arguments),o=2;o<arguments.length;o++)ue(arguments[o],r.type);return ce(r),r}function ge(e){xt||Object.freeze(e);var t={$$typeof:Me,impl:e};return Object.freeze(t),t}function me(e,t){var n=t.getInitialState,r=t.onEvent,o=t.onMount,a=t.onUnmount,i=t.onRootEvent,u=t.rootEventTypes,c=t.targetEventTypes,s=t.targetPortalPropagation,l={$$typeof:Ne,displayName:e,getInitialState:n||null,onEvent:r||null,onMount:o||null,onRootEvent:i||null,onUnmount:a||null,rootEventTypes:u||null,targetEventTypes:c||null,targetPortalPropagation:s||!1};return xt||Object.freeze(l),l}function he(){var e={$$typeof:Ue};return Object.freeze(e),e}var be=n(2),we=n(4),Se="16.12.0",Oe="function"==typeof Symbol&&Symbol.for,_e=Oe?Symbol.for("react.element"):60103,xe=Oe?Symbol.for("react.portal"):60106,Pe=Oe?Symbol.for("react.fragment"):60107,je=Oe?Symbol.for("react.strict_mode"):60108,ke=Oe?Symbol.for("react.profiler"):60114,Ee=Oe?Symbol.for("react.provider"):60109,Ce=Oe?Symbol.for("react.context"):60110,$e=Oe?Symbol.for("react.concurrent_mode"):60111,Re=Oe?Symbol.for("react.forward_ref"):60112,Ie=Oe?Symbol.for("react.suspense"):60113,Ae=Oe?Symbol.for("react.suspense_list"):60120,Te=Oe?Symbol.for("react.memo"):60115,De=Oe?Symbol.for("react.lazy"):60116,Me=Oe?Symbol.for("react.fundamental"):60117,Ne=Oe?Symbol.for("react.responder"):60118,Ue=Oe?Symbol.for("react.scope"):60119,Ve="function"==typeof Symbol&&Symbol.iterator,Fe="@@iterator",Le=function(){},ze=function(e){for(var t=arguments.length,n=new 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.warn(a);try{throw new Error(a)}catch(e){}};Le=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];ze.apply(void 0,[t].concat(r))}};var qe=Le,We=function(){};We=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warningWithoutStack(condition, format, ...args)` requires a warning message argument");if(r.length>8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var a=r.map(function(e){return""+e});a.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,a)}try{var i=0,u="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(u)}catch(e){}}};var Be=We,Ke={},Ye={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}},He={};Object.freeze(He),o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Je={isMounted:["isMounted","Instead, ma