diff --git a/package.json b/package.json
index 5f3a2de..7aa9fea 100644
--- a/package.json
+++ b/package.json
@@ -54,23 +54,24 @@
"babel-plugin-transform-imports": "1.5.1",
"babel-plugin-transform-react-remove-prop-types": "0.4.20",
"core-js": "2.5.7",
+ "debounce-promise": "^3.1.0",
"eslint": "5.8.0",
"eslint-config-airbnb": "17.1.0",
"eslint-loader": "2.1.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.11.1",
+ "lodash.debounce": "^4.0.8",
"prettier": "1.15.1",
"prop-types": "^15.6.2",
- "react-select": "^2.1.2",
+ "react": "^16.8.2",
+ "react-dom": "^16.8.2",
+ "react-select": "^2.4.1",
"rollup": "^0.67.3",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-uglify": "^6.0.0"
},
- "peerDependencies": {
- "react": "^15.0.0 || ^16.0.0",
- "react-dom": "^15.0.0 || ^16.0.0"
- }
+ "peerDependencies": {}
}
diff --git a/packages/SelectTemplate/index.js b/packages/SelectTemplate/index.js
index 0c2c09c..9bd4e0b 100644
--- a/packages/SelectTemplate/index.js
+++ b/packages/SelectTemplate/index.js
@@ -1,6 +1,8 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select';
+import AsyncSelect from 'react-select/lib/Async';
+import debounce from 'debounce-promise';
export default class SelectTemplate extends Component {
static defaultProps = {
@@ -17,7 +19,9 @@ export default class SelectTemplate extends Component {
disabled: false,
trackValue: false,
noOptionsMessage: () => 'No data',
- multi: false
+ multi: false,
+ async: false,
+ loadOptions: null
};
static propTypes = {
nameParams: PropTypes.string,
@@ -34,7 +38,9 @@ export default class SelectTemplate extends Component {
disabled: PropTypes.bool,
creatable: PropTypes.bool,
trackValue: PropTypes.bool,
- multi: PropTypes.bool
+ multi: PropTypes.bool,
+ async: PropTypes.bool,
+ loadOptions: PropTypes.func
};
constructor(props) {
@@ -48,6 +54,9 @@ export default class SelectTemplate extends Component {
value,
isFetching: props.isFetching && (!props.options || !props.options.length)
};
+ this.debounceLoadOptions = props.async
+ ? debounce(props.loadOptions, 300)
+ : null;
}
componentDidMount() {
@@ -89,6 +98,7 @@ export default class SelectTemplate extends Component {
const { nameParams } = this.props;
const { multi } = this.state;
let newValue = value;
+
if (multi) {
if (value && value.length) {
newValue = value.map(el => {
@@ -188,11 +198,17 @@ export default class SelectTemplate extends Component {
onOpen: this.onOpenSelect,
noOptionsMessage
};
+ if (this.props.async) {
+ delete props.value;
+ props.loadOptions = this.debounceLoadOptions;
+ }
return (
<>
{this.props.creatable ? (
+ ) : this.props.async ? (
+
) : (
)}
diff --git a/public/packages/SelectTemplate/index.js b/public/packages/SelectTemplate/index.js
index 0c19e50..23f5e90 100644
--- a/public/packages/SelectTemplate/index.js
+++ b/public/packages/SelectTemplate/index.js
@@ -1 +1 @@
-"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var React=require("react"),React__default=_interopDefault(React),Select=_interopDefault(require("react-select"));function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}function stylis_min(e){function O(e,t,n){var r=t.trim().split(f),o=(t=r).length,a=e.length;switch(a){case 0:case 1:var i=0;for(e=0===a?"":e[0]+" ";i css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"),c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);var n=e.toString();if("NO_COMPONENT_SELECTOR"===n&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n;case"object":return function(e){if(p.has(e))return p.get(e);var n="";Array.isArray(e)?e.forEach(function(e){n+=c.call(this,e,!1)},this):Object.keys(e).forEach(function(t){if("object"!=typeof e[t])void 0!==i.registered[e[t]]?n+=t+"{"+i.registered[e[t]]+"}":n+=processStyleName(t)+":"+processStyleValue(t,e[t])+";";else{if("NO_COMPONENT_SELECTOR"===t&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");Array.isArray(e[t])&&"string"==typeof e[t][0]&&void 0===i.registered[e[t][0]]?e[t].forEach(function(e){n+=processStyleName(t)+":"+processStyleValue(t,e)+";"}):n+=t+"{"+c.call(this,e[t],!1)+"}"}},this);return p.set(e,n),n}.call(this,e);default:var r=i.registered[e];return!1===t&&void 0!==r?r:e}}var f,d,p=new WeakMap;var h=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return murmurhash2_32_gc(e+t)+t};if("production"!==process.env.NODE_ENV){var v=m,g=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;m=function(e,t){return v(e.replace(g,function(e){return s=e,""}),t)}}var y=function(n){var r=!0,o="",a="";null==n||void 0===n.raw?o+=c.call(this,n,r=!1):o+=n[0];for(var e=arguments.length,t=new Array(1=t){n=e;break}e=e.next}while(e!==i);null===n?n=i:n===i&&(i=a,f()),(t=n.previous).next=n.previous=a,a.next=n,a.previous=t}}function p(){if(-1===a&&null!==i&&1===i.priorityLevel){s=!0;try{for(;d(),null!==i&&1===i.priorityLevel;);}finally{s=!1,null!==i?f():c=!1}}}function t(e){s=!0;var t=r;r=e;try{if(e)for(;null!==i;){var n=o.unstable_now();if(!(i.expirationTime<=n))break;for(;d(),null!==i&&i.expirationTime<=n;);}else if(null!==i)for(;d(),null!==i&&!S(););}finally{s=!1,r=t,null!==i?f():c=!1,p()}}var n,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(t){n=y(function(e){g(h),t(e)}),h=v(function(){b(n),t(o.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;o.unstable_now=function(){return _.now()}}else o.unstable_now=function(){return m.now()};var x,E,S,k=null;if("undefined"!=typeof window?k=window:void 0!==commonjsGlobal&&(k=commonjsGlobal),k&&k._schedMock){var C=k._schedMock;x=C[0],E=C[1],S=C[2],o.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,O=function(e){if(null!==T)try{T(e)}finally{T=null}};x=function(e){null!==T?setTimeout(x,0,e):(T=e,setTimeout(O,0,!1))},E=function(){T=null},S=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var P=null,M=!1,R=-1,D=!1,I=!1,A=0,N=33,F=33;S=function(){return A<=o.unstable_now()};var j=new MessageChannel,L=j.port2;j.port1.onmessage=function(){M=!1;var e=P,t=R;P=null,R=-1;var n=o.unstable_now(),r=!1;if(A-n<=0){if(!(-1!==t&&t<=n))return D||(D=!0,w(U)),P=e,void(R=t);r=!0}if(null!==e){I=!0;try{e(r)}finally{I=!1}}};var U=function(e){if(null!==P){w(U);var t=e-A+F;tt){n=r;break}r=r.next}while(r!==i);null===n?n=i:n===i&&(i=e,f()),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}return e},o.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)i=null;else{e===i&&(i=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}},o.unstable_wrapCallback=function(n){var r=l;return function(){var e=l,t=a;l=r,a=o.unstable_now();try{return n.apply(this,arguments)}finally{l=e,a=t,p()}}},o.unstable_getCurrentPriorityLevel=function(){return l},o.unstable_shouldYield=function(){return!r&&(null!==i&&i.expirationTime=a){c=f;break}f=f.next}while(f!==p);null===c?c=p:c===p&&(p=s,v());var d=c.previous;d.next=c.previous=s,s.next=c,s.previous=d}}}function c(){if(-1===s&&null!==p&&p.priorityLevel===u){a=!0;try{for(;l(),null!==p&&p.priorityLevel===u;);}finally{a=!1,null!==p?v():i=!1}}}function t(e){a=!0;var t=o;o=e;try{if(e)for(;null!==p&&!r;){var n=z.unstable_now();if(!(p.expirationTime<=n))break;for(;l(),null!==p&&p.expirationTime<=n&&!r;);}else if(null!==p)for(;l(),null!==p&&!y(););}finally{a=!1,o=t,null!==p?v():i=!1,c()}}var n,f,d,g,y,b=Date,w="function"==typeof setTimeout?setTimeout:void 0,_="function"==typeof clearTimeout?clearTimeout:void 0,x="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,E="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,S=function(t){n=x(function(e){_(f),t(e)}),f=w(function(){E(n),t(z.unstable_now())},100)};if(e){var k=performance;z.unstable_now=function(){return k.now()}}else z.unstable_now=function(){return b.now()};var C=null;if("undefined"!=typeof window?C=window:void 0!==commonjsGlobal&&(C=commonjsGlobal),C&&C._schedMock){var T=C._schedMock;d=T[0],g=T[1],y=T[2],z.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,P=function(e){if(null!==O)try{O(e)}finally{O=null}};d=function(e,t){null!==O?setTimeout(d,0,e):(O=e,setTimeout(P,0,!1))},g=function(){O=null},y=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof x&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof E&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var M=null,R=!1,D=-1,I=!1,A=!1,N=0,F=33,j=33;y=function(){return N<=z.unstable_now()};var L=new MessageChannel,U=L.port2;L.port1.onmessage=function(e){R=!1;var t=M,n=D;M=null,D=-1;var r=z.unstable_now(),o=!1;if(N-r<=0){if(!(-1!==n&&n<=r))return I||(I=!0,S(V)),M=t,void(D=n);o=!0}if(null!==t){A=!0;try{t(o)}finally{A=!1}}};var V=function(e){if(null!==M){S(V);var t=e-N+j;tn){a=i;break}i=i.next}while(i!==p);null===a?a=p:a===p&&(p=o,v());var l=a.previous;l.next=a.previous=o,o.next=a,o.previous=l}return o},z.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)p=null;else{e===p&&(p=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}},z.unstable_wrapCallback=function(n){var r=h;return function(){var e=h,t=s;h=r,s=z.unstable_now();try{return n.apply(this,arguments)}finally{h=e,s=t,c()}}},z.unstable_getCurrentPriorityLevel=function(){return h},z.unstable_shouldYield=function(){return!o&&(null!==p&&p.expirationTime"+t+"",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ke(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ne(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||le.hasOwnProperty(e)&&le[e]?(""+t).trim():t+"px"}function oe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ne(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(le).forEach(function(t){me.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),le[e]=le[t]})});var pe=objectAssign({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qe(e,t){t&&(pe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&x("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&x("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||x("61")),null!=t.style&&"object"!=typeof t.style&&x("62",""))}function re(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function se(e,t){var n=Id(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=sa[t];for(var r=0;rt&&(e.latestPendingTime=t),df(t,e)}function ef(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{tt&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?cf(e,t):t=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:nl?(u=i,i=null):u=i.sibling;var s=g(t,i,n[l],r);if(null===s){null===i&&(i=u);break}f&&i&&null===s.alternate&&d(t,i),e=m(s,e,l),null===a?o=s:a.sibling=s,a=s,i=u}if(l===n.length)return p(t,i),o;if(null===i){for(;ll?(u=i,i=null):u=i.sibling;var c=g(t,i,s.value,r);if(null===c){i||(i=u);break}f&&i&&null===c.alternate&&d(t,i),e=m(c,e,l),null===a?o=c:a.sibling=c,a=c,i=u}if(s.done)return p(t,i),o;if(null===i){for(;!s.done;l++,s=n.next())null!==(s=v(t,s.value,r))&&(e=m(s,e,l),null===a?o=s:a.sibling=s,a=s);return o}for(i=h(t,i);!s.done;l++,s=n.next())null!==(s=y(i,t,l,s.value,r))&&(f&&null!==s.alternate&&i.delete(null===s.key?l:s.key),e=m(s,e,l),null===a?o=s:a.sibling=s,a=s);return f&&i.forEach(function(e){return d(t,e)}),o}(e,t,n,r);if(a&&Bf(e,n),void 0===n&&!o)switch(e.tag){case 1:case 0:x("152",(r=e.type).displayName||r.name||"Component")}return p(e,t)}}var Df=Cf(!0),Ef=Cf(!1),Ff={},N={current:Ff},Gf={current:Ff},Hf={current:Ff};function If(e){return e===Ff&&x("174"),e}function Jf(e,t){G(Hf,t,e),G(Gf,e,e),G(N,Ff,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}F(N,e),G(N,t,e)}function Kf(e){F(N,e),F(Gf,e),F(Hf,e)}function Lf(e){If(Hf.current);var t=If(N.current),n=he(t,e.type);t!==n&&(G(Gf,e,e),G(N,n,e))}function Mf(e){Gf.current===e&&(F(N,e),F(Gf,e))}var Nf=0,Of=2,Pf=4,Qf=8,Rf=16,Sf=32,Tf=64,Uf=128,Vf=Tb.ReactCurrentDispatcher,Wf=0,Xf=null,O=null,P=null,Yf=null,Q=null,Zf=null,$f=0,ag=null,bg=0,cg=!1,dg=null,eg=0;function fg(){x("307")}function gg(e,t){if(null===t)return!1;for(var n=0;n=t&&(qg=!0),e.contextDependencies=null}function M(e,t){return Yg!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Yg=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xg?(null===Wg&&x("308"),Xg=t,Wg.contextDependencies={first:t,expirationTime:0}):Xg=Xg.next=t),e._currentValue}var $g=0,rf=1,sf=2,ah=3,Pg=!1;function bh(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ch(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function nf(e){return{expirationTime:e,tag:$g,payload:null,callback:null,next:null,nextEffect:null}}function dh(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function pf(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=bh(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=bh(e.memoizedState),o=n.updateQueue=bh(n.memoizedState)):r=e.updateQueue=ch(o):null===o&&(o=n.updateQueue=ch(r));null===o||r===o?dh(r,t):null===r.lastUpdate||null===o.lastUpdate?(dh(r,t),dh(o,t)):(dh(r,t),o.lastUpdate=t)}function eh(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=bh(e.memoizedState):fh(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function fh(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=ch(t)),t}function gh(e,t,n,r,o,a){switch(n.tag){case rf:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case ah:e.effectTag=-2049&e.effectTag|64;case $g:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return objectAssign({},r,o);case sf:Pg=!0}return r}function yf(e,t,n,r,o){Pg=!1;for(var a=(t=fh(e,t)).baseState,i=null,l=0,u=t.firstUpdate,s=a;null!==u;){var c=u.expirationTime;c<\/script>",s=o.removeChild(o.firstChild)):"string"==typeof f.is?s=s.createElement(o,{is:f.is}):(s=s.createElement(o),"select"===o&&f.multiple&&(s.multiple=!0)):s=s.createElementNS(u,o),(o=s)[Fa]=c,o[Ga]=i,lh(o,t,!1,!1),f=o;var d=l,p=re(s=a,c=i);switch(s){case"iframe":case"object":E("load",f),l=c;break;case"video":case"audio":for(l=0;l component higher in the tree to provide a loading indicator or placeholder to display."+jc(s))}Nh=!0,c=jh(c,s),l=u;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=i,eh(l,i=Ch(l,c,i));break e;case 1:if(d=c,p=l.type,s=l.stateNode,0==(64&l.effectTag)&&("function"==typeof p.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===Fh||!Fh.has(s)))){l.effectTag|=2048,l.expirationTime=i,eh(l,i=Eh(l,d,i));break e}}l=l.return}while(null!==l)}T=ai(a);continue}o=!0,Dh(e)}}break}if(Kh=!1,Hh.current=n,Yg=Xg=Wg=null,lg(),o)Lh=null,t.finishedWork=null;else if(null!==T)t.finishedWork=null;else{if(null===(n=t.current.alternate)&&x("281"),Lh=null,Nh){if(o=t.latestPendingTime,a=t.latestSuspendedTime,i=t.latestPingedTime,0!==o&&oe.expirationTime&&(e.expirationTime=t),W||(X?ri&&Di(oi=e,Z=1073741823,!1):1073741823===t?Yh(1073741823,!1):yi(e,t))}function Ci(){var e=0,t=null;if(null!==Y)for(var n=Y,r=li;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===Y)&&x("244"),r===r.nextScheduledRoot){li=Y=r.nextScheduledRoot=null;break}if(r===li)li=o=r.nextScheduledRoot,Y.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===Y){(Y=n).nextScheduledRoot=li,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(e=n&&(null===si?si=[r]:si.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===wi?ii++:(wi=e,ii=0),scheduler.unstable_runWithPriority(scheduler.unstable_ImmediatePriority,function(){Zh(e,t)})}function Dh(e){null===oi&&x("246"),oi.expirationTime=0,pi||(pi=!0,qi=e)}function Gi(e,t){var n=X;X=!0;try{return e(t)}finally{(X=n)||W||Yh(1073741823,!1)}}function Hi(e,t){if(X&&!ri){ri=!0;try{return e(t)}finally{ri=!1}}return e(t)}function Ii(e,t,n){X||W||0===gi||(Yh(gi,!1),gi=0);var r=X;X=!0;try{return scheduler.unstable_runWithPriority(scheduler.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(X=r)||W||Yh(1073741823,!1)}}function Ji(e,t,n,r,o){var a=t.current;e:if(n){t:{2===ed(n=n._reactInternalFiber)&&1===n.tag||x("170");var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(J(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(null!==i);x("171"),i=void 0}if(1===n.tag){var l=n.type;if(J(l)){n=Ne(n,l,i);break e}}n=i}else n=He;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=nf(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),of(),pf(a,o),qf(a,r),r}function Ki(e,t,n,r){var o=t.current;return Ji(e,t,n,o=mf(lf(),o),r)}function Li(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Mi(e,t,n){var r=3=t;)r=(n=r)._next;e._next=r,null!==n&&(n._next=e)}return e},Ib=function(){W||0===gi||(Yh(gi,!1),gi=0)};var Vi={createPortal:Ti,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?x("188"):x("268",Object.keys(e))),e=null===(e=hd(t))?null:e.stateNode},hydrate:function(e,t,n){return Qi(t)||x("200"),Si(null,e,t,!0,n)},render:function(e,t,n){return Qi(t)||x("200"),Si(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Qi(n)||x("200"),(null==e||void 0===e._reactInternalFiber)&&x("38"),Si(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Qi(e)||x("40"),!!e._reactRootContainer&&(Hi(function(){Si(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ti.apply(void 0,arguments)},unstable_batchedUpdates:Gb=Gi,unstable_interactiveUpdates:Hb=Ii,flushSync:function(e,t){W&&x("187");var n=X;X=!0;try{return ki(e,t)}finally{X=n,Yh(1073741823,!1)}},unstable_createRoot:Ui,unstable_flushControlled:function(e){var t=X;X=!0;try{ki(e)}finally{(X=t)||W||Yh(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Ia,Ja,Ka,Ba.injectEventPluginsByName,pa,Qa,function(e){ya(e,Pa)},Eb,Fb,Dd,Da]}};function Ui(e,t){return Qi(e)||x("299","unstable_createRoot"),new Pi(e,!0,null!=t&&!0===t.hydrate)}!function(e){var t=e.findFiberByHostInstance;Te(objectAssign({},e,{overrideProps:null,currentDispatcherRef:Tb.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=hd(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:Ha,bundleType:0,version:"16.8.2",rendererPackageName:"react-dom"});var Wi={default:Vi},Xi=Wi&&Vi||Wi,reactDom_production_min=Xi.default||Xi,schedulerTracing_production_min=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.__interactionsRef=null,t.__subscriberRef=null,t.unstable_clear=function(e){return e()},t.unstable_getCurrent=function(){return null},t.unstable_getThreadID=function(){return++n},t.unstable_trace=function(e,t,n){return n()},t.unstable_wrap=function(e){return e},t.unstable_subscribe=function(){},t.unstable_unsubscribe=function(){}});unwrapExports(schedulerTracing_production_min);var schedulerTracing_production_min_1=schedulerTracing_production_min.__interactionsRef,schedulerTracing_production_min_2=schedulerTracing_production_min.__subscriberRef,schedulerTracing_production_min_3=schedulerTracing_production_min.unstable_clear,schedulerTracing_production_min_4=schedulerTracing_production_min.unstable_getCurrent,schedulerTracing_production_min_5=schedulerTracing_production_min.unstable_getThreadID,schedulerTracing_production_min_6=schedulerTracing_production_min.unstable_trace,schedulerTracing_production_min_7=schedulerTracing_production_min.unstable_wrap,schedulerTracing_production_min_8=schedulerTracing_production_min.unstable_subscribe,schedulerTracing_production_min_9=schedulerTracing_production_min.unstable_unsubscribe,schedulerTracing_development=createCommonjsModule(function(e,c){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(c,"__esModule",{value:!0});var s=0,e=0;c.__interactionsRef=null,c.__subscriberRef=null,c.__interactionsRef={current:new Set},c.__subscriberRef={current:null};var a=null;function t(t){var n=!1,r=null;if(a.forEach(function(e){try{e.onInteractionTraced(t)}catch(e){n||(n=!0,r=e)}}),n)throw r}function n(t){var n=!1,r=null;if(a.forEach(function(e){try{e.onInteractionScheduledWorkCompleted(t)}catch(e){n||(n=!0,r=e)}}),n)throw r}function r(t,n){var r=!1,o=null;if(a.forEach(function(e){try{e.onWorkScheduled(t,n)}catch(e){r||(r=!0,o=e)}}),r)throw o}function o(t,n){var r=!1,o=null;if(a.forEach(function(e){try{e.onWorkStarted(t,n)}catch(e){r||(r=!0,o=e)}}),r)throw o}function i(t,n){var r=!1,o=null;if(a.forEach(function(e){try{e.onWorkStopped(t,n)}catch(e){r||(r=!0,o=e)}}),r)throw o}function l(t,n){var r=!1,o=null;if(a.forEach(function(e){try{e.onWorkCanceled(t,n)}catch(e){r||(r=!0,o=e)}}),r)throw o}a=new Set,c.unstable_clear=function(e){var t=c.__interactionsRef.current;c.__interactionsRef.current=new Set;try{return e()}finally{c.__interactionsRef.current=t}},c.unstable_getCurrent=function(){return c.__interactionsRef.current},c.unstable_getThreadID=function(){return++e},c.unstable_trace=function(e,t,n){var r=3 children."))}),null==t.selected||Ni||(Hr(!1,"Use the `defaultValue` or `value` props on